]> git.saurik.com Git - wxWidgets.git/blame - configure
changed hardware at York
[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"
2b850ae1 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_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_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
a848cd7e
SC
956 --enable-constraints use layout-constraints system
957 --enable-printarch use printing architecture
958 --enable-mdi use multiple document interface architecture
8a7b1113 959 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
960 --enable-loggui use standard GUI logger
961 --enable-logwin use wxLogWindow
962 --enable-logdialog use wxLogDialog
646b6ec1 963 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 964 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
965 --enable-postscript use wxPostscriptDC device context (default for gtk+)
966 --enable-prologio not available; see contrib
967 --enable-resources not available; see contrib
968 --enable-clipboard use wxClipboard class
969 --enable-dnd use Drag'n'Drop classes
970 --enable-metafile use win32 metafiles
971 --enable-controls use all usual controls
972 --enable-accel use accelerators
973 --enable-button use wxButton class
974 --enable-bmpbutton use wxBitmapButton class
975 --enable-calendar use wxCalendarCtrl class
976 --enable-caret use wxCaret class
977 --enable-checkbox use wxCheckBox class
978 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
979 --enable-choice use wxChoice class
92bbdbcd 980 --enable-choicebook use wxChoicebook class
e9263684 981 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 982 --enable-combobox use wxComboBox class
a57d600f 983 --enable-comboctrl use wxComboCtrl class
da98e9be 984 --enable-datepick use wxDatePickerCtrl class
e9263684 985 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 986 --enable-display use wxDisplay class
e9263684
VZ
987 --enable-filepicker use wxFilePickerCtrl class
988 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
989 --enable-gauge use wxGauge class
990 --enable-grid use wxGrid class
20e34ecc 991 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 992 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
993 --enable-imaglist use wxImageList class
994 --enable-listbook use wxListbook class
995 --enable-listbox use wxListBox class
996 --enable-listctrl use wxListCtrl class
997 --enable-notebook use wxNotebook class
a57d600f 998 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
999 --enable-radiobox use wxRadioBox class
1000 --enable-radiobtn use wxRadioButton class
1001 --enable-sash use wxSashWindow class
1002 --enable-scrollbar use wxScrollBar class and scrollable windows
1003 --enable-slider use wxSlider class
1004 --enable-spinbtn use wxSpinButton class
1005 --enable-spinctrl use wxSpinCtrl class
1006 --enable-splitter use wxSplitterWindow class
1007 --enable-statbmp use wxStaticBitmap class
1008 --enable-statbox use wxStaticBox class
1009 --enable-statline use wxStaticLine class
1010 --enable-stattext use wxStaticText class
1011 --enable-statusbar use wxStatusBar class
1012 --enable-tabdialog use wxTabControl class
1013 --enable-textctrl use wxTextCtrl class
1014 --enable-togglebtn use wxToggleButton class
1015 --enable-toolbar use wxToolBar class
1016 --enable-tbarnative use native wxToolBar class
1017 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1018 --enable-treebook use wxTreebook class
5ec3bc43 1019 --enable-toolbook use wxToolbook class
a848cd7e
SC
1020 --enable-treectrl use wxTreeCtrl class
1021 --enable-tipwindow use wxTipWindow class
1022 --enable-popupwin use wxPopUpWindow class
1023 --enable-commondlg use all common dialogs
1024 --enable-choicedlg use wxChoiceDialog
1025 --enable-coldlg use wxColourDialog
1026 --enable-filedlg use wxFileDialog
1027 --enable-finddlg use wxFindReplaceDialog
1028 --enable-fontdlg use wxFontDialog
1029 --enable-dirdlg use wxDirDialog
1030 --enable-msgdlg use wxMessageDialog
1031 --enable-numberdlg use wxNumberEntryDialog
1032 --enable-splash use wxSplashScreen
1033 --enable-textdlg use wxTextDialog
1034 --enable-tipdlg use startup tips
1035 --enable-progressdlg use wxProgressDialog
1036 --enable-wizarddlg use wxWizard
1037 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1038 --enable-miniframe use wxMiniFrame class
1039 --enable-tooltips use wxToolTip class
1040 --enable-splines use spline drawing code
fbe2ca43 1041 --enable-mousewheel use mousewheel
a848cd7e
SC
1042 --enable-validators use wxValidator and derived classes
1043 --enable-busyinfo use wxBusyInfo
4cb1d3da 1044 --enable-joystick use wxJoystick
38b4a946 1045 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1046 --enable-dragimage use wxDragImage
1047 --enable-accessibility enable accessibility support
38b4a946 1048 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1049 --enable-palette use wxPalette class
1050 --enable-image use wxImage class
1051 --enable-gif use gif images (GIF file format)
1052 --enable-pcx use pcx images (PCX file format)
1053 --enable-iff use iff images (IFF file format)
1054 --enable-pnm use pnm images (PNM file format)
1055 --enable-xpm use xpm images (XPM file format)
1056 --enable-icocur use Windows ICO and CUR formats
77ffb593 1057 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1058 --enable-vendor=VENDOR vendor name (win32 DLL only)
1059 --disable-largefile omit support for large files
1060 --disable-gtktest do not try to compile and run a test GTK+ program
1061 --disable-gtktest Do not try to compile and run a test GTK program
1062 --disable-sdltest Do not try to compile and run a test SDL program
1063 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1064 --disable-dependency-tracking
1065 don't use dependency tracking even if the compiler
1066 can
ebee3cd0
VS
1067 --disable-precomp-headers
1068 don't use precompiled headers even if compiler can
a848cd7e
SC
1069
1070Optional Packages:
1071 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1072 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1073 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1074 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1075 --with-motif use Motif/Lesstif
1076 --with-mac use Mac OS X
1077 --with-cocoa use Cocoa
1078 --with-wine use Wine
1079 --with-msw use MS-Windows
1080 --with-pm use OS/2 Presentation Manager
1081 --with-mgl use SciTech MGL
1082 --with-microwin use MicroWindows
1083 --with-x11 use X11
1084 --with-libpng use libpng (PNG image format)
1085 --with-libjpeg use libjpeg (JPEG file format)
1086 --with-libtiff use libtiff (TIFF file format)
1087 --with-libxpm use libxpm (XPM file format)
1088 --with-libmspack use libmspack (CHM help files loading)
1089 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1090 --with-gnomeprint use GNOME print for printing under GNOME
1091 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1092 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1093 --with-opengl use OpenGL (or Mesa)
1094 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1095 --with-regex enable support for wxRegEx class
1096 --with-zlib use zlib for LZW compression
1097 --with-odbc use the IODBC and wxODBC classes
1098 --with-expat enable XML support using expat parser
ceec2216 1099 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1100 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1101 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1102 --with-x use the X Window System
1103 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1104 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1105 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1106 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1107 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1108
1109Some influential environment variables:
dcc1b6ad
VS
1110 CC C compiler command
1111 CFLAGS C compiler flags
1112 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1113 nonstandard directory <lib dir>
1114 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1115 headers in a nonstandard directory <include dir>
1116 CPP C preprocessor
1117 CXX C++ compiler command
1118 CXXFLAGS C++ compiler flags
1119 CXXCPP C++ preprocessor
a848cd7e
SC
1120
1121Use these variables to override the choices made by `configure' or to help
1122it to find libraries and programs with nonstandard names/locations.
1123
77ffb593 1124Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1125_ACEOF
1126fi
1127
1128if test "$ac_init_help" = "recursive"; then
1129 # If there are subdirs, report their specific --help.
1130 ac_popdir=`pwd`
1131 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1132 test -d $ac_dir || continue
1133 ac_builddir=.
1134
1135if test "$ac_dir" != .; then
1136 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1137 # A "../" for each directory in $ac_dir_suffix.
1138 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1139else
1140 ac_dir_suffix= ac_top_builddir=
1141fi
1142
1143case $srcdir in
1144 .) # No --srcdir option. We are building in place.
1145 ac_srcdir=.
1146 if test -z "$ac_top_builddir"; then
1147 ac_top_srcdir=.
1148 else
1149 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1150 fi ;;
1151 [\\/]* | ?:[\\/]* ) # Absolute path.
1152 ac_srcdir=$srcdir$ac_dir_suffix;
1153 ac_top_srcdir=$srcdir ;;
1154 *) # Relative path.
1155 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1156 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1157esac
ac1cb8d3
VS
1158
1159# Do not use `cd foo && pwd` to compute absolute paths, because
1160# the directories may not exist.
1161case `pwd` in
1162.) ac_abs_builddir="$ac_dir";;
1163*)
1164 case "$ac_dir" in
1165 .) ac_abs_builddir=`pwd`;;
1166 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1167 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1168 esac;;
1169esac
1170case $ac_abs_builddir in
1171.) ac_abs_top_builddir=${ac_top_builddir}.;;
1172*)
1173 case ${ac_top_builddir}. in
1174 .) ac_abs_top_builddir=$ac_abs_builddir;;
1175 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1176 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1177 esac;;
1178esac
1179case $ac_abs_builddir in
1180.) ac_abs_srcdir=$ac_srcdir;;
1181*)
1182 case $ac_srcdir in
1183 .) ac_abs_srcdir=$ac_abs_builddir;;
1184 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1185 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1186 esac;;
1187esac
1188case $ac_abs_builddir in
1189.) ac_abs_top_srcdir=$ac_top_srcdir;;
1190*)
1191 case $ac_top_srcdir in
1192 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1193 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1194 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1195 esac;;
1196esac
a848cd7e
SC
1197
1198 cd $ac_dir
1199 # Check for guested configure; otherwise get Cygnus style configure.
1200 if test -f $ac_srcdir/configure.gnu; then
1201 echo
1202 $SHELL $ac_srcdir/configure.gnu --help=recursive
1203 elif test -f $ac_srcdir/configure; then
1204 echo
1205 $SHELL $ac_srcdir/configure --help=recursive
1206 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1207 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1208 echo
1209 $ac_configure --help
1210 else
1211 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1212 fi
6954625c 1213 cd "$ac_popdir"
a848cd7e
SC
1214 done
1215fi
1216
1217test -n "$ac_init_help" && exit 0
1218if $ac_init_version; then
1219 cat <<\_ACEOF
dd8df4fc 1220wxWidgets configure 2.7.0
ac1cb8d3 1221generated by GNU Autoconf 2.59
a848cd7e 1222
ac1cb8d3 1223Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1224This configure script is free software; the Free Software Foundation
1225gives unlimited permission to copy, distribute and modify it.
1226_ACEOF
1227 exit 0
1228fi
1229exec 5>config.log
1230cat >&5 <<_ACEOF
1231This file contains any messages produced by compilers while
1232running configure, to aid debugging if configure makes a mistake.
1233
dd8df4fc 1234It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1235generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1236
1237 $ $0 $@
1238
1239_ACEOF
1240{
1241cat <<_ASUNAME
1242## --------- ##
1243## Platform. ##
1244## --------- ##
1245
1246hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1247uname -m = `(uname -m) 2>/dev/null || echo unknown`
1248uname -r = `(uname -r) 2>/dev/null || echo unknown`
1249uname -s = `(uname -s) 2>/dev/null || echo unknown`
1250uname -v = `(uname -v) 2>/dev/null || echo unknown`
1251
1252/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1253/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1254
1255/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1256/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1257/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1258hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1259/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1260/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1261/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1262
1263_ASUNAME
1264
1265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1266for as_dir in $PATH
1267do
1268 IFS=$as_save_IFS
1269 test -z "$as_dir" && as_dir=.
1270 echo "PATH: $as_dir"
1271done
1272
1273} >&5
1274
1275cat >&5 <<_ACEOF
1276
1277
1278## ----------- ##
1279## Core tests. ##
1280## ----------- ##
1281
1282_ACEOF
1283
1284
1285# Keep a trace of the command line.
1286# Strip out --no-create and --no-recursion so they do not pile up.
1287# Strip out --silent because we don't want to record it for future runs.
1288# Also quote any args containing shell meta-characters.
1289# Make two passes to allow for proper duplicate-argument suppression.
1290ac_configure_args=
1291ac_configure_args0=
1292ac_configure_args1=
1293ac_sep=
1294ac_must_keep_next=false
1295for ac_pass in 1 2
1296do
1297 for ac_arg
1298 do
1299 case $ac_arg in
1300 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1302 | -silent | --silent | --silen | --sile | --sil)
1303 continue ;;
1304 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1306 esac
1307 case $ac_pass in
1308 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1309 2)
1310 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1311 if test $ac_must_keep_next = true; then
ac1cb8d3 1312 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1313 else
ac1cb8d3
VS
1314 case $ac_arg in
1315 *=* | --config-cache | -C | -disable-* | --disable-* \
1316 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1317 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1318 | -with-* | --with-* | -without-* | --without-* | --x)
1319 case "$ac_configure_args0 " in
1320 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1321 esac
1322 ;;
1323 -* ) ac_must_keep_next=true ;;
1324 esac
a848cd7e
SC
1325 fi
1326 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1327 # Get rid of the leading space.
1328 ac_sep=" "
1329 ;;
1330 esac
1331 done
1332done
1333$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1334$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1335
1336# When interrupted or exit'd, cleanup temporary files, and complete
1337# config.log. We remove comments because anyway the quotes in there
1338# would cause problems or look ugly.
1339# WARNING: Be sure not to use single quotes in there, as some shells,
1340# such as our DU 5.0 friend, will then `close' the trap.
1341trap 'exit_status=$?
1342 # Save into config.log some information that might help in debugging.
1343 {
1344 echo
1345
1346 cat <<\_ASBOX
1347## ---------------- ##
1348## Cache variables. ##
1349## ---------------- ##
1350_ASBOX
1351 echo
1352 # The following way of writing the cache mishandles newlines in values,
1353{
1354 (set) 2>&1 |
1355 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1356 *ac_space=\ *)
1357 sed -n \
ac1cb8d3
VS
1358 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1360 ;;
1361 *)
1362 sed -n \
ac1cb8d3 1363 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1364 ;;
1365 esac;
1366}
1367 echo
1368
1369 cat <<\_ASBOX
1370## ----------------- ##
1371## Output variables. ##
1372## ----------------- ##
1373_ASBOX
1374 echo
1375 for ac_var in $ac_subst_vars
1376 do
1377 eval ac_val=$`echo $ac_var`
1378 echo "$ac_var='"'"'$ac_val'"'"'"
1379 done | sort
1380 echo
1381
1382 if test -n "$ac_subst_files"; then
1383 cat <<\_ASBOX
1384## ------------- ##
1385## Output files. ##
1386## ------------- ##
1387_ASBOX
1388 echo
1389 for ac_var in $ac_subst_files
1390 do
1391 eval ac_val=$`echo $ac_var`
ac1cb8d3 1392 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1393 done | sort
1394 echo
1395 fi
1396
1397 if test -s confdefs.h; then
1398 cat <<\_ASBOX
1399## ----------- ##
1400## confdefs.h. ##
1401## ----------- ##
1402_ASBOX
1403 echo
1404 sed "/^$/d" confdefs.h | sort
1405 echo
1406 fi
1407 test "$ac_signal" != 0 &&
1408 echo "$as_me: caught signal $ac_signal"
1409 echo "$as_me: exit $exit_status"
1410 } >&5
ac1cb8d3 1411 rm -f core *.core &&
a848cd7e
SC
1412 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1413 exit $exit_status
1414 ' 0
1415for ac_signal in 1 2 13 15; do
1416 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1417done
1418ac_signal=0
1419
1420# confdefs.h avoids OS command line length limits that DEFS can exceed.
1421rm -rf conftest* confdefs.h
1422# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1423echo >confdefs.h
1424
1425# Predefined preprocessor variables.
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_NAME "$PACKAGE_NAME"
1429_ACEOF
1430
1431
1432cat >>confdefs.h <<_ACEOF
1433#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1434_ACEOF
1435
1436
1437cat >>confdefs.h <<_ACEOF
1438#define PACKAGE_VERSION "$PACKAGE_VERSION"
1439_ACEOF
1440
1441
1442cat >>confdefs.h <<_ACEOF
1443#define PACKAGE_STRING "$PACKAGE_STRING"
1444_ACEOF
1445
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1449_ACEOF
1450
1451
1452# Let the site file select an alternate cache file if it wants to.
1453# Prefer explicitly selected file to automatically selected ones.
1454if test -z "$CONFIG_SITE"; then
1455 if test "x$prefix" != xNONE; then
1456 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1457 else
1458 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1459 fi
1460fi
1461for ac_site_file in $CONFIG_SITE; do
1462 if test -r "$ac_site_file"; then
1463 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1464echo "$as_me: loading site script $ac_site_file" >&6;}
1465 sed 's/^/| /' "$ac_site_file" >&5
1466 . "$ac_site_file"
1467 fi
1468done
1469
1470if test -r "$cache_file"; then
1471 # Some versions of bash will fail to source /dev/null (special
1472 # files actually), so we avoid doing that.
1473 if test -f "$cache_file"; then
1474 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1475echo "$as_me: loading cache $cache_file" >&6;}
1476 case $cache_file in
1477 [\\/]* | ?:[\\/]* ) . $cache_file;;
1478 *) . ./$cache_file;;
1479 esac
1480 fi
1481else
1482 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1483echo "$as_me: creating cache $cache_file" >&6;}
1484 >$cache_file
1485fi
1486
1487# Check that the precious variables saved in the cache have kept the same
1488# value.
1489ac_cache_corrupted=false
1490for ac_var in `(set) 2>&1 |
ac1cb8d3 1491 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1492 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493 eval ac_new_set=\$ac_env_${ac_var}_set
1494 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495 eval ac_new_val="\$ac_env_${ac_var}_value"
1496 case $ac_old_set,$ac_new_set in
1497 set,)
1498 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500 ac_cache_corrupted=: ;;
1501 ,set)
1502 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504 ac_cache_corrupted=: ;;
1505 ,);;
1506 *)
1507 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1508 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1509echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1510 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1511echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1512 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1513echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1514 ac_cache_corrupted=:
a848cd7e
SC
1515 fi;;
1516 esac
1517 # Pass precious variables to config.status.
1518 if test "$ac_new_set" = set; then
1519 case $ac_new_val in
1520 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 *) ac_arg=$ac_var=$ac_new_val ;;
1523 esac
1524 case " $ac_configure_args " in
1525 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1526 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527 esac
1528 fi
1529done
1530if $ac_cache_corrupted; then
1531 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535 { (exit 1); exit 1; }; }
1536fi
1537
1538ac_ext=c
1539ac_cpp='$CPP $CPPFLAGS'
1540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543
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
1573ac_aux_dir=
1574for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1575 if test -f $ac_dir/install-sh; then
1576 ac_aux_dir=$ac_dir
1577 ac_install_sh="$ac_aux_dir/install-sh -c"
1578 break
1579 elif test -f $ac_dir/install.sh; then
1580 ac_aux_dir=$ac_dir
1581 ac_install_sh="$ac_aux_dir/install.sh -c"
1582 break
1583 elif test -f $ac_dir/shtool; then
1584 ac_aux_dir=$ac_dir
1585 ac_install_sh="$ac_aux_dir/shtool install -c"
1586 break
1587 fi
1588done
1589if test -z "$ac_aux_dir"; then
1590 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1591echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1592 { (exit 1); exit 1; }; }
1593fi
1594ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1595ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1596ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1597
1598# Make sure we can run config.sub.
1599$ac_config_sub sun4 >/dev/null 2>&1 ||
1600 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1601echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1602 { (exit 1); exit 1; }; }
1603
1604echo "$as_me:$LINENO: checking build system type" >&5
1605echo $ECHO_N "checking build system type... $ECHO_C" >&6
1606if test "${ac_cv_build+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608else
1609 ac_cv_build_alias=$build_alias
1610test -z "$ac_cv_build_alias" &&
1611 ac_cv_build_alias=`$ac_config_guess`
1612test -z "$ac_cv_build_alias" &&
1613 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1614echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1615 { (exit 1); exit 1; }; }
1616ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1618echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621fi
1622echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1623echo "${ECHO_T}$ac_cv_build" >&6
1624build=$ac_cv_build
1625build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630echo "$as_me:$LINENO: checking host system type" >&5
1631echo $ECHO_N "checking host system type... $ECHO_C" >&6
1632if test "${ac_cv_host+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635 ac_cv_host_alias=$host_alias
1636test -z "$ac_cv_host_alias" &&
1637 ac_cv_host_alias=$ac_cv_build_alias
1638ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1640echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1641 { (exit 1); exit 1; }; }
1642
1643fi
1644echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1645echo "${ECHO_T}$ac_cv_host" >&6
1646host=$ac_cv_host
1647host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652echo "$as_me:$LINENO: checking target system type" >&5
1653echo $ECHO_N "checking target system type... $ECHO_C" >&6
1654if test "${ac_cv_target+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1656else
1657 ac_cv_target_alias=$target_alias
1658test "x$ac_cv_target_alias" = "x" &&
1659 ac_cv_target_alias=$ac_cv_host_alias
1660ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1661 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1662echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1663 { (exit 1); exit 1; }; }
1664
1665fi
1666echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1667echo "${ECHO_T}$ac_cv_target" >&6
1668target=$ac_cv_target
1669target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1670target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1671target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672
1673
1674# The aliases save the names the user supplied, while $host etc.
1675# will get canonicalized.
1676test -n "$target_alias" &&
1677 test "$program_prefix$program_suffix$program_transform_name" = \
1678 NONENONEs,x,x, &&
1679 program_prefix=${target_alias}-
1680
1681
1682
ceec2216 1683wx_major_version_number=2
dd8df4fc
VZ
1684wx_minor_version_number=7
1685wx_release_number=0
1686wx_subrelease_number=0
a848cd7e 1687
ceec2216
RL
1688WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1689WX_VERSION=$WX_RELEASE.$wx_release_number
1690WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1691
ceec2216 1692WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1693
a848cd7e
SC
1694
1695
1696
1697USE_UNIX=1
1698USE_OS2=0
1699USE_WIN32=0
1700USE_DOS=0
1701USE_BEOS=0
1702USE_MAC=0
1703
1704USE_AIX=
1705USE_BSD= USE_DARWIN= USE_FREEBSD=
1706USE_GNU= USE_HPUX=
1707USE_LINUX=
1708USE_NETBSD=
1709USE_OPENBSD=
1710USE_OSF= USE_SGI=
1711USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1712USE_ULTRIX=
1713USE_UNIXWARE=
1714
1715USE_ALPHA=
1716
1717NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1718
1719ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1720
1721DEFAULT_wxUSE_COCOA=0
1722DEFAULT_wxUSE_GTK=0
1723DEFAULT_wxUSE_MAC=0
1724DEFAULT_wxUSE_MGL=0
1725DEFAULT_wxUSE_MICROWIN=0
1726DEFAULT_wxUSE_MOTIF=0
1727DEFAULT_wxUSE_MSW=0
1728DEFAULT_wxUSE_PM=0
1729DEFAULT_wxUSE_X11=0
1730
1731DEFAULT_DEFAULT_wxUSE_COCOA=0
1732DEFAULT_DEFAULT_wxUSE_GTK=0
1733DEFAULT_DEFAULT_wxUSE_MAC=0
1734DEFAULT_DEFAULT_wxUSE_MGL=0
1735DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1736DEFAULT_DEFAULT_wxUSE_MOTIF=0
1737DEFAULT_DEFAULT_wxUSE_MSW=0
1738DEFAULT_DEFAULT_wxUSE_PM=0
1739DEFAULT_DEFAULT_wxUSE_X11=0
1740
1741PROGRAM_EXT=
1742SO_SUFFIX=so
1743SAMPLES_RPATH_FLAG=
1744SAMPLES_RPATH_POSTLINK=
1745
a03b8b04
RD
1746DEFAULT_STD_FLAG=yes
1747
a848cd7e
SC
1748case "${host}" in
1749 *-hp-hpux* )
1750 USE_HPUX=1
1751 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1752 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1753 SO_SUFFIX=sl
1754 cat >>confdefs.h <<\_ACEOF
1755#define __HPUX__ 1
1756_ACEOF
1757
2eef8513 1758
c92ad099 1759 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1760 ;;
1761 *-*-linux* )
1762 USE_LINUX=1
1763 cat >>confdefs.h <<\_ACEOF
1764#define __LINUX__ 1
1765_ACEOF
1766
1767 TMP=`uname -m`
1768 if test "x$TMP" = "xalpha"; then
1769 USE_ALPHA=1
1770 cat >>confdefs.h <<\_ACEOF
1771#define __ALPHA__ 1
1772_ACEOF
1773
1774 fi
1775 DEFAULT_DEFAULT_wxUSE_GTK=1
1776 ;;
1777 *-*-gnu* | *-*-k*bsd*-gnu )
1778 USE_GNU=1
1779 TMP=`uname -m`
1780 if test "x$TMP" = "xalpha"; then
1781 USE_ALPHA=1
1782 cat >>confdefs.h <<\_ACEOF
1783#define __ALPHA__ 1
1784_ACEOF
1785
1786 fi
1787 DEFAULT_DEFAULT_wxUSE_GTK=1
1788 ;;
1789 *-*-irix5* | *-*-irix6* )
1790 USE_SGI=1
1791 USE_SVR4=1
1792 cat >>confdefs.h <<\_ACEOF
1793#define __SGI__ 1
1794_ACEOF
1795
1796 cat >>confdefs.h <<\_ACEOF
1797#define __SVR4__ 1
1798_ACEOF
1799
1800 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1801 ;;
1802 *-*-solaris2* )
1803 USE_SUN=1
1804 USE_SOLARIS=1
1805 USE_SVR4=1
1806 cat >>confdefs.h <<\_ACEOF
1807#define __SUN__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __SOLARIS__ 1
1812_ACEOF
1813
1814 cat >>confdefs.h <<\_ACEOF
1815#define __SVR4__ 1
1816_ACEOF
1817
1818 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1819 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1820 ;;
1821 *-*-sunos4* )
1822 USE_SUN=1
1823 USE_SUNOS=1
1824 USE_BSD=1
1825 cat >>confdefs.h <<\_ACEOF
1826#define __SUN__ 1
1827_ACEOF
1828
1829 cat >>confdefs.h <<\_ACEOF
1830#define __SUNOS__ 1
1831_ACEOF
1832
1833 cat >>confdefs.h <<\_ACEOF
1834#define __BSD__ 1
1835_ACEOF
1836
1837 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1838 ;;
1839 *-*-freebsd*)
1840 USE_BSD=1
1841 USE_FREEBSD=1
1842 cat >>confdefs.h <<\_ACEOF
1843#define __FREEBSD__ 1
1844_ACEOF
1845
1846 cat >>confdefs.h <<\_ACEOF
1847#define __BSD__ 1
1848_ACEOF
1849
1850 DEFAULT_DEFAULT_wxUSE_GTK=1
1851 ;;
1852 *-*-openbsd*)
1853 USE_BSD=1
1854 USE_OPENBSD=1
1855 cat >>confdefs.h <<\_ACEOF
1856#define __OPENBSD__ 1
1857_ACEOF
1858
1859 cat >>confdefs.h <<\_ACEOF
1860#define __BSD__ 1
1861_ACEOF
1862
1863 DEFAULT_DEFAULT_wxUSE_GTK=1
1864 ;;
1865 *-*-netbsd*)
1866 USE_BSD=1
1867 USE_NETBSD=1
1868 cat >>confdefs.h <<\_ACEOF
1869#define __NETBSD__ 1
1870_ACEOF
1871
1872 cat >>confdefs.h <<\_ACEOF
1873#define __BSD__ 1
1874_ACEOF
1875
1876 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1877 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1878
def7c04a 1879 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1880 ;;
1881 *-*-osf* )
1882 USE_ALPHA=1
1883 USE_OSF=1
1884 cat >>confdefs.h <<\_ACEOF
1885#define __ALPHA__ 1
1886_ACEOF
1887
1888 cat >>confdefs.h <<\_ACEOF
1889#define __OSF__ 1
1890_ACEOF
1891
1892 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1893 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1894 ;;
1895 *-*-dgux5* )
1896 USE_ALPHA=1
1897 USE_SVR4=1
1898 cat >>confdefs.h <<\_ACEOF
1899#define __ALPHA__ 1
1900_ACEOF
1901
1902 cat >>confdefs.h <<\_ACEOF
1903#define __SVR4__ 1
1904_ACEOF
1905
1906 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1907 ;;
1908 *-*-sysv5* )
1909 USE_SYSV=1
1910 USE_SVR4=1
1911 cat >>confdefs.h <<\_ACEOF
1912#define __SYSV__ 1
1913_ACEOF
1914
1915 cat >>confdefs.h <<\_ACEOF
1916#define __SVR4__ 1
1917_ACEOF
1918
1919 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1920 ;;
1921 *-*-aix* )
1922 USE_AIX=1
1923 USE_SYSV=1
1924 USE_SVR4=1
1925 SO_SUFFIX=a
1926 cat >>confdefs.h <<\_ACEOF
1927#define __AIX__ 1
1928_ACEOF
1929
1930 cat >>confdefs.h <<\_ACEOF
1931#define __SYSV__ 1
1932_ACEOF
1933
1934 cat >>confdefs.h <<\_ACEOF
1935#define __SVR4__ 1
1936_ACEOF
1937
1938 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1939 ;;
1940
1941 *-*-*UnixWare*)
1942 USE_SYSV=1
1943 USE_SVR4=1
1944 USE_UNIXWARE=1
1945 cat >>confdefs.h <<\_ACEOF
1946#define __UNIXWARE__ 1
1947_ACEOF
1948
1949 ;;
1950
1951 *-*-cygwin* | *-*-mingw32* )
1952 SO_SUFFIX=dll
1953 PROGRAM_EXT=".exe"
a848cd7e 1954 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1955 DEFAULT_STD_FLAG=no
a848cd7e
SC
1956 ;;
1957
1958 *-pc-msdosdjgpp )
1959 USE_UNIX=0
1960 USE_DOS=1
1961 cat >>confdefs.h <<\_ACEOF
1962#define __DOS__ 1
1963_ACEOF
1964
1965 PROGRAM_EXT=".exe"
1966 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1967 ;;
1968
1969 *-pc-os2_emx | *-pc-os2-emx )
1970 cat >>confdefs.h <<\_ACEOF
1971#define __EMX__ 1
1972_ACEOF
1973
1974 USE_OS2=1
1975 cat >>confdefs.h <<\_ACEOF
1976#define __OS2__ 1
1977_ACEOF
1978
1979 PROGRAM_EXT=".exe"
1980 DEFAULT_DEFAULT_wxUSE_PM=1
1981 CXX=gcc
1982 LDFLAGS="$LDFLAGS -Zcrtdll"
1983 ac_executable_extensions=".exe"
1984 export ac_executable_extensions
1985 ac_save_IFS="$IFS"
1986 IFS='\\'
1987 ac_TEMP_PATH=
1988 for ac_dir in $PATH; do
1989 IFS=$ac_save_IFS
1990 if test -z "$ac_TEMP_PATH"; then
1991 ac_TEMP_PATH="$ac_dir"
1992 else
1993 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1994 fi
1995 done
1996 export PATH="$ac_TEMP_PATH"
1997 unset ac_TEMP_PATH
a03b8b04 1998 DEFAULT_STD_FLAG=no
a848cd7e
SC
1999 ;;
2000
cfda0ea8 2001 *-*-darwin* )
a848cd7e
SC
2002 USE_BSD=1
2003 USE_DARWIN=1
2004 SO_SUFFIX=dylib
2005 cat >>confdefs.h <<\_ACEOF
2006#define __BSD__ 1
2007_ACEOF
2008
2009 cat >>confdefs.h <<\_ACEOF
2010#define __DARWIN__ 1
a848cd7e
SC
2011_ACEOF
2012
2013 cat >>confdefs.h <<\_ACEOF
2014#define TARGET_CARBON 1
2015_ACEOF
2016
2017 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2018 DEFAULT_STD_FLAG=no
a848cd7e 2019 ;;
1e9e8aba
DE
2020 powerpc-apple-macos* )
2021 USE_UNIX=0
2022 ac_cv_c_bigendian=yes
2023 SO_SUFFIX=shlib
2024 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2025 DEFAULT_STD_FLAG=no
1e9e8aba 2026 ;;
a848cd7e
SC
2027
2028 *-*-beos* )
2029 USE_BEOS=1
2030 cat >>confdefs.h <<\_ACEOF
2031#define __BEOS__ 1
2032_ACEOF
2033
2034 ;;
2035
2036 *)
2037 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2038echo "$as_me: error: unknown system type ${host}." >&2;}
2039 { (exit 1); exit 1; }; }
2040esac
2041
2042
2043
2044
2045 wx_arg_cache_file="configarg.cache"
2046 echo "loading argument cache $wx_arg_cache_file"
2047 rm -f ${wx_arg_cache_file}.tmp
2048 touch ${wx_arg_cache_file}.tmp
2049 touch ${wx_arg_cache_file}
2050
2051
2052DEBUG_CONFIGURE=0
2053if test $DEBUG_CONFIGURE = 1; then
2054 DEFAULT_wxUSE_UNIVERSAL=no
2055 DEFAULT_wxUSE_STL=no
2056
2057 DEFAULT_wxUSE_NANOX=no
2058
2059 DEFAULT_wxUSE_THREADS=yes
2060
2061 DEFAULT_wxUSE_SHARED=yes
2062 DEFAULT_wxUSE_OPTIMISE=no
2063 DEFAULT_wxUSE_PROFILE=no
2064 DEFAULT_wxUSE_NO_DEPS=no
2065 DEFAULT_wxUSE_NO_RTTI=no
2066 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2067 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2068 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2069 DEFAULT_wxUSE_PERMISSIVE=no
2070 DEFAULT_wxUSE_DEBUG_FLAG=yes
2071 DEFAULT_wxUSE_DEBUG_INFO=yes
2072 DEFAULT_wxUSE_DEBUG_GDB=yes
2073 DEFAULT_wxUSE_MEM_TRACING=no
2074 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2075 DEFAULT_wxUSE_DMALLOC=no
2076 DEFAULT_wxUSE_APPLE_IEEE=no
2077
2078 DEFAULT_wxUSE_EXCEPTIONS=no
2079 DEFAULT_wxUSE_LOG=yes
2080 DEFAULT_wxUSE_LOGWINDOW=no
2081 DEFAULT_wxUSE_LOGGUI=no
2082 DEFAULT_wxUSE_LOGDIALOG=no
2083
2084 DEFAULT_wxUSE_GUI=yes
2085 DEFAULT_wxUSE_CONTROLS=no
2086
2087 DEFAULT_wxUSE_REGEX=no
2088 DEFAULT_wxUSE_XML=no
2089 DEFAULT_wxUSE_EXPAT=no
2090 DEFAULT_wxUSE_ZLIB=no
2091 DEFAULT_wxUSE_LIBPNG=no
2092 DEFAULT_wxUSE_LIBJPEG=no
2093 DEFAULT_wxUSE_LIBTIFF=no
2094 DEFAULT_wxUSE_LIBXPM=no
2095 DEFAULT_wxUSE_LIBMSPACK=no
2096 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2097 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2098 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2099 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2100 DEFAULT_wxUSE_ODBC=no
2101 DEFAULT_wxUSE_OPENGL=no
2102
2103 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2104 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2105 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2106 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2107 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2108 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2109 DEFAULT_wxUSE_CMDLINE_PARSER=no
2110 DEFAULT_wxUSE_DATETIME=no
2111 DEFAULT_wxUSE_TIMER=no
2112 DEFAULT_wxUSE_STOPWATCH=no
2113 DEFAULT_wxUSE_FILE=no
2114 DEFAULT_wxUSE_FFILE=no
07158944 2115 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2116 DEFAULT_wxUSE_TEXTBUFFER=no
2117 DEFAULT_wxUSE_TEXTFILE=no
2118 DEFAULT_wxUSE_SOUND=no
3b57de8b 2119 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2120 DEFAULT_wxUSE_GSTREAMER8=no
a848cd7e
SC
2121 DEFAULT_wxUSE_INTL=no
2122 DEFAULT_wxUSE_CONFIG=no
2123 DEFAULT_wxUSE_FONTMAP=no
2124 DEFAULT_wxUSE_STREAMS=no
2125 DEFAULT_wxUSE_SOCKETS=no
2126 DEFAULT_wxUSE_OLE=no
2127 DEFAULT_wxUSE_DATAOBJ=no
2128 DEFAULT_wxUSE_DIALUP_MANAGER=no
2129 DEFAULT_wxUSE_JOYSTICK=no
2130 DEFAULT_wxUSE_DYNLIB_CLASS=no
2131 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2132 DEFAULT_wxUSE_LONGLONG=no
2133 DEFAULT_wxUSE_GEOMETRY=no
2134
2135 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2136 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2137 DEFAULT_wxUSE_POSTSCRIPT=no
2138
2139 DEFAULT_wxUSE_CLIPBOARD=no
2140 DEFAULT_wxUSE_TOOLTIPS=no
2141 DEFAULT_wxUSE_DRAG_AND_DROP=no
2142 DEFAULT_wxUSE_DRAGIMAGE=no
2143 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2144 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2145
8a7b1113 2146 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2147 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2148 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2149 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2150
2151 DEFAULT_wxUSE_RESOURCES=no
2152 DEFAULT_wxUSE_CONSTRAINTS=no
2153 DEFAULT_wxUSE_IPC=no
2154 DEFAULT_wxUSE_HELP=no
2155 DEFAULT_wxUSE_MS_HTML_HELP=no
2156 DEFAULT_wxUSE_WXHTML_HELP=no
2157 DEFAULT_wxUSE_TREELAYOUT=no
2158 DEFAULT_wxUSE_METAFILE=no
2159 DEFAULT_wxUSE_MIMETYPE=no
2160 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2161 DEFAULT_wxUSE_PROTOCOL=no
2162 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2163 DEFAULT_wxUSE_PROTOCOL_FTP=no
2164 DEFAULT_wxUSE_PROTOCOL_FILE=no
2165 DEFAULT_wxUSE_URL=no
2166
2167 DEFAULT_wxUSE_COMMONDLGS=no
2168 DEFAULT_wxUSE_CHOICEDLG=no
2169 DEFAULT_wxUSE_COLOURDLG=no
2170 DEFAULT_wxUSE_DIRDLG=no
2171 DEFAULT_wxUSE_FILEDLG=no
2172 DEFAULT_wxUSE_FINDREPLDLG=no
2173 DEFAULT_wxUSE_FONTDLG=no
2174 DEFAULT_wxUSE_MSGDLG=no
2175 DEFAULT_wxUSE_NUMBERDLG=no
2176 DEFAULT_wxUSE_TEXTDLG=no
2177 DEFAULT_wxUSE_SPLASH=no
2178 DEFAULT_wxUSE_STARTUP_TIPS=no
2179 DEFAULT_wxUSE_PROGRESSDLG=no
2180 DEFAULT_wxUSE_WIZARDDLG=no
2181
2182 DEFAULT_wxUSE_MENUS=no
2183 DEFAULT_wxUSE_MINIFRAME=no
2184 DEFAULT_wxUSE_HTML=no
91dea314 2185 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2186 DEFAULT_wxUSE_XRC=no
646b6ec1 2187 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2188 DEFAULT_wxUSE_FILESYSTEM=no
2189 DEFAULT_wxUSE_FS_INET=no
2190 DEFAULT_wxUSE_FS_ZIP=no
2191 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2192 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2193 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2194 DEFAULT_wxUSE_VALIDATORS=no
2195
2196 DEFAULT_wxUSE_ACCEL=no
2197 DEFAULT_wxUSE_BUTTON=no
2198 DEFAULT_wxUSE_BMPBUTTON=no
2199 DEFAULT_wxUSE_CALCTRL=no
2200 DEFAULT_wxUSE_CARET=no
2201 DEFAULT_wxUSE_CHECKBOX=no
2202 DEFAULT_wxUSE_CHECKLST=no
2203 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2204 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2205 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2206 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2207 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2208 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2209 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2210 DEFAULT_wxUSE_DIRPICKERCTRL=no
2211 DEFAULT_wxUSE_FILEPICKERCTRL=no
2212 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
2213 DEFAULT_wxUSE_GAUGE=no
2214 DEFAULT_wxUSE_GRID=no
6954625c 2215 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2216 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2217 DEFAULT_wxUSE_IMAGLIST=no
2218 DEFAULT_wxUSE_LISTBOOK=no
2219 DEFAULT_wxUSE_LISTBOX=no
2220 DEFAULT_wxUSE_LISTCTRL=no
2221 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2222 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2223 DEFAULT_wxUSE_RADIOBOX=no
2224 DEFAULT_wxUSE_RADIOBTN=no
2225 DEFAULT_wxUSE_SASH=no
2226 DEFAULT_wxUSE_SCROLLBAR=no
2227 DEFAULT_wxUSE_SLIDER=no
2228 DEFAULT_wxUSE_SPINBTN=no
2229 DEFAULT_wxUSE_SPINCTRL=no
2230 DEFAULT_wxUSE_SPLITTER=no
2231 DEFAULT_wxUSE_STATBMP=no
2232 DEFAULT_wxUSE_STATBOX=no
2233 DEFAULT_wxUSE_STATLINE=no
2234 DEFAULT_wxUSE_STATTEXT=no
2235 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2236 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2237 DEFAULT_wxUSE_TEXTCTRL=no
2238 DEFAULT_wxUSE_TOGGLEBTN=no
2239 DEFAULT_wxUSE_TOOLBAR=no
2240 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2241 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2242 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2243 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2244 DEFAULT_wxUSE_TREECTRL=no
2245 DEFAULT_wxUSE_POPUPWIN=no
2246 DEFAULT_wxUSE_TIPWINDOW=no
2247
2248 DEFAULT_wxUSE_UNICODE=no
2249 DEFAULT_wxUSE_UNICODE_MSLU=no
2250 DEFAULT_wxUSE_WCSRTOMBS=no
2251
2252 DEFAULT_wxUSE_PALETTE=no
2253 DEFAULT_wxUSE_IMAGE=no
2254 DEFAULT_wxUSE_GIF=no
2255 DEFAULT_wxUSE_PCX=no
2256 DEFAULT_wxUSE_PNM=no
2257 DEFAULT_wxUSE_IFF=no
2258 DEFAULT_wxUSE_XPM=no
2259 DEFAULT_wxUSE_ICO_CUR=no
2260 DEFAULT_wxUSE_ACCESSIBILITY=no
2261
2262 DEFAULT_wxUSE_MONOLITHIC=no
2263 DEFAULT_wxUSE_PLUGINS=no
2264 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2265else
2266 DEFAULT_wxUSE_UNIVERSAL=no
2267 DEFAULT_wxUSE_STL=no
2268
2269 DEFAULT_wxUSE_NANOX=no
2270
2271 DEFAULT_wxUSE_THREADS=yes
2272
2273 DEFAULT_wxUSE_SHARED=yes
2274 DEFAULT_wxUSE_OPTIMISE=yes
2275 DEFAULT_wxUSE_PROFILE=no
2276 DEFAULT_wxUSE_NO_DEPS=no
2277 DEFAULT_wxUSE_NO_RTTI=no
2278 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2279 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2280 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2281 DEFAULT_wxUSE_PERMISSIVE=no
2282 DEFAULT_wxUSE_DEBUG_FLAG=no
2283 DEFAULT_wxUSE_DEBUG_INFO=no
2284 DEFAULT_wxUSE_DEBUG_GDB=no
2285 DEFAULT_wxUSE_MEM_TRACING=no
2286 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2287 DEFAULT_wxUSE_DMALLOC=no
2288 DEFAULT_wxUSE_APPLE_IEEE=yes
2289
2290 DEFAULT_wxUSE_EXCEPTIONS=yes
2291 DEFAULT_wxUSE_LOG=yes
2292 DEFAULT_wxUSE_LOGWINDOW=yes
2293 DEFAULT_wxUSE_LOGGUI=yes
2294 DEFAULT_wxUSE_LOGDIALOG=yes
2295
2296 DEFAULT_wxUSE_GUI=yes
2297
2298 DEFAULT_wxUSE_REGEX=yes
2299 DEFAULT_wxUSE_XML=yes
2300 DEFAULT_wxUSE_EXPAT=yes
2301 DEFAULT_wxUSE_ZLIB=yes
2302 DEFAULT_wxUSE_LIBPNG=yes
2303 DEFAULT_wxUSE_LIBJPEG=yes
2304 DEFAULT_wxUSE_LIBTIFF=yes
2305 DEFAULT_wxUSE_LIBXPM=yes
2306 DEFAULT_wxUSE_LIBMSPACK=yes
2307 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2308 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2309 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2310 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2311 DEFAULT_wxUSE_ODBC=no
52cb607e 2312 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2313
2314 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2315 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2316 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2317 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2318 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2319 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2320 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2321 DEFAULT_wxUSE_DATETIME=yes
2322 DEFAULT_wxUSE_TIMER=yes
2323 DEFAULT_wxUSE_STOPWATCH=yes
2324 DEFAULT_wxUSE_FILE=yes
2325 DEFAULT_wxUSE_FFILE=yes
07158944 2326 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2327 DEFAULT_wxUSE_TEXTBUFFER=yes
2328 DEFAULT_wxUSE_TEXTFILE=yes
2329 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2330 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2331 DEFAULT_wxUSE_GSTREAMER8=no
a848cd7e
SC
2332 DEFAULT_wxUSE_INTL=yes
2333 DEFAULT_wxUSE_CONFIG=yes
2334 DEFAULT_wxUSE_FONTMAP=yes
2335 DEFAULT_wxUSE_STREAMS=yes
2336 DEFAULT_wxUSE_SOCKETS=yes
2337 DEFAULT_wxUSE_OLE=yes
2338 DEFAULT_wxUSE_DATAOBJ=yes
2339 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2340 DEFAULT_wxUSE_JOYSTICK=yes
2341 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2342 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2343 DEFAULT_wxUSE_LONGLONG=yes
2344 DEFAULT_wxUSE_GEOMETRY=yes
2345
2346 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2347 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2348 DEFAULT_wxUSE_POSTSCRIPT=yes
2349
2350 DEFAULT_wxUSE_CLIPBOARD=yes
2351 DEFAULT_wxUSE_TOOLTIPS=yes
2352 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2353 DEFAULT_wxUSE_DRAGIMAGE=yes
2354 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2355 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2356
8a7b1113 2357 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2358 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2359 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2360 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2361
2362 DEFAULT_wxUSE_RESOURCES=no
2363 DEFAULT_wxUSE_CONSTRAINTS=yes
2364 DEFAULT_wxUSE_IPC=yes
2365 DEFAULT_wxUSE_HELP=yes
2366 DEFAULT_wxUSE_MS_HTML_HELP=yes
2367 DEFAULT_wxUSE_WXHTML_HELP=yes
2368 DEFAULT_wxUSE_TREELAYOUT=yes
2369 DEFAULT_wxUSE_METAFILE=yes
2370 DEFAULT_wxUSE_MIMETYPE=yes
2371 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2372 DEFAULT_wxUSE_PROTOCOL=yes
2373 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2374 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2375 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2376 DEFAULT_wxUSE_URL=yes
2377
2378 DEFAULT_wxUSE_COMMONDLGS=yes
2379 DEFAULT_wxUSE_CHOICEDLG=yes
2380 DEFAULT_wxUSE_COLOURDLG=yes
2381 DEFAULT_wxUSE_DIRDLG=yes
2382 DEFAULT_wxUSE_FILEDLG=yes
2383 DEFAULT_wxUSE_FINDREPLDLG=yes
2384 DEFAULT_wxUSE_FONTDLG=yes
2385 DEFAULT_wxUSE_MSGDLG=yes
2386 DEFAULT_wxUSE_NUMBERDLG=yes
2387 DEFAULT_wxUSE_TEXTDLG=yes
2388 DEFAULT_wxUSE_SPLASH=yes
2389 DEFAULT_wxUSE_STARTUP_TIPS=yes
2390 DEFAULT_wxUSE_PROGRESSDLG=yes
2391 DEFAULT_wxUSE_WIZARDDLG=yes
2392
2393 DEFAULT_wxUSE_MENUS=yes
2394 DEFAULT_wxUSE_MINIFRAME=yes
2395 DEFAULT_wxUSE_HTML=yes
91dea314 2396 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2397 DEFAULT_wxUSE_XRC=yes
646b6ec1 2398 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2399 DEFAULT_wxUSE_FILESYSTEM=yes
2400 DEFAULT_wxUSE_FS_INET=yes
2401 DEFAULT_wxUSE_FS_ZIP=yes
2402 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2403 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2404 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2405 DEFAULT_wxUSE_VALIDATORS=yes
2406
2407 DEFAULT_wxUSE_ACCEL=yes
2408 DEFAULT_wxUSE_BUTTON=yes
2409 DEFAULT_wxUSE_BMPBUTTON=yes
2410 DEFAULT_wxUSE_CALCTRL=yes
2411 DEFAULT_wxUSE_CARET=yes
2412 DEFAULT_wxUSE_CHECKBOX=yes
2413 DEFAULT_wxUSE_CHECKLST=yes
2414 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2415 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2416 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2417 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2418 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2419 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2420 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2421 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2422 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2423 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2424 DEFAULT_wxUSE_GAUGE=yes
2425 DEFAULT_wxUSE_GRID=yes
6954625c 2426 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2427 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2428 DEFAULT_wxUSE_IMAGLIST=yes
2429 DEFAULT_wxUSE_LISTBOOK=yes
2430 DEFAULT_wxUSE_LISTBOX=yes
2431 DEFAULT_wxUSE_LISTCTRL=yes
2432 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2433 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2434 DEFAULT_wxUSE_RADIOBOX=yes
2435 DEFAULT_wxUSE_RADIOBTN=yes
2436 DEFAULT_wxUSE_SASH=yes
2437 DEFAULT_wxUSE_SCROLLBAR=yes
2438 DEFAULT_wxUSE_SLIDER=yes
2439 DEFAULT_wxUSE_SPINBTN=yes
2440 DEFAULT_wxUSE_SPINCTRL=yes
2441 DEFAULT_wxUSE_SPLITTER=yes
2442 DEFAULT_wxUSE_STATBMP=yes
2443 DEFAULT_wxUSE_STATBOX=yes
2444 DEFAULT_wxUSE_STATLINE=yes
2445 DEFAULT_wxUSE_STATTEXT=yes
2446 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2447 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2448 DEFAULT_wxUSE_TEXTCTRL=yes
2449 DEFAULT_wxUSE_TOGGLEBTN=yes
2450 DEFAULT_wxUSE_TOOLBAR=yes
2451 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2452 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2453 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2454 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2455 DEFAULT_wxUSE_TREECTRL=yes
2456 DEFAULT_wxUSE_POPUPWIN=yes
2457 DEFAULT_wxUSE_TIPWINDOW=yes
2458
78de529b 2459 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2460 DEFAULT_wxUSE_UNICODE_MSLU=yes
2461 DEFAULT_wxUSE_WCSRTOMBS=no
2462
2463 DEFAULT_wxUSE_PALETTE=yes
2464 DEFAULT_wxUSE_IMAGE=yes
2465 DEFAULT_wxUSE_GIF=yes
2466 DEFAULT_wxUSE_PCX=yes
2467 DEFAULT_wxUSE_IFF=no
2468 DEFAULT_wxUSE_PNM=yes
2469 DEFAULT_wxUSE_XPM=yes
2470 DEFAULT_wxUSE_ICO_CUR=yes
2471 DEFAULT_wxUSE_ACCESSIBILITY=no
2472
2473 DEFAULT_wxUSE_MONOLITHIC=no
2474 DEFAULT_wxUSE_PLUGINS=no
2475 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2476
f34ca037 2477 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2478fi
2479
2480
2481
f34ca037 2482
a848cd7e
SC
2483for toolkit in `echo $ALL_TOOLKITS`; do
2484 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2485 if test "x$LINE" != "x" ; then
2486 has_toolkit_in_cache=1
2487 eval "DEFAULT_$LINE"
2488 eval "CACHE_$toolkit=1"
f34ca037
MW
2489
2490 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2491 if test "x$LINE" != "x" ; then
2492 eval "DEFAULT_$LINE"
2493 fi
a848cd7e
SC
2494 fi
2495done
2496
2497
2498
2499 enablestring=
2500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2501echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2502 no_cache=0
2503 # Check whether --enable-gui or --disable-gui was given.
2504if test "${enable_gui+set}" = set; then
2505 enableval="$enable_gui"
2506
2507 if test "$enableval" = yes; then
2508 ac_cv_use_gui='wxUSE_GUI=yes'
2509 else
2510 ac_cv_use_gui='wxUSE_GUI=no'
2511 fi
2512
2513else
2514
2515 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2516 if test "x$LINE" != x ; then
2517 eval "DEFAULT_$LINE"
2518 else
2519 no_cache=1
2520 fi
2521
2522 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2523
2524fi;
2525
2526 eval "$ac_cv_use_gui"
2527 if test "$no_cache" != 1; then
2528 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2529 fi
2530
2531 if test "$wxUSE_GUI" = yes; then
2532 echo "$as_me:$LINENO: result: yes" >&5
2533echo "${ECHO_T}yes" >&6
2534 else
2535 echo "$as_me:$LINENO: result: no" >&5
2536echo "${ECHO_T}no" >&6
2537 fi
2538
2539
2540 enablestring=
2541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2542echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2543 no_cache=0
2544 # Check whether --enable-monolithic or --disable-monolithic was given.
2545if test "${enable_monolithic+set}" = set; then
2546 enableval="$enable_monolithic"
2547
2548 if test "$enableval" = yes; then
2549 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2550 else
2551 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2552 fi
2553
2554else
2555
2556 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2557 if test "x$LINE" != x ; then
2558 eval "DEFAULT_$LINE"
2559 else
2560 no_cache=1
2561 fi
2562
2563 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2564
2565fi;
2566
2567 eval "$ac_cv_use_monolithic"
2568 if test "$no_cache" != 1; then
2569 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2570 fi
2571
2572 if test "$wxUSE_MONOLITHIC" = yes; then
2573 echo "$as_me:$LINENO: result: yes" >&5
2574echo "${ECHO_T}yes" >&6
2575 else
2576 echo "$as_me:$LINENO: result: no" >&5
2577echo "${ECHO_T}no" >&6
2578 fi
2579
2580
2581 enablestring=
2582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2583echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2584 no_cache=0
2585 # Check whether --enable-plugins or --disable-plugins was given.
2586if test "${enable_plugins+set}" = set; then
2587 enableval="$enable_plugins"
2588
2589 if test "$enableval" = yes; then
2590 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2591 else
2592 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2593 fi
2594
2595else
2596
2597 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2598 if test "x$LINE" != x ; then
2599 eval "DEFAULT_$LINE"
2600 else
2601 no_cache=1
2602 fi
2603
2604 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2605
2606fi;
2607
2608 eval "$ac_cv_use_plugins"
2609 if test "$no_cache" != 1; then
2610 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2611 fi
2612
2613 if test "$wxUSE_PLUGINS" = yes; then
2614 echo "$as_me:$LINENO: result: yes" >&5
2615echo "${ECHO_T}yes" >&6
2616 else
2617 echo "$as_me:$LINENO: result: no" >&5
2618echo "${ECHO_T}no" >&6
2619 fi
2620
2621
1c14217d
VZ
2622 withstring=without
2623 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2624echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2625 no_cache=0
2626
2627# Check whether --with-subdirs or --without-subdirs was given.
2628if test "${with_subdirs+set}" = set; then
2629 withval="$with_subdirs"
2630
2631 if test "$withval" = yes; then
2632 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2633 else
2634 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2635 fi
2636
2637else
2638
2639 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2640 if test "x$LINE" != x ; then
2641 eval "DEFAULT_$LINE"
2642 else
2643 no_cache=1
2644 fi
2645
2646 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2647
2648fi;
2649
2650 eval "$ac_cv_use_subdirs"
2651 if test "$no_cache" != 1; then
2652 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2653 fi
2654
2655 if test "$wxWITH_SUBDIRS" = yes; then
2656 echo "$as_me:$LINENO: result: yes" >&5
2657echo "${ECHO_T}yes" >&6
2658 else
2659 echo "$as_me:$LINENO: result: no" >&5
2660echo "${ECHO_T}no" >&6
2661 fi
2662
2663
a848cd7e
SC
2664if test "$wxUSE_GUI" = "yes"; then
2665
2666
2667 enablestring=
2668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2669echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2670 no_cache=0
2671 # Check whether --enable-universal or --disable-universal was given.
2672if test "${enable_universal+set}" = set; then
2673 enableval="$enable_universal"
2674
2675 if test "$enableval" = yes; then
2676 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2677 else
2678 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2679 fi
2680
2681else
2682
2683 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2684 if test "x$LINE" != x ; then
2685 eval "DEFAULT_$LINE"
2686 else
2687 no_cache=1
2688 fi
2689
2690 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2691
2692fi;
2693
2694 eval "$ac_cv_use_universal"
2695 if test "$no_cache" != 1; then
2696 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2697 fi
2698
2699 if test "$wxUSE_UNIVERSAL" = yes; then
2700 echo "$as_me:$LINENO: result: yes" >&5
2701echo "${ECHO_T}yes" >&6
2702 else
2703 echo "$as_me:$LINENO: result: no" >&5
2704echo "${ECHO_T}no" >&6
2705 fi
2706
2707
2708# Check whether --with-gtk or --without-gtk was given.
2709if test "${with_gtk+set}" = set; then
2710 withval="$with_gtk"
2711 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2712fi;
2713
2714# Check whether --with-motif or --without-motif was given.
2715if test "${with_motif+set}" = set; then
2716 withval="$with_motif"
2717 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2718fi;
2719
2720# Check whether --with-mac or --without-mac was given.
2721if test "${with_mac+set}" = set; then
2722 withval="$with_mac"
c228d3a4 2723 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2724fi;
2725
2726# Check whether --with-cocoa or --without-cocoa was given.
2727if test "${with_cocoa+set}" = set; then
2728 withval="$with_cocoa"
c228d3a4 2729 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2730fi;
2731
2732# Check whether --with-wine or --without-wine was given.
2733if test "${with_wine+set}" = set; then
2734 withval="$with_wine"
2735 wxUSE_WINE="$withval" CACHE_WINE=1
2736fi;
2737
2738# Check whether --with-msw or --without-msw was given.
2739if test "${with_msw+set}" = set; then
2740 withval="$with_msw"
2741 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2742fi;
2743
2744# Check whether --with-pm or --without-pm was given.
2745if test "${with_pm+set}" = set; then
2746 withval="$with_pm"
2747 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2748fi;
2749
2750# Check whether --with-mgl or --without-mgl was given.
2751if test "${with_mgl+set}" = set; then
2752 withval="$with_mgl"
2753 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2754fi;
2755
2756# Check whether --with-microwin or --without-microwin was given.
2757if test "${with_microwin+set}" = set; then
2758 withval="$with_microwin"
2759 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2760fi;
2761
2762# Check whether --with-x11 or --without-x11 was given.
2763if test "${with_x11+set}" = set; then
2764 withval="$with_x11"
2765 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2766fi;
2767
2768 enablestring=
2769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2770echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2771 no_cache=0
2772 # Check whether --enable-nanox or --disable-nanox was given.
2773if test "${enable_nanox+set}" = set; then
2774 enableval="$enable_nanox"
2775
2776 if test "$enableval" = yes; then
2777 ac_cv_use_nanox='wxUSE_NANOX=yes'
2778 else
2779 ac_cv_use_nanox='wxUSE_NANOX=no'
2780 fi
2781
2782else
2783
2784 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2785 if test "x$LINE" != x ; then
2786 eval "DEFAULT_$LINE"
2787 else
2788 no_cache=1
2789 fi
2790
2791 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2792
2793fi;
2794
2795 eval "$ac_cv_use_nanox"
2796 if test "$no_cache" != 1; then
2797 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2798 fi
2799
2800 if test "$wxUSE_NANOX" = yes; then
2801 echo "$as_me:$LINENO: result: yes" >&5
2802echo "${ECHO_T}yes" >&6
2803 else
2804 echo "$as_me:$LINENO: result: no" >&5
2805echo "${ECHO_T}no" >&6
2806 fi
2807
2808
f34ca037
MW
2809# Check whether --enable-gtk2 or --disable-gtk2 was given.
2810if test "${enable_gtk2+set}" = set; then
2811 enableval="$enable_gtk2"
2812 wxUSE_GTK2="$enableval"
2813fi;
a848cd7e 2814
a848cd7e
SC
2815 enablestring=
2816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2817echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2818 no_cache=0
2819 # Check whether --enable-gpe or --disable-gpe was given.
2820if test "${enable_gpe+set}" = set; then
2821 enableval="$enable_gpe"
2822
2823 if test "$enableval" = yes; then
2824 ac_cv_use_gpe='wxUSE_GPE=yes'
2825 else
2826 ac_cv_use_gpe='wxUSE_GPE=no'
2827 fi
2828
2829else
2830
2831 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2832 if test "x$LINE" != x ; then
2833 eval "DEFAULT_$LINE"
2834 else
2835 no_cache=1
2836 fi
2837
2838 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2839
2840fi;
2841
2842 eval "$ac_cv_use_gpe"
2843 if test "$no_cache" != 1; then
2844 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2845 fi
2846
2847 if test "$wxUSE_GPE" = yes; then
2848 echo "$as_me:$LINENO: result: yes" >&5
2849echo "${ECHO_T}yes" >&6
2850 else
2851 echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6
2853 fi
2854
2855
2856
2857 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2858echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2859 no_cache=0
2860
2861# Check whether --with-libpng or --without-libpng was given.
2862if test "${with_libpng+set}" = set; then
2863 withval="$with_libpng"
2864
2865 if test "$withval" = yes; then
2866 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2867 elif test "$withval" = no; then
2868 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2869 elif test "$withval" = sys; then
2870 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2871 elif test "$withval" = builtin; then
2872 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2873 else
2874 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2875echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2876 { (exit 1); exit 1; }; }
2877 fi
2878
2879else
2880
2881 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2882 if test "x$LINE" != x ; then
2883 eval "DEFAULT_$LINE"
2884 else
2885 no_cache=1
2886 fi
2887
2888 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2889
2890fi;
2891
2892 eval "$ac_cv_use_libpng"
2893 if test "$no_cache" != 1; then
2894 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2895 fi
2896
2897 if test "$wxUSE_LIBPNG" = yes; then
2898 echo "$as_me:$LINENO: result: yes" >&5
2899echo "${ECHO_T}yes" >&6
2900 elif test "$wxUSE_LIBPNG" = no; then
2901 echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
2903 elif test "$wxUSE_LIBPNG" = sys; then
2904 echo "$as_me:$LINENO: result: system version" >&5
2905echo "${ECHO_T}system version" >&6
2906 elif test "$wxUSE_LIBPNG" = builtin; then
2907 echo "$as_me:$LINENO: result: builtin version" >&5
2908echo "${ECHO_T}builtin version" >&6
2909 else
2910 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2911echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2912 { (exit 1); exit 1; }; }
2913 fi
2914
2915
2916 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2917echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2918 no_cache=0
2919
2920# Check whether --with-libjpeg or --without-libjpeg was given.
2921if test "${with_libjpeg+set}" = set; then
2922 withval="$with_libjpeg"
2923
2924 if test "$withval" = yes; then
2925 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2926 elif test "$withval" = no; then
2927 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2928 elif test "$withval" = sys; then
2929 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2930 elif test "$withval" = builtin; then
2931 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2932 else
2933 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2934echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2935 { (exit 1); exit 1; }; }
2936 fi
2937
2938else
2939
2940 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2941 if test "x$LINE" != x ; then
2942 eval "DEFAULT_$LINE"
2943 else
2944 no_cache=1
2945 fi
2946
2947 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2948
2949fi;
2950
2951 eval "$ac_cv_use_libjpeg"
2952 if test "$no_cache" != 1; then
2953 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2954 fi
2955
2956 if test "$wxUSE_LIBJPEG" = yes; then
2957 echo "$as_me:$LINENO: result: yes" >&5
2958echo "${ECHO_T}yes" >&6
2959 elif test "$wxUSE_LIBJPEG" = no; then
2960 echo "$as_me:$LINENO: result: no" >&5
2961echo "${ECHO_T}no" >&6
2962 elif test "$wxUSE_LIBJPEG" = sys; then
2963 echo "$as_me:$LINENO: result: system version" >&5
2964echo "${ECHO_T}system version" >&6
2965 elif test "$wxUSE_LIBJPEG" = builtin; then
2966 echo "$as_me:$LINENO: result: builtin version" >&5
2967echo "${ECHO_T}builtin version" >&6
2968 else
2969 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2970echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2971 { (exit 1); exit 1; }; }
2972 fi
2973
2974
2975 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2976echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2977 no_cache=0
2978
2979# Check whether --with-libtiff or --without-libtiff was given.
2980if test "${with_libtiff+set}" = set; then
2981 withval="$with_libtiff"
2982
2983 if test "$withval" = yes; then
2984 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2985 elif test "$withval" = no; then
2986 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2987 elif test "$withval" = sys; then
2988 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2989 elif test "$withval" = builtin; then
2990 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2991 else
2992 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2993echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2994 { (exit 1); exit 1; }; }
2995 fi
2996
2997else
2998
2999 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3000 if test "x$LINE" != x ; then
3001 eval "DEFAULT_$LINE"
3002 else
3003 no_cache=1
3004 fi
3005
3006 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3007
3008fi;
3009
3010 eval "$ac_cv_use_libtiff"
3011 if test "$no_cache" != 1; then
3012 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3013 fi
3014
3015 if test "$wxUSE_LIBTIFF" = yes; then
3016 echo "$as_me:$LINENO: result: yes" >&5
3017echo "${ECHO_T}yes" >&6
3018 elif test "$wxUSE_LIBTIFF" = no; then
3019 echo "$as_me:$LINENO: result: no" >&5
3020echo "${ECHO_T}no" >&6
3021 elif test "$wxUSE_LIBTIFF" = sys; then
3022 echo "$as_me:$LINENO: result: system version" >&5
3023echo "${ECHO_T}system version" >&6
3024 elif test "$wxUSE_LIBTIFF" = builtin; then
3025 echo "$as_me:$LINENO: result: builtin version" >&5
3026echo "${ECHO_T}builtin version" >&6
3027 else
3028 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3029echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3030 { (exit 1); exit 1; }; }
3031 fi
3032
3033
3034 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3035echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3036 no_cache=0
3037
3038# Check whether --with-libxpm or --without-libxpm was given.
3039if test "${with_libxpm+set}" = set; then
3040 withval="$with_libxpm"
3041
3042 if test "$withval" = yes; then
3043 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3044 elif test "$withval" = no; then
3045 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3046 elif test "$withval" = sys; then
3047 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3048 elif test "$withval" = builtin; then
3049 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3050 else
3051 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3052echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3053 { (exit 1); exit 1; }; }
3054 fi
3055
3056else
3057
3058 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3059 if test "x$LINE" != x ; then
3060 eval "DEFAULT_$LINE"
3061 else
3062 no_cache=1
3063 fi
3064
3065 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3066
3067fi;
3068
3069 eval "$ac_cv_use_libxpm"
3070 if test "$no_cache" != 1; then
3071 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3072 fi
3073
3074 if test "$wxUSE_LIBXPM" = yes; then
3075 echo "$as_me:$LINENO: result: yes" >&5
3076echo "${ECHO_T}yes" >&6
3077 elif test "$wxUSE_LIBXPM" = no; then
3078 echo "$as_me:$LINENO: result: no" >&5
3079echo "${ECHO_T}no" >&6
3080 elif test "$wxUSE_LIBXPM" = sys; then
3081 echo "$as_me:$LINENO: result: system version" >&5
3082echo "${ECHO_T}system version" >&6
3083 elif test "$wxUSE_LIBXPM" = builtin; then
3084 echo "$as_me:$LINENO: result: builtin version" >&5
3085echo "${ECHO_T}builtin version" >&6
3086 else
3087 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3088echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3089 { (exit 1); exit 1; }; }
3090 fi
3091
3092
1c14217d
VZ
3093 withstring=
3094 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3095echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3096 no_cache=0
3097
3098# Check whether --with-libmspack or --without-libmspack was given.
3099if test "${with_libmspack+set}" = set; then
3100 withval="$with_libmspack"
3101
3102 if test "$withval" = yes; then
3103 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3104 else
3105 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3106 fi
3107
3108else
3109
3110 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3111 if test "x$LINE" != x ; then
3112 eval "DEFAULT_$LINE"
3113 else
3114 no_cache=1
3115 fi
3116
3117 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3118
3119fi;
3120
3121 eval "$ac_cv_use_libmspack"
3122 if test "$no_cache" != 1; then
3123 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3124 fi
3125
3126 if test "$wxUSE_LIBMSPACK" = yes; then
3127 echo "$as_me:$LINENO: result: yes" >&5
3128echo "${ECHO_T}yes" >&6
3129 else
3130 echo "$as_me:$LINENO: result: no" >&5
3131echo "${ECHO_T}no" >&6
3132 fi
3133
3134
1c14217d
VZ
3135 withstring=
3136 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3137echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3138 no_cache=0
3139
3140# Check whether --with-sdl or --without-sdl was given.
3141if test "${with_sdl+set}" = set; then
3142 withval="$with_sdl"
3143
3144 if test "$withval" = yes; then
3145 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3146 else
3147 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3148 fi
3149
3150else
3151
3152 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3153 if test "x$LINE" != x ; then
3154 eval "DEFAULT_$LINE"
3155 else
3156 no_cache=1
3157 fi
3158
3159 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3160
3161fi;
3162
3163 eval "$ac_cv_use_sdl"
3164 if test "$no_cache" != 1; then
3165 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3166 fi
3167
3168 if test "$wxUSE_LIBSDL" = yes; then
3169 echo "$as_me:$LINENO: result: yes" >&5
3170echo "${ECHO_T}yes" >&6
3171 else
3172 echo "$as_me:$LINENO: result: no" >&5
3173echo "${ECHO_T}no" >&6
3174 fi
3175
3176
1c14217d
VZ
3177 withstring=
3178 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3179echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3180 no_cache=0
3181
3182# Check whether --with-gnomeprint or --without-gnomeprint was given.
3183if test "${with_gnomeprint+set}" = set; then
3184 withval="$with_gnomeprint"
3185
3186 if test "$withval" = yes; then
3187 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3188 else
3189 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3190 fi
3191
3192else
3193
3194 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3195 if test "x$LINE" != x ; then
3196 eval "DEFAULT_$LINE"
3197 else
3198 no_cache=1
3199 fi
3200
3201 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3202
3203fi;
3204
3205 eval "$ac_cv_use_gnomeprint"
3206 if test "$no_cache" != 1; then
3207 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3208 fi
3209
3210 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3211 echo "$as_me:$LINENO: result: yes" >&5
3212echo "${ECHO_T}yes" >&6
3213 else
3214 echo "$as_me:$LINENO: result: no" >&5
3215echo "${ECHO_T}no" >&6
3216 fi
3217
3218
2b850ae1
RR
3219 withstring=
3220 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3221echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3222 no_cache=0
3223
3224# Check whether --with-gnomevfs or --without-gnomevfs was given.
3225if test "${with_gnomevfs+set}" = set; then
3226 withval="$with_gnomevfs"
3227
3228 if test "$withval" = yes; then
3229 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3230 else
3231 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3232 fi
3233
3234else
3235
3236 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3237 if test "x$LINE" != x ; then
3238 eval "DEFAULT_$LINE"
3239 else
3240 no_cache=1
3241 fi
3242
3243 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3244
3245fi;
3246
3247 eval "$ac_cv_use_gnomevfs"
3248 if test "$no_cache" != 1; then
3249 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3250 fi
3251
3252 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3253 echo "$as_me:$LINENO: result: yes" >&5
3254echo "${ECHO_T}yes" >&6
3255 else
3256 echo "$as_me:$LINENO: result: no" >&5
3257echo "${ECHO_T}no" >&6
3258 fi
3259
3260
3565d135
RR
3261 withstring=
3262 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3263echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3264 no_cache=0
3265
3266# Check whether --with-hildon or --without-hildon was given.
3267if test "${with_hildon+set}" = set; then
3268 withval="$with_hildon"
3269
3270 if test "$withval" = yes; then
3271 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3272 else
3273 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3274 fi
3275
3276else
3277
3278 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3279 if test "x$LINE" != x ; then
3280 eval "DEFAULT_$LINE"
3281 else
3282 no_cache=1
3283 fi
3284
3285 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3286
3287fi;
3288
3289 eval "$ac_cv_use_hildon"
3290 if test "$no_cache" != 1; then
3291 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3292 fi
3293
3294 if test "$wxUSE_LIBHILDON" = yes; then
3295 echo "$as_me:$LINENO: result: yes" >&5
3296echo "${ECHO_T}yes" >&6
3297 else
3298 echo "$as_me:$LINENO: result: no" >&5
3299echo "${ECHO_T}no" >&6
3300 fi
3301
3302
1c14217d
VZ
3303 withstring=
3304 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3305echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3306 no_cache=0
3307
3308# Check whether --with-opengl or --without-opengl was given.
3309if test "${with_opengl+set}" = set; then
3310 withval="$with_opengl"
3311
3312 if test "$withval" = yes; then
3313 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3314 else
3315 ac_cv_use_opengl='wxUSE_OPENGL=no'
3316 fi
3317
3318else
3319
3320 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3321 if test "x$LINE" != x ; then
3322 eval "DEFAULT_$LINE"
3323 else
3324 no_cache=1
3325 fi
3326
3327 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3328
3329fi;
3330
3331 eval "$ac_cv_use_opengl"
3332 if test "$no_cache" != 1; then
3333 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3334 fi
3335
3336 if test "$wxUSE_OPENGL" = yes; then
3337 echo "$as_me:$LINENO: result: yes" >&5
3338echo "${ECHO_T}yes" >&6
3339 else
3340 echo "$as_me:$LINENO: result: no" >&5
3341echo "${ECHO_T}no" >&6
3342 fi
3343
3344
3345fi
3346
3347
1c14217d
VZ
3348 withstring=
3349 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3350echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3351 no_cache=0
3352
3353# Check whether --with-dmalloc or --without-dmalloc was given.
3354if test "${with_dmalloc+set}" = set; then
3355 withval="$with_dmalloc"
3356
3357 if test "$withval" = yes; then
3358 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3359 else
3360 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3361 fi
3362
3363else
3364
3365 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3366 if test "x$LINE" != x ; then
3367 eval "DEFAULT_$LINE"
3368 else
3369 no_cache=1
3370 fi
3371
3372 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3373
3374fi;
3375
3376 eval "$ac_cv_use_dmalloc"
3377 if test "$no_cache" != 1; then
3378 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3379 fi
3380
3381 if test "$wxUSE_DMALLOC" = yes; then
3382 echo "$as_me:$LINENO: result: yes" >&5
3383echo "${ECHO_T}yes" >&6
3384 else
3385 echo "$as_me:$LINENO: result: no" >&5
3386echo "${ECHO_T}no" >&6
3387 fi
3388
3389
3390 echo "$as_me:$LINENO: checking for --with-regex" >&5
3391echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3392 no_cache=0
3393
3394# Check whether --with-regex or --without-regex was given.
3395if test "${with_regex+set}" = set; then
3396 withval="$with_regex"
3397
3398 if test "$withval" = yes; then
3399 ac_cv_use_regex='wxUSE_REGEX=yes'
3400 elif test "$withval" = no; then
3401 ac_cv_use_regex='wxUSE_REGEX=no'
3402 elif test "$withval" = sys; then
3403 ac_cv_use_regex='wxUSE_REGEX=sys'
3404 elif test "$withval" = builtin; then
3405 ac_cv_use_regex='wxUSE_REGEX=builtin'
3406 else
3407 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3408echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3409 { (exit 1); exit 1; }; }
3410 fi
3411
3412else
3413
3414 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3415 if test "x$LINE" != x ; then
3416 eval "DEFAULT_$LINE"
3417 else
3418 no_cache=1
3419 fi
3420
3421 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3422
3423fi;
3424
3425 eval "$ac_cv_use_regex"
3426 if test "$no_cache" != 1; then
3427 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3428 fi
3429
3430 if test "$wxUSE_REGEX" = yes; then
3431 echo "$as_me:$LINENO: result: yes" >&5
3432echo "${ECHO_T}yes" >&6
3433 elif test "$wxUSE_REGEX" = no; then
3434 echo "$as_me:$LINENO: result: no" >&5
3435echo "${ECHO_T}no" >&6
3436 elif test "$wxUSE_REGEX" = sys; then
3437 echo "$as_me:$LINENO: result: system version" >&5
3438echo "${ECHO_T}system version" >&6
3439 elif test "$wxUSE_REGEX" = builtin; then
3440 echo "$as_me:$LINENO: result: builtin version" >&5
3441echo "${ECHO_T}builtin version" >&6
3442 else
3443 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3444echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3445 { (exit 1); exit 1; }; }
3446 fi
3447
3448
3449 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3450echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3451 no_cache=0
3452
3453# Check whether --with-zlib or --without-zlib was given.
3454if test "${with_zlib+set}" = set; then
3455 withval="$with_zlib"
3456
3457 if test "$withval" = yes; then
3458 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3459 elif test "$withval" = no; then
3460 ac_cv_use_zlib='wxUSE_ZLIB=no'
3461 elif test "$withval" = sys; then
3462 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3463 elif test "$withval" = builtin; then
3464 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3465 else
3466 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3467echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3468 { (exit 1); exit 1; }; }
3469 fi
3470
3471else
3472
3473 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3474 if test "x$LINE" != x ; then
3475 eval "DEFAULT_$LINE"
3476 else
3477 no_cache=1
3478 fi
3479
3480 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3481
3482fi;
3483
3484 eval "$ac_cv_use_zlib"
3485 if test "$no_cache" != 1; then
3486 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3487 fi
3488
3489 if test "$wxUSE_ZLIB" = yes; then
3490 echo "$as_me:$LINENO: result: yes" >&5
3491echo "${ECHO_T}yes" >&6
3492 elif test "$wxUSE_ZLIB" = no; then
3493 echo "$as_me:$LINENO: result: no" >&5
3494echo "${ECHO_T}no" >&6
3495 elif test "$wxUSE_ZLIB" = sys; then
3496 echo "$as_me:$LINENO: result: system version" >&5
3497echo "${ECHO_T}system version" >&6
3498 elif test "$wxUSE_ZLIB" = builtin; then
3499 echo "$as_me:$LINENO: result: builtin version" >&5
3500echo "${ECHO_T}builtin version" >&6
3501 else
3502 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3503echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3504 { (exit 1); exit 1; }; }
3505 fi
3506
3507
3508 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3509echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3510 no_cache=0
3511
3512# Check whether --with-odbc or --without-odbc was given.
3513if test "${with_odbc+set}" = set; then
3514 withval="$with_odbc"
3515
3516 if test "$withval" = yes; then
3517 ac_cv_use_odbc='wxUSE_ODBC=yes'
3518 elif test "$withval" = no; then
3519 ac_cv_use_odbc='wxUSE_ODBC=no'
3520 elif test "$withval" = sys; then
3521 ac_cv_use_odbc='wxUSE_ODBC=sys'
3522 elif test "$withval" = builtin; then
3523 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3524 else
3525 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3526echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3527 { (exit 1); exit 1; }; }
3528 fi
3529
3530else
3531
3532 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3533 if test "x$LINE" != x ; then
3534 eval "DEFAULT_$LINE"
3535 else
3536 no_cache=1
3537 fi
3538
3539 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3540
3541fi;
3542
3543 eval "$ac_cv_use_odbc"
3544 if test "$no_cache" != 1; then
3545 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3546 fi
3547
3548 if test "$wxUSE_ODBC" = yes; then
3549 echo "$as_me:$LINENO: result: yes" >&5
3550echo "${ECHO_T}yes" >&6
3551 elif test "$wxUSE_ODBC" = no; then
3552 echo "$as_me:$LINENO: result: no" >&5
3553echo "${ECHO_T}no" >&6
3554 elif test "$wxUSE_ODBC" = sys; then
3555 echo "$as_me:$LINENO: result: system version" >&5
3556echo "${ECHO_T}system version" >&6
3557 elif test "$wxUSE_ODBC" = builtin; then
3558 echo "$as_me:$LINENO: result: builtin version" >&5
3559echo "${ECHO_T}builtin version" >&6
3560 else
3561 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3562echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3563 { (exit 1); exit 1; }; }
3564 fi
3565
3566
3567 echo "$as_me:$LINENO: checking for --with-expat" >&5
3568echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3569 no_cache=0
3570
3571# Check whether --with-expat or --without-expat was given.
3572if test "${with_expat+set}" = set; then
3573 withval="$with_expat"
3574
3575 if test "$withval" = yes; then
3576 ac_cv_use_expat='wxUSE_EXPAT=yes'
3577 elif test "$withval" = no; then
3578 ac_cv_use_expat='wxUSE_EXPAT=no'
3579 elif test "$withval" = sys; then
3580 ac_cv_use_expat='wxUSE_EXPAT=sys'
3581 elif test "$withval" = builtin; then
3582 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3583 else
3584 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3585echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3586 { (exit 1); exit 1; }; }
3587 fi
3588
3589else
3590
3591 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3592 if test "x$LINE" != x ; then
3593 eval "DEFAULT_$LINE"
3594 else
3595 no_cache=1
3596 fi
3597
3598 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3599
3600fi;
3601
3602 eval "$ac_cv_use_expat"
3603 if test "$no_cache" != 1; then
3604 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3605 fi
3606
3607 if test "$wxUSE_EXPAT" = yes; then
3608 echo "$as_me:$LINENO: result: yes" >&5
3609echo "${ECHO_T}yes" >&6
3610 elif test "$wxUSE_EXPAT" = no; then
3611 echo "$as_me:$LINENO: result: no" >&5
3612echo "${ECHO_T}no" >&6
3613 elif test "$wxUSE_EXPAT" = sys; then
3614 echo "$as_me:$LINENO: result: system version" >&5
3615echo "${ECHO_T}system version" >&6
3616 elif test "$wxUSE_EXPAT" = builtin; then
3617 echo "$as_me:$LINENO: result: builtin version" >&5
3618echo "${ECHO_T}builtin version" >&6
3619 else
3620 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3621echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3622 { (exit 1); exit 1; }; }
3623 fi
3624
3625
3626
3627
3628 enablestring=
3629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3630echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3631 no_cache=0
3632 # Check whether --enable-shared or --disable-shared was given.
3633if test "${enable_shared+set}" = set; then
3634 enableval="$enable_shared"
3635
3636 if test "$enableval" = yes; then
3637 ac_cv_use_shared='wxUSE_SHARED=yes'
3638 else
3639 ac_cv_use_shared='wxUSE_SHARED=no'
3640 fi
3641
3642else
3643
3644 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3645 if test "x$LINE" != x ; then
3646 eval "DEFAULT_$LINE"
3647 else
3648 no_cache=1
3649 fi
3650
3651 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3652
3653fi;
3654
3655 eval "$ac_cv_use_shared"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_SHARED" = yes; then
3661 echo "$as_me:$LINENO: result: yes" >&5
3662echo "${ECHO_T}yes" >&6
3663 else
3664 echo "$as_me:$LINENO: result: no" >&5
3665echo "${ECHO_T}no" >&6
3666 fi
3667
3668
3669 enablestring=
3670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3671echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3672 no_cache=0
3673 # Check whether --enable-optimise or --disable-optimise was given.
3674if test "${enable_optimise+set}" = set; then
3675 enableval="$enable_optimise"
3676
3677 if test "$enableval" = yes; then
3678 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3679 else
3680 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3681 fi
3682
3683else
3684
3685 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3686 if test "x$LINE" != x ; then
3687 eval "DEFAULT_$LINE"
3688 else
3689 no_cache=1
3690 fi
3691
3692 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3693
3694fi;
3695
3696 eval "$ac_cv_use_optimise"
3697 if test "$no_cache" != 1; then
3698 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3699 fi
3700
3701 if test "$wxUSE_OPTIMISE" = yes; then
3702 echo "$as_me:$LINENO: result: yes" >&5
3703echo "${ECHO_T}yes" >&6
3704 else
3705 echo "$as_me:$LINENO: result: no" >&5
3706echo "${ECHO_T}no" >&6
3707 fi
3708
3709
3710 enablestring=
3711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3712echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3713 no_cache=0
3714 # Check whether --enable-debug or --disable-debug was given.
3715if test "${enable_debug+set}" = set; then
3716 enableval="$enable_debug"
3717
3718 if test "$enableval" = yes; then
3719 ac_cv_use_debug='wxUSE_DEBUG=yes'
3720 else
3721 ac_cv_use_debug='wxUSE_DEBUG=no'
3722 fi
3723
3724else
3725
3726 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3727 if test "x$LINE" != x ; then
3728 eval "DEFAULT_$LINE"
3729 else
3730 no_cache=1
3731 fi
3732
3733 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3734
3735fi;
3736
3737 eval "$ac_cv_use_debug"
3738 if test "$no_cache" != 1; then
3739 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3740 fi
3741
3742 if test "$wxUSE_DEBUG" = yes; then
3743 echo "$as_me:$LINENO: result: yes" >&5
3744echo "${ECHO_T}yes" >&6
3745 else
3746 echo "$as_me:$LINENO: result: no" >&5
3747echo "${ECHO_T}no" >&6
3748 fi
3749
3750
3751 enablestring=
3752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3753echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3754 no_cache=0
3755 # Check whether --enable-stl or --disable-stl was given.
3756if test "${enable_stl+set}" = set; then
3757 enableval="$enable_stl"
3758
3759 if test "$enableval" = yes; then
3760 ac_cv_use_stl='wxUSE_STL=yes'
3761 else
3762 ac_cv_use_stl='wxUSE_STL=no'
3763 fi
3764
3765else
3766
3767 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3768 if test "x$LINE" != x ; then
3769 eval "DEFAULT_$LINE"
3770 else
3771 no_cache=1
3772 fi
3773
3774 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3775
3776fi;
3777
3778 eval "$ac_cv_use_stl"
3779 if test "$no_cache" != 1; then
3780 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3781 fi
3782
3783 if test "$wxUSE_STL" = yes; then
3784 echo "$as_me:$LINENO: result: yes" >&5
3785echo "${ECHO_T}yes" >&6
3786 else
3787 echo "$as_me:$LINENO: result: no" >&5
3788echo "${ECHO_T}no" >&6
3789 fi
3790
3791if test "$USE_OS2" = "1"; then
69120ee4 3792 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3793
3794 enablestring=
3795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3796echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3797 no_cache=0
3798 # Check whether --enable-omf or --disable-omf was given.
3799if test "${enable_omf+set}" = set; then
3800 enableval="$enable_omf"
3801
3802 if test "$enableval" = yes; then
3803 ac_cv_use_omf='wxUSE_OMF=yes'
3804 else
3805 ac_cv_use_omf='wxUSE_OMF=no'
3806 fi
3807
3808else
3809
3810 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3811 if test "x$LINE" != x ; then
3812 eval "DEFAULT_$LINE"
3813 else
3814 no_cache=1
3815 fi
3816
3817 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3818
3819fi;
3820
3821 eval "$ac_cv_use_omf"
3822 if test "$no_cache" != 1; then
3823 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3824 fi
3825
3826 if test "$wxUSE_OMF" = yes; then
3827 echo "$as_me:$LINENO: result: yes" >&5
3828echo "${ECHO_T}yes" >&6
3829 else
3830 echo "$as_me:$LINENO: result: no" >&5
3831echo "${ECHO_T}no" >&6
3832 fi
3833
3834fi
3835
3836if test "$wxUSE_DEBUG" = "yes"; then
3837 DEFAULT_wxUSE_DEBUG_FLAG=yes
3838 DEFAULT_wxUSE_DEBUG_INFO=yes
3839 BUILD=debug
3840elif test "$wxUSE_DEBUG" = "no"; then
3841 DEFAULT_wxUSE_DEBUG_FLAG=no
3842 DEFAULT_wxUSE_DEBUG_INFO=no
3843 BUILD=release
3844fi
3845
3846
3847 enablestring=
3848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3849echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3850 no_cache=0
3851 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3852if test "${enable_debug_flag+set}" = set; then
3853 enableval="$enable_debug_flag"
3854
3855 if test "$enableval" = yes; then
3856 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3857 else
3858 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3859 fi
3860
3861else
3862
3863 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3864 if test "x$LINE" != x ; then
3865 eval "DEFAULT_$LINE"
3866 else
3867 no_cache=1
3868 fi
3869
3870 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3871
3872fi;
3873
3874 eval "$ac_cv_use_debug_flag"
3875 if test "$no_cache" != 1; then
3876 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3877 fi
3878
3879 if test "$wxUSE_DEBUG_FLAG" = yes; then
3880 echo "$as_me:$LINENO: result: yes" >&5
3881echo "${ECHO_T}yes" >&6
3882 else
3883 echo "$as_me:$LINENO: result: no" >&5
3884echo "${ECHO_T}no" >&6
3885 fi
3886
3887
3888 enablestring=
3889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3890echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3891 no_cache=0
3892 # Check whether --enable-debug_info or --disable-debug_info was given.
3893if test "${enable_debug_info+set}" = set; then
3894 enableval="$enable_debug_info"
3895
3896 if test "$enableval" = yes; then
3897 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3898 else
3899 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3900 fi
3901
3902else
3903
3904 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3905 if test "x$LINE" != x ; then
3906 eval "DEFAULT_$LINE"
3907 else
3908 no_cache=1
3909 fi
3910
3911 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3912
3913fi;
3914
3915 eval "$ac_cv_use_debug_info"
3916 if test "$no_cache" != 1; then
3917 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3918 fi
3919
3920 if test "$wxUSE_DEBUG_INFO" = yes; then
3921 echo "$as_me:$LINENO: result: yes" >&5
3922echo "${ECHO_T}yes" >&6
3923 else
3924 echo "$as_me:$LINENO: result: no" >&5
3925echo "${ECHO_T}no" >&6
3926 fi
3927
3928
3929 enablestring=
3930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3931echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3932 no_cache=0
3933 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3934if test "${enable_debug_gdb+set}" = set; then
3935 enableval="$enable_debug_gdb"
3936
3937 if test "$enableval" = yes; then
3938 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3939 else
3940 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3941 fi
3942
3943else
3944
3945 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3946 if test "x$LINE" != x ; then
3947 eval "DEFAULT_$LINE"
3948 else
3949 no_cache=1
3950 fi
3951
3952 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3953
3954fi;
3955
3956 eval "$ac_cv_use_debug_gdb"
3957 if test "$no_cache" != 1; then
3958 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3959 fi
3960
3961 if test "$wxUSE_DEBUG_GDB" = yes; then
3962 echo "$as_me:$LINENO: result: yes" >&5
3963echo "${ECHO_T}yes" >&6
3964 else
3965 echo "$as_me:$LINENO: result: no" >&5
3966echo "${ECHO_T}no" >&6
3967 fi
3968
3969
3970 enablestring=
3971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3972echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3973 no_cache=0
3974 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3975if test "${enable_debug_cntxt+set}" = set; then
3976 enableval="$enable_debug_cntxt"
3977
3978 if test "$enableval" = yes; then
3979 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3980 else
3981 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3982 fi
3983
3984else
3985
3986 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3987 if test "x$LINE" != x ; then
3988 eval "DEFAULT_$LINE"
3989 else
3990 no_cache=1
3991 fi
3992
3993 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3994
3995fi;
3996
3997 eval "$ac_cv_use_debug_cntxt"
3998 if test "$no_cache" != 1; then
3999 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4000 fi
4001
4002 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4003 echo "$as_me:$LINENO: result: yes" >&5
4004echo "${ECHO_T}yes" >&6
4005 else
4006 echo "$as_me:$LINENO: result: no" >&5
4007echo "${ECHO_T}no" >&6
4008 fi
4009
4010
4011 enablestring=
4012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4013echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4014 no_cache=0
4015 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4016if test "${enable_mem_tracing+set}" = set; then
4017 enableval="$enable_mem_tracing"
4018
4019 if test "$enableval" = yes; then
4020 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4021 else
4022 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4023 fi
4024
4025else
4026
4027 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4028 if test "x$LINE" != x ; then
4029 eval "DEFAULT_$LINE"
4030 else
4031 no_cache=1
4032 fi
4033
4034 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4035
4036fi;
4037
4038 eval "$ac_cv_use_mem_tracing"
4039 if test "$no_cache" != 1; then
4040 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4041 fi
4042
4043 if test "$wxUSE_MEM_TRACING" = yes; then
4044 echo "$as_me:$LINENO: result: yes" >&5
4045echo "${ECHO_T}yes" >&6
4046 else
4047 echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6
4049 fi
4050
4051
4052 enablestring=
4053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4054echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4055 no_cache=0
4056 # Check whether --enable-profile or --disable-profile was given.
4057if test "${enable_profile+set}" = set; then
4058 enableval="$enable_profile"
4059
4060 if test "$enableval" = yes; then
4061 ac_cv_use_profile='wxUSE_PROFILE=yes'
4062 else
4063 ac_cv_use_profile='wxUSE_PROFILE=no'
4064 fi
4065
4066else
4067
4068 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
4075 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4076
4077fi;
4078
4079 eval "$ac_cv_use_profile"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_PROFILE" = yes; then
4085 echo "$as_me:$LINENO: result: yes" >&5
4086echo "${ECHO_T}yes" >&6
4087 else
4088 echo "$as_me:$LINENO: result: no" >&5
4089echo "${ECHO_T}no" >&6
4090 fi
4091
4092
4093 enablestring=
4094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4095echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4096 no_cache=0
4097 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4098if test "${enable_no_rtti+set}" = set; then
4099 enableval="$enable_no_rtti"
4100
4101 if test "$enableval" = yes; then
4102 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4103 else
4104 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4105 fi
4106
4107else
4108
4109 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4110 if test "x$LINE" != x ; then
4111 eval "DEFAULT_$LINE"
4112 else
4113 no_cache=1
4114 fi
4115
4116 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4117
4118fi;
4119
4120 eval "$ac_cv_use_no_rtti"
4121 if test "$no_cache" != 1; then
4122 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4123 fi
4124
4125 if test "$wxUSE_NO_RTTI" = yes; then
4126 echo "$as_me:$LINENO: result: yes" >&5
4127echo "${ECHO_T}yes" >&6
4128 else
4129 echo "$as_me:$LINENO: result: no" >&5
4130echo "${ECHO_T}no" >&6
4131 fi
4132
4133
4134 enablestring=
4135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4136echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4137 no_cache=0
4138 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4139if test "${enable_no_exceptions+set}" = set; then
4140 enableval="$enable_no_exceptions"
4141
4142 if test "$enableval" = yes; then
4143 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4144 else
4145 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4146 fi
4147
4148else
4149
4150 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4158
4159fi;
4160
4161 eval "$ac_cv_use_no_exceptions"
4162 if test "$no_cache" != 1; then
4163 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4164 fi
4165
4166 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4167 echo "$as_me:$LINENO: result: yes" >&5
4168echo "${ECHO_T}yes" >&6
4169 else
4170 echo "$as_me:$LINENO: result: no" >&5
4171echo "${ECHO_T}no" >&6
4172 fi
4173
4174
4175 enablestring=
4176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4177echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4178 no_cache=0
4179 # Check whether --enable-permissive or --disable-permissive was given.
4180if test "${enable_permissive+set}" = set; then
4181 enableval="$enable_permissive"
4182
4183 if test "$enableval" = yes; then
4184 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4185 else
4186 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4187 fi
4188
4189else
4190
4191 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
4198 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4199
4200fi;
4201
4202 eval "$ac_cv_use_permissive"
4203 if test "$no_cache" != 1; then
4204 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4205 fi
4206
4207 if test "$wxUSE_PERMISSIVE" = yes; then
4208 echo "$as_me:$LINENO: result: yes" >&5
4209echo "${ECHO_T}yes" >&6
4210 else
4211 echo "$as_me:$LINENO: result: no" >&5
4212echo "${ECHO_T}no" >&6
4213 fi
4214
4215
4216 enablestring=
4217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4218echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4219 no_cache=0
4220 # Check whether --enable-no_deps or --disable-no_deps was given.
4221if test "${enable_no_deps+set}" = set; then
4222 enableval="$enable_no_deps"
4223
4224 if test "$enableval" = yes; then
4225 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4226 else
4227 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4228 fi
4229
4230else
4231
4232 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4233 if test "x$LINE" != x ; then
4234 eval "DEFAULT_$LINE"
4235 else
4236 no_cache=1
4237 fi
4238
4239 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4240
4241fi;
4242
4243 eval "$ac_cv_use_no_deps"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_NO_DEPS" = yes; then
4249 echo "$as_me:$LINENO: result: yes" >&5
4250echo "${ECHO_T}yes" >&6
4251 else
4252 echo "$as_me:$LINENO: result: no" >&5
4253echo "${ECHO_T}no" >&6
4254 fi
4255
4256
7afc46ab
KO
4257 enablestring=
4258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4259echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4260 no_cache=0
4261 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4262if test "${enable_universal_binary+set}" = set; then
4263 enableval="$enable_universal_binary"
4264
4265 if test "$enableval" = yes; then
4266 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes'
4267 else
4268 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no'
4269 fi
4270
4271else
4272
4273 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4274 if test "x$LINE" != x ; then
4275 eval "DEFAULT_$LINE"
4276 else
4277 no_cache=1
4278 fi
4279
4280 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4281
4282fi;
4283
4284 eval "$ac_cv_use_universal_binary"
4285 if test "$no_cache" != 1; then
4286 echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4287 fi
4288
4289 if test "$wxUSE_UNIVERSAL_BINARY" = yes; then
4290 echo "$as_me:$LINENO: result: yes" >&5
4291echo "${ECHO_T}yes" >&6
4292 else
4293 echo "$as_me:$LINENO: result: no" >&5
4294echo "${ECHO_T}no" >&6
4295 fi
4296
4297
a848cd7e 4298
dee1a63f
MB
4299 enablestring=enable
4300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4301echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4302 no_cache=0
dee1a63f
MB
4303 # Check whether --enable-compat24 or --disable-compat24 was given.
4304if test "${enable_compat24+set}" = set; then
4305 enableval="$enable_compat24"
a848cd7e
SC
4306
4307 if test "$enableval" = yes; then
dee1a63f 4308 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4309 else
dee1a63f 4310 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4311 fi
4312
4313else
4314
dee1a63f 4315 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4316 if test "x$LINE" != x ; then
4317 eval "DEFAULT_$LINE"
4318 else
4319 no_cache=1
4320 fi
4321
dee1a63f 4322 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4323
4324fi;
4325
dee1a63f 4326 eval "$ac_cv_use_compat24"
a848cd7e 4327 if test "$no_cache" != 1; then
dee1a63f 4328 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4329 fi
4330
dee1a63f 4331 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4332 echo "$as_me:$LINENO: result: yes" >&5
4333echo "${ECHO_T}yes" >&6
4334 else
4335 echo "$as_me:$LINENO: result: no" >&5
4336echo "${ECHO_T}no" >&6
4337 fi
4338
4339
4340 enablestring=disable
dee1a63f
MB
4341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4342echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4343 no_cache=0
dee1a63f
MB
4344 # Check whether --enable-compat26 or --disable-compat26 was given.
4345if test "${enable_compat26+set}" = set; then
4346 enableval="$enable_compat26"
a848cd7e
SC
4347
4348 if test "$enableval" = yes; then
dee1a63f 4349 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4350 else
dee1a63f 4351 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4352 fi
4353
4354else
4355
dee1a63f 4356 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4357 if test "x$LINE" != x ; then
4358 eval "DEFAULT_$LINE"
4359 else
4360 no_cache=1
4361 fi
4362
dee1a63f 4363 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4364
4365fi;
4366
dee1a63f 4367 eval "$ac_cv_use_compat26"
a848cd7e 4368 if test "$no_cache" != 1; then
dee1a63f 4369 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4370 fi
4371
dee1a63f 4372 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4373 echo "$as_me:$LINENO: result: yes" >&5
4374echo "${ECHO_T}yes" >&6
4375 else
4376 echo "$as_me:$LINENO: result: no" >&5
4377echo "${ECHO_T}no" >&6
4378 fi
4379
4380
ffa0583f
RL
4381
4382 enablestring=
4383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4384echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4385 no_cache=0
4386 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4387if test "${enable_rpath+set}" = set; then
4388 enableval="$enable_rpath"
ffa0583f
RL
4389
4390 if test "$enableval" = yes; then
4391 ac_cv_use_rpath='wxUSE_RPATH=yes'
4392 else
4393 ac_cv_use_rpath='wxUSE_RPATH=no'
4394 fi
4395
4396else
4397
4398 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4399 if test "x$LINE" != x ; then
4400 eval "DEFAULT_$LINE"
4401 else
4402 no_cache=1
4403 fi
4404
4405 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4406
a848cd7e
SC
4407fi;
4408
ffa0583f
RL
4409 eval "$ac_cv_use_rpath"
4410 if test "$no_cache" != 1; then
4411 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4412 fi
4413
4414 if test "$wxUSE_RPATH" = yes; then
4415 echo "$as_me:$LINENO: result: yes" >&5
4416echo "${ECHO_T}yes" >&6
4417 else
4418 echo "$as_me:$LINENO: result: no" >&5
4419echo "${ECHO_T}no" >&6
4420 fi
4421
a848cd7e
SC
4422
4423
4424
4425
4426 enablestring=
4427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4428echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4429 no_cache=0
4430 # Check whether --enable-intl or --disable-intl was given.
4431if test "${enable_intl+set}" = set; then
4432 enableval="$enable_intl"
4433
4434 if test "$enableval" = yes; then
4435 ac_cv_use_intl='wxUSE_INTL=yes'
4436 else
4437 ac_cv_use_intl='wxUSE_INTL=no'
4438 fi
4439
4440else
4441
4442 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4443 if test "x$LINE" != x ; then
4444 eval "DEFAULT_$LINE"
4445 else
4446 no_cache=1
4447 fi
4448
4449 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4450
4451fi;
4452
4453 eval "$ac_cv_use_intl"
4454 if test "$no_cache" != 1; then
4455 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4456 fi
4457
4458 if test "$wxUSE_INTL" = yes; then
4459 echo "$as_me:$LINENO: result: yes" >&5
4460echo "${ECHO_T}yes" >&6
4461 else
4462 echo "$as_me:$LINENO: result: no" >&5
4463echo "${ECHO_T}no" >&6
4464 fi
4465
4466
4467 enablestring=
4468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4469echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4470 no_cache=0
4471 # Check whether --enable-config or --disable-config was given.
4472if test "${enable_config+set}" = set; then
4473 enableval="$enable_config"
4474
4475 if test "$enableval" = yes; then
4476 ac_cv_use_config='wxUSE_CONFIG=yes'
4477 else
4478 ac_cv_use_config='wxUSE_CONFIG=no'
4479 fi
4480
4481else
4482
4483 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4484 if test "x$LINE" != x ; then
4485 eval "DEFAULT_$LINE"
4486 else
4487 no_cache=1
4488 fi
4489
4490 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4491
4492fi;
4493
4494 eval "$ac_cv_use_config"
4495 if test "$no_cache" != 1; then
4496 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4497 fi
4498
4499 if test "$wxUSE_CONFIG" = yes; then
4500 echo "$as_me:$LINENO: result: yes" >&5
4501echo "${ECHO_T}yes" >&6
4502 else
4503 echo "$as_me:$LINENO: result: no" >&5
4504echo "${ECHO_T}no" >&6
4505 fi
4506
4507
4508
4509 enablestring=
4510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4511echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4512 no_cache=0
4513 # Check whether --enable-protocols or --disable-protocols was given.
4514if test "${enable_protocols+set}" = set; then
4515 enableval="$enable_protocols"
4516
4517 if test "$enableval" = yes; then
4518 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4519 else
4520 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4521 fi
4522
4523else
4524
4525 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4526 if test "x$LINE" != x ; then
4527 eval "DEFAULT_$LINE"
4528 else
4529 no_cache=1
4530 fi
4531
4532 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4533
4534fi;
4535
4536 eval "$ac_cv_use_protocols"
4537 if test "$no_cache" != 1; then
4538 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4539 fi
4540
4541 if test "$wxUSE_PROTOCOL" = yes; then
4542 echo "$as_me:$LINENO: result: yes" >&5
4543echo "${ECHO_T}yes" >&6
4544 else
4545 echo "$as_me:$LINENO: result: no" >&5
4546echo "${ECHO_T}no" >&6
4547 fi
4548
4549
4550 enablestring=
4551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4552echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4553 no_cache=0
4554 # Check whether --enable-ftp or --disable-ftp was given.
4555if test "${enable_ftp+set}" = set; then
4556 enableval="$enable_ftp"
4557
4558 if test "$enableval" = yes; then
4559 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4560 else
4561 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4562 fi
4563
4564else
4565
4566 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4567 if test "x$LINE" != x ; then
4568 eval "DEFAULT_$LINE"
4569 else
4570 no_cache=1
4571 fi
4572
4573 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4574
4575fi;
4576
4577 eval "$ac_cv_use_ftp"
4578 if test "$no_cache" != 1; then
4579 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4580 fi
4581
4582 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4583 echo "$as_me:$LINENO: result: yes" >&5
4584echo "${ECHO_T}yes" >&6
4585 else
4586 echo "$as_me:$LINENO: result: no" >&5
4587echo "${ECHO_T}no" >&6
4588 fi
4589
4590
4591 enablestring=
4592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4593echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4594 no_cache=0
4595 # Check whether --enable-http or --disable-http was given.
4596if test "${enable_http+set}" = set; then
4597 enableval="$enable_http"
4598
4599 if test "$enableval" = yes; then
4600 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4601 else
4602 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4603 fi
4604
4605else
4606
4607 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4608 if test "x$LINE" != x ; then
4609 eval "DEFAULT_$LINE"
4610 else
4611 no_cache=1
4612 fi
4613
4614 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4615
4616fi;
4617
4618 eval "$ac_cv_use_http"
4619 if test "$no_cache" != 1; then
4620 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4621 fi
4622
4623 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4624 echo "$as_me:$LINENO: result: yes" >&5
4625echo "${ECHO_T}yes" >&6
4626 else
4627 echo "$as_me:$LINENO: result: no" >&5
4628echo "${ECHO_T}no" >&6
4629 fi
4630
4631
4632 enablestring=
4633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4634echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4635 no_cache=0
4636 # Check whether --enable-fileproto or --disable-fileproto was given.
4637if test "${enable_fileproto+set}" = set; then
4638 enableval="$enable_fileproto"
4639
4640 if test "$enableval" = yes; then
4641 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4642 else
4643 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4644 fi
4645
4646else
4647
4648 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4649 if test "x$LINE" != x ; then
4650 eval "DEFAULT_$LINE"
4651 else
4652 no_cache=1
4653 fi
4654
4655 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4656
4657fi;
4658
4659 eval "$ac_cv_use_fileproto"
4660 if test "$no_cache" != 1; then
4661 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4662 fi
4663
4664 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4665 echo "$as_me:$LINENO: result: yes" >&5
4666echo "${ECHO_T}yes" >&6
4667 else
4668 echo "$as_me:$LINENO: result: no" >&5
4669echo "${ECHO_T}no" >&6
4670 fi
4671
4672
4673 enablestring=
4674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4675echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4676 no_cache=0
4677 # Check whether --enable-sockets or --disable-sockets was given.
4678if test "${enable_sockets+set}" = set; then
4679 enableval="$enable_sockets"
4680
4681 if test "$enableval" = yes; then
4682 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4683 else
4684 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4685 fi
4686
4687else
4688
4689 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4690 if test "x$LINE" != x ; then
4691 eval "DEFAULT_$LINE"
4692 else
4693 no_cache=1
4694 fi
4695
4696 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4697
4698fi;
4699
4700 eval "$ac_cv_use_sockets"
4701 if test "$no_cache" != 1; then
4702 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4703 fi
4704
4705 if test "$wxUSE_SOCKETS" = yes; then
4706 echo "$as_me:$LINENO: result: yes" >&5
4707echo "${ECHO_T}yes" >&6
4708 else
4709 echo "$as_me:$LINENO: result: no" >&5
4710echo "${ECHO_T}no" >&6
4711 fi
4712
4713
4714 enablestring=
4715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4716echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4717 no_cache=0
4718 # Check whether --enable-ole or --disable-ole was given.
4719if test "${enable_ole+set}" = set; then
4720 enableval="$enable_ole"
4721
4722 if test "$enableval" = yes; then
4723 ac_cv_use_ole='wxUSE_OLE=yes'
4724 else
4725 ac_cv_use_ole='wxUSE_OLE=no'
4726 fi
4727
4728else
4729
4730 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4731 if test "x$LINE" != x ; then
4732 eval "DEFAULT_$LINE"
4733 else
4734 no_cache=1
4735 fi
4736
4737 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4738
4739fi;
4740
4741 eval "$ac_cv_use_ole"
4742 if test "$no_cache" != 1; then
4743 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4744 fi
4745
4746 if test "$wxUSE_OLE" = yes; then
4747 echo "$as_me:$LINENO: result: yes" >&5
4748echo "${ECHO_T}yes" >&6
4749 else
4750 echo "$as_me:$LINENO: result: no" >&5
4751echo "${ECHO_T}no" >&6
4752 fi
4753
4754
4755 enablestring=
4756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4757echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4758 no_cache=0
4759 # Check whether --enable-dataobj or --disable-dataobj was given.
4760if test "${enable_dataobj+set}" = set; then
4761 enableval="$enable_dataobj"
4762
4763 if test "$enableval" = yes; then
4764 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4765 else
4766 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4767 fi
4768
4769else
4770
4771 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4772 if test "x$LINE" != x ; then
4773 eval "DEFAULT_$LINE"
4774 else
4775 no_cache=1
4776 fi
4777
4778 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4779
4780fi;
4781
4782 eval "$ac_cv_use_dataobj"
4783 if test "$no_cache" != 1; then
4784 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4785 fi
4786
4787 if test "$wxUSE_DATAOBJ" = yes; then
4788 echo "$as_me:$LINENO: result: yes" >&5
4789echo "${ECHO_T}yes" >&6
4790 else
4791 echo "$as_me:$LINENO: result: no" >&5
4792echo "${ECHO_T}no" >&6
4793 fi
4794
4795
4796
4797 enablestring=
4798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4799echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4800 no_cache=0
4801 # Check whether --enable-ipc or --disable-ipc was given.
4802if test "${enable_ipc+set}" = set; then
4803 enableval="$enable_ipc"
4804
4805 if test "$enableval" = yes; then
4806 ac_cv_use_ipc='wxUSE_IPC=yes'
4807 else
4808 ac_cv_use_ipc='wxUSE_IPC=no'
4809 fi
4810
4811else
4812
4813 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4814 if test "x$LINE" != x ; then
4815 eval "DEFAULT_$LINE"
4816 else
4817 no_cache=1
4818 fi
4819
4820 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4821
4822fi;
4823
4824 eval "$ac_cv_use_ipc"
4825 if test "$no_cache" != 1; then
4826 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4827 fi
4828
4829 if test "$wxUSE_IPC" = yes; then
4830 echo "$as_me:$LINENO: result: yes" >&5
4831echo "${ECHO_T}yes" >&6
4832 else
4833 echo "$as_me:$LINENO: result: no" >&5
4834echo "${ECHO_T}no" >&6
4835 fi
4836
4837
4838
4839 enablestring=
4840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4841echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4842 no_cache=0
4843 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4844if test "${enable_apple_ieee+set}" = set; then
4845 enableval="$enable_apple_ieee"
4846
4847 if test "$enableval" = yes; then
4848 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4849 else
4850 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4851 fi
4852
4853else
4854
4855 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4856 if test "x$LINE" != x ; then
4857 eval "DEFAULT_$LINE"
4858 else
4859 no_cache=1
4860 fi
4861
4862 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4863
4864fi;
4865
4866 eval "$ac_cv_use_apple_ieee"
4867 if test "$no_cache" != 1; then
4868 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4869 fi
4870
4871 if test "$wxUSE_APPLE_IEEE" = yes; then
4872 echo "$as_me:$LINENO: result: yes" >&5
4873echo "${ECHO_T}yes" >&6
4874 else
4875 echo "$as_me:$LINENO: result: no" >&5
4876echo "${ECHO_T}no" >&6
4877 fi
4878
4879
81f90336
MW
4880 enablestring=
4881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4882echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4883 no_cache=0
4884 # Check whether --enable-arcstream or --disable-arcstream was given.
4885if test "${enable_arcstream+set}" = set; then
4886 enableval="$enable_arcstream"
4887
4888 if test "$enableval" = yes; then
9e8e867f 4889 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4890 else
9e8e867f 4891 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4892 fi
4893
4894else
4895
9e8e867f 4896 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4897 if test "x$LINE" != x ; then
4898 eval "DEFAULT_$LINE"
4899 else
4900 no_cache=1
4901 fi
4902
9e8e867f 4903 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4904
4905fi;
4906
4907 eval "$ac_cv_use_arcstream"
4908 if test "$no_cache" != 1; then
4909 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4910 fi
4911
9e8e867f 4912 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4913 echo "$as_me:$LINENO: result: yes" >&5
4914echo "${ECHO_T}yes" >&6
4915 else
4916 echo "$as_me:$LINENO: result: no" >&5
4917echo "${ECHO_T}no" >&6
4918 fi
4919
4920
a848cd7e 4921 enablestring=
36b6448c
VZ
4922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4923echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4924 no_cache=0
36b6448c
VZ
4925 # Check whether --enable-backtrace or --disable-backtrace was given.
4926if test "${enable_backtrace+set}" = set; then
4927 enableval="$enable_backtrace"
a848cd7e
SC
4928
4929 if test "$enableval" = yes; then
36b6448c 4930 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4931 else
36b6448c 4932 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4933 fi
4934
4935else
4936
36b6448c 4937 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4938 if test "x$LINE" != x ; then
4939 eval "DEFAULT_$LINE"
4940 else
4941 no_cache=1
4942 fi
4943
36b6448c 4944 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4945
4946fi;
4947
36b6448c 4948 eval "$ac_cv_use_backtrace"
a848cd7e 4949 if test "$no_cache" != 1; then
36b6448c 4950 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4951 fi
4952
36b6448c 4953 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4954 echo "$as_me:$LINENO: result: yes" >&5
4955echo "${ECHO_T}yes" >&6
4956 else
4957 echo "$as_me:$LINENO: result: no" >&5
4958echo "${ECHO_T}no" >&6
4959 fi
4960
4961
eaff0f0d 4962 enablestring=
36b6448c
VZ
4963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4964echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4965 no_cache=0
36b6448c
VZ
4966 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4967if test "${enable_catch_segvs+set}" = set; then
4968 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4969
4970 if test "$enableval" = yes; then
36b6448c 4971 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4972 else
36b6448c 4973 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4974 fi
4975
4976else
4977
36b6448c 4978 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4979 if test "x$LINE" != x ; then
4980 eval "DEFAULT_$LINE"
4981 else
4982 no_cache=1
4983 fi
4984
36b6448c 4985 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4986
4987fi;
4988
36b6448c 4989 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4990 if test "$no_cache" != 1; then
36b6448c 4991 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4992 fi
4993
36b6448c 4994 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4995 echo "$as_me:$LINENO: result: yes" >&5
4996echo "${ECHO_T}yes" >&6
4997 else
4998 echo "$as_me:$LINENO: result: no" >&5
4999echo "${ECHO_T}no" >&6
5000 fi
5001
5002
a848cd7e
SC
5003 enablestring=
5004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5005echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5006 no_cache=0
5007 # Check whether --enable-cmdline or --disable-cmdline was given.
5008if test "${enable_cmdline+set}" = set; then
5009 enableval="$enable_cmdline"
5010
5011 if test "$enableval" = yes; then
5012 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5013 else
5014 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5015 fi
5016
5017else
5018
5019 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5020 if test "x$LINE" != x ; then
5021 eval "DEFAULT_$LINE"
5022 else
5023 no_cache=1
5024 fi
5025
5026 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5027
5028fi;
5029
5030 eval "$ac_cv_use_cmdline"
5031 if test "$no_cache" != 1; then
5032 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5033 fi
5034
5035 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5036 echo "$as_me:$LINENO: result: yes" >&5
5037echo "${ECHO_T}yes" >&6
5038 else
5039 echo "$as_me:$LINENO: result: no" >&5
5040echo "${ECHO_T}no" >&6
5041 fi
5042
5043
5044 enablestring=
5045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5046echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5047 no_cache=0
5048 # Check whether --enable-datetime or --disable-datetime was given.
5049if test "${enable_datetime+set}" = set; then
5050 enableval="$enable_datetime"
5051
5052 if test "$enableval" = yes; then
5053 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5054 else
5055 ac_cv_use_datetime='wxUSE_DATETIME=no'
5056 fi
5057
5058else
5059
5060 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5061 if test "x$LINE" != x ; then
5062 eval "DEFAULT_$LINE"
5063 else
5064 no_cache=1
5065 fi
5066
5067 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5068
5069fi;
5070
5071 eval "$ac_cv_use_datetime"
5072 if test "$no_cache" != 1; then
5073 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5074 fi
5075
5076 if test "$wxUSE_DATETIME" = yes; then
5077 echo "$as_me:$LINENO: result: yes" >&5
5078echo "${ECHO_T}yes" >&6
5079 else
5080 echo "$as_me:$LINENO: result: no" >&5
5081echo "${ECHO_T}no" >&6
5082 fi
5083
5084
36b6448c
VZ
5085 enablestring=
5086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5087echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5088 no_cache=0
5089 # Check whether --enable-debugreport or --disable-debugreport was given.
5090if test "${enable_debugreport+set}" = set; then
5091 enableval="$enable_debugreport"
5092
5093 if test "$enableval" = yes; then
5094 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5095 else
5096 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5097 fi
5098
5099else
5100
5101 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5102 if test "x$LINE" != x ; then
5103 eval "DEFAULT_$LINE"
5104 else
5105 no_cache=1
5106 fi
5107
5108 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5109
5110fi;
5111
5112 eval "$ac_cv_use_debugreport"
5113 if test "$no_cache" != 1; then
5114 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5115 fi
5116
5117 if test "$wxUSE_DEBUGREPORT" = yes; then
5118 echo "$as_me:$LINENO: result: yes" >&5
5119echo "${ECHO_T}yes" >&6
5120 else
5121 echo "$as_me:$LINENO: result: no" >&5
5122echo "${ECHO_T}no" >&6
5123 fi
5124
5125
a848cd7e
SC
5126 enablestring=
5127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5128echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5129 no_cache=0
5130 # Check whether --enable-dialupman or --disable-dialupman was given.
5131if test "${enable_dialupman+set}" = set; then
5132 enableval="$enable_dialupman"
5133
5134 if test "$enableval" = yes; then
5135 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5136 else
5137 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5138 fi
5139
5140else
5141
5142 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5143 if test "x$LINE" != x ; then
5144 eval "DEFAULT_$LINE"
5145 else
5146 no_cache=1
5147 fi
5148
5149 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5150
5151fi;
5152
5153 eval "$ac_cv_use_dialupman"
5154 if test "$no_cache" != 1; then
5155 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5156 fi
5157
5158 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5159 echo "$as_me:$LINENO: result: yes" >&5
5160echo "${ECHO_T}yes" >&6
5161 else
5162 echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6
5164 fi
5165
5166
5167 enablestring=
5168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5169echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5170 no_cache=0
5171 # Check whether --enable-dynlib or --disable-dynlib was given.
5172if test "${enable_dynlib+set}" = set; then
5173 enableval="$enable_dynlib"
5174
5175 if test "$enableval" = yes; then
5176 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5177 else
5178 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5179 fi
5180
5181else
5182
5183 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5184 if test "x$LINE" != x ; then
5185 eval "DEFAULT_$LINE"
5186 else
5187 no_cache=1
5188 fi
5189
5190 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5191
5192fi;
5193
5194 eval "$ac_cv_use_dynlib"
5195 if test "$no_cache" != 1; then
5196 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5197 fi
5198
5199 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5200 echo "$as_me:$LINENO: result: yes" >&5
5201echo "${ECHO_T}yes" >&6
5202 else
5203 echo "$as_me:$LINENO: result: no" >&5
5204echo "${ECHO_T}no" >&6
5205 fi
5206
5207
5208 enablestring=
5209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5210echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5211 no_cache=0
5212 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5213if test "${enable_dynamicloader+set}" = set; then
5214 enableval="$enable_dynamicloader"
5215
5216 if test "$enableval" = yes; then
5217 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5218 else
5219 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5220 fi
5221
5222else
5223
5224 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 else
5228 no_cache=1
5229 fi
5230
5231 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5232
5233fi;
5234
5235 eval "$ac_cv_use_dynamicloader"
5236 if test "$no_cache" != 1; then
5237 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5238 fi
5239
5240 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5241 echo "$as_me:$LINENO: result: yes" >&5
5242echo "${ECHO_T}yes" >&6
5243 else
5244 echo "$as_me:$LINENO: result: no" >&5
5245echo "${ECHO_T}no" >&6
5246 fi
5247
5248
5249 enablestring=
5250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5251echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5252 no_cache=0
5253 # Check whether --enable-exceptions or --disable-exceptions was given.
5254if test "${enable_exceptions+set}" = set; then
5255 enableval="$enable_exceptions"
5256
5257 if test "$enableval" = yes; then
5258 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5259 else
5260 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5261 fi
5262
5263else
5264
5265 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5266 if test "x$LINE" != x ; then
5267 eval "DEFAULT_$LINE"
5268 else
5269 no_cache=1
5270 fi
5271
5272 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5273
5274fi;
5275
5276 eval "$ac_cv_use_exceptions"
5277 if test "$no_cache" != 1; then
5278 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5279 fi
5280
5281 if test "$wxUSE_EXCEPTIONS" = yes; then
5282 echo "$as_me:$LINENO: result: yes" >&5
5283echo "${ECHO_T}yes" >&6
5284 else
5285 echo "$as_me:$LINENO: result: no" >&5
5286echo "${ECHO_T}no" >&6
5287 fi
5288
5289
5290 enablestring=
5291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5292echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5293 no_cache=0
5294 # Check whether --enable-ffile or --disable-ffile was given.
5295if test "${enable_ffile+set}" = set; then
5296 enableval="$enable_ffile"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_ffile='wxUSE_FFILE=yes'
5300 else
5301 ac_cv_use_ffile='wxUSE_FFILE=no'
5302 fi
5303
5304else
5305
5306 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5314
5315fi;
5316
5317 eval "$ac_cv_use_ffile"
5318 if test "$no_cache" != 1; then
5319 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5320 fi
5321
5322 if test "$wxUSE_FFILE" = yes; then
5323 echo "$as_me:$LINENO: result: yes" >&5
5324echo "${ECHO_T}yes" >&6
5325 else
5326 echo "$as_me:$LINENO: result: no" >&5
5327echo "${ECHO_T}no" >&6
5328 fi
5329
5330
5331 enablestring=
5332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5333echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5334 no_cache=0
5335 # Check whether --enable-file or --disable-file was given.
5336if test "${enable_file+set}" = set; then
5337 enableval="$enable_file"
5338
5339 if test "$enableval" = yes; then
5340 ac_cv_use_file='wxUSE_FILE=yes'
5341 else
5342 ac_cv_use_file='wxUSE_FILE=no'
5343 fi
5344
5345else
5346
5347 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5348 if test "x$LINE" != x ; then
5349 eval "DEFAULT_$LINE"
5350 else
5351 no_cache=1
5352 fi
5353
5354 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5355
5356fi;
5357
5358 eval "$ac_cv_use_file"
5359 if test "$no_cache" != 1; then
5360 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5361 fi
5362
5363 if test "$wxUSE_FILE" = yes; then
5364 echo "$as_me:$LINENO: result: yes" >&5
5365echo "${ECHO_T}yes" >&6
5366 else
5367 echo "$as_me:$LINENO: result: no" >&5
5368echo "${ECHO_T}no" >&6
5369 fi
5370
5371
5372 enablestring=
5373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5374echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5375 no_cache=0
5376 # Check whether --enable-filesystem or --disable-filesystem was given.
5377if test "${enable_filesystem+set}" = set; then
5378 enableval="$enable_filesystem"
5379
5380 if test "$enableval" = yes; then
5381 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5382 else
5383 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5384 fi
5385
5386else
5387
5388 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5389 if test "x$LINE" != x ; then
5390 eval "DEFAULT_$LINE"
5391 else
5392 no_cache=1
5393 fi
5394
5395 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5396
5397fi;
5398
5399 eval "$ac_cv_use_filesystem"
5400 if test "$no_cache" != 1; then
5401 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5402 fi
5403
5404 if test "$wxUSE_FILESYSTEM" = yes; then
5405 echo "$as_me:$LINENO: result: yes" >&5
5406echo "${ECHO_T}yes" >&6
5407 else
5408 echo "$as_me:$LINENO: result: no" >&5
5409echo "${ECHO_T}no" >&6
5410 fi
5411
5412
5413 enablestring=
5414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5415echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5416 no_cache=0
5417 # Check whether --enable-fontmap or --disable-fontmap was given.
5418if test "${enable_fontmap+set}" = set; then
5419 enableval="$enable_fontmap"
5420
5421 if test "$enableval" = yes; then
5422 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5423 else
5424 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5425 fi
5426
5427else
5428
5429 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5430 if test "x$LINE" != x ; then
5431 eval "DEFAULT_$LINE"
5432 else
5433 no_cache=1
5434 fi
5435
5436 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5437
5438fi;
5439
5440 eval "$ac_cv_use_fontmap"
5441 if test "$no_cache" != 1; then
5442 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5443 fi
5444
5445 if test "$wxUSE_FONTMAP" = yes; then
5446 echo "$as_me:$LINENO: result: yes" >&5
5447echo "${ECHO_T}yes" >&6
5448 else
5449 echo "$as_me:$LINENO: result: no" >&5
5450echo "${ECHO_T}no" >&6
5451 fi
5452
5453
5454 enablestring=
5455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5456echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5457 no_cache=0
5458 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5459if test "${enable_fs_inet+set}" = set; then
5460 enableval="$enable_fs_inet"
5461
5462 if test "$enableval" = yes; then
5463 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5464 else
5465 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5466 fi
5467
5468else
5469
5470 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5471 if test "x$LINE" != x ; then
5472 eval "DEFAULT_$LINE"
5473 else
5474 no_cache=1
5475 fi
5476
5477 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5478
5479fi;
5480
5481 eval "$ac_cv_use_fs_inet"
5482 if test "$no_cache" != 1; then
5483 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5484 fi
5485
5486 if test "$wxUSE_FS_INET" = yes; then
5487 echo "$as_me:$LINENO: result: yes" >&5
5488echo "${ECHO_T}yes" >&6
5489 else
5490 echo "$as_me:$LINENO: result: no" >&5
5491echo "${ECHO_T}no" >&6
5492 fi
5493
5494
5495 enablestring=
5496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5497echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5498 no_cache=0
5499 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5500if test "${enable_fs_zip+set}" = set; then
5501 enableval="$enable_fs_zip"
5502
5503 if test "$enableval" = yes; then
5504 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5505 else
5506 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5507 fi
5508
5509else
5510
5511 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5512 if test "x$LINE" != x ; then
5513 eval "DEFAULT_$LINE"
5514 else
5515 no_cache=1
5516 fi
5517
5518 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5519
5520fi;
5521
5522 eval "$ac_cv_use_fs_zip"
5523 if test "$no_cache" != 1; then
5524 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5525 fi
5526
5527 if test "$wxUSE_FS_ZIP" = yes; then
5528 echo "$as_me:$LINENO: result: yes" >&5
5529echo "${ECHO_T}yes" >&6
5530 else
5531 echo "$as_me:$LINENO: result: no" >&5
5532echo "${ECHO_T}no" >&6
5533 fi
5534
5535
5536 enablestring=
5537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5538echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5539 no_cache=0
5540 # Check whether --enable-geometry or --disable-geometry was given.
5541if test "${enable_geometry+set}" = set; then
5542 enableval="$enable_geometry"
5543
5544 if test "$enableval" = yes; then
5545 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5546 else
5547 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5548 fi
5549
5550else
5551
5552 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5553 if test "x$LINE" != x ; then
5554 eval "DEFAULT_$LINE"
5555 else
5556 no_cache=1
5557 fi
5558
5559 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5560
5561fi;
5562
5563 eval "$ac_cv_use_geometry"
5564 if test "$no_cache" != 1; then
5565 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5566 fi
5567
5568 if test "$wxUSE_GEOMETRY" = yes; then
5569 echo "$as_me:$LINENO: result: yes" >&5
5570echo "${ECHO_T}yes" >&6
5571 else
5572 echo "$as_me:$LINENO: result: no" >&5
5573echo "${ECHO_T}no" >&6
5574 fi
5575
5576
5577 enablestring=
5578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5579echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5580 no_cache=0
5581 # Check whether --enable-log or --disable-log was given.
5582if test "${enable_log+set}" = set; then
5583 enableval="$enable_log"
5584
5585 if test "$enableval" = yes; then
5586 ac_cv_use_log='wxUSE_LOG=yes'
5587 else
5588 ac_cv_use_log='wxUSE_LOG=no'
5589 fi
5590
5591else
5592
5593 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5594 if test "x$LINE" != x ; then
5595 eval "DEFAULT_$LINE"
5596 else
5597 no_cache=1
5598 fi
5599
5600 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5601
5602fi;
5603
5604 eval "$ac_cv_use_log"
5605 if test "$no_cache" != 1; then
5606 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5607 fi
5608
5609 if test "$wxUSE_LOG" = yes; then
5610 echo "$as_me:$LINENO: result: yes" >&5
5611echo "${ECHO_T}yes" >&6
5612 else
5613 echo "$as_me:$LINENO: result: no" >&5
5614echo "${ECHO_T}no" >&6
5615 fi
5616
5617
5618 enablestring=
5619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5620echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5621 no_cache=0
5622 # Check whether --enable-longlong or --disable-longlong was given.
5623if test "${enable_longlong+set}" = set; then
5624 enableval="$enable_longlong"
5625
5626 if test "$enableval" = yes; then
5627 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5628 else
5629 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5630 fi
5631
5632else
5633
5634 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5635 if test "x$LINE" != x ; then
5636 eval "DEFAULT_$LINE"
5637 else
5638 no_cache=1
5639 fi
5640
5641 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5642
5643fi;
5644
5645 eval "$ac_cv_use_longlong"
5646 if test "$no_cache" != 1; then
5647 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5648 fi
5649
5650 if test "$wxUSE_LONGLONG" = yes; then
5651 echo "$as_me:$LINENO: result: yes" >&5
5652echo "${ECHO_T}yes" >&6
5653 else
5654 echo "$as_me:$LINENO: result: no" >&5
5655echo "${ECHO_T}no" >&6
5656 fi
5657
5658
5659 enablestring=
5660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5661echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5662 no_cache=0
5663 # Check whether --enable-mimetype or --disable-mimetype was given.
5664if test "${enable_mimetype+set}" = set; then
5665 enableval="$enable_mimetype"
5666
5667 if test "$enableval" = yes; then
5668 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5669 else
5670 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5671 fi
5672
5673else
5674
5675 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5676 if test "x$LINE" != x ; then
5677 eval "DEFAULT_$LINE"
5678 else
5679 no_cache=1
5680 fi
5681
5682 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5683
5684fi;
5685
5686 eval "$ac_cv_use_mimetype"
5687 if test "$no_cache" != 1; then
5688 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5689 fi
5690
5691 if test "$wxUSE_MIMETYPE" = yes; then
5692 echo "$as_me:$LINENO: result: yes" >&5
5693echo "${ECHO_T}yes" >&6
5694 else
5695 echo "$as_me:$LINENO: result: no" >&5
5696echo "${ECHO_T}no" >&6
5697 fi
5698
5699
5700 enablestring=
5701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5702echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5703 no_cache=0
5704 # Check whether --enable-mslu or --disable-mslu was given.
5705if test "${enable_mslu+set}" = set; then
5706 enableval="$enable_mslu"
5707
5708 if test "$enableval" = yes; then
5709 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5710 else
5711 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5712 fi
5713
5714else
5715
5716 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5717 if test "x$LINE" != x ; then
5718 eval "DEFAULT_$LINE"
5719 else
5720 no_cache=1
5721 fi
5722
5723 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5724
5725fi;
5726
5727 eval "$ac_cv_use_mslu"
5728 if test "$no_cache" != 1; then
5729 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5730 fi
5731
5732 if test "$wxUSE_UNICODE_MSLU" = yes; then
5733 echo "$as_me:$LINENO: result: yes" >&5
5734echo "${ECHO_T}yes" >&6
5735 else
5736 echo "$as_me:$LINENO: result: no" >&5
5737echo "${ECHO_T}no" >&6
5738 fi
5739
5740
5741 enablestring=
5742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5743echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5744 no_cache=0
5745 # Check whether --enable-snglinst or --disable-snglinst was given.
5746if test "${enable_snglinst+set}" = set; then
5747 enableval="$enable_snglinst"
5748
5749 if test "$enableval" = yes; then
5750 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5751 else
5752 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5753 fi
5754
5755else
5756
5757 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5758 if test "x$LINE" != x ; then
5759 eval "DEFAULT_$LINE"
5760 else
5761 no_cache=1
5762 fi
5763
5764 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5765
5766fi;
5767
5768 eval "$ac_cv_use_snglinst"
5769 if test "$no_cache" != 1; then
5770 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5771 fi
5772
5773 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5774 echo "$as_me:$LINENO: result: yes" >&5
5775echo "${ECHO_T}yes" >&6
5776 else
5777 echo "$as_me:$LINENO: result: no" >&5
5778echo "${ECHO_T}no" >&6
5779 fi
5780
5781
5782 enablestring=
07158944
VZ
5783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5784echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5785 no_cache=0
07158944
VZ
5786 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5787if test "${enable_std_iostreams+set}" = set; then
5788 enableval="$enable_std_iostreams"
a848cd7e
SC
5789
5790 if test "$enableval" = yes; then
07158944 5791 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5792 else
07158944 5793 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5794 fi
5795
5796else
5797
07158944 5798 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5799 if test "x$LINE" != x ; then
5800 eval "DEFAULT_$LINE"
5801 else
5802 no_cache=1
5803 fi
5804
07158944 5805 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5806
5807fi;
5808
07158944 5809 eval "$ac_cv_use_std_iostreams"
a848cd7e 5810 if test "$no_cache" != 1; then
07158944 5811 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5812 fi
5813
07158944 5814 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5815 echo "$as_me:$LINENO: result: yes" >&5
5816echo "${ECHO_T}yes" >&6
5817 else
5818 echo "$as_me:$LINENO: result: no" >&5
5819echo "${ECHO_T}no" >&6
5820 fi
5821
5822
59746b65
MW
5823 enablestring=
5824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5825echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5826 no_cache=0
5827 # Check whether --enable-std_string or --disable-std_string was given.
5828if test "${enable_std_string+set}" = set; then
5829 enableval="$enable_std_string"
5830
5831 if test "$enableval" = yes; then
5832 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5833 else
5834 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5835 fi
5836
5837else
5838
5839 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5840 if test "x$LINE" != x ; then
5841 eval "DEFAULT_$LINE"
5842 else
5843 no_cache=1
5844 fi
5845
5846 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5847
5848fi;
5849
5850 eval "$ac_cv_use_std_string"
5851 if test "$no_cache" != 1; then
5852 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5853 fi
5854
5855 if test "$wxUSE_STD_STRING" = yes; then
5856 echo "$as_me:$LINENO: result: yes" >&5
5857echo "${ECHO_T}yes" >&6
5858 else
5859 echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6
5861 fi
5862
5863
a848cd7e 5864 enablestring=
07158944
VZ
5865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5866echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5867 no_cache=0
07158944
VZ
5868 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5869if test "${enable_stdpaths+set}" = set; then
5870 enableval="$enable_stdpaths"
a848cd7e
SC
5871
5872 if test "$enableval" = yes; then
07158944 5873 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5874 else
07158944 5875 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5876 fi
5877
5878else
5879
07158944 5880 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5881 if test "x$LINE" != x ; then
5882 eval "DEFAULT_$LINE"
5883 else
5884 no_cache=1
5885 fi
5886
07158944 5887 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5888
5889fi;
5890
07158944 5891 eval "$ac_cv_use_stdpaths"
a848cd7e 5892 if test "$no_cache" != 1; then
07158944 5893 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5894 fi
5895
07158944 5896 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5897 echo "$as_me:$LINENO: result: yes" >&5
5898echo "${ECHO_T}yes" >&6
5899 else
5900 echo "$as_me:$LINENO: result: no" >&5
5901echo "${ECHO_T}no" >&6
5902 fi
5903
5904
5905 enablestring=
5906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5907echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5908 no_cache=0
5909 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5910if test "${enable_stopwatch+set}" = set; then
5911 enableval="$enable_stopwatch"
5912
5913 if test "$enableval" = yes; then
5914 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5915 else
5916 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5917 fi
5918
5919else
5920
5921 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5922 if test "x$LINE" != x ; then
5923 eval "DEFAULT_$LINE"
5924 else
5925 no_cache=1
5926 fi
5927
5928 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5929
5930fi;
5931
5932 eval "$ac_cv_use_stopwatch"
5933 if test "$no_cache" != 1; then
5934 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5935 fi
5936
5937 if test "$wxUSE_STOPWATCH" = yes; then
5938 echo "$as_me:$LINENO: result: yes" >&5
5939echo "${ECHO_T}yes" >&6
5940 else
5941 echo "$as_me:$LINENO: result: no" >&5
5942echo "${ECHO_T}no" >&6
5943 fi
5944
5945
07158944
VZ
5946 enablestring=
5947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5948echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5949 no_cache=0
5950 # Check whether --enable-streams or --disable-streams was given.
5951if test "${enable_streams+set}" = set; then
5952 enableval="$enable_streams"
5953
5954 if test "$enableval" = yes; then
5955 ac_cv_use_streams='wxUSE_STREAMS=yes'
5956 else
5957 ac_cv_use_streams='wxUSE_STREAMS=no'
5958 fi
5959
5960else
5961
5962 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5963 if test "x$LINE" != x ; then
5964 eval "DEFAULT_$LINE"
5965 else
5966 no_cache=1
5967 fi
5968
5969 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5970
5971fi;
5972
5973 eval "$ac_cv_use_streams"
5974 if test "$no_cache" != 1; then
5975 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5976 fi
5977
5978 if test "$wxUSE_STREAMS" = yes; then
5979 echo "$as_me:$LINENO: result: yes" >&5
5980echo "${ECHO_T}yes" >&6
5981 else
5982 echo "$as_me:$LINENO: result: no" >&5
5983echo "${ECHO_T}no" >&6
5984 fi
5985
5986
a848cd7e
SC
5987 enablestring=
5988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5989echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5990 no_cache=0
5991 # Check whether --enable-system_options or --disable-system_options was given.
5992if test "${enable_system_options+set}" = set; then
5993 enableval="$enable_system_options"
5994
5995 if test "$enableval" = yes; then
5996 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5997 else
5998 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5999 fi
6000
6001else
6002
6003 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6004 if test "x$LINE" != x ; then
6005 eval "DEFAULT_$LINE"
6006 else
6007 no_cache=1
6008 fi
6009
6010 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6011
6012fi;
6013
6014 eval "$ac_cv_use_system_options"
6015 if test "$no_cache" != 1; then
6016 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6017 fi
6018
6019 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6020 echo "$as_me:$LINENO: result: yes" >&5
6021echo "${ECHO_T}yes" >&6
6022 else
6023 echo "$as_me:$LINENO: result: no" >&5
6024echo "${ECHO_T}no" >&6
6025 fi
6026
6027
6028 enablestring=
6029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6030echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6031 no_cache=0
6032 # Check whether --enable-textbuf or --disable-textbuf was given.
6033if test "${enable_textbuf+set}" = set; then
6034 enableval="$enable_textbuf"
6035
6036 if test "$enableval" = yes; then
6037 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6038 else
6039 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6040 fi
6041
6042else
6043
6044 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6045 if test "x$LINE" != x ; then
6046 eval "DEFAULT_$LINE"
6047 else
6048 no_cache=1
6049 fi
6050
6051 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6052
6053fi;
6054
6055 eval "$ac_cv_use_textbuf"
6056 if test "$no_cache" != 1; then
6057 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6058 fi
6059
6060 if test "$wxUSE_TEXTBUFFER" = yes; then
6061 echo "$as_me:$LINENO: result: yes" >&5
6062echo "${ECHO_T}yes" >&6
6063 else
6064 echo "$as_me:$LINENO: result: no" >&5
6065echo "${ECHO_T}no" >&6
6066 fi
6067
6068
6069 enablestring=
6070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6071echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6072 no_cache=0
6073 # Check whether --enable-textfile or --disable-textfile was given.
6074if test "${enable_textfile+set}" = set; then
6075 enableval="$enable_textfile"
6076
6077 if test "$enableval" = yes; then
6078 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6079 else
6080 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6081 fi
6082
6083else
6084
6085 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6086 if test "x$LINE" != x ; then
6087 eval "DEFAULT_$LINE"
6088 else
6089 no_cache=1
6090 fi
6091
6092 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6093
6094fi;
6095
6096 eval "$ac_cv_use_textfile"
6097 if test "$no_cache" != 1; then
6098 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6099 fi
6100
6101 if test "$wxUSE_TEXTFILE" = yes; then
6102 echo "$as_me:$LINENO: result: yes" >&5
6103echo "${ECHO_T}yes" >&6
6104 else
6105 echo "$as_me:$LINENO: result: no" >&5
6106echo "${ECHO_T}no" >&6
6107 fi
6108
6109
6110 enablestring=
6111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6112echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6113 no_cache=0
6114 # Check whether --enable-timer or --disable-timer was given.
6115if test "${enable_timer+set}" = set; then
6116 enableval="$enable_timer"
6117
6118 if test "$enableval" = yes; then
6119 ac_cv_use_timer='wxUSE_TIMER=yes'
6120 else
6121 ac_cv_use_timer='wxUSE_TIMER=no'
6122 fi
6123
6124else
6125
6126 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6127 if test "x$LINE" != x ; then
6128 eval "DEFAULT_$LINE"
6129 else
6130 no_cache=1
6131 fi
6132
6133 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6134
6135fi;
6136
6137 eval "$ac_cv_use_timer"
6138 if test "$no_cache" != 1; then
6139 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6140 fi
6141
6142 if test "$wxUSE_TIMER" = yes; then
6143 echo "$as_me:$LINENO: result: yes" >&5
6144echo "${ECHO_T}yes" >&6
6145 else
6146 echo "$as_me:$LINENO: result: no" >&5
6147echo "${ECHO_T}no" >&6
6148 fi
6149
6150
6151 enablestring=
6152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6153echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6154 no_cache=0
6155 # Check whether --enable-unicode or --disable-unicode was given.
6156if test "${enable_unicode+set}" = set; then
6157 enableval="$enable_unicode"
6158
6159 if test "$enableval" = yes; then
6160 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6161 else
6162 ac_cv_use_unicode='wxUSE_UNICODE=no'
6163 fi
6164
6165else
6166
6167 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6168 if test "x$LINE" != x ; then
6169 eval "DEFAULT_$LINE"
6170 else
6171 no_cache=1
6172 fi
6173
6174 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6175
6176fi;
6177
6178 eval "$ac_cv_use_unicode"
6179 if test "$no_cache" != 1; then
6180 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6181 fi
6182
6183 if test "$wxUSE_UNICODE" = yes; then
6184 echo "$as_me:$LINENO: result: yes" >&5
6185echo "${ECHO_T}yes" >&6
6186 else
6187 echo "$as_me:$LINENO: result: no" >&5
6188echo "${ECHO_T}no" >&6
6189 fi
6190
6191
6192 enablestring=
6193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6194echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6195 no_cache=0
6196 # Check whether --enable-sound or --disable-sound was given.
6197if test "${enable_sound+set}" = set; then
6198 enableval="$enable_sound"
6199
6200 if test "$enableval" = yes; then
6201 ac_cv_use_sound='wxUSE_SOUND=yes'
6202 else
6203 ac_cv_use_sound='wxUSE_SOUND=no'
6204 fi
6205
6206else
6207
6208 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6209 if test "x$LINE" != x ; then
6210 eval "DEFAULT_$LINE"
6211 else
6212 no_cache=1
6213 fi
6214
6215 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6216
6217fi;
6218
6219 eval "$ac_cv_use_sound"
6220 if test "$no_cache" != 1; then
6221 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6222 fi
6223
6224 if test "$wxUSE_SOUND" = yes; then
6225 echo "$as_me:$LINENO: result: yes" >&5
6226echo "${ECHO_T}yes" >&6
6227 else
6228 echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
6230 fi
6231
6232
3b57de8b
RL
6233 enablestring=
6234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6235echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6236 no_cache=0
6237 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6238if test "${enable_mediactrl+set}" = set; then
6239 enableval="$enable_mediactrl"
6240
6241 if test "$enableval" = yes; then
6242 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6243 else
6244 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6245 fi
6246
6247else
6248
6249 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6250 if test "x$LINE" != x ; then
6251 eval "DEFAULT_$LINE"
6252 else
6253 no_cache=1
6254 fi
6255
6256 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6257
6258fi;
6259
6260 eval "$ac_cv_use_mediactrl"
6261 if test "$no_cache" != 1; then
6262 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6263 fi
6264
6265 if test "$wxUSE_MEDIACTRL" = yes; then
6266 echo "$as_me:$LINENO: result: yes" >&5
6267echo "${ECHO_T}yes" >&6
6268 else
6269 echo "$as_me:$LINENO: result: no" >&5
6270echo "${ECHO_T}no" >&6
6271 fi
6272
6273
f10e38c4
VZ
6274 enablestring=
6275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6276echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6277 no_cache=0
6278 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6279if test "${enable_gstreamer8+set}" = set; then
6280 enableval="$enable_gstreamer8"
6281
6282 if test "$enableval" = yes; then
6283 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6284 else
6285 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6286 fi
6287
6288else
6289
6290 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6291 if test "x$LINE" != x ; then
6292 eval "DEFAULT_$LINE"
6293 else
6294 no_cache=1
6295 fi
6296
6297 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6298
6299fi;
6300
6301 eval "$ac_cv_use_gstreamer8"
6302 if test "$no_cache" != 1; then
6303 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6304 fi
6305
6306 if test "$wxUSE_GSTREAMER8" = yes; then
6307 echo "$as_me:$LINENO: result: yes" >&5
6308echo "${ECHO_T}yes" >&6
6309 else
6310 echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6
6312 fi
6313
6314
a848cd7e
SC
6315 enablestring=
6316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6317echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6318 no_cache=0
6319 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6320if test "${enable_wxprintfv+set}" = set; then
6321 enableval="$enable_wxprintfv"
6322
6323 if test "$enableval" = yes; then
6324 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6325 else
6326 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6327 fi
6328
6329else
6330
6331 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6332 if test "x$LINE" != x ; then
6333 eval "DEFAULT_$LINE"
6334 else
6335 no_cache=1
6336 fi
6337
6338 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6339
6340fi;
6341
6342 eval "$ac_cv_use_wxprintfv"
6343 if test "$no_cache" != 1; then
6344 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6345 fi
6346
6347 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6348 echo "$as_me:$LINENO: result: yes" >&5
6349echo "${ECHO_T}yes" >&6
6350 else
6351 echo "$as_me:$LINENO: result: no" >&5
6352echo "${ECHO_T}no" >&6
6353 fi
6354
6355
6356 enablestring=
6357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6358echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6359 no_cache=0
6360 # Check whether --enable-zipstream or --disable-zipstream was given.
6361if test "${enable_zipstream+set}" = set; then
6362 enableval="$enable_zipstream"
6363
6364 if test "$enableval" = yes; then
6365 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6366 else
6367 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6368 fi
6369
6370else
6371
6372 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6373 if test "x$LINE" != x ; then
6374 eval "DEFAULT_$LINE"
6375 else
6376 no_cache=1
6377 fi
6378
6379 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6380
6381fi;
6382
6383 eval "$ac_cv_use_zipstream"
6384 if test "$no_cache" != 1; then
6385 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6386 fi
6387
6388 if test "$wxUSE_ZIPSTREAM" = yes; then
6389 echo "$as_me:$LINENO: result: yes" >&5
6390echo "${ECHO_T}yes" >&6
6391 else
6392 echo "$as_me:$LINENO: result: no" >&5
6393echo "${ECHO_T}no" >&6
6394 fi
6395
6396
a848cd7e
SC
6397
6398 enablestring=
6399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6400echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6401 no_cache=0
6402 # Check whether --enable-url or --disable-url was given.
6403if test "${enable_url+set}" = set; then
6404 enableval="$enable_url"
6405
6406 if test "$enableval" = yes; then
6407 ac_cv_use_url='wxUSE_URL=yes'
6408 else
6409 ac_cv_use_url='wxUSE_URL=no'
6410 fi
6411
6412else
6413
6414 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6415 if test "x$LINE" != x ; then
6416 eval "DEFAULT_$LINE"
6417 else
6418 no_cache=1
6419 fi
6420
6421 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6422
6423fi;
6424
6425 eval "$ac_cv_use_url"
6426 if test "$no_cache" != 1; then
6427 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6428 fi
6429
6430 if test "$wxUSE_URL" = yes; then
6431 echo "$as_me:$LINENO: result: yes" >&5
6432echo "${ECHO_T}yes" >&6
6433 else
6434 echo "$as_me:$LINENO: result: no" >&5
6435echo "${ECHO_T}no" >&6
6436 fi
6437
6438
6439 enablestring=
6440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6441echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6442 no_cache=0
6443 # Check whether --enable-protocol or --disable-protocol was given.
6444if test "${enable_protocol+set}" = set; then
6445 enableval="$enable_protocol"
6446
6447 if test "$enableval" = yes; then
6448 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6449 else
6450 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6451 fi
6452
6453else
6454
6455 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6456 if test "x$LINE" != x ; then
6457 eval "DEFAULT_$LINE"
6458 else
6459 no_cache=1
6460 fi
6461
6462 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6463
6464fi;
6465
6466 eval "$ac_cv_use_protocol"
6467 if test "$no_cache" != 1; then
6468 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6469 fi
6470
6471 if test "$wxUSE_PROTOCOL" = yes; then
6472 echo "$as_me:$LINENO: result: yes" >&5
6473echo "${ECHO_T}yes" >&6
6474 else
6475 echo "$as_me:$LINENO: result: no" >&5
6476echo "${ECHO_T}no" >&6
6477 fi
6478
6479
6480 enablestring=
6481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6482echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6483 no_cache=0
6484 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6485if test "${enable_protocol_http+set}" = set; then
6486 enableval="$enable_protocol_http"
6487
6488 if test "$enableval" = yes; then
6489 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6490 else
6491 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6492 fi
6493
6494else
6495
6496 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6497 if test "x$LINE" != x ; then
6498 eval "DEFAULT_$LINE"
6499 else
6500 no_cache=1
6501 fi
6502
6503 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6504
6505fi;
6506
6507 eval "$ac_cv_use_protocol_http"
6508 if test "$no_cache" != 1; then
6509 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6510 fi
6511
6512 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6513 echo "$as_me:$LINENO: result: yes" >&5
6514echo "${ECHO_T}yes" >&6
6515 else
6516 echo "$as_me:$LINENO: result: no" >&5
6517echo "${ECHO_T}no" >&6
6518 fi
6519
6520
6521 enablestring=
6522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6523echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6524 no_cache=0
6525 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6526if test "${enable_protocol_ftp+set}" = set; then
6527 enableval="$enable_protocol_ftp"
6528
6529 if test "$enableval" = yes; then
6530 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6531 else
6532 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6533 fi
6534
6535else
6536
6537 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6538 if test "x$LINE" != x ; then
6539 eval "DEFAULT_$LINE"
6540 else
6541 no_cache=1
6542 fi
6543
6544 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6545
6546fi;
6547
6548 eval "$ac_cv_use_protocol_ftp"
6549 if test "$no_cache" != 1; then
6550 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6551 fi
6552
6553 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6554 echo "$as_me:$LINENO: result: yes" >&5
6555echo "${ECHO_T}yes" >&6
6556 else
6557 echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6
6559 fi
6560
6561
6562 enablestring=
6563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6564echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6565 no_cache=0
6566 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6567if test "${enable_protocol_file+set}" = set; then
6568 enableval="$enable_protocol_file"
6569
6570 if test "$enableval" = yes; then
6571 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6572 else
6573 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6574 fi
6575
6576else
6577
6578 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6579 if test "x$LINE" != x ; then
6580 eval "DEFAULT_$LINE"
6581 else
6582 no_cache=1
6583 fi
6584
6585 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6586
6587fi;
6588
6589 eval "$ac_cv_use_protocol_file"
6590 if test "$no_cache" != 1; then
6591 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6592 fi
6593
6594 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6595 echo "$as_me:$LINENO: result: yes" >&5
6596echo "${ECHO_T}yes" >&6
6597 else
6598 echo "$as_me:$LINENO: result: no" >&5
6599echo "${ECHO_T}no" >&6
6600 fi
6601
6602
6603
6604
6605
6606 enablestring=
6607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6608echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6609 no_cache=0
6610 # Check whether --enable-threads or --disable-threads was given.
6611if test "${enable_threads+set}" = set; then
6612 enableval="$enable_threads"
6613
6614 if test "$enableval" = yes; then
6615 ac_cv_use_threads='wxUSE_THREADS=yes'
6616 else
6617 ac_cv_use_threads='wxUSE_THREADS=no'
6618 fi
6619
6620else
6621
6622 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6623 if test "x$LINE" != x ; then
6624 eval "DEFAULT_$LINE"
6625 else
6626 no_cache=1
6627 fi
6628
6629 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6630
6631fi;
6632
6633 eval "$ac_cv_use_threads"
6634 if test "$no_cache" != 1; then
6635 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6636 fi
6637
6638 if test "$wxUSE_THREADS" = yes; then
6639 echo "$as_me:$LINENO: result: yes" >&5
6640echo "${ECHO_T}yes" >&6
6641 else
6642 echo "$as_me:$LINENO: result: no" >&5
6643echo "${ECHO_T}no" >&6
6644 fi
6645
6646
6647if test "$wxUSE_GUI" = "yes"; then
6648
6649
6650
6651 enablestring=
6652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6653echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6654 no_cache=0
6655 # Check whether --enable-docview or --disable-docview was given.
6656if test "${enable_docview+set}" = set; then
6657 enableval="$enable_docview"
6658
6659 if test "$enableval" = yes; then
6660 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6661 else
6662 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6663 fi
6664
6665else
6666
6667 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6668 if test "x$LINE" != x ; then
6669 eval "DEFAULT_$LINE"
6670 else
6671 no_cache=1
6672 fi
6673
6674 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6675
6676fi;
6677
6678 eval "$ac_cv_use_docview"
6679 if test "$no_cache" != 1; then
6680 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6681 fi
6682
6683 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6684 echo "$as_me:$LINENO: result: yes" >&5
6685echo "${ECHO_T}yes" >&6
6686 else
6687 echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6
6689 fi
6690
6691
6692 enablestring=
6693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6694echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6695 no_cache=0
6696 # Check whether --enable-help or --disable-help was given.
6697if test "${enable_help+set}" = set; then
6698 enableval="$enable_help"
6699
6700 if test "$enableval" = yes; then
6701 ac_cv_use_help='wxUSE_HELP=yes'
6702 else
6703 ac_cv_use_help='wxUSE_HELP=no'
6704 fi
6705
6706else
6707
6708 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6716
6717fi;
6718
6719 eval "$ac_cv_use_help"
6720 if test "$no_cache" != 1; then
6721 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6722 fi
6723
6724 if test "$wxUSE_HELP" = yes; then
6725 echo "$as_me:$LINENO: result: yes" >&5
6726echo "${ECHO_T}yes" >&6
6727 else
6728 echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6
6730 fi
6731
6732
6733 enablestring=
6734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6735echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6736 no_cache=0
6737 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6738if test "${enable_mshtmlhelp+set}" = set; then
6739 enableval="$enable_mshtmlhelp"
6740
6741 if test "$enableval" = yes; then
6742 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6743 else
6744 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6745 fi
6746
6747else
6748
6749 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6750 if test "x$LINE" != x ; then
6751 eval "DEFAULT_$LINE"
6752 else
6753 no_cache=1
6754 fi
6755
6756 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6757
6758fi;
6759
6760 eval "$ac_cv_use_mshtmlhelp"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_MS_HTML_HELP" = yes; then
6766 echo "$as_me:$LINENO: result: yes" >&5
6767echo "${ECHO_T}yes" >&6
6768 else
6769 echo "$as_me:$LINENO: result: no" >&5
6770echo "${ECHO_T}no" >&6
6771 fi
6772
6773
6774 enablestring=
6775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6776echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6777 no_cache=0
6778 # Check whether --enable-html or --disable-html was given.
6779if test "${enable_html+set}" = set; then
6780 enableval="$enable_html"
6781
6782 if test "$enableval" = yes; then
6783 ac_cv_use_html='wxUSE_HTML=yes'
6784 else
6785 ac_cv_use_html='wxUSE_HTML=no'
6786 fi
6787
6788else
6789
6790 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6791 if test "x$LINE" != x ; then
6792 eval "DEFAULT_$LINE"
6793 else
6794 no_cache=1
6795 fi
6796
6797 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6798
6799fi;
6800
6801 eval "$ac_cv_use_html"
6802 if test "$no_cache" != 1; then
6803 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6804 fi
6805
6806 if test "$wxUSE_HTML" = yes; then
6807 echo "$as_me:$LINENO: result: yes" >&5
6808echo "${ECHO_T}yes" >&6
6809 else
6810 echo "$as_me:$LINENO: result: no" >&5
6811echo "${ECHO_T}no" >&6
6812 fi
6813
6814
6815 enablestring=
6816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6817echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6818 no_cache=0
6819 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6820if test "${enable_htmlhelp+set}" = set; then
6821 enableval="$enable_htmlhelp"
6822
6823 if test "$enableval" = yes; then
6824 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6825 else
6826 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6827 fi
6828
6829else
6830
6831 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6832 if test "x$LINE" != x ; then
6833 eval "DEFAULT_$LINE"
6834 else
6835 no_cache=1
6836 fi
6837
6838 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6839
6840fi;
6841
6842 eval "$ac_cv_use_htmlhelp"
6843 if test "$no_cache" != 1; then
6844 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6845 fi
6846
6847 if test "$wxUSE_WXHTML_HELP" = yes; then
6848 echo "$as_me:$LINENO: result: yes" >&5
6849echo "${ECHO_T}yes" >&6
6850 else
6851 echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6
6853 fi
6854
6855
9a8f0513
VS
6856 enablestring=
6857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6858echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6859 no_cache=0
6860 # Check whether --enable-xrc or --disable-xrc was given.
6861if test "${enable_xrc+set}" = set; then
6862 enableval="$enable_xrc"
6863
6864 if test "$enableval" = yes; then
6865 ac_cv_use_xrc='wxUSE_XRC=yes'
6866 else
6867 ac_cv_use_xrc='wxUSE_XRC=no'
6868 fi
6869
6870else
6871
6872 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6873 if test "x$LINE" != x ; then
6874 eval "DEFAULT_$LINE"
6875 else
6876 no_cache=1
6877 fi
6878
6879 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6880
6881fi;
6882
6883 eval "$ac_cv_use_xrc"
6884 if test "$no_cache" != 1; then
6885 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6886 fi
6887
6888 if test "$wxUSE_XRC" = yes; then
6889 echo "$as_me:$LINENO: result: yes" >&5
6890echo "${ECHO_T}yes" >&6
6891 else
6892 echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6
6894 fi
6895
6896
a848cd7e
SC
6897 enablestring=
6898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6899echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6900 no_cache=0
6901 # Check whether --enable-constraints or --disable-constraints was given.
6902if test "${enable_constraints+set}" = set; then
6903 enableval="$enable_constraints"
6904
6905 if test "$enableval" = yes; then
6906 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6907 else
6908 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6909 fi
6910
6911else
6912
6913 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6914 if test "x$LINE" != x ; then
6915 eval "DEFAULT_$LINE"
6916 else
6917 no_cache=1
6918 fi
6919
6920 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6921
6922fi;
6923
6924 eval "$ac_cv_use_constraints"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_CONSTRAINTS" = yes; then
6930 echo "$as_me:$LINENO: result: yes" >&5
6931echo "${ECHO_T}yes" >&6
6932 else
6933 echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6
6935 fi
6936
6937
6938 enablestring=
6939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6940echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6941 no_cache=0
6942 # Check whether --enable-printarch or --disable-printarch was given.
6943if test "${enable_printarch+set}" = set; then
6944 enableval="$enable_printarch"
6945
6946 if test "$enableval" = yes; then
6947 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6948 else
6949 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6950 fi
6951
6952else
6953
6954 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6955 if test "x$LINE" != x ; then
6956 eval "DEFAULT_$LINE"
6957 else
6958 no_cache=1
6959 fi
6960
6961 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6962
6963fi;
6964
6965 eval "$ac_cv_use_printarch"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6971 echo "$as_me:$LINENO: result: yes" >&5
6972echo "${ECHO_T}yes" >&6
6973 else
6974 echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6
6976 fi
6977
6978
6979 enablestring=
6980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6981echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6982 no_cache=0
6983 # Check whether --enable-mdi or --disable-mdi was given.
6984if test "${enable_mdi+set}" = set; then
6985 enableval="$enable_mdi"
6986
6987 if test "$enableval" = yes; then
8a7b1113 6988 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6989 else
8a7b1113 6990 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6991 fi
6992
6993else
6994
8a7b1113 6995 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6996 if test "x$LINE" != x ; then
6997 eval "DEFAULT_$LINE"
6998 else
6999 no_cache=1
7000 fi
7001
8a7b1113 7002 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7003
7004fi;
7005
7006 eval "$ac_cv_use_mdi"
7007 if test "$no_cache" != 1; then
7008 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7009 fi
7010
8a7b1113
VZ
7011 if test "$wxUSE_MDI" = yes; then
7012 echo "$as_me:$LINENO: result: yes" >&5
7013echo "${ECHO_T}yes" >&6
7014 else
7015 echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6
7017 fi
7018
7019
7020 enablestring=
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7023 no_cache=0
7024 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7025if test "${enable_mdidoc+set}" = set; then
7026 enableval="$enable_mdidoc"
7027
7028 if test "$enableval" = yes; then
7029 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7030 else
7031 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7032 fi
7033
7034else
7035
7036 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7037 if test "x$LINE" != x ; then
7038 eval "DEFAULT_$LINE"
7039 else
7040 no_cache=1
7041 fi
7042
7043 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7044
7045fi;
7046
7047 eval "$ac_cv_use_mdidoc"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7050 fi
7051
a848cd7e
SC
7052 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
7055 else
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
7058 fi
7059
7060
7061 enablestring=
7062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7063echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7064 no_cache=0
7065 # Check whether --enable-loggui or --disable-loggui was given.
7066if test "${enable_loggui+set}" = set; then
7067 enableval="$enable_loggui"
7068
7069 if test "$enableval" = yes; then
7070 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7071 else
7072 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7073 fi
7074
7075else
7076
7077 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7078 if test "x$LINE" != x ; then
7079 eval "DEFAULT_$LINE"
7080 else
7081 no_cache=1
7082 fi
7083
7084 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7085
7086fi;
7087
7088 eval "$ac_cv_use_loggui"
7089 if test "$no_cache" != 1; then
7090 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7091 fi
7092
7093 if test "$wxUSE_LOGGUI" = yes; then
7094 echo "$as_me:$LINENO: result: yes" >&5
7095echo "${ECHO_T}yes" >&6
7096 else
7097 echo "$as_me:$LINENO: result: no" >&5
7098echo "${ECHO_T}no" >&6
7099 fi
7100
7101
7102 enablestring=
7103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7104echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7105 no_cache=0
7106 # Check whether --enable-logwin or --disable-logwin was given.
7107if test "${enable_logwin+set}" = set; then
7108 enableval="$enable_logwin"
7109
7110 if test "$enableval" = yes; then
7111 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7112 else
7113 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7114 fi
7115
7116else
7117
7118 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7119 if test "x$LINE" != x ; then
7120 eval "DEFAULT_$LINE"
7121 else
7122 no_cache=1
7123 fi
7124
7125 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7126
7127fi;
7128
7129 eval "$ac_cv_use_logwin"
7130 if test "$no_cache" != 1; then
7131 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7132 fi
7133
7134 if test "$wxUSE_LOGWINDOW" = yes; then
7135 echo "$as_me:$LINENO: result: yes" >&5
7136echo "${ECHO_T}yes" >&6
7137 else
7138 echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6
7140 fi
7141
7142
7143 enablestring=
7144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7145echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7146 no_cache=0
7147 # Check whether --enable-logdialog or --disable-logdialog was given.
7148if test "${enable_logdialog+set}" = set; then
7149 enableval="$enable_logdialog"
7150
7151 if test "$enableval" = yes; then
7152 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7153 else
7154 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7155 fi
7156
7157else
7158
7159 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7160 if test "x$LINE" != x ; then
7161 eval "DEFAULT_$LINE"
7162 else
7163 no_cache=1
7164 fi
7165
7166 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7167
7168fi;
7169
7170 eval "$ac_cv_use_logdialog"
7171 if test "$no_cache" != 1; then
7172 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7173 fi
7174
7175 if test "$wxUSE_LOGDIALOG" = yes; then
7176 echo "$as_me:$LINENO: result: yes" >&5
7177echo "${ECHO_T}yes" >&6
7178 else
7179 echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6
7181 fi
7182
7183
646b6ec1
VS
7184 enablestring=
7185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7186echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7187 no_cache=0
7188 # Check whether --enable-webkit or --disable-webkit was given.
7189if test "${enable_webkit+set}" = set; then
7190 enableval="$enable_webkit"
7191
7192 if test "$enableval" = yes; then
7193 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7194 else
7195 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7196 fi
7197
7198else
7199
7200 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7201 if test "x$LINE" != x ; then
7202 eval "DEFAULT_$LINE"
7203 else
7204 no_cache=1
7205 fi
7206
7207 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7208
7209fi;
7210
7211 eval "$ac_cv_use_webkit"
7212 if test "$no_cache" != 1; then
7213 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7214 fi
7215
7216 if test "$wxUSE_WEBKIT" = yes; then
7217 echo "$as_me:$LINENO: result: yes" >&5
7218echo "${ECHO_T}yes" >&6
7219 else
7220 echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6
7222 fi
7223
7224
91dea314
MW
7225 enablestring=
7226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7227echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7228 no_cache=0
7229 # Check whether --enable-html or --disable-html was given.
7230if test "${enable_html+set}" = set; then
7231 enableval="$enable_html"
7232
7233 if test "$enableval" = yes; then
7234 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7235 else
7236 ac_cv_use_html='wxUSE_RICHTEXT=no'
7237 fi
7238
7239else
7240
7241 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7242 if test "x$LINE" != x ; then
7243 eval "DEFAULT_$LINE"
7244 else
7245 no_cache=1
7246 fi
7247
7248 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7249
7250fi;
7251
7252 eval "$ac_cv_use_html"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_RICHTEXT" = yes; then
7258 echo "$as_me:$LINENO: result: yes" >&5
7259echo "${ECHO_T}yes" >&6
7260 else
7261 echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6
7263 fi
7264
7265
a848cd7e
SC
7266
7267 enablestring=
7268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7269echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7270 no_cache=0
7271 # Check whether --enable-postscript or --disable-postscript was given.
7272if test "${enable_postscript+set}" = set; then
7273 enableval="$enable_postscript"
7274
7275 if test "$enableval" = yes; then
7276 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7277 else
7278 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7279 fi
7280
7281else
7282
7283 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7284 if test "x$LINE" != x ; then
7285 eval "DEFAULT_$LINE"
7286 else
7287 no_cache=1
7288 fi
7289
7290 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7291
7292fi;
7293
7294 eval "$ac_cv_use_postscript"
7295 if test "$no_cache" != 1; then
7296 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7297 fi
7298
7299 if test "$wxUSE_POSTSCRIPT" = yes; then
7300 echo "$as_me:$LINENO: result: yes" >&5
7301echo "${ECHO_T}yes" >&6
7302 else
7303 echo "$as_me:$LINENO: result: no" >&5
7304echo "${ECHO_T}no" >&6
7305 fi
7306
7307
7308
7309
7310
7311 enablestring=
7312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7313echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7314 no_cache=0
7315 # Check whether --enable-prologio or --disable-prologio was given.
7316if test "${enable_prologio+set}" = set; then
7317 enableval="$enable_prologio"
7318
7319 if test "$enableval" = yes; then
7320 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7321 else
7322 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7323 fi
7324
7325else
7326
7327 LINE=`grep "wxUSE_PROLOGIO" ${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_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7335
7336fi;
7337
7338 eval "$ac_cv_use_prologio"
7339 if test "$no_cache" != 1; then
7340 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7341 fi
7342
7343 if test "$wxUSE_PROLOGIO" = 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 enablestring=
7353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7354echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7355 no_cache=0
7356 # Check whether --enable-resources or --disable-resources was given.
7357if test "${enable_resources+set}" = set; then
7358 enableval="$enable_resources"
7359
7360 if test "$enableval" = yes; then
7361 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7362 else
7363 ac_cv_use_resources='wxUSE_RESOURCES=no'
7364 fi
7365
7366else
7367
7368 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7369 if test "x$LINE" != x ; then
7370 eval "DEFAULT_$LINE"
7371 else
7372 no_cache=1
7373 fi
7374
7375 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7376
7377fi;
7378
7379 eval "$ac_cv_use_resources"
7380 if test "$no_cache" != 1; then
7381 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7382 fi
7383
7384 if test "$wxUSE_RESOURCES" = yes; then
7385 echo "$as_me:$LINENO: result: yes" >&5
7386echo "${ECHO_T}yes" >&6
7387 else
7388 echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6
7390 fi
7391
7392
7393
7394
7395 enablestring=
7396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7397echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7398 no_cache=0
7399 # Check whether --enable-clipboard or --disable-clipboard was given.
7400if test "${enable_clipboard+set}" = set; then
7401 enableval="$enable_clipboard"
7402
7403 if test "$enableval" = yes; then
7404 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7405 else
7406 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7407 fi
7408
7409else
7410
7411 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7412 if test "x$LINE" != x ; then
7413 eval "DEFAULT_$LINE"
7414 else
7415 no_cache=1
7416 fi
7417
7418 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7419
7420fi;
7421
7422 eval "$ac_cv_use_clipboard"
7423 if test "$no_cache" != 1; then
7424 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7425 fi
7426
7427 if test "$wxUSE_CLIPBOARD" = yes; then
7428 echo "$as_me:$LINENO: result: yes" >&5
7429echo "${ECHO_T}yes" >&6
7430 else
7431 echo "$as_me:$LINENO: result: no" >&5
7432echo "${ECHO_T}no" >&6
7433 fi
7434
7435
7436 enablestring=
7437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7438echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7439 no_cache=0
7440 # Check whether --enable-dnd or --disable-dnd was given.
7441if test "${enable_dnd+set}" = set; then
7442 enableval="$enable_dnd"
7443
7444 if test "$enableval" = yes; then
7445 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7446 else
7447 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7448 fi
7449
7450else
7451
7452 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7453 if test "x$LINE" != x ; then
7454 eval "DEFAULT_$LINE"
7455 else
7456 no_cache=1
7457 fi
7458
7459 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7460
7461fi;
7462
7463 eval "$ac_cv_use_dnd"
7464 if test "$no_cache" != 1; then
7465 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7466 fi
7467
7468 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7469 echo "$as_me:$LINENO: result: yes" >&5
7470echo "${ECHO_T}yes" >&6
7471 else
7472 echo "$as_me:$LINENO: result: no" >&5
7473echo "${ECHO_T}no" >&6
7474 fi
7475
7476
7477 enablestring=
7478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7479echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7480 no_cache=0
7481 # Check whether --enable-metafile or --disable-metafile was given.
7482if test "${enable_metafile+set}" = set; then
7483 enableval="$enable_metafile"
7484
7485 if test "$enableval" = yes; then
7486 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7487 else
7488 ac_cv_use_metafile='wxUSE_METAFILE=no'
7489 fi
7490
7491else
7492
7493 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7494 if test "x$LINE" != x ; then
7495 eval "DEFAULT_$LINE"
7496 else
7497 no_cache=1
7498 fi
7499
7500 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7501
7502fi;
7503
7504 eval "$ac_cv_use_metafile"
7505 if test "$no_cache" != 1; then
7506 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7507 fi
7508
7509 if test "$wxUSE_METAFILE" = yes; then
7510 echo "$as_me:$LINENO: result: yes" >&5
7511echo "${ECHO_T}yes" >&6
7512 else
7513 echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6
7515 fi
7516
7517
7518
7519
7520
7521 enablestring=
7522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7523echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7524 no_cache=0
7525 # Check whether --enable-controls or --disable-controls was given.
7526if test "${enable_controls+set}" = set; then
7527 enableval="$enable_controls"
7528
7529 if test "$enableval" = yes; then
7530 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7531 else
7532 ac_cv_use_controls='wxUSE_CONTROLS=no'
7533 fi
7534
7535else
7536
7537 LINE=`grep "wxUSE_CONTROLS" ${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_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7545
7546fi;
7547
7548 eval "$ac_cv_use_controls"
7549 if test "$no_cache" != 1; then
7550 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7551 fi
7552
7553 if test "$wxUSE_CONTROLS" = 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
7562if test "$wxUSE_CONTROLS" = "yes"; then
7563 DEFAULT_wxUSE_ACCEL=yes
7564 DEFAULT_wxUSE_BMPBUTTON=yes
7565 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7566 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7567 DEFAULT_wxUSE_CARET=yes
7568 DEFAULT_wxUSE_COMBOBOX=yes
7569 DEFAULT_wxUSE_CHECKBOX=yes
7570 DEFAULT_wxUSE_CHECKLISTBOX=yes
7571 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7572 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7573 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7574 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7575 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7576 DEFAULT_wxUSE_DISPLAY=yes
7577 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7578 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7579 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7580 DEFAULT_wxUSE_GAUGE=yes
7581 DEFAULT_wxUSE_GRID=yes
6954625c 7582 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7583 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7584 DEFAULT_wxUSE_IMAGLIST=yes
7585 DEFAULT_wxUSE_LISTBOOK=yes
7586 DEFAULT_wxUSE_LISTBOX=yes
7587 DEFAULT_wxUSE_LISTCTRL=yes
7588 DEFAULT_wxUSE_NOTEBOOK=yes
7589 DEFAULT_wxUSE_RADIOBOX=yes
7590 DEFAULT_wxUSE_RADIOBTN=yes
7591 DEFAULT_wxUSE_SASH=yes
7592 DEFAULT_wxUSE_SCROLLBAR=yes
7593 DEFAULT_wxUSE_SLIDER=yes
7594 DEFAULT_wxUSE_SPINBTN=yes
7595 DEFAULT_wxUSE_SPINCTRL=yes
7596 DEFAULT_wxUSE_SPLITTER=yes
7597 DEFAULT_wxUSE_STATBMP=yes
7598 DEFAULT_wxUSE_STATBOX=yes
7599 DEFAULT_wxUSE_STATLINE=yes
7600 DEFAULT_wxUSE_STATUSBAR=yes
7601 DEFAULT_wxUSE_TAB_DIALOG=yes
7602 DEFAULT_wxUSE_TOGGLEBTN=yes
7603 DEFAULT_wxUSE_TOOLBAR=yes
7604 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7605 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7606 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7607 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7608 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7609 DEFAULT_wxUSE_TREECTRL=yes
7610 DEFAULT_wxUSE_POPUPWIN=yes
7611 DEFAULT_wxUSE_TIPWINDOW=yes
7612elif test "$wxUSE_CONTROLS" = "no"; then
7613 DEFAULT_wxUSE_ACCEL=no
7614 DEFAULT_wxUSE_BMPBUTTON=no
7615 DEFAULT_wxUSE_BUTTON=no
7616 DEFAULT_wxUSE_CALCTRL=no
7617 DEFAULT_wxUSE_CARET=no
7618 DEFAULT_wxUSE_COMBOBOX=no
7619 DEFAULT_wxUSE_CHECKBOX=no
7620 DEFAULT_wxUSE_CHECKLISTBOX=no
7621 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7622 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7623 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7624 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7625 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7626 DEFAULT_wxUSE_DISPLAY=no
7627 DEFAULT_wxUSE_DIRPICKERCTRL=no
7628 DEFAULT_wxUSE_FILEPICKERCTRL=no
7629 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7630 DEFAULT_wxUSE_GAUGE=no
7631 DEFAULT_wxUSE_GRID=no
6954625c 7632 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7633 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7634 DEFAULT_wxUSE_IMAGLIST=no
7635 DEFAULT_wxUSE_LISTBOOK=no
7636 DEFAULT_wxUSE_LISTBOX=no
7637 DEFAULT_wxUSE_LISTCTRL=no
7638 DEFAULT_wxUSE_NOTEBOOK=no
7639 DEFAULT_wxUSE_RADIOBOX=no
7640 DEFAULT_wxUSE_RADIOBTN=no
7641 DEFAULT_wxUSE_SASH=no
7642 DEFAULT_wxUSE_SCROLLBAR=no
7643 DEFAULT_wxUSE_SLIDER=no
7644 DEFAULT_wxUSE_SPINBTN=no
7645 DEFAULT_wxUSE_SPINCTRL=no
7646 DEFAULT_wxUSE_SPLITTER=no
7647 DEFAULT_wxUSE_STATBMP=no
7648 DEFAULT_wxUSE_STATBOX=no
7649 DEFAULT_wxUSE_STATLINE=no
7650 DEFAULT_wxUSE_STATUSBAR=no
7651 DEFAULT_wxUSE_TAB_DIALOG=no
7652 DEFAULT_wxUSE_TOGGLEBTN=no
7653 DEFAULT_wxUSE_TOOLBAR=no
7654 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7655 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7656 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7657 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7658 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7659 DEFAULT_wxUSE_TREECTRL=no
7660 DEFAULT_wxUSE_POPUPWIN=no
7661 DEFAULT_wxUSE_TIPWINDOW=no
7662fi
7663
a848cd7e
SC
7664
7665 enablestring=
7666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7667echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7668 no_cache=0
7669 # Check whether --enable-accel or --disable-accel was given.
7670if test "${enable_accel+set}" = set; then
7671 enableval="$enable_accel"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_accel='wxUSE_ACCEL=yes'
7675 else
7676 ac_cv_use_accel='wxUSE_ACCEL=no'
7677 fi
7678
7679else
7680
7681 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7689
7690fi;
7691
7692 eval "$ac_cv_use_accel"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_ACCEL" = yes; then
7698 echo "$as_me:$LINENO: result: yes" >&5
7699echo "${ECHO_T}yes" >&6
7700 else
7701 echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
7703 fi
7704
7705
7706 enablestring=
7707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7708echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7709 no_cache=0
7710 # Check whether --enable-button or --disable-button was given.
7711if test "${enable_button+set}" = set; then
7712 enableval="$enable_button"
7713
7714 if test "$enableval" = yes; then
7715 ac_cv_use_button='wxUSE_BUTTON=yes'
7716 else
7717 ac_cv_use_button='wxUSE_BUTTON=no'
7718 fi
7719
7720else
7721
7722 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7723 if test "x$LINE" != x ; then
7724 eval "DEFAULT_$LINE"
7725 else
7726 no_cache=1
7727 fi
7728
7729 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7730
7731fi;
7732
7733 eval "$ac_cv_use_button"
7734 if test "$no_cache" != 1; then
7735 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7736 fi
7737
7738 if test "$wxUSE_BUTTON" = yes; then
7739 echo "$as_me:$LINENO: result: yes" >&5
7740echo "${ECHO_T}yes" >&6
7741 else
7742 echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744 fi
7745
7746
7747 enablestring=
7748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7749echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7750 no_cache=0
7751 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7752if test "${enable_bmpbutton+set}" = set; then
7753 enableval="$enable_bmpbutton"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7757 else
7758 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7759 fi
7760
7761else
7762
7763 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7771
7772fi;
7773
7774 eval "$ac_cv_use_bmpbutton"
7775 if test "$no_cache" != 1; then
7776 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7777 fi
7778
7779 if test "$wxUSE_BMPBUTTON" = yes; then
7780 echo "$as_me:$LINENO: result: yes" >&5
7781echo "${ECHO_T}yes" >&6
7782 else
7783 echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785 fi
7786
7787
7788 enablestring=
7789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7790echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7791 no_cache=0
7792 # Check whether --enable-calendar or --disable-calendar was given.
7793if test "${enable_calendar+set}" = set; then
7794 enableval="$enable_calendar"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7798 else
7799 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7800 fi
7801
7802else
7803
7804 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7812
7813fi;
7814
7815 eval "$ac_cv_use_calendar"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_CALCTRL" = yes; then
7821 echo "$as_me:$LINENO: result: yes" >&5
7822echo "${ECHO_T}yes" >&6
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826 fi
7827
7828
7829 enablestring=
7830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7831echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7832 no_cache=0
7833 # Check whether --enable-caret or --disable-caret was given.
7834if test "${enable_caret+set}" = set; then
7835 enableval="$enable_caret"
7836
7837 if test "$enableval" = yes; then
7838 ac_cv_use_caret='wxUSE_CARET=yes'
7839 else
7840 ac_cv_use_caret='wxUSE_CARET=no'
7841 fi
7842
7843else
7844
7845 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7846 if test "x$LINE" != x ; then
7847 eval "DEFAULT_$LINE"
7848 else
7849 no_cache=1
7850 fi
7851
7852 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7853
7854fi;
7855
7856 eval "$ac_cv_use_caret"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_CARET" = yes; then
7862 echo "$as_me:$LINENO: result: yes" >&5
7863echo "${ECHO_T}yes" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
7867 fi
7868
7869
7870 enablestring=
7871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7872echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7873 no_cache=0
7874 # Check whether --enable-checkbox or --disable-checkbox was given.
7875if test "${enable_checkbox+set}" = set; then
7876 enableval="$enable_checkbox"
7877
7878 if test "$enableval" = yes; then
7879 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7880 else
7881 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7882 fi
7883
7884else
7885
7886 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7887 if test "x$LINE" != x ; then
7888 eval "DEFAULT_$LINE"
7889 else
7890 no_cache=1
7891 fi
7892
7893 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7894
7895fi;
7896
7897 eval "$ac_cv_use_checkbox"
7898 if test "$no_cache" != 1; then
7899 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7900 fi
7901
7902 if test "$wxUSE_CHECKBOX" = yes; then
7903 echo "$as_me:$LINENO: result: yes" >&5
7904echo "${ECHO_T}yes" >&6
7905 else
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
7908 fi
7909
7910
7911 enablestring=
7912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7913echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7914 no_cache=0
7915 # Check whether --enable-checklst or --disable-checklst was given.
7916if test "${enable_checklst+set}" = set; then
7917 enableval="$enable_checklst"
7918
7919 if test "$enableval" = yes; then
7920 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7921 else
7922 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7923 fi
7924
7925else
7926
7927 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7928 if test "x$LINE" != x ; then
7929 eval "DEFAULT_$LINE"
7930 else
7931 no_cache=1
7932 fi
7933
7934 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7935
7936fi;
7937
7938 eval "$ac_cv_use_checklst"
7939 if test "$no_cache" != 1; then
7940 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7941 fi
7942
7943 if test "$wxUSE_CHECKLST" = yes; then
7944 echo "$as_me:$LINENO: result: yes" >&5
7945echo "${ECHO_T}yes" >&6
7946 else
7947 echo "$as_me:$LINENO: result: no" >&5
7948echo "${ECHO_T}no" >&6
7949 fi
7950
7951
7952 enablestring=
7953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7954echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7955 no_cache=0
7956 # Check whether --enable-choice or --disable-choice was given.
7957if test "${enable_choice+set}" = set; then
7958 enableval="$enable_choice"
7959
7960 if test "$enableval" = yes; then
7961 ac_cv_use_choice='wxUSE_CHOICE=yes'
7962 else
7963 ac_cv_use_choice='wxUSE_CHOICE=no'
7964 fi
7965
7966else
7967
7968 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7976
7977fi;
7978
7979 eval "$ac_cv_use_choice"
7980 if test "$no_cache" != 1; then
7981 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7982 fi
7983
7984 if test "$wxUSE_CHOICE" = yes; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986echo "${ECHO_T}yes" >&6
7987 else
7988 echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6
7990 fi
7991
7992
92bbdbcd
WS
7993 enablestring=
7994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7995echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7996 no_cache=0
7997 # Check whether --enable-choicebook or --disable-choicebook was given.
7998if test "${enable_choicebook+set}" = set; then
7999 enableval="$enable_choicebook"
8000
8001 if test "$enableval" = yes; then
8002 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8003 else
8004 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8005 fi
8006
8007else
8008
8009 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8010 if test "x$LINE" != x ; then
8011 eval "DEFAULT_$LINE"
8012 else
8013 no_cache=1
8014 fi
8015
8016 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8017
8018fi;
8019
8020 eval "$ac_cv_use_choicebook"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_CHOICEBOOK" = yes; then
8026 echo "$as_me:$LINENO: result: yes" >&5
8027echo "${ECHO_T}yes" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031 fi
8032
8033
e9263684
VZ
8034 enablestring=
8035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8036echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8037 no_cache=0
8038 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8039if test "${enable_colourpicker+set}" = set; then
8040 enableval="$enable_colourpicker"
8041
8042 if test "$enableval" = yes; then
8043 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8044 else
8045 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8046 fi
8047
8048else
8049
8050 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8051 if test "x$LINE" != x ; then
8052 eval "DEFAULT_$LINE"
8053 else
8054 no_cache=1
8055 fi
8056
8057 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8058
8059fi;
8060
8061 eval "$ac_cv_use_colourpicker"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068echo "${ECHO_T}yes" >&6
8069 else
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072 fi
8073
8074
a848cd7e
SC
8075 enablestring=
8076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8077echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8078 no_cache=0
8079 # Check whether --enable-combobox or --disable-combobox was given.
8080if test "${enable_combobox+set}" = set; then
8081 enableval="$enable_combobox"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8085 else
8086 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8087 fi
8088
8089else
8090
8091 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8099
8100fi;
8101
8102 eval "$ac_cv_use_combobox"
8103 if test "$no_cache" != 1; then
8104 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8105 fi
8106
8107 if test "$wxUSE_COMBOBOX" = yes; then
8108 echo "$as_me:$LINENO: result: yes" >&5
8109echo "${ECHO_T}yes" >&6
8110 else
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
8113 fi
8114
8115
642bcba9 8116 enablestring=
a57d600f
VZ
8117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8118echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8119 no_cache=0
a57d600f
VZ
8120 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8121if test "${enable_comboctrl+set}" = set; then
8122 enableval="$enable_comboctrl"
642bcba9
VZ
8123
8124 if test "$enableval" = yes; then
a57d600f 8125 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8126 else
a57d600f 8127 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8128 fi
8129
8130else
8131
a57d600f 8132 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8133 if test "x$LINE" != x ; then
8134 eval "DEFAULT_$LINE"
8135 else
8136 no_cache=1
8137 fi
8138
a57d600f 8139 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8140
8141fi;
8142
a57d600f 8143 eval "$ac_cv_use_comboctrl"
642bcba9 8144 if test "$no_cache" != 1; then
a57d600f 8145 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8146 fi
8147
a57d600f 8148 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
8154 fi
8155
8156
da98e9be
VZ
8157 enablestring=
8158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8159echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8160 no_cache=0
8161 # Check whether --enable-datepick or --disable-datepick was given.
8162if test "${enable_datepick+set}" = set; then
8163 enableval="$enable_datepick"
8164
8165 if test "$enableval" = yes; then
8166 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8167 else
8168 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8169 fi
8170
8171else
8172
8173 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8174 if test "x$LINE" != x ; then
8175 eval "DEFAULT_$LINE"
8176 else
8177 no_cache=1
8178 fi
8179
8180 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8181
8182fi;
8183
8184 eval "$ac_cv_use_datepick"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_DATEPICKCTRL" = yes; then
8190 echo "$as_me:$LINENO: result: yes" >&5
8191echo "${ECHO_T}yes" >&6
8192 else
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
8195 fi
8196
8197
e9263684
VZ
8198 enablestring=
8199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8200echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8201 no_cache=0
8202 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8203if test "${enable_dirpicker+set}" = set; then
8204 enableval="$enable_dirpicker"
8205
8206 if test "$enableval" = yes; then
8207 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8208 else
8209 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8210 fi
8211
8212else
8213
8214 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8215 if test "x$LINE" != x ; then
8216 eval "DEFAULT_$LINE"
8217 else
8218 no_cache=1
8219 fi
8220
8221 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8222
8223fi;
8224
8225 eval "$ac_cv_use_dirpicker"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232echo "${ECHO_T}yes" >&6
8233 else
8234 echo "$as_me:$LINENO: result: no" >&5
8235echo "${ECHO_T}no" >&6
8236 fi
8237
8238
a848cd7e
SC
8239 enablestring=
8240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8241echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8242 no_cache=0
8243 # Check whether --enable-display or --disable-display was given.
8244if test "${enable_display+set}" = set; then
8245 enableval="$enable_display"
8246
8247 if test "$enableval" = yes; then
8248 ac_cv_use_display='wxUSE_DISPLAY=yes'
8249 else
8250 ac_cv_use_display='wxUSE_DISPLAY=no'
8251 fi
8252
8253else
8254
8255 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
8262 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8263
8264fi;
8265
8266 eval "$ac_cv_use_display"
8267 if test "$no_cache" != 1; then
8268 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8269 fi
8270
8271 if test "$wxUSE_DISPLAY" = yes; then
8272 echo "$as_me:$LINENO: result: yes" >&5
8273echo "${ECHO_T}yes" >&6
8274 else
8275 echo "$as_me:$LINENO: result: no" >&5
8276echo "${ECHO_T}no" >&6
8277 fi
8278
8279
e9263684
VZ
8280 enablestring=
8281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8282echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8283 no_cache=0
8284 # Check whether --enable-filepicker or --disable-filepicker was given.
8285if test "${enable_filepicker+set}" = set; then
8286 enableval="$enable_filepicker"
8287
8288 if test "$enableval" = yes; then
8289 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8290 else
8291 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8292 fi
8293
8294else
8295
8296 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8297 if test "x$LINE" != x ; then
8298 eval "DEFAULT_$LINE"
8299 else
8300 no_cache=1
8301 fi
8302
8303 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8304
8305fi;
8306
8307 eval "$ac_cv_use_filepicker"
8308 if test "$no_cache" != 1; then
8309 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8310 fi
8311
8312 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8313 echo "$as_me:$LINENO: result: yes" >&5
8314echo "${ECHO_T}yes" >&6
8315 else
8316 echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6
8318 fi
8319
8320
8321 enablestring=
8322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8323echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8324 no_cache=0
8325 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8326if test "${enable_fontpicker+set}" = set; then
8327 enableval="$enable_fontpicker"
8328
8329 if test "$enableval" = yes; then
8330 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8331 else
8332 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8333 fi
8334
8335else
8336
8337 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8345
8346fi;
8347
8348 eval "$ac_cv_use_fontpicker"
8349 if test "$no_cache" != 1; then
8350 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8351 fi
8352
8353 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8354 echo "$as_me:$LINENO: result: yes" >&5
8355echo "${ECHO_T}yes" >&6
8356 else
8357 echo "$as_me:$LINENO: result: no" >&5
8358echo "${ECHO_T}no" >&6
8359 fi
8360
8361
a848cd7e
SC
8362 enablestring=
8363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8364echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8365 no_cache=0
8366 # Check whether --enable-gauge or --disable-gauge was given.
8367if test "${enable_gauge+set}" = set; then
8368 enableval="$enable_gauge"
8369
8370 if test "$enableval" = yes; then
8371 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8372 else
8373 ac_cv_use_gauge='wxUSE_GAUGE=no'
8374 fi
8375
8376else
8377
8378 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8379 if test "x$LINE" != x ; then
8380 eval "DEFAULT_$LINE"
8381 else
8382 no_cache=1
8383 fi
8384
8385 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8386
8387fi;
8388
8389 eval "$ac_cv_use_gauge"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_GAUGE" = yes; then
8395 echo "$as_me:$LINENO: result: yes" >&5
8396echo "${ECHO_T}yes" >&6
8397 else
8398 echo "$as_me:$LINENO: result: no" >&5
8399echo "${ECHO_T}no" >&6
8400 fi
8401
8402
8403 enablestring=
8404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8405echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8406 no_cache=0
8407 # Check whether --enable-grid or --disable-grid was given.
8408if test "${enable_grid+set}" = set; then
8409 enableval="$enable_grid"
8410
8411 if test "$enableval" = yes; then
8412 ac_cv_use_grid='wxUSE_GRID=yes'
8413 else
8414 ac_cv_use_grid='wxUSE_GRID=no'
8415 fi
8416
8417else
8418
8419 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8427
8428fi;
8429
8430 eval "$ac_cv_use_grid"
8431 if test "$no_cache" != 1; then
8432 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8433 fi
8434
8435 if test "$wxUSE_GRID" = yes; then
8436 echo "$as_me:$LINENO: result: yes" >&5
8437echo "${ECHO_T}yes" >&6
8438 else
8439 echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6
8441 fi
8442
8443
20e34ecc
RR
8444 enablestring=
8445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8446echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8447 no_cache=0
8448 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8449if test "${enable_dataviewctrl+set}" = set; then
8450 enableval="$enable_dataviewctrl"
8451
8452 if test "$enableval" = yes; then
8453 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8454 else
8455 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8456 fi
8457
8458else
8459
8460 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8461 if test "x$LINE" != x ; then
8462 eval "DEFAULT_$LINE"
8463 else
8464 no_cache=1
8465 fi
8466
8467 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8468
8469fi;
8470
8471 eval "$ac_cv_use_dataviewctrl"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8477 echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482 fi
8483
8484
6954625c
VZ
8485 enablestring=
8486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8487echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8488 no_cache=0
8489 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8490if test "${enable_hyperlink+set}" = set; then
8491 enableval="$enable_hyperlink"
8492
8493 if test "$enableval" = yes; then
8494 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8495 else
8496 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8497 fi
8498
8499else
8500
8501 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8502 if test "x$LINE" != x ; then
8503 eval "DEFAULT_$LINE"
8504 else
8505 no_cache=1
8506 fi
8507
8508 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8509
8510fi;
8511
8512 eval "$ac_cv_use_hyperlink"
8513 if test "$no_cache" != 1; then
8514 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8515 fi
8516
8517 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8518 echo "$as_me:$LINENO: result: yes" >&5
8519echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
8523 fi
8524
8525
a848cd7e
SC
8526 enablestring=
8527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8528echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8529 no_cache=0
8530 # Check whether --enable-imaglist or --disable-imaglist was given.
8531if test "${enable_imaglist+set}" = set; then
8532 enableval="$enable_imaglist"
8533
8534 if test "$enableval" = yes; then
8535 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8536 else
8537 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8538 fi
8539
8540else
8541
8542 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
8549 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8550
8551fi;
8552
8553 eval "$ac_cv_use_imaglist"
8554 if test "$no_cache" != 1; then
8555 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8556 fi
8557
8558 if test "$wxUSE_IMAGLIST" = yes; then
8559 echo "$as_me:$LINENO: result: yes" >&5
8560echo "${ECHO_T}yes" >&6
8561 else
8562 echo "$as_me:$LINENO: result: no" >&5
8563echo "${ECHO_T}no" >&6
8564 fi
8565
8566
8567 enablestring=
8568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8569echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8570 no_cache=0
8571 # Check whether --enable-listbook or --disable-listbook was given.
8572if test "${enable_listbook+set}" = set; then
8573 enableval="$enable_listbook"
8574
8575 if test "$enableval" = yes; then
8576 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8577 else
8578 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8579 fi
8580
8581else
8582
8583 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8584 if test "x$LINE" != x ; then
8585 eval "DEFAULT_$LINE"
8586 else
8587 no_cache=1
8588 fi
8589
8590 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8591
8592fi;
8593
8594 eval "$ac_cv_use_listbook"
8595 if test "$no_cache" != 1; then
8596 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8597 fi
8598
8599 if test "$wxUSE_LISTBOOK" = yes; then
8600 echo "$as_me:$LINENO: result: yes" >&5
8601echo "${ECHO_T}yes" >&6
8602 else
8603 echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605 fi
8606
8607
8608 enablestring=
8609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8610echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8611 no_cache=0
8612 # Check whether --enable-listbox or --disable-listbox was given.
8613if test "${enable_listbox+set}" = set; then
8614 enableval="$enable_listbox"
8615
8616 if test "$enableval" = yes; then
8617 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8618 else
8619 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8620 fi
8621
8622else
8623
8624 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8625 if test "x$LINE" != x ; then
8626 eval "DEFAULT_$LINE"
8627 else
8628 no_cache=1
8629 fi
8630
8631 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8632
8633fi;
8634
8635 eval "$ac_cv_use_listbox"
8636 if test "$no_cache" != 1; then
8637 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8638 fi
8639
8640 if test "$wxUSE_LISTBOX" = yes; then
8641 echo "$as_me:$LINENO: result: yes" >&5
8642echo "${ECHO_T}yes" >&6
8643 else
8644 echo "$as_me:$LINENO: result: no" >&5
8645echo "${ECHO_T}no" >&6
8646 fi
8647
8648
8649 enablestring=
8650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8651echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8652 no_cache=0
8653 # Check whether --enable-listctrl or --disable-listctrl was given.
8654if test "${enable_listctrl+set}" = set; then
8655 enableval="$enable_listctrl"
8656
8657 if test "$enableval" = yes; then
8658 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8659 else
8660 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8661 fi
8662
8663else
8664
8665 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8666 if test "x$LINE" != x ; then
8667 eval "DEFAULT_$LINE"
8668 else
8669 no_cache=1
8670 fi
8671
8672 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8673
8674fi;
8675
8676 eval "$ac_cv_use_listctrl"
8677 if test "$no_cache" != 1; then
8678 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8679 fi
8680
8681 if test "$wxUSE_LISTCTRL" = yes; then
8682 echo "$as_me:$LINENO: result: yes" >&5
8683echo "${ECHO_T}yes" >&6
8684 else
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
8687 fi
8688
8689
8690 enablestring=
8691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8692echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8693 no_cache=0
8694 # Check whether --enable-notebook or --disable-notebook was given.
8695if test "${enable_notebook+set}" = set; then
8696 enableval="$enable_notebook"
8697
8698 if test "$enableval" = yes; then
8699 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8700 else
8701 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8702 fi
8703
8704else
8705
8706 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8707 if test "x$LINE" != x ; then
8708 eval "DEFAULT_$LINE"
8709 else
8710 no_cache=1
8711 fi
8712
8713 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8714
8715fi;
8716
8717 eval "$ac_cv_use_notebook"
8718 if test "$no_cache" != 1; then
8719 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8720 fi
8721
8722 if test "$wxUSE_NOTEBOOK" = yes; then
8723 echo "$as_me:$LINENO: result: yes" >&5
8724echo "${ECHO_T}yes" >&6
8725 else
8726 echo "$as_me:$LINENO: result: no" >&5
8727echo "${ECHO_T}no" >&6
8728 fi
8729
8730
642bcba9 8731 enablestring=
a57d600f
VZ
8732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8733echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8734 no_cache=0
a57d600f
VZ
8735 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8736if test "${enable_odcombobox+set}" = set; then
8737 enableval="$enable_odcombobox"
642bcba9
VZ
8738
8739 if test "$enableval" = yes; then
a57d600f 8740 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8741 else
a57d600f 8742 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8743 fi
8744
8745else
8746
a57d600f 8747 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8748 if test "x$LINE" != x ; then
8749 eval "DEFAULT_$LINE"
8750 else
8751 no_cache=1
8752 fi
8753
a57d600f 8754 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8755
8756fi;
8757
a57d600f 8758 eval "$ac_cv_use_odcombobox"
642bcba9 8759 if test "$no_cache" != 1; then
a57d600f 8760 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8761 fi
8762
a57d600f 8763 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
8764 echo "$as_me:$LINENO: result: yes" >&5
8765echo "${ECHO_T}yes" >&6
8766 else
8767 echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
8769 fi
8770
8771
a848cd7e
SC
8772 enablestring=
8773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8774echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8775 no_cache=0
8776 # Check whether --enable-radiobox or --disable-radiobox was given.
8777if test "${enable_radiobox+set}" = set; then
8778 enableval="$enable_radiobox"
8779
8780 if test "$enableval" = yes; then
8781 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8782 else
8783 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8784 fi
8785
8786else
8787
8788 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8789 if test "x$LINE" != x ; then
8790 eval "DEFAULT_$LINE"
8791 else
8792 no_cache=1
8793 fi
8794
8795 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8796
8797fi;
8798
8799 eval "$ac_cv_use_radiobox"
8800 if test "$no_cache" != 1; then
8801 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8802 fi
8803
8804 if test "$wxUSE_RADIOBOX" = yes; then
8805 echo "$as_me:$LINENO: result: yes" >&5
8806echo "${ECHO_T}yes" >&6
8807 else
8808 echo "$as_me:$LINENO: result: no" >&5
8809echo "${ECHO_T}no" >&6
8810 fi
8811
8812
8813 enablestring=
8814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8815echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8816 no_cache=0
8817 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8818if test "${enable_radiobtn+set}" = set; then
8819 enableval="$enable_radiobtn"
8820
8821 if test "$enableval" = yes; then
8822 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8823 else
8824 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8825 fi
8826
8827else
8828
8829 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8830 if test "x$LINE" != x ; then
8831 eval "DEFAULT_$LINE"
8832 else
8833 no_cache=1
8834 fi
8835
8836 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8837
8838fi;
8839
8840 eval "$ac_cv_use_radiobtn"
8841 if test "$no_cache" != 1; then
8842 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8843 fi
8844
8845 if test "$wxUSE_RADIOBTN" = yes; then
8846 echo "$as_me:$LINENO: result: yes" >&5
8847echo "${ECHO_T}yes" >&6
8848 else
8849 echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
8851 fi
8852
8853
8854 enablestring=
8855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8856echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8857 no_cache=0
8858 # Check whether --enable-sash or --disable-sash was given.
8859if test "${enable_sash+set}" = set; then
8860 enableval="$enable_sash"
8861
8862 if test "$enableval" = yes; then
8863 ac_cv_use_sash='wxUSE_SASH=yes'
8864 else
8865 ac_cv_use_sash='wxUSE_SASH=no'
8866 fi
8867
8868else
8869
8870 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8871 if test "x$LINE" != x ; then
8872 eval "DEFAULT_$LINE"
8873 else
8874 no_cache=1
8875 fi
8876
8877 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8878
8879fi;
8880
8881 eval "$ac_cv_use_sash"
8882 if test "$no_cache" != 1; then
8883 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8884 fi
8885
8886 if test "$wxUSE_SASH" = yes; then
8887 echo "$as_me:$LINENO: result: yes" >&5
8888echo "${ECHO_T}yes" >&6
8889 else
8890 echo "$as_me:$LINENO: result: no" >&5
8891echo "${ECHO_T}no" >&6
8892 fi
8893
8894
8895 enablestring=
8896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8897echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8898 no_cache=0
8899 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8900if test "${enable_scrollbar+set}" = set; then
8901 enableval="$enable_scrollbar"
8902
8903 if test "$enableval" = yes; then
8904 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8905 else
8906 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8907 fi
8908
8909else
8910
8911 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8912 if test "x$LINE" != x ; then
8913 eval "DEFAULT_$LINE"
8914 else
8915 no_cache=1
8916 fi
8917
8918 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8919
8920fi;
8921
8922 eval "$ac_cv_use_scrollbar"
8923 if test "$no_cache" != 1; then
8924 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8925 fi
8926
8927 if test "$wxUSE_SCROLLBAR" = yes; then
8928 echo "$as_me:$LINENO: result: yes" >&5
8929echo "${ECHO_T}yes" >&6
8930 else
8931 echo "$as_me:$LINENO: result: no" >&5
8932echo "${ECHO_T}no" >&6
8933 fi
8934
8935
8936 enablestring=
8937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8938echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8939 no_cache=0
8940 # Check whether --enable-slider or --disable-slider was given.
8941if test "${enable_slider+set}" = set; then
8942 enableval="$enable_slider"
8943
8944 if test "$enableval" = yes; then
8945 ac_cv_use_slider='wxUSE_SLIDER=yes'
8946 else
8947 ac_cv_use_slider='wxUSE_SLIDER=no'
8948 fi
8949
8950else
8951
8952 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8953 if test "x$LINE" != x ; then
8954 eval "DEFAULT_$LINE"
8955 else
8956 no_cache=1
8957 fi
8958
8959 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8960
8961fi;
8962
8963 eval "$ac_cv_use_slider"
8964 if test "$no_cache" != 1; then
8965 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8966 fi
8967
8968 if test "$wxUSE_SLIDER" = yes; then
8969 echo "$as_me:$LINENO: result: yes" >&5
8970echo "${ECHO_T}yes" >&6
8971 else
8972 echo "$as_me:$LINENO: result: no" >&5
8973echo "${ECHO_T}no" >&6
8974 fi
8975
8976
8977 enablestring=
8978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8979echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8980 no_cache=0
8981 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8982if test "${enable_spinbtn+set}" = set; then
8983 enableval="$enable_spinbtn"
8984
8985 if test "$enableval" = yes; then
8986 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8987 else
8988 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8989 fi
8990
8991else
8992
8993 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8994 if test "x$LINE" != x ; then
8995 eval "DEFAULT_$LINE"
8996 else
8997 no_cache=1
8998 fi
8999
9000 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9001
9002fi;
9003
9004 eval "$ac_cv_use_spinbtn"
9005 if test "$no_cache" != 1; then
9006 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9007 fi
9008
9009 if test "$wxUSE_SPINBTN" = yes; then
9010 echo "$as_me:$LINENO: result: yes" >&5
9011echo "${ECHO_T}yes" >&6
9012 else
9013 echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6
9015 fi
9016
9017
9018 enablestring=
9019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9020echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9021 no_cache=0
9022 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9023if test "${enable_spinctrl+set}" = set; then
9024 enableval="$enable_spinctrl"
9025
9026 if test "$enableval" = yes; then
9027 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9028 else
9029 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9030 fi
9031
9032else
9033
9034 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9035 if test "x$LINE" != x ; then
9036 eval "DEFAULT_$LINE"
9037 else
9038 no_cache=1
9039 fi
9040
9041 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9042
9043fi;
9044
9045 eval "$ac_cv_use_spinctrl"
9046 if test "$no_cache" != 1; then
9047 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9048 fi
9049
9050 if test "$wxUSE_SPINCTRL" = yes; then
9051 echo "$as_me:$LINENO: result: yes" >&5
9052echo "${ECHO_T}yes" >&6
9053 else
9054 echo "$as_me:$LINENO: result: no" >&5
9055echo "${ECHO_T}no" >&6
9056 fi
9057
9058
9059 enablestring=
9060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9061echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9062 no_cache=0
9063 # Check whether --enable-splitter or --disable-splitter was given.
9064if test "${enable_splitter+set}" = set; then
9065 enableval="$enable_splitter"
9066
9067 if test "$enableval" = yes; then
9068 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9069 else
9070 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9071 fi
9072
9073else
9074
9075 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9076 if test "x$LINE" != x ; then
9077 eval "DEFAULT_$LINE"
9078 else
9079 no_cache=1
9080 fi
9081
9082 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9083
9084fi;
9085
9086 eval "$ac_cv_use_splitter"
9087 if test "$no_cache" != 1; then
9088 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9089 fi
9090
9091 if test "$wxUSE_SPLITTER" = yes; then
9092 echo "$as_me:$LINENO: result: yes" >&5
9093echo "${ECHO_T}yes" >&6
9094 else
9095 echo "$as_me:$LINENO: result: no" >&5
9096echo "${ECHO_T}no" >&6
9097 fi
9098
9099
9100 enablestring=
9101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9102echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9103 no_cache=0
9104 # Check whether --enable-statbmp or --disable-statbmp was given.
9105if test "${enable_statbmp+set}" = set; then
9106 enableval="$enable_statbmp"
9107
9108 if test "$enableval" = yes; then
9109 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9110 else
9111 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9112 fi
9113
9114else
9115
9116 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9117 if test "x$LINE" != x ; then
9118 eval "DEFAULT_$LINE"
9119 else
9120 no_cache=1
9121 fi
9122
9123 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9124
9125fi;
9126
9127 eval "$ac_cv_use_statbmp"
9128 if test "$no_cache" != 1; then
9129 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9130 fi
9131
9132 if test "$wxUSE_STATBMP" = yes; then
9133 echo "$as_me:$LINENO: result: yes" >&5
9134echo "${ECHO_T}yes" >&6
9135 else
9136 echo "$as_me:$LINENO: result: no" >&5
9137echo "${ECHO_T}no" >&6
9138 fi
9139
9140
9141 enablestring=
9142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9143echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9144 no_cache=0
9145 # Check whether --enable-statbox or --disable-statbox was given.
9146if test "${enable_statbox+set}" = set; then
9147 enableval="$enable_statbox"
9148
9149 if test "$enableval" = yes; then
9150 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9151 else
9152 ac_cv_use_statbox='wxUSE_STATBOX=no'
9153 fi
9154
9155else
9156
9157 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9158 if test "x$LINE" != x ; then
9159 eval "DEFAULT_$LINE"
9160 else
9161 no_cache=1
9162 fi
9163
9164 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9165
9166fi;
9167
9168 eval "$ac_cv_use_statbox"
9169 if test "$no_cache" != 1; then
9170 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9171 fi
9172
9173 if test "$wxUSE_STATBOX" = yes; then
9174 echo "$as_me:$LINENO: result: yes" >&5
9175echo "${ECHO_T}yes" >&6
9176 else
9177 echo "$as_me:$LINENO: result: no" >&5
9178echo "${ECHO_T}no" >&6
9179 fi
9180
9181
9182 enablestring=
9183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9184echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9185 no_cache=0
9186 # Check whether --enable-statline or --disable-statline was given.
9187if test "${enable_statline+set}" = set; then
9188 enableval="$enable_statline"
9189
9190 if test "$enableval" = yes; then
9191 ac_cv_use_statline='wxUSE_STATLINE=yes'
9192 else
9193 ac_cv_use_statline='wxUSE_STATLINE=no'
9194 fi
9195
9196else
9197
9198 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9199 if test "x$LINE" != x ; then
9200 eval "DEFAULT_$LINE"
9201 else
9202 no_cache=1
9203 fi
9204
9205 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9206
9207fi;
9208
9209 eval "$ac_cv_use_statline"
9210 if test "$no_cache" != 1; then
9211 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9212 fi
9213
9214 if test "$wxUSE_STATLINE" = yes; then
9215 echo "$as_me:$LINENO: result: yes" >&5
9216echo "${ECHO_T}yes" >&6
9217 else
9218 echo "$as_me:$LINENO: result: no" >&5
9219echo "${ECHO_T}no" >&6
9220 fi
9221
9222
9223 enablestring=
9224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9225echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9226 no_cache=0
9227 # Check whether --enable-stattext or --disable-stattext was given.
9228if test "${enable_stattext+set}" = set; then
9229 enableval="$enable_stattext"
9230
9231 if test "$enableval" = yes; then
9232 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9233 else
9234 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9235 fi
9236
9237else
9238
9239 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9240 if test "x$LINE" != x ; then
9241 eval "DEFAULT_$LINE"
9242 else
9243 no_cache=1
9244 fi
9245
9246 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9247
9248fi;
9249
9250 eval "$ac_cv_use_stattext"
9251 if test "$no_cache" != 1; then
9252 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9253 fi
9254
9255 if test "$wxUSE_STATTEXT" = yes; then
9256 echo "$as_me:$LINENO: result: yes" >&5
9257echo "${ECHO_T}yes" >&6
9258 else
9259 echo "$as_me:$LINENO: result: no" >&5
9260echo "${ECHO_T}no" >&6
9261 fi
9262
9263
9264 enablestring=
9265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9266echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9267 no_cache=0
9268 # Check whether --enable-statusbar or --disable-statusbar was given.
9269if test "${enable_statusbar+set}" = set; then
9270 enableval="$enable_statusbar"
9271
9272 if test "$enableval" = yes; then
9273 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9274 else
9275 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9276 fi
9277
9278else
9279
9280 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9281 if test "x$LINE" != x ; then
9282 eval "DEFAULT_$LINE"
9283 else
9284 no_cache=1
9285 fi
9286
9287 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9288
9289fi;
9290
9291 eval "$ac_cv_use_statusbar"
9292 if test "$no_cache" != 1; then
9293 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9294 fi
9295
9296 if test "$wxUSE_STATUSBAR" = yes; then
9297 echo "$as_me:$LINENO: result: yes" >&5
9298echo "${ECHO_T}yes" >&6
9299 else
9300 echo "$as_me:$LINENO: result: no" >&5
9301echo "${ECHO_T}no" >&6
9302 fi
9303
9304
9305 enablestring=
9306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9307echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9308 no_cache=0
9309 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9310if test "${enable_tabdialog+set}" = set; then
9311 enableval="$enable_tabdialog"
9312
9313 if test "$enableval" = yes; then
f10e38c4 9314 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9315 else
f10e38c4 9316 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9317 fi
9318
9319else
9320
f10e38c4 9321 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9322 if test "x$LINE" != x ; then
9323 eval "DEFAULT_$LINE"
9324 else
9325 no_cache=1
9326 fi
9327
f10e38c4 9328 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9329
9330fi;
9331
9332 eval "$ac_cv_use_tabdialog"
9333 if test "$no_cache" != 1; then
9334 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9335 fi
9336
f10e38c4 9337 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9338 echo "$as_me:$LINENO: result: yes" >&5
9339echo "${ECHO_T}yes" >&6
9340 else
9341 echo "$as_me:$LINENO: result: no" >&5
9342echo "${ECHO_T}no" >&6
9343 fi
9344
9345
9346 enablestring=
9347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9348echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9349 no_cache=0
9350 # Check whether --enable-textctrl or --disable-textctrl was given.
9351if test "${enable_textctrl+set}" = set; then
9352 enableval="$enable_textctrl"
9353
9354 if test "$enableval" = yes; then
9355 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9356 else
9357 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9358 fi
9359
9360else
9361
9362 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9363 if test "x$LINE" != x ; then
9364 eval "DEFAULT_$LINE"
9365 else
9366 no_cache=1
9367 fi
9368
9369 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9370
9371fi;
9372
9373 eval "$ac_cv_use_textctrl"
9374 if test "$no_cache" != 1; then
9375 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9376 fi
9377
9378 if test "$wxUSE_TEXTCTRL" = yes; then
9379 echo "$as_me:$LINENO: result: yes" >&5
9380echo "${ECHO_T}yes" >&6
9381 else
9382 echo "$as_me:$LINENO: result: no" >&5
9383echo "${ECHO_T}no" >&6
9384 fi
9385
9386
9387 enablestring=
9388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9389echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9390 no_cache=0
9391 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9392if test "${enable_togglebtn+set}" = set; then
9393 enableval="$enable_togglebtn"
9394
9395 if test "$enableval" = yes; then
9396 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9397 else
9398 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9399 fi
9400
9401else
9402
9403 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9404 if test "x$LINE" != x ; then
9405 eval "DEFAULT_$LINE"
9406 else
9407 no_cache=1
9408 fi
9409
9410 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9411
9412fi;
9413
9414 eval "$ac_cv_use_togglebtn"
9415 if test "$no_cache" != 1; then
9416 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9417 fi
9418
9419 if test "$wxUSE_TOGGLEBTN" = yes; then
9420 echo "$as_me:$LINENO: result: yes" >&5
9421echo "${ECHO_T}yes" >&6
9422 else
9423 echo "$as_me:$LINENO: result: no" >&5
9424echo "${ECHO_T}no" >&6
9425 fi
9426
9427
9428 enablestring=
9429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9430echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9431 no_cache=0
9432 # Check whether --enable-toolbar or --disable-toolbar was given.
9433if test "${enable_toolbar+set}" = set; then
9434 enableval="$enable_toolbar"
9435
9436 if test "$enableval" = yes; then
9437 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9438 else
9439 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9440 fi
9441
9442else
9443
9444 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9445 if test "x$LINE" != x ; then
9446 eval "DEFAULT_$LINE"
9447 else
9448 no_cache=1
9449 fi
9450
9451 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9452
9453fi;
9454
9455 eval "$ac_cv_use_toolbar"
9456 if test "$no_cache" != 1; then
9457 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9458 fi
9459
9460 if test "$wxUSE_TOOLBAR" = yes; then
9461 echo "$as_me:$LINENO: result: yes" >&5
9462echo "${ECHO_T}yes" >&6
9463 else
9464 echo "$as_me:$LINENO: result: no" >&5
9465echo "${ECHO_T}no" >&6
9466 fi
9467
9468
9469 enablestring=
9470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9471echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9472 no_cache=0
9473 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9474if test "${enable_tbarnative+set}" = set; then
9475 enableval="$enable_tbarnative"
9476
9477 if test "$enableval" = yes; then
9478 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9479 else
9480 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9481 fi
9482
9483else
9484
9485 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9486 if test "x$LINE" != x ; then
9487 eval "DEFAULT_$LINE"
9488 else
9489 no_cache=1
9490 fi
9491
9492 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9493
9494fi;
9495
9496 eval "$ac_cv_use_tbarnative"
9497 if test "$no_cache" != 1; then
9498 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9499 fi
9500
9501 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9502 echo "$as_me:$LINENO: result: yes" >&5
9503echo "${ECHO_T}yes" >&6
9504 else
9505 echo "$as_me:$LINENO: result: no" >&5
9506echo "${ECHO_T}no" >&6
9507 fi
9508
9509
9510 enablestring=
9511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9512echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9513 no_cache=0
9514 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9515if test "${enable_tbarsmpl+set}" = set; then
9516 enableval="$enable_tbarsmpl"
9517
9518 if test "$enableval" = yes; then
9519 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9520 else
9521 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9522 fi
9523
9524else
9525
9526 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9527 if test "x$LINE" != x ; then
9528 eval "DEFAULT_$LINE"
9529 else
9530 no_cache=1
9531 fi
9532
9533 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9534
9535fi;
9536
9537 eval "$ac_cv_use_tbarsmpl"
9538 if test "$no_cache" != 1; then
9539 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9540 fi
9541
9542 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9543 echo "$as_me:$LINENO: result: yes" >&5
9544echo "${ECHO_T}yes" >&6
9545 else
9546 echo "$as_me:$LINENO: result: no" >&5
9547echo "${ECHO_T}no" >&6
9548 fi
9549
9550
0093c2fc
VZ
9551 enablestring=
9552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9553echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9554 no_cache=0
9555 # Check whether --enable-treebook or --disable-treebook was given.
9556if test "${enable_treebook+set}" = set; then
9557 enableval="$enable_treebook"
9558
9559 if test "$enableval" = yes; then
9560 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9561 else
9562 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9563 fi
9564
9565else
9566
9567 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9568 if test "x$LINE" != x ; then
9569 eval "DEFAULT_$LINE"
9570 else
9571 no_cache=1
9572 fi
9573
9574 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9575
9576fi;
9577
9578 eval "$ac_cv_use_treebook"
9579 if test "$no_cache" != 1; then
9580 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9581 fi
9582
9583 if test "$wxUSE_TREEBOOK" = yes; then
9584 echo "$as_me:$LINENO: result: yes" >&5
9585echo "${ECHO_T}yes" >&6
9586 else
9587 echo "$as_me:$LINENO: result: no" >&5
9588echo "${ECHO_T}no" >&6
9589 fi
9590
9591
5ec3bc43
JS
9592 enablestring=
9593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9594echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9595 no_cache=0
9596 # Check whether --enable-toolbook or --disable-toolbook was given.
9597if test "${enable_toolbook+set}" = set; then
9598 enableval="$enable_toolbook"
9599
9600 if test "$enableval" = yes; then
9601 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9602 else
9603 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9604 fi
9605
9606else
9607
9608 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9609 if test "x$LINE" != x ; then
9610 eval "DEFAULT_$LINE"
9611 else
9612 no_cache=1
9613 fi
9614
9615 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9616
9617fi;
9618
9619 eval "$ac_cv_use_toolbook"
9620 if test "$no_cache" != 1; then
9621 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9622 fi
9623
9624 if test "$wxUSE_TOOLBOOK" = yes; then
9625 echo "$as_me:$LINENO: result: yes" >&5
9626echo "${ECHO_T}yes" >&6
9627 else
9628 echo "$as_me:$LINENO: result: no" >&5
9629echo "${ECHO_T}no" >&6
9630 fi
9631
9632
a848cd7e
SC
9633 enablestring=
9634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9635echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9636 no_cache=0
9637 # Check whether --enable-treectrl or --disable-treectrl was given.
9638if test "${enable_treectrl+set}" = set; then
9639 enableval="$enable_treectrl"
9640
9641 if test "$enableval" = yes; then
9642 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9643 else
9644 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9645 fi
9646
9647else
9648
9649 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9650 if test "x$LINE" != x ; then
9651 eval "DEFAULT_$LINE"
9652 else
9653 no_cache=1
9654 fi
9655
9656 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9657
9658fi;
9659
9660 eval "$ac_cv_use_treectrl"
9661 if test "$no_cache" != 1; then
9662 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9663 fi
9664
9665 if test "$wxUSE_TREECTRL" = yes; then
9666 echo "$as_me:$LINENO: result: yes" >&5
9667echo "${ECHO_T}yes" >&6
9668 else
9669 echo "$as_me:$LINENO: result: no" >&5
9670echo "${ECHO_T}no" >&6
9671 fi
9672
9673
9674 enablestring=
9675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9676echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9677 no_cache=0
9678 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9679if test "${enable_tipwindow+set}" = set; then
9680 enableval="$enable_tipwindow"
9681
9682 if test "$enableval" = yes; then
9683 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9684 else
9685 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9686 fi
9687
9688else
9689
9690 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9691 if test "x$LINE" != x ; then
9692 eval "DEFAULT_$LINE"
9693 else
9694 no_cache=1
9695 fi
9696
9697 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9698
9699fi;
9700
9701 eval "$ac_cv_use_tipwindow"
9702 if test "$no_cache" != 1; then
9703 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9704 fi
9705
9706 if test "$wxUSE_TIPWINDOW" = yes; then
9707 echo "$as_me:$LINENO: result: yes" >&5
9708echo "${ECHO_T}yes" >&6
9709 else
9710 echo "$as_me:$LINENO: result: no" >&5
9711echo "${ECHO_T}no" >&6
9712 fi
9713
9714
9715 enablestring=
9716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9717echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9718 no_cache=0
9719 # Check whether --enable-popupwin or --disable-popupwin was given.
9720if test "${enable_popupwin+set}" = set; then
9721 enableval="$enable_popupwin"
9722
9723 if test "$enableval" = yes; then
9724 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9725 else
9726 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9727 fi
9728
9729else
9730
9731 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9732 if test "x$LINE" != x ; then
9733 eval "DEFAULT_$LINE"
9734 else
9735 no_cache=1
9736 fi
9737
9738 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9739
9740fi;
9741
9742 eval "$ac_cv_use_popupwin"
9743 if test "$no_cache" != 1; then
9744 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9745 fi
9746
9747 if test "$wxUSE_POPUPWIN" = yes; then
9748 echo "$as_me:$LINENO: result: yes" >&5
9749echo "${ECHO_T}yes" >&6
9750 else
9751 echo "$as_me:$LINENO: result: no" >&5
9752echo "${ECHO_T}no" >&6
9753 fi
9754
9755
9756
9757
9758 enablestring=
9759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9760echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9761 no_cache=0
9762 # Check whether --enable-commondlg or --disable-commondlg was given.
9763if test "${enable_commondlg+set}" = set; then
9764 enableval="$enable_commondlg"
9765
9766 if test "$enableval" = yes; then
9767 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9768 else
9769 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9770 fi
9771
9772else
9773
9774 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9775 if test "x$LINE" != x ; then
9776 eval "DEFAULT_$LINE"
9777 else
9778 no_cache=1
9779 fi
9780
9781 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9782
9783fi;
9784
9785 eval "$ac_cv_use_commondlg"
9786 if test "$no_cache" != 1; then
9787 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9788 fi
9789
9790 if test "$wxUSE_COMMONDLGS" = yes; then
9791 echo "$as_me:$LINENO: result: yes" >&5
9792echo "${ECHO_T}yes" >&6
9793 else
9794 echo "$as_me:$LINENO: result: no" >&5
9795echo "${ECHO_T}no" >&6
9796 fi
9797
9798
9799 enablestring=
9800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9801echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9802 no_cache=0
9803 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9804if test "${enable_choicedlg+set}" = set; then
9805 enableval="$enable_choicedlg"
9806
9807 if test "$enableval" = yes; then
9808 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9809 else
9810 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9811 fi
9812
9813else
9814
9815 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9816 if test "x$LINE" != x ; then
9817 eval "DEFAULT_$LINE"
9818 else
9819 no_cache=1
9820 fi
9821
9822 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9823
9824fi;
9825
9826 eval "$ac_cv_use_choicedlg"
9827 if test "$no_cache" != 1; then
9828 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9829 fi
9830
9831 if test "$wxUSE_CHOICEDLG" = yes; then
9832 echo "$as_me:$LINENO: result: yes" >&5
9833echo "${ECHO_T}yes" >&6
9834 else
9835 echo "$as_me:$LINENO: result: no" >&5
9836echo "${ECHO_T}no" >&6
9837 fi
9838
9839
9840 enablestring=
9841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9842echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9843 no_cache=0
9844 # Check whether --enable-coldlg or --disable-coldlg was given.
9845if test "${enable_coldlg+set}" = set; then
9846 enableval="$enable_coldlg"
9847
9848 if test "$enableval" = yes; then
9849 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9850 else
9851 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9852 fi
9853
9854else
9855
9856 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9857 if test "x$LINE" != x ; then
9858 eval "DEFAULT_$LINE"
9859 else
9860 no_cache=1
9861 fi
9862
9863 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9864
9865fi;
9866
9867 eval "$ac_cv_use_coldlg"
9868 if test "$no_cache" != 1; then
9869 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9870 fi
9871
9872 if test "$wxUSE_COLOURDLG" = yes; then
9873 echo "$as_me:$LINENO: result: yes" >&5
9874echo "${ECHO_T}yes" >&6
9875 else
9876 echo "$as_me:$LINENO: result: no" >&5
9877echo "${ECHO_T}no" >&6
9878 fi
9879
9880
9881 enablestring=
9882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9883echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9884 no_cache=0
9885 # Check whether --enable-filedlg or --disable-filedlg was given.
9886if test "${enable_filedlg+set}" = set; then
9887 enableval="$enable_filedlg"
9888
9889 if test "$enableval" = yes; then
9890 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9891 else
9892 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9893 fi
9894
9895else
9896
9897 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9898 if test "x$LINE" != x ; then
9899 eval "DEFAULT_$LINE"
9900 else
9901 no_cache=1
9902 fi
9903
9904 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9905
9906fi;
9907
9908 eval "$ac_cv_use_filedlg"
9909 if test "$no_cache" != 1; then
9910 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9911 fi
9912
9913 if test "$wxUSE_FILEDLG" = yes; then
9914 echo "$as_me:$LINENO: result: yes" >&5
9915echo "${ECHO_T}yes" >&6
9916 else
9917 echo "$as_me:$LINENO: result: no" >&5
9918echo "${ECHO_T}no" >&6
9919 fi
9920
9921
9922 enablestring=
9923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9924echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9925 no_cache=0
9926 # Check whether --enable-finddlg or --disable-finddlg was given.
9927if test "${enable_finddlg+set}" = set; then
9928 enableval="$enable_finddlg"
9929
9930 if test "$enableval" = yes; then
9931 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9932 else
9933 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9934 fi
9935
9936else
9937
9938 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9939 if test "x$LINE" != x ; then
9940 eval "DEFAULT_$LINE"
9941 else
9942 no_cache=1
9943 fi
9944
9945 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9946
9947fi;
9948
9949 eval "$ac_cv_use_finddlg"
9950 if test "$no_cache" != 1; then
9951 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9952 fi
9953
9954 if test "$wxUSE_FINDREPLDLG" = yes; then
9955 echo "$as_me:$LINENO: result: yes" >&5
9956echo "${ECHO_T}yes" >&6
9957 else
9958 echo "$as_me:$LINENO: result: no" >&5
9959echo "${ECHO_T}no" >&6
9960 fi
9961
9962
9963 enablestring=
9964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9965echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9966 no_cache=0
9967 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9968if test "${enable_fontdlg+set}" = set; then
9969 enableval="$enable_fontdlg"
9970
9971 if test "$enableval" = yes; then
9972 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9973 else
9974 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9975 fi
9976
9977else
9978
9979 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9980 if test "x$LINE" != x ; then
9981 eval "DEFAULT_$LINE"
9982 else
9983 no_cache=1
9984 fi
9985
9986 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9987
9988fi;
9989
9990 eval "$ac_cv_use_fontdlg"
9991 if test "$no_cache" != 1; then
9992 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9993 fi
9994
9995 if test "$wxUSE_FONTDLG" = yes; then
9996 echo "$as_me:$LINENO: result: yes" >&5
9997echo "${ECHO_T}yes" >&6
9998 else
9999 echo "$as_me:$LINENO: result: no" >&5
10000echo "${ECHO_T}no" >&6
10001 fi
10002
10003
10004 enablestring=
10005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10006echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10007 no_cache=0
10008 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10009if test "${enable_dirdlg+set}" = set; then
10010 enableval="$enable_dirdlg"
10011
10012 if test "$enableval" = yes; then
10013 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10014 else
10015 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10016 fi
10017
10018else
10019
10020 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10021 if test "x$LINE" != x ; then
10022 eval "DEFAULT_$LINE"
10023 else
10024 no_cache=1
10025 fi
10026
10027 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10028
10029fi;
10030
10031 eval "$ac_cv_use_dirdlg"
10032 if test "$no_cache" != 1; then
10033 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10034 fi
10035
10036 if test "$wxUSE_DIRDLG" = yes; then
10037 echo "$as_me:$LINENO: result: yes" >&5
10038echo "${ECHO_T}yes" >&6
10039 else
10040 echo "$as_me:$LINENO: result: no" >&5
10041echo "${ECHO_T}no" >&6
10042 fi
10043
10044
10045 enablestring=
10046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10047echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10048 no_cache=0
10049 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10050if test "${enable_msgdlg+set}" = set; then
10051 enableval="$enable_msgdlg"
10052
10053 if test "$enableval" = yes; then
10054 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10055 else
10056 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10057 fi
10058
10059else
10060
10061 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10062 if test "x$LINE" != x ; then
10063 eval "DEFAULT_$LINE"
10064 else
10065 no_cache=1
10066 fi
10067
10068 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10069
10070fi;
10071
10072 eval "$ac_cv_use_msgdlg"
10073 if test "$no_cache" != 1; then
10074 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10075 fi
10076
10077 if test "$wxUSE_MSGDLG" = yes; then
10078 echo "$as_me:$LINENO: result: yes" >&5
10079echo "${ECHO_T}yes" >&6
10080 else
10081 echo "$as_me:$LINENO: result: no" >&5
10082echo "${ECHO_T}no" >&6
10083 fi
10084
10085
10086 enablestring=
10087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10088echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10089 no_cache=0
10090 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10091if test "${enable_numberdlg+set}" = set; then
10092 enableval="$enable_numberdlg"
10093
10094 if test "$enableval" = yes; then
10095 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10096 else
10097 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10098 fi
10099
10100else
10101
10102 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10103 if test "x$LINE" != x ; then
10104 eval "DEFAULT_$LINE"
10105 else
10106 no_cache=1
10107 fi
10108
10109 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10110
10111fi;
10112
10113 eval "$ac_cv_use_numberdlg"
10114 if test "$no_cache" != 1; then
10115 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10116 fi
10117
10118 if test "$wxUSE_NUMBERDLG" = yes; then
10119 echo "$as_me:$LINENO: result: yes" >&5
10120echo "${ECHO_T}yes" >&6
10121 else
10122 echo "$as_me:$LINENO: result: no" >&5
10123echo "${ECHO_T}no" >&6
10124 fi
10125
10126
10127 enablestring=
10128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10129echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10130 no_cache=0
10131 # Check whether --enable-splash or --disable-splash was given.
10132if test "${enable_splash+set}" = set; then
10133 enableval="$enable_splash"
10134
10135 if test "$enableval" = yes; then
10136 ac_cv_use_splash='wxUSE_SPLASH=yes'
10137 else
10138 ac_cv_use_splash='wxUSE_SPLASH=no'
10139 fi
10140
10141else
10142
10143 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10144 if test "x$LINE" != x ; then
10145 eval "DEFAULT_$LINE"
10146 else
10147 no_cache=1
10148 fi
10149
10150 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10151
10152fi;
10153
10154 eval "$ac_cv_use_splash"
10155 if test "$no_cache" != 1; then
10156 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10157 fi
10158
10159 if test "$wxUSE_SPLASH" = yes; then
10160 echo "$as_me:$LINENO: result: yes" >&5
10161echo "${ECHO_T}yes" >&6
10162 else
10163 echo "$as_me:$LINENO: result: no" >&5
10164echo "${ECHO_T}no" >&6
10165 fi
10166
10167
10168 enablestring=
10169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10170echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10171 no_cache=0
10172 # Check whether --enable-textdlg or --disable-textdlg was given.
10173if test "${enable_textdlg+set}" = set; then
10174 enableval="$enable_textdlg"
10175
10176 if test "$enableval" = yes; then
10177 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10178 else
10179 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10180 fi
10181
10182else
10183
10184 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10185 if test "x$LINE" != x ; then
10186 eval "DEFAULT_$LINE"
10187 else
10188 no_cache=1
10189 fi
10190
10191 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10192
10193fi;
10194
10195 eval "$ac_cv_use_textdlg"
10196 if test "$no_cache" != 1; then
10197 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10198 fi
10199
10200 if test "$wxUSE_TEXTDLG" = yes; then
10201 echo "$as_me:$LINENO: result: yes" >&5
10202echo "${ECHO_T}yes" >&6
10203 else
10204 echo "$as_me:$LINENO: result: no" >&5
10205echo "${ECHO_T}no" >&6
10206 fi
10207
10208
10209 enablestring=
10210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10211echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10212 no_cache=0
10213 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10214if test "${enable_tipdlg+set}" = set; then
10215 enableval="$enable_tipdlg"
10216
10217 if test "$enableval" = yes; then
10218 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10219 else
10220 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10221 fi
10222
10223else
10224
10225 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10226 if test "x$LINE" != x ; then
10227 eval "DEFAULT_$LINE"
10228 else
10229 no_cache=1
10230 fi
10231
10232 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10233
10234fi;
10235
10236 eval "$ac_cv_use_tipdlg"
10237 if test "$no_cache" != 1; then
10238 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10239 fi
10240
10241 if test "$wxUSE_STARTUP_TIPS" = yes; then
10242 echo "$as_me:$LINENO: result: yes" >&5
10243echo "${ECHO_T}yes" >&6
10244 else
10245 echo "$as_me:$LINENO: result: no" >&5
10246echo "${ECHO_T}no" >&6
10247 fi
10248
10249
10250 enablestring=
10251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10252echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10253 no_cache=0
10254 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10255if test "${enable_progressdlg+set}" = set; then
10256 enableval="$enable_progressdlg"
10257
10258 if test "$enableval" = yes; then
10259 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10260 else
10261 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10262 fi
10263
10264else
10265
10266 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10267 if test "x$LINE" != x ; then
10268 eval "DEFAULT_$LINE"
10269 else
10270 no_cache=1
10271 fi
10272
10273 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10274
10275fi;
10276
10277 eval "$ac_cv_use_progressdlg"
10278 if test "$no_cache" != 1; then
10279 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10280 fi
10281
10282 if test "$wxUSE_PROGRESSDLG" = yes; then
10283 echo "$as_me:$LINENO: result: yes" >&5
10284echo "${ECHO_T}yes" >&6
10285 else
10286 echo "$as_me:$LINENO: result: no" >&5
10287echo "${ECHO_T}no" >&6
10288 fi
10289
10290
10291 enablestring=
10292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10293echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10294 no_cache=0
10295 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10296if test "${enable_wizarddlg+set}" = set; then
10297 enableval="$enable_wizarddlg"
10298
10299 if test "$enableval" = yes; then
10300 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10301 else
10302 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10303 fi
10304
10305else
10306
10307 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10308 if test "x$LINE" != x ; then
10309 eval "DEFAULT_$LINE"
10310 else
10311 no_cache=1
10312 fi
10313
10314 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10315
10316fi;
10317
10318 eval "$ac_cv_use_wizarddlg"
10319 if test "$no_cache" != 1; then
10320 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10321 fi
10322
10323 if test "$wxUSE_WIZARDDLG" = yes; then
10324 echo "$as_me:$LINENO: result: yes" >&5
10325echo "${ECHO_T}yes" >&6
10326 else
10327 echo "$as_me:$LINENO: result: no" >&5
10328echo "${ECHO_T}no" >&6
10329 fi
10330
10331
10332
10333
10334 enablestring=
10335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10336echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10337 no_cache=0
10338 # Check whether --enable-menus or --disable-menus was given.
10339if test "${enable_menus+set}" = set; then
10340 enableval="$enable_menus"
10341
10342 if test "$enableval" = yes; then
10343 ac_cv_use_menus='wxUSE_MENUS=yes'
10344 else
10345 ac_cv_use_menus='wxUSE_MENUS=no'
10346 fi
10347
10348else
10349
10350 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10351 if test "x$LINE" != x ; then
10352 eval "DEFAULT_$LINE"
10353 else
10354 no_cache=1
10355 fi
10356
10357 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10358
10359fi;
10360
10361 eval "$ac_cv_use_menus"
10362 if test "$no_cache" != 1; then
10363 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10364 fi
10365
10366 if test "$wxUSE_MENUS" = yes; then
10367 echo "$as_me:$LINENO: result: yes" >&5
10368echo "${ECHO_T}yes" >&6
10369 else
10370 echo "$as_me:$LINENO: result: no" >&5
10371echo "${ECHO_T}no" >&6
10372 fi
10373
10374
10375 enablestring=
10376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10377echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10378 no_cache=0
10379 # Check whether --enable-miniframe or --disable-miniframe was given.
10380if test "${enable_miniframe+set}" = set; then
10381 enableval="$enable_miniframe"
10382
10383 if test "$enableval" = yes; then
10384 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10385 else
10386 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10387 fi
10388
10389else
10390
10391 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10392 if test "x$LINE" != x ; then
10393 eval "DEFAULT_$LINE"
10394 else
10395 no_cache=1
10396 fi
10397
10398 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10399
10400fi;
10401
10402 eval "$ac_cv_use_miniframe"
10403 if test "$no_cache" != 1; then
10404 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10405 fi
10406
10407 if test "$wxUSE_MINIFRAME" = yes; then
10408 echo "$as_me:$LINENO: result: yes" >&5
10409echo "${ECHO_T}yes" >&6
10410 else
10411 echo "$as_me:$LINENO: result: no" >&5
10412echo "${ECHO_T}no" >&6
10413 fi
10414
10415
10416 enablestring=
10417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10418echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10419 no_cache=0
10420 # Check whether --enable-tooltips or --disable-tooltips was given.
10421if test "${enable_tooltips+set}" = set; then
10422 enableval="$enable_tooltips"
10423
10424 if test "$enableval" = yes; then
10425 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10426 else
10427 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10428 fi
10429
10430else
10431
10432 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10433 if test "x$LINE" != x ; then
10434 eval "DEFAULT_$LINE"
10435 else
10436 no_cache=1
10437 fi
10438
10439 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10440
10441fi;
10442
10443 eval "$ac_cv_use_tooltips"
10444 if test "$no_cache" != 1; then
10445 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10446 fi
10447
10448 if test "$wxUSE_TOOLTIPS" = yes; then
10449 echo "$as_me:$LINENO: result: yes" >&5
10450echo "${ECHO_T}yes" >&6
10451 else
10452 echo "$as_me:$LINENO: result: no" >&5
10453echo "${ECHO_T}no" >&6
10454 fi
10455
10456
10457 enablestring=
10458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10459echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10460 no_cache=0
10461 # Check whether --enable-splines or --disable-splines was given.
10462if test "${enable_splines+set}" = set; then
10463 enableval="$enable_splines"
10464
10465 if test "$enableval" = yes; then
10466 ac_cv_use_splines='wxUSE_SPLINES=yes'
10467 else
10468 ac_cv_use_splines='wxUSE_SPLINES=no'
10469 fi
10470
10471else
10472
10473 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10474 if test "x$LINE" != x ; then
10475 eval "DEFAULT_$LINE"
10476 else
10477 no_cache=1
10478 fi
10479
10480 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10481
10482fi;
10483
10484 eval "$ac_cv_use_splines"
10485 if test "$no_cache" != 1; then
10486 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10487 fi
10488
10489 if test "$wxUSE_SPLINES" = yes; then
10490 echo "$as_me:$LINENO: result: yes" >&5
10491echo "${ECHO_T}yes" >&6
10492 else
10493 echo "$as_me:$LINENO: result: no" >&5
10494echo "${ECHO_T}no" >&6
10495 fi
10496
10497
fbe2ca43
SN
10498 enablestring=
10499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10500echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10501 no_cache=0
10502 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10503if test "${enable_mousewheel+set}" = set; then
10504 enableval="$enable_mousewheel"
10505
10506 if test "$enableval" = yes; then
10507 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10508 else
10509 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10510 fi
10511
10512else
10513
10514 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10515 if test "x$LINE" != x ; then
10516 eval "DEFAULT_$LINE"
10517 else
10518 no_cache=1
10519 fi
10520
10521 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10522
10523fi;
10524
10525 eval "$ac_cv_use_mousewheel"
10526 if test "$no_cache" != 1; then
10527 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10528 fi
10529
10530 if test "$wxUSE_MOUSEWHEEL" = yes; then
10531 echo "$as_me:$LINENO: result: yes" >&5
10532echo "${ECHO_T}yes" >&6
10533 else
10534 echo "$as_me:$LINENO: result: no" >&5
10535echo "${ECHO_T}no" >&6
10536 fi
10537
10538
a848cd7e
SC
10539 enablestring=
10540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10541echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10542 no_cache=0
10543 # Check whether --enable-validators or --disable-validators was given.
10544if test "${enable_validators+set}" = set; then
10545 enableval="$enable_validators"
10546
10547 if test "$enableval" = yes; then
10548 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10549 else
10550 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10551 fi
10552
10553else
10554
10555 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10556 if test "x$LINE" != x ; then
10557 eval "DEFAULT_$LINE"
10558 else
10559 no_cache=1
10560 fi
10561
10562 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10563
10564fi;
10565
10566 eval "$ac_cv_use_validators"
10567 if test "$no_cache" != 1; then
10568 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10569 fi
10570
10571 if test "$wxUSE_VALIDATORS" = yes; then
10572 echo "$as_me:$LINENO: result: yes" >&5
10573echo "${ECHO_T}yes" >&6
10574 else
10575 echo "$as_me:$LINENO: result: no" >&5
10576echo "${ECHO_T}no" >&6
10577 fi
10578
10579
10580 enablestring=
10581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10582echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10583 no_cache=0
10584 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10585if test "${enable_busyinfo+set}" = set; then
10586 enableval="$enable_busyinfo"
10587
10588 if test "$enableval" = yes; then
10589 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10590 else
10591 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10592 fi
10593
10594else
10595
10596 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10597 if test "x$LINE" != x ; then
10598 eval "DEFAULT_$LINE"
10599 else
10600 no_cache=1
10601 fi
10602
10603 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10604
10605fi;
10606
10607 eval "$ac_cv_use_busyinfo"
10608 if test "$no_cache" != 1; then
10609 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10610 fi
10611
10612 if test "$wxUSE_BUSYINFO" = yes; then
10613 echo "$as_me:$LINENO: result: yes" >&5
10614echo "${ECHO_T}yes" >&6
10615 else
10616 echo "$as_me:$LINENO: result: no" >&5
10617echo "${ECHO_T}no" >&6
10618 fi
10619
10620
10621 enablestring=
10622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10623echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10624 no_cache=0
10625 # Check whether --enable-joystick or --disable-joystick was given.
10626if test "${enable_joystick+set}" = set; then
10627 enableval="$enable_joystick"
10628
10629 if test "$enableval" = yes; then
10630 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10631 else
10632 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10633 fi
10634
10635else
10636
10637 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10638 if test "x$LINE" != x ; then
10639 eval "DEFAULT_$LINE"
10640 else
10641 no_cache=1
10642 fi
10643
10644 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10645
10646fi;
10647
10648 eval "$ac_cv_use_joystick"
10649 if test "$no_cache" != 1; then
10650 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10651 fi
10652
10653 if test "$wxUSE_JOYSTICK" = yes; then
10654 echo "$as_me:$LINENO: result: yes" >&5
10655echo "${ECHO_T}yes" >&6
10656 else
10657 echo "$as_me:$LINENO: result: no" >&5
10658echo "${ECHO_T}no" >&6
10659 fi
10660
10661
10662 enablestring=
10663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10664echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10665 no_cache=0
10666 # Check whether --enable-metafile or --disable-metafile was given.
10667if test "${enable_metafile+set}" = set; then
10668 enableval="$enable_metafile"
10669
10670 if test "$enableval" = yes; then
10671 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10672 else
10673 ac_cv_use_metafile='wxUSE_METAFILE=no'
10674 fi
10675
10676else
10677
10678 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10679 if test "x$LINE" != x ; then
10680 eval "DEFAULT_$LINE"
10681 else
10682 no_cache=1
10683 fi
10684
10685 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10686
10687fi;
10688
10689 eval "$ac_cv_use_metafile"
10690 if test "$no_cache" != 1; then
10691 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10692 fi
10693
10694 if test "$wxUSE_METAFILE" = yes; then
10695 echo "$as_me:$LINENO: result: yes" >&5
10696echo "${ECHO_T}yes" >&6
10697 else
10698 echo "$as_me:$LINENO: result: no" >&5
10699echo "${ECHO_T}no" >&6
10700 fi
10701
10702
10703 enablestring=
10704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10705echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10706 no_cache=0
10707 # Check whether --enable-dragimage or --disable-dragimage was given.
10708if test "${enable_dragimage+set}" = set; then
10709 enableval="$enable_dragimage"
10710
10711 if test "$enableval" = yes; then
10712 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10713 else
10714 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10715 fi
10716
10717else
10718
10719 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10720 if test "x$LINE" != x ; then
10721 eval "DEFAULT_$LINE"
10722 else
10723 no_cache=1
10724 fi
10725
10726 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10727
10728fi;
10729
10730 eval "$ac_cv_use_dragimage"
10731 if test "$no_cache" != 1; then
10732 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10733 fi
10734
10735 if test "$wxUSE_DRAGIMAGE" = yes; then
10736 echo "$as_me:$LINENO: result: yes" >&5
10737echo "${ECHO_T}yes" >&6
10738 else
10739 echo "$as_me:$LINENO: result: no" >&5
10740echo "${ECHO_T}no" >&6
10741 fi
10742
10743
10744 enablestring=
10745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10746echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10747 no_cache=0
10748 # Check whether --enable-accessibility or --disable-accessibility was given.
10749if test "${enable_accessibility+set}" = set; then
10750 enableval="$enable_accessibility"
10751
10752 if test "$enableval" = yes; then
10753 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10754 else
10755 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10756 fi
10757
10758else
10759
10760 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10761 if test "x$LINE" != x ; then
10762 eval "DEFAULT_$LINE"
10763 else
10764 no_cache=1
10765 fi
10766
10767 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10768
10769fi;
10770
10771 eval "$ac_cv_use_accessibility"
10772 if test "$no_cache" != 1; then
10773 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10774 fi
10775
10776 if test "$wxUSE_ACCESSIBILITY" = yes; then
10777 echo "$as_me:$LINENO: result: yes" >&5
10778echo "${ECHO_T}yes" >&6
10779 else
10780 echo "$as_me:$LINENO: result: no" >&5
10781echo "${ECHO_T}no" >&6
10782 fi
10783
10784
38b4a946
VZ
10785if test "$wxUSE_MSW" = "1"; then
10786
10787 enablestring=
10788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10789echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10790 no_cache=0
10791 # Check whether --enable-dccache or --disable-dccache was given.
10792if test "${enable_dccache+set}" = set; then
10793 enableval="$enable_dccache"
10794
10795 if test "$enableval" = yes; then
10796 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10797 else
10798 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10799 fi
10800
10801else
10802
10803 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10804 if test "x$LINE" != x ; then
10805 eval "DEFAULT_$LINE"
10806 else
10807 no_cache=1
10808 fi
10809
10810 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10811
10812fi;
10813
10814 eval "$ac_cv_use_dccache"
10815 if test "$no_cache" != 1; then
10816 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10817 fi
10818
10819 if test "$wxUSE_DC_CACHEING" = yes; then
10820 echo "$as_me:$LINENO: result: yes" >&5
10821echo "${ECHO_T}yes" >&6
10822 else
10823 echo "$as_me:$LINENO: result: no" >&5
10824echo "${ECHO_T}no" >&6
10825 fi
10826
10827fi
10828
a848cd7e
SC
10829
10830
10831 enablestring=
10832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10833echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10834 no_cache=0
10835 # Check whether --enable-palette or --disable-palette was given.
10836if test "${enable_palette+set}" = set; then
10837 enableval="$enable_palette"
10838
10839 if test "$enableval" = yes; then
10840 ac_cv_use_palette='wxUSE_PALETTE=yes'
10841 else
10842 ac_cv_use_palette='wxUSE_PALETTE=no'
10843 fi
10844
10845else
10846
10847 LINE=`grep "wxUSE_PALETTE" ${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_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10855
10856fi;
10857
10858 eval "$ac_cv_use_palette"
10859 if test "$no_cache" != 1; then
10860 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10861 fi
10862
10863 if test "$wxUSE_PALETTE" = 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
10871
10872 enablestring=
10873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10874echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10875 no_cache=0
10876 # Check whether --enable-image or --disable-image was given.
10877if test "${enable_image+set}" = set; then
10878 enableval="$enable_image"
10879
10880 if test "$enableval" = yes; then
10881 ac_cv_use_image='wxUSE_IMAGE=yes'
10882 else
10883 ac_cv_use_image='wxUSE_IMAGE=no'
10884 fi
10885
10886else
10887
10888 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10889 if test "x$LINE" != x ; then
10890 eval "DEFAULT_$LINE"
10891 else
10892 no_cache=1
10893 fi
10894
10895 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10896
10897fi;
10898
10899 eval "$ac_cv_use_image"
10900 if test "$no_cache" != 1; then
10901 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10902 fi
10903
10904 if test "$wxUSE_IMAGE" = yes; then
10905 echo "$as_me:$LINENO: result: yes" >&5
10906echo "${ECHO_T}yes" >&6
10907 else
10908 echo "$as_me:$LINENO: result: no" >&5
10909echo "${ECHO_T}no" >&6
10910 fi
10911
10912
10913 enablestring=
10914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10915echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10916 no_cache=0
10917 # Check whether --enable-gif or --disable-gif was given.
10918if test "${enable_gif+set}" = set; then
10919 enableval="$enable_gif"
10920
10921 if test "$enableval" = yes; then
10922 ac_cv_use_gif='wxUSE_GIF=yes'
10923 else
10924 ac_cv_use_gif='wxUSE_GIF=no'
10925 fi
10926
10927else
10928
10929 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10930 if test "x$LINE" != x ; then
10931 eval "DEFAULT_$LINE"
10932 else
10933 no_cache=1
10934 fi
10935
10936 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10937
10938fi;
10939
10940 eval "$ac_cv_use_gif"
10941 if test "$no_cache" != 1; then
10942 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10943 fi
10944
10945 if test "$wxUSE_GIF" = yes; then
10946 echo "$as_me:$LINENO: result: yes" >&5
10947echo "${ECHO_T}yes" >&6
10948 else
10949 echo "$as_me:$LINENO: result: no" >&5
10950echo "${ECHO_T}no" >&6
10951 fi
10952
10953
10954 enablestring=
10955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10956echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10957 no_cache=0
10958 # Check whether --enable-pcx or --disable-pcx was given.
10959if test "${enable_pcx+set}" = set; then
10960 enableval="$enable_pcx"
10961
10962 if test "$enableval" = yes; then
10963 ac_cv_use_pcx='wxUSE_PCX=yes'
10964 else
10965 ac_cv_use_pcx='wxUSE_PCX=no'
10966 fi
10967
10968else
10969
10970 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10971 if test "x$LINE" != x ; then
10972 eval "DEFAULT_$LINE"
10973 else
10974 no_cache=1
10975 fi
10976
10977 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10978
10979fi;
10980
10981 eval "$ac_cv_use_pcx"
10982 if test "$no_cache" != 1; then
10983 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10984 fi
10985
10986 if test "$wxUSE_PCX" = yes; then
10987 echo "$as_me:$LINENO: result: yes" >&5
10988echo "${ECHO_T}yes" >&6
10989 else
10990 echo "$as_me:$LINENO: result: no" >&5
10991echo "${ECHO_T}no" >&6
10992 fi
10993
10994
10995 enablestring=
10996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10997echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10998 no_cache=0
10999 # Check whether --enable-iff or --disable-iff was given.
11000if test "${enable_iff+set}" = set; then
11001 enableval="$enable_iff"
11002
11003 if test "$enableval" = yes; then
11004 ac_cv_use_iff='wxUSE_IFF=yes'
11005 else
11006 ac_cv_use_iff='wxUSE_IFF=no'
11007 fi
11008
11009else
11010
11011 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11012 if test "x$LINE" != x ; then
11013 eval "DEFAULT_$LINE"
11014 else
11015 no_cache=1
11016 fi
11017
11018 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11019
11020fi;
11021
11022 eval "$ac_cv_use_iff"
11023 if test "$no_cache" != 1; then
11024 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11025 fi
11026
11027 if test "$wxUSE_IFF" = yes; then
11028 echo "$as_me:$LINENO: result: yes" >&5
11029echo "${ECHO_T}yes" >&6
11030 else
11031 echo "$as_me:$LINENO: result: no" >&5
11032echo "${ECHO_T}no" >&6
11033 fi
11034
11035
11036 enablestring=
11037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11038echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11039 no_cache=0
11040 # Check whether --enable-pnm or --disable-pnm was given.
11041if test "${enable_pnm+set}" = set; then
11042 enableval="$enable_pnm"
11043
11044 if test "$enableval" = yes; then
11045 ac_cv_use_pnm='wxUSE_PNM=yes'
11046 else
11047 ac_cv_use_pnm='wxUSE_PNM=no'
11048 fi
11049
11050else
11051
11052 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11053 if test "x$LINE" != x ; then
11054 eval "DEFAULT_$LINE"
11055 else
11056 no_cache=1
11057 fi
11058
11059 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11060
11061fi;
11062
11063 eval "$ac_cv_use_pnm"
11064 if test "$no_cache" != 1; then
11065 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11066 fi
11067
11068 if test "$wxUSE_PNM" = yes; then
11069 echo "$as_me:$LINENO: result: yes" >&5
11070echo "${ECHO_T}yes" >&6
11071 else
11072 echo "$as_me:$LINENO: result: no" >&5
11073echo "${ECHO_T}no" >&6
11074 fi
11075
11076
11077 enablestring=
11078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11079echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11080 no_cache=0
11081 # Check whether --enable-xpm or --disable-xpm was given.
11082if test "${enable_xpm+set}" = set; then
11083 enableval="$enable_xpm"
11084
11085 if test "$enableval" = yes; then
11086 ac_cv_use_xpm='wxUSE_XPM=yes'
11087 else
11088 ac_cv_use_xpm='wxUSE_XPM=no'
11089 fi
11090
11091else
11092
11093 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11094 if test "x$LINE" != x ; then
11095 eval "DEFAULT_$LINE"
11096 else
11097 no_cache=1
11098 fi
11099
11100 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11101
11102fi;
11103
11104 eval "$ac_cv_use_xpm"
11105 if test "$no_cache" != 1; then
11106 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11107 fi
11108
11109 if test "$wxUSE_XPM" = yes; then
11110 echo "$as_me:$LINENO: result: yes" >&5
11111echo "${ECHO_T}yes" >&6
11112 else
11113 echo "$as_me:$LINENO: result: no" >&5
11114echo "${ECHO_T}no" >&6
11115 fi
11116
11117
11118 enablestring=
11119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11120echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11121 no_cache=0
11122 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11123if test "${enable_ico_cur+set}" = set; then
11124 enableval="$enable_ico_cur"
11125
11126 if test "$enableval" = yes; then
11127 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11128 else
11129 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11130 fi
11131
11132else
11133
11134 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11135 if test "x$LINE" != x ; then
11136 eval "DEFAULT_$LINE"
11137 else
11138 no_cache=1
11139 fi
11140
11141 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11142
11143fi;
11144
11145 eval "$ac_cv_use_ico_cur"
11146 if test "$no_cache" != 1; then
11147 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11148 fi
11149
11150 if test "$wxUSE_ICO_CUR" = yes; then
11151 echo "$as_me:$LINENO: result: yes" >&5
11152echo "${ECHO_T}yes" >&6
11153 else
11154 echo "$as_me:$LINENO: result: no" >&5
11155echo "${ECHO_T}no" >&6
11156 fi
11157
11158
11159fi
11160
11161
11162
ceec2216
RL
11163# Check whether --with-flavour or --without-flavour was given.
11164if test "${with_flavour+set}" = set; then
11165 withval="$with_flavour"
11166 WX_FLAVOUR="$withval"
11167fi;
11168
11169
11170
a848cd7e
SC
11171 enablestring=
11172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11173echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11174 no_cache=0
11175 # Check whether --enable-official_build or --disable-official_build was given.
11176if test "${enable_official_build+set}" = set; then
11177 enableval="$enable_official_build"
11178
11179 if test "$enableval" = yes; then
11180 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11181 else
11182 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11183 fi
11184
11185else
11186
11187 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11188 if test "x$LINE" != x ; then
11189 eval "DEFAULT_$LINE"
11190 else
11191 no_cache=1
11192 fi
11193
11194 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11195
11196fi;
11197
11198 eval "$ac_cv_use_official_build"
11199 if test "$no_cache" != 1; then
11200 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11201 fi
11202
11203 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11204 echo "$as_me:$LINENO: result: yes" >&5
11205echo "${ECHO_T}yes" >&6
11206 else
11207 echo "$as_me:$LINENO: result: no" >&5
11208echo "${ECHO_T}no" >&6
11209 fi
11210
11211# Check whether --enable-vendor or --disable-vendor was given.
11212if test "${enable_vendor+set}" = set; then
11213 enableval="$enable_vendor"
11214 VENDOR="$enableval"
11215fi;
11216if test "x$VENDOR" = "x"; then
11217 VENDOR="custom"
11218fi
11219
a848cd7e
SC
11220
11221
11222
11223 echo "saving argument cache $wx_arg_cache_file"
11224 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11225
11226
11227
11228echo "$as_me:$LINENO: checking for toolkit" >&5
11229echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11230
11231# In Wine, we need to default to MSW, not GTK or MOTIF
11232if test "$wxUSE_WINE" = "yes"; then
11233 DEFAULT_DEFAULT_wxUSE_GTK=0
11234 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11235 DEFAULT_DEFAULT_wxUSE_MSW=1
11236 wxUSE_SHARED=no
11237fi
11238
f597b41c 11239
a848cd7e
SC
11240if test "$wxUSE_GUI" = "yes"; then
11241
11242 if test "$USE_BEOS" = 1; then
11243 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11244echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11245 { (exit 1); exit 1; }; }
11246 fi
11247
11248 if test "$TOOLKIT_GIVEN" = 1; then
11249 for toolkit in `echo $ALL_TOOLKITS`; do
11250 var=wxUSE_$toolkit
11251 eval "value=\$${var}"
f34ca037
MW
11252 if test "x$value" = "xno"; then
11253 eval "$var=0"
11254 elif test "x$value" != "x"; then
11255 eval "$var=1"
11256 fi
11257
11258 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11259 eval "wx${toolkit}_VERSION=$value"
11260 fi
a848cd7e
SC
11261 done
11262 else
11263 for toolkit in `echo $ALL_TOOLKITS`; do
11264 if test "$has_toolkit_in_cache" != 1; then
11265 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11266 else
11267 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11268
11269 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11270 if test "x$version" != "x"; then
11271 eval "wx${toolkit}_VERSION=$version"
11272 fi
a848cd7e
SC
11273 fi
11274 eval "wxUSE_$toolkit=\$${var}"
11275 done
11276 fi
11277
11278 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11279 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11280 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11281
11282 case "${host}" in
11283 *-pc-os2_emx | *-pc-os2-emx )
11284 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11285 esac
11286
11287 case "$NUM_TOOLKITS" in
11288 1)
11289 ;;
11290 0)
11291 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11292echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11293 { (exit 1); exit 1; }; }
11294 ;;
11295 *)
11296 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11297echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11298 { (exit 1); exit 1; }; }
11299 esac
11300
f34ca037
MW
11301 # to be removed when --disable-gtk2 isn't needed
11302 if test "x$wxUSE_GTK2" = "xyes"; then
11303 wxGTK_VERSION=2
11304 elif test "x$wxUSE_GTK2" = "xno"; then
11305 wxGTK_VERSION=1
11306 fi
11307
a848cd7e
SC
11308 for toolkit in `echo $ALL_TOOLKITS`; do
11309 var=wxUSE_$toolkit
11310 eval "value=\$${var}"
11311 if test "x$value" != x; then
11312 cache_var=CACHE_$toolkit
11313 eval "cache=\$${cache_var}"
11314 if test "$cache" = 1; then
11315 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11316 eval "version=\$wx${toolkit}_VERSION"
11317 if test "x$version" != "x"; then
11318 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11319 fi
a848cd7e
SC
11320 fi
11321 if test "$value" = 1; then
11322 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11323 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11324echo "${ECHO_T}$toolkit_echo" >&6
11325 fi
11326 fi
11327 done
11328else
11329 if test "x$host_alias" != "x"; then
11330 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11331echo "${ECHO_T}base ($host_alias hosted) only" >&6
11332 else
11333 echo "$as_me:$LINENO: result: base only" >&5
11334echo "${ECHO_T}base only" >&6
11335 fi
11336fi
11337
11338wants_win32=0
11339doesnt_want_win32=0
11340case "${host}" in
11341 *-*-cygwin*)
11342 if test "$wxUSE_MSW" = 1 ; then
11343 wants_win32=1
7275146d 11344 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11345 else
11346 doesnt_want_win32=1
11347 fi
11348 ;;
11349 *-*-mingw*)
11350 wants_win32=1
11351 ;;
11352esac
11353
11354if test "$wxUSE_WINE" = "yes"; then
11355 wants_win32=1
11356 CC=winegcc
11357 CXX=wineg++
a848cd7e
SC
11358 LDFLAGS_GUI="-mwindows"
11359fi
11360
11361if test "$wants_win32" = 1 ; then
11362 USE_UNIX=0
11363 USE_WIN32=1
11364 cat >>confdefs.h <<\_ACEOF
11365#define __WIN32__ 1
11366_ACEOF
11367
11368 cat >>confdefs.h <<\_ACEOF
11369#define __WIN95__ 1
11370_ACEOF
11371
11372 cat >>confdefs.h <<\_ACEOF
11373#define __WINDOWS__ 1
11374_ACEOF
11375
11376 cat >>confdefs.h <<\_ACEOF
11377#define __GNUWIN32__ 1
11378_ACEOF
11379
11380 cat >>confdefs.h <<\_ACEOF
11381#define STRICT 1
11382_ACEOF
11383
11384 cat >>confdefs.h <<\_ACEOF
11385#define WINVER 0x0400
11386_ACEOF
11387
11388fi
11389if test "$doesnt_want_win32" = 1 ; then
11390 USE_UNIX=1
11391 USE_WIN32=0
11392fi
11393
11394if test "$USE_UNIX" = 1 ; then
11395 wxUSE_UNIX=yes
11396 cat >>confdefs.h <<\_ACEOF
11397#define __UNIX__ 1
11398_ACEOF
11399
11400fi
11401
11402
11403cat >confcache <<\_ACEOF
11404# This file is a shell script that caches the results of configure
11405# tests run on this system so they can be shared between configure
11406# scripts and configure runs, see configure's option --config-cache.
11407# It is not useful on other systems. If it contains results you don't
11408# want to keep, you may remove or edit it.
11409#
11410# config.status only pays attention to the cache file if you give it
11411# the --recheck option to rerun configure.
11412#
11413# `ac_cv_env_foo' variables (set or unset) will be overridden when
11414# loading this file, other *unset* `ac_cv_foo' will be assigned the
11415# following values.
11416
11417_ACEOF
11418
11419# The following way of writing the cache mishandles newlines in values,
11420# but we know of no workaround that is simple, portable, and efficient.
11421# So, don't put newlines in cache variables' values.
11422# Ultrix sh set writes to stderr and can't be redirected directly,
11423# and sets the high bit in the cache file unless we assign to the vars.
11424{
11425 (set) 2>&1 |
11426 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11427 *ac_space=\ *)
11428 # `set' does not quote correctly, so add quotes (double-quote
11429 # substitution turns \\\\ into \\, and sed turns \\ into \).
11430 sed -n \
ac1cb8d3
VS
11431 "s/'/'\\\\''/g;
11432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11433 ;;
11434 *)
11435 # `set' quotes correctly as required by POSIX, so do not add quotes.
11436 sed -n \
ac1cb8d3 11437 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11438 ;;
11439 esac;
11440} |
11441 sed '
11442 t clear
11443 : clear
11444 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11445 t end
11446 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11447 : end' >>confcache
11448if diff $cache_file confcache >/dev/null 2>&1; then :; else
11449 if test -w $cache_file; then
11450 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11451 cat confcache >$cache_file
11452 else
11453 echo "not updating unwritable cache $cache_file"
11454 fi
11455fi
11456rm -f confcache
11457
a848cd7e 11458CFLAGS=${CFLAGS:=}
6dcfc289
DE
11459
11460
3006edc0 11461
6dcfc289 11462 ac_ext=c
a848cd7e
SC
11463ac_cpp='$CPP $CPPFLAGS'
11464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11466ac_compiler_gnu=$ac_cv_c_compiler_gnu
11467if test -n "$ac_tool_prefix"; then
11468 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11469set dummy ${ac_tool_prefix}gcc; ac_word=$2
11470echo "$as_me:$LINENO: checking for $ac_word" >&5
11471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11472if test "${ac_cv_prog_CC+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11474else
11475 if test -n "$CC"; then
11476 ac_cv_prog_CC="$CC" # Let the user override the test.
11477else
11478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479for as_dir in $PATH
11480do
11481 IFS=$as_save_IFS
11482 test -z "$as_dir" && as_dir=.
11483 for ac_exec_ext in '' $ac_executable_extensions; do
11484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11485 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11487 break 2
11488 fi
11489done
11490done
11491
11492fi
11493fi
11494CC=$ac_cv_prog_CC
11495if test -n "$CC"; then
11496 echo "$as_me:$LINENO: result: $CC" >&5
11497echo "${ECHO_T}$CC" >&6
11498else
11499 echo "$as_me:$LINENO: result: no" >&5
11500echo "${ECHO_T}no" >&6
11501fi
11502
11503fi
11504if test -z "$ac_cv_prog_CC"; then
11505 ac_ct_CC=$CC
11506 # Extract the first word of "gcc", so it can be a program name with args.
11507set dummy gcc; ac_word=$2
11508echo "$as_me:$LINENO: checking for $ac_word" >&5
11509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11510if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11512else
11513 if test -n "$ac_ct_CC"; then
11514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11515else
11516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $PATH
11518do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11523 ac_cv_prog_ac_ct_CC="gcc"
11524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11525 break 2
11526 fi
11527done
11528done
11529
11530fi
11531fi
11532ac_ct_CC=$ac_cv_prog_ac_ct_CC
11533if test -n "$ac_ct_CC"; then
11534 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11535echo "${ECHO_T}$ac_ct_CC" >&6
11536else
11537 echo "$as_me:$LINENO: result: no" >&5
11538echo "${ECHO_T}no" >&6
11539fi
11540
11541 CC=$ac_ct_CC
11542else
11543 CC="$ac_cv_prog_CC"
11544fi
11545
11546if test -z "$CC"; then
11547 if test -n "$ac_tool_prefix"; then
11548 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11549set dummy ${ac_tool_prefix}cc; ac_word=$2
11550echo "$as_me:$LINENO: checking for $ac_word" >&5
11551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11552if test "${ac_cv_prog_CC+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554else
11555 if test -n "$CC"; then
11556 ac_cv_prog_CC="$CC" # Let the user override the test.
11557else
11558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559for as_dir in $PATH
11560do
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565 ac_cv_prog_CC="${ac_tool_prefix}cc"
11566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11568 fi
11569done
11570done
11571
11572fi
11573fi
11574CC=$ac_cv_prog_CC
11575if test -n "$CC"; then
11576 echo "$as_me:$LINENO: result: $CC" >&5
11577echo "${ECHO_T}$CC" >&6
11578else
11579 echo "$as_me:$LINENO: result: no" >&5
11580echo "${ECHO_T}no" >&6
11581fi
11582
11583fi
11584if test -z "$ac_cv_prog_CC"; then
11585 ac_ct_CC=$CC
11586 # Extract the first word of "cc", so it can be a program name with args.
11587set dummy cc; ac_word=$2
11588echo "$as_me:$LINENO: checking for $ac_word" >&5
11589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11590if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11592else
11593 if test -n "$ac_ct_CC"; then
11594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11595else
11596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597for as_dir in $PATH
11598do
11599 IFS=$as_save_IFS
11600 test -z "$as_dir" && as_dir=.
11601 for ac_exec_ext in '' $ac_executable_extensions; do
11602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11603 ac_cv_prog_ac_ct_CC="cc"
11604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11605 break 2
11606 fi
11607done
11608done
11609
11610fi
11611fi
11612ac_ct_CC=$ac_cv_prog_ac_ct_CC
11613if test -n "$ac_ct_CC"; then
11614 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11615echo "${ECHO_T}$ac_ct_CC" >&6
11616else
11617 echo "$as_me:$LINENO: result: no" >&5
11618echo "${ECHO_T}no" >&6
11619fi
11620
11621 CC=$ac_ct_CC
11622else
11623 CC="$ac_cv_prog_CC"
11624fi
11625
11626fi
11627if test -z "$CC"; then
11628 # Extract the first word of "cc", so it can be a program name with args.
11629set dummy cc; ac_word=$2
11630echo "$as_me:$LINENO: checking for $ac_word" >&5
11631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11632if test "${ac_cv_prog_CC+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634else
11635 if test -n "$CC"; then
11636 ac_cv_prog_CC="$CC" # Let the user override the test.
11637else
11638 ac_prog_rejected=no
11639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640for as_dir in $PATH
11641do
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
11645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11647 ac_prog_rejected=yes
11648 continue
11649 fi
11650 ac_cv_prog_CC="cc"
11651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11652 break 2
11653 fi
11654done
11655done
11656
11657if test $ac_prog_rejected = yes; then
11658 # We found a bogon in the path, so make sure we never use it.
11659 set dummy $ac_cv_prog_CC
11660 shift
11661 if test $# != 0; then
11662 # We chose a different compiler from the bogus one.
11663 # However, it has the same basename, so the bogon will be chosen
11664 # first if we set CC to just the basename; use the full file name.
11665 shift
11666 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11667 fi
11668fi
11669fi
11670fi
11671CC=$ac_cv_prog_CC
11672if test -n "$CC"; then
11673 echo "$as_me:$LINENO: result: $CC" >&5
11674echo "${ECHO_T}$CC" >&6
11675else
11676 echo "$as_me:$LINENO: result: no" >&5
11677echo "${ECHO_T}no" >&6
11678fi
11679
11680fi
11681if test -z "$CC"; then
11682 if test -n "$ac_tool_prefix"; then
11683 for ac_prog in cl
11684 do
11685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11686set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11687echo "$as_me:$LINENO: checking for $ac_word" >&5
11688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11689if test "${ac_cv_prog_CC+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692 if test -n "$CC"; then
11693 ac_cv_prog_CC="$CC" # Let the user override the test.
11694else
11695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696for as_dir in $PATH
11697do
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
11701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11702 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 break 2
11705 fi
11706done
11707done
11708
11709fi
11710fi
11711CC=$ac_cv_prog_CC
11712if test -n "$CC"; then
11713 echo "$as_me:$LINENO: result: $CC" >&5
11714echo "${ECHO_T}$CC" >&6
11715else
11716 echo "$as_me:$LINENO: result: no" >&5
11717echo "${ECHO_T}no" >&6
11718fi
11719
11720 test -n "$CC" && break
11721 done
11722fi
11723if test -z "$CC"; then
11724 ac_ct_CC=$CC
11725 for ac_prog in cl
11726do
11727 # Extract the first word of "$ac_prog", so it can be a program name with args.
11728set dummy $ac_prog; ac_word=$2
11729echo "$as_me:$LINENO: checking for $ac_word" >&5
11730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11731if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11733else
11734 if test -n "$ac_ct_CC"; then
11735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11736else
11737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738for as_dir in $PATH
11739do
11740 IFS=$as_save_IFS
11741 test -z "$as_dir" && as_dir=.
11742 for ac_exec_ext in '' $ac_executable_extensions; do
11743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11744 ac_cv_prog_ac_ct_CC="$ac_prog"
11745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11746 break 2
11747 fi
11748done
11749done
11750
11751fi
11752fi
11753ac_ct_CC=$ac_cv_prog_ac_ct_CC
11754if test -n "$ac_ct_CC"; then
11755 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11756echo "${ECHO_T}$ac_ct_CC" >&6
11757else
11758 echo "$as_me:$LINENO: result: no" >&5
11759echo "${ECHO_T}no" >&6
11760fi
11761
11762 test -n "$ac_ct_CC" && break
11763done
11764
11765 CC=$ac_ct_CC
11766fi
11767
11768fi
11769
11770
11771test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11772See \`config.log' for more details." >&5
11773echo "$as_me: error: no acceptable C compiler found in \$PATH
11774See \`config.log' for more details." >&2;}
11775 { (exit 1); exit 1; }; }
11776
11777# Provide some information about the compiler.
11778echo "$as_me:$LINENO:" \
11779 "checking for C compiler version" >&5
11780ac_compiler=`set X $ac_compile; echo $2`
11781{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11782 (eval $ac_compiler --version </dev/null >&5) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }
11786{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11787 (eval $ac_compiler -v </dev/null >&5) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }
11791{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11792 (eval $ac_compiler -V </dev/null >&5) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }
11796
11797cat >conftest.$ac_ext <<_ACEOF
11798/* confdefs.h. */
11799_ACEOF
11800cat confdefs.h >>conftest.$ac_ext
11801cat >>conftest.$ac_ext <<_ACEOF
11802/* end confdefs.h. */
11803
11804int
11805main ()
11806{
11807
11808 ;
11809 return 0;
11810}
11811_ACEOF
11812ac_clean_files_save=$ac_clean_files
11813ac_clean_files="$ac_clean_files a.out a.exe b.out"
11814# Try to create an executable without -o first, disregard a.out.
11815# It will help us diagnose broken compilers, and finding out an intuition
11816# of exeext.
ac1cb8d3
VS
11817echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11818echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11819ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11820if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11821 (eval $ac_link_default) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; then
11825 # Find the output, starting from the most likely. This scheme is
11826# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11827# resort.
11828
11829# Be careful to initialize this variable, since it used to be cached.
11830# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11831ac_cv_exeext=
11832# b.out is created by i960 compilers.
11833for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11834do
11835 test -f "$ac_file" || continue
11836 case $ac_file in
11837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11838 ;;
a848cd7e 11839 conftest.$ac_ext )
ac1cb8d3
VS
11840 # This is the source file.
11841 ;;
a848cd7e 11842 [ab].out )
ac1cb8d3
VS
11843 # We found the default executable, but exeext='' is most
11844 # certainly right.
11845 break;;
a848cd7e 11846 *.* )
ac1cb8d3
VS
11847 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11848 # FIXME: I believe we export ac_cv_exeext for Libtool,
11849 # but it would be cool to find out if it's true. Does anybody
11850 # maintain Libtool? --akim.
11851 export ac_cv_exeext
11852 break;;
a848cd7e 11853 * )
ac1cb8d3 11854 break;;
a848cd7e
SC
11855 esac
11856done
11857else
11858 echo "$as_me: failed program was:" >&5
11859sed 's/^/| /' conftest.$ac_ext >&5
11860
11861{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11862See \`config.log' for more details." >&5
11863echo "$as_me: error: C compiler cannot create executables
11864See \`config.log' for more details." >&2;}
11865 { (exit 77); exit 77; }; }
11866fi
11867
11868ac_exeext=$ac_cv_exeext
11869echo "$as_me:$LINENO: result: $ac_file" >&5
11870echo "${ECHO_T}$ac_file" >&6
11871
11872# Check the compiler produces executables we can run. If not, either
11873# the compiler is broken, or we cross compile.
11874echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11875echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11876# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11877# If not cross compiling, check that we can run a simple program.
11878if test "$cross_compiling" != yes; then
11879 if { ac_try='./$ac_file'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11882 ac_status=$?
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 cross_compiling=no
11886 else
11887 if test "$cross_compiling" = maybe; then
11888 cross_compiling=yes
11889 else
11890 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11891If you meant to cross compile, use \`--host'.
11892See \`config.log' for more details." >&5
11893echo "$as_me: error: cannot run C compiled programs.
11894If you meant to cross compile, use \`--host'.
11895See \`config.log' for more details." >&2;}
11896 { (exit 1); exit 1; }; }
11897 fi
11898 fi
11899fi
11900echo "$as_me:$LINENO: result: yes" >&5
11901echo "${ECHO_T}yes" >&6
11902
11903rm -f a.out a.exe conftest$ac_cv_exeext b.out
11904ac_clean_files=$ac_clean_files_save
11905# Check the compiler produces executables we can run. If not, either
11906# the compiler is broken, or we cross compile.
11907echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11908echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11909echo "$as_me:$LINENO: result: $cross_compiling" >&5
11910echo "${ECHO_T}$cross_compiling" >&6
11911
11912echo "$as_me:$LINENO: checking for suffix of executables" >&5
11913echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11915 (eval $ac_link) 2>&5
11916 ac_status=$?
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; then
11919 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11920# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11921# work properly (i.e., refer to `conftest.exe'), while it won't with
11922# `rm'.
11923for ac_file in conftest.exe conftest conftest.*; do
11924 test -f "$ac_file" || continue
11925 case $ac_file in
11926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11927 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11928 export ac_cv_exeext
11929 break;;
a848cd7e
SC
11930 * ) break;;
11931 esac
11932done
11933else
11934 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11935See \`config.log' for more details." >&5
11936echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11937See \`config.log' for more details." >&2;}
11938 { (exit 1); exit 1; }; }
11939fi
11940
11941rm -f conftest$ac_cv_exeext
11942echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11943echo "${ECHO_T}$ac_cv_exeext" >&6
11944
11945rm -f conftest.$ac_ext
11946EXEEXT=$ac_cv_exeext
11947ac_exeext=$EXEEXT
11948echo "$as_me:$LINENO: checking for suffix of object files" >&5
11949echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11950if test "${ac_cv_objext+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
11953 cat >conftest.$ac_ext <<_ACEOF
11954/* confdefs.h. */
11955_ACEOF
11956cat confdefs.h >>conftest.$ac_ext
11957cat >>conftest.$ac_ext <<_ACEOF
11958/* end confdefs.h. */
11959
11960int
11961main ()
11962{
11963
11964 ;
11965 return 0;
11966}
11967_ACEOF
11968rm -f conftest.o conftest.obj
11969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11970 (eval $ac_compile) 2>&5
11971 ac_status=$?
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; then
11974 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11975 case $ac_file in
11976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11977 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11978 break;;
11979 esac
11980done
11981else
11982 echo "$as_me: failed program was:" >&5
11983sed 's/^/| /' conftest.$ac_ext >&5
11984
11985{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11986See \`config.log' for more details." >&5
11987echo "$as_me: error: cannot compute suffix of object files: cannot compile
11988See \`config.log' for more details." >&2;}
11989 { (exit 1); exit 1; }; }
11990fi
11991
11992rm -f conftest.$ac_cv_objext conftest.$ac_ext
11993fi
11994echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11995echo "${ECHO_T}$ac_cv_objext" >&6
11996OBJEXT=$ac_cv_objext
11997ac_objext=$OBJEXT
11998echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11999echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12000if test "${ac_cv_c_compiler_gnu+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002else
12003 cat >conftest.$ac_ext <<_ACEOF
12004/* confdefs.h. */
12005_ACEOF
12006cat confdefs.h >>conftest.$ac_ext
12007cat >>conftest.$ac_ext <<_ACEOF
12008/* end confdefs.h. */
12009
12010int
12011main ()
12012{
12013#ifndef __GNUC__
12014 choke me
12015#endif
12016
12017 ;
12018 return 0;
12019}
12020_ACEOF
12021rm -f conftest.$ac_objext
12022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12023 (eval $ac_compile) 2>conftest.er1
a848cd7e 12024 ac_status=$?
ac1cb8d3
VS
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
a848cd7e
SC
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
6954625c 12030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 ac_compiler_gnu=yes
12043else
12044 echo "$as_me: failed program was:" >&5
12045sed 's/^/| /' conftest.$ac_ext >&5
12046
12047ac_compiler_gnu=no
12048fi
ac1cb8d3 12049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12050ac_cv_c_compiler_gnu=$ac_compiler_gnu
12051
12052fi
12053echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12054echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12055GCC=`test $ac_compiler_gnu = yes && echo yes`
12056ac_test_CFLAGS=${CFLAGS+set}
12057ac_save_CFLAGS=$CFLAGS
8aeeb05c 12058CFLAGS="-g"
a848cd7e
SC
12059echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12060echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12061if test "${ac_cv_prog_cc_g+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063else
12064 cat >conftest.$ac_ext <<_ACEOF
12065/* confdefs.h. */
12066_ACEOF
12067cat confdefs.h >>conftest.$ac_ext
12068cat >>conftest.$ac_ext <<_ACEOF
12069/* end confdefs.h. */
12070
12071int
12072main ()
12073{
12074
12075 ;
12076 return 0;
12077}
12078_ACEOF
12079rm -f conftest.$ac_objext
12080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12081 (eval $ac_compile) 2>conftest.er1
a848cd7e 12082 ac_status=$?
ac1cb8d3
VS
12083 grep -v '^ *+' conftest.er1 >conftest.err
12084 rm -f conftest.er1
12085 cat conftest.err >&5
a848cd7e
SC
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } &&
6954625c 12088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090 (eval $ac_try) 2>&5
12091 ac_status=$?
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; } &&
12094 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096 (eval $ac_try) 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12100 ac_cv_prog_cc_g=yes
12101else
12102 echo "$as_me: failed program was:" >&5
12103sed 's/^/| /' conftest.$ac_ext >&5
12104
12105ac_cv_prog_cc_g=no
12106fi
ac1cb8d3 12107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12108fi
12109echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12110echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12111if test "$ac_test_CFLAGS" = set; then
12112 CFLAGS=$ac_save_CFLAGS
12113elif test $ac_cv_prog_cc_g = yes; then
12114 if test "$GCC" = yes; then
12115 CFLAGS="-g -O2"
12116 else
12117 CFLAGS="-g"
12118 fi
12119else
12120 if test "$GCC" = yes; then
12121 CFLAGS="-O2"
12122 else
12123 CFLAGS=
12124 fi
12125fi
12126echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12127echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12128if test "${ac_cv_prog_cc_stdc+set}" = set; then
12129 echo $ECHO_N "(cached) $ECHO_C" >&6
12130else
12131 ac_cv_prog_cc_stdc=no
12132ac_save_CC=$CC
12133cat >conftest.$ac_ext <<_ACEOF
12134/* confdefs.h. */
12135_ACEOF
12136cat confdefs.h >>conftest.$ac_ext
12137cat >>conftest.$ac_ext <<_ACEOF
12138/* end confdefs.h. */
12139#include <stdarg.h>
12140#include <stdio.h>
12141#include <sys/types.h>
12142#include <sys/stat.h>
12143/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12144struct buf { int x; };
12145FILE * (*rcsopen) (struct buf *, struct stat *, int);
12146static char *e (p, i)
12147 char **p;
12148 int i;
12149{
12150 return p[i];
12151}
12152static char *f (char * (*g) (char **, int), char **p, ...)
12153{
12154 char *s;
12155 va_list v;
12156 va_start (v,p);
12157 s = g (p, va_arg (v,int));
12158 va_end (v);
12159 return s;
12160}
ac1cb8d3
VS
12161
12162/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12163 function prototypes and stuff, but not '\xHH' hex character constants.
12164 These don't provoke an error unfortunately, instead are silently treated
12165 as 'x'. The following induces an error, until -std1 is added to get
12166 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12167 array size at least. It's necessary to write '\x00'==0 to get something
12168 that's true only with -std1. */
12169int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12170
a848cd7e
SC
12171int test (int i, double x);
12172struct s1 {int (*f) (int a);};
12173struct s2 {int (*f) (double a);};
12174int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12175int argc;
12176char **argv;
12177int
12178main ()
12179{
12180return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12181 ;
12182 return 0;
12183}
12184_ACEOF
12185# Don't try gcc -ansi; that turns off useful extensions and
12186# breaks some systems' header files.
12187# AIX -qlanglvl=ansi
12188# Ultrix and OSF/1 -std1
12189# HP-UX 10.20 and later -Ae
12190# HP-UX older versions -Aa -D_HPUX_SOURCE
12191# SVR4 -Xc -D__EXTENSIONS__
12192for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12193do
12194 CC="$ac_save_CC $ac_arg"
12195 rm -f conftest.$ac_objext
12196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12197 (eval $ac_compile) 2>conftest.er1
a848cd7e 12198 ac_status=$?
ac1cb8d3
VS
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
a848cd7e
SC
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
6954625c 12204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_cv_prog_cc_stdc=$ac_arg
12217break
12218else
12219 echo "$as_me: failed program was:" >&5
12220sed 's/^/| /' conftest.$ac_ext >&5
12221
12222fi
ac1cb8d3 12223rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12224done
12225rm -f conftest.$ac_ext conftest.$ac_objext
12226CC=$ac_save_CC
12227
12228fi
12229
12230case "x$ac_cv_prog_cc_stdc" in
12231 x|xno)
12232 echo "$as_me:$LINENO: result: none needed" >&5
12233echo "${ECHO_T}none needed" >&6 ;;
12234 *)
12235 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12236echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12237 CC="$CC $ac_cv_prog_cc_stdc" ;;
12238esac
12239
12240# Some people use a C++ compiler to compile C. Since we use `exit',
12241# in C++ we need to declare it. In case someone uses the same compiler
12242# for both compiling C and C++ we need to have the C++ compiler decide
12243# the declaration of exit, since it's the most demanding environment.
12244cat >conftest.$ac_ext <<_ACEOF
12245#ifndef __cplusplus
12246 choke me
12247#endif
12248_ACEOF
12249rm -f conftest.$ac_objext
12250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12251 (eval $ac_compile) 2>conftest.er1
a848cd7e 12252 ac_status=$?
ac1cb8d3
VS
12253 grep -v '^ *+' conftest.er1 >conftest.err
12254 rm -f conftest.er1
12255 cat conftest.err >&5
a848cd7e
SC
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } &&
6954625c 12258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; } &&
12264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 for ac_declaration in \
ac1cb8d3 12271 '' \
a848cd7e
SC
12272 'extern "C" void std::exit (int) throw (); using std::exit;' \
12273 'extern "C" void std::exit (int); using std::exit;' \
12274 'extern "C" void exit (int) throw ();' \
12275 'extern "C" void exit (int);' \
12276 'void exit (int);'
12277do
12278 cat >conftest.$ac_ext <<_ACEOF
12279/* confdefs.h. */
12280_ACEOF
12281cat confdefs.h >>conftest.$ac_ext
12282cat >>conftest.$ac_ext <<_ACEOF
12283/* end confdefs.h. */
de59c161 12284$ac_declaration
ac1cb8d3 12285#include <stdlib.h>
a848cd7e
SC
12286int
12287main ()
12288{
12289exit (42);
12290 ;
12291 return 0;
12292}
12293_ACEOF
12294rm -f conftest.$ac_objext
12295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12296 (eval $ac_compile) 2>conftest.er1
a848cd7e 12297 ac_status=$?
ac1cb8d3
VS
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
a848cd7e
SC
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
6954625c 12303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; } &&
12309 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 :
12316else
12317 echo "$as_me: failed program was:" >&5
12318sed 's/^/| /' conftest.$ac_ext >&5
12319
12320continue
12321fi
ac1cb8d3 12322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12323 cat >conftest.$ac_ext <<_ACEOF
12324/* confdefs.h. */
12325_ACEOF
12326cat confdefs.h >>conftest.$ac_ext
12327cat >>conftest.$ac_ext <<_ACEOF
12328/* end confdefs.h. */
12329$ac_declaration
12330int
12331main ()
12332{
12333exit (42);
12334 ;
12335 return 0;
12336}
12337_ACEOF
12338rm -f conftest.$ac_objext
12339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12340 (eval $ac_compile) 2>conftest.er1
a848cd7e 12341 ac_status=$?
ac1cb8d3
VS
12342 grep -v '^ *+' conftest.er1 >conftest.err
12343 rm -f conftest.er1
12344 cat conftest.err >&5
a848cd7e
SC
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
6954625c 12347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; } &&
12353 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12356 ac_status=$?
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; }; then
12359 break
12360else
12361 echo "$as_me: failed program was:" >&5
12362sed 's/^/| /' conftest.$ac_ext >&5
12363
12364fi
ac1cb8d3 12365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12366done
12367rm -f conftest*
12368if test -n "$ac_declaration"; then
12369 echo '#ifdef __cplusplus' >>confdefs.h
12370 echo $ac_declaration >>confdefs.h
12371 echo '#endif' >>confdefs.h
12372fi
12373
12374else
12375 echo "$as_me: failed program was:" >&5
12376sed 's/^/| /' conftest.$ac_ext >&5
12377
12378fi
ac1cb8d3 12379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12380ac_ext=c
12381ac_cpp='$CPP $CPPFLAGS'
12382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12384ac_compiler_gnu=$ac_cv_c_compiler_gnu
12385
ab0ad5f1
VZ
12386
12387
12388 ac_ext=c
12389ac_cpp='$CPP $CPPFLAGS'
12390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12392ac_compiler_gnu=$ac_cv_c_compiler_gnu
12393
12394 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12395echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12396if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12398else
12399 cat >conftest.$ac_ext <<_ACEOF
12400/* confdefs.h. */
12401_ACEOF
12402cat confdefs.h >>conftest.$ac_ext
12403cat >>conftest.$ac_ext <<_ACEOF
12404/* end confdefs.h. */
12405
12406int
12407main ()
12408{
12409
12410 #ifndef __INTEL_COMPILER
12411 choke me
12412 #endif
12413
12414 ;
12415 return 0;
12416}
12417_ACEOF
12418rm -f conftest.$ac_objext
12419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420 (eval $ac_compile) 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
6954625c 12427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; } &&
12433 { ac_try='test -s conftest.$ac_objext'
12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12440else
12441 echo "$as_me: failed program was:" >&5
12442sed 's/^/| /' conftest.$ac_ext >&5
12443
12444bakefile_cv_c_compiler___INTEL_COMPILER=no
12445
12446fi
12447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12448
12449
12450fi
12451echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12452echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12453 ac_ext=c
12454ac_cpp='$CPP $CPPFLAGS'
12455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12457ac_compiler_gnu=$ac_cv_c_compiler_gnu
12458
12459 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12460 :; INTELCC=yes
12461 else
12462 :;
12463 fi
12464
12465
12466 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12467 if test "xCC" = "xC"; then
12468 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12469echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12470if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472else
12473 cat >conftest.$ac_ext <<_ACEOF
12474/* confdefs.h. */
12475_ACEOF
12476cat confdefs.h >>conftest.$ac_ext
12477cat >>conftest.$ac_ext <<_ACEOF
12478/* end confdefs.h. */
12479
12480int
12481main ()
12482{
12483
12484 ;
12485 return 0;
12486}
12487_ACEOF
12488rm -f conftest.$ac_objext conftest.$ac_ext.o
12489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490 (eval $ac_compile) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; then
12494 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12495 case $ac_file in
12496 conftest.$ac_ext.o)
0093c2fc 12497 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12498 ;;
12499 *)
12500 ;;
12501 esac
12502done
12503else
12504 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12505See \`config.log' for more details." >&5
12506echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12507See \`config.log' for more details." >&2;}
12508 { (exit 1); exit 1; }; }
12509
12510fi
12511
12512rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12513
12514fi
0093c2fc
VZ
12515echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12516echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12517if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12518 if test "c" = "c"; then
0093c2fc 12519 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12520 fi
12521 if test "c" = "cxx"; then
0093c2fc 12522 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12523 fi
12524fi
12525
0093c2fc 12526 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12527 unset ac_cv_prog_cc_g
12528 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12529ac_save_CFLAGS=$CFLAGS
8aeeb05c 12530CFLAGS="-g"
480ccd21
DE
12531echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12532echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12533if test "${ac_cv_prog_cc_g+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535else
12536 cat >conftest.$ac_ext <<_ACEOF
12537/* confdefs.h. */
12538_ACEOF
12539cat confdefs.h >>conftest.$ac_ext
12540cat >>conftest.$ac_ext <<_ACEOF
12541/* end confdefs.h. */
12542
12543int
12544main ()
12545{
12546
12547 ;
12548 return 0;
12549}
12550_ACEOF
12551rm -f conftest.$ac_objext
12552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12553 (eval $ac_compile) 2>conftest.er1
12554 ac_status=$?
12555 grep -v '^ *+' conftest.er1 >conftest.err
12556 rm -f conftest.er1
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
6954625c 12560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; } &&
12566 { ac_try='test -s conftest.$ac_objext'
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 ac_cv_prog_cc_g=yes
12573else
12574 echo "$as_me: failed program was:" >&5
12575sed 's/^/| /' conftest.$ac_ext >&5
12576
12577ac_cv_prog_cc_g=no
12578fi
12579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12580fi
12581echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12582echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12583if test "$ac_test_CFLAGS" = set; then
12584 CFLAGS=$ac_save_CFLAGS
12585elif test $ac_cv_prog_cc_g = yes; then
12586 if test "$GCC" = yes; then
12587 CFLAGS="-g -O2"
12588 else
12589 CFLAGS="-g"
12590 fi
12591else
12592 if test "$GCC" = yes; then
12593 CFLAGS="-O2"
12594 else
12595 CFLAGS=
12596 fi
12597fi
3006edc0 12598 fi
ab0ad5f1 12599 fi
3006edc0
VZ
12600
12601 case `uname -s` in
12602 AIX*)
12603 ac_ext=c
12604ac_cpp='$CPP $CPPFLAGS'
12605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12607ac_compiler_gnu=$ac_cv_c_compiler_gnu
12608
12609echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12610echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12611if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12613else
12614 cat >conftest.$ac_ext <<_ACEOF
12615/* confdefs.h. */
12616_ACEOF
12617cat confdefs.h >>conftest.$ac_ext
12618cat >>conftest.$ac_ext <<_ACEOF
12619/* end confdefs.h. */
12620
12621int
12622main ()
12623{
12624#ifndef __xlC__
12625 choke me
12626#endif
12627
12628 ;
12629 return 0;
12630}
12631_ACEOF
12632rm -f conftest.$ac_objext
12633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12634 (eval $ac_compile) 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
6954625c 12641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; } &&
12647 { ac_try='test -s conftest.$ac_objext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
0093c2fc 12653 bakefile_compiler_xlc=yes
3006edc0
VZ
12654else
12655 echo "$as_me: failed program was:" >&5
12656sed 's/^/| /' conftest.$ac_ext >&5
12657
0093c2fc 12658bakefile_compiler_xlc=no
3006edc0
VZ
12659fi
12660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12661 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12662
12663fi
0093c2fc
VZ
12664echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12665echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12666
0093c2fc 12667XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12668ac_ext=c
12669ac_cpp='$CPP $CPPFLAGS'
12670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12672ac_compiler_gnu=$ac_cv_c_compiler_gnu
12673
12674
12675 ;;
12676
12677 Darwin)
12678 ac_ext=c
95986553
DE
12679ac_cpp='$CPP $CPPFLAGS'
12680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12682ac_compiler_gnu=$ac_cv_c_compiler_gnu
12683
12684echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12685echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12686if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12688else
12689 cat >conftest.$ac_ext <<_ACEOF
12690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h. */
12695
12696int
12697main ()
12698{
12699#ifndef __MWERKS__
12700 choke me
12701#endif
12702
12703 ;
12704 return 0;
12705}
12706_ACEOF
12707rm -f conftest.$ac_objext
12708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>conftest.er1
12710 ac_status=$?
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
6954625c 12716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try='test -s conftest.$ac_objext'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728 bakefile_compiler_mwerks=yes
12729else
12730 echo "$as_me: failed program was:" >&5
12731sed 's/^/| /' conftest.$ac_ext >&5
12732
12733bakefile_compiler_mwerks=no
12734fi
12735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12736 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12737
12738fi
12739echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12740echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12741
0e6fa1d9 12742MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12743ac_ext=c
12744ac_cpp='$CPP $CPPFLAGS'
12745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12747ac_compiler_gnu=$ac_cv_c_compiler_gnu
12748
12749
3006edc0 12750 ac_ext=c
9273ffba
DE
12751ac_cpp='$CPP $CPPFLAGS'
12752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12754ac_compiler_gnu=$ac_cv_c_compiler_gnu
12755
12756echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12757echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12758if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12760else
12761 cat >conftest.$ac_ext <<_ACEOF
12762/* confdefs.h. */
12763_ACEOF
12764cat confdefs.h >>conftest.$ac_ext
12765cat >>conftest.$ac_ext <<_ACEOF
12766/* end confdefs.h. */
12767
12768int
12769main ()
12770{
12771#ifndef __xlC__
12772 choke me
12773#endif
12774
12775 ;
12776 return 0;
12777}
12778_ACEOF
12779rm -f conftest.$ac_objext
12780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12781 (eval $ac_compile) 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
6954625c 12788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; } &&
12794 { ac_try='test -s conftest.$ac_objext'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
0093c2fc 12800 bakefile_compiler_xlc=yes
9273ffba
DE
12801else
12802 echo "$as_me: failed program was:" >&5
12803sed 's/^/| /' conftest.$ac_ext >&5
12804
0093c2fc 12805bakefile_compiler_xlc=no
9273ffba
DE
12806fi
12807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12808 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12809
12810fi
0093c2fc
VZ
12811echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12812echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12813
0093c2fc 12814XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12815ac_ext=c
12816ac_cpp='$CPP $CPPFLAGS'
12817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819ac_compiler_gnu=$ac_cv_c_compiler_gnu
12820
12821
3006edc0
VZ
12822 ;;
12823
12824 IRIX*)
a848cd7e 12825
6dcfc289 12826
0ad5d837
VZ
12827 ac_ext=c
12828ac_cpp='$CPP $CPPFLAGS'
12829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12831ac_compiler_gnu=$ac_cv_c_compiler_gnu
12832
12833 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12834echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12835if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837else
12838 cat >conftest.$ac_ext <<_ACEOF
12839/* confdefs.h. */
12840_ACEOF
12841cat confdefs.h >>conftest.$ac_ext
12842cat >>conftest.$ac_ext <<_ACEOF
12843/* end confdefs.h. */
12844
12845int
12846main ()
12847{
12848
12849 #ifndef _SGI_COMPILER_VERSION
12850 choke me
12851 #endif
12852
12853 ;
12854 return 0;
12855}
12856_ACEOF
12857rm -f conftest.$ac_objext
12858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12859 (eval $ac_compile) 2>conftest.er1
12860 ac_status=$?
12861 grep -v '^ *+' conftest.er1 >conftest.err
12862 rm -f conftest.er1
12863 cat conftest.err >&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } &&
6954625c 12866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; } &&
12872 { ac_try='test -s conftest.$ac_objext'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12879else
12880 echo "$as_me: failed program was:" >&5
12881sed 's/^/| /' conftest.$ac_ext >&5
12882
12883bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12884
12885fi
12886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12887
12888
12889fi
12890echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12891echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12892 ac_ext=c
12893ac_cpp='$CPP $CPPFLAGS'
12894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12896ac_compiler_gnu=$ac_cv_c_compiler_gnu
12897
12898 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12899 :; SGICC=yes
12900 else
12901 :;
12902 fi
12903
12904
3006edc0
VZ
12905 ;;
12906
0093c2fc 12907 HP-UX*)
3006edc0
VZ
12908
12909
12910 ac_ext=c
12911ac_cpp='$CPP $CPPFLAGS'
12912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12914ac_compiler_gnu=$ac_cv_c_compiler_gnu
12915
0093c2fc
VZ
12916 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12917echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12918if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12920else
12921 cat >conftest.$ac_ext <<_ACEOF
12922/* confdefs.h. */
12923_ACEOF
12924cat confdefs.h >>conftest.$ac_ext
12925cat >>conftest.$ac_ext <<_ACEOF
12926/* end confdefs.h. */
12927
12928int
12929main ()
12930{
12931
0093c2fc 12932 #ifndef __HP_cc
3006edc0
VZ
12933 choke me
12934 #endif
12935
12936 ;
12937 return 0;
12938}
12939_ACEOF
12940rm -f conftest.$ac_objext
12941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12942 (eval $ac_compile) 2>conftest.er1
12943 ac_status=$?
12944 grep -v '^ *+' conftest.er1 >conftest.err
12945 rm -f conftest.er1
12946 cat conftest.err >&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } &&
6954625c 12949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; } &&
12955 { ac_try='test -s conftest.$ac_objext'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
0093c2fc 12961 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12962else
12963 echo "$as_me: failed program was:" >&5
12964sed 's/^/| /' conftest.$ac_ext >&5
12965
0093c2fc 12966bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12967
12968fi
12969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12970
12971
12972fi
0093c2fc
VZ
12973echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12974echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12975 ac_ext=c
12976ac_cpp='$CPP $CPPFLAGS'
12977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12979ac_compiler_gnu=$ac_cv_c_compiler_gnu
12980
0093c2fc
VZ
12981 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12982 :; HPCC=yes
a1aa0349
VZ
12983 else
12984 :;
12985 fi
12986
12987
12988 ;;
12989
0093c2fc 12990 OSF1)
a1aa0349
VZ
12991
12992
12993 ac_ext=c
12994ac_cpp='$CPP $CPPFLAGS'
12995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997ac_compiler_gnu=$ac_cv_c_compiler_gnu
12998
0093c2fc
VZ
12999 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13000echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13001if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003else
13004 cat >conftest.$ac_ext <<_ACEOF
13005/* confdefs.h. */
13006_ACEOF
13007cat confdefs.h >>conftest.$ac_ext
13008cat >>conftest.$ac_ext <<_ACEOF
13009/* end confdefs.h. */
13010
13011int
13012main ()
13013{
13014
0093c2fc 13015 #ifndef __DECC
a1aa0349
VZ
13016 choke me
13017 #endif
13018
13019 ;
13020 return 0;
13021}
13022_ACEOF
13023rm -f conftest.$ac_objext
13024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13025 (eval $ac_compile) 2>conftest.er1
13026 ac_status=$?
13027 grep -v '^ *+' conftest.er1 >conftest.err
13028 rm -f conftest.er1
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } &&
6954625c 13032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; } &&
13038 { ac_try='test -s conftest.$ac_objext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
0093c2fc 13044 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13045else
13046 echo "$as_me: failed program was:" >&5
13047sed 's/^/| /' conftest.$ac_ext >&5
13048
0093c2fc 13049bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13050
13051fi
13052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13053
13054
13055fi
0093c2fc
VZ
13056echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13057echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13058 ac_ext=c
13059ac_cpp='$CPP $CPPFLAGS'
13060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13062ac_compiler_gnu=$ac_cv_c_compiler_gnu
13063
0093c2fc
VZ
13064 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13065 :; COMPAQCC=yes
13066 else
13067 :;
13068 fi
13069
13070
13071 ;;
13072
13073 SunOS)
13074
13075
13076 ac_ext=c
13077ac_cpp='$CPP $CPPFLAGS'
13078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080ac_compiler_gnu=$ac_cv_c_compiler_gnu
13081
13082 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13083echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13084if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13086else
13087 cat >conftest.$ac_ext <<_ACEOF
13088/* confdefs.h. */
13089_ACEOF
13090cat confdefs.h >>conftest.$ac_ext
13091cat >>conftest.$ac_ext <<_ACEOF
13092/* end confdefs.h. */
13093
13094int
13095main ()
13096{
13097
13098 #ifndef __SUNPRO_C
13099 choke me
13100 #endif
13101
13102 ;
13103 return 0;
13104}
13105_ACEOF
13106rm -f conftest.$ac_objext
13107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108 (eval $ac_compile) 2>conftest.er1
13109 ac_status=$?
13110 grep -v '^ *+' conftest.er1 >conftest.err
13111 rm -f conftest.er1
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } &&
6954625c 13115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; } &&
13121 { ac_try='test -s conftest.$ac_objext'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 bakefile_cv_c_compiler___SUNPRO_C=yes
13128else
13129 echo "$as_me: failed program was:" >&5
13130sed 's/^/| /' conftest.$ac_ext >&5
13131
13132bakefile_cv_c_compiler___SUNPRO_C=no
13133
13134fi
13135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13136
13137
13138fi
13139echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13140echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13141 ac_ext=c
13142ac_cpp='$CPP $CPPFLAGS'
13143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13145ac_compiler_gnu=$ac_cv_c_compiler_gnu
13146
13147 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13148 :; SUNCC=yes
3006edc0
VZ
13149 else
13150 :;
13151 fi
13152
13153
13154 ;;
13155 esac
ab0ad5f1 13156 fi
a9e5b1f0
MW
13157
13158
3006edc0 13159
a848cd7e
SC
13160ac_ext=c
13161ac_cpp='$CPP $CPPFLAGS'
13162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13164ac_compiler_gnu=$ac_cv_c_compiler_gnu
13165echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13166echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13167# On Suns, sometimes $CPP names a directory.
13168if test -n "$CPP" && test -d "$CPP"; then
13169 CPP=
13170fi
13171if test -z "$CPP"; then
13172 if test "${ac_cv_prog_CPP+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13174else
13175 # Double quotes because CPP needs to be expanded
13176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13177 do
13178 ac_preproc_ok=false
13179for ac_c_preproc_warn_flag in '' yes
13180do
13181 # Use a header file that comes with gcc, so configuring glibc
13182 # with a fresh cross-compiler works.
13183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13184 # <limits.h> exists even on freestanding compilers.
13185 # On the NeXT, cc -E runs the code through the compiler's parser,
13186 # not just through cpp. "Syntax error" is here to catch this case.
13187 cat >conftest.$ac_ext <<_ACEOF
13188/* confdefs.h. */
13189_ACEOF
13190cat confdefs.h >>conftest.$ac_ext
13191cat >>conftest.$ac_ext <<_ACEOF
13192/* end confdefs.h. */
13193#ifdef __STDC__
13194# include <limits.h>
13195#else
13196# include <assert.h>
13197#endif
ac1cb8d3 13198 Syntax error
a848cd7e
SC
13199_ACEOF
13200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13202 ac_status=$?
13203 grep -v '^ *+' conftest.er1 >conftest.err
13204 rm -f conftest.er1
13205 cat conftest.err >&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } >/dev/null; then
13208 if test -s conftest.err; then
13209 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13211 else
13212 ac_cpp_err=
13213 fi
13214else
13215 ac_cpp_err=yes
13216fi
13217if test -z "$ac_cpp_err"; then
13218 :
13219else
13220 echo "$as_me: failed program was:" >&5
13221sed 's/^/| /' conftest.$ac_ext >&5
13222
13223 # Broken: fails on valid input.
13224continue
13225fi
13226rm -f conftest.err conftest.$ac_ext
13227
13228 # OK, works on sane cases. Now check whether non-existent headers
13229 # can be detected and how.
13230 cat >conftest.$ac_ext <<_ACEOF
13231/* confdefs.h. */
13232_ACEOF
13233cat confdefs.h >>conftest.$ac_ext
13234cat >>conftest.$ac_ext <<_ACEOF
13235/* end confdefs.h. */
13236#include <ac_nonexistent.h>
13237_ACEOF
13238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13240 ac_status=$?
13241 grep -v '^ *+' conftest.er1 >conftest.err
13242 rm -f conftest.er1
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } >/dev/null; then
13246 if test -s conftest.err; then
13247 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13249 else
13250 ac_cpp_err=
13251 fi
13252else
13253 ac_cpp_err=yes
13254fi
13255if test -z "$ac_cpp_err"; then
13256 # Broken: success on invalid input.
13257continue
13258else
13259 echo "$as_me: failed program was:" >&5
13260sed 's/^/| /' conftest.$ac_ext >&5
13261
13262 # Passes both tests.
13263ac_preproc_ok=:
13264break
13265fi
13266rm -f conftest.err conftest.$ac_ext
13267
13268done
13269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13270rm -f conftest.err conftest.$ac_ext
13271if $ac_preproc_ok; then
13272 break
13273fi
13274
13275 done
13276 ac_cv_prog_CPP=$CPP
13277
13278fi
13279 CPP=$ac_cv_prog_CPP
13280else
13281 ac_cv_prog_CPP=$CPP
13282fi
13283echo "$as_me:$LINENO: result: $CPP" >&5
13284echo "${ECHO_T}$CPP" >&6
13285ac_preproc_ok=false
13286for ac_c_preproc_warn_flag in '' yes
13287do
13288 # Use a header file that comes with gcc, so configuring glibc
13289 # with a fresh cross-compiler works.
13290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13291 # <limits.h> exists even on freestanding compilers.
13292 # On the NeXT, cc -E runs the code through the compiler's parser,
13293 # not just through cpp. "Syntax error" is here to catch this case.
13294 cat >conftest.$ac_ext <<_ACEOF
13295/* confdefs.h. */
13296_ACEOF
13297cat confdefs.h >>conftest.$ac_ext
13298cat >>conftest.$ac_ext <<_ACEOF
13299/* end confdefs.h. */
13300#ifdef __STDC__
13301# include <limits.h>
13302#else
13303# include <assert.h>
13304#endif
ac1cb8d3 13305 Syntax error
a848cd7e
SC
13306_ACEOF
13307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13309 ac_status=$?
13310 grep -v '^ *+' conftest.er1 >conftest.err
13311 rm -f conftest.er1
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } >/dev/null; then
13315 if test -s conftest.err; then
13316 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13318 else
13319 ac_cpp_err=
13320 fi
13321else
13322 ac_cpp_err=yes
13323fi
13324if test -z "$ac_cpp_err"; then
13325 :
13326else
13327 echo "$as_me: failed program was:" >&5
13328sed 's/^/| /' conftest.$ac_ext >&5
13329
13330 # Broken: fails on valid input.
13331continue
13332fi
13333rm -f conftest.err conftest.$ac_ext
13334
13335 # OK, works on sane cases. Now check whether non-existent headers
13336 # can be detected and how.
13337 cat >conftest.$ac_ext <<_ACEOF
13338/* confdefs.h. */
13339_ACEOF
13340cat confdefs.h >>conftest.$ac_ext
13341cat >>conftest.$ac_ext <<_ACEOF
13342/* end confdefs.h. */
13343#include <ac_nonexistent.h>
13344_ACEOF
13345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13347 ac_status=$?
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } >/dev/null; then
13353 if test -s conftest.err; then
13354 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13356 else
13357 ac_cpp_err=
13358 fi
13359else
13360 ac_cpp_err=yes
13361fi
13362if test -z "$ac_cpp_err"; then
13363 # Broken: success on invalid input.
13364continue
13365else
13366 echo "$as_me: failed program was:" >&5
13367sed 's/^/| /' conftest.$ac_ext >&5
13368
13369 # Passes both tests.
13370ac_preproc_ok=:
13371break
13372fi
13373rm -f conftest.err conftest.$ac_ext
13374
13375done
13376# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13377rm -f conftest.err conftest.$ac_ext
13378if $ac_preproc_ok; then
13379 :
13380else
13381 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13382See \`config.log' for more details." >&5
13383echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13384See \`config.log' for more details." >&2;}
13385 { (exit 1); exit 1; }; }
13386fi
13387
13388ac_ext=c
13389ac_cpp='$CPP $CPPFLAGS'
13390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13392ac_compiler_gnu=$ac_cv_c_compiler_gnu
13393
13394
13395echo "$as_me:$LINENO: checking for egrep" >&5
13396echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13397if test "${ac_cv_prog_egrep+set}" = set; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13399else
13400 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13401 then ac_cv_prog_egrep='grep -E'
13402 else ac_cv_prog_egrep='egrep'
13403 fi
13404fi
13405echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13406echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13407 EGREP=$ac_cv_prog_egrep
13408
13409
13410if test $ac_cv_c_compiler_gnu = yes; then
13411 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13412echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13413if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13415else
13416 ac_pattern="Autoconf.*'x'"
13417 cat >conftest.$ac_ext <<_ACEOF
13418/* confdefs.h. */
13419_ACEOF
13420cat confdefs.h >>conftest.$ac_ext
13421cat >>conftest.$ac_ext <<_ACEOF
13422/* end confdefs.h. */
13423#include <sgtty.h>
13424Autoconf TIOCGETP
13425_ACEOF
13426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13427 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13428 ac_cv_prog_gcc_traditional=yes
13429else
13430 ac_cv_prog_gcc_traditional=no
13431fi
13432rm -f conftest*
13433
13434
13435 if test $ac_cv_prog_gcc_traditional = no; then
13436 cat >conftest.$ac_ext <<_ACEOF
13437/* confdefs.h. */
13438_ACEOF
13439cat confdefs.h >>conftest.$ac_ext
13440cat >>conftest.$ac_ext <<_ACEOF
13441/* end confdefs.h. */
13442#include <termio.h>
13443Autoconf TCGETA
13444_ACEOF
13445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13446 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13447 ac_cv_prog_gcc_traditional=yes
13448fi
13449rm -f conftest*
13450
13451 fi
13452fi
13453echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13454echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13455 if test $ac_cv_prog_gcc_traditional = yes; then
13456 CC="$CC -traditional"
13457 fi
13458fi
13459
13460
a848cd7e
SC
13461ac_ext=cc
13462ac_cpp='$CXXCPP $CPPFLAGS'
13463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13466
13467
13468CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13469
13470
3006edc0 13471
6dcfc289 13472 ac_ext=cc
a848cd7e
SC
13473ac_cpp='$CXXCPP $CPPFLAGS'
13474ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13475ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13476ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13477if test -n "$ac_tool_prefix"; then
13478 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13479 do
13480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13481set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13482echo "$as_me:$LINENO: checking for $ac_word" >&5
13483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13484if test "${ac_cv_prog_CXX+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486else
13487 if test -n "$CXX"; then
13488 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13489else
13490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491for as_dir in $PATH
13492do
13493 IFS=$as_save_IFS
13494 test -z "$as_dir" && as_dir=.
13495 for ac_exec_ext in '' $ac_executable_extensions; do
13496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13497 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13499 break 2
13500 fi
13501done
13502done
13503
13504fi
13505fi
13506CXX=$ac_cv_prog_CXX
13507if test -n "$CXX"; then
13508 echo "$as_me:$LINENO: result: $CXX" >&5
13509echo "${ECHO_T}$CXX" >&6
13510else
13511 echo "$as_me:$LINENO: result: no" >&5
13512echo "${ECHO_T}no" >&6
13513fi
13514
13515 test -n "$CXX" && break
13516 done
13517fi
13518if test -z "$CXX"; then
13519 ac_ct_CXX=$CXX
13520 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13521do
13522 # Extract the first word of "$ac_prog", so it can be a program name with args.
13523set dummy $ac_prog; ac_word=$2
13524echo "$as_me:$LINENO: checking for $ac_word" >&5
13525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13526if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528else
13529 if test -n "$ac_ct_CXX"; then
13530 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13531else
13532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533for as_dir in $PATH
13534do
13535 IFS=$as_save_IFS
13536 test -z "$as_dir" && as_dir=.
13537 for ac_exec_ext in '' $ac_executable_extensions; do
13538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13539 ac_cv_prog_ac_ct_CXX="$ac_prog"
13540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13541 break 2
13542 fi
13543done
13544done
13545
13546fi
13547fi
13548ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13549if test -n "$ac_ct_CXX"; then
13550 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13551echo "${ECHO_T}$ac_ct_CXX" >&6
13552else
13553 echo "$as_me:$LINENO: result: no" >&5
13554echo "${ECHO_T}no" >&6
13555fi
13556
13557 test -n "$ac_ct_CXX" && break
13558done
13559test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13560
13561 CXX=$ac_ct_CXX
13562fi
13563
13564
13565# Provide some information about the compiler.
13566echo "$as_me:$LINENO:" \
13567 "checking for C++ compiler version" >&5
13568ac_compiler=`set X $ac_compile; echo $2`
13569{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13570 (eval $ac_compiler --version </dev/null >&5) 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }
13574{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13575 (eval $ac_compiler -v </dev/null >&5) 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }
13579{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13580 (eval $ac_compiler -V </dev/null >&5) 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }
13584
13585echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13586echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13587if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589else
13590 cat >conftest.$ac_ext <<_ACEOF
13591/* confdefs.h. */
13592_ACEOF
13593cat confdefs.h >>conftest.$ac_ext
13594cat >>conftest.$ac_ext <<_ACEOF
13595/* end confdefs.h. */
13596
13597int
13598main ()
13599{
13600#ifndef __GNUC__
13601 choke me
13602#endif
13603
13604 ;
13605 return 0;
13606}
13607_ACEOF
13608rm -f conftest.$ac_objext
13609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13610 (eval $ac_compile) 2>conftest.er1
a848cd7e 13611 ac_status=$?
ac1cb8d3
VS
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
a848cd7e
SC
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
6954625c 13617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; } &&
13623 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 ac_compiler_gnu=yes
13630else
13631 echo "$as_me: failed program was:" >&5
13632sed 's/^/| /' conftest.$ac_ext >&5
13633
13634ac_compiler_gnu=no
13635fi
ac1cb8d3 13636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13637ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13638
13639fi
13640echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13641echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13642GXX=`test $ac_compiler_gnu = yes && echo yes`
13643ac_test_CXXFLAGS=${CXXFLAGS+set}
13644ac_save_CXXFLAGS=$CXXFLAGS
13645CXXFLAGS="-g"
13646echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13647echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13648if test "${ac_cv_prog_cxx_g+set}" = set; then
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13650else
13651 cat >conftest.$ac_ext <<_ACEOF
13652/* confdefs.h. */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
13656/* end confdefs.h. */
13657
13658int
13659main ()
13660{
13661
13662 ;
13663 return 0;
13664}
13665_ACEOF
13666rm -f conftest.$ac_objext
13667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13668 (eval $ac_compile) 2>conftest.er1
a848cd7e 13669 ac_status=$?
ac1cb8d3
VS
13670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
a848cd7e
SC
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
6954625c 13675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; } &&
13681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
13687 ac_cv_prog_cxx_g=yes
13688else
13689 echo "$as_me: failed program was:" >&5
13690sed 's/^/| /' conftest.$ac_ext >&5
13691
13692ac_cv_prog_cxx_g=no
13693fi
ac1cb8d3 13694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13695fi
13696echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13697echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13698if test "$ac_test_CXXFLAGS" = set; then
13699 CXXFLAGS=$ac_save_CXXFLAGS
13700elif test $ac_cv_prog_cxx_g = yes; then
13701 if test "$GXX" = yes; then
8aeeb05c 13702 CXXFLAGS="-g -O2"
a848cd7e 13703 else
8aeeb05c 13704 CXXFLAGS="-g"
a848cd7e
SC
13705 fi
13706else
13707 if test "$GXX" = yes; then
13708 CXXFLAGS="-O2"
13709 else
13710 CXXFLAGS=
13711 fi
13712fi
13713for ac_declaration in \
ac1cb8d3 13714 '' \
a848cd7e
SC
13715 'extern "C" void std::exit (int) throw (); using std::exit;' \
13716 'extern "C" void std::exit (int); using std::exit;' \
13717 'extern "C" void exit (int) throw ();' \
13718 'extern "C" void exit (int);' \
13719 'void exit (int);'
13720do
13721 cat >conftest.$ac_ext <<_ACEOF
13722/* confdefs.h. */
13723_ACEOF
13724cat confdefs.h >>conftest.$ac_ext
13725cat >>conftest.$ac_ext <<_ACEOF
13726/* end confdefs.h. */
de59c161 13727$ac_declaration
ac1cb8d3 13728#include <stdlib.h>
a848cd7e
SC
13729int
13730main ()
13731{
13732exit (42);
13733 ;
13734 return 0;
13735}
13736_ACEOF
13737rm -f conftest.$ac_objext
13738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13739 (eval $ac_compile) 2>conftest.er1
a848cd7e 13740 ac_status=$?
ac1cb8d3
VS
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
a848cd7e
SC
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
6954625c 13746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 :
13759else
13760 echo "$as_me: failed program was:" >&5
13761sed 's/^/| /' conftest.$ac_ext >&5
13762
13763continue
13764fi
ac1cb8d3 13765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13766 cat >conftest.$ac_ext <<_ACEOF
13767/* confdefs.h. */
13768_ACEOF
13769cat confdefs.h >>conftest.$ac_ext
13770cat >>conftest.$ac_ext <<_ACEOF
13771/* end confdefs.h. */
13772$ac_declaration
13773int
13774main ()
13775{
13776exit (42);
13777 ;
13778 return 0;
13779}
13780_ACEOF
13781rm -f conftest.$ac_objext
13782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13783 (eval $ac_compile) 2>conftest.er1
a848cd7e 13784 ac_status=$?
ac1cb8d3
VS
13785 grep -v '^ *+' conftest.er1 >conftest.err
13786 rm -f conftest.er1
13787 cat conftest.err >&5
a848cd7e
SC
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
6954625c 13790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; } &&
13796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
13802 break
13803else
13804 echo "$as_me: failed program was:" >&5
13805sed 's/^/| /' conftest.$ac_ext >&5
13806
13807fi
ac1cb8d3 13808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13809done
13810rm -f conftest*
13811if test -n "$ac_declaration"; then
13812 echo '#ifdef __cplusplus' >>confdefs.h
13813 echo $ac_declaration >>confdefs.h
13814 echo '#endif' >>confdefs.h
13815fi
13816
13817ac_ext=cc
13818ac_cpp='$CXXCPP $CPPFLAGS'
13819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13822
ab0ad5f1
VZ
13823
13824
13825 ac_ext=cc
13826ac_cpp='$CXXCPP $CPPFLAGS'
13827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13830
13831 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13832echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13833if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13835else
13836 cat >conftest.$ac_ext <<_ACEOF
13837/* confdefs.h. */
13838_ACEOF
13839cat confdefs.h >>conftest.$ac_ext
13840cat >>conftest.$ac_ext <<_ACEOF
13841/* end confdefs.h. */
13842
13843int
13844main ()
13845{
13846
13847 #ifndef __INTEL_COMPILER
13848 choke me
13849 #endif
13850
13851 ;
13852 return 0;
13853}
13854_ACEOF
13855rm -f conftest.$ac_objext
13856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13857 (eval $ac_compile) 2>conftest.er1
13858 ac_status=$?
13859 grep -v '^ *+' conftest.er1 >conftest.err
13860 rm -f conftest.er1
13861 cat conftest.err >&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } &&
6954625c 13864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; } &&
13870 { ac_try='test -s conftest.$ac_objext'
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13873 ac_status=$?
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; }; then
13876 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13877else
13878 echo "$as_me: failed program was:" >&5
13879sed 's/^/| /' conftest.$ac_ext >&5
13880
13881bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13882
13883fi
13884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13885
13886
13887fi
13888echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13889echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13890 ac_ext=cc
13891ac_cpp='$CXXCPP $CPPFLAGS'
13892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13895
13896 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13897 :; INTELCXX=yes
13898 else
13899 :;
13900 fi
13901
13902
3006edc0
VZ
13903 if test "x$GCXX" != "xyes"; then
13904 if test "xCXX" = "xC"; then
13905 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13906echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13907if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13909else
13910 cat >conftest.$ac_ext <<_ACEOF
13911/* confdefs.h. */
13912_ACEOF
13913cat confdefs.h >>conftest.$ac_ext
13914cat >>conftest.$ac_ext <<_ACEOF
13915/* end confdefs.h. */
13916
13917int
13918main ()
13919{
13920
13921 ;
13922 return 0;
13923}
13924_ACEOF
13925rm -f conftest.$ac_objext conftest.$ac_ext.o
13926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13927 (eval $ac_compile) 2>&5
13928 ac_status=$?
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; then
13931 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13932 case $ac_file in
13933 conftest.$ac_ext.o)
0093c2fc 13934 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13935 ;;
13936 *)
13937 ;;
13938 esac
13939done
13940else
13941 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13942See \`config.log' for more details." >&5
13943echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13944See \`config.log' for more details." >&2;}
13945 { (exit 1); exit 1; }; }
13946
13947fi
13948
13949rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13950
13951fi
0093c2fc
VZ
13952echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13953echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13954if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13955 if test "cxx" = "c"; then
0093c2fc 13956 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13957 fi
13958 if test "cxx" = "cxx"; then
0093c2fc 13959 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13960 fi
13961fi
13962
0093c2fc 13963 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13964 unset ac_cv_prog_cc_g
13965 ac_test_CFLAGS=${CFLAGS+set}
13966ac_save_CFLAGS=$CFLAGS
8aeeb05c 13967CFLAGS="-g"
3006edc0
VZ
13968echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13969echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13970if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13972else
13973 cat >conftest.$ac_ext <<_ACEOF
13974/* confdefs.h. */
13975_ACEOF
13976cat confdefs.h >>conftest.$ac_ext
13977cat >>conftest.$ac_ext <<_ACEOF
13978/* end confdefs.h. */
13979
13980int
13981main ()
13982{
13983
13984 ;
13985 return 0;
13986}
13987_ACEOF
13988rm -f conftest.$ac_objext
13989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990 (eval $ac_compile) 2>conftest.er1
13991 ac_status=$?
13992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
6954625c 13997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest.$ac_objext'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
3006edc0 14009 ac_cv_prog_cc_g=yes
480ccd21
DE
14010else
14011 echo "$as_me: failed program was:" >&5
14012sed 's/^/| /' conftest.$ac_ext >&5
14013
3006edc0 14014ac_cv_prog_cc_g=no
480ccd21
DE
14015fi
14016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14017fi
3006edc0
VZ
14018echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14019echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14020if test "$ac_test_CFLAGS" = set; then
14021 CFLAGS=$ac_save_CFLAGS
14022elif test $ac_cv_prog_cc_g = yes; then
14023 if test "$GCC" = yes; then
14024 CFLAGS="-g -O2"
480ccd21 14025 else
3006edc0 14026 CFLAGS="-g"
480ccd21
DE
14027 fi
14028else
3006edc0
VZ
14029 if test "$GCC" = yes; then
14030 CFLAGS="-O2"
480ccd21 14031 else
3006edc0 14032 CFLAGS=
480ccd21
DE
14033 fi
14034fi
3006edc0 14035 fi
ab0ad5f1 14036 fi
3006edc0
VZ
14037
14038 case `uname -s` in
14039 AIX*)
14040 ac_ext=cc
14041ac_cpp='$CXXCPP $CPPFLAGS'
14042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14045
14046echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14047echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14048if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14050else
14051 cat >conftest.$ac_ext <<_ACEOF
14052/* confdefs.h. */
14053_ACEOF
14054cat confdefs.h >>conftest.$ac_ext
14055cat >>conftest.$ac_ext <<_ACEOF
14056/* end confdefs.h. */
14057
14058int
14059main ()
14060{
14061#ifndef __xlC__
14062 choke me
14063#endif
14064
14065 ;
14066 return 0;
14067}
14068_ACEOF
14069rm -f conftest.$ac_objext
14070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14071 (eval $ac_compile) 2>conftest.er1
14072 ac_status=$?
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } &&
6954625c 14078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; } &&
14084 { ac_try='test -s conftest.$ac_objext'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
0093c2fc 14090 bakefile_compiler_xlc=yes
3006edc0
VZ
14091else
14092 echo "$as_me: failed program was:" >&5
14093sed 's/^/| /' conftest.$ac_ext >&5
14094
0093c2fc 14095bakefile_compiler_xlc=no
3006edc0
VZ
14096fi
14097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14098 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14099
14100fi
0093c2fc
VZ
14101echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14102echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14103
0093c2fc 14104XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14105ac_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
14111
14112 ;;
14113
14114 Darwin)
14115 ac_ext=cc
95986553
DE
14116ac_cpp='$CXXCPP $CPPFLAGS'
14117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14120
14121echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14122echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14123if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14125else
14126 cat >conftest.$ac_ext <<_ACEOF
14127/* confdefs.h. */
14128_ACEOF
14129cat confdefs.h >>conftest.$ac_ext
14130cat >>conftest.$ac_ext <<_ACEOF
14131/* end confdefs.h. */
14132
14133int
14134main ()
14135{
14136#ifndef __MWERKS__
14137 choke me
14138#endif
14139
14140 ;
14141 return 0;
14142}
14143_ACEOF
14144rm -f conftest.$ac_objext
14145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14146 (eval $ac_compile) 2>conftest.er1
14147 ac_status=$?
14148 grep -v '^ *+' conftest.er1 >conftest.err
14149 rm -f conftest.er1
14150 cat conftest.err >&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } &&
6954625c 14153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; } &&
14159 { ac_try='test -s conftest.$ac_objext'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14162 ac_status=$?
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; }; then
14165 bakefile_compiler_mwerks=yes
14166else
14167 echo "$as_me: failed program was:" >&5
14168sed 's/^/| /' conftest.$ac_ext >&5
14169
14170bakefile_compiler_mwerks=no
14171fi
14172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14173 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14174
14175fi
14176echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14177echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14178
0e6fa1d9 14179MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14180ac_ext=cc
14181ac_cpp='$CXXCPP $CPPFLAGS'
14182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14185
14186
3006edc0 14187 ac_ext=cc
9273ffba
DE
14188ac_cpp='$CXXCPP $CPPFLAGS'
14189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14192
14193echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14194echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14195if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14197else
14198 cat >conftest.$ac_ext <<_ACEOF
14199/* confdefs.h. */
14200_ACEOF
14201cat confdefs.h >>conftest.$ac_ext
14202cat >>conftest.$ac_ext <<_ACEOF
14203/* end confdefs.h. */
14204
14205int
14206main ()
14207{
14208#ifndef __xlC__
14209 choke me
14210#endif
14211
14212 ;
14213 return 0;
14214}
14215_ACEOF
14216rm -f conftest.$ac_objext
14217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14218 (eval $ac_compile) 2>conftest.er1
14219 ac_status=$?
14220 grep -v '^ *+' conftest.er1 >conftest.err
14221 rm -f conftest.er1
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
6954625c 14225 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227 (eval $ac_try) 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; } &&
14231 { ac_try='test -s conftest.$ac_objext'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
0093c2fc 14237 bakefile_compiler_xlc=yes
9273ffba
DE
14238else
14239 echo "$as_me: failed program was:" >&5
14240sed 's/^/| /' conftest.$ac_ext >&5
14241
0093c2fc 14242bakefile_compiler_xlc=no
9273ffba
DE
14243fi
14244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14245 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14246
14247fi
0093c2fc
VZ
14248echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14249echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14250
0093c2fc 14251XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14252ac_ext=cc
14253ac_cpp='$CXXCPP $CPPFLAGS'
14254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14257
14258
3006edc0
VZ
14259 ;;
14260
14261 IRIX*)
95986553 14262
6dcfc289 14263
0ad5d837
VZ
14264 ac_ext=cc
14265ac_cpp='$CXXCPP $CPPFLAGS'
14266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14269
14270 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14271echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14272if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14274else
14275 cat >conftest.$ac_ext <<_ACEOF
14276/* confdefs.h. */
14277_ACEOF
14278cat confdefs.h >>conftest.$ac_ext
14279cat >>conftest.$ac_ext <<_ACEOF
14280/* end confdefs.h. */
14281
14282int
14283main ()
14284{
14285
14286 #ifndef _SGI_COMPILER_VERSION
14287 choke me
14288 #endif
14289
14290 ;
14291 return 0;
14292}
14293_ACEOF
14294rm -f conftest.$ac_objext
14295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14296 (eval $ac_compile) 2>conftest.er1
14297 ac_status=$?
14298 grep -v '^ *+' conftest.er1 >conftest.err
14299 rm -f conftest.er1
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } &&
6954625c 14303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; } &&
14309 { ac_try='test -s conftest.$ac_objext'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; }; then
14315 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14316else
14317 echo "$as_me: failed program was:" >&5
14318sed 's/^/| /' conftest.$ac_ext >&5
14319
14320bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14321
14322fi
14323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14324
14325
14326fi
14327echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14328echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14329 ac_ext=cc
14330ac_cpp='$CXXCPP $CPPFLAGS'
14331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14334
14335 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14336 :; SGICXX=yes
14337 else
14338 :;
14339 fi
14340
14341
3006edc0
VZ
14342 ;;
14343
0093c2fc 14344 HP-UX*)
3006edc0
VZ
14345
14346
14347 ac_ext=cc
14348ac_cpp='$CXXCPP $CPPFLAGS'
14349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14352
0093c2fc
VZ
14353 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14354echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14355if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14357else
14358 cat >conftest.$ac_ext <<_ACEOF
14359/* confdefs.h. */
14360_ACEOF
14361cat confdefs.h >>conftest.$ac_ext
14362cat >>conftest.$ac_ext <<_ACEOF
14363/* end confdefs.h. */
14364
14365int
14366main ()
14367{
14368
0093c2fc 14369 #ifndef __HP_aCC
3006edc0
VZ
14370 choke me
14371 #endif
14372
14373 ;
14374 return 0;
14375}
14376_ACEOF
14377rm -f conftest.$ac_objext
14378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14379 (eval $ac_compile) 2>conftest.er1
14380 ac_status=$?
14381 grep -v '^ *+' conftest.er1 >conftest.err
14382 rm -f conftest.er1
14383 cat conftest.err >&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } &&
6954625c 14386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest.$ac_objext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
0093c2fc 14398 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14399else
14400 echo "$as_me: failed program was:" >&5
14401sed 's/^/| /' conftest.$ac_ext >&5
14402
0093c2fc 14403bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14404
14405fi
14406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14407
14408
14409fi
0093c2fc
VZ
14410echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14411echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14412 ac_ext=cc
14413ac_cpp='$CXXCPP $CPPFLAGS'
14414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14417
0093c2fc
VZ
14418 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14419 :; HPCXX=yes
a1aa0349
VZ
14420 else
14421 :;
14422 fi
14423
14424
14425 ;;
14426
0093c2fc 14427 OSF1)
a1aa0349
VZ
14428
14429
14430 ac_ext=cc
14431ac_cpp='$CXXCPP $CPPFLAGS'
14432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14435
0093c2fc
VZ
14436 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14437echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14438if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14440else
14441 cat >conftest.$ac_ext <<_ACEOF
14442/* confdefs.h. */
14443_ACEOF
14444cat confdefs.h >>conftest.$ac_ext
14445cat >>conftest.$ac_ext <<_ACEOF
14446/* end confdefs.h. */
14447
14448int
14449main ()
14450{
14451
0093c2fc 14452 #ifndef __DECCXX
a1aa0349
VZ
14453 choke me
14454 #endif
14455
14456 ;
14457 return 0;
14458}
14459_ACEOF
14460rm -f conftest.$ac_objext
14461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14462 (eval $ac_compile) 2>conftest.er1
14463 ac_status=$?
14464 grep -v '^ *+' conftest.er1 >conftest.err
14465 rm -f conftest.er1
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
6954625c 14469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; } &&
14475 { ac_try='test -s conftest.$ac_objext'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
0093c2fc 14481 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14482else
14483 echo "$as_me: failed program was:" >&5
14484sed 's/^/| /' conftest.$ac_ext >&5
14485
0093c2fc 14486bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14487
14488fi
14489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14490
14491
14492fi
0093c2fc
VZ
14493echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14494echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14495 ac_ext=cc
14496ac_cpp='$CXXCPP $CPPFLAGS'
14497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14500
0093c2fc
VZ
14501 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14502 :; COMPAQCXX=yes
14503 else
14504 :;
14505 fi
14506
14507
14508 ;;
14509
14510 SunOS)
14511
14512
14513 ac_ext=cc
14514ac_cpp='$CXXCPP $CPPFLAGS'
14515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14518
14519 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14520echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14521if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14523else
14524 cat >conftest.$ac_ext <<_ACEOF
14525/* confdefs.h. */
14526_ACEOF
14527cat confdefs.h >>conftest.$ac_ext
14528cat >>conftest.$ac_ext <<_ACEOF
14529/* end confdefs.h. */
14530
14531int
14532main ()
14533{
14534
14535 #ifndef __SUNPRO_CC
14536 choke me
14537 #endif
14538
14539 ;
14540 return 0;
14541}
14542_ACEOF
14543rm -f conftest.$ac_objext
14544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14545 (eval $ac_compile) 2>conftest.er1
14546 ac_status=$?
14547 grep -v '^ *+' conftest.er1 >conftest.err
14548 rm -f conftest.er1
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } &&
6954625c 14552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554 (eval $ac_try) 2>&5
14555 ac_status=$?
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; } &&
14558 { ac_try='test -s conftest.$ac_objext'
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; }; then
14564 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14565else
14566 echo "$as_me: failed program was:" >&5
14567sed 's/^/| /' conftest.$ac_ext >&5
14568
14569bakefile_cv_cxx_compiler___SUNPRO_CC=no
14570
14571fi
14572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14573
14574
14575fi
14576echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14577echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14578 ac_ext=cc
14579ac_cpp='$CXXCPP $CPPFLAGS'
14580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14583
14584 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14585 :; SUNCXX=yes
3006edc0
VZ
14586 else
14587 :;
ab0ad5f1 14588 fi
a9e5b1f0
MW
14589
14590
3006edc0
VZ
14591 ;;
14592 esac
14593 fi
14594
14595
14596
a848cd7e
SC
14597if test -n "$ac_tool_prefix"; then
14598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14599set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14600echo "$as_me:$LINENO: checking for $ac_word" >&5
14601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14602if test "${ac_cv_prog_RANLIB+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14604else
14605 if test -n "$RANLIB"; then
14606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14607else
14608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14609for as_dir in $PATH
14610do
14611 IFS=$as_save_IFS
14612 test -z "$as_dir" && as_dir=.
14613 for ac_exec_ext in '' $ac_executable_extensions; do
14614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14615 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14617 break 2
14618 fi
14619done
14620done
14621
14622fi
14623fi
14624RANLIB=$ac_cv_prog_RANLIB
14625if test -n "$RANLIB"; then
14626 echo "$as_me:$LINENO: result: $RANLIB" >&5
14627echo "${ECHO_T}$RANLIB" >&6
14628else
14629 echo "$as_me:$LINENO: result: no" >&5
14630echo "${ECHO_T}no" >&6
14631fi
14632
14633fi
14634if test -z "$ac_cv_prog_RANLIB"; then
14635 ac_ct_RANLIB=$RANLIB
14636 # Extract the first word of "ranlib", so it can be a program name with args.
14637set dummy ranlib; ac_word=$2
14638echo "$as_me:$LINENO: checking for $ac_word" >&5
14639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14640if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14642else
14643 if test -n "$ac_ct_RANLIB"; then
14644 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14645else
14646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14647for as_dir in $PATH
14648do
14649 IFS=$as_save_IFS
14650 test -z "$as_dir" && as_dir=.
14651 for ac_exec_ext in '' $ac_executable_extensions; do
14652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14653 ac_cv_prog_ac_ct_RANLIB="ranlib"
14654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14655 break 2
14656 fi
14657done
14658done
14659
14660 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14661fi
14662fi
14663ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14664if test -n "$ac_ct_RANLIB"; then
14665 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14666echo "${ECHO_T}$ac_ct_RANLIB" >&6
14667else
14668 echo "$as_me:$LINENO: result: no" >&5
14669echo "${ECHO_T}no" >&6
14670fi
14671
14672 RANLIB=$ac_ct_RANLIB
14673else
14674 RANLIB="$ac_cv_prog_RANLIB"
14675fi
14676
14677
8c80d384
DE
14678if test -n "$ac_tool_prefix"; then
14679 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14680set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14681echo "$as_me:$LINENO: checking for $ac_word" >&5
14682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14683if test "${ac_cv_prog_AR+set}" = set; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14685else
14686 if test -n "$AR"; then
14687 ac_cv_prog_AR="$AR" # Let the user override the test.
14688else
14689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14690for as_dir in $PATH
14691do
14692 IFS=$as_save_IFS
14693 test -z "$as_dir" && as_dir=.
14694 for ac_exec_ext in '' $ac_executable_extensions; do
14695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14696 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14698 break 2
14699 fi
14700done
14701done
14702
14703fi
14704fi
14705AR=$ac_cv_prog_AR
14706if test -n "$AR"; then
14707 echo "$as_me:$LINENO: result: $AR" >&5
14708echo "${ECHO_T}$AR" >&6
14709else
14710 echo "$as_me:$LINENO: result: no" >&5
14711echo "${ECHO_T}no" >&6
14712fi
14713
8c80d384
DE
14714fi
14715if test -z "$ac_cv_prog_AR"; then
14716 ac_ct_AR=$AR
14717 # Extract the first word of "ar", so it can be a program name with args.
14718set dummy ar; ac_word=$2
14719echo "$as_me:$LINENO: checking for $ac_word" >&5
14720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14721if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14723else
14724 if test -n "$ac_ct_AR"; then
14725 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14726else
14727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14728for as_dir in $PATH
14729do
14730 IFS=$as_save_IFS
14731 test -z "$as_dir" && as_dir=.
14732 for ac_exec_ext in '' $ac_executable_extensions; do
14733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14734 ac_cv_prog_ac_ct_AR="ar"
14735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14736 break 2
14737 fi
14738done
14739done
14740
14741fi
14742fi
14743ac_ct_AR=$ac_cv_prog_ac_ct_AR
14744if test -n "$ac_ct_AR"; then
14745 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14746echo "${ECHO_T}$ac_ct_AR" >&6
14747else
14748 echo "$as_me:$LINENO: result: no" >&5
14749echo "${ECHO_T}no" >&6
14750fi
14751
14752 AR=$ac_ct_AR
14753else
14754 AR="$ac_cv_prog_AR"
14755fi
14756
a848cd7e 14757if test "x$AR" = "x" ; then
77ffb593
JS
14758 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14759echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14760 { (exit 1); exit 1; }; }
14761fi
14762
14763# Find a good install program. We prefer a C program (faster),
14764# so one script is as good as another. But avoid the broken or
14765# incompatible versions:
14766# SysV /etc/install, /usr/sbin/install
14767# SunOS /usr/etc/install
14768# IRIX /sbin/install
14769# AIX /bin/install
14770# AmigaOS /C/install, which installs bootblocks on floppy discs
14771# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14772# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14773# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14774# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14775# ./install, which can be erroneously created by make from ./install.sh.
14776echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14777echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14778if test -z "$INSTALL"; then
14779if test "${ac_cv_path_install+set}" = set; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14781else
14782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14783for as_dir in $PATH
14784do
14785 IFS=$as_save_IFS
14786 test -z "$as_dir" && as_dir=.
14787 # Account for people who put trailing slashes in PATH elements.
14788case $as_dir/ in
14789 ./ | .// | /cC/* | \
14790 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14791 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14792 /usr/ucb/* ) ;;
14793 *)
14794 # OSF1 and SCO ODT 3.0 have their own names for install.
14795 # Don't use installbsd from OSF since it installs stuff as root
14796 # by default.
14797 for ac_prog in ginstall scoinst install; do
14798 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14799 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14800 if test $ac_prog = install &&
14801 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14802 # AIX install. It has an incompatible calling convention.
14803 :
14804 elif test $ac_prog = install &&
14805 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14806 # program-specific install script used by HP pwplus--don't use.
14807 :
14808 else
14809 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14810 break 3
14811 fi
14812 fi
a848cd7e
SC
14813 done
14814 done
14815 ;;
14816esac
14817done
14818
14819
14820fi
14821 if test "${ac_cv_path_install+set}" = set; then
14822 INSTALL=$ac_cv_path_install
14823 else
14824 # As a last resort, use the slow shell script. We don't cache a
14825 # path for INSTALL within a source directory, because that will
14826 # break other packages using the cache if that directory is
14827 # removed, or if the path is relative.
14828 INSTALL=$ac_install_sh
14829 fi
14830fi
14831echo "$as_me:$LINENO: result: $INSTALL" >&5
14832echo "${ECHO_T}$INSTALL" >&6
14833
14834# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14835# It thinks the first close brace ends the variable substitution.
14836test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14837
14838test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14839
14840test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14841
14842
14843case ${INSTALL} in
14844 /* ) # Absolute
14845 ;;
14846 ?:* ) # Drive letter, considered as absolute.
14847 ;;
14848 *)
14849 INSTALL=`pwd`/${INSTALL} ;;
14850esac
14851
a848cd7e
SC
14852
14853case "${host}" in
14854
cfda0ea8 14855 *-*-darwin* )
a848cd7e
SC
14856 INSTALL_PROGRAM="cp -fp"
14857 INSTALL_DATA="cp -fp"
14858 ;;
14859 *)
14860 ;;
14861esac
14862
8c80d384
DE
14863if test -n "$ac_tool_prefix"; then
14864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14865set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14866echo "$as_me:$LINENO: checking for $ac_word" >&5
14867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14868if test "${ac_cv_prog_STRIP+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14870else
14871 if test -n "$STRIP"; then
14872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14873else
14874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14875for as_dir in $PATH
14876do
14877 IFS=$as_save_IFS
14878 test -z "$as_dir" && as_dir=.
14879 for ac_exec_ext in '' $ac_executable_extensions; do
14880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14881 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14883 break 2
14884 fi
14885done
14886done
14887
a848cd7e
SC
14888fi
14889fi
14890STRIP=$ac_cv_prog_STRIP
14891if test -n "$STRIP"; then
14892 echo "$as_me:$LINENO: result: $STRIP" >&5
14893echo "${ECHO_T}$STRIP" >&6
14894else
14895 echo "$as_me:$LINENO: result: no" >&5
14896echo "${ECHO_T}no" >&6
14897fi
14898
8c80d384
DE
14899fi
14900if test -z "$ac_cv_prog_STRIP"; then
14901 ac_ct_STRIP=$STRIP
14902 # Extract the first word of "strip", so it can be a program name with args.
14903set dummy strip; ac_word=$2
14904echo "$as_me:$LINENO: checking for $ac_word" >&5
14905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14906if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14908else
14909 if test -n "$ac_ct_STRIP"; then
14910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14911else
14912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14913for as_dir in $PATH
14914do
14915 IFS=$as_save_IFS
14916 test -z "$as_dir" && as_dir=.
14917 for ac_exec_ext in '' $ac_executable_extensions; do
14918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14919 ac_cv_prog_ac_ct_STRIP="strip"
14920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14921 break 2
14922 fi
14923done
14924done
14925
14926 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14927fi
14928fi
14929ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14930if test -n "$ac_ct_STRIP"; then
14931 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14932echo "${ECHO_T}$ac_ct_STRIP" >&6
14933else
14934 echo "$as_me:$LINENO: result: no" >&5
14935echo "${ECHO_T}no" >&6
14936fi
14937
14938 STRIP=$ac_ct_STRIP
14939else
14940 STRIP="$ac_cv_prog_STRIP"
14941fi
14942
14943
14944if test "$wxUSE_WINE" = "yes"; then
14945 if test -n "$ac_tool_prefix"; then
14946 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14947set dummy ${ac_tool_prefix}wrc; ac_word=$2
14948echo "$as_me:$LINENO: checking for $ac_word" >&5
14949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14950if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14951 echo $ECHO_N "(cached) $ECHO_C" >&6
14952else
8ced02f6
DE
14953 if test -n "$WINDRES"; then
14954 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14955else
14956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14957for as_dir in $PATH
14958do
14959 IFS=$as_save_IFS
14960 test -z "$as_dir" && as_dir=.
14961 for ac_exec_ext in '' $ac_executable_extensions; do
14962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14963 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
14964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14965 break 2
14966 fi
14967done
14968done
14969
14970fi
14971fi
8ced02f6
DE
14972WINDRES=$ac_cv_prog_WINDRES
14973if test -n "$WINDRES"; then
14974 echo "$as_me:$LINENO: result: $WINDRES" >&5
14975echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14976else
14977 echo "$as_me:$LINENO: result: no" >&5
14978echo "${ECHO_T}no" >&6
14979fi
14980
14981fi
8ced02f6
DE
14982if test -z "$ac_cv_prog_WINDRES"; then
14983 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14984 # Extract the first word of "wrc", so it can be a program name with args.
14985set dummy wrc; ac_word=$2
14986echo "$as_me:$LINENO: checking for $ac_word" >&5
14987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14988if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14990else
8ced02f6
DE
14991 if test -n "$ac_ct_WINDRES"; then
14992 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14993else
14994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14995for as_dir in $PATH
14996do
14997 IFS=$as_save_IFS
14998 test -z "$as_dir" && as_dir=.
14999 for ac_exec_ext in '' $ac_executable_extensions; do
15000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15001 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15003 break 2
15004 fi
15005done
15006done
15007
15008fi
15009fi
8ced02f6
DE
15010ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15011if test -n "$ac_ct_WINDRES"; then
15012 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15013echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15014else
15015 echo "$as_me:$LINENO: result: no" >&5
15016echo "${ECHO_T}no" >&6
15017fi
15018
8ced02f6 15019 WINDRES=$ac_ct_WINDRES
8c80d384 15020else
8ced02f6 15021 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15022fi
15023
004ee6da 15024 RESCOMP="$WINDRES"
8c80d384
DE
15025else
15026 case "${host}" in
15027 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15028 if test -n "$ac_tool_prefix"; then
15029 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15030set dummy ${ac_tool_prefix}windres; ac_word=$2
15031echo "$as_me:$LINENO: checking for $ac_word" >&5
15032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15033if test "${ac_cv_prog_WINDRES+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15035else
15036 if test -n "$WINDRES"; then
15037 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15038else
15039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15040for as_dir in $PATH
15041do
15042 IFS=$as_save_IFS
15043 test -z "$as_dir" && as_dir=.
15044 for ac_exec_ext in '' $ac_executable_extensions; do
15045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15046 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15048 break 2
15049 fi
15050done
15051done
15052
15053fi
15054fi
15055WINDRES=$ac_cv_prog_WINDRES
15056if test -n "$WINDRES"; then
15057 echo "$as_me:$LINENO: result: $WINDRES" >&5
15058echo "${ECHO_T}$WINDRES" >&6
15059else
15060 echo "$as_me:$LINENO: result: no" >&5
15061echo "${ECHO_T}no" >&6
15062fi
15063
15064fi
15065if test -z "$ac_cv_prog_WINDRES"; then
15066 ac_ct_WINDRES=$WINDRES
15067 # Extract the first word of "windres", so it can be a program name with args.
15068set dummy windres; ac_word=$2
15069echo "$as_me:$LINENO: checking for $ac_word" >&5
15070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15071if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073else
15074 if test -n "$ac_ct_WINDRES"; then
15075 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15076else
15077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15078for as_dir in $PATH
15079do
15080 IFS=$as_save_IFS
15081 test -z "$as_dir" && as_dir=.
15082 for ac_exec_ext in '' $ac_executable_extensions; do
15083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15084 ac_cv_prog_ac_ct_WINDRES="windres"
15085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15086 break 2
15087 fi
15088done
15089done
15090
15091fi
15092fi
15093ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15094if test -n "$ac_ct_WINDRES"; then
15095 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15096echo "${ECHO_T}$ac_ct_WINDRES" >&6
15097else
15098 echo "$as_me:$LINENO: result: no" >&5
15099echo "${ECHO_T}no" >&6
15100fi
15101
15102 WINDRES=$ac_ct_WINDRES
15103else
15104 WINDRES="$ac_cv_prog_WINDRES"
15105fi
15106
15107 RESCOMP="$WINDRES"
15108 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15109 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15110set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15111echo "$as_me:$LINENO: checking for $ac_word" >&5
15112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15113if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15115else
15116 if test -n "$DLLTOOL"; then
15117 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15118else
15119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15120for as_dir in $PATH
15121do
15122 IFS=$as_save_IFS
15123 test -z "$as_dir" && as_dir=.
15124 for ac_exec_ext in '' $ac_executable_extensions; do
15125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15126 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15128 break 2
15129 fi
15130done
15131done
15132
15133fi
15134fi
15135DLLTOOL=$ac_cv_prog_DLLTOOL
15136if test -n "$DLLTOOL"; then
15137 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15138echo "${ECHO_T}$DLLTOOL" >&6
15139else
15140 echo "$as_me:$LINENO: result: no" >&5
15141echo "${ECHO_T}no" >&6
15142fi
15143
15144fi
15145if test -z "$ac_cv_prog_DLLTOOL"; then
15146 ac_ct_DLLTOOL=$DLLTOOL
15147 # Extract the first word of "dlltool", so it can be a program name with args.
15148set dummy dlltool; ac_word=$2
15149echo "$as_me:$LINENO: checking for $ac_word" >&5
15150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15151if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15153else
15154 if test -n "$ac_ct_DLLTOOL"; then
15155 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15156else
15157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15158for as_dir in $PATH
15159do
15160 IFS=$as_save_IFS
15161 test -z "$as_dir" && as_dir=.
15162 for ac_exec_ext in '' $ac_executable_extensions; do
15163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15164 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15166 break 2
15167 fi
15168done
15169done
15170
15171fi
15172fi
15173ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15174if test -n "$ac_ct_DLLTOOL"; then
15175 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15176echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15177else
15178 echo "$as_me:$LINENO: result: no" >&5
15179echo "${ECHO_T}no" >&6
15180fi
15181
15182 DLLTOOL=$ac_ct_DLLTOOL
15183else
15184 DLLTOOL="$ac_cv_prog_DLLTOOL"
15185fi
15186
15187 ;;
15188 esac
15189fi
a848cd7e
SC
15190
15191echo "$as_me:$LINENO: checking if make is GNU make" >&5
15192echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15193if test "${wx_cv_prog_makeisgnu+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195else
15196
15197 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15198 egrep -s GNU > /dev/null); then
15199 wx_cv_prog_makeisgnu="yes"
15200 else
15201 wx_cv_prog_makeisgnu="no"
15202 fi
15203
15204fi
15205echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15206echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15207
15208if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15209 IF_GNU_MAKE=""
15210else
15211 IF_GNU_MAKE="#"
15212fi
15213
15214
15215
15216if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15217echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15218echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15219if test "${wx_cv_prog_makevpath+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15221else
15222
15223cat - << EOF > confMake
15224check : file
15225 cp \$? \$@
15226 cp \$? final_file
15227EOF
15228
15229if test ! -d sub ; then
15230 mkdir sub
15231fi
15232echo dummy > sub/file
15233${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15234RESULT=$?
15235rm -f sub/file check final_file confMake
15236rmdir sub
15237if test "$RESULT" = 0; then
15238 wx_cv_prog_makevpath="yes"
15239else
15240 wx_cv_prog_makevpath="no"
15241fi
15242
15243fi
15244echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15245echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15246
15247if test "x$wx_cv_prog_makevpath" != "xyes"; then
15248{ { echo "$as_me:$LINENO: error:
15249You need a make-utility that is able to use the variable
15250VPATH correctly.
15251If your version of make does not support VPATH correctly,
15252please install GNU-make (possibly as gmake), and start
15253configure with the following command:
15254export MAKE=gmake; ./configure for sh-type shells
15255setenv MAKE gmake; ./configure for csh-type shells
15256Also please do remember to use gmake in this case every time
15257you are trying to compile.
15258" >&5
15259echo "$as_me: error:
15260You need a make-utility that is able to use the variable
15261VPATH correctly.
15262If your version of make does not support VPATH correctly,
15263please install GNU-make (possibly as gmake), and start
15264configure with the following command:
15265export MAKE=gmake; ./configure for sh-type shells
15266setenv MAKE gmake; ./configure for csh-type shells
15267Also please do remember to use gmake in this case every time
15268you are trying to compile.
15269" >&2;}
15270 { (exit 1); exit 1; }; }
15271fi fi
15272echo "$as_me:$LINENO: checking whether ln -s works" >&5
15273echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15274LN_S=$as_ln_s
15275if test "$LN_S" = "ln -s"; then
15276 echo "$as_me:$LINENO: result: yes" >&5
15277echo "${ECHO_T}yes" >&6
15278else
15279 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15280echo "${ECHO_T}no, using $LN_S" >&6
15281fi
15282
15283
bcaab0f9 15284
a848cd7e 15285
2113bc77 15286if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15287 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15288fi
15289
4d7ec9f1
DE
15290case "${host}" in
15291 powerpc-*-darwin* )
15292 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15293echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15294 cat >conftest.$ac_ext <<_ACEOF
15295/* confdefs.h. */
15296_ACEOF
15297cat confdefs.h >>conftest.$ac_ext
15298cat >>conftest.$ac_ext <<_ACEOF
15299/* end confdefs.h. */
15300
15301int
15302main ()
15303{
15304#ifndef __POWERPC__
15305 choke me for lack of PowerPC
15306#endif
15307
15308 ;
15309 return 0;
15310}
15311_ACEOF
15312rm -f conftest.$ac_objext
15313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15314 (eval $ac_compile) 2>conftest.er1
15315 ac_status=$?
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
6954625c 15321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; } &&
15327 { ac_try='test -s conftest.$ac_objext'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 echo "$as_me:$LINENO: result: yes" >&5
15334echo "${ECHO_T}yes" >&6
15335else
15336 echo "$as_me: failed program was:" >&5
15337sed 's/^/| /' conftest.$ac_ext >&5
15338
15339echo "$as_me:$LINENO: result: no" >&5
15340echo "${ECHO_T}no" >&6
15341 cat >>confdefs.h <<\_ACEOF
15342#define __POWERPC__ 1
15343_ACEOF
15344
15345
15346fi
15347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15348 ;;
15349esac
15350
15351case "${host}" in
15352 *-*-darwin* )
4d7ec9f1
DE
15353 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15354echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15355 cat >conftest.$ac_ext <<_ACEOF
15356/* confdefs.h. */
15357_ACEOF
15358cat confdefs.h >>conftest.$ac_ext
15359cat >>conftest.$ac_ext <<_ACEOF
15360/* end confdefs.h. */
15361#include <CoreFoundation/CFBase.h>
15362
15363int
15364main ()
15365{
15366
15367 ;
15368 return 0;
15369}
15370_ACEOF
15371rm -f conftest.$ac_objext
15372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15373 (eval $ac_compile) 2>conftest.er1
15374 ac_status=$?
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
6954625c 15380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; } &&
15386 { ac_try='test -s conftest.$ac_objext'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15392 echo "$as_me:$LINENO: result: yes" >&5
15393echo "${ECHO_T}yes" >&6
15394else
15395 echo "$as_me: failed program was:" >&5
15396sed 's/^/| /' conftest.$ac_ext >&5
15397
15398echo "$as_me:$LINENO: result: no" >&5
15399echo "${ECHO_T}no" >&6
15400 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15401echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15402 cat >conftest.$ac_ext <<_ACEOF
15403/* confdefs.h. */
15404_ACEOF
15405cat confdefs.h >>conftest.$ac_ext
15406cat >>conftest.$ac_ext <<_ACEOF
15407/* end confdefs.h. */
15408#define __CF_USE_FRAMEWORK_INCLUDES__
15409#include <CoreFoundation/CFBase.h>
15410
15411int
15412main ()
15413{
15414
15415 ;
15416 return 0;
15417}
15418_ACEOF
15419rm -f conftest.$ac_objext
15420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15421 (eval $ac_compile) 2>conftest.er1
15422 ac_status=$?
15423 grep -v '^ *+' conftest.er1 >conftest.err
15424 rm -f conftest.er1
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
6954625c 15428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; } &&
15434 { ac_try='test -s conftest.$ac_objext'
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
15440 echo "$as_me:$LINENO: result: yes" >&5
15441echo "${ECHO_T}yes" >&6
c92ad099 15442 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15443else
15444 echo "$as_me: failed program was:" >&5
15445sed 's/^/| /' conftest.$ac_ext >&5
15446
15447{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15448See \`config.log' for more details." >&5
15449echo "$as_me: error: no. CoreFoundation not available.
15450See \`config.log' for more details." >&2;}
15451 { (exit 1); exit 1; }; }
15452
15453fi
15454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15455
15456
15457fi
15458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15459 ;;
15460esac
15461
a848cd7e
SC
15462case "${host}" in
15463 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15464 ac_ext=c
15465ac_cpp='$CPP $CPPFLAGS'
15466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15468ac_compiler_gnu=$ac_cv_c_compiler_gnu
15469
15470 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15471 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15472echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15473if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475else
15476 ac_check_lib_save_LIBS=$LIBS
15477LIBS="-lcExt $LIBS"
15478cat >conftest.$ac_ext <<_ACEOF
15479/* confdefs.h. */
15480_ACEOF
15481cat confdefs.h >>conftest.$ac_ext
15482cat >>conftest.$ac_ext <<_ACEOF
15483/* end confdefs.h. */
15484
15485/* Override any gcc2 internal prototype to avoid an error. */
15486#ifdef __cplusplus
15487extern "C"
15488#endif
15489/* We use char because int might match the return type of a gcc2
15490 builtin and then its argument prototype would still apply. */
15491char drand48 ();
15492int
15493main ()
15494{
15495drand48 ();
15496 ;
15497 return 0;
15498}
15499_ACEOF
15500rm -f conftest.$ac_objext conftest$ac_exeext
15501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15502 (eval $ac_link) 2>conftest.er1
a848cd7e 15503 ac_status=$?
ac1cb8d3
VS
15504 grep -v '^ *+' conftest.er1 >conftest.err
15505 rm -f conftest.er1
15506 cat conftest.err >&5
a848cd7e
SC
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } &&
6954625c 15509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
15515 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15521 ac_cv_lib_cExt_drand48=yes
15522else
15523 echo "$as_me: failed program was:" >&5
15524sed 's/^/| /' conftest.$ac_ext >&5
15525
15526ac_cv_lib_cExt_drand48=no
15527fi
ac1cb8d3
VS
15528rm -f conftest.err conftest.$ac_objext \
15529 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15530LIBS=$ac_check_lib_save_LIBS
15531fi
15532echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15533echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15534if test $ac_cv_lib_cExt_drand48 = yes; then
15535 LIBS="$LIBS -lcExt"
15536fi
15537
15538 else
15539 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15540 fi
69120ee4
VZ
15541 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15542echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15543if test "${wx_cv_gccversion+set}" = set; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15545else
15546
391a765e
VS
15547 if test "$cross_compiling" = yes; then
15548 wx_cv_gccversion="EMX2"
15549
15550else
15551 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15552/* confdefs.h. */
15553_ACEOF
15554cat confdefs.h >>conftest.$ac_ext
15555cat >>conftest.$ac_ext <<_ACEOF
15556/* end confdefs.h. */
15557
391a765e 15558 #include <stdio.h>
a848cd7e 15559
391a765e
VS
15560 int main()
15561 {
15562 FILE *f=fopen("conftestval", "w");
15563 if (!f) exit(1);
15564 fprintf(f,
a848cd7e 15565 #if (__GNUC__ < 3)
391a765e
VS
15566 "EMX2"
15567 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15568 "EMX3"
15569 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15570 "Innotek5"
15571 #else
15572 "Innotek6"
a848cd7e 15573 #endif
391a765e
VS
15574 );
15575 exit(0);
15576 }
a848cd7e 15577
a848cd7e 15578_ACEOF
391a765e
VS
15579rm -f conftest$ac_exeext
15580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15581 (eval $ac_link) 2>&5
ac1cb8d3
VS
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
391a765e 15590 wx_cv_gccversion=`cat conftestval`
a848cd7e 15591else
391a765e
VS
15592 echo "$as_me: program exited with status $ac_status" >&5
15593echo "$as_me: failed program was:" >&5
a848cd7e
SC
15594sed 's/^/| /' conftest.$ac_ext >&5
15595
391a765e
VS
15596( exit $ac_status )
15597wx_cv_gccversion="EMX2"
a848cd7e 15598fi
391a765e 15599rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15600fi
a848cd7e
SC
15601
15602fi
15603echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15604echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15605 ac_ext=cc
15606ac_cpp='$CXXCPP $CPPFLAGS'
15607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15610
391a765e 15611 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15612 LIBS="$LIBS -lstdcpp"
15613 LDFLAGS="$LDFLAGS -Zsysv-signals"
15614 else
391a765e 15615 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15616 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15617 LDFLAGS="$LDFLAGS -Zsysv-signals"
15618 else
15619 LIBS="$LIBS -lstdc++"
15620 fi
15621 fi
94acd38e
DE
15622 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15623 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15624echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15625 wxUSE_OMF=yes
2da0c077 15626 enable_omf=yes
a848cd7e
SC
15627 fi
15628 ;;
15629 *)
15630
95986553 15631 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15632echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15633if test "${ac_cv_string_strcasecmp+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15635else
15636
15637 cat >conftest.$ac_ext <<_ACEOF
15638/* confdefs.h. */
15639_ACEOF
15640cat confdefs.h >>conftest.$ac_ext
15641cat >>conftest.$ac_ext <<_ACEOF
15642/* end confdefs.h. */
15643
15644 #include <string.h>
15645
15646int
15647main ()
15648{
15649
15650 strcasecmp("foo", "bar");
15651
15652 ;
15653 return 0;
15654}
15655_ACEOF
15656rm -f conftest.$ac_objext conftest$ac_exeext
15657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15658 (eval $ac_link) 2>conftest.er1
a848cd7e 15659 ac_status=$?
ac1cb8d3
VS
15660 grep -v '^ *+' conftest.er1 >conftest.err
15661 rm -f conftest.er1
15662 cat conftest.err >&5
a848cd7e
SC
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
6954625c 15665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; } &&
15671 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15677 ac_cv_string_strcasecmp=yes
15678else
15679 echo "$as_me: failed program was:" >&5
15680sed 's/^/| /' conftest.$ac_ext >&5
15681
15682ac_cv_string_strcasecmp=no
15683
15684fi
ac1cb8d3
VS
15685rm -f conftest.err conftest.$ac_objext \
15686 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15687
15688fi
15689echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15690echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15691
15692 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15693 cat >>confdefs.h <<\_ACEOF
15694#define HAVE_STRCASECMP_IN_STRING_H 1
15695_ACEOF
15696
15697 else
15698 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15699echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15700if test "${ac_cv_strings_strcasecmp+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15702else
15703
15704 cat >conftest.$ac_ext <<_ACEOF
15705/* confdefs.h. */
15706_ACEOF
15707cat confdefs.h >>conftest.$ac_ext
15708cat >>conftest.$ac_ext <<_ACEOF
15709/* end confdefs.h. */
15710
15711 #include <strings.h>
15712
15713int
15714main ()
15715{
15716
15717 strcasecmp("foo", "bar");
15718
15719 ;
15720 return 0;
15721}
15722_ACEOF
15723rm -f conftest.$ac_objext conftest$ac_exeext
15724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15725 (eval $ac_link) 2>conftest.er1
a848cd7e 15726 ac_status=$?
ac1cb8d3
VS
15727 grep -v '^ *+' conftest.er1 >conftest.err
15728 rm -f conftest.er1
15729 cat conftest.err >&5
a848cd7e
SC
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
6954625c 15732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; } &&
15738 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_cv_strings_strcasecmp=yes
15745else
15746 echo "$as_me: failed program was:" >&5
15747sed 's/^/| /' conftest.$ac_ext >&5
15748
15749ac_cv_strings_strcasecmp=no
15750
15751fi
ac1cb8d3
VS
15752rm -f conftest.err conftest.$ac_objext \
15753 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15754
15755fi
15756echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15757echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15758
0c3c69fc 15759 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15760 cat >>confdefs.h <<\_ACEOF
15761#define HAVE_STRCASECMP_IN_STRINGS_H 1
15762_ACEOF
15763
15764 else
15765 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15766echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15767 { (exit 1); exit 1; }; }
15768 fi
15769 fi
15770
a848cd7e
SC
15771 ;;
15772esac
15773
15774
5d7b7554
VZ
15775ac_ext=cc
15776ac_cpp='$CXXCPP $CPPFLAGS'
15777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15780echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15781echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15782if test -z "$CXXCPP"; then
15783 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15785else
15786 # Double quotes because CXXCPP needs to be expanded
15787 for CXXCPP in "$CXX -E" "/lib/cpp"
15788 do
15789 ac_preproc_ok=false
15790for ac_cxx_preproc_warn_flag in '' yes
15791do
15792 # Use a header file that comes with gcc, so configuring glibc
15793 # with a fresh cross-compiler works.
15794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15795 # <limits.h> exists even on freestanding compilers.
15796 # On the NeXT, cc -E runs the code through the compiler's parser,
15797 # not just through cpp. "Syntax error" is here to catch this case.
15798 cat >conftest.$ac_ext <<_ACEOF
15799/* confdefs.h. */
15800_ACEOF
15801cat confdefs.h >>conftest.$ac_ext
15802cat >>conftest.$ac_ext <<_ACEOF
15803/* end confdefs.h. */
15804#ifdef __STDC__
15805# include <limits.h>
15806#else
15807# include <assert.h>
15808#endif
15809 Syntax error
15810_ACEOF
15811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15813 ac_status=$?
15814 grep -v '^ *+' conftest.er1 >conftest.err
15815 rm -f conftest.er1
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } >/dev/null; then
15819 if test -s conftest.err; then
15820 ac_cpp_err=$ac_cxx_preproc_warn_flag
15821 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15822 else
15823 ac_cpp_err=
15824 fi
15825else
15826 ac_cpp_err=yes
15827fi
15828if test -z "$ac_cpp_err"; then
15829 :
15830else
15831 echo "$as_me: failed program was:" >&5
15832sed 's/^/| /' conftest.$ac_ext >&5
15833
15834 # Broken: fails on valid input.
15835continue
15836fi
15837rm -f conftest.err conftest.$ac_ext
15838
15839 # OK, works on sane cases. Now check whether non-existent headers
15840 # can be detected and how.
15841 cat >conftest.$ac_ext <<_ACEOF
15842/* confdefs.h. */
15843_ACEOF
15844cat confdefs.h >>conftest.$ac_ext
15845cat >>conftest.$ac_ext <<_ACEOF
15846/* end confdefs.h. */
15847#include <ac_nonexistent.h>
15848_ACEOF
15849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15851 ac_status=$?
15852 grep -v '^ *+' conftest.er1 >conftest.err
15853 rm -f conftest.er1
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } >/dev/null; then
15857 if test -s conftest.err; then
15858 ac_cpp_err=$ac_cxx_preproc_warn_flag
15859 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15860 else
15861 ac_cpp_err=
15862 fi
15863else
15864 ac_cpp_err=yes
15865fi
15866if test -z "$ac_cpp_err"; then
15867 # Broken: success on invalid input.
15868continue
15869else
15870 echo "$as_me: failed program was:" >&5
15871sed 's/^/| /' conftest.$ac_ext >&5
15872
15873 # Passes both tests.
15874ac_preproc_ok=:
15875break
15876fi
15877rm -f conftest.err conftest.$ac_ext
15878
15879done
15880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15881rm -f conftest.err conftest.$ac_ext
15882if $ac_preproc_ok; then
15883 break
15884fi
15885
15886 done
15887 ac_cv_prog_CXXCPP=$CXXCPP
15888
15889fi
15890 CXXCPP=$ac_cv_prog_CXXCPP
15891else
15892 ac_cv_prog_CXXCPP=$CXXCPP
15893fi
15894echo "$as_me:$LINENO: result: $CXXCPP" >&5
15895echo "${ECHO_T}$CXXCPP" >&6
15896ac_preproc_ok=false
15897for ac_cxx_preproc_warn_flag in '' yes
15898do
15899 # Use a header file that comes with gcc, so configuring glibc
15900 # with a fresh cross-compiler works.
15901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15902 # <limits.h> exists even on freestanding compilers.
15903 # On the NeXT, cc -E runs the code through the compiler's parser,
15904 # not just through cpp. "Syntax error" is here to catch this case.
15905 cat >conftest.$ac_ext <<_ACEOF
15906/* confdefs.h. */
15907_ACEOF
15908cat confdefs.h >>conftest.$ac_ext
15909cat >>conftest.$ac_ext <<_ACEOF
15910/* end confdefs.h. */
15911#ifdef __STDC__
15912# include <limits.h>
15913#else
15914# include <assert.h>
15915#endif
15916 Syntax error
15917_ACEOF
15918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15920 ac_status=$?
15921 grep -v '^ *+' conftest.er1 >conftest.err
15922 rm -f conftest.er1
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } >/dev/null; then
15926 if test -s conftest.err; then
15927 ac_cpp_err=$ac_cxx_preproc_warn_flag
15928 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15929 else
15930 ac_cpp_err=
15931 fi
15932else
15933 ac_cpp_err=yes
15934fi
15935if test -z "$ac_cpp_err"; then
15936 :
15937else
15938 echo "$as_me: failed program was:" >&5
15939sed 's/^/| /' conftest.$ac_ext >&5
15940
15941 # Broken: fails on valid input.
15942continue
15943fi
15944rm -f conftest.err conftest.$ac_ext
15945
15946 # OK, works on sane cases. Now check whether non-existent headers
15947 # can be detected and how.
15948 cat >conftest.$ac_ext <<_ACEOF
15949/* confdefs.h. */
15950_ACEOF
15951cat confdefs.h >>conftest.$ac_ext
15952cat >>conftest.$ac_ext <<_ACEOF
15953/* end confdefs.h. */
15954#include <ac_nonexistent.h>
15955_ACEOF
15956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15958 ac_status=$?
15959 grep -v '^ *+' conftest.er1 >conftest.err
15960 rm -f conftest.er1
15961 cat conftest.err >&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } >/dev/null; then
15964 if test -s conftest.err; then
15965 ac_cpp_err=$ac_cxx_preproc_warn_flag
15966 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15967 else
15968 ac_cpp_err=
15969 fi
15970else
15971 ac_cpp_err=yes
15972fi
15973if test -z "$ac_cpp_err"; then
15974 # Broken: success on invalid input.
15975continue
15976else
15977 echo "$as_me: failed program was:" >&5
15978sed 's/^/| /' conftest.$ac_ext >&5
15979
15980 # Passes both tests.
15981ac_preproc_ok=:
15982break
15983fi
15984rm -f conftest.err conftest.$ac_ext
15985
15986done
15987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15988rm -f conftest.err conftest.$ac_ext
15989if $ac_preproc_ok; then
15990 :
15991else
15992 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15993See \`config.log' for more details." >&5
15994echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15995See \`config.log' for more details." >&2;}
15996 { (exit 1); exit 1; }; }
15997fi
15998
15999ac_ext=cc
16000ac_cpp='$CXXCPP $CPPFLAGS'
16001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16004
16005
a848cd7e
SC
16006echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16007echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16008if test "${ac_cv_header_stdc+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16010else
16011 cat >conftest.$ac_ext <<_ACEOF
16012/* confdefs.h. */
16013_ACEOF
16014cat confdefs.h >>conftest.$ac_ext
16015cat >>conftest.$ac_ext <<_ACEOF
16016/* end confdefs.h. */
16017#include <stdlib.h>
16018#include <stdarg.h>
16019#include <string.h>
16020#include <float.h>
16021
16022int
16023main ()
16024{
16025
16026 ;
16027 return 0;
16028}
16029_ACEOF
16030rm -f conftest.$ac_objext
16031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16032 (eval $ac_compile) 2>conftest.er1
a848cd7e 16033 ac_status=$?
ac1cb8d3
VS
16034 grep -v '^ *+' conftest.er1 >conftest.err
16035 rm -f conftest.er1
16036 cat conftest.err >&5
a848cd7e
SC
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } &&
6954625c 16039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; } &&
16045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16051 ac_cv_header_stdc=yes
16052else
16053 echo "$as_me: failed program was:" >&5
16054sed 's/^/| /' conftest.$ac_ext >&5
16055
16056ac_cv_header_stdc=no
16057fi
ac1cb8d3 16058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16059
16060if test $ac_cv_header_stdc = yes; then
16061 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16062 cat >conftest.$ac_ext <<_ACEOF
16063/* confdefs.h. */
16064_ACEOF
16065cat confdefs.h >>conftest.$ac_ext
16066cat >>conftest.$ac_ext <<_ACEOF
16067/* end confdefs.h. */
16068#include <string.h>
16069
16070_ACEOF
16071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16072 $EGREP "memchr" >/dev/null 2>&1; then
16073 :
16074else
16075 ac_cv_header_stdc=no
16076fi
16077rm -f conftest*
16078
16079fi
16080
16081if test $ac_cv_header_stdc = yes; then
16082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16083 cat >conftest.$ac_ext <<_ACEOF
16084/* confdefs.h. */
16085_ACEOF
16086cat confdefs.h >>conftest.$ac_ext
16087cat >>conftest.$ac_ext <<_ACEOF
16088/* end confdefs.h. */
16089#include <stdlib.h>
16090
16091_ACEOF
16092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16093 $EGREP "free" >/dev/null 2>&1; then
16094 :
16095else
16096 ac_cv_header_stdc=no
16097fi
16098rm -f conftest*
16099
16100fi
16101
16102if test $ac_cv_header_stdc = yes; then
16103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16104 if test "$cross_compiling" = yes; then
16105 :
16106else
16107 cat >conftest.$ac_ext <<_ACEOF
16108/* confdefs.h. */
16109_ACEOF
16110cat confdefs.h >>conftest.$ac_ext
16111cat >>conftest.$ac_ext <<_ACEOF
16112/* end confdefs.h. */
16113#include <ctype.h>
16114#if ((' ' & 0x0FF) == 0x020)
16115# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16116# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16117#else
16118# define ISLOWER(c) \
ac1cb8d3
VS
16119 (('a' <= (c) && (c) <= 'i') \
16120 || ('j' <= (c) && (c) <= 'r') \
16121 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16122# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16123#endif
16124
16125#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16126int
16127main ()
16128{
16129 int i;
16130 for (i = 0; i < 256; i++)
16131 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16132 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16133 exit(2);
16134 exit (0);
16135}
16136_ACEOF
16137rm -f conftest$ac_exeext
16138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16139 (eval $ac_link) 2>&5
16140 ac_status=$?
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; }; then
16148 :
16149else
16150 echo "$as_me: program exited with status $ac_status" >&5
16151echo "$as_me: failed program was:" >&5
16152sed 's/^/| /' conftest.$ac_ext >&5
16153
16154( exit $ac_status )
16155ac_cv_header_stdc=no
16156fi
ac1cb8d3 16157rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16158fi
16159fi
16160fi
16161echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16162echo "${ECHO_T}$ac_cv_header_stdc" >&6
16163if test $ac_cv_header_stdc = yes; then
16164
16165cat >>confdefs.h <<\_ACEOF
16166#define STDC_HEADERS 1
16167_ACEOF
16168
16169fi
16170
16171# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16182 inttypes.h stdint.h unistd.h
a848cd7e
SC
16183do
16184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16185echo "$as_me:$LINENO: checking for $ac_header" >&5
16186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16187if eval "test \"\${$as_ac_Header+set}\" = set"; then
16188 echo $ECHO_N "(cached) $ECHO_C" >&6
16189else
16190 cat >conftest.$ac_ext <<_ACEOF
16191/* confdefs.h. */
16192_ACEOF
16193cat confdefs.h >>conftest.$ac_ext
16194cat >>conftest.$ac_ext <<_ACEOF
16195/* end confdefs.h. */
16196$ac_includes_default
16197
16198#include <$ac_header>
16199_ACEOF
16200rm -f conftest.$ac_objext
16201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16202 (eval $ac_compile) 2>conftest.er1
a848cd7e 16203 ac_status=$?
ac1cb8d3
VS
16204 grep -v '^ *+' conftest.er1 >conftest.err
16205 rm -f conftest.er1
16206 cat conftest.err >&5
a848cd7e
SC
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } &&
6954625c 16209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; } &&
16215 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; }; then
16221 eval "$as_ac_Header=yes"
16222else
16223 echo "$as_me: failed program was:" >&5
16224sed 's/^/| /' conftest.$ac_ext >&5
16225
16226eval "$as_ac_Header=no"
16227fi
ac1cb8d3 16228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16229fi
16230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16232if test `eval echo '${'$as_ac_Header'}'` = yes; then
16233 cat >>confdefs.h <<_ACEOF
16234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16235_ACEOF
16236
16237fi
16238
16239done
16240
16241
16242
16243for ac_header in stdlib.h
16244do
16245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16246if eval "test \"\${$as_ac_Header+set}\" = set"; then
16247 echo "$as_me:$LINENO: checking for $ac_header" >&5
16248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16249if eval "test \"\${$as_ac_Header+set}\" = set"; then
16250 echo $ECHO_N "(cached) $ECHO_C" >&6
16251fi
16252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16254else
16255 # Is the header compilable?
16256echo "$as_me:$LINENO: checking $ac_header usability" >&5
16257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16258cat >conftest.$ac_ext <<_ACEOF
16259/* confdefs.h. */
16260_ACEOF
16261cat confdefs.h >>conftest.$ac_ext
16262cat >>conftest.$ac_ext <<_ACEOF
16263/* end confdefs.h. */
16264$ac_includes_default
16265#include <$ac_header>
16266_ACEOF
16267rm -f conftest.$ac_objext
16268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16269 (eval $ac_compile) 2>conftest.er1
a848cd7e 16270 ac_status=$?
ac1cb8d3
VS
16271 grep -v '^ *+' conftest.er1 >conftest.err
16272 rm -f conftest.er1
16273 cat conftest.err >&5
a848cd7e
SC
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } &&
6954625c 16276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 ac_header_compiler=yes
16289else
16290 echo "$as_me: failed program was:" >&5
16291sed 's/^/| /' conftest.$ac_ext >&5
16292
16293ac_header_compiler=no
16294fi
ac1cb8d3 16295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16296echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16297echo "${ECHO_T}$ac_header_compiler" >&6
16298
16299# Is the header present?
16300echo "$as_me:$LINENO: checking $ac_header presence" >&5
16301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16302cat >conftest.$ac_ext <<_ACEOF
16303/* confdefs.h. */
16304_ACEOF
16305cat confdefs.h >>conftest.$ac_ext
16306cat >>conftest.$ac_ext <<_ACEOF
16307/* end confdefs.h. */
16308#include <$ac_header>
16309_ACEOF
16310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16312 ac_status=$?
16313 grep -v '^ *+' conftest.er1 >conftest.err
16314 rm -f conftest.er1
16315 cat conftest.err >&5
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } >/dev/null; then
16318 if test -s conftest.err; then
5d7b7554
VZ
16319 ac_cpp_err=$ac_cxx_preproc_warn_flag
16320 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16321 else
16322 ac_cpp_err=
16323 fi
16324else
16325 ac_cpp_err=yes
16326fi
16327if test -z "$ac_cpp_err"; then
16328 ac_header_preproc=yes
16329else
16330 echo "$as_me: failed program was:" >&5
16331sed 's/^/| /' conftest.$ac_ext >&5
16332
16333 ac_header_preproc=no
16334fi
16335rm -f conftest.err conftest.$ac_ext
16336echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16337echo "${ECHO_T}$ac_header_preproc" >&6
16338
16339# So? What about this header?
5d7b7554 16340case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16341 yes:no: )
a848cd7e
SC
16342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16346 ac_header_preproc=yes
a848cd7e 16347 ;;
ac1cb8d3 16348 no:yes:* )
a848cd7e
SC
16349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16356echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16361 (
16362 cat <<\_ASBOX
ac1cb8d3
VS
16363## ----------------------------------------- ##
16364## Report this to wx-dev@lists.wxwidgets.org ##
16365## ----------------------------------------- ##
a848cd7e
SC
16366_ASBOX
16367 ) |
16368 sed "s/^/$as_me: WARNING: /" >&2
16369 ;;
16370esac
16371echo "$as_me:$LINENO: checking for $ac_header" >&5
16372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16373if eval "test \"\${$as_ac_Header+set}\" = set"; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16375else
ac1cb8d3 16376 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16377fi
16378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16380
16381fi
16382if test `eval echo '${'$as_ac_Header'}'` = yes; then
16383 cat >>confdefs.h <<_ACEOF
16384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16385_ACEOF
16386
16387fi
16388
16389done
16390
16391
16392for ac_header in malloc.h
16393do
16394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16395if eval "test \"\${$as_ac_Header+set}\" = set"; then
16396 echo "$as_me:$LINENO: checking for $ac_header" >&5
16397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16398if eval "test \"\${$as_ac_Header+set}\" = set"; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16400fi
16401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16403else
16404 # Is the header compilable?
16405echo "$as_me:$LINENO: checking $ac_header usability" >&5
16406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16407cat >conftest.$ac_ext <<_ACEOF
16408/* confdefs.h. */
16409_ACEOF
16410cat confdefs.h >>conftest.$ac_ext
16411cat >>conftest.$ac_ext <<_ACEOF
16412/* end confdefs.h. */
16413$ac_includes_default
16414#include <$ac_header>
16415_ACEOF
16416rm -f conftest.$ac_objext
16417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16418 (eval $ac_compile) 2>conftest.er1
a848cd7e 16419 ac_status=$?
ac1cb8d3
VS
16420 grep -v '^ *+' conftest.er1 >conftest.err
16421 rm -f conftest.er1
16422 cat conftest.err >&5
a848cd7e
SC
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } &&
6954625c 16425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427 (eval $ac_try) 2>&5
16428 ac_status=$?
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; } &&
16431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 ac_header_compiler=yes
16438else
16439 echo "$as_me: failed program was:" >&5
16440sed 's/^/| /' conftest.$ac_ext >&5
16441
16442ac_header_compiler=no
16443fi
ac1cb8d3 16444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16445echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16446echo "${ECHO_T}$ac_header_compiler" >&6
16447
16448# Is the header present?
16449echo "$as_me:$LINENO: checking $ac_header presence" >&5
16450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16451cat >conftest.$ac_ext <<_ACEOF
16452/* confdefs.h. */
16453_ACEOF
16454cat confdefs.h >>conftest.$ac_ext
16455cat >>conftest.$ac_ext <<_ACEOF
16456/* end confdefs.h. */
16457#include <$ac_header>
16458_ACEOF
16459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16461 ac_status=$?
16462 grep -v '^ *+' conftest.er1 >conftest.err
16463 rm -f conftest.er1
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } >/dev/null; then
16467 if test -s conftest.err; then
5d7b7554
VZ
16468 ac_cpp_err=$ac_cxx_preproc_warn_flag
16469 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16470 else
16471 ac_cpp_err=
16472 fi
16473else
16474 ac_cpp_err=yes
16475fi
16476if test -z "$ac_cpp_err"; then
16477 ac_header_preproc=yes
16478else
16479 echo "$as_me: failed program was:" >&5
16480sed 's/^/| /' conftest.$ac_ext >&5
16481
16482 ac_header_preproc=no
16483fi
16484rm -f conftest.err conftest.$ac_ext
16485echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16486echo "${ECHO_T}$ac_header_preproc" >&6
16487
16488# So? What about this header?
5d7b7554 16489case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16490 yes:no: )
a848cd7e
SC
16491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16494echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16495 ac_header_preproc=yes
a848cd7e 16496 ;;
ac1cb8d3 16497 no:yes:* )
a848cd7e
SC
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16499echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16501echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16503echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16505echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16509echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16510 (
16511 cat <<\_ASBOX
ac1cb8d3
VS
16512## ----------------------------------------- ##
16513## Report this to wx-dev@lists.wxwidgets.org ##
16514## ----------------------------------------- ##
a848cd7e
SC
16515_ASBOX
16516 ) |
16517 sed "s/^/$as_me: WARNING: /" >&2
16518 ;;
16519esac
16520echo "$as_me:$LINENO: checking for $ac_header" >&5
16521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16522if eval "test \"\${$as_ac_Header+set}\" = set"; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16524else
ac1cb8d3 16525 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16526fi
16527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16529
16530fi
16531if test `eval echo '${'$as_ac_Header'}'` = yes; then
16532 cat >>confdefs.h <<_ACEOF
16533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16534_ACEOF
16535
16536fi
16537
16538done
16539
16540
16541for ac_header in unistd.h
16542do
16543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16544if eval "test \"\${$as_ac_Header+set}\" = set"; then
16545 echo "$as_me:$LINENO: checking for $ac_header" >&5
16546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16547if eval "test \"\${$as_ac_Header+set}\" = set"; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16549fi
16550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16552else
16553 # Is the header compilable?
16554echo "$as_me:$LINENO: checking $ac_header usability" >&5
16555echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16556cat >conftest.$ac_ext <<_ACEOF
16557/* confdefs.h. */
16558_ACEOF
16559cat confdefs.h >>conftest.$ac_ext
16560cat >>conftest.$ac_ext <<_ACEOF
16561/* end confdefs.h. */
16562$ac_includes_default
16563#include <$ac_header>
16564_ACEOF
16565rm -f conftest.$ac_objext
16566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16567 (eval $ac_compile) 2>conftest.er1
a848cd7e 16568 ac_status=$?
ac1cb8d3
VS
16569 grep -v '^ *+' conftest.er1 >conftest.err
16570 rm -f conftest.er1
16571 cat conftest.err >&5
a848cd7e
SC
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
6954625c 16574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_header_compiler=yes
16587else
16588 echo "$as_me: failed program was:" >&5
16589sed 's/^/| /' conftest.$ac_ext >&5
16590
16591ac_header_compiler=no
16592fi
ac1cb8d3 16593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16594echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16595echo "${ECHO_T}$ac_header_compiler" >&6
16596
16597# Is the header present?
16598echo "$as_me:$LINENO: checking $ac_header presence" >&5
16599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16600cat >conftest.$ac_ext <<_ACEOF
16601/* confdefs.h. */
16602_ACEOF
16603cat confdefs.h >>conftest.$ac_ext
16604cat >>conftest.$ac_ext <<_ACEOF
16605/* end confdefs.h. */
16606#include <$ac_header>
16607_ACEOF
16608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16610 ac_status=$?
16611 grep -v '^ *+' conftest.er1 >conftest.err
16612 rm -f conftest.er1
16613 cat conftest.err >&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } >/dev/null; then
16616 if test -s conftest.err; then
5d7b7554
VZ
16617 ac_cpp_err=$ac_cxx_preproc_warn_flag
16618 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16619 else
16620 ac_cpp_err=
16621 fi
16622else
16623 ac_cpp_err=yes
16624fi
16625if test -z "$ac_cpp_err"; then
16626 ac_header_preproc=yes
16627else
16628 echo "$as_me: failed program was:" >&5
16629sed 's/^/| /' conftest.$ac_ext >&5
16630
16631 ac_header_preproc=no
16632fi
16633rm -f conftest.err conftest.$ac_ext
16634echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16635echo "${ECHO_T}$ac_header_preproc" >&6
16636
16637# So? What about this header?
5d7b7554 16638case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16639 yes:no: )
a848cd7e
SC
16640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16644 ac_header_preproc=yes
a848cd7e 16645 ;;
ac1cb8d3 16646 no:yes:* )
a848cd7e
SC
16647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16659 (
16660 cat <<\_ASBOX
ac1cb8d3
VS
16661## ----------------------------------------- ##
16662## Report this to wx-dev@lists.wxwidgets.org ##
16663## ----------------------------------------- ##
a848cd7e
SC
16664_ASBOX
16665 ) |
16666 sed "s/^/$as_me: WARNING: /" >&2
16667 ;;
16668esac
16669echo "$as_me:$LINENO: checking for $ac_header" >&5
16670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16671if eval "test \"\${$as_ac_Header+set}\" = set"; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16673else
ac1cb8d3 16674 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16675fi
16676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16677echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16678
16679fi
16680if test `eval echo '${'$as_ac_Header'}'` = yes; then
16681 cat >>confdefs.h <<_ACEOF
16682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16683_ACEOF
16684
16685fi
16686
16687done
16688
16689
16690for ac_header in wchar.h
16691do
16692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16693if eval "test \"\${$as_ac_Header+set}\" = set"; then
16694 echo "$as_me:$LINENO: checking for $ac_header" >&5
16695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16696if eval "test \"\${$as_ac_Header+set}\" = set"; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16698fi
16699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16701else
16702 # Is the header compilable?
16703echo "$as_me:$LINENO: checking $ac_header usability" >&5
16704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16705cat >conftest.$ac_ext <<_ACEOF
16706/* confdefs.h. */
16707_ACEOF
16708cat confdefs.h >>conftest.$ac_ext
16709cat >>conftest.$ac_ext <<_ACEOF
16710/* end confdefs.h. */
16711$ac_includes_default
16712#include <$ac_header>
16713_ACEOF
16714rm -f conftest.$ac_objext
16715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16716 (eval $ac_compile) 2>conftest.er1
a848cd7e 16717 ac_status=$?
ac1cb8d3
VS
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
16720 cat conftest.err >&5
a848cd7e
SC
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } &&
6954625c 16723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } &&
16729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 ac_header_compiler=yes
16736else
16737 echo "$as_me: failed program was:" >&5
16738sed 's/^/| /' conftest.$ac_ext >&5
16739
16740ac_header_compiler=no
16741fi
ac1cb8d3 16742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16743echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16744echo "${ECHO_T}$ac_header_compiler" >&6
16745
16746# Is the header present?
16747echo "$as_me:$LINENO: checking $ac_header presence" >&5
16748echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16749cat >conftest.$ac_ext <<_ACEOF
16750/* confdefs.h. */
16751_ACEOF
16752cat confdefs.h >>conftest.$ac_ext
16753cat >>conftest.$ac_ext <<_ACEOF
16754/* end confdefs.h. */
16755#include <$ac_header>
16756_ACEOF
16757if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16759 ac_status=$?
16760 grep -v '^ *+' conftest.er1 >conftest.err
16761 rm -f conftest.er1
16762 cat conftest.err >&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } >/dev/null; then
16765 if test -s conftest.err; then
5d7b7554
VZ
16766 ac_cpp_err=$ac_cxx_preproc_warn_flag
16767 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16768 else
16769 ac_cpp_err=
16770 fi
16771else
16772 ac_cpp_err=yes
16773fi
16774if test -z "$ac_cpp_err"; then
16775 ac_header_preproc=yes
16776else
16777 echo "$as_me: failed program was:" >&5
16778sed 's/^/| /' conftest.$ac_ext >&5
16779
16780 ac_header_preproc=no
16781fi
16782rm -f conftest.err conftest.$ac_ext
16783echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16784echo "${ECHO_T}$ac_header_preproc" >&6
16785
16786# So? What about this header?
5d7b7554 16787case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16788 yes:no: )
a848cd7e
SC
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16793 ac_header_preproc=yes
a848cd7e 16794 ;;
ac1cb8d3 16795 no:yes:* )
a848cd7e
SC
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16803echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16808 (
16809 cat <<\_ASBOX
ac1cb8d3
VS
16810## ----------------------------------------- ##
16811## Report this to wx-dev@lists.wxwidgets.org ##
16812## ----------------------------------------- ##
a848cd7e
SC
16813_ASBOX
16814 ) |
16815 sed "s/^/$as_me: WARNING: /" >&2
16816 ;;
16817esac
16818echo "$as_me:$LINENO: checking for $ac_header" >&5
16819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16820if eval "test \"\${$as_ac_Header+set}\" = set"; then
16821 echo $ECHO_N "(cached) $ECHO_C" >&6
16822else
ac1cb8d3 16823 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16824fi
16825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16827
16828fi
16829if test `eval echo '${'$as_ac_Header'}'` = yes; then
16830 cat >>confdefs.h <<_ACEOF
16831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16832_ACEOF
16833
16834fi
16835
16836done
16837
16838
16839if test "$ac_cv_header_wchar_h" != "yes"; then
16840
16841for ac_header in wcstr.h
16842do
16843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16844if eval "test \"\${$as_ac_Header+set}\" = set"; then
16845 echo "$as_me:$LINENO: checking for $ac_header" >&5
16846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16847if eval "test \"\${$as_ac_Header+set}\" = set"; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16849fi
16850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16852else
16853 # Is the header compilable?
16854echo "$as_me:$LINENO: checking $ac_header usability" >&5
16855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16856cat >conftest.$ac_ext <<_ACEOF
16857/* confdefs.h. */
16858_ACEOF
16859cat confdefs.h >>conftest.$ac_ext
16860cat >>conftest.$ac_ext <<_ACEOF
16861/* end confdefs.h. */
16862$ac_includes_default
16863#include <$ac_header>
16864_ACEOF
16865rm -f conftest.$ac_objext
16866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16867 (eval $ac_compile) 2>conftest.er1
a848cd7e 16868 ac_status=$?
ac1cb8d3
VS
16869 grep -v '^ *+' conftest.er1 >conftest.err
16870 rm -f conftest.er1
16871 cat conftest.err >&5
a848cd7e
SC
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
6954625c 16874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_header_compiler=yes
16887else
16888 echo "$as_me: failed program was:" >&5
16889sed 's/^/| /' conftest.$ac_ext >&5
16890
16891ac_header_compiler=no
16892fi
ac1cb8d3 16893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16894echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16895echo "${ECHO_T}$ac_header_compiler" >&6
16896
16897# Is the header present?
16898echo "$as_me:$LINENO: checking $ac_header presence" >&5
16899echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16900cat >conftest.$ac_ext <<_ACEOF
16901/* confdefs.h. */
16902_ACEOF
16903cat confdefs.h >>conftest.$ac_ext
16904cat >>conftest.$ac_ext <<_ACEOF
16905/* end confdefs.h. */
16906#include <$ac_header>
16907_ACEOF
16908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16910 ac_status=$?
16911 grep -v '^ *+' conftest.er1 >conftest.err
16912 rm -f conftest.er1
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } >/dev/null; then
16916 if test -s conftest.err; then
5d7b7554
VZ
16917 ac_cpp_err=$ac_cxx_preproc_warn_flag
16918 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16919 else
16920 ac_cpp_err=
16921 fi
16922else
16923 ac_cpp_err=yes
16924fi
16925if test -z "$ac_cpp_err"; then
16926 ac_header_preproc=yes
16927else
16928 echo "$as_me: failed program was:" >&5
16929sed 's/^/| /' conftest.$ac_ext >&5
16930
16931 ac_header_preproc=no
16932fi
16933rm -f conftest.err conftest.$ac_ext
16934echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16935echo "${ECHO_T}$ac_header_preproc" >&6
16936
16937# So? What about this header?
5d7b7554 16938case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16939 yes:no: )
a848cd7e
SC
16940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16941echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16943echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16944 ac_header_preproc=yes
a848cd7e 16945 ;;
ac1cb8d3 16946 no:yes:* )
a848cd7e
SC
16947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16948echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16950echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16952echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16954echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16956echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16958echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16959 (
16960 cat <<\_ASBOX
ac1cb8d3
VS
16961## ----------------------------------------- ##
16962## Report this to wx-dev@lists.wxwidgets.org ##
16963## ----------------------------------------- ##
a848cd7e
SC
16964_ASBOX
16965 ) |
16966 sed "s/^/$as_me: WARNING: /" >&2
16967 ;;
16968esac
16969echo "$as_me:$LINENO: checking for $ac_header" >&5
16970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16971if eval "test \"\${$as_ac_Header+set}\" = set"; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16973else
ac1cb8d3 16974 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16975fi
16976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16977echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16978
16979fi
16980if test `eval echo '${'$as_ac_Header'}'` = yes; then
16981 cat >>confdefs.h <<_ACEOF
16982#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16983_ACEOF
16984
16985fi
16986
16987done
16988
16989fi
16990
16991
16992for ac_header in fnmatch.h
16993do
16994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16995if eval "test \"\${$as_ac_Header+set}\" = set"; then
16996 echo "$as_me:$LINENO: checking for $ac_header" >&5
16997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16998if eval "test \"\${$as_ac_Header+set}\" = set"; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17000fi
17001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17003else
17004 # Is the header compilable?
17005echo "$as_me:$LINENO: checking $ac_header usability" >&5
17006echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17007cat >conftest.$ac_ext <<_ACEOF
17008/* confdefs.h. */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h. */
17013$ac_includes_default
17014#include <$ac_header>
17015_ACEOF
17016rm -f conftest.$ac_objext
17017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17018 (eval $ac_compile) 2>conftest.er1
a848cd7e 17019 ac_status=$?
ac1cb8d3
VS
17020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
a848cd7e
SC
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } &&
6954625c 17025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037 ac_header_compiler=yes
17038else
17039 echo "$as_me: failed program was:" >&5
17040sed 's/^/| /' conftest.$ac_ext >&5
17041
17042ac_header_compiler=no
17043fi
ac1cb8d3 17044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17045echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17046echo "${ECHO_T}$ac_header_compiler" >&6
17047
17048# Is the header present?
17049echo "$as_me:$LINENO: checking $ac_header presence" >&5
17050echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17051cat >conftest.$ac_ext <<_ACEOF
17052/* confdefs.h. */
17053_ACEOF
17054cat confdefs.h >>conftest.$ac_ext
17055cat >>conftest.$ac_ext <<_ACEOF
17056/* end confdefs.h. */
17057#include <$ac_header>
17058_ACEOF
17059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17061 ac_status=$?
17062 grep -v '^ *+' conftest.er1 >conftest.err
17063 rm -f conftest.er1
17064 cat conftest.err >&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } >/dev/null; then
17067 if test -s conftest.err; then
5d7b7554
VZ
17068 ac_cpp_err=$ac_cxx_preproc_warn_flag
17069 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17070 else
17071 ac_cpp_err=
17072 fi
17073else
17074 ac_cpp_err=yes
17075fi
17076if test -z "$ac_cpp_err"; then
17077 ac_header_preproc=yes
17078else
17079 echo "$as_me: failed program was:" >&5
17080sed 's/^/| /' conftest.$ac_ext >&5
17081
17082 ac_header_preproc=no
17083fi
17084rm -f conftest.err conftest.$ac_ext
17085echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17086echo "${ECHO_T}$ac_header_preproc" >&6
17087
17088# So? What about this header?
5d7b7554 17089case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17090 yes:no: )
a848cd7e
SC
17091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17092echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17094echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17095 ac_header_preproc=yes
a848cd7e 17096 ;;
ac1cb8d3 17097 no:yes:* )
a848cd7e
SC
17098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17099echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17101echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17103echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17105echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17107echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17109echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17110 (
17111 cat <<\_ASBOX
ac1cb8d3
VS
17112## ----------------------------------------- ##
17113## Report this to wx-dev@lists.wxwidgets.org ##
17114## ----------------------------------------- ##
a848cd7e
SC
17115_ASBOX
17116 ) |
17117 sed "s/^/$as_me: WARNING: /" >&2
17118 ;;
17119esac
17120echo "$as_me:$LINENO: checking for $ac_header" >&5
17121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17122if eval "test \"\${$as_ac_Header+set}\" = set"; then
17123 echo $ECHO_N "(cached) $ECHO_C" >&6
17124else
ac1cb8d3 17125 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17126fi
17127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17129
17130fi
17131if test `eval echo '${'$as_ac_Header'}'` = yes; then
17132 cat >>confdefs.h <<_ACEOF
17133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17134_ACEOF
17135
17136fi
17137
17138done
17139
17140
a848cd7e
SC
17141
17142for ac_header in langinfo.h
17143do
17144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17145if eval "test \"\${$as_ac_Header+set}\" = set"; then
17146 echo "$as_me:$LINENO: checking for $ac_header" >&5
17147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17148if eval "test \"\${$as_ac_Header+set}\" = set"; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150fi
17151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17153else
17154 # Is the header compilable?
17155echo "$as_me:$LINENO: checking $ac_header usability" >&5
17156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17157cat >conftest.$ac_ext <<_ACEOF
17158/* confdefs.h. */
17159_ACEOF
17160cat confdefs.h >>conftest.$ac_ext
17161cat >>conftest.$ac_ext <<_ACEOF
17162/* end confdefs.h. */
17163$ac_includes_default
17164#include <$ac_header>
17165_ACEOF
17166rm -f conftest.$ac_objext
17167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17168 (eval $ac_compile) 2>conftest.er1
a848cd7e 17169 ac_status=$?
ac1cb8d3
VS
17170 grep -v '^ *+' conftest.er1 >conftest.err
17171 rm -f conftest.er1
17172 cat conftest.err >&5
a848cd7e
SC
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } &&
6954625c 17175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177 (eval $ac_try) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; } &&
17181 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17183 (eval $ac_try) 2>&5
17184 ac_status=$?
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; }; then
17187 ac_header_compiler=yes
17188else
17189 echo "$as_me: failed program was:" >&5
17190sed 's/^/| /' conftest.$ac_ext >&5
17191
17192ac_header_compiler=no
17193fi
ac1cb8d3 17194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17195echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17196echo "${ECHO_T}$ac_header_compiler" >&6
17197
17198# Is the header present?
17199echo "$as_me:$LINENO: checking $ac_header presence" >&5
17200echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17201cat >conftest.$ac_ext <<_ACEOF
17202/* confdefs.h. */
17203_ACEOF
17204cat confdefs.h >>conftest.$ac_ext
17205cat >>conftest.$ac_ext <<_ACEOF
17206/* end confdefs.h. */
17207#include <$ac_header>
17208_ACEOF
17209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17211 ac_status=$?
17212 grep -v '^ *+' conftest.er1 >conftest.err
17213 rm -f conftest.er1
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } >/dev/null; then
17217 if test -s conftest.err; then
5d7b7554
VZ
17218 ac_cpp_err=$ac_cxx_preproc_warn_flag
17219 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17220 else
17221 ac_cpp_err=
17222 fi
17223else
17224 ac_cpp_err=yes
17225fi
17226if test -z "$ac_cpp_err"; then
17227 ac_header_preproc=yes
17228else
17229 echo "$as_me: failed program was:" >&5
17230sed 's/^/| /' conftest.$ac_ext >&5
17231
17232 ac_header_preproc=no
17233fi
17234rm -f conftest.err conftest.$ac_ext
17235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17236echo "${ECHO_T}$ac_header_preproc" >&6
17237
17238# So? What about this header?
5d7b7554 17239case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17240 yes:no: )
a848cd7e
SC
17241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17242echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17244echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17245 ac_header_preproc=yes
a848cd7e 17246 ;;
ac1cb8d3 17247 no:yes:* )
a848cd7e
SC
17248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17249echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17251echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17253echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17255echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17257echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17259echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17260 (
17261 cat <<\_ASBOX
ac1cb8d3
VS
17262## ----------------------------------------- ##
17263## Report this to wx-dev@lists.wxwidgets.org ##
17264## ----------------------------------------- ##
a848cd7e
SC
17265_ASBOX
17266 ) |
17267 sed "s/^/$as_me: WARNING: /" >&2
17268 ;;
17269esac
17270echo "$as_me:$LINENO: checking for $ac_header" >&5
17271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17272if eval "test \"\${$as_ac_Header+set}\" = set"; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17274else
ac1cb8d3 17275 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17276fi
17277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17279
17280fi
17281if test `eval echo '${'$as_ac_Header'}'` = yes; then
17282 cat >>confdefs.h <<_ACEOF
17283#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17284_ACEOF
17285
17286fi
17287
17288done
17289
17290
17291case "${host}" in
17292 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17293 if test $ac_cv_header_langinfo_h = "yes" \
17294 -a \( "$wx_cv_gccversion" = "EMX2" \
17295 -o "$wx_cv_gccversion" = "EMX3" \
17296 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17297 LIBS="$LIBS -lintl"
17298 fi
17299 ;;
17300esac
17301
a848cd7e
SC
17302
17303echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17304echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17305if test "${ac_cv_c_const+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17307else
17308 cat >conftest.$ac_ext <<_ACEOF
17309/* confdefs.h. */
17310_ACEOF
17311cat confdefs.h >>conftest.$ac_ext
17312cat >>conftest.$ac_ext <<_ACEOF
17313/* end confdefs.h. */
17314
17315int
17316main ()
17317{
17318/* FIXME: Include the comments suggested by Paul. */
17319#ifndef __cplusplus
17320 /* Ultrix mips cc rejects this. */
17321 typedef int charset[2];
17322 const charset x;
17323 /* SunOS 4.1.1 cc rejects this. */
17324 char const *const *ccp;
17325 char **p;
17326 /* NEC SVR4.0.2 mips cc rejects this. */
17327 struct point {int x, y;};
17328 static struct point const zero = {0,0};
17329 /* AIX XL C 1.02.0.0 rejects this.
17330 It does not let you subtract one const X* pointer from another in
17331 an arm of an if-expression whose if-part is not a constant
17332 expression */
17333 const char *g = "string";
17334 ccp = &g + (g ? g-g : 0);
17335 /* HPUX 7.0 cc rejects these. */
17336 ++ccp;
17337 p = (char**) ccp;
17338 ccp = (char const *const *) p;
17339 { /* SCO 3.2v4 cc rejects this. */
17340 char *t;
17341 char const *s = 0 ? (char *) 0 : (char const *) 0;
17342
17343 *t++ = 0;
17344 }
17345 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17346 int x[] = {25, 17};
17347 const int *foo = &x[0];
17348 ++foo;
17349 }
17350 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17351 typedef const int *iptr;
17352 iptr p = 0;
17353 ++p;
17354 }
17355 { /* AIX XL C 1.02.0.0 rejects this saying
17356 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17357 struct s { int j; const int *ap[3]; };
17358 struct s *b; b->j = 5;
17359 }
17360 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17361 const int foo = 10;
17362 }
17363#endif
17364
17365 ;
17366 return 0;
17367}
17368_ACEOF
17369rm -f conftest.$ac_objext
17370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17371 (eval $ac_compile) 2>conftest.er1
a848cd7e 17372 ac_status=$?
ac1cb8d3
VS
17373 grep -v '^ *+' conftest.er1 >conftest.err
17374 rm -f conftest.er1
17375 cat conftest.err >&5
a848cd7e
SC
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } &&
6954625c 17378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; } &&
17384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; }; then
17390 ac_cv_c_const=yes
17391else
17392 echo "$as_me: failed program was:" >&5
17393sed 's/^/| /' conftest.$ac_ext >&5
17394
17395ac_cv_c_const=no
17396fi
ac1cb8d3 17397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17398fi
17399echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17400echo "${ECHO_T}$ac_cv_c_const" >&6
17401if test $ac_cv_c_const = no; then
17402
17403cat >>confdefs.h <<\_ACEOF
17404#define const
17405_ACEOF
17406
17407fi
17408
17409echo "$as_me:$LINENO: checking for inline" >&5
17410echo $ECHO_N "checking for inline... $ECHO_C" >&6
17411if test "${ac_cv_c_inline+set}" = set; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17413else
17414 ac_cv_c_inline=no
17415for ac_kw in inline __inline__ __inline; do
17416 cat >conftest.$ac_ext <<_ACEOF
17417/* confdefs.h. */
17418_ACEOF
17419cat confdefs.h >>conftest.$ac_ext
17420cat >>conftest.$ac_ext <<_ACEOF
17421/* end confdefs.h. */
17422#ifndef __cplusplus
17423typedef int foo_t;
17424static $ac_kw foo_t static_foo () {return 0; }
17425$ac_kw foo_t foo () {return 0; }
17426#endif
17427
17428_ACEOF
17429rm -f conftest.$ac_objext
17430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17431 (eval $ac_compile) 2>conftest.er1
a848cd7e 17432 ac_status=$?
ac1cb8d3
VS
17433 grep -v '^ *+' conftest.er1 >conftest.err
17434 rm -f conftest.er1
17435 cat conftest.err >&5
a848cd7e
SC
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } &&
6954625c 17438 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440 (eval $ac_try) 2>&5
17441 ac_status=$?
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17447 ac_status=$?
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; }; then
17450 ac_cv_c_inline=$ac_kw; break
17451else
17452 echo "$as_me: failed program was:" >&5
17453sed 's/^/| /' conftest.$ac_ext >&5
17454
17455fi
ac1cb8d3 17456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17457done
17458
17459fi
17460echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17461echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17462
17463
a848cd7e
SC
17464case $ac_cv_c_inline in
17465 inline | yes) ;;
ac1cb8d3
VS
17466 *)
17467 case $ac_cv_c_inline in
17468 no) ac_val=;;
17469 *) ac_val=$ac_cv_c_inline;;
17470 esac
17471 cat >>confdefs.h <<_ACEOF
17472#ifndef __cplusplus
17473#define inline $ac_val
17474#endif
de59c161 17475_ACEOF
ac1cb8d3 17476 ;;
a848cd7e
SC
17477esac
17478
17479
17480echo "$as_me:$LINENO: checking for char" >&5
17481echo $ECHO_N "checking for char... $ECHO_C" >&6
17482if test "${ac_cv_type_char+set}" = set; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17484else
17485 cat >conftest.$ac_ext <<_ACEOF
17486/* confdefs.h. */
17487_ACEOF
17488cat confdefs.h >>conftest.$ac_ext
17489cat >>conftest.$ac_ext <<_ACEOF
17490/* end confdefs.h. */
17491$ac_includes_default
17492int
17493main ()
17494{
17495if ((char *) 0)
17496 return 0;
17497if (sizeof (char))
17498 return 0;
17499 ;
17500 return 0;
17501}
17502_ACEOF
17503rm -f conftest.$ac_objext
17504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17505 (eval $ac_compile) 2>conftest.er1
a848cd7e 17506 ac_status=$?
ac1cb8d3
VS
17507 grep -v '^ *+' conftest.er1 >conftest.err
17508 rm -f conftest.er1
17509 cat conftest.err >&5
a848cd7e
SC
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } &&
6954625c 17512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; } &&
17518 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17524 ac_cv_type_char=yes
17525else
17526 echo "$as_me: failed program was:" >&5
17527sed 's/^/| /' conftest.$ac_ext >&5
17528
17529ac_cv_type_char=no
17530fi
ac1cb8d3 17531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17532fi
17533echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17534echo "${ECHO_T}$ac_cv_type_char" >&6
17535
17536echo "$as_me:$LINENO: checking size of char" >&5
17537echo $ECHO_N "checking size of char... $ECHO_C" >&6
17538if test "${ac_cv_sizeof_char+set}" = set; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17540else
17541 if test "$ac_cv_type_char" = yes; then
17542 # The cast to unsigned long works around a bug in the HP C Compiler
17543 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17544 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17545 # This bug is HP SR number 8606223364.
17546 if test "$cross_compiling" = yes; then
17547 # Depending upon the size, compute the lo and hi bounds.
17548cat >conftest.$ac_ext <<_ACEOF
17549/* confdefs.h. */
17550_ACEOF
17551cat confdefs.h >>conftest.$ac_ext
17552cat >>conftest.$ac_ext <<_ACEOF
17553/* end confdefs.h. */
17554$ac_includes_default
17555int
17556main ()
17557{
17558static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17559test_array [0] = 0
17560
17561 ;
17562 return 0;
17563}
17564_ACEOF
17565rm -f conftest.$ac_objext
17566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17567 (eval $ac_compile) 2>conftest.er1
a848cd7e 17568 ac_status=$?
ac1cb8d3
VS
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
a848cd7e
SC
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
6954625c 17574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 ac_lo=0 ac_mid=0
17587 while :; do
17588 cat >conftest.$ac_ext <<_ACEOF
17589/* confdefs.h. */
17590_ACEOF
17591cat confdefs.h >>conftest.$ac_ext
17592cat >>conftest.$ac_ext <<_ACEOF
17593/* end confdefs.h. */
17594$ac_includes_default
17595int
17596main ()
17597{
17598static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17599test_array [0] = 0
17600
17601 ;
17602 return 0;
17603}
17604_ACEOF
17605rm -f conftest.$ac_objext
17606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17607 (eval $ac_compile) 2>conftest.er1
a848cd7e 17608 ac_status=$?
ac1cb8d3
VS
17609 grep -v '^ *+' conftest.er1 >conftest.err
17610 rm -f conftest.er1
17611 cat conftest.err >&5
a848cd7e
SC
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
6954625c 17614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616 (eval $ac_try) 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; } &&
17620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17623 ac_status=$?
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; }; then
17626 ac_hi=$ac_mid; break
17627else
17628 echo "$as_me: failed program was:" >&5
17629sed 's/^/| /' conftest.$ac_ext >&5
17630
17631ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17632 if test $ac_lo -le $ac_mid; then
17633 ac_lo= ac_hi=
17634 break
17635 fi
17636 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17637fi
ac1cb8d3 17638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17639 done
17640else
17641 echo "$as_me: failed program was:" >&5
17642sed 's/^/| /' conftest.$ac_ext >&5
17643
17644cat >conftest.$ac_ext <<_ACEOF
17645/* confdefs.h. */
17646_ACEOF
17647cat confdefs.h >>conftest.$ac_ext
17648cat >>conftest.$ac_ext <<_ACEOF
17649/* end confdefs.h. */
17650$ac_includes_default
17651int
17652main ()
17653{
17654static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17655test_array [0] = 0
17656
17657 ;
17658 return 0;
17659}
17660_ACEOF
17661rm -f conftest.$ac_objext
17662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17663 (eval $ac_compile) 2>conftest.er1
a848cd7e 17664 ac_status=$?
ac1cb8d3
VS
17665 grep -v '^ *+' conftest.er1 >conftest.err
17666 rm -f conftest.er1
17667 cat conftest.err >&5
a848cd7e
SC
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } &&
6954625c 17670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_hi=-1 ac_mid=-1
17683 while :; do
17684 cat >conftest.$ac_ext <<_ACEOF
17685/* confdefs.h. */
17686_ACEOF
17687cat confdefs.h >>conftest.$ac_ext
17688cat >>conftest.$ac_ext <<_ACEOF
17689/* end confdefs.h. */
17690$ac_includes_default
17691int
17692main ()
17693{
17694static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17695test_array [0] = 0
17696
17697 ;
17698 return 0;
17699}
17700_ACEOF
17701rm -f conftest.$ac_objext
17702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17703 (eval $ac_compile) 2>conftest.er1
a848cd7e 17704 ac_status=$?
ac1cb8d3
VS
17705 grep -v '^ *+' conftest.er1 >conftest.err
17706 rm -f conftest.er1
17707 cat conftest.err >&5
a848cd7e
SC
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); } &&
6954625c 17710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17713 ac_status=$?
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; } &&
17716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; }; then
17722 ac_lo=$ac_mid; break
17723else
17724 echo "$as_me: failed program was:" >&5
17725sed 's/^/| /' conftest.$ac_ext >&5
17726
17727ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17728 if test $ac_mid -le $ac_hi; then
17729 ac_lo= ac_hi=
17730 break
17731 fi
17732 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17733fi
ac1cb8d3 17734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17735 done
17736else
17737 echo "$as_me: failed program was:" >&5
17738sed 's/^/| /' conftest.$ac_ext >&5
17739
17740ac_lo= ac_hi=
17741fi
ac1cb8d3 17742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17743fi
ac1cb8d3 17744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17745# Binary search between lo and hi bounds.
17746while test "x$ac_lo" != "x$ac_hi"; do
17747 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17748 cat >conftest.$ac_ext <<_ACEOF
17749/* confdefs.h. */
17750_ACEOF
17751cat confdefs.h >>conftest.$ac_ext
17752cat >>conftest.$ac_ext <<_ACEOF
17753/* end confdefs.h. */
17754$ac_includes_default
17755int
17756main ()
17757{
17758static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17759test_array [0] = 0
17760
17761 ;
17762 return 0;
17763}
17764_ACEOF
17765rm -f conftest.$ac_objext
17766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17767 (eval $ac_compile) 2>conftest.er1
a848cd7e 17768 ac_status=$?
ac1cb8d3
VS
17769 grep -v '^ *+' conftest.er1 >conftest.err
17770 rm -f conftest.er1
17771 cat conftest.err >&5
a848cd7e
SC
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
6954625c 17774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 ac_hi=$ac_mid
17787else
17788 echo "$as_me: failed program was:" >&5
17789sed 's/^/| /' conftest.$ac_ext >&5
17790
17791ac_lo=`expr '(' $ac_mid ')' + 1`
17792fi
ac1cb8d3 17793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17794done
17795case $ac_lo in
17796?*) ac_cv_sizeof_char=$ac_lo;;
17797'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17798See \`config.log' for more details." >&5
17799echo "$as_me: error: cannot compute sizeof (char), 77
17800See \`config.log' for more details." >&2;}
17801 { (exit 1); exit 1; }; } ;;
17802esac
17803else
17804 if test "$cross_compiling" = yes; then
6954625c
VZ
17805 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17806echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17807 { (exit 1); exit 1; }; }
17808else
17809 cat >conftest.$ac_ext <<_ACEOF
17810/* confdefs.h. */
17811_ACEOF
17812cat confdefs.h >>conftest.$ac_ext
17813cat >>conftest.$ac_ext <<_ACEOF
17814/* end confdefs.h. */
17815$ac_includes_default
17816long longval () { return (long) (sizeof (char)); }
17817unsigned long ulongval () { return (long) (sizeof (char)); }
17818#include <stdio.h>
17819#include <stdlib.h>
17820int
17821main ()
17822{
17823
17824 FILE *f = fopen ("conftest.val", "w");
17825 if (! f)
17826 exit (1);
17827 if (((long) (sizeof (char))) < 0)
17828 {
17829 long i = longval ();
17830 if (i != ((long) (sizeof (char))))
17831 exit (1);
17832 fprintf (f, "%ld\n", i);
17833 }
17834 else
17835 {
17836 unsigned long i = ulongval ();
17837 if (i != ((long) (sizeof (char))))
17838 exit (1);
17839 fprintf (f, "%lu\n", i);
17840 }
17841 exit (ferror (f) || fclose (f) != 0);
17842
17843 ;
17844 return 0;
17845}
17846_ACEOF
17847rm -f conftest$ac_exeext
17848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17849 (eval $ac_link) 2>&5
17850 ac_status=$?
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 ac_cv_sizeof_char=`cat conftest.val`
17859else
17860 echo "$as_me: program exited with status $ac_status" >&5
17861echo "$as_me: failed program was:" >&5
17862sed 's/^/| /' conftest.$ac_ext >&5
17863
17864( exit $ac_status )
17865{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17866See \`config.log' for more details." >&5
17867echo "$as_me: error: cannot compute sizeof (char), 77
17868See \`config.log' for more details." >&2;}
17869 { (exit 1); exit 1; }; }
17870fi
ac1cb8d3 17871rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17872fi
17873fi
17874rm -f conftest.val
17875else
17876 ac_cv_sizeof_char=0
17877fi
17878fi
17879echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17880echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17881cat >>confdefs.h <<_ACEOF
17882#define SIZEOF_CHAR $ac_cv_sizeof_char
17883_ACEOF
17884
17885
17886echo "$as_me:$LINENO: checking for short" >&5
17887echo $ECHO_N "checking for short... $ECHO_C" >&6
17888if test "${ac_cv_type_short+set}" = set; then
17889 echo $ECHO_N "(cached) $ECHO_C" >&6
17890else
17891 cat >conftest.$ac_ext <<_ACEOF
17892/* confdefs.h. */
17893_ACEOF
17894cat confdefs.h >>conftest.$ac_ext
17895cat >>conftest.$ac_ext <<_ACEOF
17896/* end confdefs.h. */
17897$ac_includes_default
17898int
17899main ()
17900{
17901if ((short *) 0)
17902 return 0;
17903if (sizeof (short))
17904 return 0;
17905 ;
17906 return 0;
17907}
17908_ACEOF
17909rm -f conftest.$ac_objext
17910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17911 (eval $ac_compile) 2>conftest.er1
a848cd7e 17912 ac_status=$?
ac1cb8d3
VS
17913 grep -v '^ *+' conftest.er1 >conftest.err
17914 rm -f conftest.er1
17915 cat conftest.err >&5
a848cd7e
SC
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } &&
6954625c 17918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; } &&
17924 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930 ac_cv_type_short=yes
17931else
17932 echo "$as_me: failed program was:" >&5
17933sed 's/^/| /' conftest.$ac_ext >&5
17934
17935ac_cv_type_short=no
17936fi
ac1cb8d3 17937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17938fi
17939echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17940echo "${ECHO_T}$ac_cv_type_short" >&6
17941
17942echo "$as_me:$LINENO: checking size of short" >&5
17943echo $ECHO_N "checking size of short... $ECHO_C" >&6
17944if test "${ac_cv_sizeof_short+set}" = set; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17946else
17947 if test "$ac_cv_type_short" = yes; then
17948 # The cast to unsigned long works around a bug in the HP C Compiler
17949 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17950 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17951 # This bug is HP SR number 8606223364.
17952 if test "$cross_compiling" = yes; then
17953 # Depending upon the size, compute the lo and hi bounds.
17954cat >conftest.$ac_ext <<_ACEOF
17955/* confdefs.h. */
17956_ACEOF
17957cat confdefs.h >>conftest.$ac_ext
17958cat >>conftest.$ac_ext <<_ACEOF
17959/* end confdefs.h. */
17960$ac_includes_default
17961int
17962main ()
17963{
17964static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17965test_array [0] = 0
17966
17967 ;
17968 return 0;
17969}
17970_ACEOF
17971rm -f conftest.$ac_objext
17972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17973 (eval $ac_compile) 2>conftest.er1
a848cd7e 17974 ac_status=$?
ac1cb8d3
VS
17975 grep -v '^ *+' conftest.er1 >conftest.err
17976 rm -f conftest.er1
17977 cat conftest.err >&5
a848cd7e
SC
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
6954625c 17980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17983 ac_status=$?
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; } &&
17986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988 (eval $ac_try) 2>&5
17989 ac_status=$?
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; }; then
17992 ac_lo=0 ac_mid=0
17993 while :; do
17994 cat >conftest.$ac_ext <<_ACEOF
17995/* confdefs.h. */
17996_ACEOF
17997cat confdefs.h >>conftest.$ac_ext
17998cat >>conftest.$ac_ext <<_ACEOF
17999/* end confdefs.h. */
18000$ac_includes_default
18001int
18002main ()
18003{
18004static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18005test_array [0] = 0
18006
18007 ;
18008 return 0;
18009}
18010_ACEOF
18011rm -f conftest.$ac_objext
18012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18013 (eval $ac_compile) 2>conftest.er1
a848cd7e 18014 ac_status=$?
ac1cb8d3
VS
18015 grep -v '^ *+' conftest.er1 >conftest.err
18016 rm -f conftest.er1
18017 cat conftest.err >&5
a848cd7e
SC
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
6954625c 18020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; } &&
18026 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18029 ac_status=$?
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; }; then
18032 ac_hi=$ac_mid; break
18033else
18034 echo "$as_me: failed program was:" >&5
18035sed 's/^/| /' conftest.$ac_ext >&5
18036
18037ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18038 if test $ac_lo -le $ac_mid; then
18039 ac_lo= ac_hi=
18040 break
18041 fi
18042 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18043fi
ac1cb8d3 18044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18045 done
18046else
18047 echo "$as_me: failed program was:" >&5
18048sed 's/^/| /' conftest.$ac_ext >&5
18049
18050cat >conftest.$ac_ext <<_ACEOF
18051/* confdefs.h. */
18052_ACEOF
18053cat confdefs.h >>conftest.$ac_ext
18054cat >>conftest.$ac_ext <<_ACEOF
18055/* end confdefs.h. */
18056$ac_includes_default
18057int
18058main ()
18059{
18060static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18061test_array [0] = 0
18062
18063 ;
18064 return 0;
18065}
18066_ACEOF
18067rm -f conftest.$ac_objext
18068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18069 (eval $ac_compile) 2>conftest.er1
a848cd7e 18070 ac_status=$?
ac1cb8d3
VS
18071 grep -v '^ *+' conftest.er1 >conftest.err
18072 rm -f conftest.er1
18073 cat conftest.err >&5
a848cd7e
SC
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } &&
6954625c 18076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18079 ac_status=$?
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; } &&
18082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18085 ac_status=$?
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; }; then
18088 ac_hi=-1 ac_mid=-1
18089 while :; do
18090 cat >conftest.$ac_ext <<_ACEOF
18091/* confdefs.h. */
18092_ACEOF
18093cat confdefs.h >>conftest.$ac_ext
18094cat >>conftest.$ac_ext <<_ACEOF
18095/* end confdefs.h. */
18096$ac_includes_default
18097int
18098main ()
18099{
18100static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18101test_array [0] = 0
18102
18103 ;
18104 return 0;
18105}
18106_ACEOF
18107rm -f conftest.$ac_objext
18108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18109 (eval $ac_compile) 2>conftest.er1
a848cd7e 18110 ac_status=$?
ac1cb8d3
VS
18111 grep -v '^ *+' conftest.er1 >conftest.err
18112 rm -f conftest.er1
18113 cat conftest.err >&5
a848cd7e
SC
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } &&
6954625c 18116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; } &&
18122 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_lo=$ac_mid; break
18129else
18130 echo "$as_me: failed program was:" >&5
18131sed 's/^/| /' conftest.$ac_ext >&5
18132
18133ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18134 if test $ac_mid -le $ac_hi; then
18135 ac_lo= ac_hi=
18136 break
18137 fi
18138 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18139fi
ac1cb8d3 18140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18141 done
18142else
18143 echo "$as_me: failed program was:" >&5
18144sed 's/^/| /' conftest.$ac_ext >&5
18145
18146ac_lo= ac_hi=
18147fi
ac1cb8d3 18148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18149fi
ac1cb8d3 18150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18151# Binary search between lo and hi bounds.
18152while test "x$ac_lo" != "x$ac_hi"; do
18153 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18154 cat >conftest.$ac_ext <<_ACEOF
18155/* confdefs.h. */
18156_ACEOF
18157cat confdefs.h >>conftest.$ac_ext
18158cat >>conftest.$ac_ext <<_ACEOF
18159/* end confdefs.h. */
18160$ac_includes_default
18161int
18162main ()
18163{
18164static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18165test_array [0] = 0
18166
18167 ;
18168 return 0;
18169}
18170_ACEOF
18171rm -f conftest.$ac_objext
18172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18173 (eval $ac_compile) 2>conftest.er1
a848cd7e 18174 ac_status=$?
ac1cb8d3
VS
18175 grep -v '^ *+' conftest.er1 >conftest.err
18176 rm -f conftest.er1
18177 cat conftest.err >&5
a848cd7e
SC
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } &&
6954625c 18180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182 (eval $ac_try) 2>&5
18183 ac_status=$?
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18192 ac_hi=$ac_mid
18193else
18194 echo "$as_me: failed program was:" >&5
18195sed 's/^/| /' conftest.$ac_ext >&5
18196
18197ac_lo=`expr '(' $ac_mid ')' + 1`
18198fi
ac1cb8d3 18199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18200done
18201case $ac_lo in
18202?*) ac_cv_sizeof_short=$ac_lo;;
18203'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18204See \`config.log' for more details." >&5
18205echo "$as_me: error: cannot compute sizeof (short), 77
18206See \`config.log' for more details." >&2;}
18207 { (exit 1); exit 1; }; } ;;
18208esac
18209else
18210 if test "$cross_compiling" = yes; then
6954625c
VZ
18211 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18212echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18213 { (exit 1); exit 1; }; }
18214else
18215 cat >conftest.$ac_ext <<_ACEOF
18216/* confdefs.h. */
18217_ACEOF
18218cat confdefs.h >>conftest.$ac_ext
18219cat >>conftest.$ac_ext <<_ACEOF
18220/* end confdefs.h. */
18221$ac_includes_default
18222long longval () { return (long) (sizeof (short)); }
18223unsigned long ulongval () { return (long) (sizeof (short)); }
18224#include <stdio.h>
18225#include <stdlib.h>
18226int
18227main ()
18228{
18229
18230 FILE *f = fopen ("conftest.val", "w");
18231 if (! f)
18232 exit (1);
18233 if (((long) (sizeof (short))) < 0)
18234 {
18235 long i = longval ();
18236 if (i != ((long) (sizeof (short))))
18237 exit (1);
18238 fprintf (f, "%ld\n", i);
18239 }
18240 else
18241 {
18242 unsigned long i = ulongval ();
18243 if (i != ((long) (sizeof (short))))
18244 exit (1);
18245 fprintf (f, "%lu\n", i);
18246 }
18247 exit (ferror (f) || fclose (f) != 0);
18248
18249 ;
18250 return 0;
18251}
18252_ACEOF
18253rm -f conftest$ac_exeext
18254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18255 (eval $ac_link) 2>&5
18256 ac_status=$?
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 ac_cv_sizeof_short=`cat conftest.val`
18265else
18266 echo "$as_me: program exited with status $ac_status" >&5
18267echo "$as_me: failed program was:" >&5
18268sed 's/^/| /' conftest.$ac_ext >&5
18269
18270( exit $ac_status )
18271{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18272See \`config.log' for more details." >&5
18273echo "$as_me: error: cannot compute sizeof (short), 77
18274See \`config.log' for more details." >&2;}
18275 { (exit 1); exit 1; }; }
18276fi
ac1cb8d3 18277rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18278fi
18279fi
18280rm -f conftest.val
18281else
18282 ac_cv_sizeof_short=0
18283fi
18284fi
18285echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18286echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18287cat >>confdefs.h <<_ACEOF
18288#define SIZEOF_SHORT $ac_cv_sizeof_short
18289_ACEOF
18290
18291
18292echo "$as_me:$LINENO: checking for void *" >&5
18293echo $ECHO_N "checking for void *... $ECHO_C" >&6
18294if test "${ac_cv_type_void_p+set}" = set; then
18295 echo $ECHO_N "(cached) $ECHO_C" >&6
18296else
18297 cat >conftest.$ac_ext <<_ACEOF
18298/* confdefs.h. */
18299_ACEOF
18300cat confdefs.h >>conftest.$ac_ext
18301cat >>conftest.$ac_ext <<_ACEOF
18302/* end confdefs.h. */
18303$ac_includes_default
18304int
18305main ()
18306{
18307if ((void * *) 0)
18308 return 0;
18309if (sizeof (void *))
18310 return 0;
18311 ;
18312 return 0;
18313}
18314_ACEOF
18315rm -f conftest.$ac_objext
18316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18317 (eval $ac_compile) 2>conftest.er1
a848cd7e 18318 ac_status=$?
ac1cb8d3
VS
18319 grep -v '^ *+' conftest.er1 >conftest.err
18320 rm -f conftest.er1
18321 cat conftest.err >&5
a848cd7e
SC
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } &&
6954625c 18324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; } &&
18330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18336 ac_cv_type_void_p=yes
18337else
18338 echo "$as_me: failed program was:" >&5
18339sed 's/^/| /' conftest.$ac_ext >&5
18340
18341ac_cv_type_void_p=no
18342fi
ac1cb8d3 18343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18344fi
18345echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18346echo "${ECHO_T}$ac_cv_type_void_p" >&6
18347
18348echo "$as_me:$LINENO: checking size of void *" >&5
18349echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18350if test "${ac_cv_sizeof_void_p+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18352else
18353 if test "$ac_cv_type_void_p" = yes; then
18354 # The cast to unsigned long works around a bug in the HP C Compiler
18355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18357 # This bug is HP SR number 8606223364.
18358 if test "$cross_compiling" = yes; then
18359 # Depending upon the size, compute the lo and hi bounds.
18360cat >conftest.$ac_ext <<_ACEOF
18361/* confdefs.h. */
18362_ACEOF
18363cat confdefs.h >>conftest.$ac_ext
18364cat >>conftest.$ac_ext <<_ACEOF
18365/* end confdefs.h. */
18366$ac_includes_default
18367int
18368main ()
18369{
18370static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18371test_array [0] = 0
18372
18373 ;
18374 return 0;
18375}
18376_ACEOF
18377rm -f conftest.$ac_objext
18378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18379 (eval $ac_compile) 2>conftest.er1
a848cd7e 18380 ac_status=$?
ac1cb8d3
VS
18381 grep -v '^ *+' conftest.er1 >conftest.err
18382 rm -f conftest.er1
18383 cat conftest.err >&5
a848cd7e
SC
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } &&
6954625c 18386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; } &&
18392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 ac_lo=0 ac_mid=0
18399 while :; do
18400 cat >conftest.$ac_ext <<_ACEOF
18401/* confdefs.h. */
18402_ACEOF
18403cat confdefs.h >>conftest.$ac_ext
18404cat >>conftest.$ac_ext <<_ACEOF
18405/* end confdefs.h. */
18406$ac_includes_default
18407int
18408main ()
18409{
18410static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18411test_array [0] = 0
18412
18413 ;
18414 return 0;
18415}
18416_ACEOF
18417rm -f conftest.$ac_objext
18418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18419 (eval $ac_compile) 2>conftest.er1
a848cd7e 18420 ac_status=$?
ac1cb8d3
VS
18421 grep -v '^ *+' conftest.er1 >conftest.err
18422 rm -f conftest.er1
18423 cat conftest.err >&5
a848cd7e
SC
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); } &&
6954625c 18426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
18438 ac_hi=$ac_mid; break
18439else
18440 echo "$as_me: failed program was:" >&5
18441sed 's/^/| /' conftest.$ac_ext >&5
18442
18443ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18444 if test $ac_lo -le $ac_mid; then
18445 ac_lo= ac_hi=
18446 break
18447 fi
18448 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18449fi
ac1cb8d3 18450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18451 done
18452else
18453 echo "$as_me: failed program was:" >&5
18454sed 's/^/| /' conftest.$ac_ext >&5
18455
18456cat >conftest.$ac_ext <<_ACEOF
18457/* confdefs.h. */
18458_ACEOF
18459cat confdefs.h >>conftest.$ac_ext
18460cat >>conftest.$ac_ext <<_ACEOF
18461/* end confdefs.h. */
18462$ac_includes_default
18463int
18464main ()
18465{
18466static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18467test_array [0] = 0
18468
18469 ;
18470 return 0;
18471}
18472_ACEOF
18473rm -f conftest.$ac_objext
18474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18475 (eval $ac_compile) 2>conftest.er1
a848cd7e 18476 ac_status=$?
ac1cb8d3
VS
18477 grep -v '^ *+' conftest.er1 >conftest.err
18478 rm -f conftest.er1
18479 cat conftest.err >&5
a848cd7e
SC
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); } &&
6954625c 18482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; } &&
18488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490 (eval $ac_try) 2>&5
18491 ac_status=$?
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; }; then
18494 ac_hi=-1 ac_mid=-1
18495 while :; do
18496 cat >conftest.$ac_ext <<_ACEOF
18497/* confdefs.h. */
18498_ACEOF
18499cat confdefs.h >>conftest.$ac_ext
18500cat >>conftest.$ac_ext <<_ACEOF
18501/* end confdefs.h. */
18502$ac_includes_default
18503int
18504main ()
18505{
18506static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18507test_array [0] = 0
18508
18509 ;
18510 return 0;
18511}
18512_ACEOF
18513rm -f conftest.$ac_objext
18514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18515 (eval $ac_compile) 2>conftest.er1
a848cd7e 18516 ac_status=$?
ac1cb8d3
VS
18517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
a848cd7e
SC
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
6954625c 18522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; }; then
18534 ac_lo=$ac_mid; break
18535else
18536 echo "$as_me: failed program was:" >&5
18537sed 's/^/| /' conftest.$ac_ext >&5
18538
18539ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18540 if test $ac_mid -le $ac_hi; then
18541 ac_lo= ac_hi=
18542 break
18543 fi
18544 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18545fi
ac1cb8d3 18546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18547 done
18548else
18549 echo "$as_me: failed program was:" >&5
18550sed 's/^/| /' conftest.$ac_ext >&5
18551
18552ac_lo= ac_hi=
18553fi
ac1cb8d3 18554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18555fi
ac1cb8d3 18556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18557# Binary search between lo and hi bounds.
18558while test "x$ac_lo" != "x$ac_hi"; do
18559 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18560 cat >conftest.$ac_ext <<_ACEOF
18561/* confdefs.h. */
18562_ACEOF
18563cat confdefs.h >>conftest.$ac_ext
18564cat >>conftest.$ac_ext <<_ACEOF
18565/* end confdefs.h. */
18566$ac_includes_default
18567int
18568main ()
18569{
18570static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18571test_array [0] = 0
18572
18573 ;
18574 return 0;
18575}
18576_ACEOF
18577rm -f conftest.$ac_objext
18578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18579 (eval $ac_compile) 2>conftest.er1
a848cd7e 18580 ac_status=$?
ac1cb8d3
VS
18581 grep -v '^ *+' conftest.er1 >conftest.err
18582 rm -f conftest.er1
18583 cat conftest.err >&5
a848cd7e
SC
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); } &&
6954625c 18586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588 (eval $ac_try) 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; } &&
18592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594 (eval $ac_try) 2>&5
18595 ac_status=$?
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; }; then
18598 ac_hi=$ac_mid
18599else
18600 echo "$as_me: failed program was:" >&5
18601sed 's/^/| /' conftest.$ac_ext >&5
18602
18603ac_lo=`expr '(' $ac_mid ')' + 1`
18604fi
ac1cb8d3 18605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18606done
18607case $ac_lo in
18608?*) ac_cv_sizeof_void_p=$ac_lo;;
18609'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18610See \`config.log' for more details." >&5
18611echo "$as_me: error: cannot compute sizeof (void *), 77
18612See \`config.log' for more details." >&2;}
18613 { (exit 1); exit 1; }; } ;;
18614esac
18615else
18616 if test "$cross_compiling" = yes; then
6954625c
VZ
18617 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18618echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18619 { (exit 1); exit 1; }; }
18620else
18621 cat >conftest.$ac_ext <<_ACEOF
18622/* confdefs.h. */
18623_ACEOF
18624cat confdefs.h >>conftest.$ac_ext
18625cat >>conftest.$ac_ext <<_ACEOF
18626/* end confdefs.h. */
18627$ac_includes_default
18628long longval () { return (long) (sizeof (void *)); }
18629unsigned long ulongval () { return (long) (sizeof (void *)); }
18630#include <stdio.h>
18631#include <stdlib.h>
18632int
18633main ()
18634{
18635
18636 FILE *f = fopen ("conftest.val", "w");
18637 if (! f)
18638 exit (1);
18639 if (((long) (sizeof (void *))) < 0)
18640 {
18641 long i = longval ();
18642 if (i != ((long) (sizeof (void *))))
18643 exit (1);
18644 fprintf (f, "%ld\n", i);
18645 }
18646 else
18647 {
18648 unsigned long i = ulongval ();
18649 if (i != ((long) (sizeof (void *))))
18650 exit (1);
18651 fprintf (f, "%lu\n", i);
18652 }
18653 exit (ferror (f) || fclose (f) != 0);
18654
18655 ;
18656 return 0;
18657}
18658_ACEOF
18659rm -f conftest$ac_exeext
18660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18661 (eval $ac_link) 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18670 ac_cv_sizeof_void_p=`cat conftest.val`
18671else
18672 echo "$as_me: program exited with status $ac_status" >&5
18673echo "$as_me: failed program was:" >&5
18674sed 's/^/| /' conftest.$ac_ext >&5
18675
18676( exit $ac_status )
18677{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18678See \`config.log' for more details." >&5
18679echo "$as_me: error: cannot compute sizeof (void *), 77
18680See \`config.log' for more details." >&2;}
18681 { (exit 1); exit 1; }; }
18682fi
ac1cb8d3 18683rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18684fi
18685fi
18686rm -f conftest.val
18687else
18688 ac_cv_sizeof_void_p=0
18689fi
18690fi
18691echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18692echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18693cat >>confdefs.h <<_ACEOF
18694#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18695_ACEOF
18696
18697
18698echo "$as_me:$LINENO: checking for int" >&5
18699echo $ECHO_N "checking for int... $ECHO_C" >&6
18700if test "${ac_cv_type_int+set}" = set; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18702else
18703 cat >conftest.$ac_ext <<_ACEOF
18704/* confdefs.h. */
18705_ACEOF
18706cat confdefs.h >>conftest.$ac_ext
18707cat >>conftest.$ac_ext <<_ACEOF
18708/* end confdefs.h. */
18709$ac_includes_default
18710int
18711main ()
18712{
18713if ((int *) 0)
18714 return 0;
18715if (sizeof (int))
18716 return 0;
18717 ;
18718 return 0;
18719}
18720_ACEOF
18721rm -f conftest.$ac_objext
18722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18723 (eval $ac_compile) 2>conftest.er1
a848cd7e 18724 ac_status=$?
ac1cb8d3
VS
18725 grep -v '^ *+' conftest.er1 >conftest.err
18726 rm -f conftest.er1
18727 cat conftest.err >&5
a848cd7e
SC
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } &&
6954625c 18730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; } &&
18736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18739 ac_status=$?
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; }; then
18742 ac_cv_type_int=yes
18743else
18744 echo "$as_me: failed program was:" >&5
18745sed 's/^/| /' conftest.$ac_ext >&5
18746
18747ac_cv_type_int=no
18748fi
ac1cb8d3 18749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18750fi
18751echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18752echo "${ECHO_T}$ac_cv_type_int" >&6
18753
18754echo "$as_me:$LINENO: checking size of int" >&5
18755echo $ECHO_N "checking size of int... $ECHO_C" >&6
18756if test "${ac_cv_sizeof_int+set}" = set; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
18758else
18759 if test "$ac_cv_type_int" = yes; then
18760 # The cast to unsigned long works around a bug in the HP C Compiler
18761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18763 # This bug is HP SR number 8606223364.
18764 if test "$cross_compiling" = yes; then
18765 # Depending upon the size, compute the lo and hi bounds.
18766cat >conftest.$ac_ext <<_ACEOF
18767/* confdefs.h. */
18768_ACEOF
18769cat confdefs.h >>conftest.$ac_ext
18770cat >>conftest.$ac_ext <<_ACEOF
18771/* end confdefs.h. */
18772$ac_includes_default
18773int
18774main ()
18775{
18776static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18777test_array [0] = 0
18778
18779 ;
18780 return 0;
18781}
18782_ACEOF
18783rm -f conftest.$ac_objext
18784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18785 (eval $ac_compile) 2>conftest.er1
a848cd7e 18786 ac_status=$?
ac1cb8d3
VS
18787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
a848cd7e
SC
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
6954625c 18792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; } &&
18798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18804 ac_lo=0 ac_mid=0
18805 while :; do
18806 cat >conftest.$ac_ext <<_ACEOF
18807/* confdefs.h. */
18808_ACEOF
18809cat confdefs.h >>conftest.$ac_ext
18810cat >>conftest.$ac_ext <<_ACEOF
18811/* end confdefs.h. */
18812$ac_includes_default
18813int
18814main ()
18815{
18816static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18817test_array [0] = 0
18818
18819 ;
18820 return 0;
18821}
18822_ACEOF
18823rm -f conftest.$ac_objext
18824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18825 (eval $ac_compile) 2>conftest.er1
a848cd7e 18826 ac_status=$?
ac1cb8d3
VS
18827 grep -v '^ *+' conftest.er1 >conftest.err
18828 rm -f conftest.er1
18829 cat conftest.err >&5
a848cd7e
SC
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } &&
6954625c 18832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18835 ac_status=$?
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; } &&
18838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840 (eval $ac_try) 2>&5
18841 ac_status=$?
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; }; then
18844 ac_hi=$ac_mid; break
18845else
18846 echo "$as_me: failed program was:" >&5
18847sed 's/^/| /' conftest.$ac_ext >&5
18848
18849ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18850 if test $ac_lo -le $ac_mid; then
18851 ac_lo= ac_hi=
18852 break
18853 fi
18854 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18855fi
ac1cb8d3 18856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18857 done
18858else
18859 echo "$as_me: failed program was:" >&5
18860sed 's/^/| /' conftest.$ac_ext >&5
18861
18862cat >conftest.$ac_ext <<_ACEOF
18863/* confdefs.h. */
18864_ACEOF
18865cat confdefs.h >>conftest.$ac_ext
18866cat >>conftest.$ac_ext <<_ACEOF
18867/* end confdefs.h. */
18868$ac_includes_default
18869int
18870main ()
18871{
18872static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18873test_array [0] = 0
18874
18875 ;
18876 return 0;
18877}
18878_ACEOF
18879rm -f conftest.$ac_objext
18880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18881 (eval $ac_compile) 2>conftest.er1
a848cd7e 18882 ac_status=$?
ac1cb8d3
VS
18883 grep -v '^ *+' conftest.er1 >conftest.err
18884 rm -f conftest.er1
18885 cat conftest.err >&5
a848cd7e
SC
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } &&
6954625c 18888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; } &&
18894 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18897 ac_status=$?
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; }; then
18900 ac_hi=-1 ac_mid=-1
18901 while :; do
18902 cat >conftest.$ac_ext <<_ACEOF
18903/* confdefs.h. */
18904_ACEOF
18905cat confdefs.h >>conftest.$ac_ext
18906cat >>conftest.$ac_ext <<_ACEOF
18907/* end confdefs.h. */
18908$ac_includes_default
18909int
18910main ()
18911{
18912static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18913test_array [0] = 0
18914
18915 ;
18916 return 0;
18917}
18918_ACEOF
18919rm -f conftest.$ac_objext
18920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18921 (eval $ac_compile) 2>conftest.er1
a848cd7e 18922 ac_status=$?
ac1cb8d3
VS
18923 grep -v '^ *+' conftest.er1 >conftest.err
18924 rm -f conftest.er1
18925 cat conftest.err >&5
a848cd7e
SC
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } &&
6954625c 18928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18931 ac_status=$?
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; } &&
18934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; }; then
18940 ac_lo=$ac_mid; break
18941else
18942 echo "$as_me: failed program was:" >&5
18943sed 's/^/| /' conftest.$ac_ext >&5
18944
18945ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18946 if test $ac_mid -le $ac_hi; then
18947 ac_lo= ac_hi=
18948 break
18949 fi
18950 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18951fi
ac1cb8d3 18952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18953 done
18954else
18955 echo "$as_me: failed program was:" >&5
18956sed 's/^/| /' conftest.$ac_ext >&5
18957
18958ac_lo= ac_hi=
18959fi
ac1cb8d3 18960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18961fi
ac1cb8d3 18962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18963# Binary search between lo and hi bounds.
18964while test "x$ac_lo" != "x$ac_hi"; do
18965 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18966 cat >conftest.$ac_ext <<_ACEOF
18967/* confdefs.h. */
18968_ACEOF
18969cat confdefs.h >>conftest.$ac_ext
18970cat >>conftest.$ac_ext <<_ACEOF
18971/* end confdefs.h. */
18972$ac_includes_default
18973int
18974main ()
18975{
18976static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18977test_array [0] = 0
18978
18979 ;
18980 return 0;
18981}
18982_ACEOF
18983rm -f conftest.$ac_objext
18984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18985 (eval $ac_compile) 2>conftest.er1
a848cd7e 18986 ac_status=$?
ac1cb8d3
VS
18987 grep -v '^ *+' conftest.er1 >conftest.err
18988 rm -f conftest.er1
18989 cat conftest.err >&5
a848cd7e
SC
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } &&
6954625c 18992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18995 ac_status=$?
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; } &&
18998 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000 (eval $ac_try) 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; }; then
19004 ac_hi=$ac_mid
19005else
19006 echo "$as_me: failed program was:" >&5
19007sed 's/^/| /' conftest.$ac_ext >&5
19008
19009ac_lo=`expr '(' $ac_mid ')' + 1`
19010fi
ac1cb8d3 19011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19012done
19013case $ac_lo in
19014?*) ac_cv_sizeof_int=$ac_lo;;
19015'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19016See \`config.log' for more details." >&5
19017echo "$as_me: error: cannot compute sizeof (int), 77
19018See \`config.log' for more details." >&2;}
19019 { (exit 1); exit 1; }; } ;;
19020esac
19021else
19022 if test "$cross_compiling" = yes; then
6954625c
VZ
19023 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19024echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19025 { (exit 1); exit 1; }; }
19026else
19027 cat >conftest.$ac_ext <<_ACEOF
19028/* confdefs.h. */
19029_ACEOF
19030cat confdefs.h >>conftest.$ac_ext
19031cat >>conftest.$ac_ext <<_ACEOF
19032/* end confdefs.h. */
19033$ac_includes_default
19034long longval () { return (long) (sizeof (int)); }
19035unsigned long ulongval () { return (long) (sizeof (int)); }
19036#include <stdio.h>
19037#include <stdlib.h>
19038int
19039main ()
19040{
19041
19042 FILE *f = fopen ("conftest.val", "w");
19043 if (! f)
19044 exit (1);
19045 if (((long) (sizeof (int))) < 0)
19046 {
19047 long i = longval ();
19048 if (i != ((long) (sizeof (int))))
19049 exit (1);
19050 fprintf (f, "%ld\n", i);
19051 }
19052 else
19053 {
19054 unsigned long i = ulongval ();
19055 if (i != ((long) (sizeof (int))))
19056 exit (1);
19057 fprintf (f, "%lu\n", i);
19058 }
19059 exit (ferror (f) || fclose (f) != 0);
19060
19061 ;
19062 return 0;
19063}
19064_ACEOF
19065rm -f conftest$ac_exeext
19066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19067 (eval $ac_link) 2>&5
19068 ac_status=$?
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 ac_cv_sizeof_int=`cat conftest.val`
19077else
19078 echo "$as_me: program exited with status $ac_status" >&5
19079echo "$as_me: failed program was:" >&5
19080sed 's/^/| /' conftest.$ac_ext >&5
19081
19082( exit $ac_status )
19083{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19084See \`config.log' for more details." >&5
19085echo "$as_me: error: cannot compute sizeof (int), 77
19086See \`config.log' for more details." >&2;}
19087 { (exit 1); exit 1; }; }
19088fi
ac1cb8d3 19089rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19090fi
19091fi
19092rm -f conftest.val
19093else
19094 ac_cv_sizeof_int=0
19095fi
19096fi
19097echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19098echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19099cat >>confdefs.h <<_ACEOF
19100#define SIZEOF_INT $ac_cv_sizeof_int
19101_ACEOF
19102
19103
19104echo "$as_me:$LINENO: checking for long" >&5
19105echo $ECHO_N "checking for long... $ECHO_C" >&6
19106if test "${ac_cv_type_long+set}" = set; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
19108else
19109 cat >conftest.$ac_ext <<_ACEOF
19110/* confdefs.h. */
19111_ACEOF
19112cat confdefs.h >>conftest.$ac_ext
19113cat >>conftest.$ac_ext <<_ACEOF
19114/* end confdefs.h. */
19115$ac_includes_default
19116int
19117main ()
19118{
19119if ((long *) 0)
19120 return 0;
19121if (sizeof (long))
19122 return 0;
19123 ;
19124 return 0;
19125}
19126_ACEOF
19127rm -f conftest.$ac_objext
19128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19129 (eval $ac_compile) 2>conftest.er1
a848cd7e 19130 ac_status=$?
ac1cb8d3
VS
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
a848cd7e
SC
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } &&
6954625c 19136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138 (eval $ac_try) 2>&5
19139 ac_status=$?
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; } &&
19142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
19148 ac_cv_type_long=yes
19149else
19150 echo "$as_me: failed program was:" >&5
19151sed 's/^/| /' conftest.$ac_ext >&5
19152
19153ac_cv_type_long=no
19154fi
ac1cb8d3 19155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19156fi
19157echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19158echo "${ECHO_T}$ac_cv_type_long" >&6
19159
19160echo "$as_me:$LINENO: checking size of long" >&5
19161echo $ECHO_N "checking size of long... $ECHO_C" >&6
19162if test "${ac_cv_sizeof_long+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19164else
19165 if test "$ac_cv_type_long" = yes; then
19166 # The cast to unsigned long works around a bug in the HP C Compiler
19167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19169 # This bug is HP SR number 8606223364.
19170 if test "$cross_compiling" = yes; then
19171 # Depending upon the size, compute the lo and hi bounds.
19172cat >conftest.$ac_ext <<_ACEOF
19173/* confdefs.h. */
19174_ACEOF
19175cat confdefs.h >>conftest.$ac_ext
19176cat >>conftest.$ac_ext <<_ACEOF
19177/* end confdefs.h. */
19178$ac_includes_default
19179int
19180main ()
19181{
19182static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19183test_array [0] = 0
19184
19185 ;
19186 return 0;
19187}
19188_ACEOF
19189rm -f conftest.$ac_objext
19190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19191 (eval $ac_compile) 2>conftest.er1
a848cd7e 19192 ac_status=$?
ac1cb8d3
VS
19193 grep -v '^ *+' conftest.er1 >conftest.err
19194 rm -f conftest.er1
19195 cat conftest.err >&5
a848cd7e
SC
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } &&
6954625c 19198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; }; then
19210 ac_lo=0 ac_mid=0
19211 while :; do
19212 cat >conftest.$ac_ext <<_ACEOF
19213/* confdefs.h. */
19214_ACEOF
19215cat confdefs.h >>conftest.$ac_ext
19216cat >>conftest.$ac_ext <<_ACEOF
19217/* end confdefs.h. */
19218$ac_includes_default
19219int
19220main ()
19221{
19222static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19223test_array [0] = 0
19224
19225 ;
19226 return 0;
19227}
19228_ACEOF
19229rm -f conftest.$ac_objext
19230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19231 (eval $ac_compile) 2>conftest.er1
a848cd7e 19232 ac_status=$?
ac1cb8d3
VS
19233 grep -v '^ *+' conftest.er1 >conftest.err
19234 rm -f conftest.er1
19235 cat conftest.err >&5
a848cd7e
SC
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } &&
6954625c 19238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240 (eval $ac_try) 2>&5
19241 ac_status=$?
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; } &&
19244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19247 ac_status=$?
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; }; then
19250 ac_hi=$ac_mid; break
19251else
19252 echo "$as_me: failed program was:" >&5
19253sed 's/^/| /' conftest.$ac_ext >&5
19254
19255ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19256 if test $ac_lo -le $ac_mid; then
19257 ac_lo= ac_hi=
19258 break
19259 fi
19260 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19261fi
ac1cb8d3 19262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19263 done
19264else
19265 echo "$as_me: failed program was:" >&5
19266sed 's/^/| /' conftest.$ac_ext >&5
19267
19268cat >conftest.$ac_ext <<_ACEOF
19269/* confdefs.h. */
19270_ACEOF
19271cat confdefs.h >>conftest.$ac_ext
19272cat >>conftest.$ac_ext <<_ACEOF
19273/* end confdefs.h. */
19274$ac_includes_default
19275int
19276main ()
19277{
19278static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19279test_array [0] = 0
19280
19281 ;
19282 return 0;
19283}
19284_ACEOF
19285rm -f conftest.$ac_objext
19286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19287 (eval $ac_compile) 2>conftest.er1
a848cd7e 19288 ac_status=$?
ac1cb8d3
VS
19289 grep -v '^ *+' conftest.er1 >conftest.err
19290 rm -f conftest.er1
19291 cat conftest.err >&5
a848cd7e
SC
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } &&
6954625c 19294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 ac_hi=-1 ac_mid=-1
19307 while :; do
19308 cat >conftest.$ac_ext <<_ACEOF
19309/* confdefs.h. */
19310_ACEOF
19311cat confdefs.h >>conftest.$ac_ext
19312cat >>conftest.$ac_ext <<_ACEOF
19313/* end confdefs.h. */
19314$ac_includes_default
19315int
19316main ()
19317{
19318static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19319test_array [0] = 0
19320
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325rm -f conftest.$ac_objext
19326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19327 (eval $ac_compile) 2>conftest.er1
a848cd7e 19328 ac_status=$?
ac1cb8d3
VS
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
a848cd7e
SC
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
6954625c 19334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 ac_lo=$ac_mid; break
19347else
19348 echo "$as_me: failed program was:" >&5
19349sed 's/^/| /' conftest.$ac_ext >&5
19350
19351ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19352 if test $ac_mid -le $ac_hi; then
19353 ac_lo= ac_hi=
19354 break
19355 fi
19356 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19357fi
ac1cb8d3 19358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19359 done
19360else
19361 echo "$as_me: failed program was:" >&5
19362sed 's/^/| /' conftest.$ac_ext >&5
19363
19364ac_lo= ac_hi=
19365fi
ac1cb8d3 19366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19367fi
ac1cb8d3 19368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19369# Binary search between lo and hi bounds.
19370while test "x$ac_lo" != "x$ac_hi"; do
19371 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19372 cat >conftest.$ac_ext <<_ACEOF
19373/* confdefs.h. */
19374_ACEOF
19375cat confdefs.h >>conftest.$ac_ext
19376cat >>conftest.$ac_ext <<_ACEOF
19377/* end confdefs.h. */
19378$ac_includes_default
19379int
19380main ()
19381{
19382static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19383test_array [0] = 0
19384
19385 ;
19386 return 0;
19387}
19388_ACEOF
19389rm -f conftest.$ac_objext
19390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19391 (eval $ac_compile) 2>conftest.er1
a848cd7e 19392 ac_status=$?
ac1cb8d3
VS
19393 grep -v '^ *+' conftest.er1 >conftest.err
19394 rm -f conftest.er1
19395 cat conftest.err >&5
a848cd7e
SC
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); } &&
6954625c 19398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400 (eval $ac_try) 2>&5
19401 ac_status=$?
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; } &&
19404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19407 ac_status=$?
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; }; then
19410 ac_hi=$ac_mid
19411else
19412 echo "$as_me: failed program was:" >&5
19413sed 's/^/| /' conftest.$ac_ext >&5
19414
19415ac_lo=`expr '(' $ac_mid ')' + 1`
19416fi
ac1cb8d3 19417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19418done
19419case $ac_lo in
19420?*) ac_cv_sizeof_long=$ac_lo;;
19421'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19422See \`config.log' for more details." >&5
19423echo "$as_me: error: cannot compute sizeof (long), 77
19424See \`config.log' for more details." >&2;}
19425 { (exit 1); exit 1; }; } ;;
19426esac
19427else
19428 if test "$cross_compiling" = yes; then
6954625c
VZ
19429 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19430echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19431 { (exit 1); exit 1; }; }
19432else
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
19440long longval () { return (long) (sizeof (long)); }
19441unsigned long ulongval () { return (long) (sizeof (long)); }
19442#include <stdio.h>
19443#include <stdlib.h>
19444int
19445main ()
19446{
19447
19448 FILE *f = fopen ("conftest.val", "w");
19449 if (! f)
19450 exit (1);
19451 if (((long) (sizeof (long))) < 0)
19452 {
19453 long i = longval ();
19454 if (i != ((long) (sizeof (long))))
19455 exit (1);
19456 fprintf (f, "%ld\n", i);
19457 }
19458 else
19459 {
19460 unsigned long i = ulongval ();
19461 if (i != ((long) (sizeof (long))))
19462 exit (1);
19463 fprintf (f, "%lu\n", i);
19464 }
19465 exit (ferror (f) || fclose (f) != 0);
19466
19467 ;
19468 return 0;
19469}
19470_ACEOF
19471rm -f conftest$ac_exeext
19472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19473 (eval $ac_link) 2>&5
19474 ac_status=$?
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_cv_sizeof_long=`cat conftest.val`
19483else
19484 echo "$as_me: program exited with status $ac_status" >&5
19485echo "$as_me: failed program was:" >&5
19486sed 's/^/| /' conftest.$ac_ext >&5
19487
19488( exit $ac_status )
19489{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19490See \`config.log' for more details." >&5
19491echo "$as_me: error: cannot compute sizeof (long), 77
19492See \`config.log' for more details." >&2;}
19493 { (exit 1); exit 1; }; }
19494fi
ac1cb8d3 19495rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19496fi
19497fi
19498rm -f conftest.val
19499else
19500 ac_cv_sizeof_long=0
19501fi
19502fi
19503echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19504echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19505cat >>confdefs.h <<_ACEOF
19506#define SIZEOF_LONG $ac_cv_sizeof_long
19507_ACEOF
19508
19509
19510echo "$as_me:$LINENO: checking for size_t" >&5
19511echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19512if test "${ac_cv_type_size_t+set}" = set; then
19513 echo $ECHO_N "(cached) $ECHO_C" >&6
19514else
19515 cat >conftest.$ac_ext <<_ACEOF
19516/* confdefs.h. */
19517_ACEOF
19518cat confdefs.h >>conftest.$ac_ext
19519cat >>conftest.$ac_ext <<_ACEOF
19520/* end confdefs.h. */
19521$ac_includes_default
19522int
19523main ()
19524{
19525if ((size_t *) 0)
19526 return 0;
19527if (sizeof (size_t))
19528 return 0;
19529 ;
19530 return 0;
19531}
19532_ACEOF
19533rm -f conftest.$ac_objext
19534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19535 (eval $ac_compile) 2>conftest.er1
a848cd7e 19536 ac_status=$?
ac1cb8d3
VS
19537 grep -v '^ *+' conftest.er1 >conftest.err
19538 rm -f conftest.er1
19539 cat conftest.err >&5
a848cd7e
SC
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
6954625c 19542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; } &&
19548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19554 ac_cv_type_size_t=yes
19555else
19556 echo "$as_me: failed program was:" >&5
19557sed 's/^/| /' conftest.$ac_ext >&5
19558
19559ac_cv_type_size_t=no
19560fi
ac1cb8d3 19561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19562fi
19563echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19564echo "${ECHO_T}$ac_cv_type_size_t" >&6
19565
19566echo "$as_me:$LINENO: checking size of size_t" >&5
19567echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19568if test "${ac_cv_sizeof_size_t+set}" = set; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19570else
19571 if test "$ac_cv_type_size_t" = yes; then
19572 # The cast to unsigned long works around a bug in the HP C Compiler
19573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19575 # This bug is HP SR number 8606223364.
19576 if test "$cross_compiling" = yes; then
19577 # Depending upon the size, compute the lo and hi bounds.
19578cat >conftest.$ac_ext <<_ACEOF
19579/* confdefs.h. */
19580_ACEOF
19581cat confdefs.h >>conftest.$ac_ext
19582cat >>conftest.$ac_ext <<_ACEOF
19583/* end confdefs.h. */
19584$ac_includes_default
19585int
19586main ()
19587{
19588static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19589test_array [0] = 0
19590
19591 ;
19592 return 0;
19593}
19594_ACEOF
19595rm -f conftest.$ac_objext
19596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19597 (eval $ac_compile) 2>conftest.er1
a848cd7e 19598 ac_status=$?
ac1cb8d3
VS
19599 grep -v '^ *+' conftest.er1 >conftest.err
19600 rm -f conftest.er1
19601 cat conftest.err >&5
a848cd7e
SC
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); } &&
6954625c 19604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; } &&
19610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
19616 ac_lo=0 ac_mid=0
19617 while :; do
19618 cat >conftest.$ac_ext <<_ACEOF
19619/* confdefs.h. */
19620_ACEOF
19621cat confdefs.h >>conftest.$ac_ext
19622cat >>conftest.$ac_ext <<_ACEOF
19623/* end confdefs.h. */
19624$ac_includes_default
19625int
19626main ()
19627{
19628static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19629test_array [0] = 0
19630
19631 ;
19632 return 0;
19633}
19634_ACEOF
19635rm -f conftest.$ac_objext
19636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19637 (eval $ac_compile) 2>conftest.er1
a848cd7e 19638 ac_status=$?
ac1cb8d3
VS
19639 grep -v '^ *+' conftest.er1 >conftest.err
19640 rm -f conftest.er1
19641 cat conftest.err >&5
a848cd7e
SC
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } &&
6954625c 19644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646 (eval $ac_try) 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; } &&
19650 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; }; then
19656 ac_hi=$ac_mid; break
19657else
19658 echo "$as_me: failed program was:" >&5
19659sed 's/^/| /' conftest.$ac_ext >&5
19660
19661ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19662 if test $ac_lo -le $ac_mid; then
19663 ac_lo= ac_hi=
19664 break
19665 fi
19666 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19667fi
ac1cb8d3 19668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19669 done
19670else
19671 echo "$as_me: failed program was:" >&5
19672sed 's/^/| /' conftest.$ac_ext >&5
19673
19674cat >conftest.$ac_ext <<_ACEOF
19675/* confdefs.h. */
19676_ACEOF
19677cat confdefs.h >>conftest.$ac_ext
19678cat >>conftest.$ac_ext <<_ACEOF
19679/* end confdefs.h. */
19680$ac_includes_default
19681int
19682main ()
19683{
19684static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19685test_array [0] = 0
19686
19687 ;
19688 return 0;
19689}
19690_ACEOF
19691rm -f conftest.$ac_objext
19692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19693 (eval $ac_compile) 2>conftest.er1
a848cd7e 19694 ac_status=$?
ac1cb8d3
VS
19695 grep -v '^ *+' conftest.er1 >conftest.err
19696 rm -f conftest.er1
19697 cat conftest.err >&5
a848cd7e
SC
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } &&
6954625c 19700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702 (eval $ac_try) 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; } &&
19706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708 (eval $ac_try) 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; }; then
19712 ac_hi=-1 ac_mid=-1
19713 while :; do
19714 cat >conftest.$ac_ext <<_ACEOF
19715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h. */
19720$ac_includes_default
19721int
19722main ()
19723{
19724static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19725test_array [0] = 0
19726
19727 ;
19728 return 0;
19729}
19730_ACEOF
19731rm -f conftest.$ac_objext
19732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19733 (eval $ac_compile) 2>conftest.er1
a848cd7e 19734 ac_status=$?
ac1cb8d3
VS
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
a848cd7e
SC
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } &&
6954625c 19740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; } &&
19746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_lo=$ac_mid; break
19753else
19754 echo "$as_me: failed program was:" >&5
19755sed 's/^/| /' conftest.$ac_ext >&5
19756
19757ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19758 if test $ac_mid -le $ac_hi; then
19759 ac_lo= ac_hi=
19760 break
19761 fi
19762 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19763fi
ac1cb8d3 19764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19765 done
19766else
19767 echo "$as_me: failed program was:" >&5
19768sed 's/^/| /' conftest.$ac_ext >&5
19769
19770ac_lo= ac_hi=
19771fi
ac1cb8d3 19772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19773fi
ac1cb8d3 19774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19775# Binary search between lo and hi bounds.
19776while test "x$ac_lo" != "x$ac_hi"; do
19777 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19778 cat >conftest.$ac_ext <<_ACEOF
19779/* confdefs.h. */
19780_ACEOF
19781cat confdefs.h >>conftest.$ac_ext
19782cat >>conftest.$ac_ext <<_ACEOF
19783/* end confdefs.h. */
19784$ac_includes_default
19785int
19786main ()
19787{
19788static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19789test_array [0] = 0
19790
19791 ;
19792 return 0;
19793}
19794_ACEOF
19795rm -f conftest.$ac_objext
19796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19797 (eval $ac_compile) 2>conftest.er1
a848cd7e 19798 ac_status=$?
ac1cb8d3
VS
19799 grep -v '^ *+' conftest.er1 >conftest.err
19800 rm -f conftest.er1
19801 cat conftest.err >&5
a848cd7e
SC
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
6954625c 19804 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; } &&
19810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 ac_hi=$ac_mid
19817else
19818 echo "$as_me: failed program was:" >&5
19819sed 's/^/| /' conftest.$ac_ext >&5
19820
19821ac_lo=`expr '(' $ac_mid ')' + 1`
19822fi
ac1cb8d3 19823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19824done
19825case $ac_lo in
19826?*) ac_cv_sizeof_size_t=$ac_lo;;
19827'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19828See \`config.log' for more details." >&5
19829echo "$as_me: error: cannot compute sizeof (size_t), 77
19830See \`config.log' for more details." >&2;}
19831 { (exit 1); exit 1; }; } ;;
19832esac
19833else
19834 if test "$cross_compiling" = yes; then
6954625c
VZ
19835 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19836echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19837 { (exit 1); exit 1; }; }
19838else
19839 cat >conftest.$ac_ext <<_ACEOF
19840/* confdefs.h. */
19841_ACEOF
19842cat confdefs.h >>conftest.$ac_ext
19843cat >>conftest.$ac_ext <<_ACEOF
19844/* end confdefs.h. */
19845$ac_includes_default
19846long longval () { return (long) (sizeof (size_t)); }
19847unsigned long ulongval () { return (long) (sizeof (size_t)); }
19848#include <stdio.h>
19849#include <stdlib.h>
19850int
19851main ()
19852{
19853
19854 FILE *f = fopen ("conftest.val", "w");
19855 if (! f)
19856 exit (1);
19857 if (((long) (sizeof (size_t))) < 0)
19858 {
19859 long i = longval ();
19860 if (i != ((long) (sizeof (size_t))))
19861 exit (1);
19862 fprintf (f, "%ld\n", i);
19863 }
19864 else
19865 {
19866 unsigned long i = ulongval ();
19867 if (i != ((long) (sizeof (size_t))))
19868 exit (1);
19869 fprintf (f, "%lu\n", i);
19870 }
19871 exit (ferror (f) || fclose (f) != 0);
19872
19873 ;
19874 return 0;
19875}
19876_ACEOF
19877rm -f conftest$ac_exeext
19878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19879 (eval $ac_link) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_cv_sizeof_size_t=`cat conftest.val`
19889else
19890 echo "$as_me: program exited with status $ac_status" >&5
19891echo "$as_me: failed program was:" >&5
19892sed 's/^/| /' conftest.$ac_ext >&5
19893
19894( exit $ac_status )
19895{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19896See \`config.log' for more details." >&5
19897echo "$as_me: error: cannot compute sizeof (size_t), 77
19898See \`config.log' for more details." >&2;}
19899 { (exit 1); exit 1; }; }
19900fi
ac1cb8d3 19901rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19902fi
19903fi
19904rm -f conftest.val
19905else
19906 ac_cv_sizeof_size_t=0
19907fi
19908fi
19909echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19910echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19911cat >>confdefs.h <<_ACEOF
19912#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19913_ACEOF
19914
19915
19916
19917case "${host}" in
19918 arm-*-linux* )
19919 echo "$as_me:$LINENO: checking for long long" >&5
19920echo $ECHO_N "checking for long long... $ECHO_C" >&6
19921if test "${ac_cv_type_long_long+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19923else
19924 cat >conftest.$ac_ext <<_ACEOF
19925/* confdefs.h. */
19926_ACEOF
19927cat confdefs.h >>conftest.$ac_ext
19928cat >>conftest.$ac_ext <<_ACEOF
19929/* end confdefs.h. */
19930$ac_includes_default
19931int
19932main ()
19933{
19934if ((long long *) 0)
19935 return 0;
19936if (sizeof (long long))
19937 return 0;
19938 ;
19939 return 0;
19940}
19941_ACEOF
19942rm -f conftest.$ac_objext
19943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19944 (eval $ac_compile) 2>conftest.er1
a848cd7e 19945 ac_status=$?
ac1cb8d3
VS
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
a848cd7e
SC
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
6954625c 19951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; }; then
19963 ac_cv_type_long_long=yes
19964else
19965 echo "$as_me: failed program was:" >&5
19966sed 's/^/| /' conftest.$ac_ext >&5
19967
19968ac_cv_type_long_long=no
19969fi
ac1cb8d3 19970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19971fi
19972echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19973echo "${ECHO_T}$ac_cv_type_long_long" >&6
19974
19975echo "$as_me:$LINENO: checking size of long long" >&5
19976echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19977if test "${ac_cv_sizeof_long_long+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19979else
19980 if test "$ac_cv_type_long_long" = yes; then
19981 # The cast to unsigned long works around a bug in the HP C Compiler
19982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19984 # This bug is HP SR number 8606223364.
19985 if test "$cross_compiling" = yes; then
19986 # Depending upon the size, compute the lo and hi bounds.
19987cat >conftest.$ac_ext <<_ACEOF
19988/* confdefs.h. */
19989_ACEOF
19990cat confdefs.h >>conftest.$ac_ext
19991cat >>conftest.$ac_ext <<_ACEOF
19992/* end confdefs.h. */
19993$ac_includes_default
19994int
19995main ()
19996{
19997static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19998test_array [0] = 0
19999
20000 ;
20001 return 0;
20002}
20003_ACEOF
20004rm -f conftest.$ac_objext
20005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20006 (eval $ac_compile) 2>conftest.er1
a848cd7e 20007 ac_status=$?
ac1cb8d3
VS
20008 grep -v '^ *+' conftest.er1 >conftest.err
20009 rm -f conftest.er1
20010 cat conftest.err >&5
a848cd7e
SC
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } &&
6954625c 20013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; } &&
20019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_lo=0 ac_mid=0
20026 while :; do
20027 cat >conftest.$ac_ext <<_ACEOF
20028/* confdefs.h. */
20029_ACEOF
20030cat confdefs.h >>conftest.$ac_ext
20031cat >>conftest.$ac_ext <<_ACEOF
20032/* end confdefs.h. */
20033$ac_includes_default
20034int
20035main ()
20036{
20037static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20038test_array [0] = 0
20039
20040 ;
20041 return 0;
20042}
20043_ACEOF
20044rm -f conftest.$ac_objext
20045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20046 (eval $ac_compile) 2>conftest.er1
a848cd7e 20047 ac_status=$?
ac1cb8d3
VS
20048 grep -v '^ *+' conftest.er1 >conftest.err
20049 rm -f conftest.er1
20050 cat conftest.err >&5
a848cd7e
SC
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } &&
6954625c 20053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; } &&
20059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20062 ac_status=$?
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; }; then
20065 ac_hi=$ac_mid; break
20066else
20067 echo "$as_me: failed program was:" >&5
20068sed 's/^/| /' conftest.$ac_ext >&5
20069
20070ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20071 if test $ac_lo -le $ac_mid; then
20072 ac_lo= ac_hi=
20073 break
20074 fi
20075 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20076fi
ac1cb8d3 20077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20078 done
20079else
20080 echo "$as_me: failed program was:" >&5
20081sed 's/^/| /' conftest.$ac_ext >&5
20082
20083cat >conftest.$ac_ext <<_ACEOF
20084/* confdefs.h. */
20085_ACEOF
20086cat confdefs.h >>conftest.$ac_ext
20087cat >>conftest.$ac_ext <<_ACEOF
20088/* end confdefs.h. */
20089$ac_includes_default
20090int
20091main ()
20092{
20093static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20094test_array [0] = 0
20095
20096 ;
20097 return 0;
20098}
20099_ACEOF
20100rm -f conftest.$ac_objext
20101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20102 (eval $ac_compile) 2>conftest.er1
a848cd7e 20103 ac_status=$?
ac1cb8d3
VS
20104 grep -v '^ *+' conftest.er1 >conftest.err
20105 rm -f conftest.er1
20106 cat conftest.err >&5
a848cd7e
SC
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); } &&
6954625c 20109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; } &&
20115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117 (eval $ac_try) 2>&5
20118 ac_status=$?
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; }; then
20121 ac_hi=-1 ac_mid=-1
20122 while :; do
20123 cat >conftest.$ac_ext <<_ACEOF
20124/* confdefs.h. */
20125_ACEOF
20126cat confdefs.h >>conftest.$ac_ext
20127cat >>conftest.$ac_ext <<_ACEOF
20128/* end confdefs.h. */
20129$ac_includes_default
20130int
20131main ()
20132{
20133static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20134test_array [0] = 0
20135
20136 ;
20137 return 0;
20138}
20139_ACEOF
20140rm -f conftest.$ac_objext
20141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20142 (eval $ac_compile) 2>conftest.er1
a848cd7e 20143 ac_status=$?
ac1cb8d3
VS
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
a848cd7e
SC
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
6954625c 20149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 ac_lo=$ac_mid; break
20162else
20163 echo "$as_me: failed program was:" >&5
20164sed 's/^/| /' conftest.$ac_ext >&5
20165
20166ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20167 if test $ac_mid -le $ac_hi; then
20168 ac_lo= ac_hi=
20169 break
20170 fi
20171 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20172fi
ac1cb8d3 20173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20174 done
20175else
20176 echo "$as_me: failed program was:" >&5
20177sed 's/^/| /' conftest.$ac_ext >&5
20178
20179ac_lo= ac_hi=
20180fi
ac1cb8d3 20181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20182fi
ac1cb8d3 20183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20184# Binary search between lo and hi bounds.
20185while test "x$ac_lo" != "x$ac_hi"; do
20186 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20187 cat >conftest.$ac_ext <<_ACEOF
20188/* confdefs.h. */
20189_ACEOF
20190cat confdefs.h >>conftest.$ac_ext
20191cat >>conftest.$ac_ext <<_ACEOF
20192/* end confdefs.h. */
20193$ac_includes_default
20194int
20195main ()
20196{
20197static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20198test_array [0] = 0
20199
20200 ;
20201 return 0;
20202}
20203_ACEOF
20204rm -f conftest.$ac_objext
20205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20206 (eval $ac_compile) 2>conftest.er1
a848cd7e 20207 ac_status=$?
ac1cb8d3
VS
20208 grep -v '^ *+' conftest.er1 >conftest.err
20209 rm -f conftest.er1
20210 cat conftest.err >&5
a848cd7e
SC
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } &&
6954625c 20213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; } &&
20219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221 (eval $ac_try) 2>&5
20222 ac_status=$?
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; }; then
20225 ac_hi=$ac_mid
20226else
20227 echo "$as_me: failed program was:" >&5
20228sed 's/^/| /' conftest.$ac_ext >&5
20229
20230ac_lo=`expr '(' $ac_mid ')' + 1`
20231fi
ac1cb8d3 20232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20233done
20234case $ac_lo in
20235?*) ac_cv_sizeof_long_long=$ac_lo;;
20236'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20237See \`config.log' for more details." >&5
20238echo "$as_me: error: cannot compute sizeof (long long), 77
20239See \`config.log' for more details." >&2;}
20240 { (exit 1); exit 1; }; } ;;
20241esac
20242else
20243 if test "$cross_compiling" = yes; then
6954625c
VZ
20244 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20245echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20246 { (exit 1); exit 1; }; }
20247else
20248 cat >conftest.$ac_ext <<_ACEOF
20249/* confdefs.h. */
20250_ACEOF
20251cat confdefs.h >>conftest.$ac_ext
20252cat >>conftest.$ac_ext <<_ACEOF
20253/* end confdefs.h. */
20254$ac_includes_default
20255long longval () { return (long) (sizeof (long long)); }
20256unsigned long ulongval () { return (long) (sizeof (long long)); }
20257#include <stdio.h>
20258#include <stdlib.h>
20259int
20260main ()
20261{
20262
20263 FILE *f = fopen ("conftest.val", "w");
20264 if (! f)
20265 exit (1);
20266 if (((long) (sizeof (long long))) < 0)
20267 {
20268 long i = longval ();
20269 if (i != ((long) (sizeof (long long))))
20270 exit (1);
20271 fprintf (f, "%ld\n", i);
20272 }
20273 else
20274 {
20275 unsigned long i = ulongval ();
20276 if (i != ((long) (sizeof (long long))))
20277 exit (1);
20278 fprintf (f, "%lu\n", i);
20279 }
20280 exit (ferror (f) || fclose (f) != 0);
20281
20282 ;
20283 return 0;
20284}
20285_ACEOF
20286rm -f conftest$ac_exeext
20287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20288 (eval $ac_link) 2>&5
20289 ac_status=$?
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
20297 ac_cv_sizeof_long_long=`cat conftest.val`
20298else
20299 echo "$as_me: program exited with status $ac_status" >&5
20300echo "$as_me: failed program was:" >&5
20301sed 's/^/| /' conftest.$ac_ext >&5
20302
20303( exit $ac_status )
20304{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20305See \`config.log' for more details." >&5
20306echo "$as_me: error: cannot compute sizeof (long long), 77
20307See \`config.log' for more details." >&2;}
20308 { (exit 1); exit 1; }; }
20309fi
ac1cb8d3 20310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20311fi
20312fi
20313rm -f conftest.val
20314else
20315 ac_cv_sizeof_long_long=0
20316fi
20317fi
20318echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20319echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20320cat >>confdefs.h <<_ACEOF
20321#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20322_ACEOF
20323
20324
20325 ;;
20326 *-hp-hpux* )
20327 echo "$as_me:$LINENO: checking for long long" >&5
20328echo $ECHO_N "checking for long long... $ECHO_C" >&6
20329if test "${ac_cv_type_long_long+set}" = set; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20331else
20332 cat >conftest.$ac_ext <<_ACEOF
20333/* confdefs.h. */
20334_ACEOF
20335cat confdefs.h >>conftest.$ac_ext
20336cat >>conftest.$ac_ext <<_ACEOF
20337/* end confdefs.h. */
20338$ac_includes_default
20339int
20340main ()
20341{
20342if ((long long *) 0)
20343 return 0;
20344if (sizeof (long long))
20345 return 0;
20346 ;
20347 return 0;
20348}
20349_ACEOF
20350rm -f conftest.$ac_objext
20351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20352 (eval $ac_compile) 2>conftest.er1
a848cd7e 20353 ac_status=$?
ac1cb8d3
VS
20354 grep -v '^ *+' conftest.er1 >conftest.err
20355 rm -f conftest.er1
20356 cat conftest.err >&5
a848cd7e
SC
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } &&
6954625c 20359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361 (eval $ac_try) 2>&5
20362 ac_status=$?
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); }; } &&
20365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; }; then
20371 ac_cv_type_long_long=yes
20372else
20373 echo "$as_me: failed program was:" >&5
20374sed 's/^/| /' conftest.$ac_ext >&5
20375
20376ac_cv_type_long_long=no
20377fi
ac1cb8d3 20378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20379fi
20380echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20381echo "${ECHO_T}$ac_cv_type_long_long" >&6
20382
20383echo "$as_me:$LINENO: checking size of long long" >&5
20384echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20385if test "${ac_cv_sizeof_long_long+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20387else
20388 if test "$ac_cv_type_long_long" = yes; then
20389 # The cast to unsigned long works around a bug in the HP C Compiler
20390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20392 # This bug is HP SR number 8606223364.
20393 if test "$cross_compiling" = yes; then
20394 # Depending upon the size, compute the lo and hi bounds.
20395cat >conftest.$ac_ext <<_ACEOF
20396/* confdefs.h. */
20397_ACEOF
20398cat confdefs.h >>conftest.$ac_ext
20399cat >>conftest.$ac_ext <<_ACEOF
20400/* end confdefs.h. */
20401$ac_includes_default
20402int
20403main ()
20404{
20405static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20406test_array [0] = 0
20407
20408 ;
20409 return 0;
20410}
20411_ACEOF
20412rm -f conftest.$ac_objext
20413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20414 (eval $ac_compile) 2>conftest.er1
a848cd7e 20415 ac_status=$?
ac1cb8d3
VS
20416 grep -v '^ *+' conftest.er1 >conftest.err
20417 rm -f conftest.er1
20418 cat conftest.err >&5
a848cd7e
SC
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } &&
6954625c 20421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20424 ac_status=$?
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; } &&
20427 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; }; then
20433 ac_lo=0 ac_mid=0
20434 while :; do
20435 cat >conftest.$ac_ext <<_ACEOF
20436/* confdefs.h. */
20437_ACEOF
20438cat confdefs.h >>conftest.$ac_ext
20439cat >>conftest.$ac_ext <<_ACEOF
20440/* end confdefs.h. */
20441$ac_includes_default
20442int
20443main ()
20444{
20445static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20446test_array [0] = 0
20447
20448 ;
20449 return 0;
20450}
20451_ACEOF
20452rm -f conftest.$ac_objext
20453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20454 (eval $ac_compile) 2>conftest.er1
a848cd7e 20455 ac_status=$?
ac1cb8d3
VS
20456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
a848cd7e
SC
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
6954625c 20461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463 (eval $ac_try) 2>&5
20464 ac_status=$?
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; } &&
20467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469 (eval $ac_try) 2>&5
20470 ac_status=$?
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); }; }; then
20473 ac_hi=$ac_mid; break
20474else
20475 echo "$as_me: failed program was:" >&5
20476sed 's/^/| /' conftest.$ac_ext >&5
20477
20478ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20479 if test $ac_lo -le $ac_mid; then
20480 ac_lo= ac_hi=
20481 break
20482 fi
20483 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20484fi
ac1cb8d3 20485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20486 done
20487else
20488 echo "$as_me: failed program was:" >&5
20489sed 's/^/| /' conftest.$ac_ext >&5
20490
20491cat >conftest.$ac_ext <<_ACEOF
20492/* confdefs.h. */
20493_ACEOF
20494cat confdefs.h >>conftest.$ac_ext
20495cat >>conftest.$ac_ext <<_ACEOF
20496/* end confdefs.h. */
20497$ac_includes_default
20498int
20499main ()
20500{
20501static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20502test_array [0] = 0
20503
20504 ;
20505 return 0;
20506}
20507_ACEOF
20508rm -f conftest.$ac_objext
20509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20510 (eval $ac_compile) 2>conftest.er1
a848cd7e 20511 ac_status=$?
ac1cb8d3
VS
20512 grep -v '^ *+' conftest.er1 >conftest.err
20513 rm -f conftest.er1
20514 cat conftest.err >&5
a848cd7e
SC
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); } &&
6954625c 20517 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519 (eval $ac_try) 2>&5
20520 ac_status=$?
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); }; } &&
20523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; }; then
20529 ac_hi=-1 ac_mid=-1
20530 while :; do
20531 cat >conftest.$ac_ext <<_ACEOF
20532/* confdefs.h. */
20533_ACEOF
20534cat confdefs.h >>conftest.$ac_ext
20535cat >>conftest.$ac_ext <<_ACEOF
20536/* end confdefs.h. */
20537$ac_includes_default
20538int
20539main ()
20540{
20541static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20542test_array [0] = 0
20543
20544 ;
20545 return 0;
20546}
20547_ACEOF
20548rm -f conftest.$ac_objext
20549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20550 (eval $ac_compile) 2>conftest.er1
a848cd7e 20551 ac_status=$?
ac1cb8d3
VS
20552 grep -v '^ *+' conftest.er1 >conftest.err
20553 rm -f conftest.er1
20554 cat conftest.err >&5
a848cd7e
SC
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } &&
6954625c 20557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559 (eval $ac_try) 2>&5
20560 ac_status=$?
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; } &&
20563 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565 (eval $ac_try) 2>&5
20566 ac_status=$?
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; }; then
20569 ac_lo=$ac_mid; break
20570else
20571 echo "$as_me: failed program was:" >&5
20572sed 's/^/| /' conftest.$ac_ext >&5
20573
20574ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20575 if test $ac_mid -le $ac_hi; then
20576 ac_lo= ac_hi=
20577 break
20578 fi
20579 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20580fi
ac1cb8d3 20581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20582 done
20583else
20584 echo "$as_me: failed program was:" >&5
20585sed 's/^/| /' conftest.$ac_ext >&5
20586
20587ac_lo= ac_hi=
20588fi
ac1cb8d3 20589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20590fi
ac1cb8d3 20591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20592# Binary search between lo and hi bounds.
20593while test "x$ac_lo" != "x$ac_hi"; do
20594 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20595 cat >conftest.$ac_ext <<_ACEOF
20596/* confdefs.h. */
20597_ACEOF
20598cat confdefs.h >>conftest.$ac_ext
20599cat >>conftest.$ac_ext <<_ACEOF
20600/* end confdefs.h. */
20601$ac_includes_default
20602int
20603main ()
20604{
20605static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20606test_array [0] = 0
20607
20608 ;
20609 return 0;
20610}
20611_ACEOF
20612rm -f conftest.$ac_objext
20613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20614 (eval $ac_compile) 2>conftest.er1
a848cd7e 20615 ac_status=$?
ac1cb8d3
VS
20616 grep -v '^ *+' conftest.er1 >conftest.err
20617 rm -f conftest.er1
20618 cat conftest.err >&5
a848cd7e
SC
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } &&
6954625c 20621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623 (eval $ac_try) 2>&5
20624 ac_status=$?
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; } &&
20627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20633 ac_hi=$ac_mid
20634else
20635 echo "$as_me: failed program was:" >&5
20636sed 's/^/| /' conftest.$ac_ext >&5
20637
20638ac_lo=`expr '(' $ac_mid ')' + 1`
20639fi
ac1cb8d3 20640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20641done
20642case $ac_lo in
20643?*) ac_cv_sizeof_long_long=$ac_lo;;
20644'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20645See \`config.log' for more details." >&5
20646echo "$as_me: error: cannot compute sizeof (long long), 77
20647See \`config.log' for more details." >&2;}
20648 { (exit 1); exit 1; }; } ;;
20649esac
20650else
20651 if test "$cross_compiling" = yes; then
6954625c
VZ
20652 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20653echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20654 { (exit 1); exit 1; }; }
20655else
20656 cat >conftest.$ac_ext <<_ACEOF
20657/* confdefs.h. */
20658_ACEOF
20659cat confdefs.h >>conftest.$ac_ext
20660cat >>conftest.$ac_ext <<_ACEOF
20661/* end confdefs.h. */
20662$ac_includes_default
20663long longval () { return (long) (sizeof (long long)); }
20664unsigned long ulongval () { return (long) (sizeof (long long)); }
20665#include <stdio.h>
20666#include <stdlib.h>
20667int
20668main ()
20669{
20670
20671 FILE *f = fopen ("conftest.val", "w");
20672 if (! f)
20673 exit (1);
20674 if (((long) (sizeof (long long))) < 0)
20675 {
20676 long i = longval ();
20677 if (i != ((long) (sizeof (long long))))
20678 exit (1);
20679 fprintf (f, "%ld\n", i);
20680 }
20681 else
20682 {
20683 unsigned long i = ulongval ();
20684 if (i != ((long) (sizeof (long long))))
20685 exit (1);
20686 fprintf (f, "%lu\n", i);
20687 }
20688 exit (ferror (f) || fclose (f) != 0);
20689
20690 ;
20691 return 0;
20692}
20693_ACEOF
20694rm -f conftest$ac_exeext
20695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20696 (eval $ac_link) 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20702 ac_status=$?
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; }; then
20705 ac_cv_sizeof_long_long=`cat conftest.val`
20706else
20707 echo "$as_me: program exited with status $ac_status" >&5
20708echo "$as_me: failed program was:" >&5
20709sed 's/^/| /' conftest.$ac_ext >&5
20710
20711( exit $ac_status )
20712{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20713See \`config.log' for more details." >&5
20714echo "$as_me: error: cannot compute sizeof (long long), 77
20715See \`config.log' for more details." >&2;}
20716 { (exit 1); exit 1; }; }
20717fi
ac1cb8d3 20718rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20719fi
20720fi
20721rm -f conftest.val
20722else
20723 ac_cv_sizeof_long_long=0
20724fi
20725fi
20726echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20727echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20728cat >>confdefs.h <<_ACEOF
20729#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20730_ACEOF
20731
20732
20733 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20734 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20735 fi
20736 ;;
20737 * )
20738 echo "$as_me:$LINENO: checking for long long" >&5
20739echo $ECHO_N "checking for long long... $ECHO_C" >&6
20740if test "${ac_cv_type_long_long+set}" = set; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20742else
20743 cat >conftest.$ac_ext <<_ACEOF
20744/* confdefs.h. */
20745_ACEOF
20746cat confdefs.h >>conftest.$ac_ext
20747cat >>conftest.$ac_ext <<_ACEOF
20748/* end confdefs.h. */
20749$ac_includes_default
20750int
20751main ()
20752{
20753if ((long long *) 0)
20754 return 0;
20755if (sizeof (long long))
20756 return 0;
20757 ;
20758 return 0;
20759}
20760_ACEOF
20761rm -f conftest.$ac_objext
20762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20763 (eval $ac_compile) 2>conftest.er1
a848cd7e 20764 ac_status=$?
ac1cb8d3
VS
20765 grep -v '^ *+' conftest.er1 >conftest.err
20766 rm -f conftest.er1
20767 cat conftest.err >&5
a848cd7e
SC
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } &&
6954625c 20770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; } &&
20776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_cv_type_long_long=yes
20783else
20784 echo "$as_me: failed program was:" >&5
20785sed 's/^/| /' conftest.$ac_ext >&5
20786
20787ac_cv_type_long_long=no
20788fi
ac1cb8d3 20789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20790fi
20791echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20792echo "${ECHO_T}$ac_cv_type_long_long" >&6
20793
20794echo "$as_me:$LINENO: checking size of long long" >&5
20795echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20796if test "${ac_cv_sizeof_long_long+set}" = set; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
20798else
20799 if test "$ac_cv_type_long_long" = yes; then
20800 # The cast to unsigned long works around a bug in the HP C Compiler
20801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20803 # This bug is HP SR number 8606223364.
20804 if test "$cross_compiling" = yes; then
20805 # Depending upon the size, compute the lo and hi bounds.
20806cat >conftest.$ac_ext <<_ACEOF
20807/* confdefs.h. */
20808_ACEOF
20809cat confdefs.h >>conftest.$ac_ext
20810cat >>conftest.$ac_ext <<_ACEOF
20811/* end confdefs.h. */
20812$ac_includes_default
20813int
20814main ()
20815{
20816static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20817test_array [0] = 0
20818
20819 ;
20820 return 0;
20821}
20822_ACEOF
20823rm -f conftest.$ac_objext
20824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20825 (eval $ac_compile) 2>conftest.er1
a848cd7e 20826 ac_status=$?
ac1cb8d3
VS
20827 grep -v '^ *+' conftest.er1 >conftest.err
20828 rm -f conftest.er1
20829 cat conftest.err >&5
a848cd7e
SC
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } &&
6954625c 20832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20835 ac_status=$?
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; } &&
20838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; }; then
20844 ac_lo=0 ac_mid=0
20845 while :; do
20846 cat >conftest.$ac_ext <<_ACEOF
20847/* confdefs.h. */
20848_ACEOF
20849cat confdefs.h >>conftest.$ac_ext
20850cat >>conftest.$ac_ext <<_ACEOF
20851/* end confdefs.h. */
20852$ac_includes_default
20853int
20854main ()
20855{
20856static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20857test_array [0] = 0
20858
20859 ;
20860 return 0;
20861}
20862_ACEOF
20863rm -f conftest.$ac_objext
20864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20865 (eval $ac_compile) 2>conftest.er1
a848cd7e 20866 ac_status=$?
ac1cb8d3
VS
20867 grep -v '^ *+' conftest.er1 >conftest.err
20868 rm -f conftest.er1
20869 cat conftest.err >&5
a848cd7e
SC
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } &&
6954625c 20872 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20875 ac_status=$?
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; } &&
20878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20884 ac_hi=$ac_mid; break
20885else
20886 echo "$as_me: failed program was:" >&5
20887sed 's/^/| /' conftest.$ac_ext >&5
20888
20889ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20890 if test $ac_lo -le $ac_mid; then
20891 ac_lo= ac_hi=
20892 break
20893 fi
20894 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20895fi
ac1cb8d3 20896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20897 done
20898else
20899 echo "$as_me: failed program was:" >&5
20900sed 's/^/| /' conftest.$ac_ext >&5
20901
20902cat >conftest.$ac_ext <<_ACEOF
20903/* confdefs.h. */
20904_ACEOF
20905cat confdefs.h >>conftest.$ac_ext
20906cat >>conftest.$ac_ext <<_ACEOF
20907/* end confdefs.h. */
20908$ac_includes_default
20909int
20910main ()
20911{
20912static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20913test_array [0] = 0
20914
20915 ;
20916 return 0;
20917}
20918_ACEOF
20919rm -f conftest.$ac_objext
20920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20921 (eval $ac_compile) 2>conftest.er1
a848cd7e 20922 ac_status=$?
ac1cb8d3
VS
20923 grep -v '^ *+' conftest.er1 >conftest.err
20924 rm -f conftest.er1
20925 cat conftest.err >&5
a848cd7e
SC
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } &&
6954625c 20928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20931 ac_status=$?
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; } &&
20934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20937 ac_status=$?
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; }; then
20940 ac_hi=-1 ac_mid=-1
20941 while :; do
20942 cat >conftest.$ac_ext <<_ACEOF
20943/* confdefs.h. */
20944_ACEOF
20945cat confdefs.h >>conftest.$ac_ext
20946cat >>conftest.$ac_ext <<_ACEOF
20947/* end confdefs.h. */
20948$ac_includes_default
20949int
20950main ()
20951{
20952static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20953test_array [0] = 0
20954
20955 ;
20956 return 0;
20957}
20958_ACEOF
20959rm -f conftest.$ac_objext
20960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20961 (eval $ac_compile) 2>conftest.er1
a848cd7e 20962 ac_status=$?
ac1cb8d3
VS
20963 grep -v '^ *+' conftest.er1 >conftest.err
20964 rm -f conftest.er1
20965 cat conftest.err >&5
a848cd7e
SC
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } &&
6954625c 20968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970 (eval $ac_try) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; } &&
20974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20977 ac_status=$?
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 ac_lo=$ac_mid; break
20981else
20982 echo "$as_me: failed program was:" >&5
20983sed 's/^/| /' conftest.$ac_ext >&5
20984
20985ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20986 if test $ac_mid -le $ac_hi; then
20987 ac_lo= ac_hi=
20988 break
20989 fi
20990 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20991fi
ac1cb8d3 20992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20993 done
20994else
20995 echo "$as_me: failed program was:" >&5
20996sed 's/^/| /' conftest.$ac_ext >&5
20997
20998ac_lo= ac_hi=
20999fi
ac1cb8d3 21000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21001fi
ac1cb8d3 21002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21003# Binary search between lo and hi bounds.
21004while test "x$ac_lo" != "x$ac_hi"; do
21005 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21006 cat >conftest.$ac_ext <<_ACEOF
21007/* confdefs.h. */
21008_ACEOF
21009cat confdefs.h >>conftest.$ac_ext
21010cat >>conftest.$ac_ext <<_ACEOF
21011/* end confdefs.h. */
21012$ac_includes_default
21013int
21014main ()
21015{
21016static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21017test_array [0] = 0
21018
21019 ;
21020 return 0;
21021}
21022_ACEOF
21023rm -f conftest.$ac_objext
21024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21025 (eval $ac_compile) 2>conftest.er1
a848cd7e 21026 ac_status=$?
ac1cb8d3
VS
21027 grep -v '^ *+' conftest.er1 >conftest.err
21028 rm -f conftest.er1
21029 cat conftest.err >&5
a848cd7e
SC
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } &&
6954625c 21032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21034 (eval $ac_try) 2>&5
21035 ac_status=$?
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); }; } &&
21038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21040 (eval $ac_try) 2>&5
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; }; then
21044 ac_hi=$ac_mid
21045else
21046 echo "$as_me: failed program was:" >&5
21047sed 's/^/| /' conftest.$ac_ext >&5
21048
21049ac_lo=`expr '(' $ac_mid ')' + 1`
21050fi
ac1cb8d3 21051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21052done
21053case $ac_lo in
21054?*) ac_cv_sizeof_long_long=$ac_lo;;
21055'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21056See \`config.log' for more details." >&5
21057echo "$as_me: error: cannot compute sizeof (long long), 77
21058See \`config.log' for more details." >&2;}
21059 { (exit 1); exit 1; }; } ;;
21060esac
21061else
21062 if test "$cross_compiling" = yes; then
6954625c
VZ
21063 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21064echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21065 { (exit 1); exit 1; }; }
21066else
21067 cat >conftest.$ac_ext <<_ACEOF
21068/* confdefs.h. */
21069_ACEOF
21070cat confdefs.h >>conftest.$ac_ext
21071cat >>conftest.$ac_ext <<_ACEOF
21072/* end confdefs.h. */
21073$ac_includes_default
21074long longval () { return (long) (sizeof (long long)); }
21075unsigned long ulongval () { return (long) (sizeof (long long)); }
21076#include <stdio.h>
21077#include <stdlib.h>
21078int
21079main ()
21080{
21081
21082 FILE *f = fopen ("conftest.val", "w");
21083 if (! f)
21084 exit (1);
21085 if (((long) (sizeof (long long))) < 0)
21086 {
21087 long i = longval ();
21088 if (i != ((long) (sizeof (long long))))
21089 exit (1);
21090 fprintf (f, "%ld\n", i);
21091 }
21092 else
21093 {
21094 unsigned long i = ulongval ();
21095 if (i != ((long) (sizeof (long long))))
21096 exit (1);
21097 fprintf (f, "%lu\n", i);
21098 }
21099 exit (ferror (f) || fclose (f) != 0);
21100
21101 ;
21102 return 0;
21103}
21104_ACEOF
21105rm -f conftest$ac_exeext
21106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21107 (eval $ac_link) 2>&5
21108 ac_status=$?
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21116 ac_cv_sizeof_long_long=`cat conftest.val`
21117else
21118 echo "$as_me: program exited with status $ac_status" >&5
21119echo "$as_me: failed program was:" >&5
21120sed 's/^/| /' conftest.$ac_ext >&5
21121
21122( exit $ac_status )
21123{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21124See \`config.log' for more details." >&5
21125echo "$as_me: error: cannot compute sizeof (long long), 77
21126See \`config.log' for more details." >&2;}
21127 { (exit 1); exit 1; }; }
21128fi
ac1cb8d3 21129rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21130fi
21131fi
21132rm -f conftest.val
21133else
21134 ac_cv_sizeof_long_long=0
21135fi
21136fi
21137echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21138echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21139cat >>confdefs.h <<_ACEOF
21140#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21141_ACEOF
21142
21143
21144esac
21145
238ecede
MW
21146echo "$as_me:$LINENO: checking for wchar_t" >&5
21147echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21148if test "${ac_cv_type_wchar_t+set}" = set; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21150else
21151 cat >conftest.$ac_ext <<_ACEOF
21152/* confdefs.h. */
21153_ACEOF
21154cat confdefs.h >>conftest.$ac_ext
21155cat >>conftest.$ac_ext <<_ACEOF
21156/* end confdefs.h. */
21157
83d8eb47
MW
21158 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21159 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21160 # error "fake wchar_t"
21161 #endif
21162 #ifdef HAVE_WCHAR_H
21163 # ifdef __CYGWIN__
21164 # include <stddef.h>
21165 # endif
21166 # include <wchar.h>
21167 #endif
21168 #ifdef HAVE_STDLIB_H
21169 # include <stdlib.h>
21170 #endif
21171 #include <stdio.h>
21172
21173
21174
21175int
21176main ()
21177{
21178if ((wchar_t *) 0)
21179 return 0;
21180if (sizeof (wchar_t))
21181 return 0;
21182 ;
21183 return 0;
21184}
21185_ACEOF
21186rm -f conftest.$ac_objext
21187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21188 (eval $ac_compile) 2>conftest.er1
21189 ac_status=$?
21190 grep -v '^ *+' conftest.er1 >conftest.err
21191 rm -f conftest.er1
21192 cat conftest.err >&5
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); } &&
6954625c 21195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21198 ac_status=$?
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; } &&
21201 { ac_try='test -s conftest.$ac_objext'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21204 ac_status=$?
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; }; then
21207 ac_cv_type_wchar_t=yes
21208else
21209 echo "$as_me: failed program was:" >&5
21210sed 's/^/| /' conftest.$ac_ext >&5
21211
21212ac_cv_type_wchar_t=no
21213fi
21214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21215fi
21216echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21217echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21218
a848cd7e
SC
21219echo "$as_me:$LINENO: checking size of wchar_t" >&5
21220echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21221if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21223else
238ecede
MW
21224 if test "$ac_cv_type_wchar_t" = yes; then
21225 # The cast to unsigned long works around a bug in the HP C Compiler
21226 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21227 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21228 # This bug is HP SR number 8606223364.
21229 if test "$cross_compiling" = yes; then
21230 # Depending upon the size, compute the lo and hi bounds.
21231cat >conftest.$ac_ext <<_ACEOF
21232/* confdefs.h. */
21233_ACEOF
21234cat confdefs.h >>conftest.$ac_ext
21235cat >>conftest.$ac_ext <<_ACEOF
21236/* end confdefs.h. */
21237
83d8eb47
MW
21238 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21239 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21240 # error "fake wchar_t"
21241 #endif
21242 #ifdef HAVE_WCHAR_H
21243 # ifdef __CYGWIN__
21244 # include <stddef.h>
21245 # endif
21246 # include <wchar.h>
21247 #endif
21248 #ifdef HAVE_STDLIB_H
21249 # include <stdlib.h>
21250 #endif
21251 #include <stdio.h>
21252
21253
21254
21255int
21256main ()
21257{
21258static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21259test_array [0] = 0
21260
21261 ;
21262 return 0;
21263}
21264_ACEOF
21265rm -f conftest.$ac_objext
21266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21267 (eval $ac_compile) 2>conftest.er1
21268 ac_status=$?
21269 grep -v '^ *+' conftest.er1 >conftest.err
21270 rm -f conftest.er1
21271 cat conftest.err >&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); } &&
6954625c 21274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276 (eval $ac_try) 2>&5
21277 ac_status=$?
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; } &&
21280 { ac_try='test -s conftest.$ac_objext'
21281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21282 (eval $ac_try) 2>&5
21283 ac_status=$?
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); }; }; then
21286 ac_lo=0 ac_mid=0
21287 while :; do
21288 cat >conftest.$ac_ext <<_ACEOF
21289/* confdefs.h. */
21290_ACEOF
21291cat confdefs.h >>conftest.$ac_ext
21292cat >>conftest.$ac_ext <<_ACEOF
21293/* end confdefs.h. */
21294
83d8eb47
MW
21295 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21296 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21297 # error "fake wchar_t"
21298 #endif
21299 #ifdef HAVE_WCHAR_H
21300 # ifdef __CYGWIN__
21301 # include <stddef.h>
21302 # endif
21303 # include <wchar.h>
21304 #endif
21305 #ifdef HAVE_STDLIB_H
21306 # include <stdlib.h>
21307 #endif
21308 #include <stdio.h>
21309
21310
21311
21312int
21313main ()
21314{
21315static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21316test_array [0] = 0
21317
21318 ;
21319 return 0;
21320}
21321_ACEOF
21322rm -f conftest.$ac_objext
21323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21324 (eval $ac_compile) 2>conftest.er1
21325 ac_status=$?
21326 grep -v '^ *+' conftest.er1 >conftest.err
21327 rm -f conftest.er1
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } &&
6954625c 21331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21334 ac_status=$?
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; } &&
21337 { ac_try='test -s conftest.$ac_objext'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21340 ac_status=$?
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
21343 ac_hi=$ac_mid; break
21344else
21345 echo "$as_me: failed program was:" >&5
21346sed 's/^/| /' conftest.$ac_ext >&5
21347
21348ac_lo=`expr $ac_mid + 1`
21349 if test $ac_lo -le $ac_mid; then
21350 ac_lo= ac_hi=
21351 break
21352 fi
21353 ac_mid=`expr 2 '*' $ac_mid + 1`
21354fi
21355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21356 done
21357else
21358 echo "$as_me: failed program was:" >&5
21359sed 's/^/| /' conftest.$ac_ext >&5
21360
21361cat >conftest.$ac_ext <<_ACEOF
21362/* confdefs.h. */
21363_ACEOF
21364cat confdefs.h >>conftest.$ac_ext
21365cat >>conftest.$ac_ext <<_ACEOF
21366/* end confdefs.h. */
21367
83d8eb47
MW
21368 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21369 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21370 # error "fake wchar_t"
21371 #endif
21372 #ifdef HAVE_WCHAR_H
21373 # ifdef __CYGWIN__
21374 # include <stddef.h>
21375 # endif
21376 # include <wchar.h>
21377 #endif
21378 #ifdef HAVE_STDLIB_H
21379 # include <stdlib.h>
21380 #endif
21381 #include <stdio.h>
21382
21383
21384
21385int
21386main ()
21387{
21388static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21389test_array [0] = 0
21390
21391 ;
21392 return 0;
21393}
21394_ACEOF
21395rm -f conftest.$ac_objext
21396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21397 (eval $ac_compile) 2>conftest.er1
21398 ac_status=$?
21399 grep -v '^ *+' conftest.er1 >conftest.err
21400 rm -f conftest.er1
21401 cat conftest.err >&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } &&
6954625c 21404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21406 (eval $ac_try) 2>&5
21407 ac_status=$?
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); }; } &&
21410 { ac_try='test -s conftest.$ac_objext'
21411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412 (eval $ac_try) 2>&5
21413 ac_status=$?
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; }; then
21416 ac_hi=-1 ac_mid=-1
21417 while :; do
21418 cat >conftest.$ac_ext <<_ACEOF
21419/* confdefs.h. */
21420_ACEOF
21421cat confdefs.h >>conftest.$ac_ext
21422cat >>conftest.$ac_ext <<_ACEOF
21423/* end confdefs.h. */
21424
83d8eb47
MW
21425 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21426 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21427 # error "fake wchar_t"
21428 #endif
21429 #ifdef HAVE_WCHAR_H
21430 # ifdef __CYGWIN__
21431 # include <stddef.h>
21432 # endif
21433 # include <wchar.h>
21434 #endif
21435 #ifdef HAVE_STDLIB_H
21436 # include <stdlib.h>
21437 #endif
21438 #include <stdio.h>
21439
21440
21441
21442int
21443main ()
21444{
21445static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21446test_array [0] = 0
21447
21448 ;
21449 return 0;
21450}
21451_ACEOF
21452rm -f conftest.$ac_objext
21453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21454 (eval $ac_compile) 2>conftest.er1
21455 ac_status=$?
21456 grep -v '^ *+' conftest.er1 >conftest.err
21457 rm -f conftest.er1
21458 cat conftest.err >&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); } &&
6954625c 21461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463 (eval $ac_try) 2>&5
21464 ac_status=$?
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; } &&
21467 { ac_try='test -s conftest.$ac_objext'
21468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469 (eval $ac_try) 2>&5
21470 ac_status=$?
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); }; }; then
21473 ac_lo=$ac_mid; break
21474else
21475 echo "$as_me: failed program was:" >&5
21476sed 's/^/| /' conftest.$ac_ext >&5
21477
21478ac_hi=`expr '(' $ac_mid ')' - 1`
21479 if test $ac_mid -le $ac_hi; then
21480 ac_lo= ac_hi=
21481 break
21482 fi
21483 ac_mid=`expr 2 '*' $ac_mid`
21484fi
21485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21486 done
21487else
21488 echo "$as_me: failed program was:" >&5
21489sed 's/^/| /' conftest.$ac_ext >&5
21490
21491ac_lo= ac_hi=
21492fi
21493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21494fi
21495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21496# Binary search between lo and hi bounds.
21497while test "x$ac_lo" != "x$ac_hi"; do
21498 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21499 cat >conftest.$ac_ext <<_ACEOF
21500/* confdefs.h. */
21501_ACEOF
21502cat confdefs.h >>conftest.$ac_ext
21503cat >>conftest.$ac_ext <<_ACEOF
21504/* end confdefs.h. */
21505
83d8eb47
MW
21506 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21507 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21508 # error "fake wchar_t"
21509 #endif
21510 #ifdef HAVE_WCHAR_H
21511 # ifdef __CYGWIN__
21512 # include <stddef.h>
21513 # endif
21514 # include <wchar.h>
21515 #endif
21516 #ifdef HAVE_STDLIB_H
21517 # include <stdlib.h>
21518 #endif
21519 #include <stdio.h>
a848cd7e 21520
a848cd7e 21521
a848cd7e 21522
238ecede
MW
21523int
21524main ()
21525{
21526static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21527test_array [0] = 0
a848cd7e 21528
238ecede
MW
21529 ;
21530 return 0;
21531}
21532_ACEOF
21533rm -f conftest.$ac_objext
21534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21535 (eval $ac_compile) 2>conftest.er1
21536 ac_status=$?
21537 grep -v '^ *+' conftest.er1 >conftest.err
21538 rm -f conftest.er1
21539 cat conftest.err >&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } &&
6954625c 21542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; } &&
21548 { ac_try='test -s conftest.$ac_objext'
21549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21551 ac_status=$?
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; }; then
21554 ac_hi=$ac_mid
21555else
21556 echo "$as_me: failed program was:" >&5
21557sed 's/^/| /' conftest.$ac_ext >&5
21558
21559ac_lo=`expr '(' $ac_mid ')' + 1`
21560fi
21561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21562done
21563case $ac_lo in
21564?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21565'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21566See \`config.log' for more details." >&5
21567echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21568See \`config.log' for more details." >&2;}
21569 { (exit 1); exit 1; }; } ;;
21570esac
21571else
21572 if test "$cross_compiling" = yes; then
6954625c
VZ
21573 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21574echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21575 { (exit 1); exit 1; }; }
a848cd7e
SC
21576else
21577 cat >conftest.$ac_ext <<_ACEOF
21578/* confdefs.h. */
21579_ACEOF
21580cat confdefs.h >>conftest.$ac_ext
21581cat >>conftest.$ac_ext <<_ACEOF
21582/* end confdefs.h. */
21583
83d8eb47
MW
21584 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21585 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21586 # error "fake wchar_t"
21587 #endif
21588 #ifdef HAVE_WCHAR_H
21589 # ifdef __CYGWIN__
21590 # include <stddef.h>
21591 # endif
21592 # include <wchar.h>
21593 #endif
21594 #ifdef HAVE_STDLIB_H
21595 # include <stdlib.h>
21596 #endif
21597 #include <stdio.h>
21598
21599
21600
21601long longval () { return (long) (sizeof (wchar_t)); }
21602unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21603#include <stdio.h>
21604#include <stdlib.h>
21605int
21606main ()
21607{
a848cd7e 21608
238ecede
MW
21609 FILE *f = fopen ("conftest.val", "w");
21610 if (! f)
21611 exit (1);
21612 if (((long) (sizeof (wchar_t))) < 0)
21613 {
21614 long i = longval ();
21615 if (i != ((long) (sizeof (wchar_t))))
21616 exit (1);
21617 fprintf (f, "%ld\n", i);
21618 }
21619 else
21620 {
21621 unsigned long i = ulongval ();
21622 if (i != ((long) (sizeof (wchar_t))))
21623 exit (1);
21624 fprintf (f, "%lu\n", i);
21625 }
21626 exit (ferror (f) || fclose (f) != 0);
21627
21628 ;
21629 return 0;
21630}
a848cd7e
SC
21631_ACEOF
21632rm -f conftest$ac_exeext
21633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21634 (eval $ac_link) 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21640 ac_status=$?
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
238ecede 21643 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21644else
21645 echo "$as_me: program exited with status $ac_status" >&5
21646echo "$as_me: failed program was:" >&5
21647sed 's/^/| /' conftest.$ac_ext >&5
21648
21649( exit $ac_status )
238ecede
MW
21650{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21651See \`config.log' for more details." >&5
21652echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21653See \`config.log' for more details." >&2;}
21654 { (exit 1); exit 1; }; }
a848cd7e 21655fi
ac1cb8d3 21656rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21657fi
a848cd7e 21658fi
238ecede
MW
21659rm -f conftest.val
21660else
21661 ac_cv_sizeof_wchar_t=0
21662fi
21663fi
21664echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21665echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21666cat >>confdefs.h <<_ACEOF
238ecede 21667#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21668_ACEOF
21669
21670
47a7e797
MW
21671if test "$ac_cv_sizeof_wchar_t" != "0"; then
21672 wxUSE_WCHAR_T=yes
21673else
21674 wxUSE_WCHAR_T=no
21675fi
238ecede 21676
ba3d13e1
VZ
21677echo "$as_me:$LINENO: checking for va_copy" >&5
21678echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21679if test "${wx_cv_func_va_copy+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21681else
21682
21683 cat >conftest.$ac_ext <<_ACEOF
21684
21685 #include <stdarg.h>
21686 void foo(char *f, ...)
21687 {
21688 va_list ap1, ap2;
21689 va_start(ap1, f);
21690 va_copy(ap2, ap1);
21691 va_end(ap2);
21692 va_end(ap1);
21693 }
5886b072
VZ
21694 int main()
21695 {
b902e639
VZ
21696 foo("hi", 17);
21697 return 0;
5886b072 21698 }
ba3d13e1
VZ
21699_ACEOF
21700rm -f conftest.$ac_objext conftest$ac_exeext
21701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21702 (eval $ac_link) 2>conftest.er1
21703 ac_status=$?
21704 grep -v '^ *+' conftest.er1 >conftest.err
21705 rm -f conftest.er1
21706 cat conftest.err >&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } &&
6954625c 21709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
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_exeext'
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 wx_cv_func_va_copy=yes
21722else
21723 echo "$as_me: failed program was:" >&5
21724sed 's/^/| /' conftest.$ac_ext >&5
21725
21726wx_cv_func_va_copy=no
21727
21728fi
21729rm -f conftest.err conftest.$ac_objext \
21730 conftest$ac_exeext conftest.$ac_ext
21731
21732
21733fi
21734echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21735echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21736
21737if test $wx_cv_func_va_copy = "yes"; then
21738 cat >>confdefs.h <<\_ACEOF
21739#define HAVE_VA_COPY 1
21740_ACEOF
21741
21742else
21743 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21744echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21745if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21747else
21748
21749 if test "$cross_compiling" = yes; then
21750 wx_cv_type_va_list_lvalue=yes
21751
21752else
21753 cat >conftest.$ac_ext <<_ACEOF
21754
21755 #include <stdarg.h>
21756 int foo(char *f, ...)
21757 {
21758 va_list ap1, ap2;
21759 va_start(ap1, f);
21760 ap2 = ap1;
21761 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21762 return 1;
21763 va_end(ap2);
21764 va_end(ap1);
21765 return 0;
21766 }
21767 int main()
21768 {
21769 return foo("hi", 17);
21770 }
21771_ACEOF
21772rm -f conftest$ac_exeext
21773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21774 (eval $ac_link) 2>&5
21775 ac_status=$?
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779 (eval $ac_try) 2>&5
21780 ac_status=$?
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }; then
21783 wx_cv_type_va_list_lvalue=yes
21784else
21785 echo "$as_me: program exited with status $ac_status" >&5
21786echo "$as_me: failed program was:" >&5
21787sed 's/^/| /' conftest.$ac_ext >&5
21788
21789( exit $ac_status )
21790wx_cv_type_va_list_lvalue=no
21791fi
21792rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21793fi
21794
21795
21796fi
21797echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21798echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21799
21800 if test $wx_cv_type_va_list_lvalue != "yes"; then
21801 cat >>confdefs.h <<\_ACEOF
21802#define VA_LIST_IS_ARRAY 1
21803_ACEOF
21804
21805 fi
21806fi
21807
a848cd7e
SC
21808# Check whether --enable-largefile or --disable-largefile was given.
21809if test "${enable_largefile+set}" = set; then
21810 enableval="$enable_largefile"
21811
21812fi;
21813if test "$enable_largefile" != no; then
21814 wx_largefile=no
21815
21816 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21817echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21818if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21819 echo $ECHO_N "(cached) $ECHO_C" >&6
21820else
21821
21822 cat >conftest.$ac_ext <<_ACEOF
21823/* confdefs.h. */
21824_ACEOF
21825cat confdefs.h >>conftest.$ac_ext
21826cat >>conftest.$ac_ext <<_ACEOF
21827/* end confdefs.h. */
21828#define _FILE_OFFSET_BITS 64
21829 #include <sys/types.h>
21830int
21831main ()
21832{
21833typedef struct {
21834 unsigned int field: sizeof(off_t) == 8;
21835} wxlf;
21836
21837 ;
21838 return 0;
21839}
21840_ACEOF
21841rm -f conftest.$ac_objext
21842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21843 (eval $ac_compile) 2>conftest.er1
a848cd7e 21844 ac_status=$?
ac1cb8d3
VS
21845 grep -v '^ *+' conftest.er1 >conftest.err
21846 rm -f conftest.er1
21847 cat conftest.err >&5
a848cd7e
SC
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } &&
6954625c 21850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21852 (eval $ac_try) 2>&5
21853 ac_status=$?
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); }; } &&
21856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858 (eval $ac_try) 2>&5
21859 ac_status=$?
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; }; then
21862 ac_cv_sys_file_offset_bits=64
21863else
21864 echo "$as_me: failed program was:" >&5
21865sed 's/^/| /' conftest.$ac_ext >&5
21866
21867ac_cv_sys_file_offset_bits=no
21868fi
ac1cb8d3 21869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21870
21871
21872fi
21873echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21874echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21875
21876 if test "$ac_cv_sys_file_offset_bits" != no; then
21877 wx_largefile=yes
21878 cat >>confdefs.h <<_ACEOF
21879#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21880_ACEOF
21881
21882 fi
21883
21884 if test "x$wx_largefile" != "xyes"; then
21885
21886 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21887echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21888if test "${ac_cv_sys_large_files+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21890else
21891
21892 cat >conftest.$ac_ext <<_ACEOF
21893/* confdefs.h. */
21894_ACEOF
21895cat confdefs.h >>conftest.$ac_ext
21896cat >>conftest.$ac_ext <<_ACEOF
21897/* end confdefs.h. */
21898#define _LARGE_FILES 1
21899 #include <sys/types.h>
21900int
21901main ()
21902{
21903typedef struct {
21904 unsigned int field: sizeof(off_t) == 8;
21905} wxlf;
21906
21907 ;
21908 return 0;
21909}
21910_ACEOF
21911rm -f conftest.$ac_objext
21912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21913 (eval $ac_compile) 2>conftest.er1
a848cd7e 21914 ac_status=$?
ac1cb8d3
VS
21915 grep -v '^ *+' conftest.er1 >conftest.err
21916 rm -f conftest.er1
21917 cat conftest.err >&5
a848cd7e
SC
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } &&
6954625c 21920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21922 (eval $ac_try) 2>&5
21923 ac_status=$?
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); }; } &&
21926 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21929 ac_status=$?
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; }; then
21932 ac_cv_sys_large_files=1
21933else
21934 echo "$as_me: failed program was:" >&5
21935sed 's/^/| /' conftest.$ac_ext >&5
21936
21937ac_cv_sys_large_files=no
21938fi
ac1cb8d3 21939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21940
21941
21942fi
21943echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21944echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21945
21946 if test "$ac_cv_sys_large_files" != no; then
21947 wx_largefile=yes
21948 cat >>confdefs.h <<_ACEOF
21949#define _LARGE_FILES $ac_cv_sys_large_files
21950_ACEOF
21951
21952 fi
21953
21954 fi
21955
21956 echo "$as_me:$LINENO: checking if large file support is available" >&5
21957echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21958 if test "x$wx_largefile" = "xyes"; then
21959 cat >>confdefs.h <<\_ACEOF
21960#define HAVE_LARGEFILE_SUPPORT 1
21961_ACEOF
21962
21963 fi
21964 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21965echo "${ECHO_T}$wx_largefile" >&6
21966fi
21967
5b674b9d
DE
21968
21969if test "x$wx_largefile" = "xyes"; then
21970 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21971 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21972
21973 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21974 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21975echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21976if test "${wx_cv_STDC_EXT_required+set}" = set; then
21977 echo $ECHO_N "(cached) $ECHO_C" >&6
21978else
21979
00421666
MW
21980 cat >conftest.$ac_ext <<_ACEOF
21981/* confdefs.h. */
21982_ACEOF
21983cat confdefs.h >>conftest.$ac_ext
21984cat >>conftest.$ac_ext <<_ACEOF
21985/* end confdefs.h. */
21986
21987int
21988main ()
21989{
21990
21991 #ifndef __STDC_EXT__
21992 choke me
21993 #endif
21994
21995 ;
21996 return 0;
21997}
21998_ACEOF
21999rm -f conftest.$ac_objext
22000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22001 (eval $ac_compile) 2>conftest.er1
22002 ac_status=$?
22003 grep -v '^ *+' conftest.er1 >conftest.err
22004 rm -f conftest.er1
22005 cat conftest.err >&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } &&
6954625c 22008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; } &&
22014 { ac_try='test -s conftest.$ac_objext'
22015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016 (eval $ac_try) 2>&5
22017 ac_status=$?
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
22020 wx_cv_STDC_EXT_required=no
22021else
22022 echo "$as_me: failed program was:" >&5
22023sed 's/^/| /' conftest.$ac_ext >&5
22024
22025wx_cv_STDC_EXT_required=yes
22026
22027fi
22028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22029
22030
22031fi
22032echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22033echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22034 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22035 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22036 fi
22037 fi
5b674b9d 22038 else
5ff751d6 22039 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22040 fi
22041 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22042echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22043if test "${ac_cv_sys_largefile_source+set}" = set; then
22044 echo $ECHO_N "(cached) $ECHO_C" >&6
22045else
22046 while :; do
22047 ac_cv_sys_largefile_source=no
22048 cat >conftest.$ac_ext <<_ACEOF
22049/* confdefs.h. */
22050_ACEOF
22051cat confdefs.h >>conftest.$ac_ext
22052cat >>conftest.$ac_ext <<_ACEOF
22053/* end confdefs.h. */
22054#include <stdio.h>
22055int
22056main ()
22057{
22058return !fseeko;
22059 ;
22060 return 0;
22061}
22062_ACEOF
22063rm -f conftest.$ac_objext
22064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22065 (eval $ac_compile) 2>conftest.er1
22066 ac_status=$?
22067 grep -v '^ *+' conftest.er1 >conftest.err
22068 rm -f conftest.er1
22069 cat conftest.err >&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); } &&
6954625c 22072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22074 (eval $ac_try) 2>&5
22075 ac_status=$?
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); }; } &&
22078 { ac_try='test -s conftest.$ac_objext'
22079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 (eval $ac_try) 2>&5
22081 ac_status=$?
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; }; then
22084 break
22085else
22086 echo "$as_me: failed program was:" >&5
22087sed 's/^/| /' conftest.$ac_ext >&5
22088
22089fi
22090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22091 cat >conftest.$ac_ext <<_ACEOF
22092/* confdefs.h. */
22093_ACEOF
22094cat confdefs.h >>conftest.$ac_ext
22095cat >>conftest.$ac_ext <<_ACEOF
22096/* end confdefs.h. */
22097#define _LARGEFILE_SOURCE 1
22098#include <stdio.h>
22099int
22100main ()
22101{
22102return !fseeko;
22103 ;
22104 return 0;
22105}
22106_ACEOF
22107rm -f conftest.$ac_objext
22108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22109 (eval $ac_compile) 2>conftest.er1
22110 ac_status=$?
22111 grep -v '^ *+' conftest.er1 >conftest.err
22112 rm -f conftest.er1
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } &&
6954625c 22116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118 (eval $ac_try) 2>&5
22119 ac_status=$?
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; } &&
22122 { ac_try='test -s conftest.$ac_objext'
22123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124 (eval $ac_try) 2>&5
22125 ac_status=$?
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; }; then
22128 ac_cv_sys_largefile_source=1; break
22129else
22130 echo "$as_me: failed program was:" >&5
22131sed 's/^/| /' conftest.$ac_ext >&5
22132
22133fi
22134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22135 break
22136done
22137fi
22138echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22139echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22140if test "$ac_cv_sys_largefile_source" != no; then
22141
22142cat >>confdefs.h <<_ACEOF
22143#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22144_ACEOF
22145
22146fi
22147rm -f conftest*
22148
22149# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22150# in glibc 2.1.3, but that breaks too many other things.
22151# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22152echo "$as_me:$LINENO: checking for fseeko" >&5
22153echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22154if test "${ac_cv_func_fseeko+set}" = set; then
22155 echo $ECHO_N "(cached) $ECHO_C" >&6
22156else
22157 cat >conftest.$ac_ext <<_ACEOF
22158/* confdefs.h. */
22159_ACEOF
22160cat confdefs.h >>conftest.$ac_ext
22161cat >>conftest.$ac_ext <<_ACEOF
22162/* end confdefs.h. */
22163#include <stdio.h>
22164int
22165main ()
22166{
22167return fseeko && fseeko (stdin, 0, 0);
22168 ;
22169 return 0;
22170}
22171_ACEOF
22172rm -f conftest.$ac_objext conftest$ac_exeext
22173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22174 (eval $ac_link) 2>conftest.er1
22175 ac_status=$?
22176 grep -v '^ *+' conftest.er1 >conftest.err
22177 rm -f conftest.er1
22178 cat conftest.err >&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } &&
6954625c 22181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
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_exeext'
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 ac_cv_func_fseeko=yes
22194else
22195 echo "$as_me: failed program was:" >&5
22196sed 's/^/| /' conftest.$ac_ext >&5
22197
22198ac_cv_func_fseeko=no
22199fi
22200rm -f conftest.err conftest.$ac_objext \
22201 conftest$ac_exeext conftest.$ac_ext
22202fi
22203echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22204echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22205if test $ac_cv_func_fseeko = yes; then
22206
22207cat >>confdefs.h <<\_ACEOF
22208#define HAVE_FSEEKO 1
22209_ACEOF
22210
22211fi
22212
5b674b9d 22213 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22214 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22215 fi
a848cd7e
SC
22216fi
22217
22218echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22219echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22220if test "${ac_cv_c_bigendian+set}" = set; then
22221 echo $ECHO_N "(cached) $ECHO_C" >&6
22222else
22223 ac_cv_c_bigendian=unknown
22224# See if sys/param.h defines the BYTE_ORDER macro.
22225cat >conftest.$ac_ext <<_ACEOF
22226/* confdefs.h. */
22227_ACEOF
22228cat confdefs.h >>conftest.$ac_ext
22229cat >>conftest.$ac_ext <<_ACEOF
22230/* end confdefs.h. */
22231#include <sys/types.h>
22232#include <sys/param.h>
22233int
22234main ()
22235{
22236
22237#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22238 bogus endian macros
22239#endif
22240 ;
22241 return 0;
22242}
22243_ACEOF
22244rm -f conftest.$ac_objext
22245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22246 (eval $ac_compile) 2>conftest.er1
a848cd7e 22247 ac_status=$?
ac1cb8d3
VS
22248 grep -v '^ *+' conftest.er1 >conftest.err
22249 rm -f conftest.er1
22250 cat conftest.err >&5
a848cd7e
SC
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } &&
6954625c 22253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22256 ac_status=$?
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; } &&
22259 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261 (eval $ac_try) 2>&5
22262 ac_status=$?
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); }; }; then
22265 # It does; now see whether it defined to BIG_ENDIAN or not.
22266cat >conftest.$ac_ext <<_ACEOF
22267/* confdefs.h. */
22268_ACEOF
22269cat confdefs.h >>conftest.$ac_ext
22270cat >>conftest.$ac_ext <<_ACEOF
22271/* end confdefs.h. */
22272#include <sys/types.h>
22273#include <sys/param.h>
22274int
22275main ()
22276{
22277
22278#if BYTE_ORDER != BIG_ENDIAN
22279 not big endian
22280#endif
22281 ;
22282 return 0;
22283}
22284_ACEOF
22285rm -f conftest.$ac_objext
22286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22287 (eval $ac_compile) 2>conftest.er1
a848cd7e 22288 ac_status=$?
ac1cb8d3
VS
22289 grep -v '^ *+' conftest.er1 >conftest.err
22290 rm -f conftest.er1
22291 cat conftest.err >&5
a848cd7e
SC
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } &&
6954625c 22294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22297 ac_status=$?
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; } &&
22300 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302 (eval $ac_try) 2>&5
22303 ac_status=$?
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); }; }; then
22306 ac_cv_c_bigendian=yes
22307else
22308 echo "$as_me: failed program was:" >&5
22309sed 's/^/| /' conftest.$ac_ext >&5
22310
22311ac_cv_c_bigendian=no
22312fi
ac1cb8d3 22313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22314else
22315 echo "$as_me: failed program was:" >&5
22316sed 's/^/| /' conftest.$ac_ext >&5
22317
22318fi
ac1cb8d3 22319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22320if test $ac_cv_c_bigendian = unknown; then
22321if test "$cross_compiling" = yes; then
22322 ac_cv_c_bigendian=unknown
22323else
22324 cat >conftest.$ac_ext <<_ACEOF
22325/* confdefs.h. */
22326_ACEOF
22327cat confdefs.h >>conftest.$ac_ext
22328cat >>conftest.$ac_ext <<_ACEOF
22329/* end confdefs.h. */
22330main () {
22331 /* Are we little or big endian? From Harbison&Steele. */
22332 union
22333 {
22334 long l;
22335 char c[sizeof (long)];
22336 } u;
22337 u.l = 1;
22338 exit (u.c[sizeof (long) - 1] == 1);
22339}
22340_ACEOF
22341rm -f conftest$ac_exeext
22342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22343 (eval $ac_link) 2>&5
22344 ac_status=$?
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348 (eval $ac_try) 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; }; then
22352 ac_cv_c_bigendian=no
22353else
22354 echo "$as_me: program exited with status $ac_status" >&5
22355echo "$as_me: failed program was:" >&5
22356sed 's/^/| /' conftest.$ac_ext >&5
22357
22358( exit $ac_status )
22359ac_cv_c_bigendian=yes
22360fi
ac1cb8d3 22361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22362fi
22363fi
22364fi
22365echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22366echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22367if test $ac_cv_c_bigendian = unknown; then
22368 { 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
22369echo "$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;}
22370fi
22371if test $ac_cv_c_bigendian = yes; then
22372 cat >>confdefs.h <<\_ACEOF
22373#define WORDS_BIGENDIAN 1
22374_ACEOF
22375
22376fi
22377
22378
a848cd7e
SC
22379
22380
22381
22382 ac_ext=cc
22383ac_cpp='$CXXCPP $CPPFLAGS'
22384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22387
22388
22389
22390for ac_header in iostream
22391do
22392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22393if eval "test \"\${$as_ac_Header+set}\" = set"; then
22394 echo "$as_me:$LINENO: checking for $ac_header" >&5
22395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22396if eval "test \"\${$as_ac_Header+set}\" = set"; then
22397 echo $ECHO_N "(cached) $ECHO_C" >&6
22398fi
22399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22401else
22402 # Is the header compilable?
22403echo "$as_me:$LINENO: checking $ac_header usability" >&5
22404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22405cat >conftest.$ac_ext <<_ACEOF
22406/* confdefs.h. */
22407_ACEOF
22408cat confdefs.h >>conftest.$ac_ext
22409cat >>conftest.$ac_ext <<_ACEOF
22410/* end confdefs.h. */
22411$ac_includes_default
22412#include <$ac_header>
22413_ACEOF
22414rm -f conftest.$ac_objext
22415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22416 (eval $ac_compile) 2>conftest.er1
a848cd7e 22417 ac_status=$?
ac1cb8d3
VS
22418 grep -v '^ *+' conftest.er1 >conftest.err
22419 rm -f conftest.er1
22420 cat conftest.err >&5
a848cd7e
SC
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } &&
6954625c 22423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22425 (eval $ac_try) 2>&5
22426 ac_status=$?
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); }; } &&
22429 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22432 ac_status=$?
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; }; then
22435 ac_header_compiler=yes
22436else
22437 echo "$as_me: failed program was:" >&5
22438sed 's/^/| /' conftest.$ac_ext >&5
22439
22440ac_header_compiler=no
22441fi
ac1cb8d3 22442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22443echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22444echo "${ECHO_T}$ac_header_compiler" >&6
22445
22446# Is the header present?
22447echo "$as_me:$LINENO: checking $ac_header presence" >&5
22448echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22449cat >conftest.$ac_ext <<_ACEOF
22450/* confdefs.h. */
22451_ACEOF
22452cat confdefs.h >>conftest.$ac_ext
22453cat >>conftest.$ac_ext <<_ACEOF
22454/* end confdefs.h. */
22455#include <$ac_header>
22456_ACEOF
22457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22459 ac_status=$?
22460 grep -v '^ *+' conftest.er1 >conftest.err
22461 rm -f conftest.er1
22462 cat conftest.err >&5
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); } >/dev/null; then
22465 if test -s conftest.err; then
22466 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22467 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22468 else
22469 ac_cpp_err=
22470 fi
22471else
22472 ac_cpp_err=yes
22473fi
22474if test -z "$ac_cpp_err"; then
22475 ac_header_preproc=yes
22476else
22477 echo "$as_me: failed program was:" >&5
22478sed 's/^/| /' conftest.$ac_ext >&5
22479
22480 ac_header_preproc=no
22481fi
22482rm -f conftest.err conftest.$ac_ext
22483echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22484echo "${ECHO_T}$ac_header_preproc" >&6
22485
22486# So? What about this header?
ac1cb8d3
VS
22487case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22488 yes:no: )
a848cd7e
SC
22489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22490echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22492echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22493 ac_header_preproc=yes
a848cd7e 22494 ;;
ac1cb8d3 22495 no:yes:* )
a848cd7e
SC
22496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22497echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22499echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22501echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22503echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22507echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22508 (
22509 cat <<\_ASBOX
ac1cb8d3
VS
22510## ----------------------------------------- ##
22511## Report this to wx-dev@lists.wxwidgets.org ##
22512## ----------------------------------------- ##
a848cd7e
SC
22513_ASBOX
22514 ) |
22515 sed "s/^/$as_me: WARNING: /" >&2
22516 ;;
22517esac
22518echo "$as_me:$LINENO: checking for $ac_header" >&5
22519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22520if eval "test \"\${$as_ac_Header+set}\" = set"; then
22521 echo $ECHO_N "(cached) $ECHO_C" >&6
22522else
ac1cb8d3 22523 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22524fi
22525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22527
22528fi
22529if test `eval echo '${'$as_ac_Header'}'` = yes; then
22530 cat >>confdefs.h <<_ACEOF
22531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22532_ACEOF
22533
22534fi
22535
22536done
22537
22538
22539 if test "$ac_cv_header_iostream" = "yes" ; then
22540 :
22541 else
22542 cat >>confdefs.h <<\_ACEOF
22543#define wxUSE_IOSTREAMH 1
22544_ACEOF
22545
22546 fi
22547
5d7b7554
VZ
22548 ac_ext=cc
22549ac_cpp='$CXXCPP $CPPFLAGS'
22550ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22551ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22552ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22553
22554
22555
22556
22557 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22558echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22559if test "${wx_cv_cpp_bool+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22561else
22562
22563
22564
22565 ac_ext=cc
22566ac_cpp='$CXXCPP $CPPFLAGS'
22567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22570
22571
22572 cat >conftest.$ac_ext <<_ACEOF
22573/* confdefs.h. */
22574_ACEOF
22575cat confdefs.h >>conftest.$ac_ext
22576cat >>conftest.$ac_ext <<_ACEOF
22577/* end confdefs.h. */
22578
22579
22580int
22581main ()
22582{
22583
22584 bool b = true;
22585
22586 return 0;
22587
22588 ;
22589 return 0;
22590}
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); } &&
6954625c 22601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22603 (eval $ac_try) 2>&5
22604 ac_status=$?
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); }; } &&
22607 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22609 (eval $ac_try) 2>&5
22610 ac_status=$?
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); }; }; then
22613
22614 wx_cv_cpp_bool=yes
22615
22616else
22617 echo "$as_me: failed program was:" >&5
22618sed 's/^/| /' conftest.$ac_ext >&5
22619
22620
22621 wx_cv_cpp_bool=no
22622
22623
22624fi
ac1cb8d3 22625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22626
5d7b7554
VZ
22627 ac_ext=cc
22628ac_cpp='$CXXCPP $CPPFLAGS'
22629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22632
22633
22634fi
22635echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22636echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22637
22638 if test "$wx_cv_cpp_bool" = "yes"; then
22639 cat >>confdefs.h <<\_ACEOF
22640#define HAVE_BOOL 1
22641_ACEOF
22642
22643 fi
22644
22645
22646
22647 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22648echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22649if test "${wx_cv_explicit+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651else
22652
22653
22654
22655 ac_ext=cc
22656ac_cpp='$CXXCPP $CPPFLAGS'
22657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22660
22661
22662 cat >conftest.$ac_ext <<_ACEOF
22663/* confdefs.h. */
22664_ACEOF
22665cat confdefs.h >>conftest.$ac_ext
22666cat >>conftest.$ac_ext <<_ACEOF
22667/* end confdefs.h. */
22668
22669 class Foo { public: explicit Foo(int) {} };
22670
22671int
22672main ()
22673{
22674
22675 return 0;
22676
22677 ;
22678 return 0;
22679}
22680_ACEOF
22681rm -f conftest.$ac_objext
22682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22683 (eval $ac_compile) 2>conftest.er1
a848cd7e 22684 ac_status=$?
ac1cb8d3
VS
22685 grep -v '^ *+' conftest.er1 >conftest.err
22686 rm -f conftest.er1
22687 cat conftest.err >&5
a848cd7e
SC
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); } &&
6954625c 22690 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22692 (eval $ac_try) 2>&5
22693 ac_status=$?
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); }; } &&
22696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22698 (eval $ac_try) 2>&5
22699 ac_status=$?
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); }; }; then
22702
22703 cat >conftest.$ac_ext <<_ACEOF
22704/* confdefs.h. */
22705_ACEOF
22706cat confdefs.h >>conftest.$ac_ext
22707cat >>conftest.$ac_ext <<_ACEOF
22708/* end confdefs.h. */
22709
22710 class Foo { public: explicit Foo(int) {} };
22711 static void TakeFoo(const Foo& foo) { }
22712
22713int
22714main ()
22715{
22716
22717 TakeFoo(17);
22718 return 0;
22719
22720 ;
22721 return 0;
22722}
22723_ACEOF
22724rm -f conftest.$ac_objext
22725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22726 (eval $ac_compile) 2>conftest.er1
a848cd7e 22727 ac_status=$?
ac1cb8d3
VS
22728 grep -v '^ *+' conftest.er1 >conftest.err
22729 rm -f conftest.er1
22730 cat conftest.err >&5
a848cd7e
SC
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); } &&
6954625c 22733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22735 (eval $ac_try) 2>&5
22736 ac_status=$?
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); }; } &&
22739 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22741 (eval $ac_try) 2>&5
22742 ac_status=$?
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); }; }; then
22745 wx_cv_explicit=no
22746else
22747 echo "$as_me: failed program was:" >&5
22748sed 's/^/| /' conftest.$ac_ext >&5
22749
22750wx_cv_explicit=yes
22751
22752fi
ac1cb8d3 22753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22754
22755else
22756 echo "$as_me: failed program was:" >&5
22757sed 's/^/| /' conftest.$ac_ext >&5
22758
22759wx_cv_explicit=no
22760
22761fi
ac1cb8d3 22762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22763
5d7b7554
VZ
22764 ac_ext=cc
22765ac_cpp='$CXXCPP $CPPFLAGS'
22766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22769
22770
22771fi
22772echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22773echo "${ECHO_T}$wx_cv_explicit" >&6
22774
22775 if test "$wx_cv_explicit" = "yes"; then
22776 cat >>confdefs.h <<\_ACEOF
22777#define HAVE_EXPLICIT 1
22778_ACEOF
22779
22780 fi
22781
22782
22783echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22784echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22785if test "${ac_cv_cxx_const_cast+set}" = set; then
22786 echo $ECHO_N "(cached) $ECHO_C" >&6
22787else
22788
22789
22790 ac_ext=cc
22791ac_cpp='$CXXCPP $CPPFLAGS'
22792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22795
22796 cat >conftest.$ac_ext <<_ACEOF
22797/* confdefs.h. */
22798_ACEOF
22799cat confdefs.h >>conftest.$ac_ext
22800cat >>conftest.$ac_ext <<_ACEOF
22801/* end confdefs.h. */
22802
22803int
22804main ()
22805{
22806int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22807 ;
22808 return 0;
22809}
22810_ACEOF
22811rm -f conftest.$ac_objext
22812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22813 (eval $ac_compile) 2>conftest.er1
a848cd7e 22814 ac_status=$?
ac1cb8d3
VS
22815 grep -v '^ *+' conftest.er1 >conftest.err
22816 rm -f conftest.er1
22817 cat conftest.err >&5
a848cd7e
SC
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } &&
6954625c 22820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22823 ac_status=$?
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; } &&
22826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828 (eval $ac_try) 2>&5
22829 ac_status=$?
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); }; }; then
22832 ac_cv_cxx_const_cast=yes
22833else
22834 echo "$as_me: failed program was:" >&5
22835sed 's/^/| /' conftest.$ac_ext >&5
22836
22837ac_cv_cxx_const_cast=no
22838fi
ac1cb8d3 22839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22840 ac_ext=cc
22841ac_cpp='$CXXCPP $CPPFLAGS'
22842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22845
22846
22847fi
22848echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22849echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22850if test "$ac_cv_cxx_const_cast" = yes; then
22851
22852cat >>confdefs.h <<\_ACEOF
22853#define HAVE_CONST_CAST
22854_ACEOF
22855
22856fi
22857
7714864e
RL
22858echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22859echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22860if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22861 echo $ECHO_N "(cached) $ECHO_C" >&6
22862else
22863
22864
22865 ac_ext=cc
22866ac_cpp='$CXXCPP $CPPFLAGS'
22867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22870
22871 cat >conftest.$ac_ext <<_ACEOF
22872/* confdefs.h. */
22873_ACEOF
22874cat confdefs.h >>conftest.$ac_ext
22875cat >>conftest.$ac_ext <<_ACEOF
22876/* end confdefs.h. */
22877#include <typeinfo>
22878class Base { public : Base () {} virtual void f () = 0;};
22879class Derived : public Base { public : Derived () {} virtual void f () {} };
22880class Unrelated { public : Unrelated () {} };
22881int g (Unrelated&) { return 0; }
22882int
22883main ()
22884{
22885
22886Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22887 ;
22888 return 0;
22889}
22890_ACEOF
22891rm -f conftest.$ac_objext
22892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22893 (eval $ac_compile) 2>conftest.er1
22894 ac_status=$?
22895 grep -v '^ *+' conftest.er1 >conftest.err
22896 rm -f conftest.er1
22897 cat conftest.err >&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); } &&
6954625c 22900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
22901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22902 (eval $ac_try) 2>&5
22903 ac_status=$?
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; } &&
22906 { ac_try='test -s conftest.$ac_objext'
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22909 ac_status=$?
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; }; then
22912 ac_cv_cxx_reinterpret_cast=yes
22913else
22914 echo "$as_me: failed program was:" >&5
22915sed 's/^/| /' conftest.$ac_ext >&5
22916
22917ac_cv_cxx_reinterpret_cast=no
22918fi
22919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22920 ac_ext=cc
22921ac_cpp='$CXXCPP $CPPFLAGS'
22922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
22925
22926
22927fi
22928echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22929echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22930if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22931
22932cat >>confdefs.h <<\_ACEOF
22933#define HAVE_REINTERPRET_CAST
22934_ACEOF
22935
22936fi
22937
a848cd7e
SC
22938echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22939echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22940if test "${ac_cv_cxx_static_cast+set}" = set; then
22941 echo $ECHO_N "(cached) $ECHO_C" >&6
22942else
22943
22944
22945 ac_ext=cc
22946ac_cpp='$CXXCPP $CPPFLAGS'
22947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22950
22951 cat >conftest.$ac_ext <<_ACEOF
22952/* confdefs.h. */
22953_ACEOF
22954cat confdefs.h >>conftest.$ac_ext
22955cat >>conftest.$ac_ext <<_ACEOF
22956/* end confdefs.h. */
22957#include <typeinfo>
22958class Base { public : Base () {} virtual void f () = 0; };
22959class Derived : public Base { public : Derived () {} virtual void f () {} };
22960int g (Derived&) { return 0; }
22961int
22962main ()
22963{
22964
22965Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22966 ;
22967 return 0;
22968}
22969_ACEOF
22970rm -f conftest.$ac_objext
22971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22972 (eval $ac_compile) 2>conftest.er1
a848cd7e 22973 ac_status=$?
ac1cb8d3
VS
22974 grep -v '^ *+' conftest.er1 >conftest.err
22975 rm -f conftest.er1
22976 cat conftest.err >&5
a848cd7e
SC
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } &&
6954625c 22979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22981 (eval $ac_try) 2>&5
22982 ac_status=$?
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); }; } &&
22985 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22988 ac_status=$?
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; }; then
22991 ac_cv_cxx_static_cast=yes
22992else
22993 echo "$as_me: failed program was:" >&5
22994sed 's/^/| /' conftest.$ac_ext >&5
22995
22996ac_cv_cxx_static_cast=no
22997fi
ac1cb8d3 22998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22999 ac_ext=cc
23000ac_cpp='$CXXCPP $CPPFLAGS'
23001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23004
23005
23006fi
23007echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23008echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23009if test "$ac_cv_cxx_static_cast" = yes; then
23010
23011cat >>confdefs.h <<\_ACEOF
23012#define HAVE_STATIC_CAST
23013_ACEOF
23014
23015fi
23016
23017
3c28b7cb 23018if test "x$SUNCXX" = xyes; then
c92ad099 23019 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23020fi
23021
9122d155 23022if test "x$SUNCC" = xyes; then
c92ad099 23023 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23024fi
23025
0ad5d837 23026if test "x$SGICC" = "xyes"; then
c92ad099 23027 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23028fi
23029if test "x$SGICXX" = "xyes"; then
c92ad099 23030 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23031fi
23032
2eef8513 23033if test "x$HPCC" = "xyes"; then
c92ad099 23034 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23035fi
23036if test "x$HPCXX" = "xyes"; then
c92ad099 23037 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23038fi
23039
23040if test "x$COMPAQCXX" = "xyes"; then
23041 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23042fi
23043
f56c22b4 23044if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23045 if test "$wxUSE_UNICODE" = "yes"; then
23046 std_string="std::wstring"
23047 char_type="wchar_t"
23048 else
23049 std_string="std::string"
23050 char_type="char"
23051 fi
23052
23053 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23054echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23055 cat >conftest.$ac_ext <<_ACEOF
23056/* confdefs.h. */
23057_ACEOF
23058cat confdefs.h >>conftest.$ac_ext
23059cat >>conftest.$ac_ext <<_ACEOF
23060/* end confdefs.h. */
23061#include <string>
a848cd7e
SC
23062int
23063main ()
23064{
f56c22b4 23065$std_string foo;
a848cd7e
SC
23066 ;
23067 return 0;
23068}
23069_ACEOF
23070rm -f conftest.$ac_objext
23071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23072 (eval $ac_compile) 2>conftest.er1
a848cd7e 23073 ac_status=$?
ac1cb8d3
VS
23074 grep -v '^ *+' conftest.er1 >conftest.err
23075 rm -f conftest.er1
23076 cat conftest.err >&5
a848cd7e
SC
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); } &&
6954625c 23079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23082 ac_status=$?
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; } &&
23085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087 (eval $ac_try) 2>&5
23088 ac_status=$?
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); }; }; then
23091 echo "$as_me:$LINENO: result: yes" >&5
23092echo "${ECHO_T}yes" >&6
0a08f02a
MB
23093 cat >>confdefs.h <<\_ACEOF
23094#define HAVE_STD_WSTRING 1
23095_ACEOF
23096
a848cd7e
SC
23097else
23098 echo "$as_me: failed program was:" >&5
23099sed 's/^/| /' conftest.$ac_ext >&5
23100
23101echo "$as_me:$LINENO: result: no" >&5
23102echo "${ECHO_T}no" >&6
f56c22b4
MW
23103 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23104echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23105 cat >conftest.$ac_ext <<_ACEOF
23106/* confdefs.h. */
23107_ACEOF
23108cat confdefs.h >>conftest.$ac_ext
23109cat >>conftest.$ac_ext <<_ACEOF
23110/* end confdefs.h. */
23111
23112 #ifdef HAVE_WCHAR_H
23113 # ifdef __CYGWIN__
23114 # include <stddef.h>
23115 # endif
23116 # include <wchar.h>
23117 #endif
23118 #ifdef HAVE_STDLIB_H
23119 # include <stdlib.h>
23120 #endif
23121 #include <stdio.h>
23122 #include <string>
23123
23124int
23125main ()
23126{
f56c22b4
MW
23127std::basic_string<$char_type> foo;
23128 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23129 ;
23130 return 0;
23131}
23132_ACEOF
23133rm -f conftest.$ac_objext
23134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23135 (eval $ac_compile) 2>conftest.er1
23136 ac_status=$?
23137 grep -v '^ *+' conftest.er1 >conftest.err
23138 rm -f conftest.er1
23139 cat conftest.err >&5
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); } &&
6954625c 23142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144 (eval $ac_try) 2>&5
23145 ac_status=$?
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; } &&
23148 { ac_try='test -s conftest.$ac_objext'
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; }; then
23154 echo "$as_me:$LINENO: result: yes" >&5
23155echo "${ECHO_T}yes" >&6
23156else
23157 echo "$as_me: failed program was:" >&5
23158sed 's/^/| /' conftest.$ac_ext >&5
23159
23160echo "$as_me:$LINENO: result: no" >&5
23161echo "${ECHO_T}no" >&6
f56c22b4 23162 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23163 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23164echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23165 { (exit 1); exit 1; }; }
23166 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23167 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23168echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23169 { (exit 1); exit 1; }; }
f56c22b4
MW
23170 else
23171 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23172echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23173 wxUSE_STD_STRING=no
23174 fi
23175
0a08f02a 23176
a848cd7e 23177fi
ac1cb8d3 23178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23179
0a08f02a
MB
23180fi
23181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23182fi
23183
23184if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23185 echo "$as_me:$LINENO: checking for std::istream" >&5
23186echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23187if test "${ac_cv_type_std__istream+set}" = set; then
23188 echo $ECHO_N "(cached) $ECHO_C" >&6
23189else
23190 cat >conftest.$ac_ext <<_ACEOF
23191/* confdefs.h. */
23192_ACEOF
23193cat confdefs.h >>conftest.$ac_ext
23194cat >>conftest.$ac_ext <<_ACEOF
23195/* end confdefs.h. */
23196#include <iostream>
23197
23198int
23199main ()
23200{
23201if ((std::istream *) 0)
23202 return 0;
23203if (sizeof (std::istream))
23204 return 0;
23205 ;
23206 return 0;
23207}
23208_ACEOF
23209rm -f conftest.$ac_objext
23210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23211 (eval $ac_compile) 2>conftest.er1
23212 ac_status=$?
23213 grep -v '^ *+' conftest.er1 >conftest.err
23214 rm -f conftest.er1
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } &&
6954625c 23218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220 (eval $ac_try) 2>&5
23221 ac_status=$?
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }; } &&
23224 { ac_try='test -s conftest.$ac_objext'
23225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226 (eval $ac_try) 2>&5
23227 ac_status=$?
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); }; }; then
23230 ac_cv_type_std__istream=yes
23231else
23232 echo "$as_me: failed program was:" >&5
23233sed 's/^/| /' conftest.$ac_ext >&5
23234
23235ac_cv_type_std__istream=no
23236fi
23237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23238fi
23239echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23240echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23241if test $ac_cv_type_std__istream = yes; then
23242
23243cat >>confdefs.h <<_ACEOF
23244#define HAVE_STD__ISTREAM 1
23245_ACEOF
23246
23247
23248else
23249 wxUSE_STD_IOSTREAM=no
23250fi
23251echo "$as_me:$LINENO: checking for std::ostream" >&5
23252echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23253if test "${ac_cv_type_std__ostream+set}" = set; then
23254 echo $ECHO_N "(cached) $ECHO_C" >&6
23255else
23256 cat >conftest.$ac_ext <<_ACEOF
23257/* confdefs.h. */
23258_ACEOF
23259cat confdefs.h >>conftest.$ac_ext
23260cat >>conftest.$ac_ext <<_ACEOF
23261/* end confdefs.h. */
23262#include <iostream>
23263
23264int
23265main ()
23266{
23267if ((std::ostream *) 0)
23268 return 0;
23269if (sizeof (std::ostream))
23270 return 0;
23271 ;
23272 return 0;
23273}
23274_ACEOF
23275rm -f conftest.$ac_objext
23276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23277 (eval $ac_compile) 2>conftest.er1
23278 ac_status=$?
23279 grep -v '^ *+' conftest.er1 >conftest.err
23280 rm -f conftest.er1
23281 cat conftest.err >&5
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); } &&
6954625c 23284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23287 ac_status=$?
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; } &&
23290 { ac_try='test -s conftest.$ac_objext'
23291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292 (eval $ac_try) 2>&5
23293 ac_status=$?
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; }; then
23296 ac_cv_type_std__ostream=yes
23297else
23298 echo "$as_me: failed program was:" >&5
23299sed 's/^/| /' conftest.$ac_ext >&5
23300
23301ac_cv_type_std__ostream=no
23302fi
23303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23304fi
23305echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23306echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23307if test $ac_cv_type_std__ostream = yes; then
23308
23309cat >>confdefs.h <<_ACEOF
23310#define HAVE_STD__OSTREAM 1
23311_ACEOF
23312
23313
23314else
23315 wxUSE_STD_IOSTREAM=no
23316fi
23317
23318
23319 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23320 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23321 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23322echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23323 { (exit 1); exit 1; }; }
23324 else
23325 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23326echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23327 fi
f56c22b4 23328 fi
0a08f02a
MB
23329fi
23330
23331if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23332 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23333echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23334 cat >conftest.$ac_ext <<_ACEOF
23335/* confdefs.h. */
23336_ACEOF
23337cat confdefs.h >>conftest.$ac_ext
23338cat >>conftest.$ac_ext <<_ACEOF
23339/* end confdefs.h. */
23340#include <string>
0a08f02a
MB
23341 #include <functional>
23342 #include <algorithm>
23343 #include <vector>
23344 #include <list>
a848cd7e
SC
23345int
23346main ()
23347{
0a08f02a
MB
23348std::vector<int> moo;
23349 std::list<int> foo;
23350 std::vector<int>::iterator it =
23351 std::find_if(moo.begin(), moo.end(),
23352 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23353 ;
23354 return 0;
23355}
23356_ACEOF
23357rm -f conftest.$ac_objext
23358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23359 (eval $ac_compile) 2>conftest.er1
a848cd7e 23360 ac_status=$?
ac1cb8d3
VS
23361 grep -v '^ *+' conftest.er1 >conftest.err
23362 rm -f conftest.er1
23363 cat conftest.err >&5
a848cd7e
SC
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } &&
6954625c 23366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368 (eval $ac_try) 2>&5
23369 ac_status=$?
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); }; } &&
23372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374 (eval $ac_try) 2>&5
23375 ac_status=$?
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); }; }; then
23378 echo "$as_me:$LINENO: result: yes" >&5
23379echo "${ECHO_T}yes" >&6
a848cd7e
SC
23380else
23381 echo "$as_me: failed program was:" >&5
23382sed 's/^/| /' conftest.$ac_ext >&5
23383
23384echo "$as_me:$LINENO: result: no" >&5
23385echo "${ECHO_T}no" >&6
0a08f02a
MB
23386 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23387echo "$as_me: error: Basic STL functionality missing" >&2;}
23388 { (exit 1); exit 1; }; }
a848cd7e 23389fi
ac1cb8d3 23390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23391
23392 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23393echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23394 cat >conftest.$ac_ext <<_ACEOF
23395/* confdefs.h. */
23396_ACEOF
23397cat confdefs.h >>conftest.$ac_ext
23398cat >>conftest.$ac_ext <<_ACEOF
23399/* end confdefs.h. */
23400#include <string>
23401int
23402main ()
23403{
23404std::string foo, bar;
23405 foo.compare(bar);
23406 foo.compare(1, 1, bar);
23407 foo.compare(1, 1, bar, 1, 1);
23408 foo.compare("");
23409 foo.compare(1, 1, "");
23410 foo.compare(1, 1, "", 2);
23411 ;
23412 return 0;
23413}
23414_ACEOF
23415rm -f conftest.$ac_objext
23416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23417 (eval $ac_compile) 2>conftest.er1
a848cd7e 23418 ac_status=$?
ac1cb8d3
VS
23419 grep -v '^ *+' conftest.er1 >conftest.err
23420 rm -f conftest.er1
23421 cat conftest.err >&5
a848cd7e
SC
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } &&
6954625c 23424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426 (eval $ac_try) 2>&5
23427 ac_status=$?
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; } &&
23430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23432 (eval $ac_try) 2>&5
23433 ac_status=$?
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); }; }; then
23436 echo "$as_me:$LINENO: result: yes" >&5
23437echo "${ECHO_T}yes" >&6
23438 cat >>confdefs.h <<\_ACEOF
23439#define HAVE_STD_STRING_COMPARE 1
23440_ACEOF
23441
23442else
23443 echo "$as_me: failed program was:" >&5
23444sed 's/^/| /' conftest.$ac_ext >&5
23445
23446echo "$as_me:$LINENO: result: no" >&5
23447echo "${ECHO_T}no" >&6
23448fi
ac1cb8d3 23449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23450
23451 if test "${ac_cv_header_hash_map+set}" = set; then
23452 echo "$as_me:$LINENO: checking for hash_map" >&5
23453echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23454if test "${ac_cv_header_hash_map+set}" = set; then
23455 echo $ECHO_N "(cached) $ECHO_C" >&6
23456fi
23457echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23458echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23459else
23460 # Is the header compilable?
23461echo "$as_me:$LINENO: checking hash_map usability" >&5
23462echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23463cat >conftest.$ac_ext <<_ACEOF
23464/* confdefs.h. */
23465_ACEOF
23466cat confdefs.h >>conftest.$ac_ext
23467cat >>conftest.$ac_ext <<_ACEOF
23468/* end confdefs.h. */
23469$ac_includes_default
23470#include <hash_map>
23471_ACEOF
23472rm -f conftest.$ac_objext
23473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23474 (eval $ac_compile) 2>conftest.er1
bdcade0a 23475 ac_status=$?
ac1cb8d3
VS
23476 grep -v '^ *+' conftest.er1 >conftest.err
23477 rm -f conftest.er1
23478 cat conftest.err >&5
bdcade0a
MB
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } &&
6954625c 23481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23483 (eval $ac_try) 2>&5
23484 ac_status=$?
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); }; } &&
23487 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23489 (eval $ac_try) 2>&5
23490 ac_status=$?
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); }; }; then
23493 ac_header_compiler=yes
23494else
23495 echo "$as_me: failed program was:" >&5
23496sed 's/^/| /' conftest.$ac_ext >&5
23497
23498ac_header_compiler=no
23499fi
ac1cb8d3 23500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23501echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23502echo "${ECHO_T}$ac_header_compiler" >&6
23503
23504# Is the header present?
23505echo "$as_me:$LINENO: checking hash_map presence" >&5
23506echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23507cat >conftest.$ac_ext <<_ACEOF
23508/* confdefs.h. */
23509_ACEOF
23510cat confdefs.h >>conftest.$ac_ext
23511cat >>conftest.$ac_ext <<_ACEOF
23512/* end confdefs.h. */
23513#include <hash_map>
23514_ACEOF
23515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23517 ac_status=$?
23518 grep -v '^ *+' conftest.er1 >conftest.err
23519 rm -f conftest.er1
23520 cat conftest.err >&5
23521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); } >/dev/null; then
23523 if test -s conftest.err; then
23524 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23525 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23526 else
23527 ac_cpp_err=
23528 fi
23529else
23530 ac_cpp_err=yes
23531fi
23532if test -z "$ac_cpp_err"; then
23533 ac_header_preproc=yes
23534else
23535 echo "$as_me: failed program was:" >&5
23536sed 's/^/| /' conftest.$ac_ext >&5
23537
23538 ac_header_preproc=no
23539fi
23540rm -f conftest.err conftest.$ac_ext
23541echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23542echo "${ECHO_T}$ac_header_preproc" >&6
23543
23544# So? What about this header?
ac1cb8d3
VS
23545case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23546 yes:no: )
bdcade0a
MB
23547 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23548echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23549 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23550echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23551 ac_header_preproc=yes
bdcade0a 23552 ;;
ac1cb8d3 23553 no:yes:* )
bdcade0a
MB
23554 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23555echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23556 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23557echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23558 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23559echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23560 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23561echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23562 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23563echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23564 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23565echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23566 (
23567 cat <<\_ASBOX
ac1cb8d3
VS
23568## ----------------------------------------- ##
23569## Report this to wx-dev@lists.wxwidgets.org ##
23570## ----------------------------------------- ##
bdcade0a
MB
23571_ASBOX
23572 ) |
23573 sed "s/^/$as_me: WARNING: /" >&2
23574 ;;
23575esac
23576echo "$as_me:$LINENO: checking for hash_map" >&5
23577echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23578if test "${ac_cv_header_hash_map+set}" = set; then
23579 echo $ECHO_N "(cached) $ECHO_C" >&6
23580else
23581 ac_cv_header_hash_map=$ac_header_preproc
23582fi
23583echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23584echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23585
23586fi
23587if test $ac_cv_header_hash_map = yes; then
23588 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23589echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23590 cat >conftest.$ac_ext <<_ACEOF
23591/* confdefs.h. */
23592_ACEOF
23593cat confdefs.h >>conftest.$ac_ext
23594cat >>conftest.$ac_ext <<_ACEOF
23595/* end confdefs.h. */
23596#include <hash_map>
23597 #include <hash_set>
23598int
23599main ()
23600{
23601std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23602 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23603 ;
23604 return 0;
23605}
23606_ACEOF
23607rm -f conftest.$ac_objext
23608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23609 (eval $ac_compile) 2>conftest.er1
bdcade0a 23610 ac_status=$?
ac1cb8d3
VS
23611 grep -v '^ *+' conftest.er1 >conftest.err
23612 rm -f conftest.er1
23613 cat conftest.err >&5
bdcade0a
MB
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); } &&
6954625c 23616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618 (eval $ac_try) 2>&5
23619 ac_status=$?
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; } &&
23622 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624 (eval $ac_try) 2>&5
23625 ac_status=$?
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; }; then
23628 echo "$as_me:$LINENO: result: yes" >&5
23629echo "${ECHO_T}yes" >&6
23630 cat >>confdefs.h <<\_ACEOF
23631#define HAVE_HASH_MAP 1
23632_ACEOF
23633
23634 cat >>confdefs.h <<\_ACEOF
23635#define HAVE_STD_HASH_MAP 1
23636_ACEOF
23637
23638else
23639 echo "$as_me: failed program was:" >&5
23640sed 's/^/| /' conftest.$ac_ext >&5
23641
23642echo "$as_me:$LINENO: result: no" >&5
23643echo "${ECHO_T}no" >&6
23644fi
ac1cb8d3 23645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23646
23647fi
23648
23649
23650
23651 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23652 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23653echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23654if test "${ac_cv_header_ext_hash_map+set}" = set; then
23655 echo $ECHO_N "(cached) $ECHO_C" >&6
23656fi
23657echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23658echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23659else
23660 # Is the header compilable?
23661echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23662echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23663cat >conftest.$ac_ext <<_ACEOF
23664/* confdefs.h. */
23665_ACEOF
23666cat confdefs.h >>conftest.$ac_ext
23667cat >>conftest.$ac_ext <<_ACEOF
23668/* end confdefs.h. */
23669$ac_includes_default
23670#include <ext/hash_map>
23671_ACEOF
23672rm -f conftest.$ac_objext
23673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23674 (eval $ac_compile) 2>conftest.er1
bdcade0a 23675 ac_status=$?
ac1cb8d3
VS
23676 grep -v '^ *+' conftest.er1 >conftest.err
23677 rm -f conftest.er1
23678 cat conftest.err >&5
bdcade0a
MB
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } &&
6954625c 23681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683 (eval $ac_try) 2>&5
23684 ac_status=$?
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); }; } &&
23687 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689 (eval $ac_try) 2>&5
23690 ac_status=$?
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); }; }; then
23693 ac_header_compiler=yes
23694else
23695 echo "$as_me: failed program was:" >&5
23696sed 's/^/| /' conftest.$ac_ext >&5
23697
23698ac_header_compiler=no
23699fi
ac1cb8d3 23700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23702echo "${ECHO_T}$ac_header_compiler" >&6
23703
23704# Is the header present?
23705echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23706echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23707cat >conftest.$ac_ext <<_ACEOF
23708/* confdefs.h. */
23709_ACEOF
23710cat confdefs.h >>conftest.$ac_ext
23711cat >>conftest.$ac_ext <<_ACEOF
23712/* end confdefs.h. */
23713#include <ext/hash_map>
23714_ACEOF
23715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23717 ac_status=$?
23718 grep -v '^ *+' conftest.er1 >conftest.err
23719 rm -f conftest.er1
23720 cat conftest.err >&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } >/dev/null; then
23723 if test -s conftest.err; then
23724 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23725 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23726 else
23727 ac_cpp_err=
23728 fi
23729else
23730 ac_cpp_err=yes
23731fi
23732if test -z "$ac_cpp_err"; then
23733 ac_header_preproc=yes
23734else
23735 echo "$as_me: failed program was:" >&5
23736sed 's/^/| /' conftest.$ac_ext >&5
23737
23738 ac_header_preproc=no
23739fi
23740rm -f conftest.err conftest.$ac_ext
23741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23742echo "${ECHO_T}$ac_header_preproc" >&6
23743
23744# So? What about this header?
ac1cb8d3
VS
23745case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23746 yes:no: )
bdcade0a
MB
23747 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23748echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23749 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23750echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23751 ac_header_preproc=yes
bdcade0a 23752 ;;
ac1cb8d3 23753 no:yes:* )
bdcade0a
MB
23754 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23755echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23756 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23757echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23758 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23759echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23760 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23761echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23762 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23763echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23764 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23765echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23766 (
23767 cat <<\_ASBOX
ac1cb8d3
VS
23768## ----------------------------------------- ##
23769## Report this to wx-dev@lists.wxwidgets.org ##
23770## ----------------------------------------- ##
bdcade0a
MB
23771_ASBOX
23772 ) |
23773 sed "s/^/$as_me: WARNING: /" >&2
23774 ;;
23775esac
23776echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23777echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23778if test "${ac_cv_header_ext_hash_map+set}" = set; then
23779 echo $ECHO_N "(cached) $ECHO_C" >&6
23780else
23781 ac_cv_header_ext_hash_map=$ac_header_preproc
23782fi
23783echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23784echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23785
23786fi
23787if test $ac_cv_header_ext_hash_map = yes; then
23788 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23789echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23790 cat >conftest.$ac_ext <<_ACEOF
23791/* confdefs.h. */
23792_ACEOF
23793cat confdefs.h >>conftest.$ac_ext
23794cat >>conftest.$ac_ext <<_ACEOF
23795/* end confdefs.h. */
23796#include <ext/hash_map>
23797 #include <ext/hash_set>
23798int
23799main ()
23800{
23801__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23802 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23803 ;
23804 return 0;
23805}
23806_ACEOF
23807rm -f conftest.$ac_objext
23808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23809 (eval $ac_compile) 2>conftest.er1
bdcade0a 23810 ac_status=$?
ac1cb8d3
VS
23811 grep -v '^ *+' conftest.er1 >conftest.err
23812 rm -f conftest.er1
23813 cat conftest.err >&5
bdcade0a
MB
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } &&
6954625c 23816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23818 (eval $ac_try) 2>&5
23819 ac_status=$?
23820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821 (exit $ac_status); }; } &&
23822 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23824 (eval $ac_try) 2>&5
23825 ac_status=$?
23826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827 (exit $ac_status); }; }; then
23828 echo "$as_me:$LINENO: result: yes" >&5
23829echo "${ECHO_T}yes" >&6
23830 cat >>confdefs.h <<\_ACEOF
23831#define HAVE_EXT_HASH_MAP 1
23832_ACEOF
23833
23834 cat >>confdefs.h <<\_ACEOF
23835#define HAVE_GNU_CXX_HASH_MAP 1
23836_ACEOF
23837
23838else
23839 echo "$as_me: failed program was:" >&5
23840sed 's/^/| /' conftest.$ac_ext >&5
23841
23842echo "$as_me:$LINENO: result: no" >&5
23843echo "${ECHO_T}no" >&6
23844fi
ac1cb8d3 23845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23846
23847fi
23848
23849
a848cd7e
SC
23850fi
23851
23852
23853SEARCH_INCLUDE="\
23854 /usr/local/include \
23855 \
23856 /usr/Motif-2.1/include \
23857 /usr/Motif-1.2/include \
23858 /usr/include/Motif1.2 \
a848cd7e
SC
23859 \
23860 /usr/dt/include \
23861 /usr/openwin/include \
23862 \
23863 /usr/include/Xm \
23864 \
23865 /usr/X11R6/include \
23866 /usr/X11R6.4/include \
23867 /usr/X11R5/include \
23868 /usr/X11R4/include \
23869 \
23870 /usr/include/X11R6 \
23871 /usr/include/X11R5 \
23872 /usr/include/X11R4 \
23873 \
23874 /usr/local/X11R6/include \
23875 /usr/local/X11R5/include \
23876 /usr/local/X11R4/include \
23877 \
23878 /usr/local/include/X11R6 \
23879 /usr/local/include/X11R5 \
23880 /usr/local/include/X11R4 \
23881 \
23882 /usr/X11/include \
23883 /usr/include/X11 \
23884 /usr/local/X11/include \
23885 /usr/local/include/X11 \
23886 \
a848cd7e 23887 /usr/XFree86/include/X11 \
e051b34e
MW
23888 /usr/pkg/include \
23889 \
a848cd7e
SC
23890 /usr/openwin/share/include"
23891
6f9cf1e6 23892echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23893echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23894
23895case "${host}" in
23896 *-*-irix6* )
23897 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23898 echo $ECHO_N "(cached) $ECHO_C" >&6
23899else
23900
c687b303
VZ
23901 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23902 for e in a so sl dylib dll.a; do
23903 libc="$d/libc.$e"
23904 if test -f $libc; then
23905 save_LIBS="$LIBS"
23906 LIBS="$libc"
23907 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23908int main() { return 0; }
23909_ACEOF
23910rm -f conftest.$ac_objext conftest$ac_exeext
23911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23912 (eval $ac_link) 2>conftest.er1
23913 ac_status=$?
23914 grep -v '^ *+' conftest.er1 >conftest.err
23915 rm -f conftest.er1
23916 cat conftest.err >&5
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); } &&
6954625c 23919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
23920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921 (eval $ac_try) 2>&5
23922 ac_status=$?
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); }; } &&
23925 { ac_try='test -s conftest$ac_exeext'
23926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927 (eval $ac_try) 2>&5
23928 ac_status=$?
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); }; }; then
23931 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23932else
23933 echo "$as_me: failed program was:" >&5
23934sed 's/^/| /' conftest.$ac_ext >&5
23935
23936fi
23937rm -f conftest.err conftest.$ac_objext \
23938 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23939 LIBS="$save_LIBS"
23940 if test "x$wx_cv_std_libpath" != "x"; then
23941 break 2
23942 fi
23943 fi
23944 done
23945 done
23946 if test "x$wx_cv_std_libpath" = "x"; then
23947 wx_cv_std_libpath="lib"
0ad5d837 23948 fi
0ad5d837
VZ
23949
23950
23951fi
6f9cf1e6
MW
23952
23953 ;;
23954
23955 *-*-solaris2* )
23956 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23957 wx_cv_std_libpath="lib/64"
23958 else
23959 wx_cv_std_libpath="lib"
23960 fi
23961 ;;
23962
23963 *-*-linux* )
23964 if test "$ac_cv_sizeof_void_p" = 8 -a \
23965 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23966 wx_cv_std_libpath="lib64"
23967 else
23968 wx_cv_std_libpath="lib"
23969 fi
c687b303
VZ
23970 ;;
23971
23972 *)
23973 wx_cv_std_libpath="lib";
23974 ;;
23975esac
0ad5d837 23976
6f9cf1e6
MW
23977echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23978echo "${ECHO_T}$wx_cv_std_libpath" >&6
23979
23980SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23981
3eca31dc
MW
23982if test "$build" != "$host" -a "$GCC" = yes; then
23983 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23984 cross_root=`dirname $cross_root`
23985 cross_root=`dirname $cross_root`
23986
23987 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23988 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23989 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23990
23991 if test -z "$PKG_CONFIG_PATH"; then
23992 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23993 export PKG_CONFIG_PATH
23994 fi
23995
23996 if test -z "$x_includes" -o "$x_includes" = NONE; then
23997
23998ac_find_includes=
23999for ac_dir in $SEARCH_INCLUDE /usr/include;
24000 do
24001 if test -f "$ac_dir/X11/Intrinsic.h"; then
24002 ac_find_includes=$ac_dir
24003 break
24004 fi
24005 done
24006
24007 x_includes=$ac_find_includes
24008 fi
24009 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24010
0ad5d837
VZ
24011 ac_find_libraries=
24012 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24013 do
24014 for ac_extension in a so sl dylib dll.a; do
24015 if test -f "$ac_dir/libXt.$ac_extension"; then
24016 ac_find_libraries=$ac_dir
24017 break 2
24018 fi
24019 done
24020 done
24021
24022 x_libraries=$ac_find_libraries
24023 fi
24024 fi
24025fi
24026
a848cd7e
SC
24027
24028cat >confcache <<\_ACEOF
24029# This file is a shell script that caches the results of configure
24030# tests run on this system so they can be shared between configure
24031# scripts and configure runs, see configure's option --config-cache.
24032# It is not useful on other systems. If it contains results you don't
24033# want to keep, you may remove or edit it.
24034#
24035# config.status only pays attention to the cache file if you give it
24036# the --recheck option to rerun configure.
24037#
24038# `ac_cv_env_foo' variables (set or unset) will be overridden when
24039# loading this file, other *unset* `ac_cv_foo' will be assigned the
24040# following values.
24041
24042_ACEOF
24043
24044# The following way of writing the cache mishandles newlines in values,
24045# but we know of no workaround that is simple, portable, and efficient.
24046# So, don't put newlines in cache variables' values.
24047# Ultrix sh set writes to stderr and can't be redirected directly,
24048# and sets the high bit in the cache file unless we assign to the vars.
24049{
24050 (set) 2>&1 |
24051 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24052 *ac_space=\ *)
24053 # `set' does not quote correctly, so add quotes (double-quote
24054 # substitution turns \\\\ into \\, and sed turns \\ into \).
24055 sed -n \
ac1cb8d3
VS
24056 "s/'/'\\\\''/g;
24057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24058 ;;
24059 *)
24060 # `set' quotes correctly as required by POSIX, so do not add quotes.
24061 sed -n \
ac1cb8d3 24062 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24063 ;;
24064 esac;
24065} |
24066 sed '
24067 t clear
24068 : clear
24069 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24070 t end
24071 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24072 : end' >>confcache
24073if diff $cache_file confcache >/dev/null 2>&1; then :; else
24074 if test -w $cache_file; then
24075 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24076 cat confcache >$cache_file
24077 else
24078 echo "not updating unwritable cache $cache_file"
24079 fi
24080fi
24081rm -f confcache
24082
24083if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24084 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24085echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24086if test "${wx_cv_lib_glibc21+set}" = set; then
24087 echo $ECHO_N "(cached) $ECHO_C" >&6
24088else
24089
24090 cat >conftest.$ac_ext <<_ACEOF
24091/* confdefs.h. */
24092_ACEOF
24093cat confdefs.h >>conftest.$ac_ext
24094cat >>conftest.$ac_ext <<_ACEOF
24095/* end confdefs.h. */
24096#include <features.h>
24097int
24098main ()
24099{
24100
24101 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24102 not glibc 2.1
a848cd7e
SC
24103 #endif
24104
24105 ;
24106 return 0;
24107}
24108_ACEOF
24109rm -f conftest.$ac_objext
24110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24111 (eval $ac_compile) 2>conftest.er1
a848cd7e 24112 ac_status=$?
ac1cb8d3
VS
24113 grep -v '^ *+' conftest.er1 >conftest.err
24114 rm -f conftest.er1
24115 cat conftest.err >&5
a848cd7e
SC
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); } &&
6954625c 24118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24120 (eval $ac_try) 2>&5
24121 ac_status=$?
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); }; } &&
24124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24126 (eval $ac_try) 2>&5
24127 ac_status=$?
24128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129 (exit $ac_status); }; }; then
24130
24131 wx_cv_lib_glibc21=yes
24132
24133else
24134 echo "$as_me: failed program was:" >&5
24135sed 's/^/| /' conftest.$ac_ext >&5
24136
24137
24138 wx_cv_lib_glibc21=no
24139
24140
24141fi
ac1cb8d3 24142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24143
24144fi
24145echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24146echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24147 if test "$wx_cv_lib_glibc21" = "yes"; then
24148 cat >>confdefs.h <<\_ACEOF
24149#define wxHAVE_GLIBC2 1
24150_ACEOF
24151
24152 fi
24153fi
24154
24155if test "x$wx_cv_lib_glibc21" = "xyes"; then
24156 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24157 cat >>confdefs.h <<\_ACEOF
24158#define _GNU_SOURCE 1
24159_ACEOF
24160
24161 fi
24162fi
24163
5d7b7554
VZ
24164have_cos=0
24165have_floor=0
a848cd7e 24166
5d7b7554
VZ
24167for ac_func in cos
24168do
24169as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24170echo "$as_me:$LINENO: checking for $ac_func" >&5
24171echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24172if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24173 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24174else
5d7b7554 24175 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24176/* confdefs.h. */
24177_ACEOF
24178cat confdefs.h >>conftest.$ac_ext
24179cat >>conftest.$ac_ext <<_ACEOF
24180/* end confdefs.h. */
5d7b7554
VZ
24181/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24183#define $ac_func innocuous_$ac_func
24184
24185/* System header to define __stub macros and hopefully few prototypes,
24186 which can conflict with char $ac_func (); below.
24187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24188 <limits.h> exists even on freestanding compilers. */
24189
24190#ifdef __STDC__
24191# include <limits.h>
24192#else
24193# include <assert.h>
24194#endif
24195
24196#undef $ac_func
24197
24198/* Override any gcc2 internal prototype to avoid an error. */
24199#ifdef __cplusplus
24200extern "C"
24201{
24202#endif
24203/* We use char because int might match the return type of a gcc2
24204 builtin and then its argument prototype would still apply. */
24205char $ac_func ();
24206/* The GNU C library defines this for functions which it implements
24207 to always fail with ENOSYS. Some functions are actually named
24208 something starting with __ and the normal name is an alias. */
24209#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24210choke me
24211#else
24212char (*f) () = $ac_func;
24213#endif
24214#ifdef __cplusplus
24215}
24216#endif
24217
24218int
24219main ()
24220{
24221return f != $ac_func;
24222 ;
24223 return 0;
24224}
a848cd7e 24225_ACEOF
5d7b7554
VZ
24226rm -f conftest.$ac_objext conftest$ac_exeext
24227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24228 (eval $ac_link) 2>conftest.er1
a848cd7e 24229 ac_status=$?
ac1cb8d3
VS
24230 grep -v '^ *+' conftest.er1 >conftest.err
24231 rm -f conftest.er1
24232 cat conftest.err >&5
a848cd7e
SC
24233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234 (exit $ac_status); } &&
6954625c 24235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24237 (eval $ac_try) 2>&5
24238 ac_status=$?
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); }; } &&
5d7b7554 24241 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243 (eval $ac_try) 2>&5
24244 ac_status=$?
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); }; }; then
5d7b7554 24247 eval "$as_ac_var=yes"
a848cd7e
SC
24248else
24249 echo "$as_me: failed program was:" >&5
24250sed 's/^/| /' conftest.$ac_ext >&5
24251
5d7b7554 24252eval "$as_ac_var=no"
a848cd7e 24253fi
5d7b7554
VZ
24254rm -f conftest.err conftest.$ac_objext \
24255 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24256fi
5d7b7554
VZ
24257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24258echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24259if test `eval echo '${'$as_ac_var'}'` = yes; then
24260 cat >>confdefs.h <<_ACEOF
24261#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24262_ACEOF
24263 have_cos=1
a848cd7e 24264fi
5d7b7554 24265done
a848cd7e 24266
ab0f0edd 24267
5d7b7554 24268for ac_func in floor
a848cd7e
SC
24269do
24270as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24271echo "$as_me:$LINENO: checking for $ac_func" >&5
24272echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24273if eval "test \"\${$as_ac_var+set}\" = set"; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24275else
24276 cat >conftest.$ac_ext <<_ACEOF
24277/* confdefs.h. */
24278_ACEOF
24279cat confdefs.h >>conftest.$ac_ext
24280cat >>conftest.$ac_ext <<_ACEOF
24281/* end confdefs.h. */
ac1cb8d3
VS
24282/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24284#define $ac_func innocuous_$ac_func
24285
a848cd7e
SC
24286/* System header to define __stub macros and hopefully few prototypes,
24287 which can conflict with char $ac_func (); below.
24288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24289 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24290
a848cd7e
SC
24291#ifdef __STDC__
24292# include <limits.h>
24293#else
24294# include <assert.h>
24295#endif
ac1cb8d3
VS
24296
24297#undef $ac_func
24298
a848cd7e
SC
24299/* Override any gcc2 internal prototype to avoid an error. */
24300#ifdef __cplusplus
24301extern "C"
24302{
24303#endif
24304/* We use char because int might match the return type of a gcc2
24305 builtin and then its argument prototype would still apply. */
24306char $ac_func ();
24307/* The GNU C library defines this for functions which it implements
24308 to always fail with ENOSYS. Some functions are actually named
24309 something starting with __ and the normal name is an alias. */
24310#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24311choke me
24312#else
24313char (*f) () = $ac_func;
24314#endif
24315#ifdef __cplusplus
24316}
24317#endif
24318
24319int
24320main ()
24321{
24322return f != $ac_func;
24323 ;
24324 return 0;
24325}
24326_ACEOF
24327rm -f conftest.$ac_objext conftest$ac_exeext
24328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24329 (eval $ac_link) 2>conftest.er1
a848cd7e 24330 ac_status=$?
ac1cb8d3
VS
24331 grep -v '^ *+' conftest.er1 >conftest.err
24332 rm -f conftest.er1
24333 cat conftest.err >&5
a848cd7e
SC
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } &&
6954625c 24336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24338 (eval $ac_try) 2>&5
24339 ac_status=$?
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); }; } &&
24342 { ac_try='test -s conftest$ac_exeext'
24343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24344 (eval $ac_try) 2>&5
24345 ac_status=$?
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); }; }; then
24348 eval "$as_ac_var=yes"
24349else
24350 echo "$as_me: failed program was:" >&5
24351sed 's/^/| /' conftest.$ac_ext >&5
24352
24353eval "$as_ac_var=no"
24354fi
24355rm -f conftest.err conftest.$ac_objext \
24356 conftest$ac_exeext conftest.$ac_ext
24357fi
24358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24359echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24360if test `eval echo '${'$as_ac_var'}'` = yes; then
24361 cat >>confdefs.h <<_ACEOF
24362#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24363_ACEOF
24364 have_floor=1
24365fi
24366done
24367
24368echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24369echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24370if test "$have_cos" = 1 -a "$have_floor" = 1; then
24371 echo "$as_me:$LINENO: result: yes" >&5
24372echo "${ECHO_T}yes" >&6
24373else
24374 echo "$as_me:$LINENO: result: no" >&5
24375echo "${ECHO_T}no" >&6
24376 LIBS="$LIBS -lm"
24377 # use different functions to avoid configure caching
24378 have_sin=0
24379 have_ceil=0
24380
24381for ac_func in sin
24382do
24383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24384echo "$as_me:$LINENO: checking for $ac_func" >&5
24385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24386if eval "test \"\${$as_ac_var+set}\" = set"; then
24387 echo $ECHO_N "(cached) $ECHO_C" >&6
24388else
24389 cat >conftest.$ac_ext <<_ACEOF
24390/* confdefs.h. */
24391_ACEOF
24392cat confdefs.h >>conftest.$ac_ext
24393cat >>conftest.$ac_ext <<_ACEOF
24394/* end confdefs.h. */
24395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24397#define $ac_func innocuous_$ac_func
24398
24399/* System header to define __stub macros and hopefully few prototypes,
24400 which can conflict with char $ac_func (); below.
24401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24402 <limits.h> exists even on freestanding compilers. */
24403
24404#ifdef __STDC__
24405# include <limits.h>
24406#else
24407# include <assert.h>
24408#endif
24409
24410#undef $ac_func
24411
24412/* Override any gcc2 internal prototype to avoid an error. */
24413#ifdef __cplusplus
24414extern "C"
24415{
24416#endif
24417/* We use char because int might match the return type of a gcc2
24418 builtin and then its argument prototype would still apply. */
24419char $ac_func ();
24420/* The GNU C library defines this for functions which it implements
24421 to always fail with ENOSYS. Some functions are actually named
24422 something starting with __ and the normal name is an alias. */
24423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24424choke me
24425#else
24426char (*f) () = $ac_func;
24427#endif
24428#ifdef __cplusplus
24429}
24430#endif
24431
24432int
24433main ()
24434{
24435return f != $ac_func;
24436 ;
24437 return 0;
24438}
24439_ACEOF
24440rm -f conftest.$ac_objext conftest$ac_exeext
24441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24442 (eval $ac_link) 2>conftest.er1
24443 ac_status=$?
24444 grep -v '^ *+' conftest.er1 >conftest.err
24445 rm -f conftest.er1
24446 cat conftest.err >&5
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); } &&
6954625c 24449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24451 (eval $ac_try) 2>&5
24452 ac_status=$?
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); }; } &&
24455 { ac_try='test -s conftest$ac_exeext'
24456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457 (eval $ac_try) 2>&5
24458 ac_status=$?
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); }; }; then
24461 eval "$as_ac_var=yes"
24462else
24463 echo "$as_me: failed program was:" >&5
24464sed 's/^/| /' conftest.$ac_ext >&5
24465
24466eval "$as_ac_var=no"
24467fi
24468rm -f conftest.err conftest.$ac_objext \
24469 conftest$ac_exeext conftest.$ac_ext
24470fi
24471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24472echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24473if test `eval echo '${'$as_ac_var'}'` = yes; then
24474 cat >>confdefs.h <<_ACEOF
24475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24476_ACEOF
24477 have_sin=1
24478fi
24479done
24480
24481
24482for ac_func in ceil
24483do
24484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24485echo "$as_me:$LINENO: checking for $ac_func" >&5
24486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24487if eval "test \"\${$as_ac_var+set}\" = set"; then
24488 echo $ECHO_N "(cached) $ECHO_C" >&6
24489else
24490 cat >conftest.$ac_ext <<_ACEOF
24491/* confdefs.h. */
24492_ACEOF
24493cat confdefs.h >>conftest.$ac_ext
24494cat >>conftest.$ac_ext <<_ACEOF
24495/* end confdefs.h. */
24496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24498#define $ac_func innocuous_$ac_func
24499
24500/* System header to define __stub macros and hopefully few prototypes,
24501 which can conflict with char $ac_func (); below.
24502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24503 <limits.h> exists even on freestanding compilers. */
24504
24505#ifdef __STDC__
24506# include <limits.h>
24507#else
24508# include <assert.h>
24509#endif
24510
24511#undef $ac_func
24512
24513/* Override any gcc2 internal prototype to avoid an error. */
24514#ifdef __cplusplus
24515extern "C"
24516{
24517#endif
24518/* We use char because int might match the return type of a gcc2
24519 builtin and then its argument prototype would still apply. */
24520char $ac_func ();
24521/* The GNU C library defines this for functions which it implements
24522 to always fail with ENOSYS. Some functions are actually named
24523 something starting with __ and the normal name is an alias. */
24524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24525choke me
24526#else
24527char (*f) () = $ac_func;
24528#endif
24529#ifdef __cplusplus
24530}
24531#endif
24532
24533int
24534main ()
24535{
24536return f != $ac_func;
24537 ;
24538 return 0;
24539}
24540_ACEOF
24541rm -f conftest.$ac_objext conftest$ac_exeext
24542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24543 (eval $ac_link) 2>conftest.er1
24544 ac_status=$?
24545 grep -v '^ *+' conftest.er1 >conftest.err
24546 rm -f conftest.er1
24547 cat conftest.err >&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); } &&
6954625c 24550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24552 (eval $ac_try) 2>&5
24553 ac_status=$?
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); }; } &&
24556 { ac_try='test -s conftest$ac_exeext'
24557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24558 (eval $ac_try) 2>&5
24559 ac_status=$?
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); }; }; then
24562 eval "$as_ac_var=yes"
24563else
24564 echo "$as_me: failed program was:" >&5
24565sed 's/^/| /' conftest.$ac_ext >&5
24566
24567eval "$as_ac_var=no"
24568fi
24569rm -f conftest.err conftest.$ac_objext \
24570 conftest$ac_exeext conftest.$ac_ext
24571fi
24572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24574if test `eval echo '${'$as_ac_var'}'` = yes; then
24575 cat >>confdefs.h <<_ACEOF
24576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24577_ACEOF
24578 have_ceil=1
24579fi
24580done
24581
24582 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24583echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24584 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24585 echo "$as_me:$LINENO: result: yes" >&5
24586echo "${ECHO_T}yes" >&6
24587 else
24588 echo "$as_me:$LINENO: result: no" >&5
24589echo "${ECHO_T}no" >&6
24590 # not sure we should warn the user, crash, etc.
24591 fi
24592fi
24593
24594
24595
24596if test "$wxUSE_REGEX" != "no"; then
24597 cat >>confdefs.h <<\_ACEOF
24598#define wxUSE_REGEX 1
24599_ACEOF
24600
24601
24602 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24603 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24604echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24605 wxUSE_REGEX=builtin
24606 fi
24607
24608 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24609 if test "${ac_cv_header_regex_h+set}" = set; then
24610 echo "$as_me:$LINENO: checking for regex.h" >&5
24611echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24612if test "${ac_cv_header_regex_h+set}" = set; then
24613 echo $ECHO_N "(cached) $ECHO_C" >&6
24614fi
24615echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24616echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24617else
24618 # Is the header compilable?
24619echo "$as_me:$LINENO: checking regex.h usability" >&5
24620echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24621cat >conftest.$ac_ext <<_ACEOF
24622/* confdefs.h. */
24623_ACEOF
24624cat confdefs.h >>conftest.$ac_ext
24625cat >>conftest.$ac_ext <<_ACEOF
24626/* end confdefs.h. */
24627$ac_includes_default
24628#include <regex.h>
24629_ACEOF
24630rm -f conftest.$ac_objext
24631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24632 (eval $ac_compile) 2>conftest.er1
24633 ac_status=$?
24634 grep -v '^ *+' conftest.er1 >conftest.err
24635 rm -f conftest.er1
24636 cat conftest.err >&5
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); } &&
6954625c 24639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24641 (eval $ac_try) 2>&5
24642 ac_status=$?
24643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); }; } &&
24645 { ac_try='test -s conftest.$ac_objext'
24646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24647 (eval $ac_try) 2>&5
24648 ac_status=$?
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); }; }; then
24651 ac_header_compiler=yes
24652else
24653 echo "$as_me: failed program was:" >&5
24654sed 's/^/| /' conftest.$ac_ext >&5
24655
24656ac_header_compiler=no
24657fi
24658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24659echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24660echo "${ECHO_T}$ac_header_compiler" >&6
24661
24662# Is the header present?
24663echo "$as_me:$LINENO: checking regex.h presence" >&5
24664echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24665cat >conftest.$ac_ext <<_ACEOF
24666/* confdefs.h. */
24667_ACEOF
24668cat confdefs.h >>conftest.$ac_ext
24669cat >>conftest.$ac_ext <<_ACEOF
24670/* end confdefs.h. */
24671#include <regex.h>
24672_ACEOF
24673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24675 ac_status=$?
24676 grep -v '^ *+' conftest.er1 >conftest.err
24677 rm -f conftest.er1
24678 cat conftest.err >&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); } >/dev/null; then
24681 if test -s conftest.err; then
24682 ac_cpp_err=$ac_cxx_preproc_warn_flag
24683 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24684 else
24685 ac_cpp_err=
24686 fi
24687else
24688 ac_cpp_err=yes
24689fi
24690if test -z "$ac_cpp_err"; then
24691 ac_header_preproc=yes
24692else
24693 echo "$as_me: failed program was:" >&5
24694sed 's/^/| /' conftest.$ac_ext >&5
24695
24696 ac_header_preproc=no
24697fi
24698rm -f conftest.err conftest.$ac_ext
24699echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24700echo "${ECHO_T}$ac_header_preproc" >&6
24701
24702# So? What about this header?
24703case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24704 yes:no: )
24705 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24706echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24707 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24708echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24709 ac_header_preproc=yes
24710 ;;
24711 no:yes:* )
24712 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24713echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24714 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24715echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24716 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24717echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24718 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24719echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24720 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24721echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24722 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24723echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24724 (
24725 cat <<\_ASBOX
24726## ----------------------------------------- ##
24727## Report this to wx-dev@lists.wxwidgets.org ##
24728## ----------------------------------------- ##
24729_ASBOX
24730 ) |
24731 sed "s/^/$as_me: WARNING: /" >&2
24732 ;;
24733esac
24734echo "$as_me:$LINENO: checking for regex.h" >&5
24735echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24736if test "${ac_cv_header_regex_h+set}" = set; then
24737 echo $ECHO_N "(cached) $ECHO_C" >&6
24738else
24739 ac_cv_header_regex_h=$ac_header_preproc
24740fi
24741echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24742echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24743
24744fi
24745if test $ac_cv_header_regex_h = yes; then
24746
24747
24748for ac_func in regcomp re_search
24749do
24750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24751echo "$as_me:$LINENO: checking for $ac_func" >&5
24752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24753if eval "test \"\${$as_ac_var+set}\" = set"; then
24754 echo $ECHO_N "(cached) $ECHO_C" >&6
24755else
24756 cat >conftest.$ac_ext <<_ACEOF
24757/* confdefs.h. */
24758_ACEOF
24759cat confdefs.h >>conftest.$ac_ext
24760cat >>conftest.$ac_ext <<_ACEOF
24761/* end confdefs.h. */
24762/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24764#define $ac_func innocuous_$ac_func
24765
24766/* System header to define __stub macros and hopefully few prototypes,
24767 which can conflict with char $ac_func (); below.
24768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24769 <limits.h> exists even on freestanding compilers. */
24770
24771#ifdef __STDC__
24772# include <limits.h>
24773#else
24774# include <assert.h>
24775#endif
24776
24777#undef $ac_func
24778
24779/* Override any gcc2 internal prototype to avoid an error. */
24780#ifdef __cplusplus
24781extern "C"
24782{
24783#endif
24784/* We use char because int might match the return type of a gcc2
24785 builtin and then its argument prototype would still apply. */
24786char $ac_func ();
24787/* The GNU C library defines this for functions which it implements
24788 to always fail with ENOSYS. Some functions are actually named
24789 something starting with __ and the normal name is an alias. */
24790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24791choke me
24792#else
24793char (*f) () = $ac_func;
24794#endif
24795#ifdef __cplusplus
24796}
24797#endif
24798
24799int
24800main ()
24801{
24802return f != $ac_func;
24803 ;
24804 return 0;
24805}
24806_ACEOF
24807rm -f conftest.$ac_objext conftest$ac_exeext
24808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24809 (eval $ac_link) 2>conftest.er1
24810 ac_status=$?
24811 grep -v '^ *+' conftest.er1 >conftest.err
24812 rm -f conftest.er1
24813 cat conftest.err >&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } &&
6954625c 24816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818 (eval $ac_try) 2>&5
24819 ac_status=$?
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; } &&
24822 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24824 (eval $ac_try) 2>&5
24825 ac_status=$?
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); }; }; then
24828 eval "$as_ac_var=yes"
24829else
24830 echo "$as_me: failed program was:" >&5
24831sed 's/^/| /' conftest.$ac_ext >&5
24832
24833eval "$as_ac_var=no"
24834fi
ac1cb8d3
VS
24835rm -f conftest.err conftest.$ac_objext \
24836 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24837fi
24838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24839echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24840if test `eval echo '${'$as_ac_var'}'` = yes; then
24841 cat >>confdefs.h <<_ACEOF
24842#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24843_ACEOF
24844
24845fi
24846done
24847
24848fi
24849
24850
24851
24852 if test "x$ac_cv_func_regcomp" != "xyes"; then
24853 if test "$wxUSE_REGEX" = "sys" ; then
24854 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24855echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24856 { (exit 1); exit 1; }; }
24857 else
24858 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24859echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24860 wxUSE_REGEX=builtin
24861 fi
24862 else
24863 wxUSE_REGEX=sys
24864 cat >>confdefs.h <<\_ACEOF
24865#define WX_NO_REGEX_ADVANCED 1
24866_ACEOF
24867
24868 fi
24869 fi
24870fi
24871
24872
24873ZLIB_LINK=
24874if test "$wxUSE_ZLIB" != "no" ; then
24875 cat >>confdefs.h <<\_ACEOF
24876#define wxUSE_ZLIB 1
24877_ACEOF
24878
24879
24880 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24881 if test "$USE_DARWIN" = 1; then
24882 system_zlib_h_ok="yes"
24883 else
24884 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24885echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24886if test "${ac_cv_header_zlib_h+set}" = set; then
24887 echo $ECHO_N "(cached) $ECHO_C" >&6
24888else
24889 if test "$cross_compiling" = yes; then
24890 unset ac_cv_header_zlib_h
24891
24892else
24893 cat >conftest.$ac_ext <<_ACEOF
24894/* confdefs.h. */
24895_ACEOF
24896cat confdefs.h >>conftest.$ac_ext
24897cat >>conftest.$ac_ext <<_ACEOF
24898/* end confdefs.h. */
24899
24900 #include <zlib.h>
24901 #include <stdio.h>
24902
24903 int main()
24904 {
24905 FILE *f=fopen("conftestval", "w");
24906 if (!f) exit(1);
24907 fprintf(f, "%s",
24908 ZLIB_VERSION[0] == '1' &&
24909 (ZLIB_VERSION[2] > '1' ||
24910 (ZLIB_VERSION[2] == '1' &&
24911 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24912 exit(0);
24913 }
24914
24915_ACEOF
24916rm -f conftest$ac_exeext
24917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24918 (eval $ac_link) 2>&5
24919 ac_status=$?
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24923 (eval $ac_try) 2>&5
24924 ac_status=$?
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); }; }; then
24927 ac_cv_header_zlib_h=`cat conftestval`
24928else
24929 echo "$as_me: program exited with status $ac_status" >&5
24930echo "$as_me: failed program was:" >&5
24931sed 's/^/| /' conftest.$ac_ext >&5
24932
24933( exit $ac_status )
24934ac_cv_header_zlib_h=no
24935fi
ac1cb8d3 24936rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24937fi
24938
24939fi
24940echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24941echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24942 if test "${ac_cv_header_zlib_h+set}" = set; then
24943 echo "$as_me:$LINENO: checking for zlib.h" >&5
24944echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24945if test "${ac_cv_header_zlib_h+set}" = set; then
24946 echo $ECHO_N "(cached) $ECHO_C" >&6
24947fi
24948echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24949echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24950else
24951 # Is the header compilable?
24952echo "$as_me:$LINENO: checking zlib.h usability" >&5
24953echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24954cat >conftest.$ac_ext <<_ACEOF
24955/* confdefs.h. */
24956_ACEOF
24957cat confdefs.h >>conftest.$ac_ext
24958cat >>conftest.$ac_ext <<_ACEOF
24959/* end confdefs.h. */
24960$ac_includes_default
24961#include <zlib.h>
24962_ACEOF
24963rm -f conftest.$ac_objext
24964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24965 (eval $ac_compile) 2>conftest.er1
a848cd7e 24966 ac_status=$?
ac1cb8d3
VS
24967 grep -v '^ *+' conftest.er1 >conftest.err
24968 rm -f conftest.er1
24969 cat conftest.err >&5
a848cd7e
SC
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); } &&
6954625c 24972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24974 (eval $ac_try) 2>&5
24975 ac_status=$?
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); }; } &&
24978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24980 (eval $ac_try) 2>&5
24981 ac_status=$?
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); }; }; then
24984 ac_header_compiler=yes
24985else
24986 echo "$as_me: failed program was:" >&5
24987sed 's/^/| /' conftest.$ac_ext >&5
24988
24989ac_header_compiler=no
24990fi
ac1cb8d3 24991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24992echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24993echo "${ECHO_T}$ac_header_compiler" >&6
24994
24995# Is the header present?
24996echo "$as_me:$LINENO: checking zlib.h presence" >&5
24997echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24998cat >conftest.$ac_ext <<_ACEOF
24999/* confdefs.h. */
25000_ACEOF
25001cat confdefs.h >>conftest.$ac_ext
25002cat >>conftest.$ac_ext <<_ACEOF
25003/* end confdefs.h. */
25004#include <zlib.h>
25005_ACEOF
25006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25008 ac_status=$?
25009 grep -v '^ *+' conftest.er1 >conftest.err
25010 rm -f conftest.er1
25011 cat conftest.err >&5
25012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); } >/dev/null; then
25014 if test -s conftest.err; then
5d7b7554
VZ
25015 ac_cpp_err=$ac_cxx_preproc_warn_flag
25016 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25017 else
25018 ac_cpp_err=
25019 fi
25020else
25021 ac_cpp_err=yes
25022fi
25023if test -z "$ac_cpp_err"; then
25024 ac_header_preproc=yes
25025else
25026 echo "$as_me: failed program was:" >&5
25027sed 's/^/| /' conftest.$ac_ext >&5
25028
25029 ac_header_preproc=no
25030fi
25031rm -f conftest.err conftest.$ac_ext
25032echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25033echo "${ECHO_T}$ac_header_preproc" >&6
25034
25035# So? What about this header?
5d7b7554 25036case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25037 yes:no: )
a848cd7e
SC
25038 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25039echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25040 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25041echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25042 ac_header_preproc=yes
a848cd7e 25043 ;;
ac1cb8d3 25044 no:yes:* )
a848cd7e
SC
25045 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25046echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25047 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25048echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25049 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25050echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25051 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25052echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25053 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25054echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25055 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25056echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25057 (
25058 cat <<\_ASBOX
ac1cb8d3
VS
25059## ----------------------------------------- ##
25060## Report this to wx-dev@lists.wxwidgets.org ##
25061## ----------------------------------------- ##
a848cd7e
SC
25062_ASBOX
25063 ) |
25064 sed "s/^/$as_me: WARNING: /" >&2
25065 ;;
25066esac
25067echo "$as_me:$LINENO: checking for zlib.h" >&5
25068echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25069if test "${ac_cv_header_zlib_h+set}" = set; then
25070 echo $ECHO_N "(cached) $ECHO_C" >&6
25071else
25072 ac_cv_header_zlib_h=$ac_header_preproc
25073fi
25074echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25075echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25076
25077fi
25078
25079
25080
25081 system_zlib_h_ok=$ac_cv_header_zlib_h
25082 fi
25083
25084 if test "$system_zlib_h_ok" = "yes"; then
25085 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25086echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25087if test "${ac_cv_lib_z_deflate+set}" = set; then
25088 echo $ECHO_N "(cached) $ECHO_C" >&6
25089else
25090 ac_check_lib_save_LIBS=$LIBS
25091LIBS="-lz $LIBS"
25092cat >conftest.$ac_ext <<_ACEOF
25093/* confdefs.h. */
25094_ACEOF
25095cat confdefs.h >>conftest.$ac_ext
25096cat >>conftest.$ac_ext <<_ACEOF
25097/* end confdefs.h. */
25098
25099/* Override any gcc2 internal prototype to avoid an error. */
25100#ifdef __cplusplus
25101extern "C"
25102#endif
25103/* We use char because int might match the return type of a gcc2
25104 builtin and then its argument prototype would still apply. */
25105char deflate ();
25106int
25107main ()
25108{
25109deflate ();
25110 ;
25111 return 0;
25112}
25113_ACEOF
25114rm -f conftest.$ac_objext conftest$ac_exeext
25115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25116 (eval $ac_link) 2>conftest.er1
a848cd7e 25117 ac_status=$?
ac1cb8d3
VS
25118 grep -v '^ *+' conftest.er1 >conftest.err
25119 rm -f conftest.er1
25120 cat conftest.err >&5
a848cd7e
SC
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); } &&
6954625c 25123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25125 (eval $ac_try) 2>&5
25126 ac_status=$?
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); }; } &&
25129 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25131 (eval $ac_try) 2>&5
25132 ac_status=$?
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); }; }; then
25135 ac_cv_lib_z_deflate=yes
25136else
25137 echo "$as_me: failed program was:" >&5
25138sed 's/^/| /' conftest.$ac_ext >&5
25139
25140ac_cv_lib_z_deflate=no
25141fi
ac1cb8d3
VS
25142rm -f conftest.err conftest.$ac_objext \
25143 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25144LIBS=$ac_check_lib_save_LIBS
25145fi
25146echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25147echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25148if test $ac_cv_lib_z_deflate = yes; then
25149 ZLIB_LINK=" -lz"
25150fi
25151
25152 fi
25153
25154 if test "x$ZLIB_LINK" = "x" ; then
25155 if test "$wxUSE_ZLIB" = "sys" ; then
25156 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25157echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25158 { (exit 1); exit 1; }; }
25159 else
25160 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25161echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25162 wxUSE_ZLIB=builtin
25163 fi
25164 else
25165 wxUSE_ZLIB=sys
25166 fi
25167 fi
25168fi
25169
25170
25171PNG_LINK=
25172if test "$wxUSE_LIBPNG" != "no" ; then
25173 cat >>confdefs.h <<\_ACEOF
25174#define wxUSE_LIBPNG 1
25175_ACEOF
25176
25177
25178 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25179 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25180echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25181 wxUSE_LIBPNG=sys
25182 fi
25183
25184 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25185 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25186echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25187 wxUSE_LIBPNG=builtin
25188 fi
25189
25190 if test "$wxUSE_MGL" != 1 ; then
25191 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25192 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25193echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25194if test "${ac_cv_header_png_h+set}" = set; then
25195 echo $ECHO_N "(cached) $ECHO_C" >&6
25196else
25197 if test "$cross_compiling" = yes; then
25198 unset ac_cv_header_png_h
25199
25200else
25201 cat >conftest.$ac_ext <<_ACEOF
25202/* confdefs.h. */
25203_ACEOF
25204cat confdefs.h >>conftest.$ac_ext
25205cat >>conftest.$ac_ext <<_ACEOF
25206/* end confdefs.h. */
25207
25208 #include <png.h>
25209 #include <stdio.h>
25210
25211 int main()
25212 {
25213 FILE *f=fopen("conftestval", "w");
25214 if (!f) exit(1);
25215 fprintf(f, "%s",
25216 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25217 exit(0);
25218 }
25219
25220_ACEOF
25221rm -f conftest$ac_exeext
25222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25223 (eval $ac_link) 2>&5
25224 ac_status=$?
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25228 (eval $ac_try) 2>&5
25229 ac_status=$?
25230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231 (exit $ac_status); }; }; then
25232 ac_cv_header_png_h=`cat conftestval`
25233else
25234 echo "$as_me: program exited with status $ac_status" >&5
25235echo "$as_me: failed program was:" >&5
25236sed 's/^/| /' conftest.$ac_ext >&5
25237
25238( exit $ac_status )
25239ac_cv_header_png_h=no
25240fi
ac1cb8d3 25241rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25242fi
25243
25244fi
25245echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25246echo "${ECHO_T}$ac_cv_header_png_h" >&6
25247 if test "${ac_cv_header_png_h+set}" = set; then
25248 echo "$as_me:$LINENO: checking for png.h" >&5
25249echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25250if test "${ac_cv_header_png_h+set}" = set; then
25251 echo $ECHO_N "(cached) $ECHO_C" >&6
25252fi
25253echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25254echo "${ECHO_T}$ac_cv_header_png_h" >&6
25255else
25256 # Is the header compilable?
25257echo "$as_me:$LINENO: checking png.h usability" >&5
25258echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25259cat >conftest.$ac_ext <<_ACEOF
25260/* confdefs.h. */
25261_ACEOF
25262cat confdefs.h >>conftest.$ac_ext
25263cat >>conftest.$ac_ext <<_ACEOF
25264/* end confdefs.h. */
25265$ac_includes_default
25266#include <png.h>
25267_ACEOF
25268rm -f conftest.$ac_objext
25269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25270 (eval $ac_compile) 2>conftest.er1
a848cd7e 25271 ac_status=$?
ac1cb8d3
VS
25272 grep -v '^ *+' conftest.er1 >conftest.err
25273 rm -f conftest.er1
25274 cat conftest.err >&5
a848cd7e
SC
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); } &&
6954625c 25277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25279 (eval $ac_try) 2>&5
25280 ac_status=$?
25281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282 (exit $ac_status); }; } &&
25283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25285 (eval $ac_try) 2>&5
25286 ac_status=$?
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); }; }; then
25289 ac_header_compiler=yes
25290else
25291 echo "$as_me: failed program was:" >&5
25292sed 's/^/| /' conftest.$ac_ext >&5
25293
25294ac_header_compiler=no
25295fi
ac1cb8d3 25296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25298echo "${ECHO_T}$ac_header_compiler" >&6
25299
25300# Is the header present?
25301echo "$as_me:$LINENO: checking png.h presence" >&5
25302echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25303cat >conftest.$ac_ext <<_ACEOF
25304/* confdefs.h. */
25305_ACEOF
25306cat confdefs.h >>conftest.$ac_ext
25307cat >>conftest.$ac_ext <<_ACEOF
25308/* end confdefs.h. */
25309#include <png.h>
25310_ACEOF
25311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25313 ac_status=$?
25314 grep -v '^ *+' conftest.er1 >conftest.err
25315 rm -f conftest.er1
25316 cat conftest.err >&5
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); } >/dev/null; then
25319 if test -s conftest.err; then
5d7b7554
VZ
25320 ac_cpp_err=$ac_cxx_preproc_warn_flag
25321 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25322 else
25323 ac_cpp_err=
25324 fi
25325else
25326 ac_cpp_err=yes
25327fi
25328if test -z "$ac_cpp_err"; then
25329 ac_header_preproc=yes
25330else
25331 echo "$as_me: failed program was:" >&5
25332sed 's/^/| /' conftest.$ac_ext >&5
25333
25334 ac_header_preproc=no
25335fi
25336rm -f conftest.err conftest.$ac_ext
25337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25338echo "${ECHO_T}$ac_header_preproc" >&6
25339
25340# So? What about this header?
5d7b7554 25341case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25342 yes:no: )
a848cd7e
SC
25343 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25344echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25345 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25346echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25347 ac_header_preproc=yes
a848cd7e 25348 ;;
ac1cb8d3 25349 no:yes:* )
a848cd7e
SC
25350 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25351echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25352 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25353echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25354 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25355echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25356 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25357echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25358 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25359echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25360 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25361echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25362 (
25363 cat <<\_ASBOX
ac1cb8d3
VS
25364## ----------------------------------------- ##
25365## Report this to wx-dev@lists.wxwidgets.org ##
25366## ----------------------------------------- ##
a848cd7e
SC
25367_ASBOX
25368 ) |
25369 sed "s/^/$as_me: WARNING: /" >&2
25370 ;;
25371esac
25372echo "$as_me:$LINENO: checking for png.h" >&5
25373echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25374if test "${ac_cv_header_png_h+set}" = set; then
25375 echo $ECHO_N "(cached) $ECHO_C" >&6
25376else
25377 ac_cv_header_png_h=$ac_header_preproc
25378fi
25379echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25380echo "${ECHO_T}$ac_cv_header_png_h" >&6
25381
25382fi
25383
25384
25385
25386 if test "$ac_cv_header_png_h" = "yes"; then
25387 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25388echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25389if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25390 echo $ECHO_N "(cached) $ECHO_C" >&6
25391else
25392 ac_check_lib_save_LIBS=$LIBS
25393LIBS="-lpng -lz -lm $LIBS"
25394cat >conftest.$ac_ext <<_ACEOF
25395/* confdefs.h. */
25396_ACEOF
25397cat confdefs.h >>conftest.$ac_ext
25398cat >>conftest.$ac_ext <<_ACEOF
25399/* end confdefs.h. */
25400
25401/* Override any gcc2 internal prototype to avoid an error. */
25402#ifdef __cplusplus
25403extern "C"
25404#endif
25405/* We use char because int might match the return type of a gcc2
25406 builtin and then its argument prototype would still apply. */
25407char png_check_sig ();
25408int
25409main ()
25410{
25411png_check_sig ();
25412 ;
25413 return 0;
25414}
25415_ACEOF
25416rm -f conftest.$ac_objext conftest$ac_exeext
25417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25418 (eval $ac_link) 2>conftest.er1
a848cd7e 25419 ac_status=$?
ac1cb8d3
VS
25420 grep -v '^ *+' conftest.er1 >conftest.err
25421 rm -f conftest.er1
25422 cat conftest.err >&5
a848cd7e
SC
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); } &&
6954625c 25425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25427 (eval $ac_try) 2>&5
25428 ac_status=$?
25429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430 (exit $ac_status); }; } &&
25431 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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_lib_png_png_check_sig=yes
25438else
25439 echo "$as_me: failed program was:" >&5
25440sed 's/^/| /' conftest.$ac_ext >&5
25441
25442ac_cv_lib_png_png_check_sig=no
25443fi
ac1cb8d3
VS
25444rm -f conftest.err conftest.$ac_objext \
25445 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25446LIBS=$ac_check_lib_save_LIBS
25447fi
25448echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25449echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25450if test $ac_cv_lib_png_png_check_sig = yes; then
25451 PNG_LINK=" -lpng -lz"
25452fi
25453
25454 fi
25455
25456 if test "x$PNG_LINK" = "x" ; then
25457 if test "$wxUSE_LIBPNG" = "sys" ; then
25458 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25459echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25460 { (exit 1); exit 1; }; }
25461 else
25462 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25463echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25464 wxUSE_LIBPNG=builtin
25465 fi
25466 else
25467 wxUSE_LIBPNG=sys
25468 fi
25469 fi
25470 fi
25471
25472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25473fi
25474
25475
25476JPEG_LINK=
25477if test "$wxUSE_LIBJPEG" != "no" ; then
25478 cat >>confdefs.h <<\_ACEOF
25479#define wxUSE_LIBJPEG 1
25480_ACEOF
25481
25482
25483 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25484 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25485echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25486 wxUSE_LIBJPEG=sys
25487 fi
25488
25489 if test "$wxUSE_MGL" != 1 ; then
25490 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25491 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25492echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25493 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25494 echo $ECHO_N "(cached) $ECHO_C" >&6
25495else
25496 cat >conftest.$ac_ext <<_ACEOF
25497/* confdefs.h. */
25498_ACEOF
25499cat confdefs.h >>conftest.$ac_ext
25500cat >>conftest.$ac_ext <<_ACEOF
25501/* end confdefs.h. */
25502
25503 #undef HAVE_STDLIB_H
25504 #include <stdio.h>
25505 #include <jpeglib.h>
25506
25507int
25508main ()
25509{
25510
25511
25512 ;
25513 return 0;
25514}
25515_ACEOF
25516rm -f conftest.$ac_objext
25517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25518 (eval $ac_compile) 2>conftest.er1
a848cd7e 25519 ac_status=$?
ac1cb8d3
VS
25520 grep -v '^ *+' conftest.er1 >conftest.err
25521 rm -f conftest.er1
25522 cat conftest.err >&5
a848cd7e
SC
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); } &&
6954625c 25525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527 (eval $ac_try) 2>&5
25528 ac_status=$?
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }; } &&
25531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533 (eval $ac_try) 2>&5
25534 ac_status=$?
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); }; }; then
25537 ac_cv_header_jpeglib_h=yes
25538else
25539 echo "$as_me: failed program was:" >&5
25540sed 's/^/| /' conftest.$ac_ext >&5
25541
25542ac_cv_header_jpeglib_h=no
25543
25544fi
ac1cb8d3 25545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25546
25547fi
25548
25549 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25550echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25551
25552 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25553 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25554echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25555if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25556 echo $ECHO_N "(cached) $ECHO_C" >&6
25557else
25558 ac_check_lib_save_LIBS=$LIBS
25559LIBS="-ljpeg $LIBS"
25560cat >conftest.$ac_ext <<_ACEOF
25561/* confdefs.h. */
25562_ACEOF
25563cat confdefs.h >>conftest.$ac_ext
25564cat >>conftest.$ac_ext <<_ACEOF
25565/* end confdefs.h. */
25566
25567/* Override any gcc2 internal prototype to avoid an error. */
25568#ifdef __cplusplus
25569extern "C"
25570#endif
25571/* We use char because int might match the return type of a gcc2
25572 builtin and then its argument prototype would still apply. */
25573char jpeg_read_header ();
25574int
25575main ()
25576{
25577jpeg_read_header ();
25578 ;
25579 return 0;
25580}
25581_ACEOF
25582rm -f conftest.$ac_objext conftest$ac_exeext
25583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25584 (eval $ac_link) 2>conftest.er1
a848cd7e 25585 ac_status=$?
ac1cb8d3
VS
25586 grep -v '^ *+' conftest.er1 >conftest.err
25587 rm -f conftest.er1
25588 cat conftest.err >&5
a848cd7e
SC
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); } &&
6954625c 25591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25593 (eval $ac_try) 2>&5
25594 ac_status=$?
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); }; } &&
25597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25599 (eval $ac_try) 2>&5
25600 ac_status=$?
25601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); }; }; then
25603 ac_cv_lib_jpeg_jpeg_read_header=yes
25604else
25605 echo "$as_me: failed program was:" >&5
25606sed 's/^/| /' conftest.$ac_ext >&5
25607
25608ac_cv_lib_jpeg_jpeg_read_header=no
25609fi
ac1cb8d3
VS
25610rm -f conftest.err conftest.$ac_objext \
25611 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25612LIBS=$ac_check_lib_save_LIBS
25613fi
25614echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25615echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25616if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25617 JPEG_LINK=" -ljpeg"
25618fi
25619
25620 fi
25621
25622 if test "x$JPEG_LINK" = "x" ; then
25623 if test "$wxUSE_LIBJPEG" = "sys" ; then
25624 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25625echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25626 { (exit 1); exit 1; }; }
25627 else
25628 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25629echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25630 wxUSE_LIBJPEG=builtin
25631 fi
25632 else
25633 wxUSE_LIBJPEG=sys
25634 fi
25635 fi
25636 fi
25637fi
25638
25639
25640TIFF_LINK=
25641TIFF_PREREQ_LINKS=-lm
25642if test "$wxUSE_LIBTIFF" != "no" ; then
25643 cat >>confdefs.h <<\_ACEOF
25644#define wxUSE_LIBTIFF 1
25645_ACEOF
25646
25647
25648 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25649 if test "$wxUSE_LIBJPEG" = "sys"; then
25650 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25651 fi
25652 if test "$wxUSE_ZLIB" = "sys"; then
25653 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25654 fi
25655 if test "${ac_cv_header_tiffio_h+set}" = set; then
25656 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25657echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25658if test "${ac_cv_header_tiffio_h+set}" = set; then
25659 echo $ECHO_N "(cached) $ECHO_C" >&6
25660fi
25661echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25662echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25663else
25664 # Is the header compilable?
25665echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25666echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25667cat >conftest.$ac_ext <<_ACEOF
25668/* confdefs.h. */
25669_ACEOF
25670cat confdefs.h >>conftest.$ac_ext
25671cat >>conftest.$ac_ext <<_ACEOF
25672/* end confdefs.h. */
25673$ac_includes_default
25674#include <tiffio.h>
25675_ACEOF
25676rm -f conftest.$ac_objext
25677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25678 (eval $ac_compile) 2>conftest.er1
a848cd7e 25679 ac_status=$?
ac1cb8d3
VS
25680 grep -v '^ *+' conftest.er1 >conftest.err
25681 rm -f conftest.er1
25682 cat conftest.err >&5
a848cd7e
SC
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } &&
6954625c 25685 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25687 (eval $ac_try) 2>&5
25688 ac_status=$?
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); }; } &&
25691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693 (eval $ac_try) 2>&5
25694 ac_status=$?
25695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); }; }; then
25697 ac_header_compiler=yes
25698else
25699 echo "$as_me: failed program was:" >&5
25700sed 's/^/| /' conftest.$ac_ext >&5
25701
25702ac_header_compiler=no
25703fi
ac1cb8d3 25704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25705echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25706echo "${ECHO_T}$ac_header_compiler" >&6
25707
25708# Is the header present?
25709echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25710echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25711cat >conftest.$ac_ext <<_ACEOF
25712/* confdefs.h. */
25713_ACEOF
25714cat confdefs.h >>conftest.$ac_ext
25715cat >>conftest.$ac_ext <<_ACEOF
25716/* end confdefs.h. */
25717#include <tiffio.h>
25718_ACEOF
25719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25721 ac_status=$?
25722 grep -v '^ *+' conftest.er1 >conftest.err
25723 rm -f conftest.er1
25724 cat conftest.err >&5
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); } >/dev/null; then
25727 if test -s conftest.err; then
5d7b7554
VZ
25728 ac_cpp_err=$ac_cxx_preproc_warn_flag
25729 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25730 else
25731 ac_cpp_err=
25732 fi
25733else
25734 ac_cpp_err=yes
25735fi
25736if test -z "$ac_cpp_err"; then
25737 ac_header_preproc=yes
25738else
25739 echo "$as_me: failed program was:" >&5
25740sed 's/^/| /' conftest.$ac_ext >&5
25741
25742 ac_header_preproc=no
25743fi
25744rm -f conftest.err conftest.$ac_ext
25745echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25746echo "${ECHO_T}$ac_header_preproc" >&6
25747
25748# So? What about this header?
5d7b7554 25749case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25750 yes:no: )
a848cd7e
SC
25751 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25752echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25753 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25754echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25755 ac_header_preproc=yes
a848cd7e 25756 ;;
ac1cb8d3 25757 no:yes:* )
a848cd7e
SC
25758 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25759echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25760 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25761echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25762 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25763echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25764 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25765echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25766 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25767echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25768 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25769echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25770 (
25771 cat <<\_ASBOX
ac1cb8d3
VS
25772## ----------------------------------------- ##
25773## Report this to wx-dev@lists.wxwidgets.org ##
25774## ----------------------------------------- ##
a848cd7e
SC
25775_ASBOX
25776 ) |
25777 sed "s/^/$as_me: WARNING: /" >&2
25778 ;;
25779esac
25780echo "$as_me:$LINENO: checking for tiffio.h" >&5
25781echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25782if test "${ac_cv_header_tiffio_h+set}" = set; then
25783 echo $ECHO_N "(cached) $ECHO_C" >&6
25784else
25785 ac_cv_header_tiffio_h=$ac_header_preproc
25786fi
25787echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25788echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25789
25790fi
25791if test $ac_cv_header_tiffio_h = yes; then
25792
25793 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25794echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25795if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25796 echo $ECHO_N "(cached) $ECHO_C" >&6
25797else
25798 ac_check_lib_save_LIBS=$LIBS
25799LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25800cat >conftest.$ac_ext <<_ACEOF
25801/* confdefs.h. */
25802_ACEOF
25803cat confdefs.h >>conftest.$ac_ext
25804cat >>conftest.$ac_ext <<_ACEOF
25805/* end confdefs.h. */
25806
25807/* Override any gcc2 internal prototype to avoid an error. */
25808#ifdef __cplusplus
25809extern "C"
25810#endif
25811/* We use char because int might match the return type of a gcc2
25812 builtin and then its argument prototype would still apply. */
25813char TIFFError ();
25814int
25815main ()
25816{
25817TIFFError ();
25818 ;
25819 return 0;
25820}
25821_ACEOF
25822rm -f conftest.$ac_objext conftest$ac_exeext
25823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25824 (eval $ac_link) 2>conftest.er1
a848cd7e 25825 ac_status=$?
ac1cb8d3
VS
25826 grep -v '^ *+' conftest.er1 >conftest.err
25827 rm -f conftest.er1
25828 cat conftest.err >&5
a848cd7e
SC
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); } &&
6954625c 25831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25833 (eval $ac_try) 2>&5
25834 ac_status=$?
25835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836 (exit $ac_status); }; } &&
25837 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25839 (eval $ac_try) 2>&5
25840 ac_status=$?
25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); }; }; then
25843 ac_cv_lib_tiff_TIFFError=yes
25844else
25845 echo "$as_me: failed program was:" >&5
25846sed 's/^/| /' conftest.$ac_ext >&5
25847
25848ac_cv_lib_tiff_TIFFError=no
25849fi
ac1cb8d3
VS
25850rm -f conftest.err conftest.$ac_objext \
25851 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25852LIBS=$ac_check_lib_save_LIBS
25853fi
25854echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25855echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25856if test $ac_cv_lib_tiff_TIFFError = yes; then
25857 TIFF_LINK=" -ltiff"
25858fi
25859
25860
25861
25862fi
25863
25864
25865
25866 if test "x$TIFF_LINK" = "x" ; then
25867 if test "$wxUSE_LIBTIFF" = "sys" ; then
25868 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25869echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25870 { (exit 1); exit 1; }; }
25871 else
25872 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25873echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25874 wxUSE_LIBTIFF=builtin
25875 fi
25876 else
25877 wxUSE_LIBTIFF=sys
25878 fi
25879 fi
25880fi
25881
25882
47a7e797
MW
25883if test "$wxUSE_WCHAR_T" != "yes"; then
25884 if test "$wxUSE_EXPAT" != "no"; then
25885 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25886echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25887 wxUSE_EXPAT=no
25888 fi
25889 if test "$wxUSE_XML" != "no"; then
25890 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25891echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25892 wxUSE_XML=no
25893 fi
25894fi
25895
a848cd7e
SC
25896if test "$wxUSE_EXPAT" != "no"; then
25897 wxUSE_XML=yes
25898 cat >>confdefs.h <<\_ACEOF
25899#define wxUSE_EXPAT 1
25900_ACEOF
25901
25902 cat >>confdefs.h <<\_ACEOF
25903#define wxUSE_XML 1
25904_ACEOF
25905
25906
25907 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25908 if test "${ac_cv_header_expat_h+set}" = set; then
25909 echo "$as_me:$LINENO: checking for expat.h" >&5
25910echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25911if test "${ac_cv_header_expat_h+set}" = set; then
25912 echo $ECHO_N "(cached) $ECHO_C" >&6
25913fi
25914echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25915echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25916else
25917 # Is the header compilable?
25918echo "$as_me:$LINENO: checking expat.h usability" >&5
25919echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25920cat >conftest.$ac_ext <<_ACEOF
25921/* confdefs.h. */
25922_ACEOF
25923cat confdefs.h >>conftest.$ac_ext
25924cat >>conftest.$ac_ext <<_ACEOF
25925/* end confdefs.h. */
25926$ac_includes_default
25927#include <expat.h>
25928_ACEOF
25929rm -f conftest.$ac_objext
25930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25931 (eval $ac_compile) 2>conftest.er1
a848cd7e 25932 ac_status=$?
ac1cb8d3
VS
25933 grep -v '^ *+' conftest.er1 >conftest.err
25934 rm -f conftest.er1
25935 cat conftest.err >&5
a848cd7e
SC
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); } &&
6954625c 25938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); }; } &&
25944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946 (eval $ac_try) 2>&5
25947 ac_status=$?
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); }; }; then
25950 ac_header_compiler=yes
25951else
25952 echo "$as_me: failed program was:" >&5
25953sed 's/^/| /' conftest.$ac_ext >&5
25954
25955ac_header_compiler=no
25956fi
ac1cb8d3 25957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25958echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25959echo "${ECHO_T}$ac_header_compiler" >&6
25960
25961# Is the header present?
25962echo "$as_me:$LINENO: checking expat.h presence" >&5
25963echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25964cat >conftest.$ac_ext <<_ACEOF
25965/* confdefs.h. */
25966_ACEOF
25967cat confdefs.h >>conftest.$ac_ext
25968cat >>conftest.$ac_ext <<_ACEOF
25969/* end confdefs.h. */
25970#include <expat.h>
25971_ACEOF
25972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25974 ac_status=$?
25975 grep -v '^ *+' conftest.er1 >conftest.err
25976 rm -f conftest.er1
25977 cat conftest.err >&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); } >/dev/null; then
25980 if test -s conftest.err; then
5d7b7554
VZ
25981 ac_cpp_err=$ac_cxx_preproc_warn_flag
25982 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25983 else
25984 ac_cpp_err=
25985 fi
25986else
25987 ac_cpp_err=yes
25988fi
25989if test -z "$ac_cpp_err"; then
25990 ac_header_preproc=yes
25991else
25992 echo "$as_me: failed program was:" >&5
25993sed 's/^/| /' conftest.$ac_ext >&5
25994
25995 ac_header_preproc=no
25996fi
25997rm -f conftest.err conftest.$ac_ext
25998echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25999echo "${ECHO_T}$ac_header_preproc" >&6
26000
26001# So? What about this header?
5d7b7554 26002case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26003 yes:no: )
a848cd7e
SC
26004 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26005echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26006 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26007echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26008 ac_header_preproc=yes
a848cd7e 26009 ;;
ac1cb8d3 26010 no:yes:* )
a848cd7e
SC
26011 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26012echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26013 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26014echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26015 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26016echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26017 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26018echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26019 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26020echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26021 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26022echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26023 (
26024 cat <<\_ASBOX
ac1cb8d3
VS
26025## ----------------------------------------- ##
26026## Report this to wx-dev@lists.wxwidgets.org ##
26027## ----------------------------------------- ##
a848cd7e
SC
26028_ASBOX
26029 ) |
26030 sed "s/^/$as_me: WARNING: /" >&2
26031 ;;
26032esac
26033echo "$as_me:$LINENO: checking for expat.h" >&5
26034echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26035if test "${ac_cv_header_expat_h+set}" = set; then
26036 echo $ECHO_N "(cached) $ECHO_C" >&6
26037else
26038 ac_cv_header_expat_h=$ac_header_preproc
26039fi
26040echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26041echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26042
26043fi
26044if test $ac_cv_header_expat_h = yes; then
26045 found_expat_h=1
26046fi
26047
26048
26049 if test "x$found_expat_h" = "x1"; then
26050 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26051echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26052if test "${wx_cv_expat_is_not_broken+set}" = set; then
26053 echo $ECHO_N "(cached) $ECHO_C" >&6
26054else
26055
a848cd7e
SC
26056 cat >conftest.$ac_ext <<_ACEOF
26057/* confdefs.h. */
26058_ACEOF
26059cat confdefs.h >>conftest.$ac_ext
26060cat >>conftest.$ac_ext <<_ACEOF
26061/* end confdefs.h. */
26062#include <expat.h>
26063int
26064main ()
26065{
26066
26067 ;
26068 return 0;
26069}
26070_ACEOF
26071rm -f conftest.$ac_objext
26072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26073 (eval $ac_compile) 2>conftest.er1
a848cd7e 26074 ac_status=$?
ac1cb8d3
VS
26075 grep -v '^ *+' conftest.er1 >conftest.err
26076 rm -f conftest.er1
26077 cat conftest.err >&5
a848cd7e
SC
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } &&
6954625c 26080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26082 (eval $ac_try) 2>&5
26083 ac_status=$?
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); }; } &&
26086 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26088 (eval $ac_try) 2>&5
26089 ac_status=$?
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); }; }; then
26092 wx_cv_expat_is_not_broken=yes
26093else
26094 echo "$as_me: failed program was:" >&5
26095sed 's/^/| /' conftest.$ac_ext >&5
26096
26097wx_cv_expat_is_not_broken=no
26098
26099fi
ac1cb8d3 26100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26101
26102
26103fi
26104echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26105echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26106 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26107 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26108echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26109if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26110 echo $ECHO_N "(cached) $ECHO_C" >&6
26111else
26112 ac_check_lib_save_LIBS=$LIBS
26113LIBS="-lexpat $LIBS"
26114cat >conftest.$ac_ext <<_ACEOF
26115/* confdefs.h. */
26116_ACEOF
26117cat confdefs.h >>conftest.$ac_ext
26118cat >>conftest.$ac_ext <<_ACEOF
26119/* end confdefs.h. */
26120
26121/* Override any gcc2 internal prototype to avoid an error. */
26122#ifdef __cplusplus
26123extern "C"
26124#endif
26125/* We use char because int might match the return type of a gcc2
26126 builtin and then its argument prototype would still apply. */
26127char XML_ParserCreate ();
26128int
26129main ()
26130{
26131XML_ParserCreate ();
26132 ;
26133 return 0;
26134}
26135_ACEOF
26136rm -f conftest.$ac_objext conftest$ac_exeext
26137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26138 (eval $ac_link) 2>conftest.er1
a848cd7e 26139 ac_status=$?
ac1cb8d3
VS
26140 grep -v '^ *+' conftest.er1 >conftest.err
26141 rm -f conftest.er1
26142 cat conftest.err >&5
a848cd7e
SC
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); } &&
6954625c 26145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26147 (eval $ac_try) 2>&5
26148 ac_status=$?
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); }; } &&
26151 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26153 (eval $ac_try) 2>&5
26154 ac_status=$?
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156 (exit $ac_status); }; }; then
26157 ac_cv_lib_expat_XML_ParserCreate=yes
26158else
26159 echo "$as_me: failed program was:" >&5
26160sed 's/^/| /' conftest.$ac_ext >&5
26161
26162ac_cv_lib_expat_XML_ParserCreate=no
26163fi
ac1cb8d3
VS
26164rm -f conftest.err conftest.$ac_objext \
26165 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26166LIBS=$ac_check_lib_save_LIBS
26167fi
26168echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26169echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26170if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26171 EXPAT_LINK=" -lexpat"
26172fi
26173
26174 fi
26175 fi
26176 if test "x$EXPAT_LINK" = "x" ; then
26177 if test "$wxUSE_EXPAT" = "sys" ; then
26178 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26179echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26180 { (exit 1); exit 1; }; }
26181 else
26182 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26183echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26184 wxUSE_EXPAT=builtin
26185 fi
26186 else
26187 wxUSE_EXPAT=sys
26188 fi
26189 fi
26190 if test "$wxUSE_EXPAT" = "builtin" ; then
26191
26192
26193subdirs="$subdirs src/expat"
26194
26195 fi
26196fi
26197
26198
26199
26200if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26201 if test "${ac_cv_header_mspack_h+set}" = set; then
26202 echo "$as_me:$LINENO: checking for mspack.h" >&5
26203echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26204if test "${ac_cv_header_mspack_h+set}" = set; then
26205 echo $ECHO_N "(cached) $ECHO_C" >&6
26206fi
26207echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26208echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26209else
26210 # Is the header compilable?
26211echo "$as_me:$LINENO: checking mspack.h usability" >&5
26212echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26213cat >conftest.$ac_ext <<_ACEOF
26214/* confdefs.h. */
26215_ACEOF
26216cat confdefs.h >>conftest.$ac_ext
26217cat >>conftest.$ac_ext <<_ACEOF
26218/* end confdefs.h. */
26219$ac_includes_default
26220#include <mspack.h>
26221_ACEOF
26222rm -f conftest.$ac_objext
26223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26224 (eval $ac_compile) 2>conftest.er1
a848cd7e 26225 ac_status=$?
ac1cb8d3
VS
26226 grep -v '^ *+' conftest.er1 >conftest.err
26227 rm -f conftest.er1
26228 cat conftest.err >&5
a848cd7e
SC
26229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230 (exit $ac_status); } &&
6954625c 26231 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26233 (eval $ac_try) 2>&5
26234 ac_status=$?
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); }; } &&
26237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26239 (eval $ac_try) 2>&5
26240 ac_status=$?
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); }; }; then
26243 ac_header_compiler=yes
26244else
26245 echo "$as_me: failed program was:" >&5
26246sed 's/^/| /' conftest.$ac_ext >&5
26247
26248ac_header_compiler=no
26249fi
ac1cb8d3 26250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26251echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26252echo "${ECHO_T}$ac_header_compiler" >&6
26253
26254# Is the header present?
26255echo "$as_me:$LINENO: checking mspack.h presence" >&5
26256echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26257cat >conftest.$ac_ext <<_ACEOF
26258/* confdefs.h. */
26259_ACEOF
26260cat confdefs.h >>conftest.$ac_ext
26261cat >>conftest.$ac_ext <<_ACEOF
26262/* end confdefs.h. */
26263#include <mspack.h>
26264_ACEOF
26265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26267 ac_status=$?
26268 grep -v '^ *+' conftest.er1 >conftest.err
26269 rm -f conftest.er1
26270 cat conftest.err >&5
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); } >/dev/null; then
26273 if test -s conftest.err; then
5d7b7554
VZ
26274 ac_cpp_err=$ac_cxx_preproc_warn_flag
26275 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26276 else
26277 ac_cpp_err=
26278 fi
26279else
26280 ac_cpp_err=yes
26281fi
26282if test -z "$ac_cpp_err"; then
26283 ac_header_preproc=yes
26284else
26285 echo "$as_me: failed program was:" >&5
26286sed 's/^/| /' conftest.$ac_ext >&5
26287
26288 ac_header_preproc=no
26289fi
26290rm -f conftest.err conftest.$ac_ext
26291echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26292echo "${ECHO_T}$ac_header_preproc" >&6
26293
26294# So? What about this header?
5d7b7554 26295case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26296 yes:no: )
a848cd7e
SC
26297 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26298echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26299 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26300echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26301 ac_header_preproc=yes
a848cd7e 26302 ;;
ac1cb8d3 26303 no:yes:* )
a848cd7e
SC
26304 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26305echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26306 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26307echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26308 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26309echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26310 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26311echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26312 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26313echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26314 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26315echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26316 (
26317 cat <<\_ASBOX
ac1cb8d3
VS
26318## ----------------------------------------- ##
26319## Report this to wx-dev@lists.wxwidgets.org ##
26320## ----------------------------------------- ##
a848cd7e
SC
26321_ASBOX
26322 ) |
26323 sed "s/^/$as_me: WARNING: /" >&2
26324 ;;
26325esac
26326echo "$as_me:$LINENO: checking for mspack.h" >&5
26327echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26328if test "${ac_cv_header_mspack_h+set}" = set; then
26329 echo $ECHO_N "(cached) $ECHO_C" >&6
26330else
26331 ac_cv_header_mspack_h=$ac_header_preproc
26332fi
26333echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26334echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26335
26336fi
26337if test $ac_cv_header_mspack_h = yes; then
26338 found_mspack_h=1
26339fi
26340
26341
26342 if test "x$found_mspack_h" = "x1"; then
26343 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26344echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26345if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26346 echo $ECHO_N "(cached) $ECHO_C" >&6
26347else
26348 ac_check_lib_save_LIBS=$LIBS
26349LIBS="-lmspack $LIBS"
26350cat >conftest.$ac_ext <<_ACEOF
26351/* confdefs.h. */
26352_ACEOF
26353cat confdefs.h >>conftest.$ac_ext
26354cat >>conftest.$ac_ext <<_ACEOF
26355/* end confdefs.h. */
26356
26357/* Override any gcc2 internal prototype to avoid an error. */
26358#ifdef __cplusplus
26359extern "C"
26360#endif
26361/* We use char because int might match the return type of a gcc2
26362 builtin and then its argument prototype would still apply. */
26363char mspack_create_chm_decompressor ();
26364int
26365main ()
26366{
26367mspack_create_chm_decompressor ();
26368 ;
26369 return 0;
26370}
26371_ACEOF
26372rm -f conftest.$ac_objext conftest$ac_exeext
26373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26374 (eval $ac_link) 2>conftest.er1
a848cd7e 26375 ac_status=$?
ac1cb8d3
VS
26376 grep -v '^ *+' conftest.er1 >conftest.err
26377 rm -f conftest.er1
26378 cat conftest.err >&5
a848cd7e
SC
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); } &&
6954625c 26381 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26383 (eval $ac_try) 2>&5
26384 ac_status=$?
26385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386 (exit $ac_status); }; } &&
26387 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26389 (eval $ac_try) 2>&5
26390 ac_status=$?
26391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392 (exit $ac_status); }; }; then
26393 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26394else
26395 echo "$as_me: failed program was:" >&5
26396sed 's/^/| /' conftest.$ac_ext >&5
26397
26398ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26399fi
ac1cb8d3
VS
26400rm -f conftest.err conftest.$ac_objext \
26401 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26402LIBS=$ac_check_lib_save_LIBS
26403fi
26404echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26405echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26406if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26407 MSPACK_LINK=" -lmspack"
26408fi
26409
26410 fi
26411 if test "x$MSPACK_LINK" = "x" ; then
26412 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26413 fi
26414fi
26415
26416if test "$wxUSE_LIBMSPACK" != "no"; then
26417 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26418#define wxUSE_LIBMSPACK 1
26419_ACEOF
26420
a848cd7e
SC
26421fi
26422
26423
26424
26425AFMINSTALL=
26426WIN32INSTALL=
26427
26428TOOLKIT=
26429TOOLKIT_INCLUDE=
26430WIDGET_SET=
26431
26432if test "$USE_WIN32" = 1 ; then
26433
26434for ac_header in w32api.h
26435do
26436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26437if eval "test \"\${$as_ac_Header+set}\" = set"; then
26438 echo "$as_me:$LINENO: checking for $ac_header" >&5
26439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26440if eval "test \"\${$as_ac_Header+set}\" = set"; then
26441 echo $ECHO_N "(cached) $ECHO_C" >&6
26442fi
26443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26445else
26446 # Is the header compilable?
26447echo "$as_me:$LINENO: checking $ac_header usability" >&5
26448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26449cat >conftest.$ac_ext <<_ACEOF
26450/* confdefs.h. */
26451_ACEOF
26452cat confdefs.h >>conftest.$ac_ext
26453cat >>conftest.$ac_ext <<_ACEOF
26454/* end confdefs.h. */
26455$ac_includes_default
26456#include <$ac_header>
26457_ACEOF
26458rm -f conftest.$ac_objext
26459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26460 (eval $ac_compile) 2>conftest.er1
a848cd7e 26461 ac_status=$?
ac1cb8d3
VS
26462 grep -v '^ *+' conftest.er1 >conftest.err
26463 rm -f conftest.er1
26464 cat conftest.err >&5
a848cd7e
SC
26465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466 (exit $ac_status); } &&
6954625c 26467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26469 (eval $ac_try) 2>&5
26470 ac_status=$?
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); }; } &&
26473 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; }; then
26479 ac_header_compiler=yes
26480else
26481 echo "$as_me: failed program was:" >&5
26482sed 's/^/| /' conftest.$ac_ext >&5
26483
26484ac_header_compiler=no
26485fi
ac1cb8d3 26486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26487echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26488echo "${ECHO_T}$ac_header_compiler" >&6
26489
26490# Is the header present?
26491echo "$as_me:$LINENO: checking $ac_header presence" >&5
26492echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26493cat >conftest.$ac_ext <<_ACEOF
26494/* confdefs.h. */
26495_ACEOF
26496cat confdefs.h >>conftest.$ac_ext
26497cat >>conftest.$ac_ext <<_ACEOF
26498/* end confdefs.h. */
26499#include <$ac_header>
26500_ACEOF
26501if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26503 ac_status=$?
26504 grep -v '^ *+' conftest.er1 >conftest.err
26505 rm -f conftest.er1
26506 cat conftest.err >&5
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } >/dev/null; then
26509 if test -s conftest.err; then
5d7b7554
VZ
26510 ac_cpp_err=$ac_cxx_preproc_warn_flag
26511 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26512 else
26513 ac_cpp_err=
26514 fi
26515else
26516 ac_cpp_err=yes
26517fi
26518if test -z "$ac_cpp_err"; then
26519 ac_header_preproc=yes
26520else
26521 echo "$as_me: failed program was:" >&5
26522sed 's/^/| /' conftest.$ac_ext >&5
26523
26524 ac_header_preproc=no
26525fi
26526rm -f conftest.err conftest.$ac_ext
26527echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26528echo "${ECHO_T}$ac_header_preproc" >&6
26529
26530# So? What about this header?
5d7b7554 26531case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26532 yes:no: )
a848cd7e
SC
26533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26534echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26536echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26537 ac_header_preproc=yes
a848cd7e 26538 ;;
ac1cb8d3 26539 no:yes:* )
a848cd7e
SC
26540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26541echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26543echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26545echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26547echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26549echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26551echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26552 (
26553 cat <<\_ASBOX
ac1cb8d3
VS
26554## ----------------------------------------- ##
26555## Report this to wx-dev@lists.wxwidgets.org ##
26556## ----------------------------------------- ##
a848cd7e
SC
26557_ASBOX
26558 ) |
26559 sed "s/^/$as_me: WARNING: /" >&2
26560 ;;
26561esac
26562echo "$as_me:$LINENO: checking for $ac_header" >&5
26563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26564if eval "test \"\${$as_ac_Header+set}\" = set"; then
26565 echo $ECHO_N "(cached) $ECHO_C" >&6
26566else
ac1cb8d3 26567 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26568fi
26569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26571
26572fi
26573if test `eval echo '${'$as_ac_Header'}'` = yes; then
26574 cat >>confdefs.h <<_ACEOF
26575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26576_ACEOF
26577
26578fi
26579
26580done
26581
26582 if test "${ac_cv_header_windows_h+set}" = set; then
26583 echo "$as_me:$LINENO: checking for windows.h" >&5
26584echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26585if test "${ac_cv_header_windows_h+set}" = set; then
26586 echo $ECHO_N "(cached) $ECHO_C" >&6
26587fi
26588echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26589echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26590else
26591 # Is the header compilable?
26592echo "$as_me:$LINENO: checking windows.h usability" >&5
26593echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26594cat >conftest.$ac_ext <<_ACEOF
26595/* confdefs.h. */
26596_ACEOF
26597cat confdefs.h >>conftest.$ac_ext
26598cat >>conftest.$ac_ext <<_ACEOF
26599/* end confdefs.h. */
26600$ac_includes_default
26601#include <windows.h>
26602_ACEOF
26603rm -f conftest.$ac_objext
26604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26605 (eval $ac_compile) 2>conftest.er1
a848cd7e 26606 ac_status=$?
ac1cb8d3
VS
26607 grep -v '^ *+' conftest.er1 >conftest.err
26608 rm -f conftest.er1
26609 cat conftest.err >&5
a848cd7e
SC
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); } &&
6954625c 26612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26614 (eval $ac_try) 2>&5
26615 ac_status=$?
26616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617 (exit $ac_status); }; } &&
26618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26620 (eval $ac_try) 2>&5
26621 ac_status=$?
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); }; }; then
26624 ac_header_compiler=yes
26625else
26626 echo "$as_me: failed program was:" >&5
26627sed 's/^/| /' conftest.$ac_ext >&5
26628
26629ac_header_compiler=no
26630fi
ac1cb8d3 26631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26633echo "${ECHO_T}$ac_header_compiler" >&6
26634
26635# Is the header present?
26636echo "$as_me:$LINENO: checking windows.h presence" >&5
26637echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26638cat >conftest.$ac_ext <<_ACEOF
26639/* confdefs.h. */
26640_ACEOF
26641cat confdefs.h >>conftest.$ac_ext
26642cat >>conftest.$ac_ext <<_ACEOF
26643/* end confdefs.h. */
26644#include <windows.h>
26645_ACEOF
26646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26648 ac_status=$?
26649 grep -v '^ *+' conftest.er1 >conftest.err
26650 rm -f conftest.er1
26651 cat conftest.err >&5
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); } >/dev/null; then
26654 if test -s conftest.err; then
5d7b7554
VZ
26655 ac_cpp_err=$ac_cxx_preproc_warn_flag
26656 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26657 else
26658 ac_cpp_err=
26659 fi
26660else
26661 ac_cpp_err=yes
26662fi
26663if test -z "$ac_cpp_err"; then
26664 ac_header_preproc=yes
26665else
26666 echo "$as_me: failed program was:" >&5
26667sed 's/^/| /' conftest.$ac_ext >&5
26668
26669 ac_header_preproc=no
26670fi
26671rm -f conftest.err conftest.$ac_ext
26672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26673echo "${ECHO_T}$ac_header_preproc" >&6
26674
26675# So? What about this header?
5d7b7554 26676case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26677 yes:no: )
a848cd7e
SC
26678 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26679echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26680 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26681echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26682 ac_header_preproc=yes
a848cd7e 26683 ;;
ac1cb8d3 26684 no:yes:* )
a848cd7e
SC
26685 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26686echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26687 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26688echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26689 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26690echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26691 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26692echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26693 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26694echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26695 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26696echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26697 (
26698 cat <<\_ASBOX
ac1cb8d3
VS
26699## ----------------------------------------- ##
26700## Report this to wx-dev@lists.wxwidgets.org ##
26701## ----------------------------------------- ##
a848cd7e
SC
26702_ASBOX
26703 ) |
26704 sed "s/^/$as_me: WARNING: /" >&2
26705 ;;
26706esac
26707echo "$as_me:$LINENO: checking for windows.h" >&5
26708echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26709if test "${ac_cv_header_windows_h+set}" = set; then
26710 echo $ECHO_N "(cached) $ECHO_C" >&6
26711else
26712 ac_cv_header_windows_h=$ac_header_preproc
26713fi
26714echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26715echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26716
26717fi
26718if test $ac_cv_header_windows_h = yes; then
26719 :
26720else
26721
26722 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26723echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26724 { (exit 1); exit 1; }; }
26725
26726fi
26727
26728
26729
26730 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26731
26732 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26733 LIBS="$LIBS -loleacc"
26734 fi
26735
26736 case "${host}" in
26737 *-*-cygwin* )
26738 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26739 esac
26740
26741 if test "$wxUSE_ODBC" = "sys" ; then
26742 wxUSE_ODBC = "yes"
26743 fi
26744 if test "$wxUSE_ODBC" = "yes" ; then
26745 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26746 cat >>confdefs.h <<\_ACEOF
26747#define wxUSE_ODBC 1
26748_ACEOF
26749
26750 fi
26751
370d2fd7 26752 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26753 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26754
004ee6da 26755 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26756
a848cd7e
SC
26757 WIN32INSTALL=win32install
26758fi
26759
26760if test "$wxUSE_GUI" = "yes"; then
26761 USE_GUI=1
26762
26763 GUI_TK_LIBRARY=
26764
26765 WXGTK12=
26766 WXGTK127=
26767 WXGTK20=
26768 WXGPE=
26769
207bc66c
RN
26770 if test "$wxUSE_COCOA" = 1 ; then
26771 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26772 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26773echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26774 wxUSE_PRINTING_ARCHITECTURE=no
26775 fi
26776 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26777 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26778echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26779 wxUSE_DRAG_AND_DROP=no
26780 fi
26781 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26782 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26783echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26784 wxUSE_DRAGIMAGE=no
26785 fi
26786 fi
26787
a848cd7e
SC
26788 if test "$wxUSE_MSW" = 1 ; then
26789 TOOLKIT=MSW
26790 GUIDIST=MSW_DIST
26791
ceec2216 26792 case "${host}" in
a848cd7e
SC
26793 *-*-mingw32* )
26794 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26795 esac
26796 fi
26797
26798 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
26799 ac_ext=c
26800ac_cpp='$CPP $CPPFLAGS'
26801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26803ac_compiler_gnu=$ac_cv_c_compiler_gnu
26804
26805
a848cd7e
SC
26806 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26807echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26808
26809 gtk_version_cached=1
26810 if test "${wx_cv_lib_gtk+set}" = set; then
26811 echo $ECHO_N "(cached) $ECHO_C" >&6
26812else
26813
26814 gtk_version_cached=0
26815 echo "$as_me:$LINENO: result: " >&5
26816echo "${ECHO_T}" >&6
26817
26818 GTK_MODULES=
26819 if test "$wxUSE_THREADS" = "yes"; then
26820 GTK_MODULES=gthread
26821 fi
26822
f597b41c 26823 wx_cv_lib_gtk=
5001df0d
MW
26824 if test "x$wxGTK_VERSION" != "x1"
26825 then
26826 case "${host}" in
26827 *-*-solaris2* )
26828 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 26829 enable_gtktest=no
5001df0d
MW
26830 fi
26831 esac
26832
a848cd7e
SC
26833 # Check whether --enable-gtktest or --disable-gtktest was given.
26834if test "${enable_gtktest+set}" = set; then
26835 enableval="$enable_gtktest"
26836
26837else
26838 enable_gtktest=yes
26839fi;
26840
26841 pkg_config_args=gtk+-2.0
26842 for module in . $GTK_MODULES
26843 do
26844 case "$module" in
26845 gthread)
26846 pkg_config_args="$pkg_config_args gthread-2.0"
26847 ;;
26848 esac
26849 done
26850
26851 no_gtk=""
26852
26853 # Extract the first word of "pkg-config", so it can be a program name with args.
26854set dummy pkg-config; ac_word=$2
26855echo "$as_me:$LINENO: checking for $ac_word" >&5
26856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26857if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26858 echo $ECHO_N "(cached) $ECHO_C" >&6
26859else
26860 case $PKG_CONFIG in
26861 [\\/]* | ?:[\\/]*)
26862 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26863 ;;
26864 *)
26865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26866for as_dir in $PATH
26867do
26868 IFS=$as_save_IFS
26869 test -z "$as_dir" && as_dir=.
26870 for ac_exec_ext in '' $ac_executable_extensions; do
26871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26872 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26874 break 2
26875 fi
26876done
26877done
26878
26879 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26880 ;;
26881esac
26882fi
26883PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26884
26885if test -n "$PKG_CONFIG"; then
26886 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26887echo "${ECHO_T}$PKG_CONFIG" >&6
26888else
26889 echo "$as_me:$LINENO: result: no" >&5
26890echo "${ECHO_T}no" >&6
26891fi
26892
26893
26894 if test x$PKG_CONFIG != xno ; then
26895 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26896 :
26897 else
c2218763 26898 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26899 no_gtk=yes
26900 PKG_CONFIG=no
26901 fi
26902 else
26903 no_gtk=yes
26904 fi
26905
26906 min_gtk_version=2.0.0
26907 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26908echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26909
26910 if test x$PKG_CONFIG != xno ; then
26911 ## don't try to run the test against uninstalled libtool libs
26912 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26913 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26914 enable_gtktest=no
26915 fi
26916
26917 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26918 :
26919 else
26920 no_gtk=yes
26921 fi
26922 fi
26923
26924 if test x"$no_gtk" = x ; then
26925 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26926 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26927 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26928 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26929 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26930 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26931 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26932 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26933 if test "x$enable_gtktest" = "xyes" ; then
26934 ac_save_CFLAGS="$CFLAGS"
26935 ac_save_LIBS="$LIBS"
26936 CFLAGS="$CFLAGS $GTK_CFLAGS"
26937 LIBS="$GTK_LIBS $LIBS"
26938 rm -f conf.gtktest
26939 if test "$cross_compiling" = yes; then
26940 echo $ac_n "cross compiling; assumed OK... $ac_c"
26941else
26942 cat >conftest.$ac_ext <<_ACEOF
26943/* confdefs.h. */
26944_ACEOF
26945cat confdefs.h >>conftest.$ac_ext
26946cat >>conftest.$ac_ext <<_ACEOF
26947/* end confdefs.h. */
26948
26949#include <gtk/gtk.h>
26950#include <stdio.h>
26951#include <stdlib.h>
26952
26953int
26954main ()
26955{
26956 int major, minor, micro;
26957 char *tmp_version;
26958
26959 system ("touch conf.gtktest");
26960
26961 /* HP/UX 9 (%@#!) writes to sscanf strings */
26962 tmp_version = g_strdup("$min_gtk_version");
26963 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26964 printf("%s, bad version string\n", "$min_gtk_version");
26965 exit(1);
26966 }
26967
26968 if ((gtk_major_version != $gtk_config_major_version) ||
26969 (gtk_minor_version != $gtk_config_minor_version) ||
26970 (gtk_micro_version != $gtk_config_micro_version))
26971 {
26972 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26973 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26974 gtk_major_version, gtk_minor_version, gtk_micro_version);
26975 printf ("*** was found! If pkg-config was correct, then it is best\n");
26976 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26977 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26978 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26979 printf("*** required on your system.\n");
26980 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26981 printf("*** to point to the correct configuration files\n");
26982 }
26983 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26984 (gtk_minor_version != GTK_MINOR_VERSION) ||
26985 (gtk_micro_version != GTK_MICRO_VERSION))
26986 {
26987 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26988 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26989 printf("*** library (version %d.%d.%d)\n",
26990 gtk_major_version, gtk_minor_version, gtk_micro_version);
26991 }
26992 else
26993 {
26994 if ((gtk_major_version > major) ||
26995 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26996 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26997 {
26998 return 0;
26999 }
27000 else
27001 {
27002 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27003 gtk_major_version, gtk_minor_version, gtk_micro_version);
27004 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27005 major, minor, micro);
27006 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27007 printf("***\n");
27008 printf("*** If you have already installed a sufficiently new version, this error\n");
27009 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27010 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27011 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27012 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27013 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27014 printf("*** so that the correct libraries are found at run-time))\n");
27015 }
27016 }
27017 return 1;
27018}
27019
27020_ACEOF
27021rm -f conftest$ac_exeext
27022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27023 (eval $ac_link) 2>&5
27024 ac_status=$?
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27028 (eval $ac_try) 2>&5
27029 ac_status=$?
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; }; then
27032 :
27033else
27034 echo "$as_me: program exited with status $ac_status" >&5
27035echo "$as_me: failed program was:" >&5
27036sed 's/^/| /' conftest.$ac_ext >&5
27037
27038( exit $ac_status )
27039no_gtk=yes
27040fi
ac1cb8d3 27041rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27042fi
27043 CFLAGS="$ac_save_CFLAGS"
27044 LIBS="$ac_save_LIBS"
27045 fi
27046 fi
27047 if test "x$no_gtk" = x ; then
27048 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27049echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27050 wx_cv_lib_gtk=2.0
27051 else
27052 echo "$as_me:$LINENO: result: no" >&5
27053echo "${ECHO_T}no" >&6
27054 if test "$PKG_CONFIG" = "no" ; then
27055 echo "*** A new enough version of pkg-config was not found."
27056 echo "*** See http://pkgconfig.sourceforge.net"
27057 else
27058 if test -f conf.gtktest ; then
27059 :
27060 else
27061 echo "*** Could not run GTK+ test program, checking why..."
27062 ac_save_CFLAGS="$CFLAGS"
27063 ac_save_LIBS="$LIBS"
27064 CFLAGS="$CFLAGS $GTK_CFLAGS"
27065 LIBS="$LIBS $GTK_LIBS"
27066 cat >conftest.$ac_ext <<_ACEOF
27067/* confdefs.h. */
27068_ACEOF
27069cat confdefs.h >>conftest.$ac_ext
27070cat >>conftest.$ac_ext <<_ACEOF
27071/* end confdefs.h. */
27072
27073#include <gtk/gtk.h>
27074#include <stdio.h>
27075
27076int
27077main ()
27078{
27079 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27080 ;
27081 return 0;
27082}
27083_ACEOF
27084rm -f conftest.$ac_objext conftest$ac_exeext
27085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27086 (eval $ac_link) 2>conftest.er1
a848cd7e 27087 ac_status=$?
ac1cb8d3
VS
27088 grep -v '^ *+' conftest.er1 >conftest.err
27089 rm -f conftest.er1
27090 cat conftest.err >&5
a848cd7e
SC
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); } &&
6954625c 27093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27095 (eval $ac_try) 2>&5
27096 ac_status=$?
27097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098 (exit $ac_status); }; } &&
27099 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27101 (eval $ac_try) 2>&5
27102 ac_status=$?
27103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); }; }; then
27105 echo "*** The test program compiled, but did not run. This usually means"
27106 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27107 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27108 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27109 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27110 echo "*** is required on your system"
27111 echo "***"
27112 echo "*** If you have an old version installed, it is best to remove it, although"
27113 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27114else
27115 echo "$as_me: failed program was:" >&5
27116sed 's/^/| /' conftest.$ac_ext >&5
27117
27118 echo "*** The test program failed to compile or link. See the file config.log for the"
27119 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27120fi
ac1cb8d3
VS
27121rm -f conftest.err conftest.$ac_objext \
27122 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27123 CFLAGS="$ac_save_CFLAGS"
27124 LIBS="$ac_save_LIBS"
27125 fi
27126 fi
27127 GTK_CFLAGS=""
27128 GTK_LIBS=""
27129 :
27130 fi
27131
27132
27133 rm -f conf.gtktest
27134
5001df0d
MW
27135
27136 case "${host}" in
27137 *-*-solaris2* )
27138 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27139 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27140 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27141 fi
27142 if test "$wxUSE_SHARED" != "yes"; then
27143 GTK_LIBS="$GTK_LIBS -lX11"
27144 fi
27145 esac
f597b41c
MW
27146 fi
27147
f34ca037
MW
27148 if test -z "$wx_cv_lib_gtk"; then
27149 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27150
27151# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27152if test "${with_gtk_prefix+set}" = set; then
27153 withval="$with_gtk_prefix"
27154 gtk_config_prefix="$withval"
27155else
27156 gtk_config_prefix=""
27157fi;
27158
27159# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27160if test "${with_gtk_exec_prefix+set}" = set; then
27161 withval="$with_gtk_exec_prefix"
27162 gtk_config_exec_prefix="$withval"
27163else
27164 gtk_config_exec_prefix=""
27165fi;
27166# Check whether --enable-gtktest or --disable-gtktest was given.
27167if test "${enable_gtktest+set}" = set; then
27168 enableval="$enable_gtktest"
27169
27170else
27171 enable_gtktest=yes
27172fi;
27173
27174 for module in . $GTK_MODULES
27175 do
27176 case "$module" in
27177 gthread)
27178 gtk_config_args="$gtk_config_args gthread"
27179 ;;
27180 esac
27181 done
27182
27183 if test x$gtk_config_exec_prefix != x ; then
27184 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27185 if test x${GTK_CONFIG+set} != xset ; then
27186 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27187 fi
27188 fi
27189 if test x$gtk_config_prefix != x ; then
27190 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27191 if test x${GTK_CONFIG+set} != xset ; then
27192 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27193 fi
27194 fi
27195
27196 # Extract the first word of "gtk-config", so it can be a program name with args.
27197set dummy gtk-config; ac_word=$2
27198echo "$as_me:$LINENO: checking for $ac_word" >&5
27199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27200if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27201 echo $ECHO_N "(cached) $ECHO_C" >&6
27202else
27203 case $GTK_CONFIG in
27204 [\\/]* | ?:[\\/]*)
27205 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27206 ;;
27207 *)
27208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27209for as_dir in $PATH
27210do
27211 IFS=$as_save_IFS
27212 test -z "$as_dir" && as_dir=.
27213 for ac_exec_ext in '' $ac_executable_extensions; do
27214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27215 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27217 break 2
27218 fi
27219done
27220done
27221
27222 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27223 ;;
27224esac
27225fi
27226GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27227
27228if test -n "$GTK_CONFIG"; then
27229 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27230echo "${ECHO_T}$GTK_CONFIG" >&6
27231else
27232 echo "$as_me:$LINENO: result: no" >&5
27233echo "${ECHO_T}no" >&6
27234fi
27235
27236 min_gtk_version=1.2.7
27237 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27238echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27239 no_gtk=""
27240 if test "$GTK_CONFIG" = "no" ; then
27241 no_gtk=yes
27242 else
27243 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27244 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27245 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27246 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27247 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27248 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27249 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27250 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27251 if test "x$enable_gtktest" = "xyes" ; then
27252 ac_save_CFLAGS="$CFLAGS"
27253 ac_save_LIBS="$LIBS"
27254 CFLAGS="$CFLAGS $GTK_CFLAGS"
27255 LIBS="$GTK_LIBS $LIBS"
27256 rm -f conf.gtktest
27257 if test "$cross_compiling" = yes; then
27258 echo $ac_n "cross compiling; assumed OK... $ac_c"
27259else
27260 cat >conftest.$ac_ext <<_ACEOF
27261/* confdefs.h. */
27262_ACEOF
27263cat confdefs.h >>conftest.$ac_ext
27264cat >>conftest.$ac_ext <<_ACEOF
27265/* end confdefs.h. */
27266
27267#include <gtk/gtk.h>
27268#include <stdio.h>
27269#include <stdlib.h>
27270
27271int
27272main ()
27273{
27274 int major, minor, micro;
27275 char *tmp_version;
27276
27277 system ("touch conf.gtktest");
27278
27279 /* HP/UX 9 (%@#!) writes to sscanf strings */
27280 tmp_version = g_strdup("$min_gtk_version");
27281 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27282 printf("%s, bad version string\n", "$min_gtk_version");
27283 exit(1);
27284 }
27285
27286 if ((gtk_major_version != $gtk_config_major_version) ||
27287 (gtk_minor_version != $gtk_config_minor_version) ||
27288 (gtk_micro_version != $gtk_config_micro_version))
27289 {
27290 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27291 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27292 gtk_major_version, gtk_minor_version, gtk_micro_version);
27293 printf ("*** was found! If gtk-config was correct, then it is best\n");
27294 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27295 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27296 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27297 printf("*** required on your system.\n");
27298 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27299 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27300 printf("*** before re-running configure\n");
27301 }
27302#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27303 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27304 (gtk_minor_version != GTK_MINOR_VERSION) ||
27305 (gtk_micro_version != GTK_MICRO_VERSION))
27306 {
27307 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27308 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27309 printf("*** library (version %d.%d.%d)\n",
27310 gtk_major_version, gtk_minor_version, gtk_micro_version);
27311 }
27312#endif /* defined (GTK_MAJOR_VERSION) ... */
27313 else
27314 {
27315 if ((gtk_major_version > major) ||
27316 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27317 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27318 {
27319 return 0;
27320 }
27321 else
27322 {
27323 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27324 gtk_major_version, gtk_minor_version, gtk_micro_version);
27325 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27326 major, minor, micro);
27327 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27328 printf("***\n");
27329 printf("*** If you have already installed a sufficiently new version, this error\n");
27330 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27331 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27332 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27333 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27334 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27335 printf("*** so that the correct libraries are found at run-time))\n");
27336 }
27337 }
27338 return 1;
27339}
27340
27341_ACEOF
27342rm -f conftest$ac_exeext
27343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27344 (eval $ac_link) 2>&5
27345 ac_status=$?
27346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349 (eval $ac_try) 2>&5
27350 ac_status=$?
27351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); }; }; then
27353 :
27354else
27355 echo "$as_me: program exited with status $ac_status" >&5
27356echo "$as_me: failed program was:" >&5
27357sed 's/^/| /' conftest.$ac_ext >&5
27358
27359( exit $ac_status )
27360no_gtk=yes
27361fi
ac1cb8d3 27362rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27363fi
27364 CFLAGS="$ac_save_CFLAGS"
27365 LIBS="$ac_save_LIBS"
27366 fi
27367 fi
27368 if test "x$no_gtk" = x ; then
27369 echo "$as_me:$LINENO: result: yes" >&5
27370echo "${ECHO_T}yes" >&6
27371 wx_cv_lib_gtk=1.2.7
27372 else
27373 echo "$as_me:$LINENO: result: no" >&5
27374echo "${ECHO_T}no" >&6
27375 if test "$GTK_CONFIG" = "no" ; then
27376 echo "*** The gtk-config script installed by GTK could not be found"
27377 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27378 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27379 echo "*** full path to gtk-config."
27380 else
27381 if test -f conf.gtktest ; then
27382 :
27383 else
27384 echo "*** Could not run GTK test program, checking why..."
27385 CFLAGS="$CFLAGS $GTK_CFLAGS"
27386 LIBS="$LIBS $GTK_LIBS"
27387 cat >conftest.$ac_ext <<_ACEOF
27388/* confdefs.h. */
27389_ACEOF
27390cat confdefs.h >>conftest.$ac_ext
27391cat >>conftest.$ac_ext <<_ACEOF
27392/* end confdefs.h. */
27393
27394#include <gtk/gtk.h>
27395#include <stdio.h>
27396
27397int
27398main ()
27399{
27400 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27401 ;
27402 return 0;
27403}
27404_ACEOF
27405rm -f conftest.$ac_objext conftest$ac_exeext
27406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27407 (eval $ac_link) 2>conftest.er1
a848cd7e 27408 ac_status=$?
ac1cb8d3
VS
27409 grep -v '^ *+' conftest.er1 >conftest.err
27410 rm -f conftest.er1
27411 cat conftest.err >&5
a848cd7e
SC
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); } &&
6954625c 27414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27416 (eval $ac_try) 2>&5
27417 ac_status=$?
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); }; } &&
27420 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27422 (eval $ac_try) 2>&5
27423 ac_status=$?
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); }; }; then
27426 echo "*** The test program compiled, but did not run. This usually means"
27427 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27428 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27429 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27430 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27431 echo "*** is required on your system"
27432 echo "***"
27433 echo "*** If you have an old version installed, it is best to remove it, although"
27434 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27435 echo "***"
27436 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27437 echo "*** came with the system with the command"
27438 echo "***"
27439 echo "*** rpm --erase --nodeps gtk gtk-devel"
27440else
27441 echo "$as_me: failed program was:" >&5
27442sed 's/^/| /' conftest.$ac_ext >&5
27443
27444 echo "*** The test program failed to compile or link. See the file config.log for the"
27445 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27446 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27447 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27448fi
ac1cb8d3
VS
27449rm -f conftest.err conftest.$ac_objext \
27450 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27451 CFLAGS="$ac_save_CFLAGS"
27452 LIBS="$ac_save_LIBS"
27453 fi
27454 fi
27455 GTK_CFLAGS=""
27456 GTK_LIBS=""
27457 :
27458 fi
27459
27460
27461 rm -f conf.gtktest
27462
27463
f34ca037 27464 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27465
27466# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27467if test "${with_gtk_prefix+set}" = set; then
27468 withval="$with_gtk_prefix"
27469 gtk_config_prefix="$withval"
27470else
27471 gtk_config_prefix=""
27472fi;
27473
27474# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27475if test "${with_gtk_exec_prefix+set}" = set; then
27476 withval="$with_gtk_exec_prefix"
27477 gtk_config_exec_prefix="$withval"
27478else
27479 gtk_config_exec_prefix=""
27480fi;
27481# Check whether --enable-gtktest or --disable-gtktest was given.
27482if test "${enable_gtktest+set}" = set; then
27483 enableval="$enable_gtktest"
27484
27485else
27486 enable_gtktest=yes
27487fi;
27488
27489 for module in . $GTK_MODULES
27490 do
27491 case "$module" in
27492 gthread)
27493 gtk_config_args="$gtk_config_args gthread"
27494 ;;
27495 esac
27496 done
27497
27498 if test x$gtk_config_exec_prefix != x ; then
27499 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27500 if test x${GTK_CONFIG+set} != xset ; then
27501 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27502 fi
27503 fi
27504 if test x$gtk_config_prefix != x ; then
27505 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27506 if test x${GTK_CONFIG+set} != xset ; then
27507 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27508 fi
27509 fi
27510
27511 # Extract the first word of "gtk-config", so it can be a program name with args.
27512set dummy gtk-config; ac_word=$2
27513echo "$as_me:$LINENO: checking for $ac_word" >&5
27514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27515if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27516 echo $ECHO_N "(cached) $ECHO_C" >&6
27517else
27518 case $GTK_CONFIG in
27519 [\\/]* | ?:[\\/]*)
27520 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27521 ;;
27522 *)
27523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27524for as_dir in $PATH
27525do
27526 IFS=$as_save_IFS
27527 test -z "$as_dir" && as_dir=.
27528 for ac_exec_ext in '' $ac_executable_extensions; do
27529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27530 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27532 break 2
27533 fi
27534done
27535done
27536
27537 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27538 ;;
27539esac
27540fi
27541GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27542
27543if test -n "$GTK_CONFIG"; then
27544 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27545echo "${ECHO_T}$GTK_CONFIG" >&6
27546else
27547 echo "$as_me:$LINENO: result: no" >&5
27548echo "${ECHO_T}no" >&6
27549fi
27550
27551 min_gtk_version=1.2.3
27552 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27553echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27554 no_gtk=""
27555 if test "$GTK_CONFIG" = "no" ; then
27556 no_gtk=yes
27557 else
27558 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27559 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27560 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27561 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27562 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27563 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27564 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27565 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27566 if test "x$enable_gtktest" = "xyes" ; then
27567 ac_save_CFLAGS="$CFLAGS"
27568 ac_save_LIBS="$LIBS"
27569 CFLAGS="$CFLAGS $GTK_CFLAGS"
27570 LIBS="$GTK_LIBS $LIBS"
27571 rm -f conf.gtktest
27572 if test "$cross_compiling" = yes; then
27573 echo $ac_n "cross compiling; assumed OK... $ac_c"
27574else
27575 cat >conftest.$ac_ext <<_ACEOF
27576/* confdefs.h. */
27577_ACEOF
27578cat confdefs.h >>conftest.$ac_ext
27579cat >>conftest.$ac_ext <<_ACEOF
27580/* end confdefs.h. */
27581
27582#include <gtk/gtk.h>
27583#include <stdio.h>
27584#include <stdlib.h>
27585
27586int
27587main ()
27588{
27589 int major, minor, micro;
27590 char *tmp_version;
27591
27592 system ("touch conf.gtktest");
27593
27594 /* HP/UX 9 (%@#!) writes to sscanf strings */
27595 tmp_version = g_strdup("$min_gtk_version");
27596 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27597 printf("%s, bad version string\n", "$min_gtk_version");
27598 exit(1);
27599 }
27600
27601 if ((gtk_major_version != $gtk_config_major_version) ||
27602 (gtk_minor_version != $gtk_config_minor_version) ||
27603 (gtk_micro_version != $gtk_config_micro_version))
27604 {
27605 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27606 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27607 gtk_major_version, gtk_minor_version, gtk_micro_version);
27608 printf ("*** was found! If gtk-config was correct, then it is best\n");
27609 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27610 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27611 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27612 printf("*** required on your system.\n");
27613 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27614 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27615 printf("*** before re-running configure\n");
27616 }
27617#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27618 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27619 (gtk_minor_version != GTK_MINOR_VERSION) ||
27620 (gtk_micro_version != GTK_MICRO_VERSION))
27621 {
27622 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27623 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27624 printf("*** library (version %d.%d.%d)\n",
27625 gtk_major_version, gtk_minor_version, gtk_micro_version);
27626 }
27627#endif /* defined (GTK_MAJOR_VERSION) ... */
27628 else
27629 {
27630 if ((gtk_major_version > major) ||
27631 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27632 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27633 {
27634 return 0;
27635 }
27636 else
27637 {
27638 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27639 gtk_major_version, gtk_minor_version, gtk_micro_version);
27640 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27641 major, minor, micro);
27642 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27643 printf("***\n");
27644 printf("*** If you have already installed a sufficiently new version, this error\n");
27645 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27646 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27647 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27648 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27649 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27650 printf("*** so that the correct libraries are found at run-time))\n");
27651 }
27652 }
27653 return 1;
27654}
27655
27656_ACEOF
27657rm -f conftest$ac_exeext
27658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27659 (eval $ac_link) 2>&5
27660 ac_status=$?
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664 (eval $ac_try) 2>&5
27665 ac_status=$?
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); }; }; then
27668 :
27669else
27670 echo "$as_me: program exited with status $ac_status" >&5
27671echo "$as_me: failed program was:" >&5
27672sed 's/^/| /' conftest.$ac_ext >&5
27673
27674( exit $ac_status )
27675no_gtk=yes
27676fi
ac1cb8d3 27677rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27678fi
27679 CFLAGS="$ac_save_CFLAGS"
27680 LIBS="$ac_save_LIBS"
27681 fi
27682 fi
27683 if test "x$no_gtk" = x ; then
27684 echo "$as_me:$LINENO: result: yes" >&5
27685echo "${ECHO_T}yes" >&6
27686 wx_cv_lib_gtk=1.2.3
27687 else
27688 echo "$as_me:$LINENO: result: no" >&5
27689echo "${ECHO_T}no" >&6
27690 if test "$GTK_CONFIG" = "no" ; then
27691 echo "*** The gtk-config script installed by GTK could not be found"
27692 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27693 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27694 echo "*** full path to gtk-config."
27695 else
27696 if test -f conf.gtktest ; then
27697 :
27698 else
27699 echo "*** Could not run GTK test program, checking why..."
27700 CFLAGS="$CFLAGS $GTK_CFLAGS"
27701 LIBS="$LIBS $GTK_LIBS"
27702 cat >conftest.$ac_ext <<_ACEOF
27703/* confdefs.h. */
27704_ACEOF
27705cat confdefs.h >>conftest.$ac_ext
27706cat >>conftest.$ac_ext <<_ACEOF
27707/* end confdefs.h. */
27708
27709#include <gtk/gtk.h>
27710#include <stdio.h>
27711
27712int
27713main ()
27714{
27715 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27716 ;
27717 return 0;
27718}
27719_ACEOF
27720rm -f conftest.$ac_objext conftest$ac_exeext
27721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27722 (eval $ac_link) 2>conftest.er1
a848cd7e 27723 ac_status=$?
ac1cb8d3
VS
27724 grep -v '^ *+' conftest.er1 >conftest.err
27725 rm -f conftest.er1
27726 cat conftest.err >&5
a848cd7e
SC
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); } &&
6954625c 27729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27731 (eval $ac_try) 2>&5
27732 ac_status=$?
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); }; } &&
27735 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27737 (eval $ac_try) 2>&5
27738 ac_status=$?
27739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740 (exit $ac_status); }; }; then
27741 echo "*** The test program compiled, but did not run. This usually means"
27742 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27743 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27744 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27745 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27746 echo "*** is required on your system"
27747 echo "***"
27748 echo "*** If you have an old version installed, it is best to remove it, although"
27749 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27750 echo "***"
27751 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27752 echo "*** came with the system with the command"
27753 echo "***"
27754 echo "*** rpm --erase --nodeps gtk gtk-devel"
27755else
27756 echo "$as_me: failed program was:" >&5
27757sed 's/^/| /' conftest.$ac_ext >&5
27758
27759 echo "*** The test program failed to compile or link. See the file config.log for the"
27760 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27761 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27762 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27763fi
ac1cb8d3
VS
27764rm -f conftest.err conftest.$ac_objext \
27765 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27766 CFLAGS="$ac_save_CFLAGS"
27767 LIBS="$ac_save_LIBS"
27768 fi
27769 fi
27770 GTK_CFLAGS=""
27771 GTK_LIBS=""
27772 :
27773 fi
27774
27775
27776 rm -f conf.gtktest
27777
f34ca037 27778 fi
a848cd7e
SC
27779 fi
27780 fi
27781
27782 if test -z "$wx_cv_lib_gtk"; then
27783 wx_cv_lib_gtk=none
27784 else
27785 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27786 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27787 fi
27788
27789
27790fi
27791
27792
27793 if test "$gtk_version_cached" = 1; then
27794 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27795echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27796 fi
27797
27798 case "$wx_cv_lib_gtk" in
27799 2.0) WXGTK20=1
27800 TOOLKIT_VERSION=2
27801 ;;
27802 1.2.7) WXGTK127=1
27803 WXGTK12=1
27804 ;;
27805 1.2.3) WXGTK12=1
27806 ;;
27807 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27808The development files for GTK+ were not found. For GTK+ 2, please
27809ensure that pkg-config is in the path and that gtk+-2.0.pc is
27810installed. For GTK+ 1.2 please check that gtk-config is in the path,
27811and that the version is 1.2.3 or above. Also check that the
27812libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27813--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27814 " >&5
27815echo "$as_me: error:
f597b41c
MW
27816The development files for GTK+ were not found. For GTK+ 2, please
27817ensure that pkg-config is in the path and that gtk+-2.0.pc is
27818installed. For GTK+ 1.2 please check that gtk-config is in the path,
27819and that the version is 1.2.3 or above. Also check that the
27820libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27821--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27822 " >&2;}
27823 { (exit 1); exit 1; }; }
27824 ;;
27825 esac
27826
27827 if test "$WXGTK20" = 1; then
6954625c 27828 save_CFLAGS="$CFLAGS"
304205f1 27829 save_LIBS="$LIBS"
6954625c 27830 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 27831 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27832
d12aef51
VZ
27833 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27834echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27835 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27836/* confdefs.h. */
27837_ACEOF
27838cat confdefs.h >>conftest.$ac_ext
27839cat >>conftest.$ac_ext <<_ACEOF
27840/* end confdefs.h. */
304205f1 27841
d12aef51 27842 #include <gtk/gtk.h>
304205f1 27843
d12aef51
VZ
27844int
27845main ()
27846{
304205f1 27847
d12aef51 27848 void *f = gtk_icon_size_lookup;
abc736fd
MW
27849
27850 ;
27851 return 0;
27852}
27853_ACEOF
27854rm -f conftest.$ac_objext
27855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27856 (eval $ac_compile) 2>conftest.er1
27857 ac_status=$?
27858 grep -v '^ *+' conftest.er1 >conftest.err
27859 rm -f conftest.er1
27860 cat conftest.err >&5
27861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862 (exit $ac_status); } &&
6954625c 27863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
27864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27865 (eval $ac_try) 2>&5
27866 ac_status=$?
27867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868 (exit $ac_status); }; } &&
27869 { ac_try='test -s conftest.$ac_objext'
27870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27871 (eval $ac_try) 2>&5
27872 ac_status=$?
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); }; }; then
27875
27876 echo "$as_me:$LINENO: result: no" >&5
27877echo "${ECHO_T}no" >&6
27878
27879else
27880 echo "$as_me: failed program was:" >&5
27881sed 's/^/| /' conftest.$ac_ext >&5
27882
27883
27884 cat >>confdefs.h <<\_ACEOF
27885#define NEED_GTK_ICON_SIZE_LOOKUP 1
27886_ACEOF
27887
27888 echo "$as_me:$LINENO: result: yes" >&5
27889echo "${ECHO_T}yes" >&6
27890
27891fi
27892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27893
e9263684
VZ
27894 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
27895echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
27896 cat >conftest.$ac_ext <<_ACEOF
27897/* confdefs.h. */
27898_ACEOF
27899cat confdefs.h >>conftest.$ac_ext
27900cat >>conftest.$ac_ext <<_ACEOF
27901/* end confdefs.h. */
27902
27903 #include <gtk/gtk.h>
27904
27905int
27906main ()
27907{
27908
27909 #if !GTK_CHECK_VERSION(2,6,0)
27910 Not GTK+ 2.6
27911 #endif
27912
27913 ;
27914 return 0;
27915}
27916_ACEOF
27917rm -f conftest.$ac_objext
27918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27919 (eval $ac_compile) 2>conftest.er1
27920 ac_status=$?
27921 grep -v '^ *+' conftest.er1 >conftest.err
27922 rm -f conftest.er1
27923 cat conftest.err >&5
27924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); } &&
27926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27928 (eval $ac_try) 2>&5
27929 ac_status=$?
27930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); }; } &&
27932 { ac_try='test -s conftest.$ac_objext'
27933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27934 (eval $ac_try) 2>&5
27935 ac_status=$?
27936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); }; }; then
27938
27939 cat >>confdefs.h <<\_ACEOF
27940#define __WXGTK26__ 1
27941_ACEOF
27942
27943 cat >>confdefs.h <<\_ACEOF
27944#define __WXGTK24__ 1
27945_ACEOF
27946
27947 echo "$as_me:$LINENO: result: yes" >&5
27948echo "${ECHO_T}yes" >&6
27949 ac_wxgtk26=1
27950
27951else
27952 echo "$as_me: failed program was:" >&5
27953sed 's/^/| /' conftest.$ac_ext >&5
27954
27955
27956 echo "$as_me:$LINENO: result: no" >&5
27957echo "${ECHO_T}no" >&6
27958 ac_wxgtk26=0
27959
27960fi
27961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27962
27963 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
27964 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27965echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27966 cat >conftest.$ac_ext <<_ACEOF
27967/* confdefs.h. */
27968_ACEOF
27969cat confdefs.h >>conftest.$ac_ext
27970cat >>conftest.$ac_ext <<_ACEOF
27971/* end confdefs.h. */
27972
27973 #include <gtk/gtk.h>
27974
27975int
27976main ()
27977{
27978
27979 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 27980 Not GTK+ 2.4
9755e73b
VS
27981 #endif
27982
27983 ;
27984 return 0;
27985}
27986_ACEOF
27987rm -f conftest.$ac_objext
27988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27989 (eval $ac_compile) 2>conftest.er1
27990 ac_status=$?
27991 grep -v '^ *+' conftest.er1 >conftest.err
27992 rm -f conftest.er1
27993 cat conftest.err >&5
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); } &&
6954625c 27996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
27997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27998 (eval $ac_try) 2>&5
27999 ac_status=$?
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); }; } &&
28002 { ac_try='test -s conftest.$ac_objext'
28003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28004 (eval $ac_try) 2>&5
28005 ac_status=$?
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); }; }; then
28008
28009 cat >>confdefs.h <<\_ACEOF
28010#define __WXGTK24__ 1
28011_ACEOF
28012
28013 echo "$as_me:$LINENO: result: yes" >&5
28014echo "${ECHO_T}yes" >&6
28015
28016else
28017 echo "$as_me: failed program was:" >&5
28018sed 's/^/| /' conftest.$ac_ext >&5
28019
28020
28021 echo "$as_me:$LINENO: result: no" >&5
28022echo "${ECHO_T}no" >&6
28023
28024fi
28025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28026 fi
9755e73b 28027
6954625c 28028 CFLAGS="$save_CFLAGS"
304205f1 28029 LIBS="$save_LIBS"
a848cd7e
SC
28030 else
28031 if test "$wxUSE_UNICODE" = "yes"; then
28032 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28033echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28034 wxUSE_UNICODE=no
28035 fi
28036 fi
28037
e56f4f9e
VZ
28038 ac_ext=cc
28039ac_cpp='$CXXCPP $CPPFLAGS'
28040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28043
28044
a848cd7e
SC
28045 if test "$USE_DARWIN" != 1; then
28046
28047for ac_func in poll
28048do
28049as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28050echo "$as_me:$LINENO: checking for $ac_func" >&5
28051echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28052if eval "test \"\${$as_ac_var+set}\" = set"; then
28053 echo $ECHO_N "(cached) $ECHO_C" >&6
28054else
28055 cat >conftest.$ac_ext <<_ACEOF
28056/* confdefs.h. */
28057_ACEOF
28058cat confdefs.h >>conftest.$ac_ext
28059cat >>conftest.$ac_ext <<_ACEOF
28060/* end confdefs.h. */
ac1cb8d3
VS
28061/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28063#define $ac_func innocuous_$ac_func
28064
a848cd7e
SC
28065/* System header to define __stub macros and hopefully few prototypes,
28066 which can conflict with char $ac_func (); below.
28067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28068 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28069
a848cd7e
SC
28070#ifdef __STDC__
28071# include <limits.h>
28072#else
28073# include <assert.h>
28074#endif
ac1cb8d3
VS
28075
28076#undef $ac_func
28077
a848cd7e
SC
28078/* Override any gcc2 internal prototype to avoid an error. */
28079#ifdef __cplusplus
28080extern "C"
28081{
28082#endif
28083/* We use char because int might match the return type of a gcc2
28084 builtin and then its argument prototype would still apply. */
28085char $ac_func ();
28086/* The GNU C library defines this for functions which it implements
28087 to always fail with ENOSYS. Some functions are actually named
28088 something starting with __ and the normal name is an alias. */
28089#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28090choke me
28091#else
28092char (*f) () = $ac_func;
28093#endif
28094#ifdef __cplusplus
28095}
28096#endif
28097
28098int
28099main ()
28100{
28101return f != $ac_func;
28102 ;
28103 return 0;
28104}
28105_ACEOF
28106rm -f conftest.$ac_objext conftest$ac_exeext
28107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28108 (eval $ac_link) 2>conftest.er1
a848cd7e 28109 ac_status=$?
ac1cb8d3
VS
28110 grep -v '^ *+' conftest.er1 >conftest.err
28111 rm -f conftest.er1
28112 cat conftest.err >&5
a848cd7e
SC
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); } &&
6954625c 28115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28117 (eval $ac_try) 2>&5
28118 ac_status=$?
28119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120 (exit $ac_status); }; } &&
28121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28123 (eval $ac_try) 2>&5
28124 ac_status=$?
28125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); }; }; then
28127 eval "$as_ac_var=yes"
28128else
28129 echo "$as_me: failed program was:" >&5
28130sed 's/^/| /' conftest.$ac_ext >&5
28131
28132eval "$as_ac_var=no"
28133fi
ac1cb8d3
VS
28134rm -f conftest.err conftest.$ac_objext \
28135 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28136fi
28137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28138echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28139if test `eval echo '${'$as_ac_var'}'` = yes; then
28140 cat >>confdefs.h <<_ACEOF
28141#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28142_ACEOF
28143
28144fi
28145done
28146
28147 fi
28148
28149 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28150 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28151
28152 AFMINSTALL=afminstall
28153 TOOLKIT=GTK
28154 GUIDIST=GTK_DIST
28155
28156 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28157echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28158if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28159 echo $ECHO_N "(cached) $ECHO_C" >&6
28160else
28161 ac_check_lib_save_LIBS=$LIBS
28162LIBS="-lgdk $LIBS"
28163cat >conftest.$ac_ext <<_ACEOF
28164/* confdefs.h. */
28165_ACEOF
28166cat confdefs.h >>conftest.$ac_ext
28167cat >>conftest.$ac_ext <<_ACEOF
28168/* end confdefs.h. */
28169
28170/* Override any gcc2 internal prototype to avoid an error. */
28171#ifdef __cplusplus
28172extern "C"
28173#endif
28174/* We use char because int might match the return type of a gcc2
28175 builtin and then its argument prototype would still apply. */
28176char gdk_im_open ();
28177int
28178main ()
28179{
28180gdk_im_open ();
28181 ;
28182 return 0;
28183}
28184_ACEOF
28185rm -f conftest.$ac_objext conftest$ac_exeext
28186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28187 (eval $ac_link) 2>conftest.er1
a848cd7e 28188 ac_status=$?
ac1cb8d3
VS
28189 grep -v '^ *+' conftest.er1 >conftest.err
28190 rm -f conftest.er1
28191 cat conftest.err >&5
a848cd7e
SC
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); } &&
6954625c 28194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28196 (eval $ac_try) 2>&5
28197 ac_status=$?
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); }; } &&
28200 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28202 (eval $ac_try) 2>&5
28203 ac_status=$?
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; }; then
28206 ac_cv_lib_gdk_gdk_im_open=yes
28207else
28208 echo "$as_me: failed program was:" >&5
28209sed 's/^/| /' conftest.$ac_ext >&5
28210
28211ac_cv_lib_gdk_gdk_im_open=no
28212fi
ac1cb8d3
VS
28213rm -f conftest.err conftest.$ac_objext \
28214 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28215LIBS=$ac_check_lib_save_LIBS
28216fi
28217echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28218echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28219if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28220 cat >>confdefs.h <<\_ACEOF
28221#define HAVE_XIM 1
28222_ACEOF
28223
28224fi
28225
28226
28227
28228 if test "$wxUSE_GPE" = "yes"; then
28229 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28230echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28231
0ad5d837
VZ
28232 ac_find_libraries=
28233 for ac_dir in $SEARCH_LIB;
a848cd7e 28234 do
3eca31dc 28235 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28236 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28237 ac_find_libraries=$ac_dir
28238 break 2
28239 fi
28240 done
28241 done
28242
28243 if test "$ac_find_libraries" != "" ; then
28244
0ad5d837 28245 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28246 ac_path_to_link=""
28247 else
0ad5d837
VZ
28248 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28249 result=$?
28250 if test $result = 0; then
28251 ac_path_to_link=""
28252 else
28253 ac_path_to_link=" -L$ac_find_libraries"
28254 fi
a848cd7e
SC
28255 fi
28256
28257 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28258 WXGPE=1
0ad5d837
VZ
28259 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28260echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28261 else
28262 echo "$as_me:$LINENO: result: not found" >&5
28263echo "${ECHO_T}not found" >&6
28264 fi
28265
28266 fi
28267 fi
28268
28269 if test "$wxUSE_MGL" = 1; then
28270 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28271echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28272 if test "x$MGL_ROOT" = x ; then
28273 echo "$as_me:$LINENO: result: not found" >&5
28274echo "${ECHO_T}not found" >&6
28275 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28276echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28277 { (exit 1); exit 1; }; }
28278 else
28279 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28280echo "${ECHO_T}$MGL_ROOT" >&6
28281 fi
28282
28283 echo "$as_me:$LINENO: checking for libmgl location" >&5
28284echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28285 case "${host}" in
28286 *-*-linux* )
28287 if test "x$wxUSE_SHARED" = xyes ; then
28288 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28289 else
28290 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28291 fi
28292 ;;
28293 *-pc-msdosdjgpp )
28294 mgl_os_candidates="dos32/dj2"
28295 ;;
28296 *)
28297 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28298echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28299 { (exit 1); exit 1; }; }
28300 esac
28301
28302 mgl_lib_type=""
28303 mgl_os=""
28304
28305 for mgl_os_i in $mgl_os_candidates ; do
28306 if test "x$mgl_os" = x ; then
28307 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28308 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28309 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28310 mgl_lib_type=debug
28311 mgl_os=$mgl_os_i
28312 fi
28313 fi
28314 if test "x$mgl_lib_type" = x ; then
28315 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28316 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28317 mgl_lib_type=release
28318 mgl_os=$mgl_os_i
28319 fi
28320 fi
28321 fi
28322 done
28323
28324 if test "x$mgl_os" = x ; then
28325 echo "$as_me:$LINENO: result: not found" >&5
28326echo "${ECHO_T}not found" >&6
28327 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28328echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28329 { (exit 1); exit 1; }; }
28330 fi
28331 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28332echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28333
28334 wxUSE_UNIVERSAL="yes"
28335
28336 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28337 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28338
28339 AFMINSTALL=afminstall
28340 TOOLKIT=MGL
28341 GUIDIST=MGL_DIST
28342 fi
28343
28344 if test "$wxUSE_MICROWIN" = 1; then
28345 echo "$as_me:$LINENO: checking for MicroWindows" >&5
28346echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28347 if test "x$MICROWINDOWS" = x ; then
28348 echo "$as_me:$LINENO: result: not found" >&5
28349echo "${ECHO_T}not found" >&6
28350 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28351echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28352 { (exit 1); exit 1; }; }
28353 else
28354 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28355echo "${ECHO_T}$MICROWINDOWS" >&6
28356 fi
28357
28358 if test -f $MICROWINDOWS/lib/libmwin.a; then
28359 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28360echo "${ECHO_T}MicroWindows' libraries found." >&6
28361 else
28362 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28363echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28364 { (exit 1); exit 1; }; }
28365 fi
28366
28367 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28368 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28369
28370 wxUSE_UNIVERSAL="yes"
28371
28372 AFMINSTALL=afminstall
28373 TOOLKIT=MICROWIN
28374 GUIDIST=MICROWIN_DIST
28375
28376 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28377 fi
28378
74b84332 28379 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6954625c
VZ
28380
28381if test "x$ac_path_x_has_been_run" != xyes; then
28382 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
28383echo $ECHO_N "checking for X... $ECHO_C" >&6
28384
6954625c 28385ac_path_x_has_been_run=yes
a848cd7e
SC
28386
28387# Check whether --with-x or --without-x was given.
28388if test "${with_x+set}" = set; then
28389 withval="$with_x"
28390
28391fi;
28392# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28393if test "x$with_x" = xno; then
28394 # The user explicitly disabled X.
28395 have_x=disabled
28396else
28397 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28398 # Both variables are already set.
28399 have_x=yes
28400 else
28401 if test "${ac_cv_have_x+set}" = set; then
28402 echo $ECHO_N "(cached) $ECHO_C" >&6
28403else
28404 # One or both of the vars are not set, and there is no cached value.
28405ac_x_includes=no ac_x_libraries=no
28406rm -fr conftest.dir
28407if mkdir conftest.dir; then
28408 cd conftest.dir
28409 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28410 cat >Imakefile <<'_ACEOF'
28411acfindx:
28412 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28413_ACEOF
28414 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28415 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28416 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28417 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28418 for ac_extension in a so sl; do
28419 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28420 test -f $ac_im_libdir/libX11.$ac_extension; then
28421 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28422 fi
28423 done
28424 # Screen out bogus values from the imake configuration. They are
28425 # bogus both because they are the default anyway, and because
28426 # using them would break gcc on systems where it needs fixed includes.
28427 case $ac_im_incroot in
28428 /usr/include) ;;
28429 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28430 esac
28431 case $ac_im_usrlibdir in
28432 /usr/lib | /lib) ;;
28433 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28434 esac
28435 fi
28436 cd ..
28437 rm -fr conftest.dir
28438fi
28439
28440# Standard set of common directories for X headers.
28441# Check X11 before X11Rn because it is often a symlink to the current release.
28442ac_x_header_dirs='
28443/usr/X11/include
28444/usr/X11R6/include
28445/usr/X11R5/include
28446/usr/X11R4/include
28447
28448/usr/include/X11
28449/usr/include/X11R6
28450/usr/include/X11R5
28451/usr/include/X11R4
28452
28453/usr/local/X11/include
28454/usr/local/X11R6/include
28455/usr/local/X11R5/include
28456/usr/local/X11R4/include
28457
28458/usr/local/include/X11
28459/usr/local/include/X11R6
28460/usr/local/include/X11R5
28461/usr/local/include/X11R4
28462
28463/usr/X386/include
28464/usr/x386/include
28465/usr/XFree86/include/X11
28466
28467/usr/include
28468/usr/local/include
28469/usr/unsupported/include
28470/usr/athena/include
28471/usr/local/x11r5/include
28472/usr/lpp/Xamples/include
28473
28474/usr/openwin/include
28475/usr/openwin/share/include'
28476
28477if test "$ac_x_includes" = no; then
6954625c 28478 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
28479 # First, try using that file with no special directory specified.
28480 cat >conftest.$ac_ext <<_ACEOF
28481/* confdefs.h. */
28482_ACEOF
28483cat confdefs.h >>conftest.$ac_ext
28484cat >>conftest.$ac_ext <<_ACEOF
28485/* end confdefs.h. */
d25774ab 28486#include <X11/Intrinsic.h>
a848cd7e
SC
28487_ACEOF
28488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28490 ac_status=$?
28491 grep -v '^ *+' conftest.er1 >conftest.err
28492 rm -f conftest.er1
28493 cat conftest.err >&5
28494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495 (exit $ac_status); } >/dev/null; then
28496 if test -s conftest.err; then
5d7b7554
VZ
28497 ac_cpp_err=$ac_cxx_preproc_warn_flag
28498 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28499 else
28500 ac_cpp_err=
28501 fi
28502else
28503 ac_cpp_err=yes
28504fi
28505if test -z "$ac_cpp_err"; then
28506 # We can compile using X headers with no special include directory.
28507ac_x_includes=
28508else
28509 echo "$as_me: failed program was:" >&5
28510sed 's/^/| /' conftest.$ac_ext >&5
28511
28512 for ac_dir in $ac_x_header_dirs; do
d25774ab 28513 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
28514 ac_x_includes=$ac_dir
28515 break
28516 fi
28517done
28518fi
28519rm -f conftest.err conftest.$ac_ext
28520fi # $ac_x_includes = no
28521
28522if test "$ac_x_libraries" = no; then
28523 # Check for the libraries.
28524 # See if we find them without any special options.
28525 # Don't add to $LIBS permanently.
28526 ac_save_LIBS=$LIBS
d25774ab 28527 LIBS="-lXt $LIBS"
a848cd7e
SC
28528 cat >conftest.$ac_ext <<_ACEOF
28529/* confdefs.h. */
28530_ACEOF
28531cat confdefs.h >>conftest.$ac_ext
28532cat >>conftest.$ac_ext <<_ACEOF
28533/* end confdefs.h. */
d25774ab 28534#include <X11/Intrinsic.h>
a848cd7e
SC
28535int
28536main ()
28537{
d25774ab 28538XtMalloc (0)
a848cd7e
SC
28539 ;
28540 return 0;
28541}
28542_ACEOF
28543rm -f conftest.$ac_objext conftest$ac_exeext
28544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28545 (eval $ac_link) 2>conftest.er1
a848cd7e 28546 ac_status=$?
ac1cb8d3
VS
28547 grep -v '^ *+' conftest.er1 >conftest.err
28548 rm -f conftest.er1
28549 cat conftest.err >&5
a848cd7e
SC
28550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); } &&
6954625c 28552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28554 (eval $ac_try) 2>&5
28555 ac_status=$?
28556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557 (exit $ac_status); }; } &&
28558 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28560 (eval $ac_try) 2>&5
28561 ac_status=$?
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); }; }; then
28564 LIBS=$ac_save_LIBS
28565# We can link X programs with no special library path.
28566ac_x_libraries=
28567else
28568 echo "$as_me: failed program was:" >&5
28569sed 's/^/| /' conftest.$ac_ext >&5
28570
28571LIBS=$ac_save_LIBS
28572for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28573do
28574 # Don't even attempt the hair of trying to link an X program!
28575 for ac_extension in a so sl; do
d25774ab 28576 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
28577 ac_x_libraries=$ac_dir
28578 break 2
28579 fi
28580 done
28581done
28582fi
ac1cb8d3
VS
28583rm -f conftest.err conftest.$ac_objext \
28584 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28585fi # $ac_x_libraries = no
28586
28587if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28588 # Didn't find X anywhere. Cache the known absence of X.
28589 ac_cv_have_x="have_x=no"
28590else
28591 # Record where we found X for the cache.
28592 ac_cv_have_x="have_x=yes \
ac1cb8d3 28593 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28594fi
28595fi
28596
28597 fi
28598 eval "$ac_cv_have_x"
28599fi # $with_x != no
28600
28601if test "$have_x" != yes; then
28602 echo "$as_me:$LINENO: result: $have_x" >&5
28603echo "${ECHO_T}$have_x" >&6
28604 no_x=yes
28605else
28606 # If each of the values was on the command line, it overrides each guess.
28607 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28608 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28609 # Update the cache value to reflect the command line values.
28610 ac_cv_have_x="have_x=yes \
28611 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6954625c
VZ
28612 # It might be that x_includes is empty (headers are found in the
28613 # standard search path. Then output the corresponding message
28614 ac_out_x_includes=$x_includes
28615 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28616 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28617echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
28618fi
28619
6954625c 28620fi
a848cd7e
SC
28621if test "$no_x" = yes; then
28622 # Not all programs may use this symbol, but it does not hurt to define it.
28623
28624cat >>confdefs.h <<\_ACEOF
28625#define X_DISPLAY_MISSING 1
28626_ACEOF
28627
28628 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28629else
28630 if test -n "$x_includes"; then
28631 X_CFLAGS="$X_CFLAGS -I$x_includes"
28632 fi
28633
28634 # It would also be nice to do this for all -L options, not just this one.
28635 if test -n "$x_libraries"; then
28636 X_LIBS="$X_LIBS -L$x_libraries"
28637 # For Solaris; some versions of Sun CC require a space after -R and
28638 # others require no space. Words are not sufficient . . . .
28639 case `(uname -sr) 2>/dev/null` in
28640 "SunOS 5"*)
28641 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28642echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28643 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28644 cat >conftest.$ac_ext <<_ACEOF
28645/* confdefs.h. */
28646_ACEOF
28647cat confdefs.h >>conftest.$ac_ext
28648cat >>conftest.$ac_ext <<_ACEOF
28649/* end confdefs.h. */
28650
28651int
28652main ()
28653{
28654
28655 ;
28656 return 0;
28657}
28658_ACEOF
28659rm -f conftest.$ac_objext conftest$ac_exeext
28660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28661 (eval $ac_link) 2>conftest.er1
a848cd7e 28662 ac_status=$?
ac1cb8d3
VS
28663 grep -v '^ *+' conftest.er1 >conftest.err
28664 rm -f conftest.er1
28665 cat conftest.err >&5
a848cd7e
SC
28666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667 (exit $ac_status); } &&
6954625c 28668 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28670 (eval $ac_try) 2>&5
28671 ac_status=$?
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); }; } &&
28674 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28676 (eval $ac_try) 2>&5
28677 ac_status=$?
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); }; }; then
28680 ac_R_nospace=yes
28681else
28682 echo "$as_me: failed program was:" >&5
28683sed 's/^/| /' conftest.$ac_ext >&5
28684
28685ac_R_nospace=no
28686fi
ac1cb8d3
VS
28687rm -f conftest.err conftest.$ac_objext \
28688 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28689 if test $ac_R_nospace = yes; then
28690 echo "$as_me:$LINENO: result: no" >&5
28691echo "${ECHO_T}no" >&6
28692 X_LIBS="$X_LIBS -R$x_libraries"
28693 else
28694 LIBS="$ac_xsave_LIBS -R $x_libraries"
28695 cat >conftest.$ac_ext <<_ACEOF
28696/* confdefs.h. */
28697_ACEOF
28698cat confdefs.h >>conftest.$ac_ext
28699cat >>conftest.$ac_ext <<_ACEOF
28700/* end confdefs.h. */
28701
28702int
28703main ()
28704{
28705
28706 ;
28707 return 0;
28708}
28709_ACEOF
28710rm -f conftest.$ac_objext conftest$ac_exeext
28711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28712 (eval $ac_link) 2>conftest.er1
a848cd7e 28713 ac_status=$?
ac1cb8d3
VS
28714 grep -v '^ *+' conftest.er1 >conftest.err
28715 rm -f conftest.er1
28716 cat conftest.err >&5
a848cd7e
SC
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); } &&
6954625c 28719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28721 (eval $ac_try) 2>&5
28722 ac_status=$?
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); }; } &&
28725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28727 (eval $ac_try) 2>&5
28728 ac_status=$?
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); }; }; then
28731 ac_R_space=yes
28732else
28733 echo "$as_me: failed program was:" >&5
28734sed 's/^/| /' conftest.$ac_ext >&5
28735
28736ac_R_space=no
28737fi
ac1cb8d3
VS
28738rm -f conftest.err conftest.$ac_objext \
28739 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28740 if test $ac_R_space = yes; then
28741 echo "$as_me:$LINENO: result: yes" >&5
28742echo "${ECHO_T}yes" >&6
28743 X_LIBS="$X_LIBS -R $x_libraries"
28744 else
28745 echo "$as_me:$LINENO: result: neither works" >&5
28746echo "${ECHO_T}neither works" >&6
28747 fi
28748 fi
28749 LIBS=$ac_xsave_LIBS
28750 esac
28751 fi
28752
28753 # Check for system-dependent libraries X programs must link with.
28754 # Do this before checking for the system-independent R6 libraries
28755 # (-lICE), since we may need -lsocket or whatever for X linking.
28756
28757 if test "$ISC" = yes; then
28758 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28759 else
28760 # Martyn Johnson says this is needed for Ultrix, if the X
28761 # libraries were built with DECnet support. And Karl Berry says
28762 # the Alpha needs dnet_stub (dnet does not exist).
28763 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28764 cat >conftest.$ac_ext <<_ACEOF
28765/* confdefs.h. */
28766_ACEOF
28767cat confdefs.h >>conftest.$ac_ext
28768cat >>conftest.$ac_ext <<_ACEOF
28769/* end confdefs.h. */
28770
28771/* Override any gcc2 internal prototype to avoid an error. */
28772#ifdef __cplusplus
28773extern "C"
28774#endif
28775/* We use char because int might match the return type of a gcc2
28776 builtin and then its argument prototype would still apply. */
28777char XOpenDisplay ();
28778int
28779main ()
28780{
28781XOpenDisplay ();
28782 ;
28783 return 0;
28784}
28785_ACEOF
28786rm -f conftest.$ac_objext conftest$ac_exeext
28787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28788 (eval $ac_link) 2>conftest.er1
a848cd7e 28789 ac_status=$?
ac1cb8d3
VS
28790 grep -v '^ *+' conftest.er1 >conftest.err
28791 rm -f conftest.er1
28792 cat conftest.err >&5
a848cd7e
SC
28793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794 (exit $ac_status); } &&
6954625c 28795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28797 (eval $ac_try) 2>&5
28798 ac_status=$?
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; } &&
28801 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803 (eval $ac_try) 2>&5
28804 ac_status=$?
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; }; then
28807 :
28808else
28809 echo "$as_me: failed program was:" >&5
28810sed 's/^/| /' conftest.$ac_ext >&5
28811
28812echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28813echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28814if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28815 echo $ECHO_N "(cached) $ECHO_C" >&6
28816else
28817 ac_check_lib_save_LIBS=$LIBS
28818LIBS="-ldnet $LIBS"
28819cat >conftest.$ac_ext <<_ACEOF
28820/* confdefs.h. */
28821_ACEOF
28822cat confdefs.h >>conftest.$ac_ext
28823cat >>conftest.$ac_ext <<_ACEOF
28824/* end confdefs.h. */
28825
28826/* Override any gcc2 internal prototype to avoid an error. */
28827#ifdef __cplusplus
28828extern "C"
28829#endif
28830/* We use char because int might match the return type of a gcc2
28831 builtin and then its argument prototype would still apply. */
28832char dnet_ntoa ();
28833int
28834main ()
28835{
28836dnet_ntoa ();
28837 ;
28838 return 0;
28839}
28840_ACEOF
28841rm -f conftest.$ac_objext conftest$ac_exeext
28842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28843 (eval $ac_link) 2>conftest.er1
a848cd7e 28844 ac_status=$?
ac1cb8d3
VS
28845 grep -v '^ *+' conftest.er1 >conftest.err
28846 rm -f conftest.er1
28847 cat conftest.err >&5
a848cd7e
SC
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); } &&
6954625c 28850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852 (eval $ac_try) 2>&5
28853 ac_status=$?
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); }; } &&
28856 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858 (eval $ac_try) 2>&5
28859 ac_status=$?
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; }; then
28862 ac_cv_lib_dnet_dnet_ntoa=yes
28863else
28864 echo "$as_me: failed program was:" >&5
28865sed 's/^/| /' conftest.$ac_ext >&5
28866
28867ac_cv_lib_dnet_dnet_ntoa=no
28868fi
ac1cb8d3
VS
28869rm -f conftest.err conftest.$ac_objext \
28870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28871LIBS=$ac_check_lib_save_LIBS
28872fi
28873echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28874echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28875if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28876 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28877fi
28878
28879 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28880 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28881echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28882if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28883 echo $ECHO_N "(cached) $ECHO_C" >&6
28884else
28885 ac_check_lib_save_LIBS=$LIBS
28886LIBS="-ldnet_stub $LIBS"
28887cat >conftest.$ac_ext <<_ACEOF
28888/* confdefs.h. */
28889_ACEOF
28890cat confdefs.h >>conftest.$ac_ext
28891cat >>conftest.$ac_ext <<_ACEOF
28892/* end confdefs.h. */
28893
28894/* Override any gcc2 internal prototype to avoid an error. */
28895#ifdef __cplusplus
28896extern "C"
28897#endif
28898/* We use char because int might match the return type of a gcc2
28899 builtin and then its argument prototype would still apply. */
28900char dnet_ntoa ();
28901int
28902main ()
28903{
28904dnet_ntoa ();
28905 ;
28906 return 0;
28907}
28908_ACEOF
28909rm -f conftest.$ac_objext conftest$ac_exeext
28910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28911 (eval $ac_link) 2>conftest.er1
a848cd7e 28912 ac_status=$?
ac1cb8d3
VS
28913 grep -v '^ *+' conftest.er1 >conftest.err
28914 rm -f conftest.er1
28915 cat conftest.err >&5
a848cd7e
SC
28916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917 (exit $ac_status); } &&
6954625c 28918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28920 (eval $ac_try) 2>&5
28921 ac_status=$?
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); }; } &&
28924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28926 (eval $ac_try) 2>&5
28927 ac_status=$?
28928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929 (exit $ac_status); }; }; then
28930 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28931else
28932 echo "$as_me: failed program was:" >&5
28933sed 's/^/| /' conftest.$ac_ext >&5
28934
28935ac_cv_lib_dnet_stub_dnet_ntoa=no
28936fi
ac1cb8d3
VS
28937rm -f conftest.err conftest.$ac_objext \
28938 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28939LIBS=$ac_check_lib_save_LIBS
28940fi
28941echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28942echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28943if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28944 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28945fi
28946
28947 fi
28948fi
ac1cb8d3
VS
28949rm -f conftest.err conftest.$ac_objext \
28950 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28951 LIBS="$ac_xsave_LIBS"
28952
28953 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28954 # to get the SysV transport functions.
28955 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28956 # needs -lnsl.
28957 # The nsl library prevents programs from opening the X display
28958 # on Irix 5.2, according to T.E. Dickey.
28959 # The functions gethostbyname, getservbyname, and inet_addr are
28960 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28961 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28962echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28963if test "${ac_cv_func_gethostbyname+set}" = set; then
28964 echo $ECHO_N "(cached) $ECHO_C" >&6
28965else
28966 cat >conftest.$ac_ext <<_ACEOF
28967/* confdefs.h. */
28968_ACEOF
28969cat confdefs.h >>conftest.$ac_ext
28970cat >>conftest.$ac_ext <<_ACEOF
28971/* end confdefs.h. */
ac1cb8d3
VS
28972/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28974#define gethostbyname innocuous_gethostbyname
28975
a848cd7e
SC
28976/* System header to define __stub macros and hopefully few prototypes,
28977 which can conflict with char gethostbyname (); below.
28978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28979 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28980
a848cd7e
SC
28981#ifdef __STDC__
28982# include <limits.h>
28983#else
28984# include <assert.h>
28985#endif
ac1cb8d3
VS
28986
28987#undef gethostbyname
28988
a848cd7e
SC
28989/* Override any gcc2 internal prototype to avoid an error. */
28990#ifdef __cplusplus
28991extern "C"
28992{
28993#endif
28994/* We use char because int might match the return type of a gcc2
28995 builtin and then its argument prototype would still apply. */
28996char gethostbyname ();
28997/* The GNU C library defines this for functions which it implements
28998 to always fail with ENOSYS. Some functions are actually named
28999 something starting with __ and the normal name is an alias. */
29000#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29001choke me
29002#else
29003char (*f) () = gethostbyname;
29004#endif
29005#ifdef __cplusplus
29006}
29007#endif
29008
29009int
29010main ()
29011{
29012return f != gethostbyname;
29013 ;
29014 return 0;
29015}
29016_ACEOF
29017rm -f conftest.$ac_objext conftest$ac_exeext
29018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29019 (eval $ac_link) 2>conftest.er1
a848cd7e 29020 ac_status=$?
ac1cb8d3
VS
29021 grep -v '^ *+' conftest.er1 >conftest.err
29022 rm -f conftest.er1
29023 cat conftest.err >&5
a848cd7e
SC
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); } &&
6954625c 29026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028 (eval $ac_try) 2>&5
29029 ac_status=$?
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); }; } &&
29032 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29034 (eval $ac_try) 2>&5
29035 ac_status=$?
29036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 (exit $ac_status); }; }; then
29038 ac_cv_func_gethostbyname=yes
29039else
29040 echo "$as_me: failed program was:" >&5
29041sed 's/^/| /' conftest.$ac_ext >&5
29042
29043ac_cv_func_gethostbyname=no
29044fi
ac1cb8d3
VS
29045rm -f conftest.err conftest.$ac_objext \
29046 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29047fi
29048echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29049echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29050
29051 if test $ac_cv_func_gethostbyname = no; then
29052 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29053echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29054if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29055 echo $ECHO_N "(cached) $ECHO_C" >&6
29056else
29057 ac_check_lib_save_LIBS=$LIBS
29058LIBS="-lnsl $LIBS"
29059cat >conftest.$ac_ext <<_ACEOF
29060/* confdefs.h. */
29061_ACEOF
29062cat confdefs.h >>conftest.$ac_ext
29063cat >>conftest.$ac_ext <<_ACEOF
29064/* end confdefs.h. */
29065
29066/* Override any gcc2 internal prototype to avoid an error. */
29067#ifdef __cplusplus
29068extern "C"
29069#endif
29070/* We use char because int might match the return type of a gcc2
29071 builtin and then its argument prototype would still apply. */
29072char gethostbyname ();
29073int
29074main ()
29075{
29076gethostbyname ();
29077 ;
29078 return 0;
29079}
29080_ACEOF
29081rm -f conftest.$ac_objext conftest$ac_exeext
29082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
29083 (eval $ac_link) 2>conftest.er1
29084 ac_status=$?
29085 grep -v '^ *+' conftest.er1 >conftest.err
29086 rm -f conftest.er1
29087 cat conftest.err >&5
29088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29089 (exit $ac_status); } &&
6954625c 29090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29092 (eval $ac_try) 2>&5
29093 ac_status=$?
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); }; } &&
29096 { ac_try='test -s conftest$ac_exeext'
29097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29098 (eval $ac_try) 2>&5
29099 ac_status=$?
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); }; }; then
29102 ac_cv_lib_nsl_gethostbyname=yes
29103else
29104 echo "$as_me: failed program was:" >&5
29105sed 's/^/| /' conftest.$ac_ext >&5
29106
29107ac_cv_lib_nsl_gethostbyname=no
29108fi
29109rm -f conftest.err conftest.$ac_objext \
29110 conftest$ac_exeext conftest.$ac_ext
29111LIBS=$ac_check_lib_save_LIBS
29112fi
29113echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29114echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29115if test $ac_cv_lib_nsl_gethostbyname = yes; then
29116 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29117fi
29118
29119 if test $ac_cv_lib_nsl_gethostbyname = no; then
29120 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29121echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29122if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29123 echo $ECHO_N "(cached) $ECHO_C" >&6
29124else
29125 ac_check_lib_save_LIBS=$LIBS
29126LIBS="-lbsd $LIBS"
29127cat >conftest.$ac_ext <<_ACEOF
29128/* confdefs.h. */
29129_ACEOF
29130cat confdefs.h >>conftest.$ac_ext
29131cat >>conftest.$ac_ext <<_ACEOF
29132/* end confdefs.h. */
29133
29134/* Override any gcc2 internal prototype to avoid an error. */
29135#ifdef __cplusplus
29136extern "C"
29137#endif
29138/* We use char because int might match the return type of a gcc2
29139 builtin and then its argument prototype would still apply. */
29140char gethostbyname ();
29141int
29142main ()
29143{
29144gethostbyname ();
29145 ;
29146 return 0;
29147}
29148_ACEOF
29149rm -f conftest.$ac_objext conftest$ac_exeext
29150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29151 (eval $ac_link) 2>conftest.er1
a848cd7e 29152 ac_status=$?
ac1cb8d3
VS
29153 grep -v '^ *+' conftest.er1 >conftest.err
29154 rm -f conftest.er1
29155 cat conftest.err >&5
a848cd7e
SC
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); } &&
6954625c 29158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29160 (eval $ac_try) 2>&5
29161 ac_status=$?
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
29163 (exit $ac_status); }; } &&
29164 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29166 (eval $ac_try) 2>&5
29167 ac_status=$?
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); }; }; then
29170 ac_cv_lib_bsd_gethostbyname=yes
29171else
29172 echo "$as_me: failed program was:" >&5
29173sed 's/^/| /' conftest.$ac_ext >&5
29174
29175ac_cv_lib_bsd_gethostbyname=no
29176fi
ac1cb8d3
VS
29177rm -f conftest.err conftest.$ac_objext \
29178 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29179LIBS=$ac_check_lib_save_LIBS
29180fi
29181echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29182echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29183if test $ac_cv_lib_bsd_gethostbyname = yes; then
29184 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29185fi
29186
29187 fi
29188 fi
29189
29190 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29191 # socket/setsockopt and other routines are undefined under SCO ODT
29192 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29193 # on later versions), says Simon Leinen: it contains gethostby*
29194 # variants that don't use the name server (or something). -lsocket
29195 # must be given before -lnsl if both are needed. We assume that
29196 # if connect needs -lnsl, so does gethostbyname.
29197 echo "$as_me:$LINENO: checking for connect" >&5
29198echo $ECHO_N "checking for connect... $ECHO_C" >&6
29199if test "${ac_cv_func_connect+set}" = set; then
29200 echo $ECHO_N "(cached) $ECHO_C" >&6
29201else
29202 cat >conftest.$ac_ext <<_ACEOF
29203/* confdefs.h. */
29204_ACEOF
29205cat confdefs.h >>conftest.$ac_ext
29206cat >>conftest.$ac_ext <<_ACEOF
29207/* end confdefs.h. */
ac1cb8d3
VS
29208/* Define connect to an innocuous variant, in case <limits.h> declares connect.
29209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29210#define connect innocuous_connect
29211
a848cd7e
SC
29212/* System header to define __stub macros and hopefully few prototypes,
29213 which can conflict with char connect (); below.
29214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29215 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29216
a848cd7e
SC
29217#ifdef __STDC__
29218# include <limits.h>
29219#else
29220# include <assert.h>
29221#endif
ac1cb8d3
VS
29222
29223#undef connect
29224
a848cd7e
SC
29225/* Override any gcc2 internal prototype to avoid an error. */
29226#ifdef __cplusplus
29227extern "C"
29228{
29229#endif
29230/* We use char because int might match the return type of a gcc2
29231 builtin and then its argument prototype would still apply. */
29232char connect ();
29233/* The GNU C library defines this for functions which it implements
29234 to always fail with ENOSYS. Some functions are actually named
29235 something starting with __ and the normal name is an alias. */
29236#if defined (__stub_connect) || defined (__stub___connect)
29237choke me
29238#else
29239char (*f) () = connect;
29240#endif
29241#ifdef __cplusplus
29242}
29243#endif
29244
29245int
29246main ()
29247{
29248return f != connect;
29249 ;
29250 return 0;
29251}
29252_ACEOF
29253rm -f conftest.$ac_objext conftest$ac_exeext
29254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29255 (eval $ac_link) 2>conftest.er1
a848cd7e 29256 ac_status=$?
ac1cb8d3
VS
29257 grep -v '^ *+' conftest.er1 >conftest.err
29258 rm -f conftest.er1
29259 cat conftest.err >&5
a848cd7e
SC
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); } &&
6954625c 29262 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29264 (eval $ac_try) 2>&5
29265 ac_status=$?
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); }; } &&
29268 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29270 (eval $ac_try) 2>&5
29271 ac_status=$?
29272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273 (exit $ac_status); }; }; then
29274 ac_cv_func_connect=yes
29275else
29276 echo "$as_me: failed program was:" >&5
29277sed 's/^/| /' conftest.$ac_ext >&5
29278
29279ac_cv_func_connect=no
29280fi
ac1cb8d3
VS
29281rm -f conftest.err conftest.$ac_objext \
29282 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29283fi
29284echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29285echo "${ECHO_T}$ac_cv_func_connect" >&6
29286
29287 if test $ac_cv_func_connect = no; then
29288 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29289echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29290if test "${ac_cv_lib_socket_connect+set}" = set; then
29291 echo $ECHO_N "(cached) $ECHO_C" >&6
29292else
29293 ac_check_lib_save_LIBS=$LIBS
29294LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29295cat >conftest.$ac_ext <<_ACEOF
29296/* confdefs.h. */
29297_ACEOF
29298cat confdefs.h >>conftest.$ac_ext
29299cat >>conftest.$ac_ext <<_ACEOF
29300/* end confdefs.h. */
29301
29302/* Override any gcc2 internal prototype to avoid an error. */
29303#ifdef __cplusplus
29304extern "C"
29305#endif
29306/* We use char because int might match the return type of a gcc2
29307 builtin and then its argument prototype would still apply. */
29308char connect ();
29309int
29310main ()
29311{
29312connect ();
29313 ;
29314 return 0;
29315}
29316_ACEOF
29317rm -f conftest.$ac_objext conftest$ac_exeext
29318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29319 (eval $ac_link) 2>conftest.er1
a848cd7e 29320 ac_status=$?
ac1cb8d3
VS
29321 grep -v '^ *+' conftest.er1 >conftest.err
29322 rm -f conftest.er1
29323 cat conftest.err >&5
a848cd7e
SC
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); } &&
6954625c 29326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29328 (eval $ac_try) 2>&5
29329 ac_status=$?
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); }; } &&
29332 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29334 (eval $ac_try) 2>&5
29335 ac_status=$?
29336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337 (exit $ac_status); }; }; then
29338 ac_cv_lib_socket_connect=yes
29339else
29340 echo "$as_me: failed program was:" >&5
29341sed 's/^/| /' conftest.$ac_ext >&5
29342
29343ac_cv_lib_socket_connect=no
29344fi
ac1cb8d3
VS
29345rm -f conftest.err conftest.$ac_objext \
29346 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29347LIBS=$ac_check_lib_save_LIBS
29348fi
29349echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29350echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29351if test $ac_cv_lib_socket_connect = yes; then
29352 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29353fi
29354
29355 fi
29356
29357 # Guillermo Gomez says -lposix is necessary on A/UX.
29358 echo "$as_me:$LINENO: checking for remove" >&5
29359echo $ECHO_N "checking for remove... $ECHO_C" >&6
29360if test "${ac_cv_func_remove+set}" = set; then
29361 echo $ECHO_N "(cached) $ECHO_C" >&6
29362else
29363 cat >conftest.$ac_ext <<_ACEOF
29364/* confdefs.h. */
29365_ACEOF
29366cat confdefs.h >>conftest.$ac_ext
29367cat >>conftest.$ac_ext <<_ACEOF
29368/* end confdefs.h. */
ac1cb8d3
VS
29369/* Define remove to an innocuous variant, in case <limits.h> declares remove.
29370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29371#define remove innocuous_remove
29372
a848cd7e
SC
29373/* System header to define __stub macros and hopefully few prototypes,
29374 which can conflict with char remove (); below.
29375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29376 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29377
a848cd7e
SC
29378#ifdef __STDC__
29379# include <limits.h>
29380#else
29381# include <assert.h>
29382#endif
ac1cb8d3
VS
29383
29384#undef remove
29385
a848cd7e
SC
29386/* Override any gcc2 internal prototype to avoid an error. */
29387#ifdef __cplusplus
29388extern "C"
29389{
29390#endif
29391/* We use char because int might match the return type of a gcc2
29392 builtin and then its argument prototype would still apply. */
29393char remove ();
29394/* The GNU C library defines this for functions which it implements
29395 to always fail with ENOSYS. Some functions are actually named
29396 something starting with __ and the normal name is an alias. */
29397#if defined (__stub_remove) || defined (__stub___remove)
29398choke me
29399#else
29400char (*f) () = remove;
29401#endif
29402#ifdef __cplusplus
29403}
29404#endif
29405
29406int
29407main ()
29408{
29409return f != remove;
29410 ;
29411 return 0;
29412}
29413_ACEOF
29414rm -f conftest.$ac_objext conftest$ac_exeext
29415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29416 (eval $ac_link) 2>conftest.er1
a848cd7e 29417 ac_status=$?
ac1cb8d3
VS
29418 grep -v '^ *+' conftest.er1 >conftest.err
29419 rm -f conftest.er1
29420 cat conftest.err >&5
a848cd7e
SC
29421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422 (exit $ac_status); } &&
6954625c 29423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29425 (eval $ac_try) 2>&5
29426 ac_status=$?
29427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428 (exit $ac_status); }; } &&
29429 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29431 (eval $ac_try) 2>&5
29432 ac_status=$?
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); }; }; then
29435 ac_cv_func_remove=yes
29436else
29437 echo "$as_me: failed program was:" >&5
29438sed 's/^/| /' conftest.$ac_ext >&5
29439
29440ac_cv_func_remove=no
29441fi
ac1cb8d3
VS
29442rm -f conftest.err conftest.$ac_objext \
29443 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29444fi
29445echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29446echo "${ECHO_T}$ac_cv_func_remove" >&6
29447
29448 if test $ac_cv_func_remove = no; then
29449 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29450echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29451if test "${ac_cv_lib_posix_remove+set}" = set; then
29452 echo $ECHO_N "(cached) $ECHO_C" >&6
29453else
29454 ac_check_lib_save_LIBS=$LIBS
29455LIBS="-lposix $LIBS"
29456cat >conftest.$ac_ext <<_ACEOF
29457/* confdefs.h. */
29458_ACEOF
29459cat confdefs.h >>conftest.$ac_ext
29460cat >>conftest.$ac_ext <<_ACEOF
29461/* end confdefs.h. */
29462
29463/* Override any gcc2 internal prototype to avoid an error. */
29464#ifdef __cplusplus
29465extern "C"
29466#endif
29467/* We use char because int might match the return type of a gcc2
29468 builtin and then its argument prototype would still apply. */
29469char remove ();
29470int
29471main ()
29472{
29473remove ();
29474 ;
29475 return 0;
29476}
29477_ACEOF
29478rm -f conftest.$ac_objext conftest$ac_exeext
29479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29480 (eval $ac_link) 2>conftest.er1
a848cd7e 29481 ac_status=$?
ac1cb8d3
VS
29482 grep -v '^ *+' conftest.er1 >conftest.err
29483 rm -f conftest.er1
29484 cat conftest.err >&5
a848cd7e
SC
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); } &&
6954625c 29487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29489 (eval $ac_try) 2>&5
29490 ac_status=$?
29491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492 (exit $ac_status); }; } &&
29493 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29495 (eval $ac_try) 2>&5
29496 ac_status=$?
29497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498 (exit $ac_status); }; }; then
29499 ac_cv_lib_posix_remove=yes
29500else
29501 echo "$as_me: failed program was:" >&5
29502sed 's/^/| /' conftest.$ac_ext >&5
29503
29504ac_cv_lib_posix_remove=no
29505fi
ac1cb8d3
VS
29506rm -f conftest.err conftest.$ac_objext \
29507 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29508LIBS=$ac_check_lib_save_LIBS
29509fi
29510echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29511echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29512if test $ac_cv_lib_posix_remove = yes; then
29513 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29514fi
29515
29516 fi
29517
29518 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29519 echo "$as_me:$LINENO: checking for shmat" >&5
29520echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29521if test "${ac_cv_func_shmat+set}" = set; then
29522 echo $ECHO_N "(cached) $ECHO_C" >&6
29523else
29524 cat >conftest.$ac_ext <<_ACEOF
29525/* confdefs.h. */
29526_ACEOF
29527cat confdefs.h >>conftest.$ac_ext
29528cat >>conftest.$ac_ext <<_ACEOF
29529/* end confdefs.h. */
ac1cb8d3
VS
29530/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29532#define shmat innocuous_shmat
29533
a848cd7e
SC
29534/* System header to define __stub macros and hopefully few prototypes,
29535 which can conflict with char shmat (); below.
29536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29537 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29538
a848cd7e
SC
29539#ifdef __STDC__
29540# include <limits.h>
29541#else
29542# include <assert.h>
29543#endif
ac1cb8d3
VS
29544
29545#undef shmat
29546
a848cd7e
SC
29547/* Override any gcc2 internal prototype to avoid an error. */
29548#ifdef __cplusplus
29549extern "C"
29550{
29551#endif
29552/* We use char because int might match the return type of a gcc2
29553 builtin and then its argument prototype would still apply. */
29554char shmat ();
29555/* The GNU C library defines this for functions which it implements
29556 to always fail with ENOSYS. Some functions are actually named
29557 something starting with __ and the normal name is an alias. */
29558#if defined (__stub_shmat) || defined (__stub___shmat)
29559choke me
29560#else
29561char (*f) () = shmat;
29562#endif
29563#ifdef __cplusplus
29564}
29565#endif
29566
29567int
29568main ()
29569{
29570return f != shmat;
29571 ;
29572 return 0;
29573}
29574_ACEOF
29575rm -f conftest.$ac_objext conftest$ac_exeext
29576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29577 (eval $ac_link) 2>conftest.er1
a848cd7e 29578 ac_status=$?
ac1cb8d3
VS
29579 grep -v '^ *+' conftest.er1 >conftest.err
29580 rm -f conftest.er1
29581 cat conftest.err >&5
a848cd7e
SC
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); } &&
6954625c 29584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29586 (eval $ac_try) 2>&5
29587 ac_status=$?
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); }; } &&
29590 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29592 (eval $ac_try) 2>&5
29593 ac_status=$?
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); }; }; then
29596 ac_cv_func_shmat=yes
29597else
29598 echo "$as_me: failed program was:" >&5
29599sed 's/^/| /' conftest.$ac_ext >&5
29600
29601ac_cv_func_shmat=no
29602fi
ac1cb8d3
VS
29603rm -f conftest.err conftest.$ac_objext \
29604 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29605fi
29606echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29607echo "${ECHO_T}$ac_cv_func_shmat" >&6
29608
29609 if test $ac_cv_func_shmat = no; then
29610 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29611echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29612if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29613 echo $ECHO_N "(cached) $ECHO_C" >&6
29614else
29615 ac_check_lib_save_LIBS=$LIBS
29616LIBS="-lipc $LIBS"
29617cat >conftest.$ac_ext <<_ACEOF
29618/* confdefs.h. */
29619_ACEOF
29620cat confdefs.h >>conftest.$ac_ext
29621cat >>conftest.$ac_ext <<_ACEOF
29622/* end confdefs.h. */
29623
29624/* Override any gcc2 internal prototype to avoid an error. */
29625#ifdef __cplusplus
29626extern "C"
29627#endif
29628/* We use char because int might match the return type of a gcc2
29629 builtin and then its argument prototype would still apply. */
29630char shmat ();
29631int
29632main ()
29633{
29634shmat ();
29635 ;
29636 return 0;
29637}
29638_ACEOF
29639rm -f conftest.$ac_objext conftest$ac_exeext
29640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29641 (eval $ac_link) 2>conftest.er1
a848cd7e 29642 ac_status=$?
ac1cb8d3
VS
29643 grep -v '^ *+' conftest.er1 >conftest.err
29644 rm -f conftest.er1
29645 cat conftest.err >&5
a848cd7e
SC
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); } &&
6954625c 29648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29650 (eval $ac_try) 2>&5
29651 ac_status=$?
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); }; } &&
29654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656 (eval $ac_try) 2>&5
29657 ac_status=$?
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; }; then
29660 ac_cv_lib_ipc_shmat=yes
29661else
29662 echo "$as_me: failed program was:" >&5
29663sed 's/^/| /' conftest.$ac_ext >&5
29664
29665ac_cv_lib_ipc_shmat=no
29666fi
ac1cb8d3
VS
29667rm -f conftest.err conftest.$ac_objext \
29668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29669LIBS=$ac_check_lib_save_LIBS
29670fi
29671echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29672echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29673if test $ac_cv_lib_ipc_shmat = yes; then
29674 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29675fi
29676
29677 fi
29678 fi
29679
29680 # Check for libraries that X11R6 Xt/Xaw programs need.
29681 ac_save_LDFLAGS=$LDFLAGS
29682 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29683 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29684 # check for ICE first), but we must link in the order -lSM -lICE or
29685 # we get undefined symbols. So assume we have SM if we have ICE.
29686 # These have to be linked with before -lX11, unlike the other
29687 # libraries we check for below, so use a different variable.
29688 # John Interrante, Karl Berry
29689 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29690echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29691if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29692 echo $ECHO_N "(cached) $ECHO_C" >&6
29693else
29694 ac_check_lib_save_LIBS=$LIBS
29695LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29696cat >conftest.$ac_ext <<_ACEOF
29697/* confdefs.h. */
29698_ACEOF
29699cat confdefs.h >>conftest.$ac_ext
29700cat >>conftest.$ac_ext <<_ACEOF
29701/* end confdefs.h. */
29702
29703/* Override any gcc2 internal prototype to avoid an error. */
29704#ifdef __cplusplus
29705extern "C"
29706#endif
29707/* We use char because int might match the return type of a gcc2
29708 builtin and then its argument prototype would still apply. */
29709char IceConnectionNumber ();
29710int
29711main ()
29712{
29713IceConnectionNumber ();
29714 ;
29715 return 0;
29716}
29717_ACEOF
29718rm -f conftest.$ac_objext conftest$ac_exeext
29719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29720 (eval $ac_link) 2>conftest.er1
a848cd7e 29721 ac_status=$?
ac1cb8d3
VS
29722 grep -v '^ *+' conftest.er1 >conftest.err
29723 rm -f conftest.er1
29724 cat conftest.err >&5
a848cd7e
SC
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); } &&
6954625c 29727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29729 (eval $ac_try) 2>&5
29730 ac_status=$?
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); }; } &&
29733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29735 (eval $ac_try) 2>&5
29736 ac_status=$?
29737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738 (exit $ac_status); }; }; then
29739 ac_cv_lib_ICE_IceConnectionNumber=yes
29740else
29741 echo "$as_me: failed program was:" >&5
29742sed 's/^/| /' conftest.$ac_ext >&5
29743
29744ac_cv_lib_ICE_IceConnectionNumber=no
29745fi
ac1cb8d3
VS
29746rm -f conftest.err conftest.$ac_objext \
29747 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29748LIBS=$ac_check_lib_save_LIBS
29749fi
29750echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29751echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29752if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29753 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29754fi
29755
29756 LDFLAGS=$ac_save_LDFLAGS
29757
29758fi
29759
29760
29761 if test "$no_x" = "yes"; then
89d90d6d
VZ
29762 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29763echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29764 { (exit 1); exit 1; }; }
a848cd7e
SC
29765 fi
29766
74b84332
VS
29767 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29768 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
29769 AFMINSTALL=afminstall
29770 COMPILED_X_PROGRAM=0
29771
74b84332
VS
29772 fi
29773
29774 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
29775 if test "$wxUSE_NANOX" = "yes"; then
29776 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29777echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29778 if test "x$MICROWIN" = x ; then
29779 echo "$as_me:$LINENO: result: not found" >&5
29780echo "${ECHO_T}not found" >&6
29781 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29782echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29783 { (exit 1); exit 1; }; }
29784 else
29785 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29786echo "${ECHO_T}$MICROWIN" >&6
29787 cat >>confdefs.h <<\_ACEOF
29788#define wxUSE_NANOX 1
29789_ACEOF
29790
29791 fi
29792 fi
29793
29794 if test "$wxUSE_UNICODE" = "yes"; then
29795
29796 succeeded=no
29797
29798 if test -z "$PKG_CONFIG"; then
29799 # Extract the first word of "pkg-config", so it can be a program name with args.
29800set dummy pkg-config; ac_word=$2
29801echo "$as_me:$LINENO: checking for $ac_word" >&5
29802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29803if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29804 echo $ECHO_N "(cached) $ECHO_C" >&6
29805else
29806 case $PKG_CONFIG in
29807 [\\/]* | ?:[\\/]*)
29808 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29809 ;;
29810 *)
29811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29812for as_dir in $PATH
29813do
29814 IFS=$as_save_IFS
29815 test -z "$as_dir" && as_dir=.
29816 for ac_exec_ext in '' $ac_executable_extensions; do
29817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29818 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29820 break 2
29821 fi
29822done
29823done
29824
29825 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29826 ;;
29827esac
29828fi
29829PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29830
29831if test -n "$PKG_CONFIG"; then
29832 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29833echo "${ECHO_T}$PKG_CONFIG" >&6
29834else
29835 echo "$as_me:$LINENO: result: no" >&5
29836echo "${ECHO_T}no" >&6
29837fi
29838
29839 fi
29840
29841 if test "$PKG_CONFIG" = "no" ; then
29842 echo "*** The pkg-config script could not be found. Make sure it is"
29843 echo "*** in your path, or set the PKG_CONFIG environment variable"
29844 echo "*** to the full path to pkg-config."
29845 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29846 else
29847 PKG_CONFIG_MIN_VERSION=0.9.0
29848 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29849 echo "$as_me:$LINENO: checking for pangox" >&5
29850echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29851
29852 if $PKG_CONFIG --exists "pangox" ; then
29853 echo "$as_me:$LINENO: result: yes" >&5
29854echo "${ECHO_T}yes" >&6
29855 succeeded=yes
29856
29857 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29858echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29859 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29860 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29861echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29862
29863 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29864echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29865 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29866 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29867echo "${ECHO_T}$PANGOX_LIBS" >&6
29868 else
29869 PANGOX_CFLAGS=""
29870 PANGOX_LIBS=""
29871 ## If we have a custom action on failure, don't print errors, but
29872 ## do set a variable so people can do so.
29873 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29874
29875 fi
29876
29877
29878
29879 else
29880 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29881 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29882 fi
29883 fi
29884
29885 if test $succeeded = yes; then
29886
c92ad099 29887 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
29888 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29889
29890 else
29891
29892 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29893echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29894 { (exit 1); exit 1; }; }
29895
29896
29897 fi
29898
29899
29900 succeeded=no
29901
29902 if test -z "$PKG_CONFIG"; then
29903 # Extract the first word of "pkg-config", so it can be a program name with args.
29904set dummy pkg-config; ac_word=$2
29905echo "$as_me:$LINENO: checking for $ac_word" >&5
29906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29907if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29908 echo $ECHO_N "(cached) $ECHO_C" >&6
29909else
29910 case $PKG_CONFIG in
29911 [\\/]* | ?:[\\/]*)
29912 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29913 ;;
29914 *)
29915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29916for as_dir in $PATH
29917do
29918 IFS=$as_save_IFS
29919 test -z "$as_dir" && as_dir=.
29920 for ac_exec_ext in '' $ac_executable_extensions; do
29921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29922 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29924 break 2
29925 fi
29926done
29927done
29928
29929 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29930 ;;
29931esac
29932fi
29933PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29934
29935if test -n "$PKG_CONFIG"; then
29936 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29937echo "${ECHO_T}$PKG_CONFIG" >&6
29938else
29939 echo "$as_me:$LINENO: result: no" >&5
29940echo "${ECHO_T}no" >&6
29941fi
29942
29943 fi
29944
29945 if test "$PKG_CONFIG" = "no" ; then
29946 echo "*** The pkg-config script could not be found. Make sure it is"
29947 echo "*** in your path, or set the PKG_CONFIG environment variable"
29948 echo "*** to the full path to pkg-config."
29949 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29950 else
29951 PKG_CONFIG_MIN_VERSION=0.9.0
29952 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29953 echo "$as_me:$LINENO: checking for pangoft2" >&5
29954echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29955
29956 if $PKG_CONFIG --exists "pangoft2" ; then
29957 echo "$as_me:$LINENO: result: yes" >&5
29958echo "${ECHO_T}yes" >&6
29959 succeeded=yes
29960
29961 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29962echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29963 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29964 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29965echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29966
29967 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29968echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29969 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29970 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29971echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29972 else
29973 PANGOFT2_CFLAGS=""
29974 PANGOFT2_LIBS=""
29975 ## If we have a custom action on failure, don't print errors, but
29976 ## do set a variable so people can do so.
29977 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29978
29979 fi
29980
29981
29982
29983 else
29984 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29985 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29986 fi
29987 fi
29988
29989 if test $succeeded = yes; then
29990
c92ad099 29991 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
29992 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29993
29994 else
29995
29996 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29997echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29998 wxUSE_PRINTING_ARCHITECTURE="no"
29999
30000
30001 fi
30002
30003
30004 succeeded=no
30005
30006 if test -z "$PKG_CONFIG"; then
30007 # Extract the first word of "pkg-config", so it can be a program name with args.
30008set dummy pkg-config; ac_word=$2
30009echo "$as_me:$LINENO: checking for $ac_word" >&5
30010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30011if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30012 echo $ECHO_N "(cached) $ECHO_C" >&6
30013else
30014 case $PKG_CONFIG in
30015 [\\/]* | ?:[\\/]*)
30016 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30017 ;;
30018 *)
30019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30020for as_dir in $PATH
30021do
30022 IFS=$as_save_IFS
30023 test -z "$as_dir" && as_dir=.
30024 for ac_exec_ext in '' $ac_executable_extensions; do
30025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30026 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30028 break 2
30029 fi
30030done
30031done
30032
30033 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30034 ;;
30035esac
30036fi
30037PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30038
30039if test -n "$PKG_CONFIG"; then
30040 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30041echo "${ECHO_T}$PKG_CONFIG" >&6
30042else
30043 echo "$as_me:$LINENO: result: no" >&5
30044echo "${ECHO_T}no" >&6
30045fi
30046
30047 fi
30048
30049 if test "$PKG_CONFIG" = "no" ; then
30050 echo "*** The pkg-config script could not be found. Make sure it is"
30051 echo "*** in your path, or set the PKG_CONFIG environment variable"
30052 echo "*** to the full path to pkg-config."
30053 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30054 else
30055 PKG_CONFIG_MIN_VERSION=0.9.0
30056 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30057 echo "$as_me:$LINENO: checking for pangoxft" >&5
30058echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
30059
30060 if $PKG_CONFIG --exists "pangoxft" ; then
30061 echo "$as_me:$LINENO: result: yes" >&5
30062echo "${ECHO_T}yes" >&6
30063 succeeded=yes
30064
30065 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
30066echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
30067 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
30068 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
30069echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
30070
30071 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
30072echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
30073 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
30074 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
30075echo "${ECHO_T}$PANGOXFT_LIBS" >&6
30076 else
30077 PANGOXFT_CFLAGS=""
30078 PANGOXFT_LIBS=""
30079 ## If we have a custom action on failure, don't print errors, but
30080 ## do set a variable so people can do so.
30081 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
30082
30083 fi
30084
30085
30086
30087 else
30088 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30089 echo "*** See http://www.freedesktop.org/software/pkgconfig"
30090 fi
30091 fi
30092
30093 if test $succeeded = yes; then
30094
4ae1af05
MB
30095 cat >>confdefs.h <<\_ACEOF
30096#define HAVE_PANGO_XFT 1
30097_ACEOF
30098
c92ad099 30099 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
30100 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30101
30102 else
30103
30104 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30105echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30106
30107
30108 fi
30109
e56f4f9e 30110 save_CXXFLAGS="$CXXFLAGS"
304205f1 30111 save_LIBS="$LIBS"
e56f4f9e 30112 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
30113 LIBS="$LIBS $PANGOX_LIBS"
30114
30115for ac_func in pango_font_family_is_monospace
30116do
30117as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30118echo "$as_me:$LINENO: checking for $ac_func" >&5
30119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30120if eval "test \"\${$as_ac_var+set}\" = set"; then
30121 echo $ECHO_N "(cached) $ECHO_C" >&6
30122else
30123 cat >conftest.$ac_ext <<_ACEOF
30124/* confdefs.h. */
30125_ACEOF
30126cat confdefs.h >>conftest.$ac_ext
30127cat >>conftest.$ac_ext <<_ACEOF
30128/* end confdefs.h. */
30129/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30131#define $ac_func innocuous_$ac_func
30132
30133/* System header to define __stub macros and hopefully few prototypes,
30134 which can conflict with char $ac_func (); below.
30135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30136 <limits.h> exists even on freestanding compilers. */
30137
30138#ifdef __STDC__
30139# include <limits.h>
30140#else
30141# include <assert.h>
30142#endif
30143
30144#undef $ac_func
30145
30146/* Override any gcc2 internal prototype to avoid an error. */
30147#ifdef __cplusplus
30148extern "C"
30149{
30150#endif
30151/* We use char because int might match the return type of a gcc2
30152 builtin and then its argument prototype would still apply. */
30153char $ac_func ();
30154/* The GNU C library defines this for functions which it implements
30155 to always fail with ENOSYS. Some functions are actually named
30156 something starting with __ and the normal name is an alias. */
30157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30158choke me
30159#else
30160char (*f) () = $ac_func;
30161#endif
30162#ifdef __cplusplus
30163}
30164#endif
30165
30166int
30167main ()
30168{
30169return f != $ac_func;
30170 ;
30171 return 0;
30172}
30173_ACEOF
30174rm -f conftest.$ac_objext conftest$ac_exeext
30175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30176 (eval $ac_link) 2>conftest.er1
30177 ac_status=$?
30178 grep -v '^ *+' conftest.er1 >conftest.err
30179 rm -f conftest.er1
30180 cat conftest.err >&5
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); } &&
6954625c 30183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
30184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30185 (eval $ac_try) 2>&5
30186 ac_status=$?
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); }; } &&
30189 { ac_try='test -s conftest$ac_exeext'
30190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30191 (eval $ac_try) 2>&5
30192 ac_status=$?
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; }; then
30195 eval "$as_ac_var=yes"
30196else
30197 echo "$as_me: failed program was:" >&5
30198sed 's/^/| /' conftest.$ac_ext >&5
30199
30200eval "$as_ac_var=no"
30201fi
30202rm -f conftest.err conftest.$ac_objext \
30203 conftest$ac_exeext conftest.$ac_ext
30204fi
30205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30206echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30207if test `eval echo '${'$as_ac_var'}'` = yes; then
30208 cat >>confdefs.h <<_ACEOF
30209#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30210_ACEOF
30211
30212fi
30213done
30214
e56f4f9e 30215 CXXFLAGS="$save_CXXFLAGS"
304205f1 30216 LIBS="$save_LIBS"
a848cd7e
SC
30217 fi
30218
30219 wxUSE_UNIVERSAL="yes"
30220
30221 if test "$wxUSE_NANOX" = "yes"; then
30222 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30223 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"
30224 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30225 else
30226 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30227 fi
30228
a848cd7e
SC
30229 TOOLKIT=X11
30230 GUIDIST=X11_DIST
30231 fi
30232
30233 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
30234 if test "$wxUSE_UNICODE" = "yes"; then
30235 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30236echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30237 { (exit 1); exit 1; }; }
30238 fi
30239
74b84332
VS
30240 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30241echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 30242
74b84332
VS
30243ac_find_includes=
30244for ac_dir in $SEARCH_INCLUDE /usr/include;
30245 do
30246 if test -f "$ac_dir/Xm/Xm.h"; then
30247 ac_find_includes=$ac_dir
30248 break
30249 fi
30250 done
a848cd7e 30251
74b84332
VS
30252 if test "$ac_find_includes" != "" ; then
30253 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30254echo "${ECHO_T}found in $ac_find_includes" >&6
30255
30256 if test "x$ac_find_includes" = "x/usr/include"; then
30257 ac_path_to_include=""
30258 else
30259 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30260 result=$?
30261 if test $result = 0; then
30262 ac_path_to_include=""
30263 else
30264 ac_path_to_include=" -I$ac_find_includes"
30265 fi
a848cd7e
SC
30266 fi
30267
74b84332
VS
30268 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30269 else
e56f4f9e
VZ
30270 save_CXXFLAGS=$CXXFLAGS
30271 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 30272
74b84332 30273 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30274/* confdefs.h. */
30275_ACEOF
30276cat confdefs.h >>conftest.$ac_ext
30277cat >>conftest.$ac_ext <<_ACEOF
30278/* end confdefs.h. */
30279
74b84332
VS
30280 #include <Xm/Xm.h>
30281
a848cd7e
SC
30282int
30283main ()
30284{
30285
74b84332
VS
30286 int version;
30287 version = xmUseVersion;
30288
a848cd7e
SC
30289 ;
30290 return 0;
30291}
30292_ACEOF
74b84332
VS
30293rm -f conftest.$ac_objext
30294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30295 (eval $ac_compile) 2>conftest.er1
a848cd7e 30296 ac_status=$?
ac1cb8d3
VS
30297 grep -v '^ *+' conftest.er1 >conftest.err
30298 rm -f conftest.er1
30299 cat conftest.err >&5
a848cd7e
SC
30300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301 (exit $ac_status); } &&
6954625c 30302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30304 (eval $ac_try) 2>&5
30305 ac_status=$?
30306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307 (exit $ac_status); }; } &&
74b84332 30308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30310 (eval $ac_try) 2>&5
30311 ac_status=$?
30312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313 (exit $ac_status); }; }; then
74b84332
VS
30314
30315 echo "$as_me:$LINENO: result: found in default search path" >&5
30316echo "${ECHO_T}found in default search path" >&6
30317 COMPILED_X_PROGRAM=1
30318
a848cd7e
SC
30319else
30320 echo "$as_me: failed program was:" >&5
30321sed 's/^/| /' conftest.$ac_ext >&5
30322
a848cd7e 30323
74b84332
VS
30324 echo "$as_me:$LINENO: result: no" >&5
30325echo "${ECHO_T}no" >&6
e051b34e
MW
30326 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30327echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 30328 { (exit 1); exit 1; }; }
a848cd7e 30329
a848cd7e 30330
a848cd7e 30331fi
74b84332 30332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 30333
e56f4f9e 30334 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
30335 fi
30336
0ad5d837
VZ
30337
30338 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
30339echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30340
0ad5d837
VZ
30341 ac_find_libraries=
30342 for ac_dir in $SEARCH_LIB;
74b84332 30343 do
3eca31dc 30344 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
30345 if test -f "$ac_dir/libXm.$ac_extension"; then
30346 ac_find_libraries=$ac_dir
30347 break 2
a848cd7e 30348 fi
74b84332
VS
30349 done
30350 done
a848cd7e 30351
0ad5d837
VZ
30352
30353 if test "x$ac_find_libraries" != "x" ; then
30354 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30355echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 30356
74b84332 30357
0ad5d837 30358 if test "$ac_find_libraries" = "default location"; then
74b84332 30359 ac_path_to_link=""
a848cd7e 30360 else
0ad5d837
VZ
30361 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30362 result=$?
30363 if test $result = 0; then
30364 ac_path_to_link=""
30365 else
30366 ac_path_to_link=" -L$ac_find_libraries"
30367 fi
74b84332
VS
30368 fi
30369
0ad5d837
VZ
30370 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30371 else
e56f4f9e
VZ
30372 save_CXXFLAGS=$CXXFLAGS
30373 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
30374 save_LIBS="$LIBS"
30375 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 30376
0ad5d837 30377 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30378/* confdefs.h. */
30379_ACEOF
30380cat confdefs.h >>conftest.$ac_ext
30381cat >>conftest.$ac_ext <<_ACEOF
30382/* end confdefs.h. */
30383
0ad5d837 30384 #include <Xm/Xm.h>
74b84332 30385
a848cd7e
SC
30386int
30387main ()
30388{
74b84332 30389
0ad5d837
VZ
30390 int version;
30391 version = xmUseVersion;
74b84332 30392
a848cd7e
SC
30393 ;
30394 return 0;
30395}
30396_ACEOF
0ad5d837
VZ
30397rm -f conftest.$ac_objext conftest$ac_exeext
30398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30399 (eval $ac_link) 2>conftest.er1
a848cd7e 30400 ac_status=$?
ac1cb8d3
VS
30401 grep -v '^ *+' conftest.er1 >conftest.err
30402 rm -f conftest.er1
30403 cat conftest.err >&5
a848cd7e
SC
30404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405 (exit $ac_status); } &&
6954625c 30406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30408 (eval $ac_try) 2>&5
30409 ac_status=$?
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); }; } &&
0ad5d837 30412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30414 (eval $ac_try) 2>&5
30415 ac_status=$?
30416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417 (exit $ac_status); }; }; then
74b84332 30418
0ad5d837 30419 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30420echo "${ECHO_T}found in default search path" >&6
0ad5d837 30421 COMPILED_X_PROGRAM=1
74b84332 30422
a848cd7e
SC
30423else
30424 echo "$as_me: failed program was:" >&5
30425sed 's/^/| /' conftest.$ac_ext >&5
30426
74b84332 30427
6f9cf1e6 30428 echo "$as_me:$LINENO: result: no" >&5
74b84332 30429echo "${ECHO_T}no" >&6
6f9cf1e6 30430 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30431echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30432 { (exit 1); exit 1; }; }
30433
30434
30435fi
0ad5d837
VZ
30436rm -f conftest.err conftest.$ac_objext \
30437 conftest$ac_exeext conftest.$ac_ext
74b84332 30438
e56f4f9e 30439 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30440 LIBS="$save_LIBS"
74b84332
VS
30441 fi
30442
30443 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30444echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30445 libp_link=""
30446 libsm_ice_link=""
30447 libs_found=0
30448 for libp in "" " -lXp"; do
30449 if test "$libs_found" = "0"; then
30450 for libsm_ice in "" " -lSM -lICE"; do
30451 if test "$libs_found" = "0"; then
30452 save_LIBS="$LIBS"
30453 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30454 save_CXXFLAGS=$CXXFLAGS
30455 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30456
30457 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30458/* confdefs.h. */
30459_ACEOF
30460cat confdefs.h >>conftest.$ac_ext
30461cat >>conftest.$ac_ext <<_ACEOF
30462/* end confdefs.h. */
30463
74b84332
VS
30464 #include <Xm/Xm.h>
30465 #include <Xm/List.h>
30466
a848cd7e
SC
30467int
30468main ()
30469{
74b84332
VS
30470
30471 XmString string = NULL;
30472 Widget w = NULL;
30473 int position = 0;
30474 XmListAddItem(w, string, position);
30475
a848cd7e
SC
30476 ;
30477 return 0;
30478}
30479_ACEOF
30480rm -f conftest.$ac_objext conftest$ac_exeext
30481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30482 (eval $ac_link) 2>conftest.er1
a848cd7e 30483 ac_status=$?
ac1cb8d3
VS
30484 grep -v '^ *+' conftest.er1 >conftest.err
30485 rm -f conftest.er1
30486 cat conftest.err >&5
a848cd7e
SC
30487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488 (exit $ac_status); } &&
6954625c 30489 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30491 (eval $ac_try) 2>&5
30492 ac_status=$?
30493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494 (exit $ac_status); }; } &&
30495 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30497 (eval $ac_try) 2>&5
30498 ac_status=$?
30499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500 (exit $ac_status); }; }; then
30501
30502 libp_link="$libp"
30503 libsm_ice_link="$libsm_ice"
30504 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30505echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30506 libs_found=1
30507
30508else
30509 echo "$as_me: failed program was:" >&5
30510sed 's/^/| /' conftest.$ac_ext >&5
30511
30512
30513
30514fi
ac1cb8d3
VS
30515rm -f conftest.err conftest.$ac_objext \
30516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30517
30518 LIBS="$save_LIBS"
e56f4f9e 30519 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30520 fi
30521 done
30522 fi
30523 done
30524
30525 if test "$libs_found" = "0"; then
30526 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30527echo "${ECHO_T}can't find the right libraries" >&6
30528 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30529echo "$as_me: error: can't link a simple motif program" >&2;}
30530 { (exit 1); exit 1; }; }
30531 fi
30532
62fa8b3a
MW
30533 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30534echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30535if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30536 echo $ECHO_N "(cached) $ECHO_C" >&6
30537else
30538 ac_check_lib_save_LIBS=$LIBS
30539LIBS="-lSgm $LIBS"
30540cat >conftest.$ac_ext <<_ACEOF
30541/* confdefs.h. */
30542_ACEOF
30543cat confdefs.h >>conftest.$ac_ext
30544cat >>conftest.$ac_ext <<_ACEOF
30545/* end confdefs.h. */
30546
30547/* Override any gcc2 internal prototype to avoid an error. */
30548#ifdef __cplusplus
30549extern "C"
30550#endif
30551/* We use char because int might match the return type of a gcc2
30552 builtin and then its argument prototype would still apply. */
30553char SgCreateList ();
30554int
30555main ()
30556{
30557SgCreateList ();
30558 ;
30559 return 0;
30560}
30561_ACEOF
30562rm -f conftest.$ac_objext conftest$ac_exeext
30563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30564 (eval $ac_link) 2>conftest.er1
30565 ac_status=$?
30566 grep -v '^ *+' conftest.er1 >conftest.err
30567 rm -f conftest.er1
30568 cat conftest.err >&5
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); } &&
6954625c 30571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
30572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30573 (eval $ac_try) 2>&5
30574 ac_status=$?
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); }; } &&
30577 { ac_try='test -s conftest$ac_exeext'
30578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30579 (eval $ac_try) 2>&5
30580 ac_status=$?
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); }; }; then
30583 ac_cv_lib_Sgm_SgCreateList=yes
30584else
30585 echo "$as_me: failed program was:" >&5
30586sed 's/^/| /' conftest.$ac_ext >&5
30587
30588ac_cv_lib_Sgm_SgCreateList=no
30589fi
30590rm -f conftest.err conftest.$ac_objext \
30591 conftest$ac_exeext conftest.$ac_ext
30592LIBS=$ac_check_lib_save_LIBS
30593fi
30594echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30595echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30596if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30597 libsgm_link=" -lSgm"
30598fi
30599
30600
e56f4f9e
VZ
30601 save_CXXFLAGS=$CXXFLAGS
30602 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30603
a848cd7e
SC
30604 echo "$as_me:$LINENO: checking for Motif 2" >&5
30605echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30606if test "${wx_cv_lib_motif2+set}" = set; then
30607 echo $ECHO_N "(cached) $ECHO_C" >&6
30608else
30609 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30610/* confdefs.h. */
30611_ACEOF
30612cat confdefs.h >>conftest.$ac_ext
30613cat >>conftest.$ac_ext <<_ACEOF
30614/* end confdefs.h. */
30615
0ad5d837 30616 #include <Xm/Xm.h>
a848cd7e
SC
30617
30618int
30619main ()
30620{
30621
0ad5d837
VZ
30622 #if XmVersion < 2000
30623 Not Motif 2
30624 #endif
a848cd7e
SC
30625
30626 ;
30627 return 0;
30628}
30629_ACEOF
30630rm -f conftest.$ac_objext
30631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30632 (eval $ac_compile) 2>conftest.er1
a848cd7e 30633 ac_status=$?
ac1cb8d3
VS
30634 grep -v '^ *+' conftest.er1 >conftest.err
30635 rm -f conftest.er1
30636 cat conftest.err >&5
a848cd7e
SC
30637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638 (exit $ac_status); } &&
6954625c 30639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30641 (eval $ac_try) 2>&5
30642 ac_status=$?
30643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644 (exit $ac_status); }; } &&
30645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30647 (eval $ac_try) 2>&5
30648 ac_status=$?
30649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650 (exit $ac_status); }; }; then
0ad5d837 30651 wx_cv_lib_motif2="yes"
a848cd7e
SC
30652else
30653 echo "$as_me: failed program was:" >&5
30654sed 's/^/| /' conftest.$ac_ext >&5
30655
0ad5d837
VZ
30656wx_cv_lib_motif2="no"
30657fi
30658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30659fi
30660echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30661echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30662 if test "$wx_cv_lib_motif2" = "yes"; then
30663 cat >>confdefs.h <<\_ACEOF
30664#define __WXMOTIF20__ 1
30665_ACEOF
a848cd7e 30666
0ad5d837
VZ
30667 else
30668 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30669#define __WXMOTIF20__ 0
30670_ACEOF
30671
0ad5d837 30672 fi
2113bc77
MW
30673
30674 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30675echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30676if test "${wx_cv_lib_lesstif+set}" = set; then
30677 echo $ECHO_N "(cached) $ECHO_C" >&6
30678else
30679 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30680/* confdefs.h. */
30681_ACEOF
30682cat confdefs.h >>conftest.$ac_ext
30683cat >>conftest.$ac_ext <<_ACEOF
30684/* end confdefs.h. */
30685
0ad5d837 30686 #include <Xm/Xm.h>
2113bc77
MW
30687
30688int
30689main ()
30690{
30691
0ad5d837
VZ
30692 #if !defined(LesstifVersion) || LesstifVersion <= 0
30693 Not Lesstif
30694 #endif
2113bc77
MW
30695
30696 ;
30697 return 0;
30698}
30699_ACEOF
30700rm -f conftest.$ac_objext
30701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30702 (eval $ac_compile) 2>conftest.er1
30703 ac_status=$?
30704 grep -v '^ *+' conftest.er1 >conftest.err
30705 rm -f conftest.er1
30706 cat conftest.err >&5
30707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30708 (exit $ac_status); } &&
6954625c 30709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
30710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30711 (eval $ac_try) 2>&5
30712 ac_status=$?
30713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714 (exit $ac_status); }; } &&
30715 { ac_try='test -s conftest.$ac_objext'
30716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30717 (eval $ac_try) 2>&5
30718 ac_status=$?
30719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720 (exit $ac_status); }; }; then
0ad5d837 30721 wx_cv_lib_lesstif="yes"
2113bc77
MW
30722else
30723 echo "$as_me: failed program was:" >&5
30724sed 's/^/| /' conftest.$ac_ext >&5
30725
0ad5d837
VZ
30726wx_cv_lib_lesstif="no"
30727fi
30728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30729
0ad5d837
VZ
30730fi
30731echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30732echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30733 if test "$wx_cv_lib_lesstif" = "yes"; then
30734 cat >>confdefs.h <<\_ACEOF
30735#define __WXLESSTIF__ 1
30736_ACEOF
30737
30738 else
30739 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30740#define __WXLESSTIF__ 0
30741_ACEOF
30742
0ad5d837 30743 fi
2113bc77 30744
e56f4f9e 30745 CXXFLAGS=$save_CXXFLAGS
a848cd7e 30746
62fa8b3a 30747 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30748 TOOLKIT=MOTIF
30749 GUIDIST=MOTIF_DIST
30750 fi
30751
74b84332 30752 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30753 if test "$wxUSE_LIBXPM" = "sys"; then
30754 echo "$as_me:$LINENO: checking for Xpm library" >&5
30755echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30756
0ad5d837
VZ
30757 ac_find_libraries=
30758 for ac_dir in $SEARCH_LIB;
a848cd7e 30759 do
3eca31dc 30760 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30761 if test -f "$ac_dir/libXpm.$ac_extension"; then
30762 ac_find_libraries=$ac_dir
30763 break 2
30764 fi
30765 done
30766 done
30767
30768 if test "$ac_find_libraries" != "" ; then
30769
0ad5d837 30770 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30771 ac_path_to_link=""
30772 else
0ad5d837
VZ
30773 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30774 result=$?
30775 if test $result = 0; then
30776 ac_path_to_link=""
30777 else
30778 ac_path_to_link=" -L$ac_find_libraries"
30779 fi
a848cd7e
SC
30780 fi
30781
30782 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
30783 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30784echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
30785
30786 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30787echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30788if test "${wx_cv_x11_xpm_h+set}" = set; then
30789 echo $ECHO_N "(cached) $ECHO_C" >&6
30790else
30791
e56f4f9e
VZ
30792 save_CXXFLAGS=$CXXFLAGS
30793 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30794
30795 cat >conftest.$ac_ext <<_ACEOF
30796/* confdefs.h. */
30797_ACEOF
30798cat confdefs.h >>conftest.$ac_ext
30799cat >>conftest.$ac_ext <<_ACEOF
30800/* end confdefs.h. */
30801
30802 #include <X11/xpm.h>
30803
30804int
30805main ()
30806{
30807
30808 int version;
30809 version = XpmLibraryVersion();
30810
30811 ;
30812 return 0;
30813}
30814_ACEOF
30815rm -f conftest.$ac_objext
30816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30817 (eval $ac_compile) 2>conftest.er1
a848cd7e 30818 ac_status=$?
ac1cb8d3
VS
30819 grep -v '^ *+' conftest.er1 >conftest.err
30820 rm -f conftest.er1
30821 cat conftest.err >&5
a848cd7e
SC
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); } &&
6954625c 30824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30826 (eval $ac_try) 2>&5
30827 ac_status=$?
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); }; } &&
30830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30832 (eval $ac_try) 2>&5
30833 ac_status=$?
30834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835 (exit $ac_status); }; }; then
30836 wx_cv_x11_xpm_h=yes
30837else
30838 echo "$as_me: failed program was:" >&5
30839sed 's/^/| /' conftest.$ac_ext >&5
30840
30841wx_cv_x11_xpm_h=no
30842
30843fi
ac1cb8d3 30844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 30845
e56f4f9e 30846 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30847
30848
30849fi
30850echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30851echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30852
30853 if test $wx_cv_x11_xpm_h = "yes"; then
30854 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30855 cat >>confdefs.h <<\_ACEOF
30856#define wxHAVE_LIB_XPM 1
30857_ACEOF
30858
30859 else
30860 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30861echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30862 fi
30863 fi
30864
30865 fi
30866
30867 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30868echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30869if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30870 echo $ECHO_N "(cached) $ECHO_C" >&6
30871else
30872 ac_check_lib_save_LIBS=$LIBS
30873LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30874cat >conftest.$ac_ext <<_ACEOF
30875/* confdefs.h. */
30876_ACEOF
30877cat confdefs.h >>conftest.$ac_ext
30878cat >>conftest.$ac_ext <<_ACEOF
30879/* end confdefs.h. */
30880
30881/* Override any gcc2 internal prototype to avoid an error. */
30882#ifdef __cplusplus
30883extern "C"
30884#endif
30885/* We use char because int might match the return type of a gcc2
30886 builtin and then its argument prototype would still apply. */
30887char XShapeQueryExtension ();
30888int
30889main ()
30890{
30891XShapeQueryExtension ();
30892 ;
30893 return 0;
30894}
30895_ACEOF
30896rm -f conftest.$ac_objext conftest$ac_exeext
30897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30898 (eval $ac_link) 2>conftest.er1
a848cd7e 30899 ac_status=$?
ac1cb8d3
VS
30900 grep -v '^ *+' conftest.er1 >conftest.err
30901 rm -f conftest.er1
30902 cat conftest.err >&5
a848cd7e
SC
30903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30904 (exit $ac_status); } &&
6954625c 30905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30907 (eval $ac_try) 2>&5
30908 ac_status=$?
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); }; } &&
30911 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30913 (eval $ac_try) 2>&5
30914 ac_status=$?
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); }; }; then
30917 ac_cv_lib_Xext_XShapeQueryExtension=yes
30918else
30919 echo "$as_me: failed program was:" >&5
30920sed 's/^/| /' conftest.$ac_ext >&5
30921
30922ac_cv_lib_Xext_XShapeQueryExtension=no
30923fi
ac1cb8d3
VS
30924rm -f conftest.err conftest.$ac_objext \
30925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30926LIBS=$ac_check_lib_save_LIBS
30927fi
30928echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30929echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30930if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30931
30932 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30933 wxHAVE_XEXT_LIB=1
30934
30935fi
30936
30937
30938 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
30939 save_CXXFLAGS="$CXXFLAGS"
30940 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30941
30942 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30943echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30944 cat >conftest.$ac_ext <<_ACEOF
30945/* confdefs.h. */
30946_ACEOF
30947cat confdefs.h >>conftest.$ac_ext
30948cat >>conftest.$ac_ext <<_ACEOF
30949/* end confdefs.h. */
30950
30951 #include <X11/Xlib.h>
30952 #include <X11/extensions/shape.h>
30953
30954int
30955main ()
30956{
30957
30958 int dummy1, dummy2;
30959 XShapeQueryExtension((Display*)NULL,
30960 (int*)NULL, (int*)NULL);
30961
30962 ;
30963 return 0;
30964}
30965_ACEOF
30966rm -f conftest.$ac_objext
30967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30968 (eval $ac_compile) 2>conftest.er1
a848cd7e 30969 ac_status=$?
ac1cb8d3
VS
30970 grep -v '^ *+' conftest.er1 >conftest.err
30971 rm -f conftest.er1
30972 cat conftest.err >&5
a848cd7e
SC
30973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974 (exit $ac_status); } &&
6954625c 30975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30977 (eval $ac_try) 2>&5
30978 ac_status=$?
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); }; } &&
30981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30983 (eval $ac_try) 2>&5
30984 ac_status=$?
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; }; then
30987
30988 cat >>confdefs.h <<\_ACEOF
30989#define HAVE_XSHAPE 1
30990_ACEOF
30991
30992 echo "$as_me:$LINENO: result: found" >&5
30993echo "${ECHO_T}found" >&6
30994
30995else
30996 echo "$as_me: failed program was:" >&5
30997sed 's/^/| /' conftest.$ac_ext >&5
30998
30999
31000 echo "$as_me:$LINENO: result: not found" >&5
31001echo "${ECHO_T}not found" >&6
31002
31003fi
ac1cb8d3 31004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31005 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31006
31007 fi
31008 fi
31009
31010 if test "$wxUSE_MAC" = 1; then
31011 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31012echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31013 if test "$GCC" = yes; then
31014 echo "$as_me:$LINENO: result: gcc" >&5
31015echo "${ECHO_T}gcc" >&6
31016 CPPFLAGS_PASCAL="-fpascal-strings"
31017 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31018 echo "$as_me:$LINENO: result: xlc" >&5
31019echo "${ECHO_T}xlc" >&6
31020 CPPFLAGS_PASCAL="-qmacpstr"
31021 else
31022 echo "$as_me:$LINENO: result: none" >&5
31023echo "${ECHO_T}none" >&6
31024 fi
31025
1e9e8aba 31026 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31027 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31028 else
c92ad099 31029 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31030 fi
a848cd7e 31031
a848cd7e
SC
31032 TOOLKIT=MAC
31033 GUIDIST=MACX_DIST
dd21ced8 31034 WXBASEPORT="_carbon"
a848cd7e
SC
31035 fi
31036
31037 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31038 TOOLKIT=COCOA
31039 GUIDIST=COCOA_DIST
31040 fi
31041
31042 if test "$wxUSE_PM" = 1; then
31043 TOOLKIT=PM
de59c161
RD
31044 GUIDIST=PM_DIST
31045 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31046echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31047if test "${wx_cv_spbcdata+set}" = set; then
31048 echo $ECHO_N "(cached) $ECHO_C" >&6
31049else
31050
31051 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31052/* confdefs.h. */
31053_ACEOF
31054cat confdefs.h >>conftest.$ac_ext
31055cat >>conftest.$ac_ext <<_ACEOF
31056/* end confdefs.h. */
31057
31058 #define INCL_PM
31059 #include <os2.h>
31060
31061int
31062main ()
31063{
31064
31065 SPBCDATA test;
31066
31067 ;
31068 return 0;
31069}
31070_ACEOF
31071rm -f conftest.$ac_objext
31072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31073 (eval $ac_compile) 2>conftest.er1
de59c161 31074 ac_status=$?
ac1cb8d3
VS
31075 grep -v '^ *+' conftest.er1 >conftest.err
31076 rm -f conftest.er1
31077 cat conftest.err >&5
de59c161
RD
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); } &&
6954625c 31080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31082 (eval $ac_try) 2>&5
31083 ac_status=$?
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); }; } &&
31086 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31088 (eval $ac_try) 2>&5
31089 ac_status=$?
31090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091 (exit $ac_status); }; }; then
31092 wx_cv_spbcdata=yes
31093else
31094 echo "$as_me: failed program was:" >&5
31095sed 's/^/| /' conftest.$ac_ext >&5
31096
31097wx_cv_spbcdata=no
31098
31099fi
ac1cb8d3 31100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31101
31102
31103fi
31104echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31105echo "${ECHO_T}$wx_cv_spbcdata" >&6
31106
31107 if test $wx_cv_spbcdata = "yes"; then
31108 cat >>confdefs.h <<\_ACEOF
31109#define HAVE_SPBCDATA 1
31110_ACEOF
31111
31112 fi
a848cd7e
SC
31113 fi
31114
31115 if test "$TOOLKIT" = "PM" ; then
31116 TOOLKIT_DIR="os2"
31117 else
31118 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31119 fi
31120
a848cd7e 31121 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31122 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31123 WIDGET_SET=univ
a848cd7e
SC
31124 fi
31125
31126 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31127 DISTDIR="wx\$(TOOLKIT)"
31128else
31129 USE_GUI=0
31130
31131 TOOLKIT_DIR="base"
31132
31133 if test "$USE_WIN32" = 1 ; then
a848cd7e 31134 TOOLKIT="MSW"
a848cd7e
SC
31135 fi
31136
a848cd7e
SC
31137 GUIDIST="BASE_DIST"
31138 DISTDIR="wxBase"
31139fi
31140
31141
d12aef51
VZ
31142if test "$wxUSE_GUI" = "yes"; then
31143 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31144
31145for ac_header in X11/Xlib.h
31146do
31147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31148if eval "test \"\${$as_ac_Header+set}\" = set"; then
31149 echo "$as_me:$LINENO: checking for $ac_header" >&5
31150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31151if eval "test \"\${$as_ac_Header+set}\" = set"; then
31152 echo $ECHO_N "(cached) $ECHO_C" >&6
31153fi
31154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31155echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31156else
31157 # Is the header compilable?
31158echo "$as_me:$LINENO: checking $ac_header usability" >&5
31159echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31160cat >conftest.$ac_ext <<_ACEOF
31161/* confdefs.h. */
31162_ACEOF
31163cat confdefs.h >>conftest.$ac_ext
31164cat >>conftest.$ac_ext <<_ACEOF
31165/* end confdefs.h. */
31166$ac_includes_default
31167#include <$ac_header>
31168_ACEOF
31169rm -f conftest.$ac_objext
31170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31171 (eval $ac_compile) 2>conftest.er1
31172 ac_status=$?
31173 grep -v '^ *+' conftest.er1 >conftest.err
31174 rm -f conftest.er1
31175 cat conftest.err >&5
31176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177 (exit $ac_status); } &&
6954625c 31178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31180 (eval $ac_try) 2>&5
31181 ac_status=$?
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); }; } &&
31184 { ac_try='test -s conftest.$ac_objext'
31185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31186 (eval $ac_try) 2>&5
31187 ac_status=$?
31188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189 (exit $ac_status); }; }; then
31190 ac_header_compiler=yes
31191else
31192 echo "$as_me: failed program was:" >&5
31193sed 's/^/| /' conftest.$ac_ext >&5
31194
31195ac_header_compiler=no
31196fi
31197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31198echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31199echo "${ECHO_T}$ac_header_compiler" >&6
31200
31201# Is the header present?
31202echo "$as_me:$LINENO: checking $ac_header presence" >&5
31203echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31204cat >conftest.$ac_ext <<_ACEOF
31205/* confdefs.h. */
31206_ACEOF
31207cat confdefs.h >>conftest.$ac_ext
31208cat >>conftest.$ac_ext <<_ACEOF
31209/* end confdefs.h. */
31210#include <$ac_header>
31211_ACEOF
31212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31214 ac_status=$?
31215 grep -v '^ *+' conftest.er1 >conftest.err
31216 rm -f conftest.er1
31217 cat conftest.err >&5
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); } >/dev/null; then
31220 if test -s conftest.err; then
5d7b7554
VZ
31221 ac_cpp_err=$ac_cxx_preproc_warn_flag
31222 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
31223 else
31224 ac_cpp_err=
31225 fi
31226else
31227 ac_cpp_err=yes
31228fi
31229if test -z "$ac_cpp_err"; then
31230 ac_header_preproc=yes
31231else
31232 echo "$as_me: failed program was:" >&5
31233sed 's/^/| /' conftest.$ac_ext >&5
31234
31235 ac_header_preproc=no
31236fi
31237rm -f conftest.err conftest.$ac_ext
31238echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31239echo "${ECHO_T}$ac_header_preproc" >&6
31240
31241# So? What about this header?
5d7b7554 31242case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
31243 yes:no: )
31244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31248 ac_header_preproc=yes
31249 ;;
31250 no:yes:* )
31251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31258echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31263 (
31264 cat <<\_ASBOX
31265## ----------------------------------------- ##
31266## Report this to wx-dev@lists.wxwidgets.org ##
31267## ----------------------------------------- ##
31268_ASBOX
31269 ) |
31270 sed "s/^/$as_me: WARNING: /" >&2
31271 ;;
31272esac
31273echo "$as_me:$LINENO: checking for $ac_header" >&5
31274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31275if eval "test \"\${$as_ac_Header+set}\" = set"; then
31276 echo $ECHO_N "(cached) $ECHO_C" >&6
31277else
31278 eval "$as_ac_Header=\$ac_header_preproc"
31279fi
31280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31281echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31282
31283fi
31284if test `eval echo '${'$as_ac_Header'}'` = yes; then
31285 cat >>confdefs.h <<_ACEOF
31286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31287_ACEOF
31288
31289fi
31290
31291done
31292
31293
31294for ac_header in X11/XKBlib.h
31295do
31296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31297echo "$as_me:$LINENO: checking for $ac_header" >&5
31298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31299if eval "test \"\${$as_ac_Header+set}\" = set"; then
31300 echo $ECHO_N "(cached) $ECHO_C" >&6
31301else
31302 cat >conftest.$ac_ext <<_ACEOF
31303/* confdefs.h. */
31304_ACEOF
31305cat confdefs.h >>conftest.$ac_ext
31306cat >>conftest.$ac_ext <<_ACEOF
31307/* end confdefs.h. */
31308
31309 #if HAVE_X11_XLIB_H
31310 #include <X11/Xlib.h>
31311 #endif
31312
31313
31314#include <$ac_header>
31315_ACEOF
31316rm -f conftest.$ac_objext
31317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31318 (eval $ac_compile) 2>conftest.er1
31319 ac_status=$?
31320 grep -v '^ *+' conftest.er1 >conftest.err
31321 rm -f conftest.er1
31322 cat conftest.err >&5
31323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324 (exit $ac_status); } &&
6954625c 31325 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
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'
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 eval "$as_ac_Header=yes"
31338else
31339 echo "$as_me: failed program was:" >&5
31340sed 's/^/| /' conftest.$ac_ext >&5
31341
31342eval "$as_ac_Header=no"
31343fi
31344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31345fi
31346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31348if test `eval echo '${'$as_ac_Header'}'` = yes; then
31349 cat >>confdefs.h <<_ACEOF
31350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31351_ACEOF
31352
31353fi
31354
31355done
31356
31357 fi
31358fi
31359
a848cd7e
SC
31360
31361
31362IODBC_C_SRC=""
31363
31364
31365if test "$TOOLKIT" != "MSW" ; then
31366
31367 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31368
31369 if test "${ac_cv_header_sql_h+set}" = set; then
31370 echo "$as_me:$LINENO: checking for sql.h" >&5
31371echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31372if test "${ac_cv_header_sql_h+set}" = set; then
31373 echo $ECHO_N "(cached) $ECHO_C" >&6
31374fi
31375echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31376echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31377else
31378 # Is the header compilable?
31379echo "$as_me:$LINENO: checking sql.h usability" >&5
31380echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31381cat >conftest.$ac_ext <<_ACEOF
31382/* confdefs.h. */
31383_ACEOF
31384cat confdefs.h >>conftest.$ac_ext
31385cat >>conftest.$ac_ext <<_ACEOF
31386/* end confdefs.h. */
31387$ac_includes_default
31388#include <sql.h>
31389_ACEOF
31390rm -f conftest.$ac_objext
31391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31392 (eval $ac_compile) 2>conftest.er1
a848cd7e 31393 ac_status=$?
ac1cb8d3
VS
31394 grep -v '^ *+' conftest.er1 >conftest.err
31395 rm -f conftest.er1
31396 cat conftest.err >&5
a848cd7e
SC
31397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398 (exit $ac_status); } &&
6954625c 31399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31401 (eval $ac_try) 2>&5
31402 ac_status=$?
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; } &&
31405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31407 (eval $ac_try) 2>&5
31408 ac_status=$?
31409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410 (exit $ac_status); }; }; then
31411 ac_header_compiler=yes
31412else
31413 echo "$as_me: failed program was:" >&5
31414sed 's/^/| /' conftest.$ac_ext >&5
31415
31416ac_header_compiler=no
31417fi
ac1cb8d3 31418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31419echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31420echo "${ECHO_T}$ac_header_compiler" >&6
31421
31422# Is the header present?
31423echo "$as_me:$LINENO: checking sql.h presence" >&5
31424echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31425cat >conftest.$ac_ext <<_ACEOF
31426/* confdefs.h. */
31427_ACEOF
31428cat confdefs.h >>conftest.$ac_ext
31429cat >>conftest.$ac_ext <<_ACEOF
31430/* end confdefs.h. */
31431#include <sql.h>
31432_ACEOF
31433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31435 ac_status=$?
31436 grep -v '^ *+' conftest.er1 >conftest.err
31437 rm -f conftest.er1
31438 cat conftest.err >&5
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); } >/dev/null; then
31441 if test -s conftest.err; then
5d7b7554
VZ
31442 ac_cpp_err=$ac_cxx_preproc_warn_flag
31443 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31444 else
31445 ac_cpp_err=
31446 fi
31447else
31448 ac_cpp_err=yes
31449fi
31450if test -z "$ac_cpp_err"; then
31451 ac_header_preproc=yes
31452else
31453 echo "$as_me: failed program was:" >&5
31454sed 's/^/| /' conftest.$ac_ext >&5
31455
31456 ac_header_preproc=no
31457fi
31458rm -f conftest.err conftest.$ac_ext
31459echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31460echo "${ECHO_T}$ac_header_preproc" >&6
31461
31462# So? What about this header?
5d7b7554 31463case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31464 yes:no: )
a848cd7e
SC
31465 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31466echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31467 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31468echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31469 ac_header_preproc=yes
a848cd7e 31470 ;;
ac1cb8d3 31471 no:yes:* )
a848cd7e
SC
31472 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31473echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31474 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31475echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31476 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31477echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31478 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31479echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31480 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31481echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31482 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31483echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31484 (
31485 cat <<\_ASBOX
ac1cb8d3
VS
31486## ----------------------------------------- ##
31487## Report this to wx-dev@lists.wxwidgets.org ##
31488## ----------------------------------------- ##
a848cd7e
SC
31489_ASBOX
31490 ) |
31491 sed "s/^/$as_me: WARNING: /" >&2
31492 ;;
31493esac
31494echo "$as_me:$LINENO: checking for sql.h" >&5
31495echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31496if test "${ac_cv_header_sql_h+set}" = set; then
31497 echo $ECHO_N "(cached) $ECHO_C" >&6
31498else
31499 ac_cv_header_sql_h=$ac_header_preproc
31500fi
31501echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31502echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31503
31504fi
31505if test $ac_cv_header_sql_h = yes; then
31506 found_sql_h=1
31507fi
31508
31509
31510 if test "x$found_sql_h" = "x1" ; then
31511 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31512echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31513if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31514 echo $ECHO_N "(cached) $ECHO_C" >&6
31515else
31516 ac_check_lib_save_LIBS=$LIBS
31517LIBS="-liodbc $LIBS"
31518cat >conftest.$ac_ext <<_ACEOF
31519/* confdefs.h. */
31520_ACEOF
31521cat confdefs.h >>conftest.$ac_ext
31522cat >>conftest.$ac_ext <<_ACEOF
31523/* end confdefs.h. */
31524
31525/* Override any gcc2 internal prototype to avoid an error. */
31526#ifdef __cplusplus
31527extern "C"
31528#endif
31529/* We use char because int might match the return type of a gcc2
31530 builtin and then its argument prototype would still apply. */
31531char SQLAllocEnv ();
31532int
31533main ()
31534{
31535SQLAllocEnv ();
31536 ;
31537 return 0;
31538}
31539_ACEOF
31540rm -f conftest.$ac_objext conftest$ac_exeext
31541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31542 (eval $ac_link) 2>conftest.er1
a848cd7e 31543 ac_status=$?
ac1cb8d3
VS
31544 grep -v '^ *+' conftest.er1 >conftest.err
31545 rm -f conftest.er1
31546 cat conftest.err >&5
a848cd7e
SC
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); } &&
6954625c 31549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31551 (eval $ac_try) 2>&5
31552 ac_status=$?
31553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554 (exit $ac_status); }; } &&
31555 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31557 (eval $ac_try) 2>&5
31558 ac_status=$?
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); }; }; then
31561 ac_cv_lib_iodbc_SQLAllocEnv=yes
31562else
31563 echo "$as_me: failed program was:" >&5
31564sed 's/^/| /' conftest.$ac_ext >&5
31565
31566ac_cv_lib_iodbc_SQLAllocEnv=no
31567fi
ac1cb8d3
VS
31568rm -f conftest.err conftest.$ac_objext \
31569 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31570LIBS=$ac_check_lib_save_LIBS
31571fi
31572echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31573echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31574if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31575 ODBC_LINK=" -liodbc"
31576else
31577
31578 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31579echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31580if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31581 echo $ECHO_N "(cached) $ECHO_C" >&6
31582else
31583 ac_check_lib_save_LIBS=$LIBS
31584LIBS="-lunixodbc $LIBS"
31585cat >conftest.$ac_ext <<_ACEOF
31586/* confdefs.h. */
31587_ACEOF
31588cat confdefs.h >>conftest.$ac_ext
31589cat >>conftest.$ac_ext <<_ACEOF
31590/* end confdefs.h. */
31591
31592/* Override any gcc2 internal prototype to avoid an error. */
31593#ifdef __cplusplus
31594extern "C"
31595#endif
31596/* We use char because int might match the return type of a gcc2
31597 builtin and then its argument prototype would still apply. */
31598char SQLAllocEnv ();
31599int
31600main ()
31601{
31602SQLAllocEnv ();
31603 ;
31604 return 0;
31605}
31606_ACEOF
31607rm -f conftest.$ac_objext conftest$ac_exeext
31608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31609 (eval $ac_link) 2>conftest.er1
a848cd7e 31610 ac_status=$?
ac1cb8d3
VS
31611 grep -v '^ *+' conftest.er1 >conftest.err
31612 rm -f conftest.er1
31613 cat conftest.err >&5
a848cd7e
SC
31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615 (exit $ac_status); } &&
6954625c 31616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31618 (eval $ac_try) 2>&5
31619 ac_status=$?
31620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621 (exit $ac_status); }; } &&
31622 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31624 (eval $ac_try) 2>&5
31625 ac_status=$?
31626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627 (exit $ac_status); }; }; then
31628 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31629else
31630 echo "$as_me: failed program was:" >&5
31631sed 's/^/| /' conftest.$ac_ext >&5
31632
31633ac_cv_lib_unixodbc_SQLAllocEnv=no
31634fi
ac1cb8d3
VS
31635rm -f conftest.err conftest.$ac_objext \
31636 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31637LIBS=$ac_check_lib_save_LIBS
31638fi
31639echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31640echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31641if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31642 ODBC_LINK=" -lunixodbc"
31643else
31644
31645 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31646echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31647if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31648 echo $ECHO_N "(cached) $ECHO_C" >&6
31649else
31650 ac_check_lib_save_LIBS=$LIBS
31651LIBS="-lodbc $LIBS"
31652cat >conftest.$ac_ext <<_ACEOF
31653/* confdefs.h. */
31654_ACEOF
31655cat confdefs.h >>conftest.$ac_ext
31656cat >>conftest.$ac_ext <<_ACEOF
31657/* end confdefs.h. */
31658
31659/* Override any gcc2 internal prototype to avoid an error. */
31660#ifdef __cplusplus
31661extern "C"
31662#endif
31663/* We use char because int might match the return type of a gcc2
31664 builtin and then its argument prototype would still apply. */
31665char SQLAllocEnv ();
31666int
31667main ()
31668{
31669SQLAllocEnv ();
31670 ;
31671 return 0;
31672}
31673_ACEOF
31674rm -f conftest.$ac_objext conftest$ac_exeext
31675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31676 (eval $ac_link) 2>conftest.er1
a848cd7e 31677 ac_status=$?
ac1cb8d3
VS
31678 grep -v '^ *+' conftest.er1 >conftest.err
31679 rm -f conftest.er1
31680 cat conftest.err >&5
a848cd7e
SC
31681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31682 (exit $ac_status); } &&
6954625c 31683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31685 (eval $ac_try) 2>&5
31686 ac_status=$?
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); }; } &&
31689 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31691 (eval $ac_try) 2>&5
31692 ac_status=$?
31693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694 (exit $ac_status); }; }; then
31695 ac_cv_lib_odbc_SQLAllocEnv=yes
31696else
31697 echo "$as_me: failed program was:" >&5
31698sed 's/^/| /' conftest.$ac_ext >&5
31699
31700ac_cv_lib_odbc_SQLAllocEnv=no
31701fi
ac1cb8d3
VS
31702rm -f conftest.err conftest.$ac_objext \
31703 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31704LIBS=$ac_check_lib_save_LIBS
31705fi
31706echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31707echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31708if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31709 ODBC_LINK=" -lodbc"
31710fi
31711
31712
31713fi
31714
31715
31716fi
31717
31718 fi
31719 if test "x$ODBC_LINK" = "x" ; then
31720 if test "$wxUSE_ODBC" = "sys" ; then
31721 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31722echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31723 { (exit 1); exit 1; }; }
31724 else
31725 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31726echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31727 wxUSE_ODBC=builtin
31728 fi
31729 else
31730 wxUSE_ODBC=sys
31731 fi
31732 fi
a848cd7e 31733
2da0c077
RD
31734 if test "$wxUSE_ODBC" = "builtin" ; then
31735 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31736#define wxUSE_BUILTIN_IODBC 1
31737_ACEOF
31738
a848cd7e
SC
31739 fi
31740fi
31741
2da0c077
RD
31742if test "$wxUSE_ODBC" != "no" ; then
31743 cat >>confdefs.h <<\_ACEOF
31744#define wxUSE_ODBC 1
31745_ACEOF
31746
31747 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31748
5ff751d6 31749 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 31750fi
a848cd7e 31751
01cb68df 31752
a848cd7e 31753if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 31754 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
31755 echo "$as_me:$LINENO: checking for Xinerama" >&5
31756echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31757
0ad5d837
VZ
31758 ac_find_libraries=
31759 for ac_dir in $SEARCH_LIB;
31760 do
31761 for ac_extension in a so sl dylib dll.a; do
31762 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31763 ac_find_libraries=$ac_dir
31764 break 2
31765 fi
31766 done
31767 done
31768
a848cd7e
SC
31769 if test "$ac_find_libraries" != "" ; then
31770
0ad5d837 31771 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31772 ac_path_to_link=""
31773 else
0ad5d837
VZ
31774 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31775 result=$?
31776 if test $result = 0; then
31777 ac_path_to_link=""
31778 else
31779 ac_path_to_link=" -L$ac_find_libraries"
31780 fi
a848cd7e
SC
31781 fi
31782
31783 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31784 LDFLAGS="$LDFLAGS $ac_path_to_link"
31785 fi
31786 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31787 echo "$as_me:$LINENO: result: yes" >&5
31788echo "${ECHO_T}yes" >&6
31789
31790 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31791echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31792
0ad5d837
VZ
31793 ac_find_libraries=
31794 for ac_dir in $SEARCH_LIB;
a848cd7e 31795 do
3eca31dc 31796 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31797 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31798 ac_find_libraries=$ac_dir
31799 break 2
31800 fi
31801 done
31802 done
31803
31804 if test "$ac_find_libraries" != "" ; then
31805 echo "$as_me:$LINENO: result: yes" >&5
31806echo "${ECHO_T}yes" >&6
31807
31808for ac_header in X11/extensions/xf86vmode.h
31809do
31810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31811echo "$as_me:$LINENO: checking for $ac_header" >&5
31812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31813if eval "test \"\${$as_ac_Header+set}\" = set"; then
31814 echo $ECHO_N "(cached) $ECHO_C" >&6
31815else
31816 cat >conftest.$ac_ext <<_ACEOF
31817/* confdefs.h. */
31818_ACEOF
31819cat confdefs.h >>conftest.$ac_ext
31820cat >>conftest.$ac_ext <<_ACEOF
31821/* end confdefs.h. */
31822
31823 #if HAVE_X11_XLIB_H
31824 #include <X11/Xlib.h>
31825 #endif
31826
31827
31828#include <$ac_header>
31829_ACEOF
31830rm -f conftest.$ac_objext
31831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31832 (eval $ac_compile) 2>conftest.er1
a848cd7e 31833 ac_status=$?
ac1cb8d3
VS
31834 grep -v '^ *+' conftest.er1 >conftest.err
31835 rm -f conftest.er1
31836 cat conftest.err >&5
a848cd7e
SC
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); } &&
6954625c 31839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31841 (eval $ac_try) 2>&5
31842 ac_status=$?
31843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31844 (exit $ac_status); }; } &&
31845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847 (eval $ac_try) 2>&5
31848 ac_status=$?
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; }; then
31851 eval "$as_ac_Header=yes"
31852else
31853 echo "$as_me: failed program was:" >&5
31854sed 's/^/| /' conftest.$ac_ext >&5
31855
31856eval "$as_ac_Header=no"
31857fi
ac1cb8d3 31858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31859fi
31860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31862if test `eval echo '${'$as_ac_Header'}'` = yes; then
31863 cat >>confdefs.h <<_ACEOF
31864#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31865_ACEOF
31866
31867 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31868
31869fi
31870
31871done
31872
31873 else
31874 echo "$as_me:$LINENO: result: no" >&5
31875echo "${ECHO_T}no" >&6
31876 fi
31877
31878 else
31879 echo "$as_me:$LINENO: result: no" >&5
31880echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31881 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31882echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31883 wxUSE_DISPLAY="no"
31884 fi
01cb68df
RG
31885 elif test "$wxUSE_MSW" = 1; then
31886
e5efa97e 31887for ac_header in ddraw.h
01cb68df
RG
31888do
31889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31890echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31892if eval "test \"\${$as_ac_Header+set}\" = set"; then
31893 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31894else
5294a27e 31895 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31896/* confdefs.h. */
31897_ACEOF
31898cat confdefs.h >>conftest.$ac_ext
31899cat >>conftest.$ac_ext <<_ACEOF
31900/* end confdefs.h. */
5294a27e
VZ
31901#include <windows.h>
31902
01cb68df
RG
31903#include <$ac_header>
31904_ACEOF
31905rm -f conftest.$ac_objext
31906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31907 (eval $ac_compile) 2>conftest.er1
01cb68df 31908 ac_status=$?
ac1cb8d3
VS
31909 grep -v '^ *+' conftest.er1 >conftest.err
31910 rm -f conftest.er1
31911 cat conftest.err >&5
01cb68df
RG
31912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913 (exit $ac_status); } &&
6954625c 31914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31916 (eval $ac_try) 2>&5
31917 ac_status=$?
31918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); }; } &&
31920 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31922 (eval $ac_try) 2>&5
31923 ac_status=$?
31924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925 (exit $ac_status); }; }; then
5294a27e 31926 eval "$as_ac_Header=yes"
01cb68df
RG
31927else
31928 echo "$as_me: failed program was:" >&5
31929sed 's/^/| /' conftest.$ac_ext >&5
31930
5294a27e 31931eval "$as_ac_Header=no"
01cb68df 31932fi
ac1cb8d3 31933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31934fi
31935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31937if test `eval echo '${'$as_ac_Header'}'` = yes; then
31938 cat >>confdefs.h <<_ACEOF
31939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31940_ACEOF
31941
01cb68df
RG
31942fi
31943
31944done
31945
a848cd7e
SC
31946 fi
31947fi
31948
31949
31950USE_OPENGL=0
31951if test "$wxUSE_OPENGL" = "yes"; then
31952 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31953 OPENGL_LIBS="-framework OpenGL -framework AGL"
31954 elif test "$wxUSE_MSW" = 1; then
31955 OPENGL_LIBS="-lopengl32 -lglu32"
31956 else
31957
31958
31959ac_find_includes=
31960for ac_dir in $SEARCH_INCLUDE /usr/include;
31961 do
31962 if test -f "$ac_dir/GL/gl.h"; then
31963 ac_find_includes=$ac_dir
31964 break
31965 fi
31966 done
31967
31968 if test "$ac_find_includes" != "" ; then
31969 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31970echo "${ECHO_T}found in $ac_find_includes" >&6
31971
31972 if test "x$ac_find_includes" = "x/usr/include"; then
31973 ac_path_to_include=""
31974 else
31975 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31976 result=$?
31977 if test $result = 0; then
31978 ac_path_to_include=""
31979 else
31980 ac_path_to_include=" -I$ac_find_includes"
31981 fi
31982 fi
31983
c92ad099 31984 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
31985 fi
31986
31987 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31988 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31989echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31990if test "${ac_cv_header_GL_gl_h+set}" = set; then
31991 echo $ECHO_N "(cached) $ECHO_C" >&6
31992fi
31993echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31994echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31995else
31996 # Is the header compilable?
31997echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31998echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31999cat >conftest.$ac_ext <<_ACEOF
32000/* confdefs.h. */
32001_ACEOF
32002cat confdefs.h >>conftest.$ac_ext
32003cat >>conftest.$ac_ext <<_ACEOF
32004/* end confdefs.h. */
32005$ac_includes_default
32006#include <GL/gl.h>
32007_ACEOF
32008rm -f conftest.$ac_objext
32009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32010 (eval $ac_compile) 2>conftest.er1
a848cd7e 32011 ac_status=$?
ac1cb8d3
VS
32012 grep -v '^ *+' conftest.er1 >conftest.err
32013 rm -f conftest.er1
32014 cat conftest.err >&5
a848cd7e
SC
32015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); } &&
6954625c 32017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32019 (eval $ac_try) 2>&5
32020 ac_status=$?
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); }; } &&
32023 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32025 (eval $ac_try) 2>&5
32026 ac_status=$?
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); }; }; then
32029 ac_header_compiler=yes
32030else
32031 echo "$as_me: failed program was:" >&5
32032sed 's/^/| /' conftest.$ac_ext >&5
32033
32034ac_header_compiler=no
32035fi
ac1cb8d3 32036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32037echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32038echo "${ECHO_T}$ac_header_compiler" >&6
32039
32040# Is the header present?
32041echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32042echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32043cat >conftest.$ac_ext <<_ACEOF
32044/* confdefs.h. */
32045_ACEOF
32046cat confdefs.h >>conftest.$ac_ext
32047cat >>conftest.$ac_ext <<_ACEOF
32048/* end confdefs.h. */
32049#include <GL/gl.h>
32050_ACEOF
32051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32053 ac_status=$?
32054 grep -v '^ *+' conftest.er1 >conftest.err
32055 rm -f conftest.er1
32056 cat conftest.err >&5
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); } >/dev/null; then
32059 if test -s conftest.err; then
5d7b7554
VZ
32060 ac_cpp_err=$ac_cxx_preproc_warn_flag
32061 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32062 else
32063 ac_cpp_err=
32064 fi
32065else
32066 ac_cpp_err=yes
32067fi
32068if test -z "$ac_cpp_err"; then
32069 ac_header_preproc=yes
32070else
32071 echo "$as_me: failed program was:" >&5
32072sed 's/^/| /' conftest.$ac_ext >&5
32073
32074 ac_header_preproc=no
32075fi
32076rm -f conftest.err conftest.$ac_ext
32077echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32078echo "${ECHO_T}$ac_header_preproc" >&6
32079
32080# So? What about this header?
5d7b7554 32081case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32082 yes:no: )
a848cd7e
SC
32083 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32084echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32085 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32086echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32087 ac_header_preproc=yes
a848cd7e 32088 ;;
ac1cb8d3 32089 no:yes:* )
a848cd7e
SC
32090 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32091echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32092 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32093echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32094 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32095echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32096 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32097echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32098 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32099echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32100 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32101echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32102 (
32103 cat <<\_ASBOX
ac1cb8d3
VS
32104## ----------------------------------------- ##
32105## Report this to wx-dev@lists.wxwidgets.org ##
32106## ----------------------------------------- ##
a848cd7e
SC
32107_ASBOX
32108 ) |
32109 sed "s/^/$as_me: WARNING: /" >&2
32110 ;;
32111esac
32112echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32113echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32114if test "${ac_cv_header_GL_gl_h+set}" = set; then
32115 echo $ECHO_N "(cached) $ECHO_C" >&6
32116else
32117 ac_cv_header_GL_gl_h=$ac_header_preproc
32118fi
32119echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32120echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32121
32122fi
32123if test $ac_cv_header_GL_gl_h = yes; then
32124
32125 found_gl=0
32126
32127 echo "$as_me:$LINENO: checking for -lGL" >&5
32128echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32129
0ad5d837
VZ
32130 ac_find_libraries=
32131 for ac_dir in $SEARCH_LIB;
a848cd7e 32132 do
3eca31dc 32133 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32134 if test -f "$ac_dir/libGL.$ac_extension"; then
32135 ac_find_libraries=$ac_dir
32136 break 2
32137 fi
32138 done
32139 done
32140
32141 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
32142 echo "$as_me:$LINENO: result: yes" >&5
32143echo "${ECHO_T}yes" >&6
32144
a848cd7e 32145
0ad5d837 32146 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32147 ac_path_to_link=""
32148 else
0ad5d837
VZ
32149 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32150 result=$?
32151 if test $result = 0; then
32152 ac_path_to_link=""
32153 else
32154 ac_path_to_link=" -L$ac_find_libraries"
32155 fi
a848cd7e
SC
32156 fi
32157
32158 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32159 LDFLAGS_GL="$ac_path_to_link"
32160 fi
32161
69120ee4
VZ
32162 echo "$as_me:$LINENO: checking for -lGLU" >&5
32163echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 32164
0ad5d837
VZ
32165 ac_find_libraries=
32166 for ac_dir in $SEARCH_LIB;
32167 do
32168 for ac_extension in a so sl dylib dll.a; do
32169 if test -f "$ac_dir/libGLU.$ac_extension"; then
32170 ac_find_libraries=$ac_dir
32171 break 2
32172 fi
32173 done
32174 done
32175
a848cd7e
SC
32176 if test "$ac_find_libraries" != "" ; then
32177
0ad5d837 32178 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32179 ac_path_to_link=""
32180 else
0ad5d837
VZ
32181 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32182 result=$?
32183 if test $result = 0; then
32184 ac_path_to_link=""
32185 else
32186 ac_path_to_link=" -L$ac_find_libraries"
32187 fi
a848cd7e
SC
32188 fi
32189
32190 if test "$ac_path_to_link" != " -L/usr/lib" -a \
32191 "$ac_path_to_link" != "$LDFLAGS_GL"; then
32192 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32193 fi
32194
32195 found_gl=1
32196 OPENGL_LIBS="-lGL -lGLU"
32197 echo "$as_me:$LINENO: result: yes" >&5
32198echo "${ECHO_T}yes" >&6
69120ee4
VZ
32199 else
32200 echo "$as_me:$LINENO: result: no" >&5
32201echo "${ECHO_T}no" >&6
a848cd7e 32202 fi
69120ee4
VZ
32203 else
32204 echo "$as_me:$LINENO: result: no" >&5
32205echo "${ECHO_T}no" >&6
a848cd7e
SC
32206 fi
32207
32208 if test "$found_gl" != 1; then
a848cd7e
SC
32209 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32210echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32211
0ad5d837
VZ
32212 ac_find_libraries=
32213 for ac_dir in $SEARCH_LIB;
a848cd7e 32214 do
3eca31dc 32215 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32216 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32217 ac_find_libraries=$ac_dir
32218 break 2
32219 fi
32220 done
32221 done
32222
32223 if test "$ac_find_libraries" != "" ; then
32224
0ad5d837 32225 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32226 ac_path_to_link=""
32227 else
0ad5d837
VZ
32228 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32229 result=$?
32230 if test $result = 0; then
32231 ac_path_to_link=""
32232 else
32233 ac_path_to_link=" -L$ac_find_libraries"
32234 fi
a848cd7e
SC
32235 fi
32236
32237 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32238 OPENGL_LIBS="-lMesaGL -lMesaGLU"
32239 echo "$as_me:$LINENO: result: yes" >&5
32240echo "${ECHO_T}yes" >&6
32241 else
32242 echo "$as_me:$LINENO: result: no" >&5
32243echo "${ECHO_T}no" >&6
32244 fi
32245 fi
32246
32247fi
32248
32249
32250
32251 if test "x$OPENGL_LIBS" = "x"; then
32252 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32253echo "$as_me: error: OpenGL libraries not available" >&2;}
32254 { (exit 1); exit 1; }; }
32255 fi
32256 fi
32257
32258 if test "$wxUSE_OPENGL" = "yes"; then
32259 USE_OPENGL=1
32260 cat >>confdefs.h <<\_ACEOF
32261#define wxUSE_OPENGL 1
32262_ACEOF
32263
32264 cat >>confdefs.h <<\_ACEOF
32265#define wxUSE_GLCANVAS 1
32266_ACEOF
32267
32268 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32269 fi
32270fi
32271
a848cd7e
SC
32272
32273if test -n "$TOOLKIT" ; then
32274 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32275fi
32276
a848cd7e
SC
32277
32278
32279if test "$wxUSE_SHARED" = "yes"; then
32280 case "${host}" in
32281 *-pc-msdosdjgpp )
32282 wxUSE_SHARED=no
32283 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32284echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32285 ;;
32286 esac
32287fi
32288
a848cd7e 32289if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
32290
32291
32292 found_versioning=no
32293
32294
32295 if test $found_versioning = no ; then
32296 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32297echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32298if test "${wx_cv_version_script+set}" = set; then
32299 echo $ECHO_N "(cached) $ECHO_C" >&6
32300else
32301
32302 echo "VER_1 { *; };" >conftest.sym
32303 echo "int main() { return 0; }" >conftest.cpp
32304
32305 if { ac_try='
32306 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32307 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32309 (eval $ac_try) 2>&5
32310 ac_status=$?
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; } ; then
32313 if test -s conftest.stderr ; then
32314 wx_cv_version_script=no
32315 else
32316 wx_cv_version_script=yes
32317 fi
32318 else
32319 wx_cv_version_script=no
32320 fi
e5d4b470
MW
32321
32322 if test $wx_cv_version_script = yes
32323 then
32324 echo "struct B { virtual ~B() { } }; \
32325 struct D : public B { }; \
32326 void F() { D d; }" > conftest.cpp
32327
32328 if { ac_try='
32329 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32330 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32332 (eval $ac_try) 2>&5
32333 ac_status=$?
32334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335 (exit $ac_status); }; } &&
32336 { ac_try='
32337 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32338 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32340 (eval $ac_try) 2>&5
32341 ac_status=$?
32342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343 (exit $ac_status); }; }
32344 then
32345 if { ac_try='
32346 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32347 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32349 (eval $ac_try) 2>&5
32350 ac_status=$?
32351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352 (exit $ac_status); }; }
32353 then
32354 wx_cv_version_script=yes
32355 else
32356 wx_cv_version_script=no
32357 fi
32358 fi
32359 fi
32360
a848cd7e 32361 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 32362 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
32363
32364fi
32365echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32366echo "${ECHO_T}$wx_cv_version_script" >&6
32367 if test $wx_cv_version_script = yes ; then
32368 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32369 fi
32370 fi
32371
32372
32373 case "${host}" in
32374 *-*-linux* | *-*-gnu* )
32375 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32376 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 32377 ;;
a848cd7e
SC
32378
32379 *-*-solaris2* )
32380 if test "$GCC" = yes ; then
c92ad099 32381 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
32382
32383 saveLdflags="$LDFLAGS"
32384 LDFLAGS="$saveLdflags -Wl,-rpath,/"
32385 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32386echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32387 cat >conftest.$ac_ext <<_ACEOF
32388/* confdefs.h. */
32389_ACEOF
32390cat confdefs.h >>conftest.$ac_ext
32391cat >>conftest.$ac_ext <<_ACEOF
32392/* end confdefs.h. */
32393
32394int
32395main ()
32396{
32397
32398 ;
32399 return 0;
32400}
32401_ACEOF
32402rm -f conftest.$ac_objext conftest$ac_exeext
32403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32404 (eval $ac_link) 2>conftest.er1
a848cd7e 32405 ac_status=$?
ac1cb8d3
VS
32406 grep -v '^ *+' conftest.er1 >conftest.err
32407 rm -f conftest.er1
32408 cat conftest.err >&5
a848cd7e
SC
32409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); } &&
6954625c 32411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32413 (eval $ac_try) 2>&5
32414 ac_status=$?
32415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416 (exit $ac_status); }; } &&
32417 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32419 (eval $ac_try) 2>&5
32420 ac_status=$?
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; }; then
32423
32424 echo "$as_me:$LINENO: result: yes" >&5
32425echo "${ECHO_T}yes" >&6
32426 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32427 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32428
32429else
32430 echo "$as_me: failed program was:" >&5
32431sed 's/^/| /' conftest.$ac_ext >&5
32432
32433
32434 echo "$as_me:$LINENO: result: no" >&5
32435echo "${ECHO_T}no" >&6
32436 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32437echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32438 LDFLAGS="$saveLdflags -Wl,-R,/"
32439 cat >conftest.$ac_ext <<_ACEOF
32440/* confdefs.h. */
32441_ACEOF
32442cat confdefs.h >>conftest.$ac_ext
32443cat >>conftest.$ac_ext <<_ACEOF
32444/* end confdefs.h. */
32445
32446int
32447main ()
32448{
32449
32450 ;
32451 return 0;
32452}
32453_ACEOF
32454rm -f conftest.$ac_objext conftest$ac_exeext
32455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32456 (eval $ac_link) 2>conftest.er1
a848cd7e 32457 ac_status=$?
ac1cb8d3
VS
32458 grep -v '^ *+' conftest.er1 >conftest.err
32459 rm -f conftest.er1
32460 cat conftest.err >&5
a848cd7e
SC
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); } &&
6954625c 32463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32465 (eval $ac_try) 2>&5
32466 ac_status=$?
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); }; } &&
32469 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32471 (eval $ac_try) 2>&5
32472 ac_status=$?
32473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474 (exit $ac_status); }; }; then
32475
ffa0583f 32476 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32477echo "${ECHO_T}yes" >&6
ffa0583f
RL
32478 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32479 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32480
a848cd7e
SC
32481else
32482 echo "$as_me: failed program was:" >&5
32483sed 's/^/| /' conftest.$ac_ext >&5
32484
32485
32486 echo "$as_me:$LINENO: result: no" >&5
32487echo "${ECHO_T}no" >&6
32488
32489fi
ac1cb8d3
VS
32490rm -f conftest.err conftest.$ac_objext \
32491 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32492
32493fi
ac1cb8d3
VS
32494rm -f conftest.err conftest.$ac_objext \
32495 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32496 LDFLAGS="$saveLdflags"
32497 else
a848cd7e 32498 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32499 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32500 fi
32501 ;;
32502
cfda0ea8 32503 *-*-darwin* )
0caebc27
MW
32504 install_name_tool=`which install_name_tool`
32505 if test "$install_name_tool" -a -x "$install_name_tool"; then
32506 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32507 cat <<EOF >change-install-names
a848cd7e
SC
32508#!/bin/sh
32509libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32510inst_cmd="install_name_tool "
32511for i in \${libnames} ; do
32512 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32513done
32514\${inst_cmd} \${3}
32515EOF
0caebc27
MW
32516 chmod +x change-install-names
32517 fi
a848cd7e
SC
32518 ;;
32519
32520 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32521 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32522 ;;
a848cd7e 32523
81f90336
MW
32524 *-*-hpux* )
32525 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32526 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32527 ;;
81f90336 32528
a848cd7e 32529 esac
ceec2216 32530
ffa0583f
RL
32531 if test $wxUSE_RPATH = "no"; then
32532 SAMPLES_RPATH_FLAG=''
32533 SAMPLES_RPATH_POSTLINK=''
32534 WXCONFIG_RPATH=''
32535 fi
32536
32537 SHARED=1
32538
32539else
32540
ceec2216
RL
32541 config_linkage_component="-static"
32542 SHARED=0
ffa0583f 32543
ceec2216 32544fi
a848cd7e 32545
a848cd7e 32546
ceec2216
RL
32547UNICODE=0
32548lib_unicode_suffix=
32549WX_CHARTYPE="ansi"
32550if test "$wxUSE_UNICODE" = "yes"; then
32551 lib_unicode_suffix=u
32552 WX_CHARTYPE="unicode"
32553 UNICODE=1
a848cd7e
SC
32554fi
32555
ceec2216
RL
32556lib_debug_suffix=
32557WX_DEBUGTYPE="release"
32558DEBUG_FLAG=0
32559if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32560 lib_debug_suffix=d
32561 WX_DEBUGTYPE="debug"
32562 DEBUG_FLAG=1
32563fi
a848cd7e 32564
ceec2216
RL
32565WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32566WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32567
ceec2216
RL
32568DEBUG_INFO=0
32569if test "$wxUSE_DEBUG_INFO" = "yes"; then
32570 DEBUG_INFO=1
32571fi
a848cd7e 32572
ceec2216 32573WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32574
ceec2216 32575TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32576
ceec2216 32577TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32578
ceec2216
RL
32579if test "$cross_compiling" = "yes"; then
32580 HOST_SUFFIX="-$host_alias"
32581 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32582 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32583fi
32584
dd21ced8 32585WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32586if test "${TOOLKIT_DIR}" = "os2"; then
32587 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32588else
32589 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32590fi
ceec2216
RL
32591
32592
32593
1d1af5ea
DE
32594if test "$wxUSE_COCOA" = 1; then
32595
32596
32597 ac_ext=c
32598ac_cpp='$CPP $CPPFLAGS'
32599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32601ac_compiler_gnu=$ac_cv_c_compiler_gnu
32602
32603ac_ext=m
32604
32605 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32606echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32607 cat >conftest.$ac_ext <<_ACEOF
32608/* confdefs.h. */
32609_ACEOF
32610cat confdefs.h >>conftest.$ac_ext
32611cat >>conftest.$ac_ext <<_ACEOF
32612/* end confdefs.h. */
32613#include <AppKit/NSEvent.h>
32614#include <CoreFoundation/CoreFoundation.h>
32615
32616int
32617main ()
32618{
32619
32620 ;
32621 return 0;
32622}
32623_ACEOF
32624rm -f conftest.$ac_objext
32625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32626 (eval $ac_compile) 2>conftest.er1
32627 ac_status=$?
32628 grep -v '^ *+' conftest.er1 >conftest.err
32629 rm -f conftest.er1
32630 cat conftest.err >&5
32631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632 (exit $ac_status); } &&
6954625c 32633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32635 (eval $ac_try) 2>&5
32636 ac_status=$?
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); }; } &&
32639 { ac_try='test -s conftest.$ac_objext'
32640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32641 (eval $ac_try) 2>&5
32642 ac_status=$?
32643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); }; }; then
32645 echo "$as_me:$LINENO: result: no" >&5
32646echo "${ECHO_T}no" >&6
32647else
32648 echo "$as_me: failed program was:" >&5
32649sed 's/^/| /' conftest.$ac_ext >&5
32650
32651echo "$as_me:$LINENO: result: yes" >&5
32652echo "${ECHO_T}yes" >&6
32653 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32654echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32655 cat >conftest.$ac_ext <<_ACEOF
32656/* confdefs.h. */
32657_ACEOF
32658cat confdefs.h >>conftest.$ac_ext
32659cat >>conftest.$ac_ext <<_ACEOF
32660/* end confdefs.h. */
32661#define __Point__ 1
32662#include <AppKit/NSEvent.h>
32663#include <CoreFoundation/CoreFoundation.h>
32664
32665int
32666main ()
32667{
32668
32669 ;
32670 return 0;
32671}
32672_ACEOF
32673rm -f conftest.$ac_objext
32674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32675 (eval $ac_compile) 2>conftest.er1
32676 ac_status=$?
32677 grep -v '^ *+' conftest.er1 >conftest.err
32678 rm -f conftest.er1
32679 cat conftest.err >&5
32680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681 (exit $ac_status); } &&
6954625c 32682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32684 (eval $ac_try) 2>&5
32685 ac_status=$?
32686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687 (exit $ac_status); }; } &&
32688 { ac_try='test -s conftest.$ac_objext'
32689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32690 (eval $ac_try) 2>&5
32691 ac_status=$?
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); }; }; then
32694 echo "$as_me:$LINENO: result: yes" >&5
32695echo "${ECHO_T}yes" >&6
32696 cat >>confdefs.h <<\_ACEOF
32697#define __Point__ 1
32698_ACEOF
32699
32700
32701else
32702 echo "$as_me: failed program was:" >&5
32703sed 's/^/| /' conftest.$ac_ext >&5
32704
32705{ { echo "$as_me:$LINENO: error: no
32706See \`config.log' for more details." >&5
32707echo "$as_me: error: no
32708See \`config.log' for more details." >&2;}
32709 { (exit 1); exit 1; }; }
32710
32711fi
32712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32713
32714fi
32715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
32716 ac_ext=cc
32717ac_cpp='$CXXCPP $CPPFLAGS'
32718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
32721
32722fi
32723
a848cd7e 32724if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32725 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32726 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32727
a848cd7e 32728 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32729
32730 # Extract the first word of "Rez", so it can be a program name with args.
32731set dummy Rez; ac_word=$2
32732echo "$as_me:$LINENO: checking for $ac_word" >&5
32733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32734if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32735 echo $ECHO_N "(cached) $ECHO_C" >&6
32736else
8ced02f6
DE
32737 if test -n "$REZ"; then
32738 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32739else
32740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32741for as_dir in $PATH
32742do
32743 IFS=$as_save_IFS
32744 test -z "$as_dir" && as_dir=.
32745 for ac_exec_ext in '' $ac_executable_extensions; do
32746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 32747 ac_cv_prog_REZ="Rez"
a848cd7e
SC
32748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32749 break 2
32750 fi
32751done
32752done
32753
8ced02f6 32754 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
32755fi
32756fi
8ced02f6
DE
32757REZ=$ac_cv_prog_REZ
32758if test -n "$REZ"; then
32759 echo "$as_me:$LINENO: result: $REZ" >&5
32760echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
32761else
32762 echo "$as_me:$LINENO: result: no" >&5
32763echo "${ECHO_T}no" >&6
32764fi
32765
32766 # Extract the first word of "DeRez", so it can be a program name with args.
32767set dummy DeRez; ac_word=$2
32768echo "$as_me:$LINENO: checking for $ac_word" >&5
32769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32770if test "${ac_cv_prog_DEREZ+set}" = set; then
32771 echo $ECHO_N "(cached) $ECHO_C" >&6
32772else
32773 if test -n "$DEREZ"; then
32774 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32775else
32776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32777for as_dir in $PATH
32778do
32779 IFS=$as_save_IFS
32780 test -z "$as_dir" && as_dir=.
32781 for ac_exec_ext in '' $ac_executable_extensions; do
32782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32783 ac_cv_prog_DEREZ="DeRez"
32784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32785 break 2
32786 fi
32787done
32788done
32789
32790 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32791fi
32792fi
32793DEREZ=$ac_cv_prog_DEREZ
32794if test -n "$DEREZ"; then
32795 echo "$as_me:$LINENO: result: $DEREZ" >&5
32796echo "${ECHO_T}$DEREZ" >&6
32797else
32798 echo "$as_me:$LINENO: result: no" >&5
32799echo "${ECHO_T}no" >&6
32800fi
32801
32802 # Extract the first word of "SetFile", so it can be a program name with args.
32803set dummy SetFile; ac_word=$2
32804echo "$as_me:$LINENO: checking for $ac_word" >&5
32805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32806if test "${ac_cv_prog_SETFILE+set}" = set; then
32807 echo $ECHO_N "(cached) $ECHO_C" >&6
32808else
32809 if test -n "$SETFILE"; then
32810 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32811else
32812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32813for as_dir in $PATH
32814do
32815 IFS=$as_save_IFS
32816 test -z "$as_dir" && as_dir=.
32817 for ac_exec_ext in '' $ac_executable_extensions; do
32818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32819 ac_cv_prog_SETFILE="SetFile"
32820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32821 break 2
32822 fi
32823done
32824done
32825
32826 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32827fi
32828fi
32829SETFILE=$ac_cv_prog_SETFILE
32830if test -n "$SETFILE"; then
32831 echo "$as_me:$LINENO: result: $SETFILE" >&5
32832echo "${ECHO_T}$SETFILE" >&6
32833else
32834 echo "$as_me:$LINENO: result: no" >&5
32835echo "${ECHO_T}no" >&6
32836fi
32837
32838
32839 MACSETFILE="\$(SETFILE)"
32840
32841 if test "$wxUSE_MAC" = 1; then
8ced02f6 32842 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
32843 RESCOMP="$REZ"
32844 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32845 else
004ee6da
RL
32846 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32847 RESCOMP="echo -n \| $REZ"
32848 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 32849 fi
004ee6da 32850
a848cd7e 32851else
ffa0583f 32852 MACSETFILE="@true"
a848cd7e 32853
8ced02f6 32854 if test "$wxUSE_PM" = 1; then
004ee6da
RL
32855 RESCOMP="emxbind"
32856 WXCONFIG_RESFLAGS="-ep"
32857
32858 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 32859 else
8ced02f6 32860 POSTLINK_COMMAND="@true"
a848cd7e 32861 fi
004ee6da 32862
a848cd7e
SC
32863fi
32864
32865
32866
32867echo "$as_me:$LINENO: checking for mode_t" >&5
32868echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32869if test "${ac_cv_type_mode_t+set}" = set; then
32870 echo $ECHO_N "(cached) $ECHO_C" >&6
32871else
32872 cat >conftest.$ac_ext <<_ACEOF
32873/* confdefs.h. */
32874_ACEOF
32875cat confdefs.h >>conftest.$ac_ext
32876cat >>conftest.$ac_ext <<_ACEOF
32877/* end confdefs.h. */
32878$ac_includes_default
32879int
32880main ()
32881{
32882if ((mode_t *) 0)
32883 return 0;
32884if (sizeof (mode_t))
32885 return 0;
32886 ;
32887 return 0;
32888}
32889_ACEOF
32890rm -f conftest.$ac_objext
32891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32892 (eval $ac_compile) 2>conftest.er1
a848cd7e 32893 ac_status=$?
ac1cb8d3
VS
32894 grep -v '^ *+' conftest.er1 >conftest.err
32895 rm -f conftest.er1
32896 cat conftest.err >&5
a848cd7e
SC
32897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); } &&
6954625c 32899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32901 (eval $ac_try) 2>&5
32902 ac_status=$?
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); }; } &&
32905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32907 (eval $ac_try) 2>&5
32908 ac_status=$?
32909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32910 (exit $ac_status); }; }; then
32911 ac_cv_type_mode_t=yes
32912else
32913 echo "$as_me: failed program was:" >&5
32914sed 's/^/| /' conftest.$ac_ext >&5
32915
32916ac_cv_type_mode_t=no
32917fi
ac1cb8d3 32918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32919fi
32920echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32921echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32922if test $ac_cv_type_mode_t = yes; then
32923 :
32924else
32925
32926cat >>confdefs.h <<_ACEOF
32927#define mode_t int
32928_ACEOF
32929
32930fi
32931
32932echo "$as_me:$LINENO: checking for off_t" >&5
32933echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32934if test "${ac_cv_type_off_t+set}" = set; then
32935 echo $ECHO_N "(cached) $ECHO_C" >&6
32936else
32937 cat >conftest.$ac_ext <<_ACEOF
32938/* confdefs.h. */
32939_ACEOF
32940cat confdefs.h >>conftest.$ac_ext
32941cat >>conftest.$ac_ext <<_ACEOF
32942/* end confdefs.h. */
32943$ac_includes_default
32944int
32945main ()
32946{
32947if ((off_t *) 0)
32948 return 0;
32949if (sizeof (off_t))
32950 return 0;
32951 ;
32952 return 0;
32953}
32954_ACEOF
32955rm -f conftest.$ac_objext
32956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32957 (eval $ac_compile) 2>conftest.er1
a848cd7e 32958 ac_status=$?
ac1cb8d3
VS
32959 grep -v '^ *+' conftest.er1 >conftest.err
32960 rm -f conftest.er1
32961 cat conftest.err >&5
a848cd7e
SC
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); } &&
6954625c 32964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32966 (eval $ac_try) 2>&5
32967 ac_status=$?
32968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969 (exit $ac_status); }; } &&
32970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32972 (eval $ac_try) 2>&5
32973 ac_status=$?
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); }; }; then
32976 ac_cv_type_off_t=yes
32977else
32978 echo "$as_me: failed program was:" >&5
32979sed 's/^/| /' conftest.$ac_ext >&5
32980
32981ac_cv_type_off_t=no
32982fi
ac1cb8d3 32983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32984fi
32985echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32986echo "${ECHO_T}$ac_cv_type_off_t" >&6
32987if test $ac_cv_type_off_t = yes; then
32988 :
32989else
32990
32991cat >>confdefs.h <<_ACEOF
32992#define off_t long
32993_ACEOF
32994
32995fi
32996
32997echo "$as_me:$LINENO: checking for pid_t" >&5
32998echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32999if test "${ac_cv_type_pid_t+set}" = set; then
33000 echo $ECHO_N "(cached) $ECHO_C" >&6
33001else
33002 cat >conftest.$ac_ext <<_ACEOF
33003/* confdefs.h. */
33004_ACEOF
33005cat confdefs.h >>conftest.$ac_ext
33006cat >>conftest.$ac_ext <<_ACEOF
33007/* end confdefs.h. */
33008$ac_includes_default
33009int
33010main ()
33011{
33012if ((pid_t *) 0)
33013 return 0;
33014if (sizeof (pid_t))
33015 return 0;
33016 ;
33017 return 0;
33018}
33019_ACEOF
33020rm -f conftest.$ac_objext
33021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33022 (eval $ac_compile) 2>conftest.er1
a848cd7e 33023 ac_status=$?
ac1cb8d3
VS
33024 grep -v '^ *+' conftest.er1 >conftest.err
33025 rm -f conftest.er1
33026 cat conftest.err >&5
a848cd7e
SC
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); } &&
6954625c 33029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33031 (eval $ac_try) 2>&5
33032 ac_status=$?
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); }; } &&
33035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33037 (eval $ac_try) 2>&5
33038 ac_status=$?
33039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040 (exit $ac_status); }; }; then
33041 ac_cv_type_pid_t=yes
33042else
33043 echo "$as_me: failed program was:" >&5
33044sed 's/^/| /' conftest.$ac_ext >&5
33045
33046ac_cv_type_pid_t=no
33047fi
ac1cb8d3 33048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33049fi
33050echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33051echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33052if test $ac_cv_type_pid_t = yes; then
33053 :
33054else
33055
33056cat >>confdefs.h <<_ACEOF
33057#define pid_t int
33058_ACEOF
33059
33060fi
33061
33062echo "$as_me:$LINENO: checking for size_t" >&5
33063echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33064if test "${ac_cv_type_size_t+set}" = set; then
33065 echo $ECHO_N "(cached) $ECHO_C" >&6
33066else
33067 cat >conftest.$ac_ext <<_ACEOF
33068/* confdefs.h. */
33069_ACEOF
33070cat confdefs.h >>conftest.$ac_ext
33071cat >>conftest.$ac_ext <<_ACEOF
33072/* end confdefs.h. */
33073$ac_includes_default
33074int
33075main ()
33076{
33077if ((size_t *) 0)
33078 return 0;
33079if (sizeof (size_t))
33080 return 0;
33081 ;
33082 return 0;
33083}
33084_ACEOF
33085rm -f conftest.$ac_objext
33086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33087 (eval $ac_compile) 2>conftest.er1
a848cd7e 33088 ac_status=$?
ac1cb8d3
VS
33089 grep -v '^ *+' conftest.er1 >conftest.err
33090 rm -f conftest.er1
33091 cat conftest.err >&5
a848cd7e
SC
33092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093 (exit $ac_status); } &&
6954625c 33094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33096 (eval $ac_try) 2>&5
33097 ac_status=$?
33098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099 (exit $ac_status); }; } &&
33100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33102 (eval $ac_try) 2>&5
33103 ac_status=$?
33104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105 (exit $ac_status); }; }; then
33106 ac_cv_type_size_t=yes
33107else
33108 echo "$as_me: failed program was:" >&5
33109sed 's/^/| /' conftest.$ac_ext >&5
33110
33111ac_cv_type_size_t=no
33112fi
ac1cb8d3 33113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33114fi
33115echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33116echo "${ECHO_T}$ac_cv_type_size_t" >&6
33117if test $ac_cv_type_size_t = yes; then
33118 :
33119else
33120
33121cat >>confdefs.h <<_ACEOF
33122#define size_t unsigned
33123_ACEOF
33124
33125fi
33126
33127echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33128echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33129if test "${ac_cv_type_uid_t+set}" = set; then
33130 echo $ECHO_N "(cached) $ECHO_C" >&6
33131else
33132 cat >conftest.$ac_ext <<_ACEOF
33133/* confdefs.h. */
33134_ACEOF
33135cat confdefs.h >>conftest.$ac_ext
33136cat >>conftest.$ac_ext <<_ACEOF
33137/* end confdefs.h. */
33138#include <sys/types.h>
33139
33140_ACEOF
33141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33142 $EGREP "uid_t" >/dev/null 2>&1; then
33143 ac_cv_type_uid_t=yes
33144else
33145 ac_cv_type_uid_t=no
33146fi
33147rm -f conftest*
33148
33149fi
33150echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33151echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33152if test $ac_cv_type_uid_t = no; then
33153
33154cat >>confdefs.h <<\_ACEOF
33155#define uid_t int
33156_ACEOF
33157
33158
33159cat >>confdefs.h <<\_ACEOF
33160#define gid_t int
33161_ACEOF
33162
33163fi
33164
33165
d51253e8
RL
33166echo "$as_me:$LINENO: checking for ssize_t" >&5
33167echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33168if test "${ac_cv_type_ssize_t+set}" = set; then
33169 echo $ECHO_N "(cached) $ECHO_C" >&6
33170else
33171 cat >conftest.$ac_ext <<_ACEOF
33172/* confdefs.h. */
33173_ACEOF
33174cat confdefs.h >>conftest.$ac_ext
33175cat >>conftest.$ac_ext <<_ACEOF
33176/* end confdefs.h. */
33177$ac_includes_default
33178int
33179main ()
33180{
33181if ((ssize_t *) 0)
33182 return 0;
33183if (sizeof (ssize_t))
33184 return 0;
33185 ;
33186 return 0;
33187}
33188_ACEOF
33189rm -f conftest.$ac_objext
33190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33191 (eval $ac_compile) 2>conftest.er1
33192 ac_status=$?
33193 grep -v '^ *+' conftest.er1 >conftest.err
33194 rm -f conftest.er1
33195 cat conftest.err >&5
33196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197 (exit $ac_status); } &&
6954625c 33198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
33199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33200 (eval $ac_try) 2>&5
33201 ac_status=$?
33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); }; } &&
33204 { ac_try='test -s conftest.$ac_objext'
33205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33206 (eval $ac_try) 2>&5
33207 ac_status=$?
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); }; }; then
33210 ac_cv_type_ssize_t=yes
33211else
33212 echo "$as_me: failed program was:" >&5
33213sed 's/^/| /' conftest.$ac_ext >&5
33214
33215ac_cv_type_ssize_t=no
33216fi
33217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33218fi
33219echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33220echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33221if test $ac_cv_type_ssize_t = yes; then
33222
33223cat >>confdefs.h <<_ACEOF
33224#define HAVE_SSIZE_T 1
33225_ACEOF
33226
33227
33228fi
33229
33230
a848cd7e
SC
33231echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33232echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33233if test "${wx_cv_size_t_is_uint+set}" = set; then
33234 echo $ECHO_N "(cached) $ECHO_C" >&6
33235else
33236
33237 cat >conftest.$ac_ext <<_ACEOF
33238/* confdefs.h. */
33239_ACEOF
33240cat confdefs.h >>conftest.$ac_ext
33241cat >>conftest.$ac_ext <<_ACEOF
33242/* end confdefs.h. */
33243#include <stddef.h>
33244int
33245main ()
33246{
33247
33248 return 0; }
33249
33250 struct Foo { void foo(size_t); void foo(unsigned int); };
33251
33252 int bar() {
33253
33254 ;
33255 return 0;
33256}
33257_ACEOF
33258rm -f conftest.$ac_objext
33259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33260 (eval $ac_compile) 2>conftest.er1
a848cd7e 33261 ac_status=$?
ac1cb8d3
VS
33262 grep -v '^ *+' conftest.er1 >conftest.err
33263 rm -f conftest.er1
33264 cat conftest.err >&5
a848cd7e
SC
33265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266 (exit $ac_status); } &&
6954625c 33267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33269 (eval $ac_try) 2>&5
33270 ac_status=$?
33271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272 (exit $ac_status); }; } &&
33273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33275 (eval $ac_try) 2>&5
33276 ac_status=$?
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); }; }; then
33279 wx_cv_size_t_is_uint=no
33280else
33281 echo "$as_me: failed program was:" >&5
33282sed 's/^/| /' conftest.$ac_ext >&5
33283
33284wx_cv_size_t_is_uint=yes
33285
33286fi
ac1cb8d3 33287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33288
33289
33290fi
33291echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33292echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33293
33294if test "$wx_cv_size_t_is_uint" = "yes"; then
33295 cat >>confdefs.h <<\_ACEOF
33296#define wxSIZE_T_IS_UINT 1
33297_ACEOF
33298
33299else
33300 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33301echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33302if test "${wx_cv_size_t_is_ulong+set}" = set; then
33303 echo $ECHO_N "(cached) $ECHO_C" >&6
33304else
33305 cat >conftest.$ac_ext <<_ACEOF
33306/* confdefs.h. */
33307_ACEOF
33308cat confdefs.h >>conftest.$ac_ext
33309cat >>conftest.$ac_ext <<_ACEOF
33310/* end confdefs.h. */
33311#include <stddef.h>
33312int
33313main ()
33314{
33315
33316 return 0; }
33317
33318 struct Foo { void foo(size_t); void foo(unsigned long); };
33319
33320 int bar() {
33321
33322 ;
33323 return 0;
33324}
33325_ACEOF
33326rm -f conftest.$ac_objext
33327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33328 (eval $ac_compile) 2>conftest.er1
a848cd7e 33329 ac_status=$?
ac1cb8d3
VS
33330 grep -v '^ *+' conftest.er1 >conftest.err
33331 rm -f conftest.er1
33332 cat conftest.err >&5
a848cd7e
SC
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); } &&
6954625c 33335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33337 (eval $ac_try) 2>&5
33338 ac_status=$?
33339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340 (exit $ac_status); }; } &&
33341 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33343 (eval $ac_try) 2>&5
33344 ac_status=$?
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); }; }; then
33347 wx_cv_size_t_is_ulong=no
33348else
33349 echo "$as_me: failed program was:" >&5
33350sed 's/^/| /' conftest.$ac_ext >&5
33351
33352wx_cv_size_t_is_ulong=yes
33353
33354fi
ac1cb8d3 33355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33356
33357fi
33358echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33359echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33360
33361 if test "$wx_cv_size_t_is_ulong" = "yes"; then
33362 cat >>confdefs.h <<\_ACEOF
33363#define wxSIZE_T_IS_ULONG 1
33364_ACEOF
33365
33366 fi
33367fi
33368
a848cd7e
SC
33369
33370echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33371echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33372if test "${wx_cv_struct_pw_gecos+set}" = set; then
33373 echo $ECHO_N "(cached) $ECHO_C" >&6
33374else
33375
33376 cat >conftest.$ac_ext <<_ACEOF
33377/* confdefs.h. */
33378_ACEOF
33379cat confdefs.h >>conftest.$ac_ext
33380cat >>conftest.$ac_ext <<_ACEOF
33381/* end confdefs.h. */
33382#include <pwd.h>
33383int
33384main ()
33385{
33386
33387 char *p;
33388 struct passwd *pw;
33389 p = pw->pw_gecos;
33390
33391 ;
33392 return 0;
33393}
33394_ACEOF
33395rm -f conftest.$ac_objext
33396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33397 (eval $ac_compile) 2>conftest.er1
a848cd7e 33398 ac_status=$?
ac1cb8d3
VS
33399 grep -v '^ *+' conftest.er1 >conftest.err
33400 rm -f conftest.er1
33401 cat conftest.err >&5
a848cd7e
SC
33402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403 (exit $ac_status); } &&
6954625c 33404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33406 (eval $ac_try) 2>&5
33407 ac_status=$?
33408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); }; } &&
33410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33412 (eval $ac_try) 2>&5
33413 ac_status=$?
33414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415 (exit $ac_status); }; }; then
33416
33417 wx_cv_struct_pw_gecos=yes
33418
33419else
33420 echo "$as_me: failed program was:" >&5
33421sed 's/^/| /' conftest.$ac_ext >&5
33422
33423
33424 wx_cv_struct_pw_gecos=no
33425
33426
33427fi
ac1cb8d3 33428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33429
33430
33431fi
33432echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33433echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33434
33435if test "$wx_cv_struct_pw_gecos" = "yes"; then
33436 cat >>confdefs.h <<\_ACEOF
33437#define HAVE_PW_GECOS 1
33438_ACEOF
33439
33440fi
33441
33442
47a7e797 33443if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33444 cat >>confdefs.h <<\_ACEOF
33445#define wxUSE_WCHAR_T 1
33446_ACEOF
33447
33448
33449 WCSLEN_FOUND=0
33450 WCHAR_LINK=
33451
33452for ac_func in wcslen
33453do
33454as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33455echo "$as_me:$LINENO: checking for $ac_func" >&5
33456echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33457if eval "test \"\${$as_ac_var+set}\" = set"; then
33458 echo $ECHO_N "(cached) $ECHO_C" >&6
33459else
33460 cat >conftest.$ac_ext <<_ACEOF
33461/* confdefs.h. */
33462_ACEOF
33463cat confdefs.h >>conftest.$ac_ext
33464cat >>conftest.$ac_ext <<_ACEOF
33465/* end confdefs.h. */
ac1cb8d3
VS
33466/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33468#define $ac_func innocuous_$ac_func
33469
a848cd7e
SC
33470/* System header to define __stub macros and hopefully few prototypes,
33471 which can conflict with char $ac_func (); below.
33472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33473 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33474
a848cd7e
SC
33475#ifdef __STDC__
33476# include <limits.h>
33477#else
33478# include <assert.h>
33479#endif
ac1cb8d3
VS
33480
33481#undef $ac_func
33482
a848cd7e
SC
33483/* Override any gcc2 internal prototype to avoid an error. */
33484#ifdef __cplusplus
33485extern "C"
33486{
33487#endif
33488/* We use char because int might match the return type of a gcc2
33489 builtin and then its argument prototype would still apply. */
33490char $ac_func ();
33491/* The GNU C library defines this for functions which it implements
33492 to always fail with ENOSYS. Some functions are actually named
33493 something starting with __ and the normal name is an alias. */
33494#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33495choke me
33496#else
33497char (*f) () = $ac_func;
33498#endif
33499#ifdef __cplusplus
33500}
33501#endif
33502
33503int
33504main ()
33505{
33506return f != $ac_func;
33507 ;
33508 return 0;
33509}
33510_ACEOF
33511rm -f conftest.$ac_objext conftest$ac_exeext
33512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33513 (eval $ac_link) 2>conftest.er1
a848cd7e 33514 ac_status=$?
ac1cb8d3
VS
33515 grep -v '^ *+' conftest.er1 >conftest.err
33516 rm -f conftest.er1
33517 cat conftest.err >&5
a848cd7e
SC
33518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33519 (exit $ac_status); } &&
6954625c 33520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33522 (eval $ac_try) 2>&5
33523 ac_status=$?
33524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525 (exit $ac_status); }; } &&
33526 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33528 (eval $ac_try) 2>&5
33529 ac_status=$?
33530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531 (exit $ac_status); }; }; then
33532 eval "$as_ac_var=yes"
33533else
33534 echo "$as_me: failed program was:" >&5
33535sed 's/^/| /' conftest.$ac_ext >&5
33536
33537eval "$as_ac_var=no"
33538fi
ac1cb8d3
VS
33539rm -f conftest.err conftest.$ac_objext \
33540 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33541fi
33542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33543echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33544if test `eval echo '${'$as_ac_var'}'` = yes; then
33545 cat >>confdefs.h <<_ACEOF
33546#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33547_ACEOF
33548 WCSLEN_FOUND=1
33549fi
33550done
33551
33552
33553 if test "$WCSLEN_FOUND" = 0; then
33554 if test "$TOOLKIT" = "MSW"; then
33555 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33556echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33557if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33558 echo $ECHO_N "(cached) $ECHO_C" >&6
33559else
33560 ac_check_lib_save_LIBS=$LIBS
33561LIBS="-lmsvcrt $LIBS"
33562cat >conftest.$ac_ext <<_ACEOF
33563/* confdefs.h. */
33564_ACEOF
33565cat confdefs.h >>conftest.$ac_ext
33566cat >>conftest.$ac_ext <<_ACEOF
33567/* end confdefs.h. */
33568
33569/* Override any gcc2 internal prototype to avoid an error. */
33570#ifdef __cplusplus
33571extern "C"
33572#endif
33573/* We use char because int might match the return type of a gcc2
33574 builtin and then its argument prototype would still apply. */
33575char wcslen ();
33576int
33577main ()
33578{
33579wcslen ();
33580 ;
33581 return 0;
33582}
33583_ACEOF
33584rm -f conftest.$ac_objext conftest$ac_exeext
33585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33586 (eval $ac_link) 2>conftest.er1
a848cd7e 33587 ac_status=$?
ac1cb8d3
VS
33588 grep -v '^ *+' conftest.er1 >conftest.err
33589 rm -f conftest.er1
33590 cat conftest.err >&5
a848cd7e
SC
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); } &&
6954625c 33593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33595 (eval $ac_try) 2>&5
33596 ac_status=$?
33597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598 (exit $ac_status); }; } &&
33599 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33601 (eval $ac_try) 2>&5
33602 ac_status=$?
33603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604 (exit $ac_status); }; }; then
33605 ac_cv_lib_msvcrt_wcslen=yes
33606else
33607 echo "$as_me: failed program was:" >&5
33608sed 's/^/| /' conftest.$ac_ext >&5
33609
33610ac_cv_lib_msvcrt_wcslen=no
33611fi
ac1cb8d3
VS
33612rm -f conftest.err conftest.$ac_objext \
33613 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33614LIBS=$ac_check_lib_save_LIBS
33615fi
33616echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33617echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33618if test $ac_cv_lib_msvcrt_wcslen = yes; then
33619 WCHAR_OK=1
33620fi
33621
33622 else
33623 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33624echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33625if test "${ac_cv_lib_w_wcslen+set}" = set; then
33626 echo $ECHO_N "(cached) $ECHO_C" >&6
33627else
33628 ac_check_lib_save_LIBS=$LIBS
33629LIBS="-lw $LIBS"
33630cat >conftest.$ac_ext <<_ACEOF
33631/* confdefs.h. */
33632_ACEOF
33633cat confdefs.h >>conftest.$ac_ext
33634cat >>conftest.$ac_ext <<_ACEOF
33635/* end confdefs.h. */
33636
33637/* Override any gcc2 internal prototype to avoid an error. */
33638#ifdef __cplusplus
33639extern "C"
33640#endif
33641/* We use char because int might match the return type of a gcc2
33642 builtin and then its argument prototype would still apply. */
33643char wcslen ();
33644int
33645main ()
33646{
33647wcslen ();
33648 ;
33649 return 0;
33650}
33651_ACEOF
33652rm -f conftest.$ac_objext conftest$ac_exeext
33653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33654 (eval $ac_link) 2>conftest.er1
a848cd7e 33655 ac_status=$?
ac1cb8d3
VS
33656 grep -v '^ *+' conftest.er1 >conftest.err
33657 rm -f conftest.er1
33658 cat conftest.err >&5
a848cd7e
SC
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); } &&
6954625c 33661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33663 (eval $ac_try) 2>&5
33664 ac_status=$?
33665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666 (exit $ac_status); }; } &&
33667 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33669 (eval $ac_try) 2>&5
33670 ac_status=$?
33671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672 (exit $ac_status); }; }; then
33673 ac_cv_lib_w_wcslen=yes
33674else
33675 echo "$as_me: failed program was:" >&5
33676sed 's/^/| /' conftest.$ac_ext >&5
33677
33678ac_cv_lib_w_wcslen=no
33679fi
ac1cb8d3
VS
33680rm -f conftest.err conftest.$ac_objext \
33681 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33682LIBS=$ac_check_lib_save_LIBS
33683fi
33684echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33685echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33686if test $ac_cv_lib_w_wcslen = yes; then
33687
33688 WCHAR_LINK=" -lw"
33689 WCSLEN_FOUND=1
33690
33691fi
33692
33693 fi
33694 fi
33695
33696 if test "$WCSLEN_FOUND" = 1; then
33697 cat >>confdefs.h <<\_ACEOF
33698#define HAVE_WCSLEN 1
33699_ACEOF
33700
33701 fi
33702
efdf6afe 33703 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33704 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33705 fi
33706
efdf6afe
VZ
33707 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33708echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33709if test "${ac_cv_type_mbstate_t+set}" = set; then
33710 echo $ECHO_N "(cached) $ECHO_C" >&6
33711else
33712 cat >conftest.$ac_ext <<_ACEOF
33713/* confdefs.h. */
33714_ACEOF
33715cat confdefs.h >>conftest.$ac_ext
33716cat >>conftest.$ac_ext <<_ACEOF
33717/* end confdefs.h. */
33718#include <wchar.h>
33719
33720int
33721main ()
33722{
33723if ((mbstate_t *) 0)
33724 return 0;
33725if (sizeof (mbstate_t))
33726 return 0;
33727 ;
33728 return 0;
33729}
33730_ACEOF
33731rm -f conftest.$ac_objext
33732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33733 (eval $ac_compile) 2>conftest.er1
33734 ac_status=$?
33735 grep -v '^ *+' conftest.er1 >conftest.err
33736 rm -f conftest.er1
33737 cat conftest.err >&5
33738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739 (exit $ac_status); } &&
6954625c 33740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
33741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33742 (eval $ac_try) 2>&5
33743 ac_status=$?
33744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745 (exit $ac_status); }; } &&
33746 { ac_try='test -s conftest.$ac_objext'
33747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33748 (eval $ac_try) 2>&5
33749 ac_status=$?
33750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751 (exit $ac_status); }; }; then
33752 ac_cv_type_mbstate_t=yes
33753else
33754 echo "$as_me: failed program was:" >&5
33755sed 's/^/| /' conftest.$ac_ext >&5
33756
33757ac_cv_type_mbstate_t=no
33758fi
33759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33760fi
33761echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33762echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33763if test $ac_cv_type_mbstate_t = yes; then
33764
33765cat >>confdefs.h <<_ACEOF
33766#define HAVE_MBSTATE_T 1
33767_ACEOF
33768
a848cd7e
SC
33769
33770for ac_func in wcsrtombs
33771do
33772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33773echo "$as_me:$LINENO: checking for $ac_func" >&5
33774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33775if eval "test \"\${$as_ac_var+set}\" = set"; then
33776 echo $ECHO_N "(cached) $ECHO_C" >&6
33777else
33778 cat >conftest.$ac_ext <<_ACEOF
33779/* confdefs.h. */
33780_ACEOF
33781cat confdefs.h >>conftest.$ac_ext
33782cat >>conftest.$ac_ext <<_ACEOF
33783/* end confdefs.h. */
ac1cb8d3
VS
33784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33786#define $ac_func innocuous_$ac_func
33787
a848cd7e
SC
33788/* System header to define __stub macros and hopefully few prototypes,
33789 which can conflict with char $ac_func (); below.
33790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33791 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33792
a848cd7e
SC
33793#ifdef __STDC__
33794# include <limits.h>
33795#else
33796# include <assert.h>
33797#endif
ac1cb8d3
VS
33798
33799#undef $ac_func
33800
a848cd7e
SC
33801/* Override any gcc2 internal prototype to avoid an error. */
33802#ifdef __cplusplus
33803extern "C"
33804{
33805#endif
33806/* We use char because int might match the return type of a gcc2
33807 builtin and then its argument prototype would still apply. */
33808char $ac_func ();
33809/* The GNU C library defines this for functions which it implements
33810 to always fail with ENOSYS. Some functions are actually named
33811 something starting with __ and the normal name is an alias. */
33812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33813choke me
33814#else
33815char (*f) () = $ac_func;
33816#endif
33817#ifdef __cplusplus
33818}
33819#endif
33820
33821int
33822main ()
33823{
33824return f != $ac_func;
33825 ;
33826 return 0;
33827}
33828_ACEOF
33829rm -f conftest.$ac_objext conftest$ac_exeext
33830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33831 (eval $ac_link) 2>conftest.er1
a848cd7e 33832 ac_status=$?
ac1cb8d3
VS
33833 grep -v '^ *+' conftest.er1 >conftest.err
33834 rm -f conftest.er1
33835 cat conftest.err >&5
a848cd7e
SC
33836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837 (exit $ac_status); } &&
6954625c 33838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33840 (eval $ac_try) 2>&5
33841 ac_status=$?
33842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33843 (exit $ac_status); }; } &&
33844 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33846 (eval $ac_try) 2>&5
33847 ac_status=$?
33848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33849 (exit $ac_status); }; }; then
33850 eval "$as_ac_var=yes"
33851else
33852 echo "$as_me: failed program was:" >&5
33853sed 's/^/| /' conftest.$ac_ext >&5
33854
33855eval "$as_ac_var=no"
33856fi
ac1cb8d3
VS
33857rm -f conftest.err conftest.$ac_objext \
33858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33859fi
33860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33862if test `eval echo '${'$as_ac_var'}'` = yes; then
33863 cat >>confdefs.h <<_ACEOF
33864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33865_ACEOF
33866
33867fi
33868done
33869
efdf6afe
VZ
33870fi
33871
a848cd7e
SC
33872else
33873 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33874echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33875fi
33876
a848cd7e 33877
4a767dd5
VZ
33878
33879for ac_func in snprintf vsnprintf
a848cd7e
SC
33880do
33881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33882echo "$as_me:$LINENO: checking for $ac_func" >&5
33883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33884if eval "test \"\${$as_ac_var+set}\" = set"; then
33885 echo $ECHO_N "(cached) $ECHO_C" >&6
33886else
33887 cat >conftest.$ac_ext <<_ACEOF
33888/* confdefs.h. */
33889_ACEOF
33890cat confdefs.h >>conftest.$ac_ext
33891cat >>conftest.$ac_ext <<_ACEOF
33892/* end confdefs.h. */
ac1cb8d3
VS
33893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33895#define $ac_func innocuous_$ac_func
33896
a848cd7e
SC
33897/* System header to define __stub macros and hopefully few prototypes,
33898 which can conflict with char $ac_func (); below.
33899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33900 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33901
a848cd7e
SC
33902#ifdef __STDC__
33903# include <limits.h>
33904#else
33905# include <assert.h>
33906#endif
ac1cb8d3
VS
33907
33908#undef $ac_func
33909
a848cd7e
SC
33910/* Override any gcc2 internal prototype to avoid an error. */
33911#ifdef __cplusplus
33912extern "C"
33913{
33914#endif
33915/* We use char because int might match the return type of a gcc2
33916 builtin and then its argument prototype would still apply. */
33917char $ac_func ();
33918/* The GNU C library defines this for functions which it implements
33919 to always fail with ENOSYS. Some functions are actually named
33920 something starting with __ and the normal name is an alias. */
33921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33922choke me
33923#else
33924char (*f) () = $ac_func;
33925#endif
33926#ifdef __cplusplus
33927}
33928#endif
33929
33930int
33931main ()
33932{
33933return f != $ac_func;
33934 ;
33935 return 0;
33936}
33937_ACEOF
33938rm -f conftest.$ac_objext conftest$ac_exeext
33939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33940 (eval $ac_link) 2>conftest.er1
a848cd7e 33941 ac_status=$?
ac1cb8d3
VS
33942 grep -v '^ *+' conftest.er1 >conftest.err
33943 rm -f conftest.er1
33944 cat conftest.err >&5
a848cd7e
SC
33945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33946 (exit $ac_status); } &&
6954625c 33947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33949 (eval $ac_try) 2>&5
33950 ac_status=$?
33951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952 (exit $ac_status); }; } &&
33953 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33955 (eval $ac_try) 2>&5
33956 ac_status=$?
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); }; }; then
33959 eval "$as_ac_var=yes"
33960else
33961 echo "$as_me: failed program was:" >&5
33962sed 's/^/| /' conftest.$ac_ext >&5
33963
33964eval "$as_ac_var=no"
33965fi
ac1cb8d3
VS
33966rm -f conftest.err conftest.$ac_objext \
33967 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33968fi
33969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33970echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33971if test `eval echo '${'$as_ac_var'}'` = yes; then
33972 cat >>confdefs.h <<_ACEOF
33973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33974_ACEOF
33975
33976fi
33977done
33978
33979
33980if test "$ac_cv_func_vsnprintf" = "yes"; then
33981 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33982echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33983if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33984 echo $ECHO_N "(cached) $ECHO_C" >&6
33985else
33986
efdf6afe 33987 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33988/* confdefs.h. */
33989_ACEOF
33990cat confdefs.h >>conftest.$ac_ext
33991cat >>conftest.$ac_ext <<_ACEOF
33992/* end confdefs.h. */
33993
33994 #include <stdio.h>
33995 #include <stdarg.h>
efdf6afe
VZ
33996 #ifdef __MSL__
33997 #if __MSL__ >= 0x6000
33998 namespace std {}
33999 using namespace std;
34000 #endif
34001 #endif
a848cd7e
SC
34002
34003int
34004main ()
34005{
34006
34007 char *buf;
34008 va_list ap;
62fa8b3a 34009 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34010
34011 ;
34012 return 0;
34013}
34014_ACEOF
34015rm -f conftest.$ac_objext
34016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34017 (eval $ac_compile) 2>conftest.er1
34018 ac_status=$?
34019 grep -v '^ *+' conftest.er1 >conftest.err
34020 rm -f conftest.er1
34021 cat conftest.err >&5
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); } &&
6954625c 34024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
34025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34026 (eval $ac_try) 2>&5
34027 ac_status=$?
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; } &&
34030 { ac_try='test -s conftest.$ac_objext'
34031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34032 (eval $ac_try) 2>&5
34033 ac_status=$?
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); }; }; then
34036 wx_cv_func_vsnprintf_decl=yes
34037else
34038 echo "$as_me: failed program was:" >&5
34039sed 's/^/| /' conftest.$ac_ext >&5
34040
a848cd7e
SC
34041wx_cv_func_vsnprintf_decl=no
34042
34043fi
ac1cb8d3 34044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34045
34046
34047fi
34048echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34049echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34050
34051 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34052 cat >>confdefs.h <<\_ACEOF
34053#define HAVE_VSNPRINTF_DECL 1
34054_ACEOF
34055
62fa8b3a
MW
34056
34057 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34058echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34059if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34060 echo $ECHO_N "(cached) $ECHO_C" >&6
34061else
34062
34063 cat >conftest.$ac_ext <<_ACEOF
34064/* confdefs.h. */
34065_ACEOF
34066cat confdefs.h >>conftest.$ac_ext
34067cat >>conftest.$ac_ext <<_ACEOF
34068/* end confdefs.h. */
34069
34070 #include <stdio.h>
34071 #include <stdarg.h>
34072 #ifdef __MSL__
34073 #if __MSL__ >= 0x6000
34074 namespace std {}
34075 using namespace std;
34076 #endif
34077 #endif
34078
34079int
34080main ()
34081{
34082
34083 char *buf;
34084 va_list ap;
34085 const char *fmt = "%s";
34086 vsnprintf(buf, 10u, fmt, ap);
34087
34088 ;
34089 return 0;
34090}
34091_ACEOF
34092rm -f conftest.$ac_objext
34093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34094 (eval $ac_compile) 2>conftest.er1
34095 ac_status=$?
34096 grep -v '^ *+' conftest.er1 >conftest.err
34097 rm -f conftest.er1
34098 cat conftest.err >&5
34099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100 (exit $ac_status); } &&
6954625c 34101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34103 (eval $ac_try) 2>&5
34104 ac_status=$?
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); }; } &&
34107 { ac_try='test -s conftest.$ac_objext'
34108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34109 (eval $ac_try) 2>&5
34110 ac_status=$?
34111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34112 (exit $ac_status); }; }; then
34113 wx_cv_func_broken_vsnprintf_decl=no
34114else
34115 echo "$as_me: failed program was:" >&5
34116sed 's/^/| /' conftest.$ac_ext >&5
34117
34118wx_cv_func_broken_vsnprintf_decl=yes
34119
34120fi
34121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34122
34123
34124fi
34125echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34126echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34127
34128 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34129 cat >>confdefs.h <<\_ACEOF
34130#define HAVE_BROKEN_VSNPRINTF_DECL 1
34131_ACEOF
34132
34133 fi
a848cd7e
SC
34134 fi
34135fi
34136
4a767dd5
VZ
34137if test "$ac_cv_func_snprintf" = "yes"; then
34138 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34139echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34140if test "${wx_cv_func_snprintf_decl+set}" = set; then
34141 echo $ECHO_N "(cached) $ECHO_C" >&6
34142else
34143
34144 cat >conftest.$ac_ext <<_ACEOF
34145/* confdefs.h. */
34146_ACEOF
34147cat confdefs.h >>conftest.$ac_ext
34148cat >>conftest.$ac_ext <<_ACEOF
34149/* end confdefs.h. */
34150
34151 #include <stdio.h>
34152 #include <stdarg.h>
34153 #ifdef __MSL__
34154 #if __MSL__ >= 0x6000
34155 namespace std {}
34156 using namespace std;
34157 #endif
34158 #endif
34159
34160int
34161main ()
34162{
34163
34164 char *buf;
62fa8b3a 34165 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
34166
34167 ;
34168 return 0;
34169}
34170_ACEOF
34171rm -f conftest.$ac_objext
34172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34173 (eval $ac_compile) 2>conftest.er1
34174 ac_status=$?
34175 grep -v '^ *+' conftest.er1 >conftest.err
34176 rm -f conftest.er1
34177 cat conftest.err >&5
34178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179 (exit $ac_status); } &&
6954625c 34180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
34181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34182 (eval $ac_try) 2>&5
34183 ac_status=$?
34184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185 (exit $ac_status); }; } &&
34186 { ac_try='test -s conftest.$ac_objext'
34187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34188 (eval $ac_try) 2>&5
34189 ac_status=$?
34190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34191 (exit $ac_status); }; }; then
34192 wx_cv_func_snprintf_decl=yes
34193else
34194 echo "$as_me: failed program was:" >&5
34195sed 's/^/| /' conftest.$ac_ext >&5
34196
34197wx_cv_func_snprintf_decl=no
34198
34199fi
34200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34201
34202
34203fi
34204echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34205echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34206
34207 if test "$wx_cv_func_snprintf_decl" = "yes"; then
34208 cat >>confdefs.h <<\_ACEOF
34209#define HAVE_SNPRINTF_DECL 1
34210_ACEOF
34211
62fa8b3a
MW
34212
34213 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34214echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34215if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34216 echo $ECHO_N "(cached) $ECHO_C" >&6
34217else
34218
34219 cat >conftest.$ac_ext <<_ACEOF
34220/* confdefs.h. */
34221_ACEOF
34222cat confdefs.h >>conftest.$ac_ext
34223cat >>conftest.$ac_ext <<_ACEOF
34224/* end confdefs.h. */
34225
34226 #include <stdio.h>
34227 #include <stdarg.h>
34228 #ifdef __MSL__
34229 #if __MSL__ >= 0x6000
34230 namespace std {}
34231 using namespace std;
34232 #endif
34233 #endif
34234
34235int
34236main ()
34237{
34238
34239 char *buf;
34240 const char *fmt = "%s";
34241 snprintf(buf, 10u, fmt, "wx");
34242
34243 ;
34244 return 0;
34245}
34246_ACEOF
34247rm -f conftest.$ac_objext
34248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34249 (eval $ac_compile) 2>conftest.er1
34250 ac_status=$?
34251 grep -v '^ *+' conftest.er1 >conftest.err
34252 rm -f conftest.er1
34253 cat conftest.err >&5
34254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255 (exit $ac_status); } &&
6954625c 34256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34258 (eval $ac_try) 2>&5
34259 ac_status=$?
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); }; } &&
34262 { ac_try='test -s conftest.$ac_objext'
34263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34264 (eval $ac_try) 2>&5
34265 ac_status=$?
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); }; }; then
34268 wx_cv_func_broken_snprintf_decl=no
34269else
34270 echo "$as_me: failed program was:" >&5
34271sed 's/^/| /' conftest.$ac_ext >&5
34272
34273wx_cv_func_broken_snprintf_decl=yes
34274
34275fi
34276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34277
34278
34279fi
34280echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34281echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34282
34283 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34284 cat >>confdefs.h <<\_ACEOF
34285#define HAVE_BROKEN_SNPRINTF_DECL 1
34286_ACEOF
34287
34288 fi
4a767dd5
VZ
34289 fi
34290fi
34291
a848cd7e
SC
34292if test "$wxUSE_UNICODE" = yes; then
34293
34294
34295
fbe47c7b
VS
34296
34297
34298
34299for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
34300do
34301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34302echo "$as_me:$LINENO: checking for $ac_func" >&5
34303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34304if eval "test \"\${$as_ac_var+set}\" = set"; then
34305 echo $ECHO_N "(cached) $ECHO_C" >&6
34306else
34307 cat >conftest.$ac_ext <<_ACEOF
34308/* confdefs.h. */
34309_ACEOF
34310cat confdefs.h >>conftest.$ac_ext
34311cat >>conftest.$ac_ext <<_ACEOF
34312/* end confdefs.h. */
ac1cb8d3
VS
34313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34315#define $ac_func innocuous_$ac_func
34316
a848cd7e
SC
34317/* System header to define __stub macros and hopefully few prototypes,
34318 which can conflict with char $ac_func (); below.
34319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34320 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34321
a848cd7e
SC
34322#ifdef __STDC__
34323# include <limits.h>
34324#else
34325# include <assert.h>
34326#endif
ac1cb8d3
VS
34327
34328#undef $ac_func
34329
a848cd7e
SC
34330/* Override any gcc2 internal prototype to avoid an error. */
34331#ifdef __cplusplus
34332extern "C"
34333{
34334#endif
34335/* We use char because int might match the return type of a gcc2
34336 builtin and then its argument prototype would still apply. */
34337char $ac_func ();
34338/* The GNU C library defines this for functions which it implements
34339 to always fail with ENOSYS. Some functions are actually named
34340 something starting with __ and the normal name is an alias. */
34341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34342choke me
34343#else
34344char (*f) () = $ac_func;
34345#endif
34346#ifdef __cplusplus
34347}
34348#endif
34349
34350int
34351main ()
34352{
34353return f != $ac_func;
34354 ;
34355 return 0;
34356}
34357_ACEOF
34358rm -f conftest.$ac_objext conftest$ac_exeext
34359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34360 (eval $ac_link) 2>conftest.er1
a848cd7e 34361 ac_status=$?
ac1cb8d3
VS
34362 grep -v '^ *+' conftest.er1 >conftest.err
34363 rm -f conftest.er1
34364 cat conftest.err >&5
a848cd7e
SC
34365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34366 (exit $ac_status); } &&
6954625c 34367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34369 (eval $ac_try) 2>&5
34370 ac_status=$?
34371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372 (exit $ac_status); }; } &&
34373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34375 (eval $ac_try) 2>&5
34376 ac_status=$?
34377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378 (exit $ac_status); }; }; then
34379 eval "$as_ac_var=yes"
34380else
34381 echo "$as_me: failed program was:" >&5
34382sed 's/^/| /' conftest.$ac_ext >&5
34383
34384eval "$as_ac_var=no"
34385fi
ac1cb8d3
VS
34386rm -f conftest.err conftest.$ac_objext \
34387 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34388fi
34389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34390echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34391if test `eval echo '${'$as_ac_var'}'` = yes; then
34392 cat >>confdefs.h <<_ACEOF
34393#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34394_ACEOF
34395
34396fi
34397done
34398
34399
34400 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34401echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34402 cat >conftest.$ac_ext <<_ACEOF
34403/* confdefs.h. */
34404_ACEOF
34405cat confdefs.h >>conftest.$ac_ext
34406cat >>conftest.$ac_ext <<_ACEOF
34407/* end confdefs.h. */
34408#include <wchar.h>
34409int
34410main ()
34411{
34412&_vsnwprintf;
34413 ;
34414 return 0;
34415}
34416_ACEOF
34417rm -f conftest.$ac_objext
34418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34419 (eval $ac_compile) 2>conftest.er1
a848cd7e 34420 ac_status=$?
ac1cb8d3
VS
34421 grep -v '^ *+' conftest.er1 >conftest.err
34422 rm -f conftest.er1
34423 cat conftest.err >&5
a848cd7e
SC
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); } &&
6954625c 34426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34428 (eval $ac_try) 2>&5
34429 ac_status=$?
34430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431 (exit $ac_status); }; } &&
34432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34434 (eval $ac_try) 2>&5
34435 ac_status=$?
34436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437 (exit $ac_status); }; }; then
34438 echo "$as_me:$LINENO: result: yes" >&5
34439echo "${ECHO_T}yes" >&6
34440 cat >>confdefs.h <<\_ACEOF
34441#define HAVE__VSNWPRINTF 1
34442_ACEOF
34443
34444else
34445 echo "$as_me: failed program was:" >&5
34446sed 's/^/| /' conftest.$ac_ext >&5
34447
34448echo "$as_me:$LINENO: result: no" >&5
34449echo "${ECHO_T}no" >&6
34450fi
ac1cb8d3 34451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34452fi
34453
6ebeb4c7
VZ
34454if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34455
34456for ac_func in fnmatch
34457do
34458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34459echo "$as_me:$LINENO: checking for $ac_func" >&5
34460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34461if eval "test \"\${$as_ac_var+set}\" = set"; then
34462 echo $ECHO_N "(cached) $ECHO_C" >&6
34463else
34464 cat >conftest.$ac_ext <<_ACEOF
34465/* confdefs.h. */
34466_ACEOF
34467cat confdefs.h >>conftest.$ac_ext
34468cat >>conftest.$ac_ext <<_ACEOF
34469/* end confdefs.h. */
34470/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34472#define $ac_func innocuous_$ac_func
34473
34474/* System header to define __stub macros and hopefully few prototypes,
34475 which can conflict with char $ac_func (); below.
34476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34477 <limits.h> exists even on freestanding compilers. */
34478
34479#ifdef __STDC__
34480# include <limits.h>
34481#else
34482# include <assert.h>
34483#endif
34484
34485#undef $ac_func
34486
34487/* Override any gcc2 internal prototype to avoid an error. */
34488#ifdef __cplusplus
34489extern "C"
34490{
34491#endif
34492/* We use char because int might match the return type of a gcc2
34493 builtin and then its argument prototype would still apply. */
34494char $ac_func ();
34495/* The GNU C library defines this for functions which it implements
34496 to always fail with ENOSYS. Some functions are actually named
34497 something starting with __ and the normal name is an alias. */
34498#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34499choke me
34500#else
34501char (*f) () = $ac_func;
34502#endif
34503#ifdef __cplusplus
34504}
34505#endif
34506
34507int
34508main ()
34509{
34510return f != $ac_func;
34511 ;
34512 return 0;
34513}
34514_ACEOF
34515rm -f conftest.$ac_objext conftest$ac_exeext
34516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34517 (eval $ac_link) 2>conftest.er1
34518 ac_status=$?
34519 grep -v '^ *+' conftest.er1 >conftest.err
34520 rm -f conftest.er1
34521 cat conftest.err >&5
34522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); } &&
6954625c 34524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34526 (eval $ac_try) 2>&5
34527 ac_status=$?
34528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34529 (exit $ac_status); }; } &&
34530 { ac_try='test -s conftest$ac_exeext'
34531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34532 (eval $ac_try) 2>&5
34533 ac_status=$?
34534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535 (exit $ac_status); }; }; then
34536 eval "$as_ac_var=yes"
34537else
34538 echo "$as_me: failed program was:" >&5
34539sed 's/^/| /' conftest.$ac_ext >&5
34540
34541eval "$as_ac_var=no"
34542fi
34543rm -f conftest.err conftest.$ac_objext \
34544 conftest$ac_exeext conftest.$ac_ext
34545fi
34546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34547echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34548if test `eval echo '${'$as_ac_var'}'` = yes; then
34549 cat >>confdefs.h <<_ACEOF
34550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34551_ACEOF
34552
34553fi
34554done
34555
34556fi
34557
34558if test "$wxUSE_FILE" = "yes"; then
34559
34560for ac_func in fsync
34561do
34562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34563echo "$as_me:$LINENO: checking for $ac_func" >&5
34564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34565if eval "test \"\${$as_ac_var+set}\" = set"; then
34566 echo $ECHO_N "(cached) $ECHO_C" >&6
34567else
34568 cat >conftest.$ac_ext <<_ACEOF
34569/* confdefs.h. */
34570_ACEOF
34571cat confdefs.h >>conftest.$ac_ext
34572cat >>conftest.$ac_ext <<_ACEOF
34573/* end confdefs.h. */
34574/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34576#define $ac_func innocuous_$ac_func
34577
34578/* System header to define __stub macros and hopefully few prototypes,
34579 which can conflict with char $ac_func (); below.
34580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34581 <limits.h> exists even on freestanding compilers. */
34582
34583#ifdef __STDC__
34584# include <limits.h>
34585#else
34586# include <assert.h>
34587#endif
34588
34589#undef $ac_func
34590
34591/* Override any gcc2 internal prototype to avoid an error. */
34592#ifdef __cplusplus
34593extern "C"
34594{
34595#endif
34596/* We use char because int might match the return type of a gcc2
34597 builtin and then its argument prototype would still apply. */
34598char $ac_func ();
34599/* The GNU C library defines this for functions which it implements
34600 to always fail with ENOSYS. Some functions are actually named
34601 something starting with __ and the normal name is an alias. */
34602#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34603choke me
34604#else
34605char (*f) () = $ac_func;
34606#endif
34607#ifdef __cplusplus
34608}
34609#endif
34610
34611int
34612main ()
34613{
34614return f != $ac_func;
34615 ;
34616 return 0;
34617}
34618_ACEOF
34619rm -f conftest.$ac_objext conftest$ac_exeext
34620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34621 (eval $ac_link) 2>conftest.er1
34622 ac_status=$?
34623 grep -v '^ *+' conftest.er1 >conftest.err
34624 rm -f conftest.er1
34625 cat conftest.err >&5
34626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34627 (exit $ac_status); } &&
6954625c 34628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34630 (eval $ac_try) 2>&5
34631 ac_status=$?
34632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633 (exit $ac_status); }; } &&
34634 { ac_try='test -s conftest$ac_exeext'
34635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34636 (eval $ac_try) 2>&5
34637 ac_status=$?
34638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34639 (exit $ac_status); }; }; then
34640 eval "$as_ac_var=yes"
34641else
34642 echo "$as_me: failed program was:" >&5
34643sed 's/^/| /' conftest.$ac_ext >&5
34644
34645eval "$as_ac_var=no"
34646fi
34647rm -f conftest.err conftest.$ac_objext \
34648 conftest$ac_exeext conftest.$ac_ext
34649fi
34650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34651echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34652if test `eval echo '${'$as_ac_var'}'` = yes; then
34653 cat >>confdefs.h <<_ACEOF
34654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34655_ACEOF
34656
34657fi
34658done
34659
34660fi
a848cd7e
SC
34661
34662
34663if test "$TOOLKIT" != "MSW"; then
34664
34665
a848cd7e
SC
34666
34667
34668
34669# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34670if test "${with_libiconv_prefix+set}" = set; then
34671 withval="$with_libiconv_prefix"
34672
34673 for dir in `echo "$withval" | tr : ' '`; do
34674 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34675 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34676 done
34677
34678fi;
34679
34680 echo "$as_me:$LINENO: checking for iconv" >&5
34681echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34682if test "${am_cv_func_iconv+set}" = set; then
34683 echo $ECHO_N "(cached) $ECHO_C" >&6
34684else
34685
34686 am_cv_func_iconv="no, consider installing GNU libiconv"
34687 am_cv_lib_iconv=no
34688 cat >conftest.$ac_ext <<_ACEOF
34689/* confdefs.h. */
34690_ACEOF
34691cat confdefs.h >>conftest.$ac_ext
34692cat >>conftest.$ac_ext <<_ACEOF
34693/* end confdefs.h. */
34694#include <stdlib.h>
34695#include <iconv.h>
34696int
34697main ()
34698{
34699iconv_t cd = iconv_open("","");
34700 iconv(cd,NULL,NULL,NULL,NULL);
34701 iconv_close(cd);
34702 ;
34703 return 0;
34704}
34705_ACEOF
34706rm -f conftest.$ac_objext conftest$ac_exeext
34707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34708 (eval $ac_link) 2>conftest.er1
a848cd7e 34709 ac_status=$?
ac1cb8d3
VS
34710 grep -v '^ *+' conftest.er1 >conftest.err
34711 rm -f conftest.er1
34712 cat conftest.err >&5
a848cd7e
SC
34713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34714 (exit $ac_status); } &&
6954625c 34715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34717 (eval $ac_try) 2>&5
34718 ac_status=$?
34719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720 (exit $ac_status); }; } &&
34721 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34723 (eval $ac_try) 2>&5
34724 ac_status=$?
34725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726 (exit $ac_status); }; }; then
34727 am_cv_func_iconv=yes
34728else
34729 echo "$as_me: failed program was:" >&5
34730sed 's/^/| /' conftest.$ac_ext >&5
34731
34732fi
ac1cb8d3
VS
34733rm -f conftest.err conftest.$ac_objext \
34734 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34735 if test "$am_cv_func_iconv" != yes; then
34736 am_save_LIBS="$LIBS"
34737 LIBS="$LIBS -liconv"
34738 cat >conftest.$ac_ext <<_ACEOF
34739/* confdefs.h. */
34740_ACEOF
34741cat confdefs.h >>conftest.$ac_ext
34742cat >>conftest.$ac_ext <<_ACEOF
34743/* end confdefs.h. */
34744#include <stdlib.h>
34745#include <iconv.h>
34746int
34747main ()
34748{
34749iconv_t cd = iconv_open("","");
34750 iconv(cd,NULL,NULL,NULL,NULL);
34751 iconv_close(cd);
34752 ;
34753 return 0;
34754}
34755_ACEOF
34756rm -f conftest.$ac_objext conftest$ac_exeext
34757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34758 (eval $ac_link) 2>conftest.er1
a848cd7e 34759 ac_status=$?
ac1cb8d3
VS
34760 grep -v '^ *+' conftest.er1 >conftest.err
34761 rm -f conftest.er1
34762 cat conftest.err >&5
a848cd7e
SC
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); } &&
6954625c 34765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34767 (eval $ac_try) 2>&5
34768 ac_status=$?
34769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); }; } &&
34771 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34773 (eval $ac_try) 2>&5
34774 ac_status=$?
34775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776 (exit $ac_status); }; }; then
34777 am_cv_lib_iconv=yes
34778 am_cv_func_iconv=yes
34779else
34780 echo "$as_me: failed program was:" >&5
34781sed 's/^/| /' conftest.$ac_ext >&5
34782
34783fi
ac1cb8d3
VS
34784rm -f conftest.err conftest.$ac_objext \
34785 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34786 LIBS="$am_save_LIBS"
34787 fi
34788
34789fi
34790echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34791echo "${ECHO_T}$am_cv_func_iconv" >&6
34792 if test "$am_cv_func_iconv" = yes; then
34793
34794cat >>confdefs.h <<\_ACEOF
34795#define HAVE_ICONV 1
34796_ACEOF
34797
34798 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34799echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34800if test "${wx_cv_func_iconv_const+set}" = set; then
34801 echo $ECHO_N "(cached) $ECHO_C" >&6
34802else
34803 cat >conftest.$ac_ext <<_ACEOF
34804/* confdefs.h. */
34805_ACEOF
34806cat confdefs.h >>conftest.$ac_ext
34807cat >>conftest.$ac_ext <<_ACEOF
34808/* end confdefs.h. */
34809
34810#include <stdlib.h>
34811#include <iconv.h>
34812extern
34813#ifdef __cplusplus
34814"C"
34815#endif
34816#if defined(__STDC__) || defined(__cplusplus)
34817size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34818#else
34819size_t iconv();
34820#endif
34821
34822int
34823main ()
34824{
34825
34826 ;
34827 return 0;
34828}
34829_ACEOF
34830rm -f conftest.$ac_objext
34831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34832 (eval $ac_compile) 2>conftest.er1
a848cd7e 34833 ac_status=$?
ac1cb8d3
VS
34834 grep -v '^ *+' conftest.er1 >conftest.err
34835 rm -f conftest.er1
34836 cat conftest.err >&5
a848cd7e
SC
34837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838 (exit $ac_status); } &&
6954625c 34839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34841 (eval $ac_try) 2>&5
34842 ac_status=$?
34843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844 (exit $ac_status); }; } &&
34845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34847 (eval $ac_try) 2>&5
34848 ac_status=$?
34849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850 (exit $ac_status); }; }; then
34851 wx_cv_func_iconv_const="no"
34852else
34853 echo "$as_me: failed program was:" >&5
34854sed 's/^/| /' conftest.$ac_ext >&5
34855
34856wx_cv_func_iconv_const="yes"
34857
34858fi
ac1cb8d3 34859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34860
34861fi
34862echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34863echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34864
34865 iconv_const=
34866 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34867 iconv_const="const"
34868 fi
34869
34870
34871cat >>confdefs.h <<_ACEOF
34872#define ICONV_CONST $iconv_const
34873_ACEOF
34874
34875 fi
34876 LIBICONV=
34877 if test "$am_cv_lib_iconv" = yes; then
34878 LIBICONV="-liconv"
34879 fi
34880
34881
34882LIBS="$LIBICONV $LIBS"
a848cd7e
SC
34883
34884if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34885
34886for ac_func in sigaction
34887do
34888as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34889echo "$as_me:$LINENO: checking for $ac_func" >&5
34890echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34891if eval "test \"\${$as_ac_var+set}\" = set"; then
34892 echo $ECHO_N "(cached) $ECHO_C" >&6
34893else
34894 cat >conftest.$ac_ext <<_ACEOF
34895/* confdefs.h. */
34896_ACEOF
34897cat confdefs.h >>conftest.$ac_ext
34898cat >>conftest.$ac_ext <<_ACEOF
34899/* end confdefs.h. */
ac1cb8d3
VS
34900/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34902#define $ac_func innocuous_$ac_func
34903
a848cd7e
SC
34904/* System header to define __stub macros and hopefully few prototypes,
34905 which can conflict with char $ac_func (); below.
34906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34907 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34908
a848cd7e
SC
34909#ifdef __STDC__
34910# include <limits.h>
34911#else
34912# include <assert.h>
34913#endif
ac1cb8d3
VS
34914
34915#undef $ac_func
34916
a848cd7e
SC
34917/* Override any gcc2 internal prototype to avoid an error. */
34918#ifdef __cplusplus
34919extern "C"
34920{
34921#endif
34922/* We use char because int might match the return type of a gcc2
34923 builtin and then its argument prototype would still apply. */
34924char $ac_func ();
34925/* The GNU C library defines this for functions which it implements
34926 to always fail with ENOSYS. Some functions are actually named
34927 something starting with __ and the normal name is an alias. */
34928#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34929choke me
34930#else
34931char (*f) () = $ac_func;
34932#endif
34933#ifdef __cplusplus
34934}
34935#endif
34936
34937int
34938main ()
34939{
34940return f != $ac_func;
34941 ;
34942 return 0;
34943}
34944_ACEOF
34945rm -f conftest.$ac_objext conftest$ac_exeext
34946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34947 (eval $ac_link) 2>conftest.er1
a848cd7e 34948 ac_status=$?
ac1cb8d3
VS
34949 grep -v '^ *+' conftest.er1 >conftest.err
34950 rm -f conftest.er1
34951 cat conftest.err >&5
a848cd7e
SC
34952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953 (exit $ac_status); } &&
6954625c 34954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34956 (eval $ac_try) 2>&5
34957 ac_status=$?
34958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959 (exit $ac_status); }; } &&
34960 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34962 (eval $ac_try) 2>&5
34963 ac_status=$?
34964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965 (exit $ac_status); }; }; then
34966 eval "$as_ac_var=yes"
34967else
34968 echo "$as_me: failed program was:" >&5
34969sed 's/^/| /' conftest.$ac_ext >&5
34970
34971eval "$as_ac_var=no"
34972fi
ac1cb8d3
VS
34973rm -f conftest.err conftest.$ac_objext \
34974 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34975fi
34976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34977echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34978if test `eval echo '${'$as_ac_var'}'` = yes; then
34979 cat >>confdefs.h <<_ACEOF
34980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34981_ACEOF
34982
34983fi
34984done
34985
34986
34987 if test "$ac_cv_func_sigaction" = "no"; then
34988 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34989echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34990 wxUSE_ON_FATAL_EXCEPTION=no
34991 fi
34992
34993 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
34994 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34995echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34996if test "${wx_cv_type_sa_handler+set}" = set; then
34997 echo $ECHO_N "(cached) $ECHO_C" >&6
34998else
34999
35000 cat >conftest.$ac_ext <<_ACEOF
35001/* confdefs.h. */
35002_ACEOF
35003cat confdefs.h >>conftest.$ac_ext
35004cat >>conftest.$ac_ext <<_ACEOF
35005/* end confdefs.h. */
35006#include <signal.h>
35007int
35008main ()
35009{
35010
35011 extern void testSigHandler(int);
35012
35013 struct sigaction sa;
35014 sa.sa_handler = testSigHandler;
35015
35016 ;
35017 return 0;
35018}
35019_ACEOF
35020rm -f conftest.$ac_objext
35021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35022 (eval $ac_compile) 2>conftest.er1
a848cd7e 35023 ac_status=$?
ac1cb8d3
VS
35024 grep -v '^ *+' conftest.er1 >conftest.err
35025 rm -f conftest.er1
35026 cat conftest.err >&5
a848cd7e
SC
35027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35028 (exit $ac_status); } &&
6954625c 35029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35031 (eval $ac_try) 2>&5
35032 ac_status=$?
35033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35034 (exit $ac_status); }; } &&
35035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35037 (eval $ac_try) 2>&5
35038 ac_status=$?
35039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35040 (exit $ac_status); }; }; then
35041
35042 wx_cv_type_sa_handler=int
35043
35044else
35045 echo "$as_me: failed program was:" >&5
35046sed 's/^/| /' conftest.$ac_ext >&5
35047
35048
35049 wx_cv_type_sa_handler=void
35050
35051fi
ac1cb8d3 35052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35053
35054fi
35055echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35056echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35057
a848cd7e
SC
35058 cat >>confdefs.h <<_ACEOF
35059#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35060_ACEOF
35061
35062 fi
35063fi
35064
eaff0f0d 35065if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
35066 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35067echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35068if test "${wx_cv_func_backtrace+set}" = set; then
35069 echo $ECHO_N "(cached) $ECHO_C" >&6
35070else
35071
35072 cat >conftest.$ac_ext <<_ACEOF
35073/* confdefs.h. */
35074_ACEOF
35075cat confdefs.h >>conftest.$ac_ext
35076cat >>conftest.$ac_ext <<_ACEOF
35077/* end confdefs.h. */
35078#include <execinfo.h>
35079int
35080main ()
35081{
35082
35083 void *trace[1];
35084 char **messages;
35085
35086 backtrace(trace, 1);
35087 messages = backtrace_symbols(trace, 1);
35088
35089 ;
35090 return 0;
35091}
35092_ACEOF
35093rm -f conftest.$ac_objext
35094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35095 (eval $ac_compile) 2>conftest.er1
35096 ac_status=$?
35097 grep -v '^ *+' conftest.er1 >conftest.err
35098 rm -f conftest.er1
35099 cat conftest.err >&5
35100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101 (exit $ac_status); } &&
6954625c 35102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35104 (eval $ac_try) 2>&5
35105 ac_status=$?
35106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107 (exit $ac_status); }; } &&
35108 { ac_try='test -s conftest.$ac_objext'
35109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35110 (eval $ac_try) 2>&5
35111 ac_status=$?
35112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35113 (exit $ac_status); }; }; then
35114 wx_cv_func_backtrace=yes
35115else
35116 echo "$as_me: failed program was:" >&5
35117sed 's/^/| /' conftest.$ac_ext >&5
35118
35119wx_cv_func_backtrace=no
35120
35121fi
35122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35123
35124
35125fi
35126echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35127echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35128
35129
35130 if test "$wx_cv_func_backtrace" = "no"; then
35131 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35132echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35133 wxUSE_STACKWALKER=no
35134 else
35135 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35136echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35137if test "${wx_cv_func_cxa_demangle+set}" = set; then
35138 echo $ECHO_N "(cached) $ECHO_C" >&6
35139else
35140
35141 cat >conftest.$ac_ext <<_ACEOF
35142/* confdefs.h. */
35143_ACEOF
35144cat confdefs.h >>conftest.$ac_ext
35145cat >>conftest.$ac_ext <<_ACEOF
35146/* end confdefs.h. */
35147#include <cxxabi.h>
35148int
35149main ()
35150{
35151
35152 int rc;
35153 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35154
35155 ;
35156 return 0;
35157}
35158_ACEOF
dfe0c803
JS
35159rm -f conftest.$ac_objext conftest$ac_exeext
35160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35161 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
35162 ac_status=$?
35163 grep -v '^ *+' conftest.er1 >conftest.err
35164 rm -f conftest.er1
35165 cat conftest.err >&5
35166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167 (exit $ac_status); } &&
6954625c 35168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170 (eval $ac_try) 2>&5
35171 ac_status=$?
35172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 (exit $ac_status); }; } &&
dfe0c803 35174 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
35175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176 (eval $ac_try) 2>&5
35177 ac_status=$?
35178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179 (exit $ac_status); }; }; then
35180 wx_cv_func_cxa_demangle=yes
35181else
35182 echo "$as_me: failed program was:" >&5
35183sed 's/^/| /' conftest.$ac_ext >&5
35184
35185wx_cv_func_cxa_demangle=no
35186
35187fi
dfe0c803
JS
35188rm -f conftest.err conftest.$ac_objext \
35189 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
35190
35191
35192fi
35193echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35194echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35195
35196 if test "$wx_cv_func_cxa_demangle" = "yes"; then
35197 cat >>confdefs.h <<\_ACEOF
35198#define HAVE_CXA_DEMANGLE 1
35199_ACEOF
35200
35201 fi
35202 fi
eaff0f0d
VZ
35203fi
35204
898beab1
DE
35205if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35206 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35207echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35208 wxUSE_STACKWALKER=no
35209fi
35210
35211
a848cd7e
SC
35212
35213
35214for ac_func in mkstemp mktemp
35215do
35216as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35217echo "$as_me:$LINENO: checking for $ac_func" >&5
35218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35219if eval "test \"\${$as_ac_var+set}\" = set"; then
35220 echo $ECHO_N "(cached) $ECHO_C" >&6
35221else
35222 cat >conftest.$ac_ext <<_ACEOF
35223/* confdefs.h. */
35224_ACEOF
35225cat confdefs.h >>conftest.$ac_ext
35226cat >>conftest.$ac_ext <<_ACEOF
35227/* end confdefs.h. */
ac1cb8d3
VS
35228/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35230#define $ac_func innocuous_$ac_func
35231
a848cd7e
SC
35232/* System header to define __stub macros and hopefully few prototypes,
35233 which can conflict with char $ac_func (); below.
35234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35235 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35236
a848cd7e
SC
35237#ifdef __STDC__
35238# include <limits.h>
35239#else
35240# include <assert.h>
35241#endif
ac1cb8d3
VS
35242
35243#undef $ac_func
35244
a848cd7e
SC
35245/* Override any gcc2 internal prototype to avoid an error. */
35246#ifdef __cplusplus
35247extern "C"
35248{
35249#endif
35250/* We use char because int might match the return type of a gcc2
35251 builtin and then its argument prototype would still apply. */
35252char $ac_func ();
35253/* The GNU C library defines this for functions which it implements
35254 to always fail with ENOSYS. Some functions are actually named
35255 something starting with __ and the normal name is an alias. */
35256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35257choke me
35258#else
35259char (*f) () = $ac_func;
35260#endif
35261#ifdef __cplusplus
35262}
35263#endif
35264
35265int
35266main ()
35267{
35268return f != $ac_func;
35269 ;
35270 return 0;
35271}
35272_ACEOF
35273rm -f conftest.$ac_objext conftest$ac_exeext
35274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35275 (eval $ac_link) 2>conftest.er1
a848cd7e 35276 ac_status=$?
ac1cb8d3
VS
35277 grep -v '^ *+' conftest.er1 >conftest.err
35278 rm -f conftest.er1
35279 cat conftest.err >&5
a848cd7e
SC
35280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35281 (exit $ac_status); } &&
6954625c 35282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35284 (eval $ac_try) 2>&5
35285 ac_status=$?
35286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287 (exit $ac_status); }; } &&
35288 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35290 (eval $ac_try) 2>&5
35291 ac_status=$?
35292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35293 (exit $ac_status); }; }; then
35294 eval "$as_ac_var=yes"
35295else
35296 echo "$as_me: failed program was:" >&5
35297sed 's/^/| /' conftest.$ac_ext >&5
35298
35299eval "$as_ac_var=no"
35300fi
ac1cb8d3
VS
35301rm -f conftest.err conftest.$ac_objext \
35302 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35303fi
35304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35306if test `eval echo '${'$as_ac_var'}'` = yes; then
35307 cat >>confdefs.h <<_ACEOF
35308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35309_ACEOF
35310 break
35311fi
35312done
35313
35314
35315echo "$as_me:$LINENO: checking for statfs" >&5
35316echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35317if test "${wx_cv_func_statfs+set}" = set; then
35318 echo $ECHO_N "(cached) $ECHO_C" >&6
35319else
35320 cat >conftest.$ac_ext <<_ACEOF
35321/* confdefs.h. */
35322_ACEOF
35323cat confdefs.h >>conftest.$ac_ext
35324cat >>conftest.$ac_ext <<_ACEOF
35325/* end confdefs.h. */
35326
35327 #if defined(__BSD__)
84ae7ca4
VZ
35328 #include <sys/param.h>
35329 #include <sys/mount.h>
a848cd7e 35330 #else
84ae7ca4 35331 #include <sys/vfs.h>
a848cd7e
SC
35332 #endif
35333
35334int
35335main ()
35336{
35337
35338 long l;
35339 struct statfs fs;
35340 statfs("/", &fs);
35341 l = fs.f_bsize;
35342 l += fs.f_blocks;
35343 l += fs.f_bavail;
35344
35345 ;
35346 return 0;
35347}
35348_ACEOF
35349rm -f conftest.$ac_objext
35350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35351 (eval $ac_compile) 2>conftest.er1
a848cd7e 35352 ac_status=$?
ac1cb8d3
VS
35353 grep -v '^ *+' conftest.er1 >conftest.err
35354 rm -f conftest.er1
35355 cat conftest.err >&5
a848cd7e
SC
35356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357 (exit $ac_status); } &&
6954625c 35358 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360 (eval $ac_try) 2>&5
35361 ac_status=$?
35362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); }; } &&
35364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35366 (eval $ac_try) 2>&5
35367 ac_status=$?
35368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35369 (exit $ac_status); }; }; then
84ae7ca4 35370 wx_cv_func_statfs=yes
a848cd7e
SC
35371else
35372 echo "$as_me: failed program was:" >&5
35373sed 's/^/| /' conftest.$ac_ext >&5
35374
84ae7ca4 35375wx_cv_func_statfs=no
a848cd7e
SC
35376
35377fi
ac1cb8d3 35378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35379
35380fi
35381echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35382echo "${ECHO_T}$wx_cv_func_statfs" >&6
35383
35384if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 35385 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
35386echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35387if test "${wx_cv_func_statfs_decl+set}" = set; then
35388 echo $ECHO_N "(cached) $ECHO_C" >&6
35389else
0683aca6
VZ
35390 cat >conftest.$ac_ext <<_ACEOF
35391/* confdefs.h. */
35392_ACEOF
35393cat confdefs.h >>conftest.$ac_ext
35394cat >>conftest.$ac_ext <<_ACEOF
35395/* end confdefs.h. */
84ae7ca4 35396
0683aca6
VZ
35397 #if defined(__BSD__)
35398 #include <sys/param.h>
35399 #include <sys/mount.h>
35400 #else
35401 #include <sys/vfs.h>
35402 #endif
35403
35404int
35405main ()
35406{
35407
35408 struct statfs fs;
35409 statfs("", &fs);
35410
35411 ;
35412 return 0;
35413}
35414_ACEOF
35415rm -f conftest.$ac_objext
35416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35417 (eval $ac_compile) 2>conftest.er1
35418 ac_status=$?
35419 grep -v '^ *+' conftest.er1 >conftest.err
35420 rm -f conftest.er1
35421 cat conftest.err >&5
35422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423 (exit $ac_status); } &&
6954625c 35424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
35425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35426 (eval $ac_try) 2>&5
35427 ac_status=$?
35428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429 (exit $ac_status); }; } &&
35430 { ac_try='test -s conftest.$ac_objext'
35431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35432 (eval $ac_try) 2>&5
35433 ac_status=$?
35434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435 (exit $ac_status); }; }; then
35436 wx_cv_func_statfs_decl=yes
35437else
35438 echo "$as_me: failed program was:" >&5
35439sed 's/^/| /' conftest.$ac_ext >&5
35440
35441wx_cv_func_statfs_decl=no
35442
35443fi
35444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
35445
35446fi
35447echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35448echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
35449
35450 if test "$wx_cv_func_statfs_decl" = "yes"; then
35451 cat >>confdefs.h <<\_ACEOF
35452#define HAVE_STATFS_DECL 1
35453_ACEOF
35454
35455 fi
35456
a848cd7e
SC
35457 wx_cv_type_statvfs_t="struct statfs"
35458 cat >>confdefs.h <<\_ACEOF
35459#define HAVE_STATFS 1
35460_ACEOF
35461
35462else
35463 echo "$as_me:$LINENO: checking for statvfs" >&5
35464echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35465if test "${wx_cv_func_statvfs+set}" = set; then
35466 echo $ECHO_N "(cached) $ECHO_C" >&6
35467else
35468 cat >conftest.$ac_ext <<_ACEOF
35469/* confdefs.h. */
35470_ACEOF
35471cat confdefs.h >>conftest.$ac_ext
35472cat >>conftest.$ac_ext <<_ACEOF
35473/* end confdefs.h. */
35474
35475 #include <stddef.h>
35476 #include <sys/statvfs.h>
35477
35478int
35479main ()
35480{
35481
35482 statvfs("/", NULL);
35483
35484 ;
35485 return 0;
35486}
35487_ACEOF
35488rm -f conftest.$ac_objext
35489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35490 (eval $ac_compile) 2>conftest.er1
a848cd7e 35491 ac_status=$?
ac1cb8d3
VS
35492 grep -v '^ *+' conftest.er1 >conftest.err
35493 rm -f conftest.er1
35494 cat conftest.err >&5
a848cd7e
SC
35495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496 (exit $ac_status); } &&
6954625c 35497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35499 (eval $ac_try) 2>&5
35500 ac_status=$?
35501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502 (exit $ac_status); }; } &&
35503 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35505 (eval $ac_try) 2>&5
35506 ac_status=$?
35507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35508 (exit $ac_status); }; }; then
35509 wx_cv_func_statvfs=yes
35510else
35511 echo "$as_me: failed program was:" >&5
35512sed 's/^/| /' conftest.$ac_ext >&5
35513
35514wx_cv_func_statvfs=no
35515
35516fi
ac1cb8d3 35517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35518
35519fi
35520echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35521echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35522
35523 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 35524 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
35525echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35526if test "${wx_cv_type_statvfs_t+set}" = set; then
35527 echo $ECHO_N "(cached) $ECHO_C" >&6
35528else
35529 cat >conftest.$ac_ext <<_ACEOF
35530/* confdefs.h. */
35531_ACEOF
35532cat confdefs.h >>conftest.$ac_ext
35533cat >>conftest.$ac_ext <<_ACEOF
35534/* end confdefs.h. */
35535
35536 #include <sys/statvfs.h>
35537
35538int
35539main ()
35540{
35541
35542 long l;
35543 statvfs_t fs;
35544 statvfs("/", &fs);
35545 l = fs.f_bsize;
35546 l += fs.f_blocks;
35547 l += fs.f_bavail;
35548
35549 ;
35550 return 0;
35551}
35552_ACEOF
35553rm -f conftest.$ac_objext
35554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35555 (eval $ac_compile) 2>conftest.er1
a848cd7e 35556 ac_status=$?
ac1cb8d3
VS
35557 grep -v '^ *+' conftest.er1 >conftest.err
35558 rm -f conftest.er1
35559 cat conftest.err >&5
a848cd7e
SC
35560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561 (exit $ac_status); } &&
6954625c 35562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35564 (eval $ac_try) 2>&5
35565 ac_status=$?
35566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35567 (exit $ac_status); }; } &&
35568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35570 (eval $ac_try) 2>&5
35571 ac_status=$?
35572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35573 (exit $ac_status); }; }; then
35574 wx_cv_type_statvfs_t=statvfs_t
35575else
35576 echo "$as_me: failed program was:" >&5
35577sed 's/^/| /' conftest.$ac_ext >&5
35578
35579
35580 cat >conftest.$ac_ext <<_ACEOF
35581/* confdefs.h. */
35582_ACEOF
35583cat confdefs.h >>conftest.$ac_ext
35584cat >>conftest.$ac_ext <<_ACEOF
35585/* end confdefs.h. */
35586
35587 #include <sys/statvfs.h>
35588
35589int
35590main ()
35591{
35592
35593 long l;
35594 struct statvfs fs;
35595 statvfs("/", &fs);
35596 l = fs.f_bsize;
35597 l += fs.f_blocks;
35598 l += fs.f_bavail;
35599
35600 ;
35601 return 0;
35602}
35603_ACEOF
35604rm -f conftest.$ac_objext
35605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35606 (eval $ac_compile) 2>conftest.er1
a848cd7e 35607 ac_status=$?
ac1cb8d3
VS
35608 grep -v '^ *+' conftest.er1 >conftest.err
35609 rm -f conftest.er1
35610 cat conftest.err >&5
a848cd7e
SC
35611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35612 (exit $ac_status); } &&
6954625c 35613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35615 (eval $ac_try) 2>&5
35616 ac_status=$?
35617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618 (exit $ac_status); }; } &&
35619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35621 (eval $ac_try) 2>&5
35622 ac_status=$?
35623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 (exit $ac_status); }; }; then
35625 wx_cv_type_statvfs_t="struct statvfs"
35626else
35627 echo "$as_me: failed program was:" >&5
35628sed 's/^/| /' conftest.$ac_ext >&5
35629
35630wx_cv_type_statvfs_t="unknown"
35631
35632fi
ac1cb8d3 35633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35634
35635
35636fi
ac1cb8d3 35637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35638
35639fi
35640echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35641echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35642
a848cd7e
SC
35643 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35644 cat >>confdefs.h <<\_ACEOF
35645#define HAVE_STATVFS 1
35646_ACEOF
35647
35648 fi
35649 else
35650 wx_cv_type_statvfs_t="unknown"
35651 fi
35652fi
35653
35654if test "$wx_cv_type_statvfs_t" != "unknown"; then
35655 cat >>confdefs.h <<_ACEOF
35656#define WX_STATFS_T $wx_cv_type_statvfs_t
35657_ACEOF
35658
35659else
35660 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35661echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35662fi
35663
35664if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35665
35666
35667for ac_func in fcntl flock
35668do
35669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35670echo "$as_me:$LINENO: checking for $ac_func" >&5
35671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35672if eval "test \"\${$as_ac_var+set}\" = set"; then
35673 echo $ECHO_N "(cached) $ECHO_C" >&6
35674else
35675 cat >conftest.$ac_ext <<_ACEOF
35676/* confdefs.h. */
35677_ACEOF
35678cat confdefs.h >>conftest.$ac_ext
35679cat >>conftest.$ac_ext <<_ACEOF
35680/* end confdefs.h. */
ac1cb8d3
VS
35681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35683#define $ac_func innocuous_$ac_func
35684
a848cd7e
SC
35685/* System header to define __stub macros and hopefully few prototypes,
35686 which can conflict with char $ac_func (); below.
35687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35688 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35689
a848cd7e
SC
35690#ifdef __STDC__
35691# include <limits.h>
35692#else
35693# include <assert.h>
35694#endif
ac1cb8d3
VS
35695
35696#undef $ac_func
35697
a848cd7e
SC
35698/* Override any gcc2 internal prototype to avoid an error. */
35699#ifdef __cplusplus
35700extern "C"
35701{
35702#endif
35703/* We use char because int might match the return type of a gcc2
35704 builtin and then its argument prototype would still apply. */
35705char $ac_func ();
35706/* The GNU C library defines this for functions which it implements
35707 to always fail with ENOSYS. Some functions are actually named
35708 something starting with __ and the normal name is an alias. */
35709#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35710choke me
35711#else
35712char (*f) () = $ac_func;
35713#endif
35714#ifdef __cplusplus
35715}
35716#endif
35717
35718int
35719main ()
35720{
35721return f != $ac_func;
35722 ;
35723 return 0;
35724}
35725_ACEOF
35726rm -f conftest.$ac_objext conftest$ac_exeext
35727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35728 (eval $ac_link) 2>conftest.er1
a848cd7e 35729 ac_status=$?
ac1cb8d3
VS
35730 grep -v '^ *+' conftest.er1 >conftest.err
35731 rm -f conftest.er1
35732 cat conftest.err >&5
a848cd7e
SC
35733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734 (exit $ac_status); } &&
6954625c 35735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35737 (eval $ac_try) 2>&5
35738 ac_status=$?
35739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35740 (exit $ac_status); }; } &&
35741 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35743 (eval $ac_try) 2>&5
35744 ac_status=$?
35745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35746 (exit $ac_status); }; }; then
35747 eval "$as_ac_var=yes"
35748else
35749 echo "$as_me: failed program was:" >&5
35750sed 's/^/| /' conftest.$ac_ext >&5
35751
35752eval "$as_ac_var=no"
35753fi
ac1cb8d3
VS
35754rm -f conftest.err conftest.$ac_objext \
35755 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35756fi
35757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35758echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35759if test `eval echo '${'$as_ac_var'}'` = yes; then
35760 cat >>confdefs.h <<_ACEOF
35761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35762_ACEOF
35763 break
35764fi
35765done
35766
35767
35768 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35769 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35770echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35771 wxUSE_SNGLINST_CHECKER=no
35772 fi
35773fi
35774
35775
35776for ac_func in timegm
35777do
35778as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35779echo "$as_me:$LINENO: checking for $ac_func" >&5
35780echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35781if eval "test \"\${$as_ac_var+set}\" = set"; then
35782 echo $ECHO_N "(cached) $ECHO_C" >&6
35783else
35784 cat >conftest.$ac_ext <<_ACEOF
35785/* confdefs.h. */
35786_ACEOF
35787cat confdefs.h >>conftest.$ac_ext
35788cat >>conftest.$ac_ext <<_ACEOF
35789/* end confdefs.h. */
ac1cb8d3
VS
35790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35792#define $ac_func innocuous_$ac_func
35793
a848cd7e
SC
35794/* System header to define __stub macros and hopefully few prototypes,
35795 which can conflict with char $ac_func (); below.
35796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35797 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35798
a848cd7e
SC
35799#ifdef __STDC__
35800# include <limits.h>
35801#else
35802# include <assert.h>
35803#endif
ac1cb8d3
VS
35804
35805#undef $ac_func
35806
a848cd7e
SC
35807/* Override any gcc2 internal prototype to avoid an error. */
35808#ifdef __cplusplus
35809extern "C"
35810{
35811#endif
35812/* We use char because int might match the return type of a gcc2
35813 builtin and then its argument prototype would still apply. */
35814char $ac_func ();
35815/* The GNU C library defines this for functions which it implements
35816 to always fail with ENOSYS. Some functions are actually named
35817 something starting with __ and the normal name is an alias. */
35818#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35819choke me
35820#else
35821char (*f) () = $ac_func;
35822#endif
35823#ifdef __cplusplus
35824}
35825#endif
35826
35827int
35828main ()
35829{
35830return f != $ac_func;
35831 ;
35832 return 0;
35833}
35834_ACEOF
35835rm -f conftest.$ac_objext conftest$ac_exeext
35836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35837 (eval $ac_link) 2>conftest.er1
a848cd7e 35838 ac_status=$?
ac1cb8d3
VS
35839 grep -v '^ *+' conftest.er1 >conftest.err
35840 rm -f conftest.er1
35841 cat conftest.err >&5
a848cd7e
SC
35842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843 (exit $ac_status); } &&
6954625c 35844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35846 (eval $ac_try) 2>&5
35847 ac_status=$?
35848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849 (exit $ac_status); }; } &&
35850 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35852 (eval $ac_try) 2>&5
35853 ac_status=$?
35854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855 (exit $ac_status); }; }; then
35856 eval "$as_ac_var=yes"
35857else
35858 echo "$as_me: failed program was:" >&5
35859sed 's/^/| /' conftest.$ac_ext >&5
35860
35861eval "$as_ac_var=no"
35862fi
ac1cb8d3
VS
35863rm -f conftest.err conftest.$ac_objext \
35864 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35865fi
35866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35867echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35868if test `eval echo '${'$as_ac_var'}'` = yes; then
35869 cat >>confdefs.h <<_ACEOF
35870#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35871_ACEOF
35872
35873fi
35874done
35875
35876
35877
35878
35879for ac_func in putenv setenv
35880do
35881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35882echo "$as_me:$LINENO: checking for $ac_func" >&5
35883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35884if eval "test \"\${$as_ac_var+set}\" = set"; then
35885 echo $ECHO_N "(cached) $ECHO_C" >&6
35886else
35887 cat >conftest.$ac_ext <<_ACEOF
35888/* confdefs.h. */
35889_ACEOF
35890cat confdefs.h >>conftest.$ac_ext
35891cat >>conftest.$ac_ext <<_ACEOF
35892/* end confdefs.h. */
ac1cb8d3
VS
35893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35895#define $ac_func innocuous_$ac_func
35896
a848cd7e
SC
35897/* System header to define __stub macros and hopefully few prototypes,
35898 which can conflict with char $ac_func (); below.
35899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35900 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35901
a848cd7e
SC
35902#ifdef __STDC__
35903# include <limits.h>
35904#else
35905# include <assert.h>
35906#endif
ac1cb8d3
VS
35907
35908#undef $ac_func
35909
a848cd7e
SC
35910/* Override any gcc2 internal prototype to avoid an error. */
35911#ifdef __cplusplus
35912extern "C"
35913{
35914#endif
35915/* We use char because int might match the return type of a gcc2
35916 builtin and then its argument prototype would still apply. */
35917char $ac_func ();
35918/* The GNU C library defines this for functions which it implements
35919 to always fail with ENOSYS. Some functions are actually named
35920 something starting with __ and the normal name is an alias. */
35921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35922choke me
35923#else
35924char (*f) () = $ac_func;
35925#endif
35926#ifdef __cplusplus
35927}
35928#endif
35929
35930int
35931main ()
35932{
35933return f != $ac_func;
35934 ;
35935 return 0;
35936}
35937_ACEOF
35938rm -f conftest.$ac_objext conftest$ac_exeext
35939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35940 (eval $ac_link) 2>conftest.er1
a848cd7e 35941 ac_status=$?
ac1cb8d3
VS
35942 grep -v '^ *+' conftest.er1 >conftest.err
35943 rm -f conftest.er1
35944 cat conftest.err >&5
a848cd7e
SC
35945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35946 (exit $ac_status); } &&
6954625c 35947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35949 (eval $ac_try) 2>&5
35950 ac_status=$?
35951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952 (exit $ac_status); }; } &&
35953 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35955 (eval $ac_try) 2>&5
35956 ac_status=$?
35957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958 (exit $ac_status); }; }; then
35959 eval "$as_ac_var=yes"
35960else
35961 echo "$as_me: failed program was:" >&5
35962sed 's/^/| /' conftest.$ac_ext >&5
35963
35964eval "$as_ac_var=no"
35965fi
ac1cb8d3
VS
35966rm -f conftest.err conftest.$ac_objext \
35967 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35968fi
35969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35970echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35971if test `eval echo '${'$as_ac_var'}'` = yes; then
35972 cat >>confdefs.h <<_ACEOF
35973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35974_ACEOF
35975 break
35976fi
35977done
35978
35979
35980HAVE_SOME_SLEEP_FUNC=0
35981if test "$USE_BEOS" = 1; then
35982 cat >>confdefs.h <<\_ACEOF
35983#define HAVE_SLEEP 1
35984_ACEOF
35985
35986 HAVE_SOME_SLEEP_FUNC=1
35987fi
35988
35989if test "$USE_DARWIN" = 1; then
35990 cat >>confdefs.h <<\_ACEOF
35991#define HAVE_USLEEP 1
35992_ACEOF
35993
35994 HAVE_SOME_SLEEP_FUNC=1
35995fi
35996
35997if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35998 POSIX4_LINK=
35999
36000for ac_func in nanosleep
36001do
36002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36003echo "$as_me:$LINENO: checking for $ac_func" >&5
36004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36005if eval "test \"\${$as_ac_var+set}\" = set"; then
36006 echo $ECHO_N "(cached) $ECHO_C" >&6
36007else
36008 cat >conftest.$ac_ext <<_ACEOF
36009/* confdefs.h. */
36010_ACEOF
36011cat confdefs.h >>conftest.$ac_ext
36012cat >>conftest.$ac_ext <<_ACEOF
36013/* end confdefs.h. */
ac1cb8d3
VS
36014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36016#define $ac_func innocuous_$ac_func
36017
a848cd7e
SC
36018/* System header to define __stub macros and hopefully few prototypes,
36019 which can conflict with char $ac_func (); below.
36020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36021 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36022
a848cd7e
SC
36023#ifdef __STDC__
36024# include <limits.h>
36025#else
36026# include <assert.h>
36027#endif
ac1cb8d3
VS
36028
36029#undef $ac_func
36030
a848cd7e
SC
36031/* Override any gcc2 internal prototype to avoid an error. */
36032#ifdef __cplusplus
36033extern "C"
36034{
36035#endif
36036/* We use char because int might match the return type of a gcc2
36037 builtin and then its argument prototype would still apply. */
36038char $ac_func ();
36039/* The GNU C library defines this for functions which it implements
36040 to always fail with ENOSYS. Some functions are actually named
36041 something starting with __ and the normal name is an alias. */
36042#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36043choke me
36044#else
36045char (*f) () = $ac_func;
36046#endif
36047#ifdef __cplusplus
36048}
36049#endif
36050
36051int
36052main ()
36053{
36054return f != $ac_func;
36055 ;
36056 return 0;
36057}
36058_ACEOF
36059rm -f conftest.$ac_objext conftest$ac_exeext
36060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36061 (eval $ac_link) 2>conftest.er1
a848cd7e 36062 ac_status=$?
ac1cb8d3
VS
36063 grep -v '^ *+' conftest.er1 >conftest.err
36064 rm -f conftest.er1
36065 cat conftest.err >&5
a848cd7e
SC
36066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067 (exit $ac_status); } &&
6954625c 36068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36070 (eval $ac_try) 2>&5
36071 ac_status=$?
36072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36073 (exit $ac_status); }; } &&
36074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36076 (eval $ac_try) 2>&5
36077 ac_status=$?
36078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36079 (exit $ac_status); }; }; then
36080 eval "$as_ac_var=yes"
36081else
36082 echo "$as_me: failed program was:" >&5
36083sed 's/^/| /' conftest.$ac_ext >&5
36084
36085eval "$as_ac_var=no"
36086fi
ac1cb8d3
VS
36087rm -f conftest.err conftest.$ac_objext \
36088 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36089fi
36090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36091echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36092if test `eval echo '${'$as_ac_var'}'` = yes; then
36093 cat >>confdefs.h <<_ACEOF
36094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36095_ACEOF
36096 cat >>confdefs.h <<\_ACEOF
36097#define HAVE_NANOSLEEP 1
36098_ACEOF
36099
36100else
36101
36102 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36103echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36104if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36105 echo $ECHO_N "(cached) $ECHO_C" >&6
36106else
36107 ac_check_lib_save_LIBS=$LIBS
36108LIBS="-lposix4 $LIBS"
36109cat >conftest.$ac_ext <<_ACEOF
36110/* confdefs.h. */
36111_ACEOF
36112cat confdefs.h >>conftest.$ac_ext
36113cat >>conftest.$ac_ext <<_ACEOF
36114/* end confdefs.h. */
36115
36116/* Override any gcc2 internal prototype to avoid an error. */
36117#ifdef __cplusplus
36118extern "C"
36119#endif
36120/* We use char because int might match the return type of a gcc2
36121 builtin and then its argument prototype would still apply. */
36122char nanosleep ();
36123int
36124main ()
36125{
36126nanosleep ();
36127 ;
36128 return 0;
36129}
36130_ACEOF
36131rm -f conftest.$ac_objext conftest$ac_exeext
36132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36133 (eval $ac_link) 2>conftest.er1
a848cd7e 36134 ac_status=$?
ac1cb8d3
VS
36135 grep -v '^ *+' conftest.er1 >conftest.err
36136 rm -f conftest.er1
36137 cat conftest.err >&5
a848cd7e
SC
36138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139 (exit $ac_status); } &&
6954625c 36140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36142 (eval $ac_try) 2>&5
36143 ac_status=$?
36144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36145 (exit $ac_status); }; } &&
36146 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36148 (eval $ac_try) 2>&5
36149 ac_status=$?
36150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36151 (exit $ac_status); }; }; then
36152 ac_cv_lib_posix4_nanosleep=yes
36153else
36154 echo "$as_me: failed program was:" >&5
36155sed 's/^/| /' conftest.$ac_ext >&5
36156
36157ac_cv_lib_posix4_nanosleep=no
36158fi
ac1cb8d3
VS
36159rm -f conftest.err conftest.$ac_objext \
36160 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36161LIBS=$ac_check_lib_save_LIBS
36162fi
36163echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
36164echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36165if test $ac_cv_lib_posix4_nanosleep = yes; then
36166
36167 cat >>confdefs.h <<\_ACEOF
36168#define HAVE_NANOSLEEP 1
36169_ACEOF
36170
36171 POSIX4_LINK=" -lposix4"
36172
36173else
36174
36175
36176for ac_func in usleep
36177do
36178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36179echo "$as_me:$LINENO: checking for $ac_func" >&5
36180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36181if eval "test \"\${$as_ac_var+set}\" = set"; then
36182 echo $ECHO_N "(cached) $ECHO_C" >&6
36183else
36184 cat >conftest.$ac_ext <<_ACEOF
36185/* confdefs.h. */
36186_ACEOF
36187cat confdefs.h >>conftest.$ac_ext
36188cat >>conftest.$ac_ext <<_ACEOF
36189/* end confdefs.h. */
ac1cb8d3
VS
36190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36192#define $ac_func innocuous_$ac_func
36193
a848cd7e
SC
36194/* System header to define __stub macros and hopefully few prototypes,
36195 which can conflict with char $ac_func (); below.
36196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36197 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36198
a848cd7e
SC
36199#ifdef __STDC__
36200# include <limits.h>
36201#else
36202# include <assert.h>
36203#endif
ac1cb8d3
VS
36204
36205#undef $ac_func
36206
a848cd7e
SC
36207/* Override any gcc2 internal prototype to avoid an error. */
36208#ifdef __cplusplus
36209extern "C"
36210{
36211#endif
36212/* We use char because int might match the return type of a gcc2
36213 builtin and then its argument prototype would still apply. */
36214char $ac_func ();
36215/* The GNU C library defines this for functions which it implements
36216 to always fail with ENOSYS. Some functions are actually named
36217 something starting with __ and the normal name is an alias. */
36218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36219choke me
36220#else
36221char (*f) () = $ac_func;
36222#endif
36223#ifdef __cplusplus
36224}
36225#endif
36226
36227int
36228main ()
36229{
36230return f != $ac_func;
36231 ;
36232 return 0;
36233}
36234_ACEOF
36235rm -f conftest.$ac_objext conftest$ac_exeext
36236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36237 (eval $ac_link) 2>conftest.er1
a848cd7e 36238 ac_status=$?
ac1cb8d3
VS
36239 grep -v '^ *+' conftest.er1 >conftest.err
36240 rm -f conftest.er1
36241 cat conftest.err >&5
a848cd7e
SC
36242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36243 (exit $ac_status); } &&
6954625c 36244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36246 (eval $ac_try) 2>&5
36247 ac_status=$?
36248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249 (exit $ac_status); }; } &&
36250 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36252 (eval $ac_try) 2>&5
36253 ac_status=$?
36254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36255 (exit $ac_status); }; }; then
36256 eval "$as_ac_var=yes"
36257else
36258 echo "$as_me: failed program was:" >&5
36259sed 's/^/| /' conftest.$ac_ext >&5
36260
36261eval "$as_ac_var=no"
36262fi
ac1cb8d3
VS
36263rm -f conftest.err conftest.$ac_objext \
36264 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36265fi
36266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36267echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36268if test `eval echo '${'$as_ac_var'}'` = yes; then
36269 cat >>confdefs.h <<_ACEOF
36270#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36271_ACEOF
36272 cat >>confdefs.h <<\_ACEOF
36273#define HAVE_USLEEP 1
36274_ACEOF
36275
36276else
36277 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36278echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36279
36280fi
36281done
36282
36283
36284
36285fi
36286
36287
36288
36289fi
36290done
36291
36292fi
36293
36294
36295
36296for ac_func in uname gethostname
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); } &&
6954625c 36364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36366 (eval $ac_try) 2>&5
36367 ac_status=$?
36368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369 (exit $ac_status); }; } &&
36370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36372 (eval $ac_try) 2>&5
36373 ac_status=$?
36374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375 (exit $ac_status); }; }; then
36376 eval "$as_ac_var=yes"
36377else
36378 echo "$as_me: failed program was:" >&5
36379sed 's/^/| /' conftest.$ac_ext >&5
36380
36381eval "$as_ac_var=no"
36382fi
ac1cb8d3
VS
36383rm -f conftest.err conftest.$ac_objext \
36384 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36385fi
36386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36387echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36388if test `eval echo '${'$as_ac_var'}'` = yes; then
36389 cat >>confdefs.h <<_ACEOF
36390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36391_ACEOF
36392 break
36393fi
36394done
36395
36396
a848cd7e
SC
36397
36398for ac_func in strtok_r
36399do
36400as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36401echo "$as_me:$LINENO: checking for $ac_func" >&5
36402echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36403if eval "test \"\${$as_ac_var+set}\" = set"; then
36404 echo $ECHO_N "(cached) $ECHO_C" >&6
36405else
36406 cat >conftest.$ac_ext <<_ACEOF
36407/* confdefs.h. */
36408_ACEOF
36409cat confdefs.h >>conftest.$ac_ext
36410cat >>conftest.$ac_ext <<_ACEOF
36411/* end confdefs.h. */
ac1cb8d3
VS
36412/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36414#define $ac_func innocuous_$ac_func
36415
a848cd7e
SC
36416/* System header to define __stub macros and hopefully few prototypes,
36417 which can conflict with char $ac_func (); below.
36418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36419 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36420
a848cd7e
SC
36421#ifdef __STDC__
36422# include <limits.h>
36423#else
36424# include <assert.h>
36425#endif
ac1cb8d3
VS
36426
36427#undef $ac_func
36428
a848cd7e
SC
36429/* Override any gcc2 internal prototype to avoid an error. */
36430#ifdef __cplusplus
36431extern "C"
36432{
36433#endif
36434/* We use char because int might match the return type of a gcc2
36435 builtin and then its argument prototype would still apply. */
36436char $ac_func ();
36437/* The GNU C library defines this for functions which it implements
36438 to always fail with ENOSYS. Some functions are actually named
36439 something starting with __ and the normal name is an alias. */
36440#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36441choke me
36442#else
36443char (*f) () = $ac_func;
36444#endif
36445#ifdef __cplusplus
36446}
36447#endif
36448
36449int
36450main ()
36451{
36452return f != $ac_func;
36453 ;
36454 return 0;
36455}
36456_ACEOF
36457rm -f conftest.$ac_objext conftest$ac_exeext
36458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36459 (eval $ac_link) 2>conftest.er1
a848cd7e 36460 ac_status=$?
ac1cb8d3
VS
36461 grep -v '^ *+' conftest.er1 >conftest.err
36462 rm -f conftest.er1
36463 cat conftest.err >&5
a848cd7e
SC
36464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36465 (exit $ac_status); } &&
6954625c 36466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36468 (eval $ac_try) 2>&5
36469 ac_status=$?
36470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471 (exit $ac_status); }; } &&
36472 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36474 (eval $ac_try) 2>&5
36475 ac_status=$?
36476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477 (exit $ac_status); }; }; then
36478 eval "$as_ac_var=yes"
36479else
36480 echo "$as_me: failed program was:" >&5
36481sed 's/^/| /' conftest.$ac_ext >&5
36482
36483eval "$as_ac_var=no"
36484fi
ac1cb8d3
VS
36485rm -f conftest.err conftest.$ac_objext \
36486 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36487fi
36488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36489echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36490if test `eval echo '${'$as_ac_var'}'` = yes; then
36491 cat >>confdefs.h <<_ACEOF
36492#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36493_ACEOF
36494
36495fi
36496done
36497
36498
a848cd7e
SC
36499INET_LINK=
36500
36501for ac_func in inet_addr
36502do
36503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36504echo "$as_me:$LINENO: checking for $ac_func" >&5
36505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36506if eval "test \"\${$as_ac_var+set}\" = set"; then
36507 echo $ECHO_N "(cached) $ECHO_C" >&6
36508else
36509 cat >conftest.$ac_ext <<_ACEOF
36510/* confdefs.h. */
36511_ACEOF
36512cat confdefs.h >>conftest.$ac_ext
36513cat >>conftest.$ac_ext <<_ACEOF
36514/* end confdefs.h. */
ac1cb8d3
VS
36515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36517#define $ac_func innocuous_$ac_func
36518
a848cd7e
SC
36519/* System header to define __stub macros and hopefully few prototypes,
36520 which can conflict with char $ac_func (); below.
36521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36522 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36523
a848cd7e
SC
36524#ifdef __STDC__
36525# include <limits.h>
36526#else
36527# include <assert.h>
36528#endif
ac1cb8d3
VS
36529
36530#undef $ac_func
36531
a848cd7e
SC
36532/* Override any gcc2 internal prototype to avoid an error. */
36533#ifdef __cplusplus
36534extern "C"
36535{
36536#endif
36537/* We use char because int might match the return type of a gcc2
36538 builtin and then its argument prototype would still apply. */
36539char $ac_func ();
36540/* The GNU C library defines this for functions which it implements
36541 to always fail with ENOSYS. Some functions are actually named
36542 something starting with __ and the normal name is an alias. */
36543#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36544choke me
36545#else
36546char (*f) () = $ac_func;
36547#endif
36548#ifdef __cplusplus
36549}
36550#endif
36551
36552int
36553main ()
36554{
36555return f != $ac_func;
36556 ;
36557 return 0;
36558}
36559_ACEOF
36560rm -f conftest.$ac_objext conftest$ac_exeext
36561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36562 (eval $ac_link) 2>conftest.er1
a848cd7e 36563 ac_status=$?
ac1cb8d3
VS
36564 grep -v '^ *+' conftest.er1 >conftest.err
36565 rm -f conftest.er1
36566 cat conftest.err >&5
a848cd7e
SC
36567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36568 (exit $ac_status); } &&
6954625c 36569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36571 (eval $ac_try) 2>&5
36572 ac_status=$?
36573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574 (exit $ac_status); }; } &&
36575 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36577 (eval $ac_try) 2>&5
36578 ac_status=$?
36579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36580 (exit $ac_status); }; }; then
36581 eval "$as_ac_var=yes"
36582else
36583 echo "$as_me: failed program was:" >&5
36584sed 's/^/| /' conftest.$ac_ext >&5
36585
36586eval "$as_ac_var=no"
36587fi
ac1cb8d3
VS
36588rm -f conftest.err conftest.$ac_objext \
36589 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36590fi
36591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36592echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36593if test `eval echo '${'$as_ac_var'}'` = yes; then
36594 cat >>confdefs.h <<_ACEOF
36595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36596_ACEOF
36597 cat >>confdefs.h <<\_ACEOF
36598#define HAVE_INET_ADDR 1
36599_ACEOF
36600
36601else
36602
36603 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36604echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36605if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36606 echo $ECHO_N "(cached) $ECHO_C" >&6
36607else
36608 ac_check_lib_save_LIBS=$LIBS
36609LIBS="-lnsl $LIBS"
36610cat >conftest.$ac_ext <<_ACEOF
36611/* confdefs.h. */
36612_ACEOF
36613cat confdefs.h >>conftest.$ac_ext
36614cat >>conftest.$ac_ext <<_ACEOF
36615/* end confdefs.h. */
36616
36617/* Override any gcc2 internal prototype to avoid an error. */
36618#ifdef __cplusplus
36619extern "C"
36620#endif
36621/* We use char because int might match the return type of a gcc2
36622 builtin and then its argument prototype would still apply. */
36623char inet_addr ();
36624int
36625main ()
36626{
36627inet_addr ();
36628 ;
36629 return 0;
36630}
36631_ACEOF
36632rm -f conftest.$ac_objext conftest$ac_exeext
36633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36634 (eval $ac_link) 2>conftest.er1
a848cd7e 36635 ac_status=$?
ac1cb8d3
VS
36636 grep -v '^ *+' conftest.er1 >conftest.err
36637 rm -f conftest.er1
36638 cat conftest.err >&5
a848cd7e
SC
36639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640 (exit $ac_status); } &&
6954625c 36641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36643 (eval $ac_try) 2>&5
36644 ac_status=$?
36645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646 (exit $ac_status); }; } &&
36647 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36649 (eval $ac_try) 2>&5
36650 ac_status=$?
36651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36652 (exit $ac_status); }; }; then
36653 ac_cv_lib_nsl_inet_addr=yes
36654else
36655 echo "$as_me: failed program was:" >&5
36656sed 's/^/| /' conftest.$ac_ext >&5
36657
36658ac_cv_lib_nsl_inet_addr=no
36659fi
ac1cb8d3
VS
36660rm -f conftest.err conftest.$ac_objext \
36661 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36662LIBS=$ac_check_lib_save_LIBS
36663fi
36664echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36665echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36666if test $ac_cv_lib_nsl_inet_addr = yes; then
36667 INET_LINK="nsl"
36668else
36669
36670 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36671echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36672if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36673 echo $ECHO_N "(cached) $ECHO_C" >&6
36674else
36675 ac_check_lib_save_LIBS=$LIBS
36676LIBS="-lresolv $LIBS"
36677cat >conftest.$ac_ext <<_ACEOF
36678/* confdefs.h. */
36679_ACEOF
36680cat confdefs.h >>conftest.$ac_ext
36681cat >>conftest.$ac_ext <<_ACEOF
36682/* end confdefs.h. */
36683
36684/* Override any gcc2 internal prototype to avoid an error. */
36685#ifdef __cplusplus
36686extern "C"
36687#endif
36688/* We use char because int might match the return type of a gcc2
36689 builtin and then its argument prototype would still apply. */
36690char inet_addr ();
36691int
36692main ()
36693{
36694inet_addr ();
36695 ;
36696 return 0;
36697}
36698_ACEOF
36699rm -f conftest.$ac_objext conftest$ac_exeext
36700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36701 (eval $ac_link) 2>conftest.er1
a848cd7e 36702 ac_status=$?
ac1cb8d3
VS
36703 grep -v '^ *+' conftest.er1 >conftest.err
36704 rm -f conftest.er1
36705 cat conftest.err >&5
a848cd7e
SC
36706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707 (exit $ac_status); } &&
6954625c 36708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36710 (eval $ac_try) 2>&5
36711 ac_status=$?
36712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713 (exit $ac_status); }; } &&
36714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36716 (eval $ac_try) 2>&5
36717 ac_status=$?
36718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719 (exit $ac_status); }; }; then
36720 ac_cv_lib_resolv_inet_addr=yes
36721else
36722 echo "$as_me: failed program was:" >&5
36723sed 's/^/| /' conftest.$ac_ext >&5
36724
36725ac_cv_lib_resolv_inet_addr=no
36726fi
ac1cb8d3
VS
36727rm -f conftest.err conftest.$ac_objext \
36728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36729LIBS=$ac_check_lib_save_LIBS
36730fi
36731echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36732echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36733if test $ac_cv_lib_resolv_inet_addr = yes; then
36734 INET_LINK="resolv"
36735else
36736
36737 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36738echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36739if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36740 echo $ECHO_N "(cached) $ECHO_C" >&6
36741else
36742 ac_check_lib_save_LIBS=$LIBS
36743LIBS="-lsocket $LIBS"
36744cat >conftest.$ac_ext <<_ACEOF
36745/* confdefs.h. */
36746_ACEOF
36747cat confdefs.h >>conftest.$ac_ext
36748cat >>conftest.$ac_ext <<_ACEOF
36749/* end confdefs.h. */
36750
36751/* Override any gcc2 internal prototype to avoid an error. */
36752#ifdef __cplusplus
36753extern "C"
36754#endif
36755/* We use char because int might match the return type of a gcc2
36756 builtin and then its argument prototype would still apply. */
36757char inet_addr ();
36758int
36759main ()
36760{
36761inet_addr ();
36762 ;
36763 return 0;
36764}
36765_ACEOF
36766rm -f conftest.$ac_objext conftest$ac_exeext
36767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36768 (eval $ac_link) 2>conftest.er1
a848cd7e 36769 ac_status=$?
ac1cb8d3
VS
36770 grep -v '^ *+' conftest.er1 >conftest.err
36771 rm -f conftest.er1
36772 cat conftest.err >&5
a848cd7e
SC
36773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36774 (exit $ac_status); } &&
6954625c 36775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36777 (eval $ac_try) 2>&5
36778 ac_status=$?
36779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36780 (exit $ac_status); }; } &&
36781 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36783 (eval $ac_try) 2>&5
36784 ac_status=$?
36785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36786 (exit $ac_status); }; }; then
36787 ac_cv_lib_socket_inet_addr=yes
36788else
36789 echo "$as_me: failed program was:" >&5
36790sed 's/^/| /' conftest.$ac_ext >&5
36791
36792ac_cv_lib_socket_inet_addr=no
36793fi
ac1cb8d3
VS
36794rm -f conftest.err conftest.$ac_objext \
36795 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36796LIBS=$ac_check_lib_save_LIBS
36797fi
36798echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36799echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36800if test $ac_cv_lib_socket_inet_addr = yes; then
36801 INET_LINK="socket"
36802
36803fi
36804
36805
36806
36807fi
36808
36809
36810
36811fi
36812
36813
36814
36815fi
36816done
36817
36818
36819
36820for ac_func in inet_aton
36821do
36822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36823echo "$as_me:$LINENO: checking for $ac_func" >&5
36824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36825if eval "test \"\${$as_ac_var+set}\" = set"; then
36826 echo $ECHO_N "(cached) $ECHO_C" >&6
36827else
36828 cat >conftest.$ac_ext <<_ACEOF
36829/* confdefs.h. */
36830_ACEOF
36831cat confdefs.h >>conftest.$ac_ext
36832cat >>conftest.$ac_ext <<_ACEOF
36833/* end confdefs.h. */
ac1cb8d3
VS
36834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36836#define $ac_func innocuous_$ac_func
36837
a848cd7e
SC
36838/* System header to define __stub macros and hopefully few prototypes,
36839 which can conflict with char $ac_func (); below.
36840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36841 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36842
a848cd7e
SC
36843#ifdef __STDC__
36844# include <limits.h>
36845#else
36846# include <assert.h>
36847#endif
ac1cb8d3
VS
36848
36849#undef $ac_func
36850
a848cd7e
SC
36851/* Override any gcc2 internal prototype to avoid an error. */
36852#ifdef __cplusplus
36853extern "C"
36854{
36855#endif
36856/* We use char because int might match the return type of a gcc2
36857 builtin and then its argument prototype would still apply. */
36858char $ac_func ();
36859/* The GNU C library defines this for functions which it implements
36860 to always fail with ENOSYS. Some functions are actually named
36861 something starting with __ and the normal name is an alias. */
36862#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36863choke me
36864#else
36865char (*f) () = $ac_func;
36866#endif
36867#ifdef __cplusplus
36868}
36869#endif
36870
36871int
36872main ()
36873{
36874return f != $ac_func;
36875 ;
36876 return 0;
36877}
36878_ACEOF
36879rm -f conftest.$ac_objext conftest$ac_exeext
36880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36881 (eval $ac_link) 2>conftest.er1
a848cd7e 36882 ac_status=$?
ac1cb8d3
VS
36883 grep -v '^ *+' conftest.er1 >conftest.err
36884 rm -f conftest.er1
36885 cat conftest.err >&5
a848cd7e
SC
36886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36887 (exit $ac_status); } &&
6954625c 36888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36890 (eval $ac_try) 2>&5
36891 ac_status=$?
36892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893 (exit $ac_status); }; } &&
36894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36896 (eval $ac_try) 2>&5
36897 ac_status=$?
36898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36899 (exit $ac_status); }; }; then
36900 eval "$as_ac_var=yes"
36901else
36902 echo "$as_me: failed program was:" >&5
36903sed 's/^/| /' conftest.$ac_ext >&5
36904
36905eval "$as_ac_var=no"
36906fi
ac1cb8d3
VS
36907rm -f conftest.err conftest.$ac_objext \
36908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36909fi
36910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36911echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36912if test `eval echo '${'$as_ac_var'}'` = yes; then
36913 cat >>confdefs.h <<_ACEOF
36914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36915_ACEOF
36916 cat >>confdefs.h <<\_ACEOF
36917#define HAVE_INET_ATON 1
36918_ACEOF
36919
36920else
36921
36922 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36923echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36924echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36925if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36926 echo $ECHO_N "(cached) $ECHO_C" >&6
36927else
36928 ac_check_lib_save_LIBS=$LIBS
36929LIBS="-l$INET_LINK $LIBS"
36930cat >conftest.$ac_ext <<_ACEOF
36931/* confdefs.h. */
36932_ACEOF
36933cat confdefs.h >>conftest.$ac_ext
36934cat >>conftest.$ac_ext <<_ACEOF
36935/* end confdefs.h. */
36936
36937/* Override any gcc2 internal prototype to avoid an error. */
36938#ifdef __cplusplus
36939extern "C"
36940#endif
36941/* We use char because int might match the return type of a gcc2
36942 builtin and then its argument prototype would still apply. */
36943char inet_aton ();
36944int
36945main ()
36946{
36947inet_aton ();
36948 ;
36949 return 0;
36950}
36951_ACEOF
36952rm -f conftest.$ac_objext conftest$ac_exeext
36953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36954 (eval $ac_link) 2>conftest.er1
a848cd7e 36955 ac_status=$?
ac1cb8d3
VS
36956 grep -v '^ *+' conftest.er1 >conftest.err
36957 rm -f conftest.er1
36958 cat conftest.err >&5
a848cd7e
SC
36959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36960 (exit $ac_status); } &&
6954625c 36961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36963 (eval $ac_try) 2>&5
36964 ac_status=$?
36965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36966 (exit $ac_status); }; } &&
36967 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36969 (eval $ac_try) 2>&5
36970 ac_status=$?
36971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36972 (exit $ac_status); }; }; then
36973 eval "$as_ac_Lib=yes"
36974else
36975 echo "$as_me: failed program was:" >&5
36976sed 's/^/| /' conftest.$ac_ext >&5
36977
36978eval "$as_ac_Lib=no"
36979fi
ac1cb8d3
VS
36980rm -f conftest.err conftest.$ac_objext \
36981 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36982LIBS=$ac_check_lib_save_LIBS
36983fi
36984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36985echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36986if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36987 cat >>confdefs.h <<\_ACEOF
36988#define HAVE_INET_ATON 1
36989_ACEOF
36990
36991fi
36992
36993
36994fi
36995done
36996
36997
36998if test "x$INET_LINK" != "x"; then
36999 cat >>confdefs.h <<\_ACEOF
37000#define HAVE_INET_ADDR 1
37001_ACEOF
37002
37003 INET_LINK=" -l$INET_LINK"
37004fi
37005
37006fi
37007
37008
37009
37010EXTRALIBS_ESD=
37011echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37012echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37013if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37014 echo $ECHO_N "(cached) $ECHO_C" >&6
37015else
37016 ac_check_lib_save_LIBS=$LIBS
37017LIBS="-lesd $LIBS"
37018cat >conftest.$ac_ext <<_ACEOF
37019/* confdefs.h. */
37020_ACEOF
37021cat confdefs.h >>conftest.$ac_ext
37022cat >>conftest.$ac_ext <<_ACEOF
37023/* end confdefs.h. */
37024
37025/* Override any gcc2 internal prototype to avoid an error. */
37026#ifdef __cplusplus
37027extern "C"
37028#endif
37029/* We use char because int might match the return type of a gcc2
37030 builtin and then its argument prototype would still apply. */
37031char esd_close ();
37032int
37033main ()
37034{
37035esd_close ();
37036 ;
37037 return 0;
37038}
37039_ACEOF
37040rm -f conftest.$ac_objext conftest$ac_exeext
37041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37042 (eval $ac_link) 2>conftest.er1
a848cd7e 37043 ac_status=$?
ac1cb8d3
VS
37044 grep -v '^ *+' conftest.er1 >conftest.err
37045 rm -f conftest.er1
37046 cat conftest.err >&5
a848cd7e
SC
37047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048 (exit $ac_status); } &&
6954625c 37049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37051 (eval $ac_try) 2>&5
37052 ac_status=$?
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); }; } &&
37055 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37057 (eval $ac_try) 2>&5
37058 ac_status=$?
37059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060 (exit $ac_status); }; }; then
37061 ac_cv_lib_esd_esd_close=yes
37062else
37063 echo "$as_me: failed program was:" >&5
37064sed 's/^/| /' conftest.$ac_ext >&5
37065
37066ac_cv_lib_esd_esd_close=no
37067fi
ac1cb8d3
VS
37068rm -f conftest.err conftest.$ac_objext \
37069 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37070LIBS=$ac_check_lib_save_LIBS
37071fi
37072echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37073echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37074if test $ac_cv_lib_esd_esd_close = yes; then
37075
37076
37077for ac_header in esd.h
37078do
37079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37080if eval "test \"\${$as_ac_Header+set}\" = set"; then
37081 echo "$as_me:$LINENO: checking for $ac_header" >&5
37082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37083if eval "test \"\${$as_ac_Header+set}\" = set"; then
37084 echo $ECHO_N "(cached) $ECHO_C" >&6
37085fi
37086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37088else
37089 # Is the header compilable?
37090echo "$as_me:$LINENO: checking $ac_header usability" >&5
37091echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37092cat >conftest.$ac_ext <<_ACEOF
37093/* confdefs.h. */
37094_ACEOF
37095cat confdefs.h >>conftest.$ac_ext
37096cat >>conftest.$ac_ext <<_ACEOF
37097/* end confdefs.h. */
37098$ac_includes_default
37099#include <$ac_header>
37100_ACEOF
37101rm -f conftest.$ac_objext
37102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37103 (eval $ac_compile) 2>conftest.er1
a848cd7e 37104 ac_status=$?
ac1cb8d3
VS
37105 grep -v '^ *+' conftest.er1 >conftest.err
37106 rm -f conftest.er1
37107 cat conftest.err >&5
a848cd7e
SC
37108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37109 (exit $ac_status); } &&
6954625c 37110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37112 (eval $ac_try) 2>&5
37113 ac_status=$?
37114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115 (exit $ac_status); }; } &&
37116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37118 (eval $ac_try) 2>&5
37119 ac_status=$?
37120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37121 (exit $ac_status); }; }; then
37122 ac_header_compiler=yes
37123else
37124 echo "$as_me: failed program was:" >&5
37125sed 's/^/| /' conftest.$ac_ext >&5
37126
37127ac_header_compiler=no
37128fi
ac1cb8d3 37129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37130echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37131echo "${ECHO_T}$ac_header_compiler" >&6
37132
37133# Is the header present?
37134echo "$as_me:$LINENO: checking $ac_header presence" >&5
37135echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37136cat >conftest.$ac_ext <<_ACEOF
37137/* confdefs.h. */
37138_ACEOF
37139cat confdefs.h >>conftest.$ac_ext
37140cat >>conftest.$ac_ext <<_ACEOF
37141/* end confdefs.h. */
37142#include <$ac_header>
37143_ACEOF
37144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37146 ac_status=$?
37147 grep -v '^ *+' conftest.er1 >conftest.err
37148 rm -f conftest.er1
37149 cat conftest.err >&5
37150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151 (exit $ac_status); } >/dev/null; then
37152 if test -s conftest.err; then
5d7b7554
VZ
37153 ac_cpp_err=$ac_cxx_preproc_warn_flag
37154 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37155 else
37156 ac_cpp_err=
37157 fi
37158else
37159 ac_cpp_err=yes
37160fi
37161if test -z "$ac_cpp_err"; then
37162 ac_header_preproc=yes
37163else
37164 echo "$as_me: failed program was:" >&5
37165sed 's/^/| /' conftest.$ac_ext >&5
37166
37167 ac_header_preproc=no
37168fi
37169rm -f conftest.err conftest.$ac_ext
37170echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37171echo "${ECHO_T}$ac_header_preproc" >&6
37172
37173# So? What about this header?
5d7b7554 37174case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37175 yes:no: )
a848cd7e
SC
37176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37177echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37179echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37180 ac_header_preproc=yes
a848cd7e 37181 ;;
ac1cb8d3 37182 no:yes:* )
a848cd7e
SC
37183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37184echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37186echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37188echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37190echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37192echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37194echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37195 (
37196 cat <<\_ASBOX
ac1cb8d3
VS
37197## ----------------------------------------- ##
37198## Report this to wx-dev@lists.wxwidgets.org ##
37199## ----------------------------------------- ##
a848cd7e
SC
37200_ASBOX
37201 ) |
37202 sed "s/^/$as_me: WARNING: /" >&2
37203 ;;
37204esac
37205echo "$as_me:$LINENO: checking for $ac_header" >&5
37206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37207if eval "test \"\${$as_ac_Header+set}\" = set"; then
37208 echo $ECHO_N "(cached) $ECHO_C" >&6
37209else
ac1cb8d3 37210 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37211fi
37212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37213echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37214
37215fi
37216if test `eval echo '${'$as_ac_Header'}'` = yes; then
37217 cat >>confdefs.h <<_ACEOF
37218#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37219_ACEOF
37220
37221 EXTRALIBS_ESD="-lesd"
37222
37223fi
37224
37225done
37226
37227
37228fi
37229
37230
37231
37232echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37233echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37234cat >conftest.$ac_ext <<_ACEOF
37235/* confdefs.h. */
37236_ACEOF
37237cat confdefs.h >>conftest.$ac_ext
37238cat >>conftest.$ac_ext <<_ACEOF
37239/* end confdefs.h. */
37240#ifdef __linux__
37241 #include <linux/cdrom.h>
37242 #else
37243 /* For Solaris */
37244 #include <sys/cdio.h>
37245 #endif
37246
37247int
37248main ()
37249{
37250struct cdrom_tocentry entry, old_entry;
37251 ;
37252 return 0;
37253}
37254_ACEOF
37255rm -f conftest.$ac_objext
37256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37257 (eval $ac_compile) 2>conftest.er1
a848cd7e 37258 ac_status=$?
ac1cb8d3
VS
37259 grep -v '^ *+' conftest.er1 >conftest.err
37260 rm -f conftest.er1
37261 cat conftest.err >&5
a848cd7e
SC
37262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37263 (exit $ac_status); } &&
6954625c 37264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37266 (eval $ac_try) 2>&5
37267 ac_status=$?
37268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37269 (exit $ac_status); }; } &&
37270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37272 (eval $ac_try) 2>&5
37273 ac_status=$?
37274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37275 (exit $ac_status); }; }; then
37276 echo "$as_me:$LINENO: result: yes" >&5
37277echo "${ECHO_T}yes" >&6
37278 cat >>confdefs.h <<\_ACEOF
37279#define HAVE_KNOWN_CDROM_INTERFACE 1
37280_ACEOF
37281
37282else
37283 echo "$as_me: failed program was:" >&5
37284sed 's/^/| /' conftest.$ac_ext >&5
37285
37286echo "$as_me:$LINENO: result: no" >&5
37287echo "${ECHO_T}no" >&6
37288fi
ac1cb8d3 37289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37290
37291
37292cat >confcache <<\_ACEOF
37293# This file is a shell script that caches the results of configure
37294# tests run on this system so they can be shared between configure
37295# scripts and configure runs, see configure's option --config-cache.
37296# It is not useful on other systems. If it contains results you don't
37297# want to keep, you may remove or edit it.
37298#
37299# config.status only pays attention to the cache file if you give it
37300# the --recheck option to rerun configure.
37301#
37302# `ac_cv_env_foo' variables (set or unset) will be overridden when
37303# loading this file, other *unset* `ac_cv_foo' will be assigned the
37304# following values.
37305
37306_ACEOF
37307
37308# The following way of writing the cache mishandles newlines in values,
37309# but we know of no workaround that is simple, portable, and efficient.
37310# So, don't put newlines in cache variables' values.
37311# Ultrix sh set writes to stderr and can't be redirected directly,
37312# and sets the high bit in the cache file unless we assign to the vars.
37313{
37314 (set) 2>&1 |
37315 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37316 *ac_space=\ *)
37317 # `set' does not quote correctly, so add quotes (double-quote
37318 # substitution turns \\\\ into \\, and sed turns \\ into \).
37319 sed -n \
ac1cb8d3
VS
37320 "s/'/'\\\\''/g;
37321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
37322 ;;
37323 *)
37324 # `set' quotes correctly as required by POSIX, so do not add quotes.
37325 sed -n \
ac1cb8d3 37326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
37327 ;;
37328 esac;
37329} |
37330 sed '
37331 t clear
37332 : clear
37333 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37334 t end
37335 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37336 : end' >>confcache
37337if diff $cache_file confcache >/dev/null 2>&1; then :; else
37338 if test -w $cache_file; then
37339 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37340 cat confcache >$cache_file
37341 else
37342 echo "not updating unwritable cache $cache_file"
37343 fi
37344fi
37345rm -f confcache
37346
37347
a848cd7e
SC
37348if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37349
37350
37351 THREADS_LINK=
e56f4f9e 37352 THREADS_CXXFLAGS=
a848cd7e
SC
37353
37354 if test "$wxUSE_THREADS" = "yes" ; then
37355 if test "$USE_BEOS" = 1; then
37356 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37357echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37358 wxUSE_THREADS="no"
37359 fi
37360 fi
37361
37362 if test "$wxUSE_THREADS" = "yes" ; then
37363
37364
37365 THREAD_OPTS="-pthread"
37366 case "${host}" in
37367 *-*-solaris2* | *-*-sunos4* )
37368 if test "x$GCC" = "xyes"; then
37369 THREAD_OPTS="-pthreads $THREAD_OPTS"
37370 else
37371 THREAD_OPTS="-mt $THREAD_OPTS"
37372 fi
37373 ;;
37374 *-*-freebsd*)
37375 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37376 ;;
37377 *-*-darwin* | *-*-cygwin* )
37378 THREAD_OPTS=""
37379 ;;
37380 *-*-aix*)
37381 THREAD_OPTS="pthreads"
37382 ;;
37383 *-hp-hpux* )
00421666
MW
37384 if test "x$GCC" = "xyes"; then
37385 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37386 THREAD_OPTS=""
37387 else
0093c2fc 37388 THREAD_OPTS="-mt"
a848cd7e
SC
37389 fi
37390 ;;
37391
37392 *-*-irix* )
37393 if test "x$GCC" = "xyes"; then
37394 THREAD_OPTS=""
37395 fi
37396 ;;
37397
37398 *-*-*UnixWare*)
37399 if test "x$GCC" != "xyes"; then
37400 THREAD_OPTS="-Ethread"
37401 fi
37402 ;;
37403 esac
37404
37405 THREAD_OPTS="$THREAD_OPTS pthread none"
37406
37407 THREADS_OK=no
37408 for flag in $THREAD_OPTS; do
37409 case $flag in
37410 none)
37411 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37412echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37413 ;;
37414
37415 -*)
37416 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37417echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 37418 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
37419 ;;
37420
37421 *)
37422 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37423echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37424 THREADS_LINK="-l$flag"
37425 ;;
37426 esac
37427
37428 save_LIBS="$LIBS"
e56f4f9e 37429 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 37430 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 37431 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
37432
37433 cat >conftest.$ac_ext <<_ACEOF
37434/* confdefs.h. */
37435_ACEOF
37436cat confdefs.h >>conftest.$ac_ext
37437cat >>conftest.$ac_ext <<_ACEOF
37438/* end confdefs.h. */
37439#include <pthread.h>
37440int
37441main ()
37442{
37443pthread_create(0,0,0,0);
37444 ;
37445 return 0;
37446}
37447_ACEOF
37448rm -f conftest.$ac_objext conftest$ac_exeext
37449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37450 (eval $ac_link) 2>conftest.er1
a848cd7e 37451 ac_status=$?
ac1cb8d3
VS
37452 grep -v '^ *+' conftest.er1 >conftest.err
37453 rm -f conftest.er1
37454 cat conftest.err >&5
a848cd7e
SC
37455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37456 (exit $ac_status); } &&
6954625c 37457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37459 (eval $ac_try) 2>&5
37460 ac_status=$?
37461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37462 (exit $ac_status); }; } &&
37463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37465 (eval $ac_try) 2>&5
37466 ac_status=$?
37467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37468 (exit $ac_status); }; }; then
37469 THREADS_OK=yes
37470else
37471 echo "$as_me: failed program was:" >&5
37472sed 's/^/| /' conftest.$ac_ext >&5
37473
37474fi
ac1cb8d3
VS
37475rm -f conftest.err conftest.$ac_objext \
37476 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37477
37478 LIBS="$save_LIBS"
e56f4f9e 37479 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
37480
37481 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37482echo "${ECHO_T}$THREADS_OK" >&6
37483 if test "x$THREADS_OK" = "xyes"; then
37484 break;
37485 fi
37486
37487 THREADS_LINK=""
e56f4f9e 37488 THREADS_CXXFLAGS=""
a848cd7e
SC
37489 done
37490
37491 if test "x$THREADS_OK" != "xyes"; then
37492 wxUSE_THREADS=no
37493 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37494echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37495 else
e56f4f9e 37496 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
37497 LIBS="$THREADS_LINK $LIBS"
37498
37499 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37500echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37501 flag=no
37502 case "${host}" in
37503 *-aix*)
37504 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37505 flag="-D_THREAD_SAFE"
37506 ;;
37507 *-freebsd*)
37508 flag="-D_THREAD_SAFE"
37509 ;;
37510 *-hp-hpux* )
37511 flag="-D_REENTRANT"
37512 if test "x$GCC" != "xyes"; then
37513 flag="$flag -D_RWSTD_MULTI_THREAD"
37514 fi
37515 ;;
37516 *solaris* | alpha*-osf*)
37517 flag="-D_REENTRANT"
37518 ;;
37519 esac
37520 echo "$as_me:$LINENO: result: ${flag}" >&5
37521echo "${ECHO_T}${flag}" >&6
37522 if test "x$flag" != xno; then
e56f4f9e 37523 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
37524 fi
37525
e56f4f9e 37526 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
37527 fi
37528 fi
37529
37530 if test "$wxUSE_THREADS" = "yes" ; then
37531
37532for ac_func in thr_setconcurrency
37533do
37534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37535echo "$as_me:$LINENO: checking for $ac_func" >&5
37536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37537if eval "test \"\${$as_ac_var+set}\" = set"; then
37538 echo $ECHO_N "(cached) $ECHO_C" >&6
37539else
37540 cat >conftest.$ac_ext <<_ACEOF
37541/* confdefs.h. */
37542_ACEOF
37543cat confdefs.h >>conftest.$ac_ext
37544cat >>conftest.$ac_ext <<_ACEOF
37545/* end confdefs.h. */
ac1cb8d3
VS
37546/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37548#define $ac_func innocuous_$ac_func
37549
a848cd7e
SC
37550/* System header to define __stub macros and hopefully few prototypes,
37551 which can conflict with char $ac_func (); below.
37552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37553 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37554
a848cd7e
SC
37555#ifdef __STDC__
37556# include <limits.h>
37557#else
37558# include <assert.h>
37559#endif
ac1cb8d3
VS
37560
37561#undef $ac_func
37562
a848cd7e
SC
37563/* Override any gcc2 internal prototype to avoid an error. */
37564#ifdef __cplusplus
37565extern "C"
37566{
37567#endif
37568/* We use char because int might match the return type of a gcc2
37569 builtin and then its argument prototype would still apply. */
37570char $ac_func ();
37571/* The GNU C library defines this for functions which it implements
37572 to always fail with ENOSYS. Some functions are actually named
37573 something starting with __ and the normal name is an alias. */
37574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37575choke me
37576#else
37577char (*f) () = $ac_func;
37578#endif
37579#ifdef __cplusplus
37580}
37581#endif
37582
37583int
37584main ()
37585{
37586return f != $ac_func;
37587 ;
37588 return 0;
37589}
37590_ACEOF
37591rm -f conftest.$ac_objext conftest$ac_exeext
37592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37593 (eval $ac_link) 2>conftest.er1
a848cd7e 37594 ac_status=$?
ac1cb8d3
VS
37595 grep -v '^ *+' conftest.er1 >conftest.err
37596 rm -f conftest.er1
37597 cat conftest.err >&5
a848cd7e
SC
37598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599 (exit $ac_status); } &&
6954625c 37600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37602 (eval $ac_try) 2>&5
37603 ac_status=$?
37604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605 (exit $ac_status); }; } &&
37606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37608 (eval $ac_try) 2>&5
37609 ac_status=$?
37610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611 (exit $ac_status); }; }; then
37612 eval "$as_ac_var=yes"
37613else
37614 echo "$as_me: failed program was:" >&5
37615sed 's/^/| /' conftest.$ac_ext >&5
37616
37617eval "$as_ac_var=no"
37618fi
ac1cb8d3
VS
37619rm -f conftest.err conftest.$ac_objext \
37620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37621fi
37622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37623echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37624if test `eval echo '${'$as_ac_var'}'` = yes; then
37625 cat >>confdefs.h <<_ACEOF
37626#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37627_ACEOF
37628
37629fi
37630done
37631
37632
6ebeb4c7
VZ
37633 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37634echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37635if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37636 echo $ECHO_N "(cached) $ECHO_C" >&6
37637else
37638
37639 cat >conftest.$ac_ext <<_ACEOF
37640/* confdefs.h. */
37641_ACEOF
37642cat confdefs.h >>conftest.$ac_ext
37643cat >>conftest.$ac_ext <<_ACEOF
37644/* end confdefs.h. */
37645#include <pthread.h>
37646 void ThreadCleanupFunc(void *p);
37647
37648int
37649main ()
37650{
37651
37652 void *p;
37653 pthread_cleanup_push(ThreadCleanupFunc, p);
37654 pthread_cleanup_pop(0);
37655
37656 ;
37657 return 0;
37658}
37659_ACEOF
37660rm -f conftest.$ac_objext
37661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37662 (eval $ac_compile) 2>conftest.er1
37663 ac_status=$?
37664 grep -v '^ *+' conftest.er1 >conftest.err
37665 rm -f conftest.er1
37666 cat conftest.err >&5
37667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37668 (exit $ac_status); } &&
6954625c 37669 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
37670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37671 (eval $ac_try) 2>&5
37672 ac_status=$?
37673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37674 (exit $ac_status); }; } &&
37675 { ac_try='test -s conftest.$ac_objext'
37676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37677 (eval $ac_try) 2>&5
37678 ac_status=$?
37679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680 (exit $ac_status); }; }; then
37681
37682 wx_cv_func_pthread_cleanup=yes
37683
37684else
37685 echo "$as_me: failed program was:" >&5
37686sed 's/^/| /' conftest.$ac_ext >&5
37687
37688
37689 wx_cv_func_pthread_cleanup=no
37690
37691
37692fi
37693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37694
37695fi
37696echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37697echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37698 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37699 cat >>confdefs.h <<\_ACEOF
37700#define wxHAVE_PTHREAD_CLEANUP 1
37701_ACEOF
37702
37703 fi
37704
a848cd7e
SC
37705
37706for ac_header in sched.h
37707do
37708as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37709if eval "test \"\${$as_ac_Header+set}\" = set"; then
37710 echo "$as_me:$LINENO: checking for $ac_header" >&5
37711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37712if eval "test \"\${$as_ac_Header+set}\" = set"; then
37713 echo $ECHO_N "(cached) $ECHO_C" >&6
37714fi
37715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37716echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37717else
37718 # Is the header compilable?
37719echo "$as_me:$LINENO: checking $ac_header usability" >&5
37720echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37721cat >conftest.$ac_ext <<_ACEOF
37722/* confdefs.h. */
37723_ACEOF
37724cat confdefs.h >>conftest.$ac_ext
37725cat >>conftest.$ac_ext <<_ACEOF
37726/* end confdefs.h. */
37727$ac_includes_default
37728#include <$ac_header>
37729_ACEOF
37730rm -f conftest.$ac_objext
37731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37732 (eval $ac_compile) 2>conftest.er1
a848cd7e 37733 ac_status=$?
ac1cb8d3
VS
37734 grep -v '^ *+' conftest.er1 >conftest.err
37735 rm -f conftest.er1
37736 cat conftest.err >&5
a848cd7e
SC
37737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738 (exit $ac_status); } &&
6954625c 37739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37741 (eval $ac_try) 2>&5
37742 ac_status=$?
37743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); }; } &&
37745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37747 (eval $ac_try) 2>&5
37748 ac_status=$?
37749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37750 (exit $ac_status); }; }; then
37751 ac_header_compiler=yes
37752else
37753 echo "$as_me: failed program was:" >&5
37754sed 's/^/| /' conftest.$ac_ext >&5
37755
37756ac_header_compiler=no
37757fi
ac1cb8d3 37758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37760echo "${ECHO_T}$ac_header_compiler" >&6
37761
37762# Is the header present?
37763echo "$as_me:$LINENO: checking $ac_header presence" >&5
37764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37765cat >conftest.$ac_ext <<_ACEOF
37766/* confdefs.h. */
37767_ACEOF
37768cat confdefs.h >>conftest.$ac_ext
37769cat >>conftest.$ac_ext <<_ACEOF
37770/* end confdefs.h. */
37771#include <$ac_header>
37772_ACEOF
37773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37775 ac_status=$?
37776 grep -v '^ *+' conftest.er1 >conftest.err
37777 rm -f conftest.er1
37778 cat conftest.err >&5
37779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780 (exit $ac_status); } >/dev/null; then
37781 if test -s conftest.err; then
5d7b7554
VZ
37782 ac_cpp_err=$ac_cxx_preproc_warn_flag
37783 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37784 else
37785 ac_cpp_err=
37786 fi
37787else
37788 ac_cpp_err=yes
37789fi
37790if test -z "$ac_cpp_err"; then
37791 ac_header_preproc=yes
37792else
37793 echo "$as_me: failed program was:" >&5
37794sed 's/^/| /' conftest.$ac_ext >&5
37795
37796 ac_header_preproc=no
37797fi
37798rm -f conftest.err conftest.$ac_ext
37799echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37800echo "${ECHO_T}$ac_header_preproc" >&6
37801
37802# So? What about this header?
5d7b7554 37803case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37804 yes:no: )
a848cd7e
SC
37805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37808echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37809 ac_header_preproc=yes
a848cd7e 37810 ;;
ac1cb8d3 37811 no:yes:* )
a848cd7e
SC
37812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37817echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37819echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37821echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37823echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37824 (
37825 cat <<\_ASBOX
ac1cb8d3
VS
37826## ----------------------------------------- ##
37827## Report this to wx-dev@lists.wxwidgets.org ##
37828## ----------------------------------------- ##
a848cd7e
SC
37829_ASBOX
37830 ) |
37831 sed "s/^/$as_me: WARNING: /" >&2
37832 ;;
37833esac
37834echo "$as_me:$LINENO: checking for $ac_header" >&5
37835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37836if eval "test \"\${$as_ac_Header+set}\" = set"; then
37837 echo $ECHO_N "(cached) $ECHO_C" >&6
37838else
ac1cb8d3 37839 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37840fi
37841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37843
37844fi
37845if test `eval echo '${'$as_ac_Header'}'` = yes; then
37846 cat >>confdefs.h <<_ACEOF
37847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37848_ACEOF
37849
37850fi
37851
37852done
37853
37854 if test "$ac_cv_header_sched_h" = "yes"; then
37855 echo "$as_me:$LINENO: checking for sched_yield" >&5
37856echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37857if test "${ac_cv_func_sched_yield+set}" = set; then
37858 echo $ECHO_N "(cached) $ECHO_C" >&6
37859else
37860 cat >conftest.$ac_ext <<_ACEOF
37861/* confdefs.h. */
37862_ACEOF
37863cat confdefs.h >>conftest.$ac_ext
37864cat >>conftest.$ac_ext <<_ACEOF
37865/* end confdefs.h. */
ac1cb8d3
VS
37866/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37868#define sched_yield innocuous_sched_yield
37869
a848cd7e
SC
37870/* System header to define __stub macros and hopefully few prototypes,
37871 which can conflict with char sched_yield (); below.
37872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37873 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37874
a848cd7e
SC
37875#ifdef __STDC__
37876# include <limits.h>
37877#else
37878# include <assert.h>
37879#endif
ac1cb8d3
VS
37880
37881#undef sched_yield
37882
a848cd7e
SC
37883/* Override any gcc2 internal prototype to avoid an error. */
37884#ifdef __cplusplus
37885extern "C"
37886{
37887#endif
37888/* We use char because int might match the return type of a gcc2
37889 builtin and then its argument prototype would still apply. */
37890char sched_yield ();
37891/* The GNU C library defines this for functions which it implements
37892 to always fail with ENOSYS. Some functions are actually named
37893 something starting with __ and the normal name is an alias. */
37894#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37895choke me
37896#else
37897char (*f) () = sched_yield;
37898#endif
37899#ifdef __cplusplus
37900}
37901#endif
37902
37903int
37904main ()
37905{
37906return f != sched_yield;
37907 ;
37908 return 0;
37909}
37910_ACEOF
37911rm -f conftest.$ac_objext conftest$ac_exeext
37912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37913 (eval $ac_link) 2>conftest.er1
a848cd7e 37914 ac_status=$?
ac1cb8d3
VS
37915 grep -v '^ *+' conftest.er1 >conftest.err
37916 rm -f conftest.er1
37917 cat conftest.err >&5
a848cd7e
SC
37918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37919 (exit $ac_status); } &&
6954625c 37920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37922 (eval $ac_try) 2>&5
37923 ac_status=$?
37924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37925 (exit $ac_status); }; } &&
37926 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37928 (eval $ac_try) 2>&5
37929 ac_status=$?
37930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37931 (exit $ac_status); }; }; then
37932 ac_cv_func_sched_yield=yes
37933else
37934 echo "$as_me: failed program was:" >&5
37935sed 's/^/| /' conftest.$ac_ext >&5
37936
37937ac_cv_func_sched_yield=no
37938fi
ac1cb8d3
VS
37939rm -f conftest.err conftest.$ac_objext \
37940 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37941fi
37942echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37943echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37944if test $ac_cv_func_sched_yield = yes; then
37945 cat >>confdefs.h <<\_ACEOF
37946#define HAVE_SCHED_YIELD 1
37947_ACEOF
37948
37949else
37950
37951 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37952echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37953if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37954 echo $ECHO_N "(cached) $ECHO_C" >&6
37955else
37956 ac_check_lib_save_LIBS=$LIBS
37957LIBS="-lposix4 $LIBS"
37958cat >conftest.$ac_ext <<_ACEOF
37959/* confdefs.h. */
37960_ACEOF
37961cat confdefs.h >>conftest.$ac_ext
37962cat >>conftest.$ac_ext <<_ACEOF
37963/* end confdefs.h. */
37964
37965/* Override any gcc2 internal prototype to avoid an error. */
37966#ifdef __cplusplus
37967extern "C"
37968#endif
37969/* We use char because int might match the return type of a gcc2
37970 builtin and then its argument prototype would still apply. */
37971char sched_yield ();
37972int
37973main ()
37974{
37975sched_yield ();
37976 ;
37977 return 0;
37978}
37979_ACEOF
37980rm -f conftest.$ac_objext conftest$ac_exeext
37981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37982 (eval $ac_link) 2>conftest.er1
a848cd7e 37983 ac_status=$?
ac1cb8d3
VS
37984 grep -v '^ *+' conftest.er1 >conftest.err
37985 rm -f conftest.er1
37986 cat conftest.err >&5
a848cd7e
SC
37987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37988 (exit $ac_status); } &&
6954625c 37989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37991 (eval $ac_try) 2>&5
37992 ac_status=$?
37993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37994 (exit $ac_status); }; } &&
37995 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37997 (eval $ac_try) 2>&5
37998 ac_status=$?
37999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38000 (exit $ac_status); }; }; then
38001 ac_cv_lib_posix4_sched_yield=yes
38002else
38003 echo "$as_me: failed program was:" >&5
38004sed 's/^/| /' conftest.$ac_ext >&5
38005
38006ac_cv_lib_posix4_sched_yield=no
38007fi
ac1cb8d3
VS
38008rm -f conftest.err conftest.$ac_objext \
38009 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38010LIBS=$ac_check_lib_save_LIBS
38011fi
38012echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38013echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38014if test $ac_cv_lib_posix4_sched_yield = yes; then
38015 cat >>confdefs.h <<\_ACEOF
38016#define HAVE_SCHED_YIELD 1
38017_ACEOF
38018 POSIX4_LINK=" -lposix4"
38019else
38020 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38021echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38022
38023fi
38024
38025
38026
38027fi
38028
38029 fi
38030
38031 HAVE_PRIOR_FUNCS=0
38032 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38033echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38034if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38035 echo $ECHO_N "(cached) $ECHO_C" >&6
38036else
38037 cat >conftest.$ac_ext <<_ACEOF
38038/* confdefs.h. */
38039_ACEOF
38040cat confdefs.h >>conftest.$ac_ext
38041cat >>conftest.$ac_ext <<_ACEOF
38042/* end confdefs.h. */
ac1cb8d3
VS
38043/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38045#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38046
a848cd7e
SC
38047/* System header to define __stub macros and hopefully few prototypes,
38048 which can conflict with char pthread_attr_getschedpolicy (); below.
38049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38050 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38051
a848cd7e
SC
38052#ifdef __STDC__
38053# include <limits.h>
38054#else
38055# include <assert.h>
38056#endif
ac1cb8d3
VS
38057
38058#undef pthread_attr_getschedpolicy
38059
a848cd7e
SC
38060/* Override any gcc2 internal prototype to avoid an error. */
38061#ifdef __cplusplus
38062extern "C"
38063{
38064#endif
38065/* We use char because int might match the return type of a gcc2
38066 builtin and then its argument prototype would still apply. */
38067char pthread_attr_getschedpolicy ();
38068/* The GNU C library defines this for functions which it implements
38069 to always fail with ENOSYS. Some functions are actually named
38070 something starting with __ and the normal name is an alias. */
38071#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38072choke me
38073#else
38074char (*f) () = pthread_attr_getschedpolicy;
38075#endif
38076#ifdef __cplusplus
38077}
38078#endif
38079
38080int
38081main ()
38082{
38083return f != pthread_attr_getschedpolicy;
38084 ;
38085 return 0;
38086}
38087_ACEOF
38088rm -f conftest.$ac_objext conftest$ac_exeext
38089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38090 (eval $ac_link) 2>conftest.er1
a848cd7e 38091 ac_status=$?
ac1cb8d3
VS
38092 grep -v '^ *+' conftest.er1 >conftest.err
38093 rm -f conftest.er1
38094 cat conftest.err >&5
a848cd7e
SC
38095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38096 (exit $ac_status); } &&
6954625c 38097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38099 (eval $ac_try) 2>&5
38100 ac_status=$?
38101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38102 (exit $ac_status); }; } &&
38103 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38105 (eval $ac_try) 2>&5
38106 ac_status=$?
38107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108 (exit $ac_status); }; }; then
38109 ac_cv_func_pthread_attr_getschedpolicy=yes
38110else
38111 echo "$as_me: failed program was:" >&5
38112sed 's/^/| /' conftest.$ac_ext >&5
38113
38114ac_cv_func_pthread_attr_getschedpolicy=no
38115fi
ac1cb8d3
VS
38116rm -f conftest.err conftest.$ac_objext \
38117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38118fi
38119echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38120echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38121if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38122 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38123echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38124if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38125 echo $ECHO_N "(cached) $ECHO_C" >&6
38126else
38127 cat >conftest.$ac_ext <<_ACEOF
38128/* confdefs.h. */
38129_ACEOF
38130cat confdefs.h >>conftest.$ac_ext
38131cat >>conftest.$ac_ext <<_ACEOF
38132/* end confdefs.h. */
ac1cb8d3
VS
38133/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38135#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38136
a848cd7e
SC
38137/* System header to define __stub macros and hopefully few prototypes,
38138 which can conflict with char pthread_attr_setschedparam (); below.
38139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38140 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38141
a848cd7e
SC
38142#ifdef __STDC__
38143# include <limits.h>
38144#else
38145# include <assert.h>
38146#endif
ac1cb8d3
VS
38147
38148#undef pthread_attr_setschedparam
38149
a848cd7e
SC
38150/* Override any gcc2 internal prototype to avoid an error. */
38151#ifdef __cplusplus
38152extern "C"
38153{
38154#endif
38155/* We use char because int might match the return type of a gcc2
38156 builtin and then its argument prototype would still apply. */
38157char pthread_attr_setschedparam ();
38158/* The GNU C library defines this for functions which it implements
38159 to always fail with ENOSYS. Some functions are actually named
38160 something starting with __ and the normal name is an alias. */
38161#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38162choke me
38163#else
38164char (*f) () = pthread_attr_setschedparam;
38165#endif
38166#ifdef __cplusplus
38167}
38168#endif
38169
38170int
38171main ()
38172{
38173return f != pthread_attr_setschedparam;
38174 ;
38175 return 0;
38176}
38177_ACEOF
38178rm -f conftest.$ac_objext conftest$ac_exeext
38179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38180 (eval $ac_link) 2>conftest.er1
a848cd7e 38181 ac_status=$?
ac1cb8d3
VS
38182 grep -v '^ *+' conftest.er1 >conftest.err
38183 rm -f conftest.er1
38184 cat conftest.err >&5
a848cd7e
SC
38185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38186 (exit $ac_status); } &&
6954625c 38187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38189 (eval $ac_try) 2>&5
38190 ac_status=$?
38191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192 (exit $ac_status); }; } &&
38193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38195 (eval $ac_try) 2>&5
38196 ac_status=$?
38197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198 (exit $ac_status); }; }; then
38199 ac_cv_func_pthread_attr_setschedparam=yes
38200else
38201 echo "$as_me: failed program was:" >&5
38202sed 's/^/| /' conftest.$ac_ext >&5
38203
38204ac_cv_func_pthread_attr_setschedparam=no
38205fi
ac1cb8d3
VS
38206rm -f conftest.err conftest.$ac_objext \
38207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38208fi
38209echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38210echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38211if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38212 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38213echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38214if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38215 echo $ECHO_N "(cached) $ECHO_C" >&6
38216else
38217 cat >conftest.$ac_ext <<_ACEOF
38218/* confdefs.h. */
38219_ACEOF
38220cat confdefs.h >>conftest.$ac_ext
38221cat >>conftest.$ac_ext <<_ACEOF
38222/* end confdefs.h. */
ac1cb8d3
VS
38223/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38225#define sched_get_priority_max innocuous_sched_get_priority_max
38226
a848cd7e
SC
38227/* System header to define __stub macros and hopefully few prototypes,
38228 which can conflict with char sched_get_priority_max (); below.
38229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38230 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38231
a848cd7e
SC
38232#ifdef __STDC__
38233# include <limits.h>
38234#else
38235# include <assert.h>
38236#endif
ac1cb8d3
VS
38237
38238#undef sched_get_priority_max
38239
a848cd7e
SC
38240/* Override any gcc2 internal prototype to avoid an error. */
38241#ifdef __cplusplus
38242extern "C"
38243{
38244#endif
38245/* We use char because int might match the return type of a gcc2
38246 builtin and then its argument prototype would still apply. */
38247char sched_get_priority_max ();
38248/* The GNU C library defines this for functions which it implements
38249 to always fail with ENOSYS. Some functions are actually named
38250 something starting with __ and the normal name is an alias. */
38251#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38252choke me
38253#else
38254char (*f) () = sched_get_priority_max;
38255#endif
38256#ifdef __cplusplus
38257}
38258#endif
38259
38260int
38261main ()
38262{
38263return f != sched_get_priority_max;
38264 ;
38265 return 0;
38266}
38267_ACEOF
38268rm -f conftest.$ac_objext conftest$ac_exeext
38269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38270 (eval $ac_link) 2>conftest.er1
a848cd7e 38271 ac_status=$?
ac1cb8d3
VS
38272 grep -v '^ *+' conftest.er1 >conftest.err
38273 rm -f conftest.er1
38274 cat conftest.err >&5
a848cd7e
SC
38275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38276 (exit $ac_status); } &&
6954625c 38277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38279 (eval $ac_try) 2>&5
38280 ac_status=$?
38281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38282 (exit $ac_status); }; } &&
38283 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38285 (eval $ac_try) 2>&5
38286 ac_status=$?
38287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288 (exit $ac_status); }; }; then
38289 ac_cv_func_sched_get_priority_max=yes
38290else
38291 echo "$as_me: failed program was:" >&5
38292sed 's/^/| /' conftest.$ac_ext >&5
38293
38294ac_cv_func_sched_get_priority_max=no
38295fi
ac1cb8d3
VS
38296rm -f conftest.err conftest.$ac_objext \
38297 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38298fi
38299echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38300echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38301if test $ac_cv_func_sched_get_priority_max = yes; then
38302 HAVE_PRIOR_FUNCS=1
38303else
38304 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38305echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38306if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38307 echo $ECHO_N "(cached) $ECHO_C" >&6
38308else
38309 ac_check_lib_save_LIBS=$LIBS
38310LIBS="-lposix4 $LIBS"
38311cat >conftest.$ac_ext <<_ACEOF
38312/* confdefs.h. */
38313_ACEOF
38314cat confdefs.h >>conftest.$ac_ext
38315cat >>conftest.$ac_ext <<_ACEOF
38316/* end confdefs.h. */
38317
38318/* Override any gcc2 internal prototype to avoid an error. */
38319#ifdef __cplusplus
38320extern "C"
38321#endif
38322/* We use char because int might match the return type of a gcc2
38323 builtin and then its argument prototype would still apply. */
38324char sched_get_priority_max ();
38325int
38326main ()
38327{
38328sched_get_priority_max ();
38329 ;
38330 return 0;
38331}
38332_ACEOF
38333rm -f conftest.$ac_objext conftest$ac_exeext
38334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38335 (eval $ac_link) 2>conftest.er1
a848cd7e 38336 ac_status=$?
ac1cb8d3
VS
38337 grep -v '^ *+' conftest.er1 >conftest.err
38338 rm -f conftest.er1
38339 cat conftest.err >&5
a848cd7e
SC
38340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341 (exit $ac_status); } &&
6954625c 38342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38344 (eval $ac_try) 2>&5
38345 ac_status=$?
38346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38347 (exit $ac_status); }; } &&
38348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38350 (eval $ac_try) 2>&5
38351 ac_status=$?
38352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38353 (exit $ac_status); }; }; then
38354 ac_cv_lib_posix4_sched_get_priority_max=yes
38355else
38356 echo "$as_me: failed program was:" >&5
38357sed 's/^/| /' conftest.$ac_ext >&5
38358
38359ac_cv_lib_posix4_sched_get_priority_max=no
38360fi
ac1cb8d3
VS
38361rm -f conftest.err conftest.$ac_objext \
38362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38363LIBS=$ac_check_lib_save_LIBS
38364fi
38365echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38366echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38367if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38368
38369 HAVE_PRIOR_FUNCS=1
38370 POSIX4_LINK=" -lposix4"
38371
38372fi
38373
38374
38375fi
38376
38377
38378fi
38379
38380
38381fi
38382
38383
38384 if test "$HAVE_PRIOR_FUNCS" = 1; then
38385 cat >>confdefs.h <<\_ACEOF
38386#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38387_ACEOF
38388
38389 else
38390 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38391echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38392 fi
38393
38394 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38395echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38396if test "${ac_cv_func_pthread_cancel+set}" = set; then
38397 echo $ECHO_N "(cached) $ECHO_C" >&6
38398else
38399 cat >conftest.$ac_ext <<_ACEOF
38400/* confdefs.h. */
38401_ACEOF
38402cat confdefs.h >>conftest.$ac_ext
38403cat >>conftest.$ac_ext <<_ACEOF
38404/* end confdefs.h. */
ac1cb8d3
VS
38405/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38407#define pthread_cancel innocuous_pthread_cancel
38408
a848cd7e
SC
38409/* System header to define __stub macros and hopefully few prototypes,
38410 which can conflict with char pthread_cancel (); below.
38411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38412 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38413
a848cd7e
SC
38414#ifdef __STDC__
38415# include <limits.h>
38416#else
38417# include <assert.h>
38418#endif
ac1cb8d3
VS
38419
38420#undef pthread_cancel
38421
a848cd7e
SC
38422/* Override any gcc2 internal prototype to avoid an error. */
38423#ifdef __cplusplus
38424extern "C"
38425{
38426#endif
38427/* We use char because int might match the return type of a gcc2
38428 builtin and then its argument prototype would still apply. */
38429char pthread_cancel ();
38430/* The GNU C library defines this for functions which it implements
38431 to always fail with ENOSYS. Some functions are actually named
38432 something starting with __ and the normal name is an alias. */
38433#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38434choke me
38435#else
38436char (*f) () = pthread_cancel;
38437#endif
38438#ifdef __cplusplus
38439}
38440#endif
38441
38442int
38443main ()
38444{
38445return f != pthread_cancel;
38446 ;
38447 return 0;
38448}
38449_ACEOF
38450rm -f conftest.$ac_objext conftest$ac_exeext
38451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38452 (eval $ac_link) 2>conftest.er1
a848cd7e 38453 ac_status=$?
ac1cb8d3
VS
38454 grep -v '^ *+' conftest.er1 >conftest.err
38455 rm -f conftest.er1
38456 cat conftest.err >&5
a848cd7e
SC
38457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38458 (exit $ac_status); } &&
6954625c 38459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38461 (eval $ac_try) 2>&5
38462 ac_status=$?
38463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38464 (exit $ac_status); }; } &&
38465 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38467 (eval $ac_try) 2>&5
38468 ac_status=$?
38469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38470 (exit $ac_status); }; }; then
38471 ac_cv_func_pthread_cancel=yes
38472else
38473 echo "$as_me: failed program was:" >&5
38474sed 's/^/| /' conftest.$ac_ext >&5
38475
38476ac_cv_func_pthread_cancel=no
38477fi
ac1cb8d3
VS
38478rm -f conftest.err conftest.$ac_objext \
38479 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38480fi
38481echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38482echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38483if test $ac_cv_func_pthread_cancel = yes; then
38484 cat >>confdefs.h <<\_ACEOF
38485#define HAVE_PTHREAD_CANCEL 1
38486_ACEOF
38487
38488else
38489 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38490echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38491fi
38492
38493
abc736fd
MW
38494 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38495echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38496if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38497 echo $ECHO_N "(cached) $ECHO_C" >&6
38498else
38499 cat >conftest.$ac_ext <<_ACEOF
38500/* confdefs.h. */
38501_ACEOF
38502cat confdefs.h >>conftest.$ac_ext
38503cat >>conftest.$ac_ext <<_ACEOF
38504/* end confdefs.h. */
38505/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38507#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38508
38509/* System header to define __stub macros and hopefully few prototypes,
38510 which can conflict with char pthread_attr_setstacksize (); below.
38511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38512 <limits.h> exists even on freestanding compilers. */
38513
38514#ifdef __STDC__
38515# include <limits.h>
38516#else
38517# include <assert.h>
38518#endif
38519
38520#undef pthread_attr_setstacksize
38521
38522/* Override any gcc2 internal prototype to avoid an error. */
38523#ifdef __cplusplus
38524extern "C"
38525{
38526#endif
38527/* We use char because int might match the return type of a gcc2
38528 builtin and then its argument prototype would still apply. */
38529char pthread_attr_setstacksize ();
38530/* The GNU C library defines this for functions which it implements
38531 to always fail with ENOSYS. Some functions are actually named
38532 something starting with __ and the normal name is an alias. */
38533#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38534choke me
38535#else
38536char (*f) () = pthread_attr_setstacksize;
38537#endif
38538#ifdef __cplusplus
38539}
38540#endif
38541
38542int
38543main ()
38544{
38545return f != pthread_attr_setstacksize;
38546 ;
38547 return 0;
38548}
38549_ACEOF
38550rm -f conftest.$ac_objext conftest$ac_exeext
38551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38552 (eval $ac_link) 2>conftest.er1
38553 ac_status=$?
38554 grep -v '^ *+' conftest.er1 >conftest.err
38555 rm -f conftest.er1
38556 cat conftest.err >&5
38557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38558 (exit $ac_status); } &&
6954625c 38559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
38560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38561 (eval $ac_try) 2>&5
38562 ac_status=$?
38563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38564 (exit $ac_status); }; } &&
38565 { ac_try='test -s conftest$ac_exeext'
38566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38567 (eval $ac_try) 2>&5
38568 ac_status=$?
38569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38570 (exit $ac_status); }; }; then
38571 ac_cv_func_pthread_attr_setstacksize=yes
38572else
38573 echo "$as_me: failed program was:" >&5
38574sed 's/^/| /' conftest.$ac_ext >&5
38575
38576ac_cv_func_pthread_attr_setstacksize=no
38577fi
38578rm -f conftest.err conftest.$ac_objext \
38579 conftest$ac_exeext conftest.$ac_ext
38580fi
38581echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38582echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38583if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38584 cat >>confdefs.h <<\_ACEOF
38585#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38586_ACEOF
38587
38588fi
38589
a848cd7e
SC
38590
38591
38592 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38593echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38594if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38595 echo $ECHO_N "(cached) $ECHO_C" >&6
38596else
38597
38598 cat >conftest.$ac_ext <<_ACEOF
38599/* confdefs.h. */
38600_ACEOF
38601cat confdefs.h >>conftest.$ac_ext
38602cat >>conftest.$ac_ext <<_ACEOF
38603/* end confdefs.h. */
38604#include <pthread.h>
38605int
38606main ()
38607{
38608
38609 pthread_mutexattr_t attr;
38610 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38611
38612 ;
38613 return 0;
38614}
38615_ACEOF
38616rm -f conftest.$ac_objext
38617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38618 (eval $ac_compile) 2>conftest.er1
a848cd7e 38619 ac_status=$?
ac1cb8d3
VS
38620 grep -v '^ *+' conftest.er1 >conftest.err
38621 rm -f conftest.er1
38622 cat conftest.err >&5
a848cd7e
SC
38623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624 (exit $ac_status); } &&
6954625c 38625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38627 (eval $ac_try) 2>&5
38628 ac_status=$?
38629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630 (exit $ac_status); }; } &&
38631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38633 (eval $ac_try) 2>&5
38634 ac_status=$?
38635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38636 (exit $ac_status); }; }; then
123dca7d 38637 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38638else
38639 echo "$as_me: failed program was:" >&5
38640sed 's/^/| /' conftest.$ac_ext >&5
38641
123dca7d 38642wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38643
38644fi
ac1cb8d3 38645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38646
38647fi
38648echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38649echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38650
38651 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38652 cat >>confdefs.h <<\_ACEOF
38653#define HAVE_PTHREAD_MUTEXATTR_T 1
38654_ACEOF
38655
123dca7d
VZ
38656
38657 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38658echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38659if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38660 echo $ECHO_N "(cached) $ECHO_C" >&6
38661else
38662
38663 cat >conftest.$ac_ext <<_ACEOF
38664/* confdefs.h. */
38665_ACEOF
38666cat confdefs.h >>conftest.$ac_ext
38667cat >>conftest.$ac_ext <<_ACEOF
38668/* end confdefs.h. */
38669#include <pthread.h>
38670int
38671main ()
38672{
38673
38674 pthread_mutexattr_t attr;
38675 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38676
38677 ;
38678 return 0;
38679}
38680_ACEOF
38681rm -f conftest.$ac_objext
38682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38683 (eval $ac_compile) 2>conftest.er1
38684 ac_status=$?
38685 grep -v '^ *+' conftest.er1 >conftest.err
38686 rm -f conftest.er1
38687 cat conftest.err >&5
38688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38689 (exit $ac_status); } &&
6954625c 38690 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
38691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38692 (eval $ac_try) 2>&5
38693 ac_status=$?
38694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38695 (exit $ac_status); }; } &&
38696 { ac_try='test -s conftest.$ac_objext'
38697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38698 (eval $ac_try) 2>&5
38699 ac_status=$?
38700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38701 (exit $ac_status); }; }; then
38702 wx_cv_func_pthread_mutexattr_settype_decl=yes
38703else
38704 echo "$as_me: failed program was:" >&5
38705sed 's/^/| /' conftest.$ac_ext >&5
38706
38707wx_cv_func_pthread_mutexattr_settype_decl=no
38708
38709fi
38710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38711
38712fi
38713echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38714echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38715 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38716 cat >>confdefs.h <<\_ACEOF
38717#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38718_ACEOF
38719
38720 fi
a848cd7e
SC
38721 else
38722 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38723echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38724if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38725 echo $ECHO_N "(cached) $ECHO_C" >&6
38726else
38727
38728 cat >conftest.$ac_ext <<_ACEOF
38729/* confdefs.h. */
38730_ACEOF
38731cat confdefs.h >>conftest.$ac_ext
38732cat >>conftest.$ac_ext <<_ACEOF
38733/* end confdefs.h. */
38734#include <pthread.h>
38735int
38736main ()
38737{
38738
38739 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38740
38741 ;
38742 return 0;
38743}
38744_ACEOF
38745rm -f conftest.$ac_objext
38746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38747 (eval $ac_compile) 2>conftest.er1
a848cd7e 38748 ac_status=$?
ac1cb8d3
VS
38749 grep -v '^ *+' conftest.er1 >conftest.err
38750 rm -f conftest.er1
38751 cat conftest.err >&5
a848cd7e
SC
38752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38753 (exit $ac_status); } &&
6954625c 38754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38756 (eval $ac_try) 2>&5
38757 ac_status=$?
38758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38759 (exit $ac_status); }; } &&
38760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38762 (eval $ac_try) 2>&5
38763 ac_status=$?
38764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38765 (exit $ac_status); }; }; then
38766
38767 wx_cv_type_pthread_rec_mutex_init=yes
38768
38769else
38770 echo "$as_me: failed program was:" >&5
38771sed 's/^/| /' conftest.$ac_ext >&5
38772
38773
38774 wx_cv_type_pthread_rec_mutex_init=no
38775
38776
38777fi
ac1cb8d3 38778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38779
38780fi
38781echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38782echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38783 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38784 cat >>confdefs.h <<\_ACEOF
38785#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38786_ACEOF
38787
38788 else
38789 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38790echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38791 fi
38792 fi
38793 fi
38794
38795else
38796 if test "$wxUSE_THREADS" = "yes" ; then
38797 case "${host}" in
38798 *-*-mingw32* )
38799 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38800echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38801if test "${wx_cv_cflags_mthread+set}" = set; then
38802 echo $ECHO_N "(cached) $ECHO_C" >&6
38803else
38804
e56f4f9e
VZ
38805 CXXFLAGS_OLD="$CXXFLAGS"
38806 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
38807 cat >conftest.$ac_ext <<_ACEOF
38808/* confdefs.h. */
38809_ACEOF
38810cat confdefs.h >>conftest.$ac_ext
38811cat >>conftest.$ac_ext <<_ACEOF
38812/* end confdefs.h. */
38813
38814int
38815main ()
38816{
38817
38818 ;
38819 return 0;
38820}
38821_ACEOF
38822rm -f conftest.$ac_objext
38823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38824 (eval $ac_compile) 2>conftest.er1
a848cd7e 38825 ac_status=$?
ac1cb8d3
VS
38826 grep -v '^ *+' conftest.er1 >conftest.err
38827 rm -f conftest.er1
38828 cat conftest.err >&5
a848cd7e
SC
38829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38830 (exit $ac_status); } &&
6954625c 38831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38833 (eval $ac_try) 2>&5
38834 ac_status=$?
38835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38836 (exit $ac_status); }; } &&
38837 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38839 (eval $ac_try) 2>&5
38840 ac_status=$?
38841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842 (exit $ac_status); }; }; then
38843 wx_cv_cflags_mthread=yes
38844else
38845 echo "$as_me: failed program was:" >&5
38846sed 's/^/| /' conftest.$ac_ext >&5
38847
38848wx_cv_cflags_mthread=no
38849
38850fi
ac1cb8d3 38851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38852
38853
38854fi
38855echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38856echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38857
38858 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 38859 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
38860 LDFLAGS="$LDFLAGS -mthreads"
38861 else
e56f4f9e 38862 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
38863 fi
38864 ;;
38865 *-pc-os2*emx )
5ff751d6
VZ
38866 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38867 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38868 LDFLAGS="$LDFLAGS -Zmt"
38869 ;;
38870 esac
38871 fi
38872fi
38873
004ee6da
RL
38874echo "$as_me:$LINENO: checking for localtime_r" >&5
38875echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38876if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38877 echo $ECHO_N "(cached) $ECHO_C" >&6
38878else
38879 cat >conftest.$ac_ext <<_ACEOF
38880/* confdefs.h. */
38881_ACEOF
38882cat confdefs.h >>conftest.$ac_ext
38883cat >>conftest.$ac_ext <<_ACEOF
38884/* end confdefs.h. */
004ee6da 38885/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 38886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 38887#define localtime_r innocuous_localtime_r
ac1cb8d3 38888
a848cd7e 38889/* System header to define __stub macros and hopefully few prototypes,
004ee6da 38890 which can conflict with char localtime_r (); below.
a848cd7e
SC
38891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38892 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38893
a848cd7e
SC
38894#ifdef __STDC__
38895# include <limits.h>
38896#else
38897# include <assert.h>
38898#endif
ac1cb8d3 38899
004ee6da 38900#undef localtime_r
ac1cb8d3 38901
a848cd7e
SC
38902/* Override any gcc2 internal prototype to avoid an error. */
38903#ifdef __cplusplus
38904extern "C"
38905{
38906#endif
38907/* We use char because int might match the return type of a gcc2
38908 builtin and then its argument prototype would still apply. */
004ee6da 38909char localtime_r ();
a848cd7e
SC
38910/* The GNU C library defines this for functions which it implements
38911 to always fail with ENOSYS. Some functions are actually named
38912 something starting with __ and the normal name is an alias. */
004ee6da 38913#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
38914choke me
38915#else
004ee6da 38916char (*f) () = localtime_r;
a848cd7e
SC
38917#endif
38918#ifdef __cplusplus
38919}
38920#endif
38921
38922int
38923main ()
38924{
004ee6da
RL
38925return f != localtime_r;
38926 ;
38927 return 0;
38928}
38929_ACEOF
38930rm -f conftest.$ac_objext conftest$ac_exeext
38931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38932 (eval $ac_link) 2>conftest.er1
38933 ac_status=$?
38934 grep -v '^ *+' conftest.er1 >conftest.err
38935 rm -f conftest.er1
38936 cat conftest.err >&5
38937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38938 (exit $ac_status); } &&
6954625c 38939 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38941 (eval $ac_try) 2>&5
38942 ac_status=$?
38943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38944 (exit $ac_status); }; } &&
38945 { ac_try='test -s conftest$ac_exeext'
38946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38947 (eval $ac_try) 2>&5
38948 ac_status=$?
38949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38950 (exit $ac_status); }; }; then
38951 ac_cv_func_localtime_r=yes
38952else
38953 echo "$as_me: failed program was:" >&5
38954sed 's/^/| /' conftest.$ac_ext >&5
38955
38956ac_cv_func_localtime_r=no
38957fi
38958rm -f conftest.err conftest.$ac_objext \
38959 conftest$ac_exeext conftest.$ac_ext
38960fi
38961echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38962echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38963if test $ac_cv_func_localtime_r = yes; then
38964 cat >>confdefs.h <<\_ACEOF
38965#define HAVE_LOCALTIME_R 1
38966_ACEOF
38967
38968fi
38969
38970echo "$as_me:$LINENO: checking for gmtime_r" >&5
38971echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38972if test "${ac_cv_func_gmtime_r+set}" = set; then
38973 echo $ECHO_N "(cached) $ECHO_C" >&6
38974else
38975 cat >conftest.$ac_ext <<_ACEOF
38976/* confdefs.h. */
38977_ACEOF
38978cat confdefs.h >>conftest.$ac_ext
38979cat >>conftest.$ac_ext <<_ACEOF
38980/* end confdefs.h. */
38981/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38983#define gmtime_r innocuous_gmtime_r
38984
38985/* System header to define __stub macros and hopefully few prototypes,
38986 which can conflict with char gmtime_r (); below.
38987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38988 <limits.h> exists even on freestanding compilers. */
38989
38990#ifdef __STDC__
38991# include <limits.h>
38992#else
38993# include <assert.h>
38994#endif
38995
38996#undef gmtime_r
38997
38998/* Override any gcc2 internal prototype to avoid an error. */
38999#ifdef __cplusplus
39000extern "C"
39001{
39002#endif
39003/* We use char because int might match the return type of a gcc2
39004 builtin and then its argument prototype would still apply. */
39005char gmtime_r ();
39006/* The GNU C library defines this for functions which it implements
39007 to always fail with ENOSYS. Some functions are actually named
39008 something starting with __ and the normal name is an alias. */
39009#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39010choke me
39011#else
39012char (*f) () = gmtime_r;
39013#endif
39014#ifdef __cplusplus
39015}
39016#endif
39017
39018int
39019main ()
39020{
39021return f != gmtime_r;
39022 ;
39023 return 0;
39024}
39025_ACEOF
39026rm -f conftest.$ac_objext conftest$ac_exeext
39027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39028 (eval $ac_link) 2>conftest.er1
39029 ac_status=$?
39030 grep -v '^ *+' conftest.er1 >conftest.err
39031 rm -f conftest.er1
39032 cat conftest.err >&5
39033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034 (exit $ac_status); } &&
6954625c 39035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39037 (eval $ac_try) 2>&5
39038 ac_status=$?
39039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39040 (exit $ac_status); }; } &&
39041 { ac_try='test -s conftest$ac_exeext'
39042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39043 (eval $ac_try) 2>&5
39044 ac_status=$?
39045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39046 (exit $ac_status); }; }; then
39047 ac_cv_func_gmtime_r=yes
39048else
39049 echo "$as_me: failed program was:" >&5
39050sed 's/^/| /' conftest.$ac_ext >&5
39051
39052ac_cv_func_gmtime_r=no
39053fi
39054rm -f conftest.err conftest.$ac_objext \
39055 conftest$ac_exeext conftest.$ac_ext
39056fi
39057echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39058echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39059if test $ac_cv_func_gmtime_r = yes; then
39060 cat >>confdefs.h <<\_ACEOF
39061#define HAVE_GMTIME_R 1
39062_ACEOF
39063
39064fi
39065
39066echo "$as_me:$LINENO: checking for readdir_r" >&5
39067echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39068if test "${ac_cv_func_readdir_r+set}" = set; then
39069 echo $ECHO_N "(cached) $ECHO_C" >&6
39070else
39071 cat >conftest.$ac_ext <<_ACEOF
39072/* confdefs.h. */
39073_ACEOF
39074cat confdefs.h >>conftest.$ac_ext
39075cat >>conftest.$ac_ext <<_ACEOF
39076/* end confdefs.h. */
39077/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39079#define readdir_r innocuous_readdir_r
39080
39081/* System header to define __stub macros and hopefully few prototypes,
39082 which can conflict with char readdir_r (); below.
39083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39084 <limits.h> exists even on freestanding compilers. */
39085
39086#ifdef __STDC__
39087# include <limits.h>
39088#else
39089# include <assert.h>
39090#endif
39091
39092#undef readdir_r
39093
39094/* Override any gcc2 internal prototype to avoid an error. */
39095#ifdef __cplusplus
39096extern "C"
39097{
39098#endif
39099/* We use char because int might match the return type of a gcc2
39100 builtin and then its argument prototype would still apply. */
39101char readdir_r ();
39102/* The GNU C library defines this for functions which it implements
39103 to always fail with ENOSYS. Some functions are actually named
39104 something starting with __ and the normal name is an alias. */
39105#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39106choke me
39107#else
39108char (*f) () = readdir_r;
39109#endif
39110#ifdef __cplusplus
39111}
39112#endif
39113
39114int
39115main ()
39116{
39117return f != readdir_r;
39118 ;
39119 return 0;
39120}
39121_ACEOF
39122rm -f conftest.$ac_objext conftest$ac_exeext
39123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39124 (eval $ac_link) 2>conftest.er1
39125 ac_status=$?
39126 grep -v '^ *+' conftest.er1 >conftest.err
39127 rm -f conftest.er1
39128 cat conftest.err >&5
39129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130 (exit $ac_status); } &&
6954625c 39131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39133 (eval $ac_try) 2>&5
39134 ac_status=$?
39135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39136 (exit $ac_status); }; } &&
39137 { ac_try='test -s conftest$ac_exeext'
39138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39139 (eval $ac_try) 2>&5
39140 ac_status=$?
39141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39142 (exit $ac_status); }; }; then
39143 ac_cv_func_readdir_r=yes
39144else
39145 echo "$as_me: failed program was:" >&5
39146sed 's/^/| /' conftest.$ac_ext >&5
39147
39148ac_cv_func_readdir_r=no
39149fi
39150rm -f conftest.err conftest.$ac_objext \
39151 conftest$ac_exeext conftest.$ac_ext
39152fi
39153echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39154echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39155if test $ac_cv_func_readdir_r = yes; then
39156 cat >>confdefs.h <<\_ACEOF
39157#define HAVE_READDIR_R 1
39158_ACEOF
39159
39160fi
39161
004ee6da 39162
004ee6da
RL
39163
39164
39165 ac_ext=c
39166ac_cpp='$CPP $CPPFLAGS'
39167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39169ac_compiler_gnu=$ac_cv_c_compiler_gnu
39170
39171 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39172echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39173
39174 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39175 echo $ECHO_N "(cached) $ECHO_C" >&6
39176else
39177
39178
004ee6da
RL
39179
39180ac_cv_func_which_gethostbyname_r=unknown
39181
39182#
39183# ONE ARGUMENT (sanity check)
39184#
39185
39186# This should fail, as there is no variant of gethostbyname_r() that takes
39187# a single argument. If it actually compiles, then we can assume that
39188# netdb.h is not declaring the function, and the compiler is thereby
39189# assuming an implicit prototype. In which case, we're out of luck.
39190#
39191cat >conftest.$ac_ext <<_ACEOF
39192/* confdefs.h. */
39193_ACEOF
39194cat confdefs.h >>conftest.$ac_ext
39195cat >>conftest.$ac_ext <<_ACEOF
39196/* end confdefs.h. */
39197#include <netdb.h>
39198int
39199main ()
39200{
39201
39202 char *name = "www.gnu.org";
39203 (void)gethostbyname_r(name) /* ; */
39204
39205 ;
39206 return 0;
39207}
39208_ACEOF
39209rm -f conftest.$ac_objext
39210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39211 (eval $ac_compile) 2>conftest.er1
39212 ac_status=$?
39213 grep -v '^ *+' conftest.er1 >conftest.err
39214 rm -f conftest.er1
39215 cat conftest.err >&5
39216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39217 (exit $ac_status); } &&
6954625c 39218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39220 (eval $ac_try) 2>&5
39221 ac_status=$?
39222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39223 (exit $ac_status); }; } &&
39224 { ac_try='test -s conftest.$ac_objext'
39225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39226 (eval $ac_try) 2>&5
39227 ac_status=$?
39228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39229 (exit $ac_status); }; }; then
39230 ac_cv_func_which_gethostbyname_r=no
39231else
39232 echo "$as_me: failed program was:" >&5
39233sed 's/^/| /' conftest.$ac_ext >&5
39234
39235fi
39236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39237
39238#
39239# SIX ARGUMENTS
39240# (e.g. Linux)
39241#
39242
39243if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39244
39245cat >conftest.$ac_ext <<_ACEOF
39246/* confdefs.h. */
39247_ACEOF
39248cat confdefs.h >>conftest.$ac_ext
39249cat >>conftest.$ac_ext <<_ACEOF
39250/* end confdefs.h. */
39251#include <netdb.h>
39252int
39253main ()
39254{
39255
39256 char *name = "www.gnu.org";
39257 struct hostent ret, *retp;
39258 char buf[1024];
39259 int buflen = 1024;
39260 int my_h_errno;
39261 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39262
39263 ;
39264 return 0;
39265}
39266_ACEOF
39267rm -f conftest.$ac_objext
39268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39269 (eval $ac_compile) 2>conftest.er1
39270 ac_status=$?
39271 grep -v '^ *+' conftest.er1 >conftest.err
39272 rm -f conftest.er1
39273 cat conftest.err >&5
39274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39275 (exit $ac_status); } &&
6954625c 39276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39278 (eval $ac_try) 2>&5
39279 ac_status=$?
39280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39281 (exit $ac_status); }; } &&
39282 { ac_try='test -s conftest.$ac_objext'
39283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39284 (eval $ac_try) 2>&5
39285 ac_status=$?
39286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39287 (exit $ac_status); }; }; then
39288 ac_cv_func_which_gethostbyname_r=six
39289else
39290 echo "$as_me: failed program was:" >&5
39291sed 's/^/| /' conftest.$ac_ext >&5
39292
39293fi
39294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39295
39296fi
39297
39298#
39299# FIVE ARGUMENTS
39300# (e.g. Solaris)
39301#
39302
39303if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39304
39305cat >conftest.$ac_ext <<_ACEOF
39306/* confdefs.h. */
39307_ACEOF
39308cat confdefs.h >>conftest.$ac_ext
39309cat >>conftest.$ac_ext <<_ACEOF
39310/* end confdefs.h. */
39311#include <netdb.h>
39312int
39313main ()
39314{
39315
39316 char *name = "www.gnu.org";
39317 struct hostent ret;
39318 char buf[1024];
39319 int buflen = 1024;
39320 int my_h_errno;
39321 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39322
39323 ;
39324 return 0;
39325}
39326_ACEOF
39327rm -f conftest.$ac_objext
39328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39329 (eval $ac_compile) 2>conftest.er1
39330 ac_status=$?
39331 grep -v '^ *+' conftest.er1 >conftest.err
39332 rm -f conftest.er1
39333 cat conftest.err >&5
39334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39335 (exit $ac_status); } &&
6954625c 39336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39338 (eval $ac_try) 2>&5
39339 ac_status=$?
39340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39341 (exit $ac_status); }; } &&
39342 { ac_try='test -s conftest.$ac_objext'
39343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39344 (eval $ac_try) 2>&5
39345 ac_status=$?
39346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39347 (exit $ac_status); }; }; then
39348 ac_cv_func_which_gethostbyname_r=five
39349else
39350 echo "$as_me: failed program was:" >&5
39351sed 's/^/| /' conftest.$ac_ext >&5
39352
39353fi
39354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39355
39356fi
39357
39358#
39359# THREE ARGUMENTS
39360# (e.g. AIX, HP-UX, Tru64)
39361#
39362
39363if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39364
39365cat >conftest.$ac_ext <<_ACEOF
39366/* confdefs.h. */
39367_ACEOF
39368cat confdefs.h >>conftest.$ac_ext
39369cat >>conftest.$ac_ext <<_ACEOF
39370/* end confdefs.h. */
39371#include <netdb.h>
39372int
39373main ()
39374{
39375
39376 char *name = "www.gnu.org";
39377 struct hostent ret;
39378 struct hostent_data data;
39379 (void)gethostbyname_r(name, &ret, &data) /* ; */
39380
39381 ;
39382 return 0;
39383}
39384_ACEOF
39385rm -f conftest.$ac_objext
39386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39387 (eval $ac_compile) 2>conftest.er1
39388 ac_status=$?
39389 grep -v '^ *+' conftest.er1 >conftest.err
39390 rm -f conftest.er1
39391 cat conftest.err >&5
39392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39393 (exit $ac_status); } &&
6954625c 39394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39396 (eval $ac_try) 2>&5
39397 ac_status=$?
39398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39399 (exit $ac_status); }; } &&
39400 { ac_try='test -s conftest.$ac_objext'
39401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39402 (eval $ac_try) 2>&5
39403 ac_status=$?
39404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39405 (exit $ac_status); }; }; then
39406 ac_cv_func_which_gethostbyname_r=three
39407else
39408 echo "$as_me: failed program was:" >&5
39409sed 's/^/| /' conftest.$ac_ext >&5
39410
39411fi
39412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39413
39414fi
39415
004ee6da
RL
39416
39417
39418fi
39419
39420case "$ac_cv_func_which_gethostbyname_r" in
39421 three)
39422 echo "$as_me:$LINENO: result: three" >&5
39423echo "${ECHO_T}three" >&6
39424 cat >>confdefs.h <<\_ACEOF
39425#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39426_ACEOF
39427
39428 ;;
39429
39430 five)
39431 echo "$as_me:$LINENO: result: five" >&5
39432echo "${ECHO_T}five" >&6
39433 cat >>confdefs.h <<\_ACEOF
39434#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39435_ACEOF
39436
39437 ;;
39438
39439 six)
39440 echo "$as_me:$LINENO: result: six" >&5
39441echo "${ECHO_T}six" >&6
39442 cat >>confdefs.h <<\_ACEOF
39443#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39444_ACEOF
39445
39446 ;;
39447
39448 no)
39449 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39450echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39451 ;;
39452
39453 unknown)
39454 echo "$as_me:$LINENO: result: can't tell" >&5
39455echo "${ECHO_T}can't tell" >&6
39456 ;;
39457
39458 *)
39459 { { echo "$as_me:$LINENO: error: internal error" >&5
39460echo "$as_me: error: internal error" >&2;}
39461 { (exit 1); exit 1; }; }
39462 ;;
39463esac
39464
5ec3bc43
JS
39465ac_ext=cc
39466ac_cpp='$CXXCPP $CPPFLAGS'
39467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
39470
39471
39472
39473 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39474 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39475 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39476echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39477if test "${ac_cv_func_gethostbyname+set}" = set; then
39478 echo $ECHO_N "(cached) $ECHO_C" >&6
39479else
39480 cat >conftest.$ac_ext <<_ACEOF
39481/* confdefs.h. */
39482_ACEOF
39483cat confdefs.h >>conftest.$ac_ext
39484cat >>conftest.$ac_ext <<_ACEOF
39485/* end confdefs.h. */
39486/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39488#define gethostbyname innocuous_gethostbyname
39489
39490/* System header to define __stub macros and hopefully few prototypes,
39491 which can conflict with char gethostbyname (); below.
39492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39493 <limits.h> exists even on freestanding compilers. */
39494
39495#ifdef __STDC__
39496# include <limits.h>
39497#else
39498# include <assert.h>
39499#endif
39500
39501#undef gethostbyname
39502
39503/* Override any gcc2 internal prototype to avoid an error. */
39504#ifdef __cplusplus
39505extern "C"
39506{
39507#endif
39508/* We use char because int might match the return type of a gcc2
39509 builtin and then its argument prototype would still apply. */
39510char gethostbyname ();
39511/* The GNU C library defines this for functions which it implements
39512 to always fail with ENOSYS. Some functions are actually named
39513 something starting with __ and the normal name is an alias. */
39514#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39515choke me
39516#else
39517char (*f) () = gethostbyname;
39518#endif
39519#ifdef __cplusplus
39520}
39521#endif
39522
39523int
39524main ()
39525{
39526return f != gethostbyname;
39527 ;
39528 return 0;
39529}
39530_ACEOF
39531rm -f conftest.$ac_objext conftest$ac_exeext
39532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39533 (eval $ac_link) 2>conftest.er1
39534 ac_status=$?
39535 grep -v '^ *+' conftest.er1 >conftest.err
39536 rm -f conftest.er1
39537 cat conftest.err >&5
39538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39539 (exit $ac_status); } &&
6954625c 39540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39542 (eval $ac_try) 2>&5
39543 ac_status=$?
39544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39545 (exit $ac_status); }; } &&
39546 { ac_try='test -s conftest$ac_exeext'
39547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39548 (eval $ac_try) 2>&5
39549 ac_status=$?
39550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39551 (exit $ac_status); }; }; then
39552 ac_cv_func_gethostbyname=yes
39553else
39554 echo "$as_me: failed program was:" >&5
39555sed 's/^/| /' conftest.$ac_ext >&5
39556
39557ac_cv_func_gethostbyname=no
39558fi
39559rm -f conftest.err conftest.$ac_objext \
39560 conftest$ac_exeext conftest.$ac_ext
39561fi
39562echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39563echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39564if test $ac_cv_func_gethostbyname = yes; then
39565 cat >>confdefs.h <<\_ACEOF
39566#define HAVE_GETHOSTBYNAME 1
39567_ACEOF
39568
39569fi
39570
39571 fi
39572 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39573echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39574if test "${ac_cv_func_getservbyname_r+set}" = set; then
39575 echo $ECHO_N "(cached) $ECHO_C" >&6
39576else
39577 cat >conftest.$ac_ext <<_ACEOF
39578/* confdefs.h. */
39579_ACEOF
39580cat confdefs.h >>conftest.$ac_ext
39581cat >>conftest.$ac_ext <<_ACEOF
39582/* end confdefs.h. */
39583/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39585#define getservbyname_r innocuous_getservbyname_r
39586
39587/* System header to define __stub macros and hopefully few prototypes,
39588 which can conflict with char getservbyname_r (); below.
39589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39590 <limits.h> exists even on freestanding compilers. */
39591
39592#ifdef __STDC__
39593# include <limits.h>
39594#else
39595# include <assert.h>
39596#endif
39597
39598#undef getservbyname_r
39599
39600/* Override any gcc2 internal prototype to avoid an error. */
39601#ifdef __cplusplus
39602extern "C"
39603{
39604#endif
39605/* We use char because int might match the return type of a gcc2
39606 builtin and then its argument prototype would still apply. */
39607char getservbyname_r ();
39608/* The GNU C library defines this for functions which it implements
39609 to always fail with ENOSYS. Some functions are actually named
39610 something starting with __ and the normal name is an alias. */
39611#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39612choke me
39613#else
39614char (*f) () = getservbyname_r;
39615#endif
39616#ifdef __cplusplus
39617}
39618#endif
39619
39620int
39621main ()
39622{
39623return f != getservbyname_r;
39624 ;
39625 return 0;
39626}
39627_ACEOF
39628rm -f conftest.$ac_objext conftest$ac_exeext
39629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39630 (eval $ac_link) 2>conftest.er1
39631 ac_status=$?
39632 grep -v '^ *+' conftest.er1 >conftest.err
39633 rm -f conftest.er1
39634 cat conftest.err >&5
39635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39636 (exit $ac_status); } &&
6954625c 39637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39639 (eval $ac_try) 2>&5
39640 ac_status=$?
39641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39642 (exit $ac_status); }; } &&
39643 { ac_try='test -s conftest$ac_exeext'
39644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39645 (eval $ac_try) 2>&5
39646 ac_status=$?
39647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39648 (exit $ac_status); }; }; then
39649 ac_cv_func_getservbyname_r=yes
39650else
39651 echo "$as_me: failed program was:" >&5
39652sed 's/^/| /' conftest.$ac_ext >&5
39653
39654ac_cv_func_getservbyname_r=no
39655fi
39656rm -f conftest.err conftest.$ac_objext \
39657 conftest$ac_exeext conftest.$ac_ext
39658fi
39659echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39660echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39661if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 39662 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39663/* confdefs.h. */
39664_ACEOF
39665cat confdefs.h >>conftest.$ac_ext
39666cat >>conftest.$ac_ext <<_ACEOF
39667/* end confdefs.h. */
99879bbf 39668#include <netdb.h>
004ee6da
RL
39669int
39670main ()
39671{
39672
99879bbf
MR
39673 char *name;
39674 char *proto;
39675 struct servent *se;
39676 struct servent_data data;
39677 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
39678
39679 ;
39680 return 0;
39681}
39682_ACEOF
39683rm -f conftest.$ac_objext
39684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39685 (eval $ac_compile) 2>conftest.er1
39686 ac_status=$?
39687 grep -v '^ *+' conftest.er1 >conftest.err
39688 rm -f conftest.er1
39689 cat conftest.err >&5
39690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39691 (exit $ac_status); } &&
6954625c 39692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39694 (eval $ac_try) 2>&5
39695 ac_status=$?
39696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39697 (exit $ac_status); }; } &&
39698 { ac_try='test -s conftest.$ac_objext'
39699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39700 (eval $ac_try) 2>&5
39701 ac_status=$?
39702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703 (exit $ac_status); }; }; then
39704 ac_cv_func_which_getservbyname_r=four
39705else
39706 echo "$as_me: failed program was:" >&5
39707sed 's/^/| /' conftest.$ac_ext >&5
39708
99879bbf 39709cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39710/* confdefs.h. */
39711_ACEOF
39712cat confdefs.h >>conftest.$ac_ext
39713cat >>conftest.$ac_ext <<_ACEOF
39714/* end confdefs.h. */
99879bbf 39715#include <netdb.h>
004ee6da
RL
39716int
39717main ()
39718{
39719
99879bbf
MR
39720 char *name;
39721 char *proto;
39722 struct servent *se, *res;
39723 char buffer[2048];
39724 int buflen = 2048;
39725 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
39726
39727 ;
39728 return 0;
39729}
39730_ACEOF
39731rm -f conftest.$ac_objext
39732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39733 (eval $ac_compile) 2>conftest.er1
39734 ac_status=$?
39735 grep -v '^ *+' conftest.er1 >conftest.err
39736 rm -f conftest.er1
39737 cat conftest.err >&5
39738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739 (exit $ac_status); } &&
6954625c 39740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39742 (eval $ac_try) 2>&5
39743 ac_status=$?
39744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39745 (exit $ac_status); }; } &&
39746 { ac_try='test -s conftest.$ac_objext'
39747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39748 (eval $ac_try) 2>&5
39749 ac_status=$?
39750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39751 (exit $ac_status); }; }; then
39752 ac_cv_func_which_getservbyname_r=six
39753else
39754 echo "$as_me: failed program was:" >&5
39755sed 's/^/| /' conftest.$ac_ext >&5
39756
99879bbf 39757cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39758/* confdefs.h. */
39759_ACEOF
39760cat confdefs.h >>conftest.$ac_ext
39761cat >>conftest.$ac_ext <<_ACEOF
39762/* end confdefs.h. */
99879bbf 39763#include <netdb.h>
004ee6da
RL
39764int
39765main ()
39766{
39767
99879bbf
MR
39768 char *name;
39769 char *proto;
39770 struct servent *se;
39771 char buffer[2048];
39772 int buflen = 2048;
39773 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
39774
39775 ;
39776 return 0;
39777}
39778_ACEOF
39779rm -f conftest.$ac_objext
39780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39781 (eval $ac_compile) 2>conftest.er1
39782 ac_status=$?
39783 grep -v '^ *+' conftest.er1 >conftest.err
39784 rm -f conftest.er1
39785 cat conftest.err >&5
39786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39787 (exit $ac_status); } &&
6954625c 39788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39790 (eval $ac_try) 2>&5
39791 ac_status=$?
39792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39793 (exit $ac_status); }; } &&
39794 { ac_try='test -s conftest.$ac_objext'
39795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39796 (eval $ac_try) 2>&5
39797 ac_status=$?
39798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39799 (exit $ac_status); }; }; then
39800 ac_cv_func_which_getservbyname_r=five
39801else
39802 echo "$as_me: failed program was:" >&5
39803sed 's/^/| /' conftest.$ac_ext >&5
39804
39805ac_cv_func_which_getservbyname_r=no
99879bbf 39806
004ee6da
RL
39807fi
39808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39809
004ee6da
RL
39810fi
39811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39812
004ee6da
RL
39813fi
39814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
39815else
39816 ac_cv_func_which_getservbyname_r=no
39817fi
39818
004ee6da
RL
39819
39820if test $ac_cv_func_which_getservbyname_r = six; then
39821 cat >>confdefs.h <<\_ACEOF
39822#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39823_ACEOF
39824
39825elif test $ac_cv_func_which_getservbyname_r = five; then
39826 cat >>confdefs.h <<\_ACEOF
39827#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39828_ACEOF
39829
39830elif test $ac_cv_func_which_getservbyname_r = four; then
39831 cat >>confdefs.h <<\_ACEOF
39832#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39833_ACEOF
39834
004ee6da
RL
39835fi
39836
39837
39838 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39839 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39840
39841for ac_func in getservbyname
39842do
39843as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39844echo "$as_me:$LINENO: checking for $ac_func" >&5
39845echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39846if eval "test \"\${$as_ac_var+set}\" = set"; then
39847 echo $ECHO_N "(cached) $ECHO_C" >&6
39848else
39849 cat >conftest.$ac_ext <<_ACEOF
39850/* confdefs.h. */
39851_ACEOF
39852cat confdefs.h >>conftest.$ac_ext
39853cat >>conftest.$ac_ext <<_ACEOF
39854/* end confdefs.h. */
39855/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39857#define $ac_func innocuous_$ac_func
39858
39859/* System header to define __stub macros and hopefully few prototypes,
39860 which can conflict with char $ac_func (); below.
39861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39862 <limits.h> exists even on freestanding compilers. */
39863
39864#ifdef __STDC__
39865# include <limits.h>
39866#else
39867# include <assert.h>
39868#endif
39869
39870#undef $ac_func
39871
39872/* Override any gcc2 internal prototype to avoid an error. */
39873#ifdef __cplusplus
39874extern "C"
39875{
39876#endif
39877/* We use char because int might match the return type of a gcc2
39878 builtin and then its argument prototype would still apply. */
39879char $ac_func ();
39880/* The GNU C library defines this for functions which it implements
39881 to always fail with ENOSYS. Some functions are actually named
39882 something starting with __ and the normal name is an alias. */
39883#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39884choke me
39885#else
39886char (*f) () = $ac_func;
39887#endif
39888#ifdef __cplusplus
39889}
39890#endif
39891
39892int
39893main ()
39894{
39895return f != $ac_func;
39896 ;
39897 return 0;
39898}
39899_ACEOF
39900rm -f conftest.$ac_objext conftest$ac_exeext
39901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39902 (eval $ac_link) 2>conftest.er1
39903 ac_status=$?
39904 grep -v '^ *+' conftest.er1 >conftest.err
39905 rm -f conftest.er1
39906 cat conftest.err >&5
39907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39908 (exit $ac_status); } &&
6954625c 39909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39911 (eval $ac_try) 2>&5
39912 ac_status=$?
39913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39914 (exit $ac_status); }; } &&
39915 { ac_try='test -s conftest$ac_exeext'
39916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39917 (eval $ac_try) 2>&5
39918 ac_status=$?
39919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920 (exit $ac_status); }; }; then
39921 eval "$as_ac_var=yes"
39922else
39923 echo "$as_me: failed program was:" >&5
39924sed 's/^/| /' conftest.$ac_ext >&5
39925
39926eval "$as_ac_var=no"
39927fi
39928rm -f conftest.err conftest.$ac_objext \
39929 conftest$ac_exeext conftest.$ac_ext
39930fi
39931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39932echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39933if test `eval echo '${'$as_ac_var'}'` = yes; then
39934 cat >>confdefs.h <<_ACEOF
39935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39936_ACEOF
39937 cat >>confdefs.h <<\_ACEOF
39938#define HAVE_GETSERVBYNAME 1
39939_ACEOF
39940
39941fi
39942done
39943
39944 fi
39945
004ee6da
RL
39946if test "$wxUSE_THREADS" = "yes"; then
39947 cat >>confdefs.h <<\_ACEOF
39948#define wxUSE_THREADS 1
39949_ACEOF
39950
39951
39952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39953else
39954 if test "$ac_cv_func_strtok_r" = "yes"; then
39955 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39956echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39957 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39958 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39959 echo "$as_me:$LINENO: result: yes" >&5
39960echo "${ECHO_T}yes" >&6
39961 else
39962 echo "$as_me:$LINENO: result: no" >&5
39963echo "${ECHO_T}no" >&6
39964 fi
39965 fi
39966fi
39967
39968if test "$WXGTK20" = 1 ; then
39969 cat >>confdefs.h <<_ACEOF
39970#define __WXGTK20__ $WXGTK20
39971_ACEOF
39972
39973 WXGTK12=1
39974fi
39975
39976if test "$WXGTK12" = 1 ; then
39977 cat >>confdefs.h <<_ACEOF
39978#define __WXGTK12__ $WXGTK12
39979_ACEOF
39980
39981fi
39982
39983if test "$WXGTK127" = 1 ; then
39984 cat >>confdefs.h <<_ACEOF
39985#define __WXGTK127__ $WXGTK127
39986_ACEOF
39987
39988fi
39989
39990if test "$WXGPE" = 1 ; then
39991 cat >>confdefs.h <<_ACEOF
39992#define __WXGPE__ $WXGPE
39993_ACEOF
39994
39995fi
39996
39997DEBUG_CFLAGS=
39998if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39999 DEBUG_CFLAGS="-g"
40000 wxUSE_OPTIMISE=no
40001fi
40002
40003if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40004 wxUSE_DEBUG_INFO=yes
40005 if test "$GCC" = yes; then
40006 DEBUG_CFLAGS="-ggdb"
40007 fi
40008fi
40009
40010if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40011 cat >>confdefs.h <<\_ACEOF
40012#define WXDEBUG 1
40013_ACEOF
40014
40015 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40016else
40017 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
40018 if test "x$wxGTK_VERSION" = "x1" ; then
40019 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40020 fi
004ee6da
RL
40021 fi
40022fi
40023
40024if test "$wxUSE_MEM_TRACING" = "yes" ; then
40025 cat >>confdefs.h <<\_ACEOF
40026#define wxUSE_MEMORY_TRACING 1
40027_ACEOF
40028
40029 cat >>confdefs.h <<\_ACEOF
40030#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40031_ACEOF
40032
40033 cat >>confdefs.h <<\_ACEOF
40034#define wxUSE_DEBUG_NEW_ALWAYS 1
40035_ACEOF
40036
40037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40038fi
40039
40040if test "$wxUSE_DMALLOC" = "yes" ; then
40041 DMALLOC_LIBS="-ldmallocthcxx"
40042fi
40043
40044PROFILE_FLAGS=
40045if test "$wxUSE_PROFILE" = "yes" ; then
40046 PROFILE_FLAGS=" -pg"
40047fi
40048
40049if test "$GCC" = "yes" ; then
40050 if test "$wxUSE_NO_RTTI" = "yes" ; then
40051 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40052 fi
40053 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40054 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40055 fi
40056 if test "$wxUSE_PERMISSIVE" = "yes" ; then
40057 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40058 fi
40059
40060 case "${host}" in
40061 powerpc*-*-aix* )
40062 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40063 ;;
40064 *-hppa* )
40065 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40066 ;;
40067 esac
40068fi
40069
40070OPTIMISE_CFLAGS=
40071if test "$wxUSE_OPTIMISE" = "no" ; then
40072 if test "$GCC" = yes ; then
40073 OPTIMISE_CFLAGS="-O0"
40074 fi
40075else
40076 if test "$GCC" = yes ; then
e5efa97e
VZ
40077 case "${host}" in
40078 *-pc-os2_emx | *-pc-os2-emx )
40079 OPTIMISE_CFLAGS="-O2"
40080 ;;
40081 *)
40082 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40083 ;;
40084 esac
004ee6da
RL
40085 else
40086 OPTIMISE_CFLAGS="-O"
40087 fi
40088fi
40089
40090
40091if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40092 cat >>confdefs.h <<\_ACEOF
40093#define WXWIN_COMPATIBILITY_2_4 1
40094_ACEOF
40095
40096
40097 WXWIN_COMPATIBILITY_2_6="yes"
40098fi
40099
40100if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40101 cat >>confdefs.h <<\_ACEOF
40102#define WXWIN_COMPATIBILITY_2_6 1
40103_ACEOF
40104
40105fi
40106
40107
40108if test "$wxUSE_GUI" = "yes"; then
40109 cat >>confdefs.h <<\_ACEOF
40110#define wxUSE_GUI 1
40111_ACEOF
40112
40113
40114 fi
40115
40116
40117if test "$wxUSE_UNIX" = "yes"; then
40118 cat >>confdefs.h <<\_ACEOF
40119#define wxUSE_UNIX 1
40120_ACEOF
40121
40122fi
40123
40124
40125if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40126
40127 HAVE_DL_FUNCS=0
40128 HAVE_SHL_FUNCS=0
40129 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40130 if test "$USE_DARWIN" = 1; then
40131 HAVE_DL_FUNCS=1
40132 elif test "$USE_DOS" = 1; then
40133 HAVE_DL_FUNCS=0
40134 else
40135
40136for ac_func in dlopen
40137do
40138as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40139echo "$as_me:$LINENO: checking for $ac_func" >&5
40140echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40141if eval "test \"\${$as_ac_var+set}\" = set"; then
40142 echo $ECHO_N "(cached) $ECHO_C" >&6
40143else
40144 cat >conftest.$ac_ext <<_ACEOF
40145/* confdefs.h. */
40146_ACEOF
40147cat confdefs.h >>conftest.$ac_ext
40148cat >>conftest.$ac_ext <<_ACEOF
40149/* end confdefs.h. */
40150/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40152#define $ac_func innocuous_$ac_func
40153
40154/* System header to define __stub macros and hopefully few prototypes,
40155 which can conflict with char $ac_func (); below.
40156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40157 <limits.h> exists even on freestanding compilers. */
40158
40159#ifdef __STDC__
40160# include <limits.h>
40161#else
40162# include <assert.h>
40163#endif
40164
40165#undef $ac_func
40166
40167/* Override any gcc2 internal prototype to avoid an error. */
40168#ifdef __cplusplus
40169extern "C"
40170{
40171#endif
40172/* We use char because int might match the return type of a gcc2
40173 builtin and then its argument prototype would still apply. */
40174char $ac_func ();
40175/* The GNU C library defines this for functions which it implements
40176 to always fail with ENOSYS. Some functions are actually named
40177 something starting with __ and the normal name is an alias. */
40178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40179choke me
40180#else
40181char (*f) () = $ac_func;
40182#endif
40183#ifdef __cplusplus
40184}
40185#endif
40186
40187int
40188main ()
40189{
40190return f != $ac_func;
a848cd7e
SC
40191 ;
40192 return 0;
40193}
40194_ACEOF
40195rm -f conftest.$ac_objext conftest$ac_exeext
40196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40197 (eval $ac_link) 2>conftest.er1
a848cd7e 40198 ac_status=$?
ac1cb8d3
VS
40199 grep -v '^ *+' conftest.er1 >conftest.err
40200 rm -f conftest.er1
40201 cat conftest.err >&5
a848cd7e
SC
40202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40203 (exit $ac_status); } &&
6954625c 40204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40206 (eval $ac_try) 2>&5
40207 ac_status=$?
40208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209 (exit $ac_status); }; } &&
40210 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40212 (eval $ac_try) 2>&5
40213 ac_status=$?
40214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40215 (exit $ac_status); }; }; then
40216 eval "$as_ac_var=yes"
40217else
40218 echo "$as_me: failed program was:" >&5
40219sed 's/^/| /' conftest.$ac_ext >&5
40220
40221eval "$as_ac_var=no"
40222fi
ac1cb8d3
VS
40223rm -f conftest.err conftest.$ac_objext \
40224 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40225fi
40226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40227echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40228if test `eval echo '${'$as_ac_var'}'` = yes; then
40229 cat >>confdefs.h <<_ACEOF
40230#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40231_ACEOF
40232
40233 cat >>confdefs.h <<\_ACEOF
40234#define HAVE_DLOPEN 1
40235_ACEOF
40236
40237 HAVE_DL_FUNCS=1
40238
40239else
40240
40241 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40242echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40243if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40244 echo $ECHO_N "(cached) $ECHO_C" >&6
40245else
40246 ac_check_lib_save_LIBS=$LIBS
40247LIBS="-ldl $LIBS"
40248cat >conftest.$ac_ext <<_ACEOF
40249/* confdefs.h. */
40250_ACEOF
40251cat confdefs.h >>conftest.$ac_ext
40252cat >>conftest.$ac_ext <<_ACEOF
40253/* end confdefs.h. */
40254
40255/* Override any gcc2 internal prototype to avoid an error. */
40256#ifdef __cplusplus
40257extern "C"
40258#endif
40259/* We use char because int might match the return type of a gcc2
40260 builtin and then its argument prototype would still apply. */
40261char dlopen ();
40262int
40263main ()
40264{
40265dlopen ();
40266 ;
40267 return 0;
40268}
40269_ACEOF
40270rm -f conftest.$ac_objext conftest$ac_exeext
40271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40272 (eval $ac_link) 2>conftest.er1
a848cd7e 40273 ac_status=$?
ac1cb8d3
VS
40274 grep -v '^ *+' conftest.er1 >conftest.err
40275 rm -f conftest.er1
40276 cat conftest.err >&5
a848cd7e
SC
40277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40278 (exit $ac_status); } &&
6954625c 40279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40281 (eval $ac_try) 2>&5
40282 ac_status=$?
40283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40284 (exit $ac_status); }; } &&
40285 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40287 (eval $ac_try) 2>&5
40288 ac_status=$?
40289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40290 (exit $ac_status); }; }; then
40291 ac_cv_lib_dl_dlopen=yes
40292else
40293 echo "$as_me: failed program was:" >&5
40294sed 's/^/| /' conftest.$ac_ext >&5
40295
40296ac_cv_lib_dl_dlopen=no
40297fi
ac1cb8d3
VS
40298rm -f conftest.err conftest.$ac_objext \
40299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40300LIBS=$ac_check_lib_save_LIBS
40301fi
40302echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40303echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40304if test $ac_cv_lib_dl_dlopen = yes; then
40305
40306 cat >>confdefs.h <<\_ACEOF
40307#define HAVE_DLOPEN 1
40308_ACEOF
40309
40310 HAVE_DL_FUNCS=1
40311 DL_LINK=" -ldl$DL_LINK"
40312
40313else
40314
40315
40316for ac_func in shl_load
40317do
40318as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40319echo "$as_me:$LINENO: checking for $ac_func" >&5
40320echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40321if eval "test \"\${$as_ac_var+set}\" = set"; then
40322 echo $ECHO_N "(cached) $ECHO_C" >&6
40323else
40324 cat >conftest.$ac_ext <<_ACEOF
40325/* confdefs.h. */
40326_ACEOF
40327cat confdefs.h >>conftest.$ac_ext
40328cat >>conftest.$ac_ext <<_ACEOF
40329/* end confdefs.h. */
ac1cb8d3
VS
40330/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40332#define $ac_func innocuous_$ac_func
40333
a848cd7e
SC
40334/* System header to define __stub macros and hopefully few prototypes,
40335 which can conflict with char $ac_func (); below.
40336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40337 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40338
a848cd7e
SC
40339#ifdef __STDC__
40340# include <limits.h>
40341#else
40342# include <assert.h>
40343#endif
ac1cb8d3
VS
40344
40345#undef $ac_func
40346
a848cd7e
SC
40347/* Override any gcc2 internal prototype to avoid an error. */
40348#ifdef __cplusplus
40349extern "C"
40350{
40351#endif
40352/* We use char because int might match the return type of a gcc2
40353 builtin and then its argument prototype would still apply. */
40354char $ac_func ();
40355/* The GNU C library defines this for functions which it implements
40356 to always fail with ENOSYS. Some functions are actually named
40357 something starting with __ and the normal name is an alias. */
40358#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40359choke me
40360#else
40361char (*f) () = $ac_func;
40362#endif
40363#ifdef __cplusplus
40364}
40365#endif
40366
40367int
40368main ()
40369{
40370return f != $ac_func;
40371 ;
40372 return 0;
40373}
40374_ACEOF
40375rm -f conftest.$ac_objext conftest$ac_exeext
40376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40377 (eval $ac_link) 2>conftest.er1
a848cd7e 40378 ac_status=$?
ac1cb8d3
VS
40379 grep -v '^ *+' conftest.er1 >conftest.err
40380 rm -f conftest.er1
40381 cat conftest.err >&5
a848cd7e
SC
40382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40383 (exit $ac_status); } &&
6954625c 40384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40386 (eval $ac_try) 2>&5
40387 ac_status=$?
40388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40389 (exit $ac_status); }; } &&
40390 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40392 (eval $ac_try) 2>&5
40393 ac_status=$?
40394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40395 (exit $ac_status); }; }; then
40396 eval "$as_ac_var=yes"
40397else
40398 echo "$as_me: failed program was:" >&5
40399sed 's/^/| /' conftest.$ac_ext >&5
40400
40401eval "$as_ac_var=no"
40402fi
ac1cb8d3
VS
40403rm -f conftest.err conftest.$ac_objext \
40404 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40405fi
40406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40407echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40408if test `eval echo '${'$as_ac_var'}'` = yes; then
40409 cat >>confdefs.h <<_ACEOF
40410#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40411_ACEOF
40412
40413 cat >>confdefs.h <<\_ACEOF
40414#define HAVE_SHL_LOAD 1
40415_ACEOF
40416
40417 HAVE_SHL_FUNCS=1
40418
40419else
40420
40421 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40422echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40423if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40424 echo $ECHO_N "(cached) $ECHO_C" >&6
40425else
40426 ac_check_lib_save_LIBS=$LIBS
40427LIBS="-lshl_load $LIBS"
40428cat >conftest.$ac_ext <<_ACEOF
40429/* confdefs.h. */
40430_ACEOF
40431cat confdefs.h >>conftest.$ac_ext
40432cat >>conftest.$ac_ext <<_ACEOF
40433/* end confdefs.h. */
40434
40435/* Override any gcc2 internal prototype to avoid an error. */
40436#ifdef __cplusplus
40437extern "C"
40438#endif
40439/* We use char because int might match the return type of a gcc2
40440 builtin and then its argument prototype would still apply. */
40441char dld ();
40442int
40443main ()
40444{
40445dld ();
40446 ;
40447 return 0;
40448}
40449_ACEOF
40450rm -f conftest.$ac_objext conftest$ac_exeext
40451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40452 (eval $ac_link) 2>conftest.er1
a848cd7e 40453 ac_status=$?
ac1cb8d3
VS
40454 grep -v '^ *+' conftest.er1 >conftest.err
40455 rm -f conftest.er1
40456 cat conftest.err >&5
a848cd7e
SC
40457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40458 (exit $ac_status); } &&
6954625c 40459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40461 (eval $ac_try) 2>&5
40462 ac_status=$?
40463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40464 (exit $ac_status); }; } &&
40465 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40467 (eval $ac_try) 2>&5
40468 ac_status=$?
40469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40470 (exit $ac_status); }; }; then
40471 ac_cv_lib_shl_load_dld=yes
40472else
40473 echo "$as_me: failed program was:" >&5
40474sed 's/^/| /' conftest.$ac_ext >&5
40475
40476ac_cv_lib_shl_load_dld=no
40477fi
ac1cb8d3
VS
40478rm -f conftest.err conftest.$ac_objext \
40479 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40480LIBS=$ac_check_lib_save_LIBS
40481fi
40482echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40483echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40484if test $ac_cv_lib_shl_load_dld = yes; then
40485
40486 HAVE_SHL_FUNCS=1
40487 DL_LINK=" -ldld$DL_LINK"
40488
40489fi
40490
40491
40492fi
40493done
40494
40495
40496fi
40497
40498
40499fi
40500done
40501
40502
40503 if test "$HAVE_DL_FUNCS" = 1; then
40504
40505for ac_func in dlerror
40506do
40507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40508echo "$as_me:$LINENO: checking for $ac_func" >&5
40509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40510if eval "test \"\${$as_ac_var+set}\" = set"; then
40511 echo $ECHO_N "(cached) $ECHO_C" >&6
40512else
40513 cat >conftest.$ac_ext <<_ACEOF
40514/* confdefs.h. */
40515_ACEOF
40516cat confdefs.h >>conftest.$ac_ext
40517cat >>conftest.$ac_ext <<_ACEOF
40518/* end confdefs.h. */
ac1cb8d3
VS
40519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40521#define $ac_func innocuous_$ac_func
40522
a848cd7e
SC
40523/* System header to define __stub macros and hopefully few prototypes,
40524 which can conflict with char $ac_func (); below.
40525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40526 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40527
a848cd7e
SC
40528#ifdef __STDC__
40529# include <limits.h>
40530#else
40531# include <assert.h>
40532#endif
ac1cb8d3
VS
40533
40534#undef $ac_func
40535
a848cd7e
SC
40536/* Override any gcc2 internal prototype to avoid an error. */
40537#ifdef __cplusplus
40538extern "C"
40539{
40540#endif
40541/* We use char because int might match the return type of a gcc2
40542 builtin and then its argument prototype would still apply. */
40543char $ac_func ();
40544/* The GNU C library defines this for functions which it implements
40545 to always fail with ENOSYS. Some functions are actually named
40546 something starting with __ and the normal name is an alias. */
40547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40548choke me
40549#else
40550char (*f) () = $ac_func;
40551#endif
40552#ifdef __cplusplus
40553}
40554#endif
40555
40556int
40557main ()
40558{
40559return f != $ac_func;
40560 ;
40561 return 0;
40562}
40563_ACEOF
40564rm -f conftest.$ac_objext conftest$ac_exeext
40565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40566 (eval $ac_link) 2>conftest.er1
a848cd7e 40567 ac_status=$?
ac1cb8d3
VS
40568 grep -v '^ *+' conftest.er1 >conftest.err
40569 rm -f conftest.er1
40570 cat conftest.err >&5
a848cd7e
SC
40571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40572 (exit $ac_status); } &&
6954625c 40573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40575 (eval $ac_try) 2>&5
40576 ac_status=$?
40577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40578 (exit $ac_status); }; } &&
40579 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40581 (eval $ac_try) 2>&5
40582 ac_status=$?
40583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40584 (exit $ac_status); }; }; then
40585 eval "$as_ac_var=yes"
40586else
40587 echo "$as_me: failed program was:" >&5
40588sed 's/^/| /' conftest.$ac_ext >&5
40589
40590eval "$as_ac_var=no"
40591fi
ac1cb8d3
VS
40592rm -f conftest.err conftest.$ac_objext \
40593 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40594fi
40595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40596echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40597if test `eval echo '${'$as_ac_var'}'` = yes; then
40598 cat >>confdefs.h <<_ACEOF
40599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40600_ACEOF
40601 cat >>confdefs.h <<\_ACEOF
40602#define HAVE_DLERROR 1
40603_ACEOF
40604
40605else
40606
40607 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40608echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40609if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40610 echo $ECHO_N "(cached) $ECHO_C" >&6
40611else
40612 ac_check_lib_save_LIBS=$LIBS
40613LIBS="-ldl $LIBS"
40614cat >conftest.$ac_ext <<_ACEOF
40615/* confdefs.h. */
40616_ACEOF
40617cat confdefs.h >>conftest.$ac_ext
40618cat >>conftest.$ac_ext <<_ACEOF
40619/* end confdefs.h. */
40620
40621/* Override any gcc2 internal prototype to avoid an error. */
40622#ifdef __cplusplus
40623extern "C"
40624#endif
40625/* We use char because int might match the return type of a gcc2
40626 builtin and then its argument prototype would still apply. */
40627char dlerror ();
40628int
40629main ()
40630{
40631dlerror ();
40632 ;
40633 return 0;
40634}
40635_ACEOF
40636rm -f conftest.$ac_objext conftest$ac_exeext
40637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40638 (eval $ac_link) 2>conftest.er1
a848cd7e 40639 ac_status=$?
ac1cb8d3
VS
40640 grep -v '^ *+' conftest.er1 >conftest.err
40641 rm -f conftest.er1
40642 cat conftest.err >&5
a848cd7e
SC
40643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644 (exit $ac_status); } &&
6954625c 40645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40647 (eval $ac_try) 2>&5
40648 ac_status=$?
40649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40650 (exit $ac_status); }; } &&
40651 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40653 (eval $ac_try) 2>&5
40654 ac_status=$?
40655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40656 (exit $ac_status); }; }; then
40657 ac_cv_lib_dl_dlerror=yes
40658else
40659 echo "$as_me: failed program was:" >&5
40660sed 's/^/| /' conftest.$ac_ext >&5
40661
40662ac_cv_lib_dl_dlerror=no
40663fi
ac1cb8d3
VS
40664rm -f conftest.err conftest.$ac_objext \
40665 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40666LIBS=$ac_check_lib_save_LIBS
40667fi
40668echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40669echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40670if test $ac_cv_lib_dl_dlerror = yes; then
40671 cat >>confdefs.h <<\_ACEOF
40672#define HAVE_DLERROR 1
40673_ACEOF
40674
40675fi
40676
40677
40678
40679fi
40680done
40681
40682 fi
40683 fi
40684
40685 if test "$HAVE_DL_FUNCS" = 0; then
40686 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40687 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40688 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40689echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40690 wxUSE_DYNAMIC_LOADER=no
40691 wxUSE_DYNLIB_CLASS=no
40692 else
40693 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40694echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40695 fi
40696 fi
40697 fi
40698 fi
40699fi
40700
40701if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40702 cat >>confdefs.h <<\_ACEOF
40703#define wxUSE_DYNAMIC_LOADER 1
40704_ACEOF
40705
40706fi
40707if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40708 cat >>confdefs.h <<\_ACEOF
40709#define wxUSE_DYNLIB_CLASS 1
40710_ACEOF
40711
40712fi
40713
40714
40715
40716if test "$wxUSE_PLUGINS" = "yes" ; then
40717 if test "$wxUSE_SHARED" = "no" ; then
40718 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40719echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40720 wxUSE_PLUGINS=no
40721 fi
40722 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40723 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40724echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40725 wxUSE_PLUGINS=no
40726 fi
40727 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40728 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40729echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40730 wxUSE_PLUGINS=no
40731 fi
40732 if test "$wxUSE_PLUGINS" = "yes" ; then
40733 cat >>confdefs.h <<\_ACEOF
40734#define wxUSE_PLUGINS 1
40735_ACEOF
40736
40737 fi
40738fi
40739
40740
40741if test "$wxUSE_STL" = "yes"; then
40742 cat >>confdefs.h <<\_ACEOF
40743#define wxUSE_STL 1
40744_ACEOF
40745
40746fi
40747
40748if test "$wxUSE_APPLE_IEEE" = "yes"; then
40749 cat >>confdefs.h <<\_ACEOF
40750#define wxUSE_APPLE_IEEE 1
40751_ACEOF
40752
40753fi
40754
40755if test "$wxUSE_TIMER" = "yes"; then
40756 cat >>confdefs.h <<\_ACEOF
40757#define wxUSE_TIMER 1
40758_ACEOF
40759
40760fi
40761
9c112555 40762if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40763 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40764echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40765if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40766 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40767else
d12aef51
VZ
40768
40769 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40770/* confdefs.h. */
40771_ACEOF
40772cat confdefs.h >>conftest.$ac_ext
40773cat >>conftest.$ac_ext <<_ACEOF
40774/* end confdefs.h. */
d12aef51
VZ
40775
40776 #include <sys/soundcard.h>
40777
40778int
40779main ()
40780{
40781
40782 ioctl(0, SNDCTL_DSP_SYNC, 0);
40783
40784 ;
40785 return 0;
40786}
a848cd7e 40787_ACEOF
d12aef51
VZ
40788rm -f conftest.$ac_objext conftest$ac_exeext
40789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40790 (eval $ac_link) 2>conftest.er1
a848cd7e 40791 ac_status=$?
ac1cb8d3
VS
40792 grep -v '^ *+' conftest.er1 >conftest.err
40793 rm -f conftest.er1
40794 cat conftest.err >&5
a848cd7e
SC
40795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40796 (exit $ac_status); } &&
6954625c 40797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40799 (eval $ac_try) 2>&5
40800 ac_status=$?
40801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40802 (exit $ac_status); }; } &&
d12aef51 40803 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40805 (eval $ac_try) 2>&5
40806 ac_status=$?
40807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40808 (exit $ac_status); }; }; then
d12aef51 40809 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40810else
40811 echo "$as_me: failed program was:" >&5
40812sed 's/^/| /' conftest.$ac_ext >&5
40813
a848cd7e 40814
d12aef51
VZ
40815 saveLibs="$LIBS"
40816 LIBS="$saveLibs -lossaudio"
40817 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40818/* confdefs.h. */
40819_ACEOF
40820cat confdefs.h >>conftest.$ac_ext
40821cat >>conftest.$ac_ext <<_ACEOF
40822/* end confdefs.h. */
d12aef51
VZ
40823
40824 #include <sys/soundcard.h>
40825
40826int
40827main ()
40828{
40829
40830 ioctl(0, SNDCTL_DSP_SYNC, 0);
40831
40832 ;
40833 return 0;
40834}
a848cd7e 40835_ACEOF
d12aef51
VZ
40836rm -f conftest.$ac_objext conftest$ac_exeext
40837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40838 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40839 ac_status=$?
40840 grep -v '^ *+' conftest.er1 >conftest.err
40841 rm -f conftest.er1
40842 cat conftest.err >&5
40843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40844 (exit $ac_status); } &&
6954625c 40845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
40846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40847 (eval $ac_try) 2>&5
40848 ac_status=$?
40849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850 (exit $ac_status); }; } &&
40851 { ac_try='test -s conftest$ac_exeext'
40852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40853 (eval $ac_try) 2>&5
40854 ac_status=$?
40855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40856 (exit $ac_status); }; }; then
40857 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40858else
40859 echo "$as_me: failed program was:" >&5
40860sed 's/^/| /' conftest.$ac_ext >&5
40861
a848cd7e 40862
d12aef51
VZ
40863 LIBS="$saveLibs"
40864 ac_cv_header_sys_soundcard=no
40865
40866
a848cd7e 40867fi
d12aef51
VZ
40868rm -f conftest.err conftest.$ac_objext \
40869 conftest$ac_exeext conftest.$ac_ext
40870
a848cd7e
SC
40871
40872fi
d12aef51
VZ
40873rm -f conftest.err conftest.$ac_objext \
40874 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40875
40876fi
d12aef51
VZ
40877echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40878echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 40879
d12aef51
VZ
40880 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40881 cat >>confdefs.h <<\_ACEOF
40882#define HAVE_SYS_SOUNDCARD_H 1
40883_ACEOF
a848cd7e 40884
d12aef51
VZ
40885 else
40886 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40887 fi
9c112555
MW
40888fi
40889WITH_PLUGIN_SDL=0
40890if test "$wxUSE_SOUND" = "yes"; then
40891 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
40892 if test "$wxUSE_LIBSDL" != "no"; then
40893
40894# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40895if test "${with_sdl_prefix+set}" = set; then
40896 withval="$with_sdl_prefix"
40897 sdl_prefix="$withval"
40898else
40899 sdl_prefix=""
40900fi;
40901
40902# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40903if test "${with_sdl_exec_prefix+set}" = set; then
40904 withval="$with_sdl_exec_prefix"
40905 sdl_exec_prefix="$withval"
40906else
40907 sdl_exec_prefix=""
40908fi;
40909# Check whether --enable-sdltest or --disable-sdltest was given.
40910if test "${enable_sdltest+set}" = set; then
40911 enableval="$enable_sdltest"
40912
40913else
40914 enable_sdltest=yes
40915fi;
40916
40917 if test x$sdl_exec_prefix != x ; then
40918 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40919 if test x${SDL_CONFIG+set} != xset ; then
40920 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40921 fi
40922 fi
40923 if test x$sdl_prefix != x ; then
40924 sdl_args="$sdl_args --prefix=$sdl_prefix"
40925 if test x${SDL_CONFIG+set} != xset ; then
40926 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40927 fi
40928 fi
40929
40930
40931 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40932 # Extract the first word of "sdl-config", so it can be a program name with args.
40933set dummy sdl-config; ac_word=$2
40934echo "$as_me:$LINENO: checking for $ac_word" >&5
40935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40936if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40937 echo $ECHO_N "(cached) $ECHO_C" >&6
40938else
40939 case $SDL_CONFIG in
40940 [\\/]* | ?:[\\/]*)
40941 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40942 ;;
40943 *)
40944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40945for as_dir in $PATH
40946do
40947 IFS=$as_save_IFS
40948 test -z "$as_dir" && as_dir=.
40949 for ac_exec_ext in '' $ac_executable_extensions; do
40950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40951 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40953 break 2
40954 fi
40955done
40956done
40957
40958 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40959 ;;
40960esac
40961fi
40962SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40963
40964if test -n "$SDL_CONFIG"; then
40965 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40966echo "${ECHO_T}$SDL_CONFIG" >&6
40967else
40968 echo "$as_me:$LINENO: result: no" >&5
40969echo "${ECHO_T}no" >&6
40970fi
40971
40972 min_sdl_version=1.2.0
40973 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40974echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40975 no_sdl=""
40976 if test "$SDL_CONFIG" = "no" ; then
40977 no_sdl=yes
40978 else
40979 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40980 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40981
40982 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40983 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40984 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40985 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40986 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40987 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40988 if test "x$enable_sdltest" = "xyes" ; then
40989 ac_save_CFLAGS="$CFLAGS"
94acd38e 40990 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
40991 ac_save_LIBS="$LIBS"
40992 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40993 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40994 LIBS="$LIBS $SDL_LIBS"
40995 rm -f conf.sdltest
40996 if test "$cross_compiling" = yes; then
40997 echo $ac_n "cross compiling; assumed OK... $ac_c"
40998else
40999 cat >conftest.$ac_ext <<_ACEOF
41000/* confdefs.h. */
41001_ACEOF
41002cat confdefs.h >>conftest.$ac_ext
41003cat >>conftest.$ac_ext <<_ACEOF
41004/* end confdefs.h. */
41005
41006#include <stdio.h>
41007#include <stdlib.h>
41008#include <string.h>
41009#include "SDL.h"
41010
41011char*
41012my_strdup (char *str)
41013{
41014 char *new_str;
41015
41016 if (str)
41017 {
41018 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41019 strcpy (new_str, str);
41020 }
41021 else
41022 new_str = NULL;
41023
41024 return new_str;
41025}
41026
41027int main (int argc, char *argv[])
41028{
41029 int major, minor, micro;
41030 char *tmp_version;
41031
41032 /* This hangs on some systems (?)
41033 system ("touch conf.sdltest");
41034 */
41035 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41036
41037 /* HP/UX 9 (%@#!) writes to sscanf strings */
41038 tmp_version = my_strdup("$min_sdl_version");
41039 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41040 printf("%s, bad version string\n", "$min_sdl_version");
41041 exit(1);
41042 }
41043
41044 if (($sdl_major_version > major) ||
41045 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41046 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41047 {
41048 return 0;
41049 }
41050 else
41051 {
41052 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41053 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41054 printf("*** best to upgrade to the required version.\n");
41055 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41056 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41057 printf("*** config.cache before re-running configure\n");
41058 return 1;
41059 }
41060}
41061
41062
41063_ACEOF
41064rm -f conftest$ac_exeext
41065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41066 (eval $ac_link) 2>&5
41067 ac_status=$?
41068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41071 (eval $ac_try) 2>&5
41072 ac_status=$?
41073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41074 (exit $ac_status); }; }; then
41075 :
41076else
41077 echo "$as_me: program exited with status $ac_status" >&5
41078echo "$as_me: failed program was:" >&5
41079sed 's/^/| /' conftest.$ac_ext >&5
41080
41081( exit $ac_status )
41082no_sdl=yes
41083fi
ac1cb8d3 41084rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41085fi
41086 CFLAGS="$ac_save_CFLAGS"
94acd38e 41087 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41088 LIBS="$ac_save_LIBS"
41089 fi
41090 fi
41091 if test "x$no_sdl" = x ; then
41092 echo "$as_me:$LINENO: result: yes" >&5
41093echo "${ECHO_T}yes" >&6
41094
41095 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 41096 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
41097 cat >>confdefs.h <<\_ACEOF
41098#define wxUSE_LIBSDL 1
41099_ACEOF
41100
41101
41102 else
41103 echo "$as_me:$LINENO: result: no" >&5
41104echo "${ECHO_T}no" >&6
41105 if test "$SDL_CONFIG" = "no" ; then
41106 echo "*** The sdl-config script installed by SDL could not be found"
41107 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41108 echo "*** your path, or set the SDL_CONFIG environment variable to the"
41109 echo "*** full path to sdl-config."
41110 else
41111 if test -f conf.sdltest ; then
41112 :
41113 else
41114 echo "*** Could not run SDL test program, checking why..."
41115 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41116 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41117 LIBS="$LIBS $SDL_LIBS"
41118 cat >conftest.$ac_ext <<_ACEOF
41119/* confdefs.h. */
41120_ACEOF
41121cat confdefs.h >>conftest.$ac_ext
41122cat >>conftest.$ac_ext <<_ACEOF
41123/* end confdefs.h. */
41124
41125#include <stdio.h>
41126#include "SDL.h"
41127
41128int main(int argc, char *argv[])
41129{ return 0; }
41130#undef main
41131#define main K_and_R_C_main
41132
41133int
41134main ()
41135{
41136 return 0;
41137 ;
41138 return 0;
41139}
41140_ACEOF
41141rm -f conftest.$ac_objext conftest$ac_exeext
41142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41143 (eval $ac_link) 2>conftest.er1
a848cd7e 41144 ac_status=$?
ac1cb8d3
VS
41145 grep -v '^ *+' conftest.er1 >conftest.err
41146 rm -f conftest.er1
41147 cat conftest.err >&5
a848cd7e
SC
41148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41149 (exit $ac_status); } &&
6954625c 41150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41152 (eval $ac_try) 2>&5
41153 ac_status=$?
41154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41155 (exit $ac_status); }; } &&
41156 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41158 (eval $ac_try) 2>&5
41159 ac_status=$?
41160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41161 (exit $ac_status); }; }; then
41162 echo "*** The test program compiled, but did not run. This usually means"
41163 echo "*** that the run-time linker is not finding SDL or finding the wrong"
41164 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41165 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41166 echo "*** to the installed location Also, make sure you have run ldconfig if that"
41167 echo "*** is required on your system"
41168 echo "***"
41169 echo "*** If you have an old version installed, it is best to remove it, although"
41170 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41171else
41172 echo "$as_me: failed program was:" >&5
41173sed 's/^/| /' conftest.$ac_ext >&5
41174
41175 echo "*** The test program failed to compile or link. See the file config.log for the"
41176 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41177 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41178 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41179fi
ac1cb8d3
VS
41180rm -f conftest.err conftest.$ac_objext \
41181 conftest$ac_exeext conftest.$ac_ext
a848cd7e 41182 CFLAGS="$ac_save_CFLAGS"
94acd38e 41183 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41184 LIBS="$ac_save_LIBS"
41185 fi
41186 fi
41187 SDL_CFLAGS=""
41188 SDL_LIBS=""
41189 wxUSE_LIBSDL="no"
41190 fi
41191
41192
41193 rm -f conf.sdltest
41194
41195 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41196 WITH_PLUGIN_SDL=1
41197 fi
41198 fi
41199 fi
41200
41201 cat >>confdefs.h <<\_ACEOF
41202#define wxUSE_SOUND 1
41203_ACEOF
41204
41205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41206fi
41207
d1c38808
VZ
41208if test "$WXGTK20" = 1; then
41209 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41210 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41211
41212
41213 succeeded=no
41214
41215 if test -z "$PKG_CONFIG"; then
41216 # Extract the first word of "pkg-config", so it can be a program name with args.
41217set dummy pkg-config; ac_word=$2
41218echo "$as_me:$LINENO: checking for $ac_word" >&5
41219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41220if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41221 echo $ECHO_N "(cached) $ECHO_C" >&6
41222else
41223 case $PKG_CONFIG in
41224 [\\/]* | ?:[\\/]*)
41225 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41226 ;;
41227 *)
41228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41229for as_dir in $PATH
41230do
41231 IFS=$as_save_IFS
41232 test -z "$as_dir" && as_dir=.
41233 for ac_exec_ext in '' $ac_executable_extensions; do
41234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41235 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41237 break 2
41238 fi
41239done
41240done
41241
41242 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41243 ;;
41244esac
41245fi
41246PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41247
41248if test -n "$PKG_CONFIG"; then
41249 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41250echo "${ECHO_T}$PKG_CONFIG" >&6
41251else
41252 echo "$as_me:$LINENO: result: no" >&5
41253echo "${ECHO_T}no" >&6
41254fi
41255
41256 fi
41257
41258 if test "$PKG_CONFIG" = "no" ; then
41259 echo "*** The pkg-config script could not be found. Make sure it is"
41260 echo "*** in your path, or set the PKG_CONFIG environment variable"
41261 echo "*** to the full path to pkg-config."
41262 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41263 else
41264 PKG_CONFIG_MIN_VERSION=0.9.0
41265 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
41266 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
41267echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 41268
ffa762ff 41269 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
41270 echo "$as_me:$LINENO: result: yes" >&5
41271echo "${ECHO_T}yes" >&6
41272 succeeded=yes
41273
41274 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
41275echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 41276 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41277 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
41278echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
41279
41280 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
41281echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 41282 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41283 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
41284echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
41285 else
41286 LIBGNOMEPRINTUI_CFLAGS=""
41287 LIBGNOMEPRINTUI_LIBS=""
41288 ## If we have a custom action on failure, don't print errors, but
41289 ## do set a variable so people can do so.
ffa762ff 41290 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41291
41292 fi
41293
41294
41295
41296 else
41297 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41298 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41299 fi
41300 fi
41301
41302 if test $succeeded = yes; then
41303
c92ad099 41304 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
41305 cat >>confdefs.h <<\_ACEOF
41306#define wxUSE_LIBGNOMEPRINT 1
41307_ACEOF
41308
41309
41310 else
41311
41312 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41313echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41314 wxUSE_LIBGNOMEPRINT="no"
41315
41316
41317 fi
41318
41319 fi
41320 fi
41321fi
41322
2b850ae1
RR
41323if test "$WXGTK20" = 1; then
41324 if test "$wxUSE_MIMETYPE" = "yes" ; then
41325 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41326
41327
41328 succeeded=no
41329
41330 if test -z "$PKG_CONFIG"; then
41331 # Extract the first word of "pkg-config", so it can be a program name with args.
41332set dummy pkg-config; ac_word=$2
41333echo "$as_me:$LINENO: checking for $ac_word" >&5
41334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41335if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41336 echo $ECHO_N "(cached) $ECHO_C" >&6
41337else
41338 case $PKG_CONFIG in
41339 [\\/]* | ?:[\\/]*)
41340 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41341 ;;
41342 *)
41343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41344for as_dir in $PATH
41345do
41346 IFS=$as_save_IFS
41347 test -z "$as_dir" && as_dir=.
41348 for ac_exec_ext in '' $ac_executable_extensions; do
41349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41350 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41352 break 2
41353 fi
41354done
41355done
41356
41357 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41358 ;;
41359esac
41360fi
41361PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41362
41363if test -n "$PKG_CONFIG"; then
41364 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41365echo "${ECHO_T}$PKG_CONFIG" >&6
41366else
41367 echo "$as_me:$LINENO: result: no" >&5
41368echo "${ECHO_T}no" >&6
41369fi
41370
41371 fi
41372
41373 if test "$PKG_CONFIG" = "no" ; then
41374 echo "*** The pkg-config script could not be found. Make sure it is"
41375 echo "*** in your path, or set the PKG_CONFIG environment variable"
41376 echo "*** to the full path to pkg-config."
41377 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41378 else
41379 PKG_CONFIG_MIN_VERSION=0.9.0
41380 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41381 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5
41382echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6
41383
41384 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then
41385 echo "$as_me:$LINENO: result: yes" >&5
41386echo "${ECHO_T}yes" >&6
41387 succeeded=yes
41388
41389 echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
41390echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
41391 GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"`
41392 echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
41393echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
41394
41395 echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
41396echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
41397 GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"`
41398 echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
41399echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
41400 else
41401 GNOMEVFS_CFLAGS=""
41402 GNOMEVFS_LIBS=""
41403 ## If we have a custom action on failure, don't print errors, but
41404 ## do set a variable so people can do so.
41405 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41406
41407 fi
41408
41409
41410
41411 else
41412 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41413 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41414 fi
41415 fi
41416
41417 if test $succeeded = yes; then
41418
41419 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41420 cat >>confdefs.h <<\_ACEOF
41421#define wxUSE_LIBGNOMEVFS 1
41422_ACEOF
41423
41424
41425 else
41426
41427 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41428echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41429 wxUSE_LIBGNOMEVFS="no"
41430
41431
41432 fi
41433
41434 fi
41435 fi
41436fi
41437
3565d135
RR
41438if test "$WXGTK20" = 1; then
41439 if test "$wxUSE_LIBHILDON" = "yes" ; then
41440
41441 succeeded=no
41442
41443 if test -z "$PKG_CONFIG"; then
41444 # Extract the first word of "pkg-config", so it can be a program name with args.
41445set dummy pkg-config; ac_word=$2
41446echo "$as_me:$LINENO: checking for $ac_word" >&5
41447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41448if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41449 echo $ECHO_N "(cached) $ECHO_C" >&6
41450else
41451 case $PKG_CONFIG in
41452 [\\/]* | ?:[\\/]*)
41453 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41454 ;;
41455 *)
41456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41457for as_dir in $PATH
41458do
41459 IFS=$as_save_IFS
41460 test -z "$as_dir" && as_dir=.
41461 for ac_exec_ext in '' $ac_executable_extensions; do
41462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41463 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41465 break 2
41466 fi
41467done
41468done
41469
41470 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41471 ;;
41472esac
41473fi
41474PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41475
41476if test -n "$PKG_CONFIG"; then
41477 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41478echo "${ECHO_T}$PKG_CONFIG" >&6
41479else
41480 echo "$as_me:$LINENO: result: no" >&5
41481echo "${ECHO_T}no" >&6
41482fi
41483
41484 fi
41485
41486 if test "$PKG_CONFIG" = "no" ; then
41487 echo "*** The pkg-config script could not be found. Make sure it is"
41488 echo "*** in your path, or set the PKG_CONFIG environment variable"
41489 echo "*** to the full path to pkg-config."
41490 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41491 else
41492 PKG_CONFIG_MIN_VERSION=0.9.0
41493 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41494 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41495echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41496
41497 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41498 echo "$as_me:$LINENO: result: yes" >&5
41499echo "${ECHO_T}yes" >&6
41500 succeeded=yes
41501
41502 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41503echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41504 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41505 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41506echo "${ECHO_T}$HILDON_CFLAGS" >&6
41507
41508 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41509echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41510 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41511 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41512echo "${ECHO_T}$HILDON_LIBS" >&6
41513 else
41514 HILDON_CFLAGS=""
41515 HILDON_LIBS=""
41516 ## If we have a custom action on failure, don't print errors, but
41517 ## do set a variable so people can do so.
41518 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41519
41520 fi
41521
41522
41523
41524 else
41525 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41526 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41527 fi
41528 fi
41529
41530 if test $succeeded = yes; then
41531
41532 EXTRALIBS_HILDON="$HILDON_LIBS"
41533 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41534 cat >>confdefs.h <<\_ACEOF
41535#define wxUSE_LIBHILDON 1
41536_ACEOF
41537
41538
41539 else
41540
41541 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41542echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41543 wxUSE_LIBHILDON="no"
41544
41545
41546 fi
41547
41548 fi
41549fi
d1c38808 41550
a848cd7e
SC
41551if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41552 cat >>confdefs.h <<\_ACEOF
41553#define wxUSE_CMDLINE_PARSER 1
41554_ACEOF
41555
41556fi
41557
41558if test "$wxUSE_STOPWATCH" = "yes"; then
41559 cat >>confdefs.h <<\_ACEOF
41560#define wxUSE_STOPWATCH 1
41561_ACEOF
41562
41563fi
41564
41565if test "$wxUSE_DATETIME" = "yes"; then
41566 cat >>confdefs.h <<\_ACEOF
41567#define wxUSE_DATETIME 1
41568_ACEOF
41569
41570fi
41571
41572if test "$wxUSE_FILE" = "yes"; then
41573 cat >>confdefs.h <<\_ACEOF
41574#define wxUSE_FILE 1
41575_ACEOF
41576
41577fi
41578
41579if test "$wxUSE_FFILE" = "yes"; then
41580 cat >>confdefs.h <<\_ACEOF
41581#define wxUSE_FFILE 1
41582_ACEOF
41583
41584fi
41585
41586if test "$wxUSE_FILESYSTEM" = "yes"; then
41587 cat >>confdefs.h <<\_ACEOF
41588#define wxUSE_FILESYSTEM 1
41589_ACEOF
41590
41591fi
41592
41593if test "$wxUSE_FS_ZIP" = "yes"; then
41594 cat >>confdefs.h <<\_ACEOF
41595#define wxUSE_FS_ZIP 1
41596_ACEOF
41597
41598fi
41599
9e8e867f 41600if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41601 cat >>confdefs.h <<\_ACEOF
9e8e867f 41602#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41603_ACEOF
41604
41605fi
41606
41607if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41608 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41609 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41610echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41611 elif test "$wxUSE_ZLIB" = "no"; then
41612 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41613echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41614 else
41615 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41616#define wxUSE_ZIPSTREAM 1
41617_ACEOF
41618
81f90336 41619 fi
a848cd7e
SC
41620fi
41621
a848cd7e 41622if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41623 if test "$USE_UNIX" != 1; then
41624 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41625echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41626 wxUSE_ON_FATAL_EXCEPTION=no
41627 else
41628 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41629#define wxUSE_ON_FATAL_EXCEPTION 1
41630_ACEOF
41631
18228ab4 41632 fi
a848cd7e
SC
41633fi
41634
eaff0f0d
VZ
41635if test "$wxUSE_STACKWALKER" = "yes"; then
41636 cat >>confdefs.h <<\_ACEOF
41637#define wxUSE_STACKWALKER 1
41638_ACEOF
41639
41640fi
41641
36b6448c 41642if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41643 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41644 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41645echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41646 wxUSE_DEBUGREPORT=no
41647 else
41648 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41649#define wxUSE_DEBUGREPORT 1
41650_ACEOF
41651
21dfc162
MW
41652 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41654 fi
dfe0c803 41655 fi
36b6448c
VZ
41656fi
41657
a848cd7e
SC
41658if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41659 cat >>confdefs.h <<\_ACEOF
41660#define wxUSE_SNGLINST_CHECKER 1
41661_ACEOF
41662
41663fi
41664
41665if test "$wxUSE_BUSYINFO" = "yes"; then
41666 cat >>confdefs.h <<\_ACEOF
41667#define wxUSE_BUSYINFO 1
41668_ACEOF
41669
41670fi
41671
41672if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41673 cat >>confdefs.h <<\_ACEOF
41674#define wxUSE_STD_IOSTREAM 1
41675_ACEOF
41676
41677fi
41678
59746b65
MW
41679if test "$wxUSE_STD_STRING" = "yes"; then
41680 cat >>confdefs.h <<\_ACEOF
41681#define wxUSE_STD_STRING 1
41682_ACEOF
41683
41684fi
41685
07158944
VZ
41686if test "$wxUSE_STDPATHS" = "yes"; then
41687 cat >>confdefs.h <<\_ACEOF
41688#define wxUSE_STDPATHS 1
41689_ACEOF
41690
41691fi
41692
a848cd7e
SC
41693if test "$wxUSE_TEXTBUFFER" = "yes"; then
41694 cat >>confdefs.h <<\_ACEOF
41695#define wxUSE_TEXTBUFFER 1
41696_ACEOF
41697
41698fi
41699
41700if test "$wxUSE_TEXTFILE" = "yes"; then
41701 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41702 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41703echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41704 else
41705 cat >>confdefs.h <<\_ACEOF
41706#define wxUSE_TEXTFILE 1
41707_ACEOF
41708
41709 fi
41710fi
41711
41712if test "$wxUSE_CONFIG" = "yes" ; then
41713 if test "$wxUSE_TEXTFILE" != "yes"; then
41714 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41715echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41716 else
41717 cat >>confdefs.h <<\_ACEOF
41718#define wxUSE_CONFIG 1
89be85c2
VS
41719_ACEOF
41720
41721 cat >>confdefs.h <<\_ACEOF
41722#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
41723_ACEOF
41724
41725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41726 fi
41727fi
41728
41729if test "$wxUSE_INTL" = "yes" ; then
41730 if test "$wxUSE_FILE" != "yes"; then
41731 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41732echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41733 else
41734 cat >>confdefs.h <<\_ACEOF
41735#define wxUSE_INTL 1
41736_ACEOF
41737
41738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41739 GUIDIST="$GUIDIST INTL_DIST"
41740 fi
41741fi
41742
41743if test "$wxUSE_LOG" = "yes"; then
41744 cat >>confdefs.h <<\_ACEOF
41745#define wxUSE_LOG 1
41746_ACEOF
41747
41748
41749 if test "$wxUSE_LOGGUI" = "yes"; then
41750 cat >>confdefs.h <<\_ACEOF
41751#define wxUSE_LOGGUI 1
41752_ACEOF
41753
41754 fi
41755
41756 if test "$wxUSE_LOGWINDOW" = "yes"; then
41757 cat >>confdefs.h <<\_ACEOF
41758#define wxUSE_LOGWINDOW 1
41759_ACEOF
41760
41761 fi
41762
41763 if test "$wxUSE_LOGDIALOG" = "yes"; then
41764 cat >>confdefs.h <<\_ACEOF
41765#define wxUSE_LOG_DIALOG 1
41766_ACEOF
41767
41768 fi
0b78747f
MW
41769
41770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
41771fi
41772
41773if test "$wxUSE_LONGLONG" = "yes"; then
41774 cat >>confdefs.h <<\_ACEOF
41775#define wxUSE_LONGLONG 1
41776_ACEOF
41777
41778fi
41779
41780if test "$wxUSE_GEOMETRY" = "yes"; then
41781 cat >>confdefs.h <<\_ACEOF
41782#define wxUSE_GEOMETRY 1
41783_ACEOF
41784
41785fi
41786
a848cd7e
SC
41787if test "$wxUSE_STREAMS" = "yes" ; then
41788 cat >>confdefs.h <<\_ACEOF
41789#define wxUSE_STREAMS 1
41790_ACEOF
41791
41792fi
41793
41794
41795if test "$wxUSE_DATETIME" = "yes"; then
41796
41797for ac_func in strptime
41798do
41799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41800echo "$as_me:$LINENO: checking for $ac_func" >&5
41801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41802if eval "test \"\${$as_ac_var+set}\" = set"; then
41803 echo $ECHO_N "(cached) $ECHO_C" >&6
41804else
41805 cat >conftest.$ac_ext <<_ACEOF
41806/* confdefs.h. */
41807_ACEOF
41808cat confdefs.h >>conftest.$ac_ext
41809cat >>conftest.$ac_ext <<_ACEOF
41810/* end confdefs.h. */
ac1cb8d3
VS
41811/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41813#define $ac_func innocuous_$ac_func
41814
a848cd7e
SC
41815/* System header to define __stub macros and hopefully few prototypes,
41816 which can conflict with char $ac_func (); below.
41817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41818 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41819
a848cd7e
SC
41820#ifdef __STDC__
41821# include <limits.h>
41822#else
41823# include <assert.h>
41824#endif
ac1cb8d3
VS
41825
41826#undef $ac_func
41827
a848cd7e
SC
41828/* Override any gcc2 internal prototype to avoid an error. */
41829#ifdef __cplusplus
41830extern "C"
41831{
41832#endif
41833/* We use char because int might match the return type of a gcc2
41834 builtin and then its argument prototype would still apply. */
41835char $ac_func ();
41836/* The GNU C library defines this for functions which it implements
41837 to always fail with ENOSYS. Some functions are actually named
41838 something starting with __ and the normal name is an alias. */
41839#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41840choke me
41841#else
41842char (*f) () = $ac_func;
41843#endif
41844#ifdef __cplusplus
41845}
41846#endif
41847
41848int
41849main ()
41850{
41851return f != $ac_func;
41852 ;
41853 return 0;
41854}
41855_ACEOF
41856rm -f conftest.$ac_objext conftest$ac_exeext
41857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41858 (eval $ac_link) 2>conftest.er1
a848cd7e 41859 ac_status=$?
ac1cb8d3
VS
41860 grep -v '^ *+' conftest.er1 >conftest.err
41861 rm -f conftest.er1
41862 cat conftest.err >&5
a848cd7e
SC
41863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41864 (exit $ac_status); } &&
6954625c 41865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41867 (eval $ac_try) 2>&5
41868 ac_status=$?
41869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41870 (exit $ac_status); }; } &&
41871 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41873 (eval $ac_try) 2>&5
41874 ac_status=$?
41875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41876 (exit $ac_status); }; }; then
41877 eval "$as_ac_var=yes"
41878else
41879 echo "$as_me: failed program was:" >&5
41880sed 's/^/| /' conftest.$ac_ext >&5
41881
41882eval "$as_ac_var=no"
41883fi
ac1cb8d3
VS
41884rm -f conftest.err conftest.$ac_objext \
41885 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41886fi
41887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41888echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41889if test `eval echo '${'$as_ac_var'}'` = yes; then
41890 cat >>confdefs.h <<_ACEOF
41891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41892_ACEOF
41893
41894fi
41895done
41896
f536f005
VZ
41897 if test "$ac_cv_func_strptime" = "yes"; then
41898 echo "$as_me:$LINENO: checking for strptime declaration" >&5
41899echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41900if test "${wx_cv_func_strptime_decl+set}" = set; then
41901 echo $ECHO_N "(cached) $ECHO_C" >&6
41902else
41903
f536f005
VZ
41904 cat >conftest.$ac_ext <<_ACEOF
41905/* confdefs.h. */
41906_ACEOF
41907cat confdefs.h >>conftest.$ac_ext
41908cat >>conftest.$ac_ext <<_ACEOF
41909/* end confdefs.h. */
41910
41911 #include <time.h>
41912
41913int
41914main ()
41915{
41916
41917 struct tm t;
41918 strptime("foo", "bar", &t);
41919
41920 ;
41921 return 0;
41922}
41923_ACEOF
41924rm -f conftest.$ac_objext
41925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41926 (eval $ac_compile) 2>conftest.er1
41927 ac_status=$?
41928 grep -v '^ *+' conftest.er1 >conftest.err
41929 rm -f conftest.er1
41930 cat conftest.err >&5
41931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41932 (exit $ac_status); } &&
6954625c 41933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
41934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41935 (eval $ac_try) 2>&5
41936 ac_status=$?
41937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41938 (exit $ac_status); }; } &&
41939 { ac_try='test -s conftest.$ac_objext'
41940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41941 (eval $ac_try) 2>&5
41942 ac_status=$?
41943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41944 (exit $ac_status); }; }; then
41945 wx_cv_func_strptime_decl=yes
41946else
41947 echo "$as_me: failed program was:" >&5
41948sed 's/^/| /' conftest.$ac_ext >&5
41949
41950wx_cv_func_strptime_decl=no
41951
41952fi
41953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
41954
41955
41956fi
41957echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41958echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41959 fi
41960 if test "$wx_cv_func_strptime_decl" = "yes"; then
41961 cat >>confdefs.h <<\_ACEOF
41962#define HAVE_STRPTIME_DECL 1
41963_ACEOF
41964
41965 fi
a848cd7e
SC
41966
41967 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41968echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41969if test "${wx_cv_var_timezone+set}" = set; then
41970 echo $ECHO_N "(cached) $ECHO_C" >&6
41971else
41972
41973 cat >conftest.$ac_ext <<_ACEOF
41974/* confdefs.h. */
41975_ACEOF
41976cat confdefs.h >>conftest.$ac_ext
41977cat >>conftest.$ac_ext <<_ACEOF
41978/* end confdefs.h. */
41979
41980 #include <time.h>
41981
41982int
41983main ()
41984{
41985
41986 int tz;
41987 tz = timezone;
41988
41989 ;
41990 return 0;
41991}
41992_ACEOF
41993rm -f conftest.$ac_objext
41994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41995 (eval $ac_compile) 2>conftest.er1
a848cd7e 41996 ac_status=$?
ac1cb8d3
VS
41997 grep -v '^ *+' conftest.er1 >conftest.err
41998 rm -f conftest.er1
41999 cat conftest.err >&5
a848cd7e
SC
42000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42001 (exit $ac_status); } &&
6954625c 42002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42004 (eval $ac_try) 2>&5
42005 ac_status=$?
42006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42007 (exit $ac_status); }; } &&
42008 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42010 (eval $ac_try) 2>&5
42011 ac_status=$?
42012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42013 (exit $ac_status); }; }; then
42014
42015 wx_cv_var_timezone=timezone
42016
42017else
42018 echo "$as_me: failed program was:" >&5
42019sed 's/^/| /' conftest.$ac_ext >&5
42020
42021
42022 cat >conftest.$ac_ext <<_ACEOF
42023/* confdefs.h. */
42024_ACEOF
42025cat confdefs.h >>conftest.$ac_ext
42026cat >>conftest.$ac_ext <<_ACEOF
42027/* end confdefs.h. */
42028
42029 #include <time.h>
42030
42031int
42032main ()
42033{
42034
42035 int tz;
42036 tz = _timezone;
42037
42038 ;
42039 return 0;
42040}
42041_ACEOF
42042rm -f conftest.$ac_objext
42043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42044 (eval $ac_compile) 2>conftest.er1
a848cd7e 42045 ac_status=$?
ac1cb8d3
VS
42046 grep -v '^ *+' conftest.er1 >conftest.err
42047 rm -f conftest.er1
42048 cat conftest.err >&5
a848cd7e
SC
42049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42050 (exit $ac_status); } &&
6954625c 42051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42053 (eval $ac_try) 2>&5
42054 ac_status=$?
42055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42056 (exit $ac_status); }; } &&
42057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42059 (eval $ac_try) 2>&5
42060 ac_status=$?
42061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42062 (exit $ac_status); }; }; then
42063
42064 wx_cv_var_timezone=_timezone
42065
42066else
42067 echo "$as_me: failed program was:" >&5
42068sed 's/^/| /' conftest.$ac_ext >&5
42069
42070
42071 cat >conftest.$ac_ext <<_ACEOF
42072/* confdefs.h. */
42073_ACEOF
42074cat confdefs.h >>conftest.$ac_ext
42075cat >>conftest.$ac_ext <<_ACEOF
42076/* end confdefs.h. */
42077
42078 #include <time.h>
42079
42080int
42081main ()
42082{
42083
42084 int tz;
42085 tz = __timezone;
42086
42087 ;
42088 return 0;
42089}
42090_ACEOF
42091rm -f conftest.$ac_objext
42092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42093 (eval $ac_compile) 2>conftest.er1
a848cd7e 42094 ac_status=$?
ac1cb8d3
VS
42095 grep -v '^ *+' conftest.er1 >conftest.err
42096 rm -f conftest.er1
42097 cat conftest.err >&5
a848cd7e
SC
42098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42099 (exit $ac_status); } &&
6954625c 42100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42102 (eval $ac_try) 2>&5
42103 ac_status=$?
42104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42105 (exit $ac_status); }; } &&
42106 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42108 (eval $ac_try) 2>&5
42109 ac_status=$?
42110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42111 (exit $ac_status); }; }; then
42112
42113 wx_cv_var_timezone=__timezone
42114
42115else
42116 echo "$as_me: failed program was:" >&5
42117sed 's/^/| /' conftest.$ac_ext >&5
42118
42119
42120 if test "$USE_DOS" = 0 ; then
42121 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42122echo "$as_me: WARNING: no timezone variable" >&2;}
42123 fi
42124
42125
42126fi
ac1cb8d3 42127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42128
42129
42130fi
ac1cb8d3 42131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42132
42133
42134fi
ac1cb8d3 42135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42136
42137
42138fi
42139echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42140echo "${ECHO_T}$wx_cv_var_timezone" >&6
42141
42142 if test "x$wx_cv_var_timezone" != x ; then
42143 cat >>confdefs.h <<_ACEOF
42144#define WX_TIMEZONE $wx_cv_var_timezone
42145_ACEOF
42146
42147 fi
42148
42149
42150for ac_func in localtime
42151do
42152as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42153echo "$as_me:$LINENO: checking for $ac_func" >&5
42154echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42155if eval "test \"\${$as_ac_var+set}\" = set"; then
42156 echo $ECHO_N "(cached) $ECHO_C" >&6
42157else
42158 cat >conftest.$ac_ext <<_ACEOF
42159/* confdefs.h. */
42160_ACEOF
42161cat confdefs.h >>conftest.$ac_ext
42162cat >>conftest.$ac_ext <<_ACEOF
42163/* end confdefs.h. */
ac1cb8d3
VS
42164/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42166#define $ac_func innocuous_$ac_func
42167
a848cd7e
SC
42168/* System header to define __stub macros and hopefully few prototypes,
42169 which can conflict with char $ac_func (); below.
42170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42171 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42172
a848cd7e
SC
42173#ifdef __STDC__
42174# include <limits.h>
42175#else
42176# include <assert.h>
42177#endif
ac1cb8d3
VS
42178
42179#undef $ac_func
42180
a848cd7e
SC
42181/* Override any gcc2 internal prototype to avoid an error. */
42182#ifdef __cplusplus
42183extern "C"
42184{
42185#endif
42186/* We use char because int might match the return type of a gcc2
42187 builtin and then its argument prototype would still apply. */
42188char $ac_func ();
42189/* The GNU C library defines this for functions which it implements
42190 to always fail with ENOSYS. Some functions are actually named
42191 something starting with __ and the normal name is an alias. */
42192#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42193choke me
42194#else
42195char (*f) () = $ac_func;
42196#endif
42197#ifdef __cplusplus
42198}
42199#endif
42200
42201int
42202main ()
42203{
42204return f != $ac_func;
42205 ;
42206 return 0;
42207}
42208_ACEOF
42209rm -f conftest.$ac_objext conftest$ac_exeext
42210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42211 (eval $ac_link) 2>conftest.er1
a848cd7e 42212 ac_status=$?
ac1cb8d3
VS
42213 grep -v '^ *+' conftest.er1 >conftest.err
42214 rm -f conftest.er1
42215 cat conftest.err >&5
a848cd7e
SC
42216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42217 (exit $ac_status); } &&
6954625c 42218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42220 (eval $ac_try) 2>&5
42221 ac_status=$?
42222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42223 (exit $ac_status); }; } &&
42224 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42226 (eval $ac_try) 2>&5
42227 ac_status=$?
42228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42229 (exit $ac_status); }; }; then
42230 eval "$as_ac_var=yes"
42231else
42232 echo "$as_me: failed program was:" >&5
42233sed 's/^/| /' conftest.$ac_ext >&5
42234
42235eval "$as_ac_var=no"
42236fi
ac1cb8d3
VS
42237rm -f conftest.err conftest.$ac_objext \
42238 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42239fi
42240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42241echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42242if test `eval echo '${'$as_ac_var'}'` = yes; then
42243 cat >>confdefs.h <<_ACEOF
42244#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42245_ACEOF
42246
42247fi
42248done
42249
42250
42251 if test "$ac_cv_func_localtime" = "yes"; then
42252 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42253echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42254if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42255 echo $ECHO_N "(cached) $ECHO_C" >&6
42256else
42257
42258 cat >conftest.$ac_ext <<_ACEOF
42259/* confdefs.h. */
42260_ACEOF
42261cat confdefs.h >>conftest.$ac_ext
42262cat >>conftest.$ac_ext <<_ACEOF
42263/* end confdefs.h. */
42264
42265 #include <time.h>
42266
42267int
42268main ()
42269{
42270
42271 struct tm tm;
42272 tm.tm_gmtoff++;
42273
42274 ;
42275 return 0;
42276}
42277_ACEOF
42278rm -f conftest.$ac_objext
42279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42280 (eval $ac_compile) 2>conftest.er1
a848cd7e 42281 ac_status=$?
ac1cb8d3
VS
42282 grep -v '^ *+' conftest.er1 >conftest.err
42283 rm -f conftest.er1
42284 cat conftest.err >&5
a848cd7e
SC
42285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42286 (exit $ac_status); } &&
6954625c 42287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42289 (eval $ac_try) 2>&5
42290 ac_status=$?
42291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42292 (exit $ac_status); }; } &&
42293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42295 (eval $ac_try) 2>&5
42296 ac_status=$?
42297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42298 (exit $ac_status); }; }; then
42299
42300 wx_cv_struct_tm_has_gmtoff=yes
42301
42302else
42303 echo "$as_me: failed program was:" >&5
42304sed 's/^/| /' conftest.$ac_ext >&5
42305
42306wx_cv_struct_tm_has_gmtoff=no
42307
42308fi
ac1cb8d3 42309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42310
42311fi
42312echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42313echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42314 fi
42315
42316 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42317 cat >>confdefs.h <<\_ACEOF
42318#define WX_GMTOFF_IN_TM 1
42319_ACEOF
42320
42321 fi
42322
42323
42324
42325for ac_func in gettimeofday ftime
42326do
42327as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42328echo "$as_me:$LINENO: checking for $ac_func" >&5
42329echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42330if eval "test \"\${$as_ac_var+set}\" = set"; then
42331 echo $ECHO_N "(cached) $ECHO_C" >&6
42332else
42333 cat >conftest.$ac_ext <<_ACEOF
42334/* confdefs.h. */
42335_ACEOF
42336cat confdefs.h >>conftest.$ac_ext
42337cat >>conftest.$ac_ext <<_ACEOF
42338/* end confdefs.h. */
ac1cb8d3
VS
42339/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42341#define $ac_func innocuous_$ac_func
42342
a848cd7e
SC
42343/* System header to define __stub macros and hopefully few prototypes,
42344 which can conflict with char $ac_func (); below.
42345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42346 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42347
a848cd7e
SC
42348#ifdef __STDC__
42349# include <limits.h>
42350#else
42351# include <assert.h>
42352#endif
ac1cb8d3
VS
42353
42354#undef $ac_func
42355
a848cd7e
SC
42356/* Override any gcc2 internal prototype to avoid an error. */
42357#ifdef __cplusplus
42358extern "C"
42359{
42360#endif
42361/* We use char because int might match the return type of a gcc2
42362 builtin and then its argument prototype would still apply. */
42363char $ac_func ();
42364/* The GNU C library defines this for functions which it implements
42365 to always fail with ENOSYS. Some functions are actually named
42366 something starting with __ and the normal name is an alias. */
42367#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42368choke me
42369#else
42370char (*f) () = $ac_func;
42371#endif
42372#ifdef __cplusplus
42373}
42374#endif
42375
42376int
42377main ()
42378{
42379return f != $ac_func;
42380 ;
42381 return 0;
42382}
42383_ACEOF
42384rm -f conftest.$ac_objext conftest$ac_exeext
42385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42386 (eval $ac_link) 2>conftest.er1
a848cd7e 42387 ac_status=$?
ac1cb8d3
VS
42388 grep -v '^ *+' conftest.er1 >conftest.err
42389 rm -f conftest.er1
42390 cat conftest.err >&5
a848cd7e
SC
42391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42392 (exit $ac_status); } &&
6954625c 42393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42395 (eval $ac_try) 2>&5
42396 ac_status=$?
42397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42398 (exit $ac_status); }; } &&
42399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42401 (eval $ac_try) 2>&5
42402 ac_status=$?
42403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42404 (exit $ac_status); }; }; then
42405 eval "$as_ac_var=yes"
42406else
42407 echo "$as_me: failed program was:" >&5
42408sed 's/^/| /' conftest.$ac_ext >&5
42409
42410eval "$as_ac_var=no"
42411fi
ac1cb8d3
VS
42412rm -f conftest.err conftest.$ac_objext \
42413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42414fi
42415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42416echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42417if test `eval echo '${'$as_ac_var'}'` = yes; then
42418 cat >>confdefs.h <<_ACEOF
42419#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42420_ACEOF
42421 break
42422fi
42423done
42424
42425
42426 if test "$ac_cv_func_gettimeofday" = "yes"; then
42427 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42428echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42429if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42430 echo $ECHO_N "(cached) $ECHO_C" >&6
42431else
42432
5d7b7554 42433 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42434/* confdefs.h. */
42435_ACEOF
42436cat confdefs.h >>conftest.$ac_ext
42437cat >>conftest.$ac_ext <<_ACEOF
42438/* end confdefs.h. */
42439
42440 #include <sys/time.h>
42441 #include <unistd.h>
42442
42443int
42444main ()
42445{
42446
42447 struct timeval tv;
42448 gettimeofday(&tv, NULL);
42449
42450 ;
42451 return 0;
42452}
42453_ACEOF
42454rm -f conftest.$ac_objext
42455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42456 (eval $ac_compile) 2>conftest.er1
a848cd7e 42457 ac_status=$?
ac1cb8d3
VS
42458 grep -v '^ *+' conftest.er1 >conftest.err
42459 rm -f conftest.er1
42460 cat conftest.err >&5
a848cd7e
SC
42461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42462 (exit $ac_status); } &&
6954625c 42463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42465 (eval $ac_try) 2>&5
42466 ac_status=$?
42467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42468 (exit $ac_status); }; } &&
42469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42471 (eval $ac_try) 2>&5
42472 ac_status=$?
42473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42474 (exit $ac_status); }; }; then
42475 wx_cv_func_gettimeofday_has_2_args=yes
42476else
42477 echo "$as_me: failed program was:" >&5
42478sed 's/^/| /' conftest.$ac_ext >&5
42479
42480cat >conftest.$ac_ext <<_ACEOF
42481/* confdefs.h. */
42482_ACEOF
42483cat confdefs.h >>conftest.$ac_ext
42484cat >>conftest.$ac_ext <<_ACEOF
42485/* end confdefs.h. */
42486
42487 #include <sys/time.h>
42488 #include <unistd.h>
42489
42490int
42491main ()
42492{
42493
42494 struct timeval tv;
42495 gettimeofday(&tv);
42496
42497 ;
42498 return 0;
42499}
42500_ACEOF
42501rm -f conftest.$ac_objext
42502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42503 (eval $ac_compile) 2>conftest.er1
a848cd7e 42504 ac_status=$?
ac1cb8d3
VS
42505 grep -v '^ *+' conftest.er1 >conftest.err
42506 rm -f conftest.er1
42507 cat conftest.err >&5
a848cd7e
SC
42508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42509 (exit $ac_status); } &&
6954625c 42510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42512 (eval $ac_try) 2>&5
42513 ac_status=$?
42514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42515 (exit $ac_status); }; } &&
42516 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42518 (eval $ac_try) 2>&5
42519 ac_status=$?
42520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521 (exit $ac_status); }; }; then
42522 wx_cv_func_gettimeofday_has_2_args=no
42523else
42524 echo "$as_me: failed program was:" >&5
42525sed 's/^/| /' conftest.$ac_ext >&5
42526
42527
42528 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42529echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42530 wx_cv_func_gettimeofday_has_2_args=unknown
42531
42532
42533fi
ac1cb8d3 42534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42535
42536fi
ac1cb8d3 42537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42538
42539fi
42540echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42541echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42542
42543 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42544 cat >>confdefs.h <<\_ACEOF
42545#define WX_GETTIMEOFDAY_NO_TZ 1
42546_ACEOF
42547
42548 fi
42549 fi
42550
42551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42552fi
42553
42554
42555if test "$wxUSE_SOCKETS" = "yes"; then
42556 if test "$wxUSE_MGL" = "1"; then
42557 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42558echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42559 wxUSE_SOCKETS="no"
42560 fi
42561fi
42562
42563if test "$wxUSE_SOCKETS" = "yes"; then
42564 if test "$TOOLKIT" != "MSW"; then
42565 echo "$as_me:$LINENO: checking for socket" >&5
42566echo $ECHO_N "checking for socket... $ECHO_C" >&6
42567if test "${ac_cv_func_socket+set}" = set; then
42568 echo $ECHO_N "(cached) $ECHO_C" >&6
42569else
42570 cat >conftest.$ac_ext <<_ACEOF
42571/* confdefs.h. */
42572_ACEOF
42573cat confdefs.h >>conftest.$ac_ext
42574cat >>conftest.$ac_ext <<_ACEOF
42575/* end confdefs.h. */
ac1cb8d3
VS
42576/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42578#define socket innocuous_socket
42579
a848cd7e
SC
42580/* System header to define __stub macros and hopefully few prototypes,
42581 which can conflict with char socket (); below.
42582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42583 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42584
a848cd7e
SC
42585#ifdef __STDC__
42586# include <limits.h>
42587#else
42588# include <assert.h>
42589#endif
ac1cb8d3
VS
42590
42591#undef socket
42592
a848cd7e
SC
42593/* Override any gcc2 internal prototype to avoid an error. */
42594#ifdef __cplusplus
42595extern "C"
42596{
42597#endif
42598/* We use char because int might match the return type of a gcc2
42599 builtin and then its argument prototype would still apply. */
42600char socket ();
42601/* The GNU C library defines this for functions which it implements
42602 to always fail with ENOSYS. Some functions are actually named
42603 something starting with __ and the normal name is an alias. */
42604#if defined (__stub_socket) || defined (__stub___socket)
42605choke me
42606#else
42607char (*f) () = socket;
42608#endif
42609#ifdef __cplusplus
42610}
42611#endif
42612
42613int
42614main ()
42615{
42616return f != socket;
42617 ;
42618 return 0;
42619}
42620_ACEOF
42621rm -f conftest.$ac_objext conftest$ac_exeext
42622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42623 (eval $ac_link) 2>conftest.er1
a848cd7e 42624 ac_status=$?
ac1cb8d3
VS
42625 grep -v '^ *+' conftest.er1 >conftest.err
42626 rm -f conftest.er1
42627 cat conftest.err >&5
a848cd7e
SC
42628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42629 (exit $ac_status); } &&
6954625c 42630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42632 (eval $ac_try) 2>&5
42633 ac_status=$?
42634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42635 (exit $ac_status); }; } &&
42636 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42638 (eval $ac_try) 2>&5
42639 ac_status=$?
42640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42641 (exit $ac_status); }; }; then
42642 ac_cv_func_socket=yes
42643else
42644 echo "$as_me: failed program was:" >&5
42645sed 's/^/| /' conftest.$ac_ext >&5
42646
42647ac_cv_func_socket=no
42648fi
ac1cb8d3
VS
42649rm -f conftest.err conftest.$ac_objext \
42650 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42651fi
42652echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42653echo "${ECHO_T}$ac_cv_func_socket" >&6
42654if test $ac_cv_func_socket = yes; then
42655 :
42656else
42657
42658 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42659echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42660if test "${ac_cv_lib_socket_socket+set}" = set; then
42661 echo $ECHO_N "(cached) $ECHO_C" >&6
42662else
42663 ac_check_lib_save_LIBS=$LIBS
42664LIBS="-lsocket $LIBS"
42665cat >conftest.$ac_ext <<_ACEOF
42666/* confdefs.h. */
42667_ACEOF
42668cat confdefs.h >>conftest.$ac_ext
42669cat >>conftest.$ac_ext <<_ACEOF
42670/* end confdefs.h. */
42671
42672/* Override any gcc2 internal prototype to avoid an error. */
42673#ifdef __cplusplus
42674extern "C"
42675#endif
42676/* We use char because int might match the return type of a gcc2
42677 builtin and then its argument prototype would still apply. */
42678char socket ();
42679int
42680main ()
42681{
42682socket ();
42683 ;
42684 return 0;
42685}
42686_ACEOF
42687rm -f conftest.$ac_objext conftest$ac_exeext
42688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42689 (eval $ac_link) 2>conftest.er1
a848cd7e 42690 ac_status=$?
ac1cb8d3
VS
42691 grep -v '^ *+' conftest.er1 >conftest.err
42692 rm -f conftest.er1
42693 cat conftest.err >&5
a848cd7e
SC
42694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42695 (exit $ac_status); } &&
6954625c 42696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42698 (eval $ac_try) 2>&5
42699 ac_status=$?
42700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42701 (exit $ac_status); }; } &&
42702 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42704 (eval $ac_try) 2>&5
42705 ac_status=$?
42706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42707 (exit $ac_status); }; }; then
42708 ac_cv_lib_socket_socket=yes
42709else
42710 echo "$as_me: failed program was:" >&5
42711sed 's/^/| /' conftest.$ac_ext >&5
42712
42713ac_cv_lib_socket_socket=no
42714fi
ac1cb8d3
VS
42715rm -f conftest.err conftest.$ac_objext \
42716 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42717LIBS=$ac_check_lib_save_LIBS
42718fi
42719echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42720echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42721if test $ac_cv_lib_socket_socket = yes; then
42722 if test "$INET_LINK" != " -lsocket"; then
42723 INET_LINK="$INET_LINK -lsocket"
42724 fi
42725else
42726
42727 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42728echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42729 wxUSE_SOCKETS=no
42730
42731
42732fi
42733
42734
42735
42736fi
42737
42738 fi
42739fi
42740
42741if test "$wxUSE_SOCKETS" = "yes" ; then
42742 if test "$TOOLKIT" != "MSW"; then
5d7b7554 42743 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
42744echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42745if test "${wx_cv_type_getsockname3+set}" = set; then
42746 echo $ECHO_N "(cached) $ECHO_C" >&6
42747else
42748
42749 cat >conftest.$ac_ext <<_ACEOF
42750/* confdefs.h. */
42751_ACEOF
42752cat confdefs.h >>conftest.$ac_ext
42753cat >>conftest.$ac_ext <<_ACEOF
42754/* end confdefs.h. */
42755
42756 #include <sys/types.h>
42757 #include <sys/socket.h>
42758
42759int
42760main ()
42761{
42762
42763 socklen_t len;
42764 getsockname(0, 0, &len);
42765
42766 ;
42767 return 0;
42768}
42769_ACEOF
42770rm -f conftest.$ac_objext
42771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42772 (eval $ac_compile) 2>conftest.er1
a848cd7e 42773 ac_status=$?
ac1cb8d3
VS
42774 grep -v '^ *+' conftest.er1 >conftest.err
42775 rm -f conftest.er1
42776 cat conftest.err >&5
a848cd7e
SC
42777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42778 (exit $ac_status); } &&
6954625c 42779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42781 (eval $ac_try) 2>&5
42782 ac_status=$?
42783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42784 (exit $ac_status); }; } &&
42785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42787 (eval $ac_try) 2>&5
42788 ac_status=$?
42789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42790 (exit $ac_status); }; }; then
42791 wx_cv_type_getsockname3=socklen_t
42792else
42793 echo "$as_me: failed program was:" >&5
42794sed 's/^/| /' conftest.$ac_ext >&5
42795
42796
6459a506 42797 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 42798 if test "$GCC" = yes ; then
c92ad099 42799 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
42800 fi
42801
42802 cat >conftest.$ac_ext <<_ACEOF
42803/* confdefs.h. */
42804_ACEOF
42805cat confdefs.h >>conftest.$ac_ext
42806cat >>conftest.$ac_ext <<_ACEOF
42807/* end confdefs.h. */
42808
42809 #include <sys/types.h>
42810 #include <sys/socket.h>
42811
42812int
42813main ()
42814{
42815
42816 size_t len;
42817 getsockname(0, 0, &len);
42818
42819 ;
42820 return 0;
42821}
42822_ACEOF
42823rm -f conftest.$ac_objext
42824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42825 (eval $ac_compile) 2>conftest.er1
a848cd7e 42826 ac_status=$?
ac1cb8d3
VS
42827 grep -v '^ *+' conftest.er1 >conftest.err
42828 rm -f conftest.er1
42829 cat conftest.err >&5
a848cd7e
SC
42830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42831 (exit $ac_status); } &&
6954625c 42832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42834 (eval $ac_try) 2>&5
42835 ac_status=$?
42836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42837 (exit $ac_status); }; } &&
42838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42840 (eval $ac_try) 2>&5
42841 ac_status=$?
42842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42843 (exit $ac_status); }; }; then
42844 wx_cv_type_getsockname3=size_t
42845else
42846 echo "$as_me: failed program was:" >&5
42847sed 's/^/| /' conftest.$ac_ext >&5
42848
42849cat >conftest.$ac_ext <<_ACEOF
42850/* confdefs.h. */
42851_ACEOF
42852cat confdefs.h >>conftest.$ac_ext
42853cat >>conftest.$ac_ext <<_ACEOF
42854/* end confdefs.h. */
42855
42856 #include <sys/types.h>
42857 #include <sys/socket.h>
42858
42859int
42860main ()
42861{
42862
42863 int len;
42864 getsockname(0, 0, &len);
42865
42866 ;
42867 return 0;
42868}
42869_ACEOF
42870rm -f conftest.$ac_objext
42871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42872 (eval $ac_compile) 2>conftest.er1
a848cd7e 42873 ac_status=$?
ac1cb8d3
VS
42874 grep -v '^ *+' conftest.er1 >conftest.err
42875 rm -f conftest.er1
42876 cat conftest.err >&5
a848cd7e
SC
42877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42878 (exit $ac_status); } &&
6954625c 42879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42881 (eval $ac_try) 2>&5
42882 ac_status=$?
42883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42884 (exit $ac_status); }; } &&
42885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42887 (eval $ac_try) 2>&5
42888 ac_status=$?
42889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42890 (exit $ac_status); }; }; then
42891 wx_cv_type_getsockname3=int
42892else
42893 echo "$as_me: failed program was:" >&5
42894sed 's/^/| /' conftest.$ac_ext >&5
42895
42896wx_cv_type_getsockname3=unknown
42897
42898fi
ac1cb8d3 42899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42900
42901fi
ac1cb8d3 42902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42903
6459a506 42904 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
42905
42906
42907fi
ac1cb8d3 42908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42909
42910fi
42911echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42912echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42913
42914 if test "$wx_cv_type_getsockname3" = "unknown"; then
42915 wxUSE_SOCKETS=no
42916 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42917echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42918 else
42919 cat >>confdefs.h <<_ACEOF
9e03e02d 42920#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
42921_ACEOF
42922
42923 fi
42924 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42925echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42926if test "${wx_cv_type_getsockopt5+set}" = set; then
42927 echo $ECHO_N "(cached) $ECHO_C" >&6
42928else
42929
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. */
42936
42937 #include <sys/types.h>
42938 #include <sys/socket.h>
42939
42940int
42941main ()
42942{
42943
42944 socklen_t len;
42945 getsockopt(0, 0, 0, 0, &len);
42946
42947 ;
42948 return 0;
42949}
42950_ACEOF
42951rm -f conftest.$ac_objext
42952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42953 (eval $ac_compile) 2>conftest.er1
42954 ac_status=$?
42955 grep -v '^ *+' conftest.er1 >conftest.err
42956 rm -f conftest.er1
42957 cat conftest.err >&5
42958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42959 (exit $ac_status); } &&
6954625c 42960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42962 (eval $ac_try) 2>&5
42963 ac_status=$?
42964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42965 (exit $ac_status); }; } &&
42966 { ac_try='test -s conftest.$ac_objext'
42967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42968 (eval $ac_try) 2>&5
42969 ac_status=$?
42970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42971 (exit $ac_status); }; }; then
42972 wx_cv_type_getsockopt5=socklen_t
42973else
42974 echo "$as_me: failed program was:" >&5
42975sed 's/^/| /' conftest.$ac_ext >&5
42976
42977
6459a506 42978 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 42979 if test "$GCC" = yes ; then
c92ad099 42980 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
42981 fi
42982
42983 cat >conftest.$ac_ext <<_ACEOF
42984/* confdefs.h. */
42985_ACEOF
42986cat confdefs.h >>conftest.$ac_ext
42987cat >>conftest.$ac_ext <<_ACEOF
42988/* end confdefs.h. */
42989
42990 #include <sys/types.h>
42991 #include <sys/socket.h>
42992
42993int
42994main ()
42995{
42996
42997 size_t len;
42998 getsockopt(0, 0, 0, 0, &len);
42999
43000 ;
43001 return 0;
43002}
43003_ACEOF
43004rm -f conftest.$ac_objext
43005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43006 (eval $ac_compile) 2>conftest.er1
43007 ac_status=$?
43008 grep -v '^ *+' conftest.er1 >conftest.err
43009 rm -f conftest.er1
43010 cat conftest.err >&5
43011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43012 (exit $ac_status); } &&
6954625c 43013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43015 (eval $ac_try) 2>&5
43016 ac_status=$?
43017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43018 (exit $ac_status); }; } &&
43019 { ac_try='test -s conftest.$ac_objext'
43020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43021 (eval $ac_try) 2>&5
43022 ac_status=$?
43023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43024 (exit $ac_status); }; }; then
43025 wx_cv_type_getsockopt5=size_t
43026else
43027 echo "$as_me: failed program was:" >&5
43028sed 's/^/| /' conftest.$ac_ext >&5
43029
43030cat >conftest.$ac_ext <<_ACEOF
43031/* confdefs.h. */
43032_ACEOF
43033cat confdefs.h >>conftest.$ac_ext
43034cat >>conftest.$ac_ext <<_ACEOF
43035/* end confdefs.h. */
43036
43037 #include <sys/types.h>
43038 #include <sys/socket.h>
43039
43040int
43041main ()
43042{
43043
43044 int len;
43045 getsockopt(0, 0, 0, 0, &len);
43046
43047 ;
43048 return 0;
43049}
43050_ACEOF
43051rm -f conftest.$ac_objext
43052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43053 (eval $ac_compile) 2>conftest.er1
43054 ac_status=$?
43055 grep -v '^ *+' conftest.er1 >conftest.err
43056 rm -f conftest.er1
43057 cat conftest.err >&5
43058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43059 (exit $ac_status); } &&
6954625c 43060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43062 (eval $ac_try) 2>&5
43063 ac_status=$?
43064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43065 (exit $ac_status); }; } &&
43066 { ac_try='test -s conftest.$ac_objext'
43067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43068 (eval $ac_try) 2>&5
43069 ac_status=$?
43070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43071 (exit $ac_status); }; }; then
43072 wx_cv_type_getsockopt5=int
43073else
43074 echo "$as_me: failed program was:" >&5
43075sed 's/^/| /' conftest.$ac_ext >&5
43076
43077wx_cv_type_getsockopt5=unknown
43078
43079fi
43080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43081
43082fi
43083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43084
6459a506 43085 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
43086
43087
43088fi
43089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43090
43091fi
43092echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43093echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43094
43095 if test "$wx_cv_type_getsockopt5" = "unknown"; then
43096 wxUSE_SOCKETS=no
43097 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43098echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43099 else
43100 cat >>confdefs.h <<_ACEOF
43101#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
43102_ACEOF
43103
43104 fi
43105 fi
43106fi
43107
43108if test "$wxUSE_SOCKETS" = "yes" ; then
43109 cat >>confdefs.h <<\_ACEOF
43110#define wxUSE_SOCKETS 1
43111_ACEOF
43112
43113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43114fi
43115
43116if test "$wxUSE_PROTOCOL" = "yes"; then
43117 if test "$wxUSE_SOCKETS" != "yes"; then
43118 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43119echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43120 wxUSE_PROTOCOL=no
43121 fi
43122fi
43123
43124if test "$wxUSE_PROTOCOL" = "yes"; then
43125 cat >>confdefs.h <<\_ACEOF
43126#define wxUSE_PROTOCOL 1
43127_ACEOF
43128
43129
43130 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43131 cat >>confdefs.h <<\_ACEOF
43132#define wxUSE_PROTOCOL_HTTP 1
43133_ACEOF
43134
43135 fi
43136 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43137 cat >>confdefs.h <<\_ACEOF
43138#define wxUSE_PROTOCOL_FTP 1
43139_ACEOF
43140
43141 fi
43142 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43143 cat >>confdefs.h <<\_ACEOF
43144#define wxUSE_PROTOCOL_FILE 1
43145_ACEOF
43146
43147 fi
43148else
43149 if test "$wxUSE_FS_INET" = "yes"; then
43150 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43151echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43152 wxUSE_FS_INET="no"
43153 fi
43154fi
43155
43156if test "$wxUSE_URL" = "yes"; then
43157 if test "$wxUSE_PROTOCOL" != "yes"; then
43158 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43159echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43160 wxUSE_URL=no
43161 fi
43162 if test "$wxUSE_URL" = "yes"; then
43163 cat >>confdefs.h <<\_ACEOF
43164#define wxUSE_URL 1
43165_ACEOF
43166
43167 fi
43168fi
43169
43170if test "$wxUSE_FS_INET" = "yes"; then
43171 cat >>confdefs.h <<\_ACEOF
43172#define wxUSE_FS_INET 1
43173_ACEOF
43174
43175fi
43176
43177
ee45c548
MW
43178if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43179 wxUSE_JOYSTICK=no
43180
43181 if test "$TOOLKIT" = "MSW"; then
43182 wxUSE_JOYSTICK=yes
43183
43184 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43185 if test "$USE_DARWIN" = 1; then
43186 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43187echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
43188 cat >conftest.$ac_ext <<_ACEOF
43189/* confdefs.h. */
43190_ACEOF
43191cat confdefs.h >>conftest.$ac_ext
43192cat >>conftest.$ac_ext <<_ACEOF
43193/* end confdefs.h. */
43194 #include <IOKit/hid/IOHIDLib.h>
43195int
43196main ()
43197{
43198 IOHIDQueueInterface *qi = NULL;
43199 IOHIDCallbackFunction cb = NULL;
43200 qi->setEventCallout(NULL, cb, NULL, NULL);
43201 ;
43202 return 0;
43203}
43204_ACEOF
43205rm -f conftest.$ac_objext
43206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43207 (eval $ac_compile) 2>conftest.er1
43208 ac_status=$?
43209 grep -v '^ *+' conftest.er1 >conftest.err
43210 rm -f conftest.er1
43211 cat conftest.err >&5
43212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43213 (exit $ac_status); } &&
6954625c 43214 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
43215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43216 (eval $ac_try) 2>&5
43217 ac_status=$?
43218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43219 (exit $ac_status); }; } &&
43220 { ac_try='test -s conftest.$ac_objext'
43221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43222 (eval $ac_try) 2>&5
43223 ac_status=$?
43224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43225 (exit $ac_status); }; }; then
43226 wxUSE_JOYSTICK=yes
a848cd7e 43227
ee45c548
MW
43228else
43229 echo "$as_me: failed program was:" >&5
43230sed 's/^/| /' conftest.$ac_ext >&5
43231
43232fi
43233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
43234 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43235echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43236 fi
43237
43238 else
a848cd7e
SC
43239
43240for ac_header in linux/joystick.h
43241do
43242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43243if eval "test \"\${$as_ac_Header+set}\" = set"; then
43244 echo "$as_me:$LINENO: checking for $ac_header" >&5
43245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43246if eval "test \"\${$as_ac_Header+set}\" = set"; then
43247 echo $ECHO_N "(cached) $ECHO_C" >&6
43248fi
43249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43251else
43252 # Is the header compilable?
43253echo "$as_me:$LINENO: checking $ac_header usability" >&5
43254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43255cat >conftest.$ac_ext <<_ACEOF
43256/* confdefs.h. */
43257_ACEOF
43258cat confdefs.h >>conftest.$ac_ext
43259cat >>conftest.$ac_ext <<_ACEOF
43260/* end confdefs.h. */
43261$ac_includes_default
43262#include <$ac_header>
43263_ACEOF
43264rm -f conftest.$ac_objext
43265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43266 (eval $ac_compile) 2>conftest.er1
a848cd7e 43267 ac_status=$?
ac1cb8d3
VS
43268 grep -v '^ *+' conftest.er1 >conftest.err
43269 rm -f conftest.er1
43270 cat conftest.err >&5
a848cd7e
SC
43271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43272 (exit $ac_status); } &&
6954625c 43273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43275 (eval $ac_try) 2>&5
43276 ac_status=$?
43277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43278 (exit $ac_status); }; } &&
43279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43281 (eval $ac_try) 2>&5
43282 ac_status=$?
43283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43284 (exit $ac_status); }; }; then
43285 ac_header_compiler=yes
43286else
43287 echo "$as_me: failed program was:" >&5
43288sed 's/^/| /' conftest.$ac_ext >&5
43289
43290ac_header_compiler=no
43291fi
ac1cb8d3 43292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43293echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43294echo "${ECHO_T}$ac_header_compiler" >&6
43295
43296# Is the header present?
43297echo "$as_me:$LINENO: checking $ac_header presence" >&5
43298echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43299cat >conftest.$ac_ext <<_ACEOF
43300/* confdefs.h. */
43301_ACEOF
43302cat confdefs.h >>conftest.$ac_ext
43303cat >>conftest.$ac_ext <<_ACEOF
43304/* end confdefs.h. */
43305#include <$ac_header>
43306_ACEOF
43307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43309 ac_status=$?
43310 grep -v '^ *+' conftest.er1 >conftest.err
43311 rm -f conftest.er1
43312 cat conftest.err >&5
43313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43314 (exit $ac_status); } >/dev/null; then
43315 if test -s conftest.err; then
5d7b7554
VZ
43316 ac_cpp_err=$ac_cxx_preproc_warn_flag
43317 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43318 else
43319 ac_cpp_err=
43320 fi
43321else
43322 ac_cpp_err=yes
43323fi
43324if test -z "$ac_cpp_err"; then
43325 ac_header_preproc=yes
43326else
43327 echo "$as_me: failed program was:" >&5
43328sed 's/^/| /' conftest.$ac_ext >&5
43329
43330 ac_header_preproc=no
43331fi
43332rm -f conftest.err conftest.$ac_ext
43333echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43334echo "${ECHO_T}$ac_header_preproc" >&6
43335
43336# So? What about this header?
5d7b7554 43337case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43338 yes:no: )
a848cd7e
SC
43339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43340echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43342echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43343 ac_header_preproc=yes
a848cd7e 43344 ;;
ac1cb8d3 43345 no:yes:* )
a848cd7e
SC
43346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43347echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43349echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43351echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43353echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43355echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43357echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43358 (
43359 cat <<\_ASBOX
ac1cb8d3
VS
43360## ----------------------------------------- ##
43361## Report this to wx-dev@lists.wxwidgets.org ##
43362## ----------------------------------------- ##
a848cd7e
SC
43363_ASBOX
43364 ) |
43365 sed "s/^/$as_me: WARNING: /" >&2
43366 ;;
43367esac
43368echo "$as_me:$LINENO: checking for $ac_header" >&5
43369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43370if eval "test \"\${$as_ac_Header+set}\" = set"; then
43371 echo $ECHO_N "(cached) $ECHO_C" >&6
43372else
ac1cb8d3 43373 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43374fi
43375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43376echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43377
43378fi
43379if test `eval echo '${'$as_ac_Header'}'` = yes; then
43380 cat >>confdefs.h <<_ACEOF
43381#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43382_ACEOF
ee45c548 43383 wxUSE_JOYSTICK=yes
a848cd7e
SC
43384fi
43385
43386done
43387
ee45c548 43388 fi
4cb1d3da 43389
ee45c548
MW
43390 if test "$wxUSE_JOYSTICK" = "yes"; then
43391 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43392#define wxUSE_JOYSTICK 1
43393_ACEOF
43394
ee45c548
MW
43395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43396 else
43397 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43398echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43399 fi
43400fi
43401
43402
43403
43404if test "$wxUSE_FONTMAP" = "yes" ; then
43405 cat >>confdefs.h <<\_ACEOF
43406#define wxUSE_FONTMAP 1
43407_ACEOF
43408
43409fi
43410
43411if test "$wxUSE_UNICODE" = "yes" ; then
43412 cat >>confdefs.h <<\_ACEOF
43413#define wxUSE_UNICODE 1
43414_ACEOF
43415
43416
43417 if test "$USE_WIN32" != 1; then
43418 wxUSE_UNICODE_MSLU=no
43419 fi
43420
43421 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43422 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43423echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43424if test "${ac_cv_lib_unicows_main+set}" = set; then
43425 echo $ECHO_N "(cached) $ECHO_C" >&6
43426else
43427 ac_check_lib_save_LIBS=$LIBS
43428LIBS="-lunicows $LIBS"
43429cat >conftest.$ac_ext <<_ACEOF
43430/* confdefs.h. */
43431_ACEOF
43432cat confdefs.h >>conftest.$ac_ext
43433cat >>conftest.$ac_ext <<_ACEOF
43434/* end confdefs.h. */
43435
43436
43437int
43438main ()
43439{
43440main ();
43441 ;
43442 return 0;
43443}
43444_ACEOF
43445rm -f conftest.$ac_objext conftest$ac_exeext
43446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43447 (eval $ac_link) 2>conftest.er1
a848cd7e 43448 ac_status=$?
ac1cb8d3
VS
43449 grep -v '^ *+' conftest.er1 >conftest.err
43450 rm -f conftest.er1
43451 cat conftest.err >&5
a848cd7e
SC
43452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43453 (exit $ac_status); } &&
6954625c 43454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43456 (eval $ac_try) 2>&5
43457 ac_status=$?
43458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43459 (exit $ac_status); }; } &&
43460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43462 (eval $ac_try) 2>&5
43463 ac_status=$?
43464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43465 (exit $ac_status); }; }; then
43466 ac_cv_lib_unicows_main=yes
43467else
43468 echo "$as_me: failed program was:" >&5
43469sed 's/^/| /' conftest.$ac_ext >&5
43470
43471ac_cv_lib_unicows_main=no
43472fi
ac1cb8d3
VS
43473rm -f conftest.err conftest.$ac_objext \
43474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43475LIBS=$ac_check_lib_save_LIBS
43476fi
43477echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43478echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43479if test $ac_cv_lib_unicows_main = yes; then
43480
43481 cat >>confdefs.h <<\_ACEOF
43482#define wxUSE_UNICODE_MSLU 1
43483_ACEOF
43484
43485
43486else
43487
43488 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43489 Applications will only run on Windows NT/2000/XP!" >&5
43490echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43491 Applications will only run on Windows NT/2000/XP!" >&2;}
43492 wxUSE_UNICODE_MSLU=no
43493
43494fi
43495
43496 fi
43497fi
43498
43499if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43500 cat >>confdefs.h <<\_ACEOF
43501#define wxUSE_EXPERIMENTAL_PRINTF 1
43502_ACEOF
43503
43504fi
43505
43506
43507if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43508 cat >>confdefs.h <<\_ACEOF
43509#define wxUSE_POSTSCRIPT 1
43510_ACEOF
43511
43512fi
43513
43514cat >>confdefs.h <<\_ACEOF
43515#define wxUSE_AFM_FOR_POSTSCRIPT 1
43516_ACEOF
43517
43518
43519cat >>confdefs.h <<\_ACEOF
43520#define wxUSE_NORMALIZED_PS_FONTS 1
43521_ACEOF
43522
43523
43524
43525if test "$wxUSE_CONSTRAINTS" = "yes"; then
43526 cat >>confdefs.h <<\_ACEOF
43527#define wxUSE_CONSTRAINTS 1
43528_ACEOF
43529
43530 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43531fi
43532
8a7b1113
VZ
43533if test "$wxUSE_MDI" = "yes"; then
43534 cat >>confdefs.h <<\_ACEOF
43535#define wxUSE_MDI 1
43536_ACEOF
43537
43538
43539 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43540 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43541#define wxUSE_MDI_ARCHITECTURE 1
43542_ACEOF
43543
8a7b1113
VZ
43544 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43545 fi
a848cd7e
SC
43546fi
43547
43548if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43549 cat >>confdefs.h <<\_ACEOF
43550#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43551_ACEOF
43552
43553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43554 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43556 fi
43557fi
43558
43559if test "$wxUSE_HELP" = "yes"; then
43560 cat >>confdefs.h <<\_ACEOF
43561#define wxUSE_HELP 1
43562_ACEOF
43563
43564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43565
43566 if test "$wxUSE_MSW" = 1; then
43567 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43568 cat >>confdefs.h <<\_ACEOF
43569#define wxUSE_MS_HTML_HELP 1
43570_ACEOF
43571
43572 fi
43573 fi
43574
43575 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43576 if test "$wxUSE_HTML" = "yes"; then
43577 cat >>confdefs.h <<\_ACEOF
43578#define wxUSE_WXHTML_HELP 1
43579_ACEOF
43580
43581 else
43582 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43583echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43584 wxUSE_WXHTML_HELP=no
43585 fi
43586 fi
43587fi
43588
43589if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43590 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43591 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43592echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43593 else
43594 cat >>confdefs.h <<\_ACEOF
43595#define wxUSE_PRINTING_ARCHITECTURE 1
43596_ACEOF
43597
43598 fi
43599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43600fi
43601
43602if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43603 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43604echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43605 { (exit 1); exit 1; }; }
43606fi
43607
43608
efdf6afe
VZ
43609if test "$wxUSE_METAFILE" = "yes"; then
43610 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43611 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43612echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43613 wxUSE_METAFILE=no
43614 fi
43615fi
43616
43617
a848cd7e
SC
43618if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43619 -o "$wxUSE_CLIPBOARD" = "yes" \
43620 -o "$wxUSE_OLE" = "yes" \
43621 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43622
43623for ac_header in ole2.h
43624do
43625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43626if eval "test \"\${$as_ac_Header+set}\" = set"; then
43627 echo "$as_me:$LINENO: checking for $ac_header" >&5
43628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43629if eval "test \"\${$as_ac_Header+set}\" = set"; then
43630 echo $ECHO_N "(cached) $ECHO_C" >&6
43631fi
43632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43633echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43634else
43635 # Is the header compilable?
43636echo "$as_me:$LINENO: checking $ac_header usability" >&5
43637echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43638cat >conftest.$ac_ext <<_ACEOF
43639/* confdefs.h. */
43640_ACEOF
43641cat confdefs.h >>conftest.$ac_ext
43642cat >>conftest.$ac_ext <<_ACEOF
43643/* end confdefs.h. */
43644$ac_includes_default
43645#include <$ac_header>
43646_ACEOF
43647rm -f conftest.$ac_objext
43648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43649 (eval $ac_compile) 2>conftest.er1
a848cd7e 43650 ac_status=$?
ac1cb8d3
VS
43651 grep -v '^ *+' conftest.er1 >conftest.err
43652 rm -f conftest.er1
43653 cat conftest.err >&5
a848cd7e
SC
43654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43655 (exit $ac_status); } &&
6954625c 43656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43658 (eval $ac_try) 2>&5
43659 ac_status=$?
43660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43661 (exit $ac_status); }; } &&
43662 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43664 (eval $ac_try) 2>&5
43665 ac_status=$?
43666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43667 (exit $ac_status); }; }; then
43668 ac_header_compiler=yes
43669else
43670 echo "$as_me: failed program was:" >&5
43671sed 's/^/| /' conftest.$ac_ext >&5
43672
43673ac_header_compiler=no
43674fi
ac1cb8d3 43675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43676echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43677echo "${ECHO_T}$ac_header_compiler" >&6
43678
43679# Is the header present?
43680echo "$as_me:$LINENO: checking $ac_header presence" >&5
43681echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43682cat >conftest.$ac_ext <<_ACEOF
43683/* confdefs.h. */
43684_ACEOF
43685cat confdefs.h >>conftest.$ac_ext
43686cat >>conftest.$ac_ext <<_ACEOF
43687/* end confdefs.h. */
43688#include <$ac_header>
43689_ACEOF
43690if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43692 ac_status=$?
43693 grep -v '^ *+' conftest.er1 >conftest.err
43694 rm -f conftest.er1
43695 cat conftest.err >&5
43696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43697 (exit $ac_status); } >/dev/null; then
43698 if test -s conftest.err; then
5d7b7554
VZ
43699 ac_cpp_err=$ac_cxx_preproc_warn_flag
43700 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43701 else
43702 ac_cpp_err=
43703 fi
43704else
43705 ac_cpp_err=yes
43706fi
43707if test -z "$ac_cpp_err"; then
43708 ac_header_preproc=yes
43709else
43710 echo "$as_me: failed program was:" >&5
43711sed 's/^/| /' conftest.$ac_ext >&5
43712
43713 ac_header_preproc=no
43714fi
43715rm -f conftest.err conftest.$ac_ext
43716echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43717echo "${ECHO_T}$ac_header_preproc" >&6
43718
43719# So? What about this header?
5d7b7554 43720case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43721 yes:no: )
a848cd7e
SC
43722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43723echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43725echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43726 ac_header_preproc=yes
a848cd7e 43727 ;;
ac1cb8d3 43728 no:yes:* )
a848cd7e
SC
43729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43730echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43732echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43734echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43736echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43738echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43740echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43741 (
43742 cat <<\_ASBOX
ac1cb8d3
VS
43743## ----------------------------------------- ##
43744## Report this to wx-dev@lists.wxwidgets.org ##
43745## ----------------------------------------- ##
a848cd7e
SC
43746_ASBOX
43747 ) |
43748 sed "s/^/$as_me: WARNING: /" >&2
43749 ;;
43750esac
43751echo "$as_me:$LINENO: checking for $ac_header" >&5
43752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43753if eval "test \"\${$as_ac_Header+set}\" = set"; then
43754 echo $ECHO_N "(cached) $ECHO_C" >&6
43755else
ac1cb8d3 43756 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43757fi
43758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43760
43761fi
43762if test `eval echo '${'$as_ac_Header'}'` = yes; then
43763 cat >>confdefs.h <<_ACEOF
43764#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43765_ACEOF
43766
43767fi
43768
43769done
43770
43771
43772 if test "$ac_cv_header_ole2_h" = "yes" ; then
43773 if test "$GCC" = yes ; then
a848cd7e
SC
43774 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43775echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43776 cat >conftest.$ac_ext <<_ACEOF
43777/* confdefs.h. */
43778_ACEOF
43779cat confdefs.h >>conftest.$ac_ext
43780cat >>conftest.$ac_ext <<_ACEOF
43781/* end confdefs.h. */
43782#include <windows.h>
43783 #include <ole2.h>
43784int
43785main ()
43786{
43787
43788 ;
43789 return 0;
43790}
43791_ACEOF
43792rm -f conftest.$ac_objext
43793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43794 (eval $ac_compile) 2>conftest.er1
a848cd7e 43795 ac_status=$?
ac1cb8d3
VS
43796 grep -v '^ *+' conftest.er1 >conftest.err
43797 rm -f conftest.er1
43798 cat conftest.err >&5
a848cd7e
SC
43799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43800 (exit $ac_status); } &&
6954625c 43801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43803 (eval $ac_try) 2>&5
43804 ac_status=$?
43805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43806 (exit $ac_status); }; } &&
43807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43809 (eval $ac_try) 2>&5
43810 ac_status=$?
43811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43812 (exit $ac_status); }; }; then
43813 echo "$as_me:$LINENO: result: no" >&5
43814echo "${ECHO_T}no" >&6
43815else
43816 echo "$as_me: failed program was:" >&5
43817sed 's/^/| /' conftest.$ac_ext >&5
43818
43819echo "$as_me:$LINENO: result: yes" >&5
43820echo "${ECHO_T}yes" >&6
5ff751d6 43821 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 43822fi
ac1cb8d3 43823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43824 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43825 if test "$wxUSE_OLE" = "yes" ; then
43826 cat >>confdefs.h <<\_ACEOF
43827#define wxUSE_OLE 1
43828_ACEOF
43829
0b78747f 43830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
43831 fi
43832 fi
43833
43834 if test "$wxUSE_DATAOBJ" = "yes" ; then
43835 cat >>confdefs.h <<\_ACEOF
43836#define wxUSE_DATAOBJ 1
43837_ACEOF
43838
43839 fi
43840 else
43841 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43842echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43843
43844 wxUSE_CLIPBOARD=no
43845 wxUSE_DRAG_AND_DROP=no
43846 wxUSE_DATAOBJ=no
43847 wxUSE_OLE=no
43848 fi
43849
43850 if test "$wxUSE_METAFILE" = "yes"; then
43851 cat >>confdefs.h <<\_ACEOF
43852#define wxUSE_METAFILE 1
43853_ACEOF
43854
43855
43856 cat >>confdefs.h <<\_ACEOF
43857#define wxUSE_ENH_METAFILE 1
43858_ACEOF
43859
43860 fi
43861fi
43862
43863if test "$wxUSE_IPC" = "yes"; then
0b78747f 43864 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
43865 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43866echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 43867 wxUSE_IPC=no
a848cd7e
SC
43868 fi
43869
0b78747f
MW
43870 if test "$wxUSE_IPC" = "yes"; then
43871 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43872#define wxUSE_IPC 1
43873_ACEOF
43874
0b78747f
MW
43875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43876 fi
a848cd7e
SC
43877fi
43878
eb730a0c 43879if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
43880 if test "$wxUSE_MGL" = 1; then
43881 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43882echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43883 wxUSE_DATAOBJ=no
43884 else
43885 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
43886#define wxUSE_DATAOBJ 1
43887_ACEOF
43888
2113bc77 43889 fi
eb730a0c
JS
43890else
43891 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43892echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43893 wxUSE_CLIPBOARD=no
43894 wxUSE_DRAG_AND_DROP=no
43895fi
43896
a848cd7e
SC
43897if test "$wxUSE_CLIPBOARD" = "yes"; then
43898 if test "$wxUSE_MGL" = 1; then
43899 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43900echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43901 wxUSE_CLIPBOARD=no
43902 fi
43903
43904 if test "$wxUSE_CLIPBOARD" = "yes"; then
43905 cat >>confdefs.h <<\_ACEOF
43906#define wxUSE_CLIPBOARD 1
43907_ACEOF
43908
a848cd7e
SC
43909 fi
43910fi
43911
43912if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43913 if test "$wxUSE_GTK" = 1; then
43914 if test "$WXGTK12" != 1; then
43915 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43916echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43917 wxUSE_DRAG_AND_DROP=no
43918 fi
43919 fi
43920
43921 if test "$wxUSE_MOTIF" = 1; then
43922 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43923echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43924 wxUSE_DRAG_AND_DROP=no
43925 fi
43926
43927 if test "$wxUSE_X11" = 1; then
43928 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43929echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43930 wxUSE_DRAG_AND_DROP=no
43931 fi
43932
43933 if test "$wxUSE_MGL" = 1; then
43934 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43935echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43936 wxUSE_DRAG_AND_DROP=no
43937 fi
43938
43939 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43940 cat >>confdefs.h <<\_ACEOF
43941#define wxUSE_DRAG_AND_DROP 1
43942_ACEOF
43943
43944 fi
43945
43946fi
43947
43948if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43950fi
43951
43952if test "$wxUSE_SPLINES" = "yes" ; then
43953 cat >>confdefs.h <<\_ACEOF
43954#define wxUSE_SPLINES 1
43955_ACEOF
43956
43957fi
43958
fbe2ca43
SN
43959if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43960 cat >>confdefs.h <<\_ACEOF
43961#define wxUSE_MOUSEWHEEL 1
43962_ACEOF
43963
43964fi
43965
a848cd7e
SC
43966
43967USES_CONTROLS=0
43968if test "$wxUSE_CONTROLS" = "yes"; then
43969 USES_CONTROLS=1
43970fi
43971
43972if test "$wxUSE_ACCEL" = "yes"; then
43973 cat >>confdefs.h <<\_ACEOF
43974#define wxUSE_ACCEL 1
43975_ACEOF
43976
43977 USES_CONTROLS=1
43978fi
43979
43980if test "$wxUSE_BUTTON" = "yes"; then
43981 cat >>confdefs.h <<\_ACEOF
43982#define wxUSE_BUTTON 1
43983_ACEOF
43984
43985 USES_CONTROLS=1
43986fi
43987
43988if test "$wxUSE_BMPBUTTON" = "yes"; then
43989 cat >>confdefs.h <<\_ACEOF
43990#define wxUSE_BMPBUTTON 1
43991_ACEOF
43992
43993 USES_CONTROLS=1
43994fi
43995
43996if test "$wxUSE_CALCTRL" = "yes"; then
43997 cat >>confdefs.h <<\_ACEOF
43998#define wxUSE_CALENDARCTRL 1
43999_ACEOF
44000
44001 USES_CONTROLS=1
44002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44003fi
44004
44005if test "$wxUSE_CARET" = "yes"; then
44006 cat >>confdefs.h <<\_ACEOF
44007#define wxUSE_CARET 1
44008_ACEOF
44009
44010 USES_CONTROLS=1
44011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44012fi
44013
44014if test "$wxUSE_COMBOBOX" = "yes"; then
44015 cat >>confdefs.h <<\_ACEOF
44016#define wxUSE_COMBOBOX 1
44017_ACEOF
44018
44019 USES_CONTROLS=1
44020fi
44021
a57d600f 44022if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 44023 cat >>confdefs.h <<\_ACEOF
a57d600f 44024#define wxUSE_COMBOCTRL 1
642bcba9
VZ
44025_ACEOF
44026
44027 USES_CONTROLS=1
44028fi
44029
a848cd7e
SC
44030if test "$wxUSE_CHOICE" = "yes"; then
44031 cat >>confdefs.h <<\_ACEOF
44032#define wxUSE_CHOICE 1
44033_ACEOF
44034
44035 USES_CONTROLS=1
44036fi
44037
92bbdbcd
WS
44038if test "$wxUSE_CHOICEBOOK" = "yes"; then
44039 cat >>confdefs.h <<\_ACEOF
44040#define wxUSE_CHOICEBOOK 1
44041_ACEOF
44042
44043 USES_CONTROLS=1
44044fi
44045
a848cd7e
SC
44046if test "$wxUSE_CHECKBOX" = "yes"; then
44047 cat >>confdefs.h <<\_ACEOF
44048#define wxUSE_CHECKBOX 1
44049_ACEOF
44050
44051 USES_CONTROLS=1
44052fi
44053
44054if test "$wxUSE_CHECKLST" = "yes"; then
44055 cat >>confdefs.h <<\_ACEOF
44056#define wxUSE_CHECKLISTBOX 1
44057_ACEOF
44058
44059 USES_CONTROLS=1
44060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44061fi
44062
e9263684
VZ
44063if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44064 cat >>confdefs.h <<\_ACEOF
44065#define wxUSE_COLOURPICKERCTRL 1
44066_ACEOF
44067
44068 USES_CONTROLS=1
44069fi
44070
da98e9be
VZ
44071if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44072 cat >>confdefs.h <<\_ACEOF
44073#define wxUSE_DATEPICKCTRL 1
44074_ACEOF
44075
44076 USES_CONTROLS=1
44077fi
44078
e9263684
VZ
44079if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44080 cat >>confdefs.h <<\_ACEOF
44081#define wxUSE_DIRPICKERCTRL 1
44082_ACEOF
44083
44084 USES_CONTROLS=1
44085fi
44086
44087if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44088 cat >>confdefs.h <<\_ACEOF
44089#define wxUSE_FILEPICKERCTRL 1
44090_ACEOF
44091
44092 USES_CONTROLS=1
44093fi
44094
44095if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44096 cat >>confdefs.h <<\_ACEOF
44097#define wxUSE_FONTPICKERCTRL 1
44098_ACEOF
44099
44100 USES_CONTROLS=1
44101fi
44102
a848cd7e
SC
44103if test "$wxUSE_DISPLAY" = "yes"; then
44104 cat >>confdefs.h <<\_ACEOF
44105#define wxUSE_DISPLAY 1
44106_ACEOF
44107
0b78747f 44108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
44109fi
44110
44111if test "$wxUSE_GAUGE" = "yes"; then
44112 cat >>confdefs.h <<\_ACEOF
44113#define wxUSE_GAUGE 1
44114_ACEOF
44115
44116 USES_CONTROLS=1
44117fi
44118
44119if test "$wxUSE_GRID" = "yes"; then
44120 cat >>confdefs.h <<\_ACEOF
44121#define wxUSE_GRID 1
44122_ACEOF
44123
44124 USES_CONTROLS=1
44125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44126fi
44127
6954625c
VZ
44128if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44129 cat >>confdefs.h <<\_ACEOF
44130#define wxUSE_HYPERLINKCTRL 1
44131_ACEOF
44132
44133 USES_CONTROLS=1
44134fi
44135
20e34ecc
RR
44136if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44137 cat >>confdefs.h <<\_ACEOF
44138#define wxUSE_DATAVIEWCTRL 1
44139_ACEOF
44140
44141 USES_CONTROLS=1
44142 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44143fi
44144
a848cd7e
SC
44145if test "$wxUSE_IMAGLIST" = "yes"; then
44146 cat >>confdefs.h <<\_ACEOF
44147#define wxUSE_IMAGLIST 1
44148_ACEOF
44149
44150fi
44151
44152if test "$wxUSE_LISTBOOK" = "yes"; then
44153 cat >>confdefs.h <<\_ACEOF
44154#define wxUSE_LISTBOOK 1
44155_ACEOF
44156
44157 USES_CONTROLS=1
44158fi
44159
44160if test "$wxUSE_LISTBOX" = "yes"; then
44161 cat >>confdefs.h <<\_ACEOF
44162#define wxUSE_LISTBOX 1
44163_ACEOF
44164
44165 USES_CONTROLS=1
0b78747f 44166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
44167fi
44168
44169if test "$wxUSE_LISTCTRL" = "yes"; then
44170 if test "$wxUSE_IMAGLIST" = "yes"; then
44171 cat >>confdefs.h <<\_ACEOF
44172#define wxUSE_LISTCTRL 1
44173_ACEOF
44174
44175 USES_CONTROLS=1
44176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44177 else
44178 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44179echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44180 fi
44181fi
44182
44183if test "$wxUSE_NOTEBOOK" = "yes"; then
44184 cat >>confdefs.h <<\_ACEOF
44185#define wxUSE_NOTEBOOK 1
44186_ACEOF
44187
44188 USES_CONTROLS=1
44189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44190fi
44191
a57d600f 44192if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 44193 cat >>confdefs.h <<\_ACEOF
a57d600f 44194#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
44195_ACEOF
44196
44197 USES_CONTROLS=1
44198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44199fi
44200
a848cd7e
SC
44201
44202if test "$wxUSE_RADIOBOX" = "yes"; then
44203 cat >>confdefs.h <<\_ACEOF
44204#define wxUSE_RADIOBOX 1
44205_ACEOF
44206
44207 USES_CONTROLS=1
44208fi
44209
44210if test "$wxUSE_RADIOBTN" = "yes"; then
44211 cat >>confdefs.h <<\_ACEOF
44212#define wxUSE_RADIOBTN 1
44213_ACEOF
44214
44215 USES_CONTROLS=1
44216fi
44217
44218if test "$wxUSE_SASH" = "yes"; then
44219 cat >>confdefs.h <<\_ACEOF
44220#define wxUSE_SASH 1
44221_ACEOF
44222
44223 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44224fi
44225
44226if test "$wxUSE_SCROLLBAR" = "yes"; then
44227 cat >>confdefs.h <<\_ACEOF
44228#define wxUSE_SCROLLBAR 1
44229_ACEOF
44230
44231 USES_CONTROLS=1
44232 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44233fi
44234
44235if test "$wxUSE_SLIDER" = "yes"; then
44236 cat >>confdefs.h <<\_ACEOF
44237#define wxUSE_SLIDER 1
44238_ACEOF
44239
44240 USES_CONTROLS=1
44241fi
44242
44243if test "$wxUSE_SPINBTN" = "yes"; then
44244 cat >>confdefs.h <<\_ACEOF
44245#define wxUSE_SPINBTN 1
44246_ACEOF
44247
44248 USES_CONTROLS=1
44249fi
44250
44251if test "$wxUSE_SPINCTRL" = "yes"; then
44252 cat >>confdefs.h <<\_ACEOF
44253#define wxUSE_SPINCTRL 1
44254_ACEOF
44255
44256 USES_CONTROLS=1
44257fi
44258
44259if test "$wxUSE_SPLITTER" = "yes"; then
44260 cat >>confdefs.h <<\_ACEOF
44261#define wxUSE_SPLITTER 1
44262_ACEOF
44263
44264 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44265fi
44266
44267if test "$wxUSE_STATBMP" = "yes"; then
44268 cat >>confdefs.h <<\_ACEOF
44269#define wxUSE_STATBMP 1
44270_ACEOF
44271
44272 USES_CONTROLS=1
44273fi
44274
44275if test "$wxUSE_STATBOX" = "yes"; then
44276 cat >>confdefs.h <<\_ACEOF
44277#define wxUSE_STATBOX 1
44278_ACEOF
44279
44280 USES_CONTROLS=1
44281fi
44282
44283if test "$wxUSE_STATTEXT" = "yes"; then
44284 cat >>confdefs.h <<\_ACEOF
44285#define wxUSE_STATTEXT 1
44286_ACEOF
44287
44288 USES_CONTROLS=1
44289fi
44290
44291if test "$wxUSE_STATLINE" = "yes"; then
44292 cat >>confdefs.h <<\_ACEOF
44293#define wxUSE_STATLINE 1
44294_ACEOF
44295
44296 USES_CONTROLS=1
44297fi
44298
44299if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
44300 cat >>confdefs.h <<\_ACEOF
44301#define wxUSE_NATIVE_STATUSBAR 1
44302_ACEOF
44303
a848cd7e
SC
44304 cat >>confdefs.h <<\_ACEOF
44305#define wxUSE_STATUSBAR 1
44306_ACEOF
44307
44308 USES_CONTROLS=1
44309
44310 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44311fi
44312
f10e38c4 44313if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
44314 cat >>confdefs.h <<\_ACEOF
44315#define wxUSE_TAB_DIALOG 1
44316_ACEOF
44317
a848cd7e
SC
44318fi
44319
44320if test "$wxUSE_TEXTCTRL" = "yes"; then
44321 cat >>confdefs.h <<\_ACEOF
44322#define wxUSE_TEXTCTRL 1
44323_ACEOF
44324
44325 USES_CONTROLS=1
44326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44327fi
44328
44329if test "$wxUSE_TOGGLEBTN" = "yes"; then
44330 if test "$wxUSE_COCOA" = 1 ; then
44331 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44332echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44333 wxUSE_TOGGLEBTN=no
44334 fi
a848cd7e
SC
44335
44336 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44337 cat >>confdefs.h <<\_ACEOF
44338#define wxUSE_TOGGLEBTN 1
44339_ACEOF
44340
44341 USES_CONTROLS=1
44342 fi
44343fi
44344
44345if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44346 cat >>confdefs.h <<\_ACEOF
44347#define wxUSE_TOOLBAR_SIMPLE 1
44348_ACEOF
44349
44350 wxUSE_TOOLBAR="yes"
44351 USES_CONTROLS=1
44352fi
44353
44354if test "$wxUSE_TOOLBAR" = "yes"; then
44355 cat >>confdefs.h <<\_ACEOF
44356#define wxUSE_TOOLBAR 1
44357_ACEOF
44358
44359 USES_CONTROLS=1
44360
44361 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44362 wxUSE_TOOLBAR_NATIVE="yes"
44363 fi
44364
44365 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44366 cat >>confdefs.h <<\_ACEOF
44367#define wxUSE_TOOLBAR_NATIVE 1
44368_ACEOF
44369
44370 USES_CONTROLS=1
44371 fi
44372
44373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44374fi
44375
44376if test "$wxUSE_TOOLTIPS" = "yes"; then
44377 if test "$wxUSE_MOTIF" = 1; then
44378 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44379echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44380 else
44381 if test "$wxUSE_UNIVERSAL" = "yes"; then
44382 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44383echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44384 else
44385 cat >>confdefs.h <<\_ACEOF
44386#define wxUSE_TOOLTIPS 1
44387_ACEOF
44388
44389 fi
44390 fi
44391fi
44392
0093c2fc
VZ
44393if test "$wxUSE_TREEBOOK" = "yes"; then
44394 cat >>confdefs.h <<\_ACEOF
44395#define wxUSE_TREEBOOK 1
44396_ACEOF
44397
44398 USES_CONTROLS=1
44399fi
44400
5ec3bc43
JS
44401if test "$wxUSE_TOOLBOOK" = "yes"; then
44402 cat >>confdefs.h <<\_ACEOF
44403#define wxUSE_TOOLBOOK 1
44404_ACEOF
44405
44406 USES_CONTROLS=1
44407fi
44408
a848cd7e
SC
44409if test "$wxUSE_TREECTRL" = "yes"; then
44410 if test "$wxUSE_IMAGLIST" = "yes"; then
44411 cat >>confdefs.h <<\_ACEOF
44412#define wxUSE_TREECTRL 1
44413_ACEOF
44414
44415 USES_CONTROLS=1
44416 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44417 else
44418 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44419echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44420 fi
44421fi
44422
44423if test "$wxUSE_POPUPWIN" = "yes"; then
44424 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44425 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44426echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44427 else
44428 if test "$wxUSE_PM" = 1; then
44429 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44430echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44431 else
44432 cat >>confdefs.h <<\_ACEOF
44433#define wxUSE_POPUPWIN 1
44434_ACEOF
44435
0b78747f 44436 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
44437
44438 USES_CONTROLS=1
44439 fi
44440 fi
44441fi
44442
0dcd06dd 44443if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44444 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44445 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44446echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44447 else
44448 cat >>confdefs.h <<\_ACEOF
44449#define wxUSE_DIALUP_MANAGER 1
44450_ACEOF
44451
44452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44453 fi
44454fi
44455
a848cd7e
SC
44456if test "$wxUSE_TIPWINDOW" = "yes"; then
44457 if test "$wxUSE_PM" = 1; then
44458 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44459echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44460 else
44461 cat >>confdefs.h <<\_ACEOF
44462#define wxUSE_TIPWINDOW 1
44463_ACEOF
44464
44465 fi
44466fi
44467
44468if test "$USES_CONTROLS" = 1; then
44469 cat >>confdefs.h <<\_ACEOF
44470#define wxUSE_CONTROLS 1
44471_ACEOF
44472
44473fi
44474
44475
44476if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44477 cat >>confdefs.h <<\_ACEOF
44478#define wxUSE_ACCESSIBILITY 1
44479_ACEOF
44480
44481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44482fi
44483
38b4a946
VZ
44484if test "$wxUSE_DC_CACHEING" = "yes"; then
44485 cat >>confdefs.h <<\_ACEOF
44486#define wxUSE_DC_CACHEING 1
44487_ACEOF
44488
44489fi
44490
a848cd7e
SC
44491if test "$wxUSE_DRAGIMAGE" = "yes"; then
44492 cat >>confdefs.h <<\_ACEOF
44493#define wxUSE_DRAGIMAGE 1
44494_ACEOF
44495
44496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44497fi
44498
44499if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
44500 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44501 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44502echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44503 else
44504 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44505#define wxUSE_EXCEPTIONS 1
44506_ACEOF
44507
07bea8f0
VS
44508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44509 fi
a848cd7e
SC
44510fi
44511
44512USE_HTML=0
44513if test "$wxUSE_HTML" = "yes"; then
44514 cat >>confdefs.h <<\_ACEOF
44515#define wxUSE_HTML 1
44516_ACEOF
44517
44518 USE_HTML=1
44519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44520 if test "$wxUSE_MAC" = 1; then
44521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44522 fi
a848cd7e 44523fi
646b6ec1 44524if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44525 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44526 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44527 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44528 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44529echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44530if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44531 echo $ECHO_N "(cached) $ECHO_C" >&6
44532else
44533 cat >conftest.$ac_ext <<_ACEOF
44534/* confdefs.h. */
44535_ACEOF
44536cat confdefs.h >>conftest.$ac_ext
44537cat >>conftest.$ac_ext <<_ACEOF
44538/* end confdefs.h. */
44539#include <Carbon/Carbon.h>
44540
44541#include <WebKit/HIWebView.h>
44542_ACEOF
44543rm -f conftest.$ac_objext
44544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44545 (eval $ac_compile) 2>conftest.er1
44546 ac_status=$?
44547 grep -v '^ *+' conftest.er1 >conftest.err
44548 rm -f conftest.er1
44549 cat conftest.err >&5
44550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44551 (exit $ac_status); } &&
6954625c 44552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
44553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44554 (eval $ac_try) 2>&5
44555 ac_status=$?
44556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44557 (exit $ac_status); }; } &&
44558 { ac_try='test -s conftest.$ac_objext'
44559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44560 (eval $ac_try) 2>&5
44561 ac_status=$?
44562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44563 (exit $ac_status); }; }; then
44564 ac_cv_header_WebKit_HIWebView_h=yes
44565else
44566 echo "$as_me: failed program was:" >&5
44567sed 's/^/| /' conftest.$ac_ext >&5
44568
44569ac_cv_header_WebKit_HIWebView_h=no
44570fi
44571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44572fi
44573echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44574echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44575if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44576
44577 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44578#define wxUSE_WEBKIT 1
44579_ACEOF
44580
07bea8f0
VS
44581 WEBKIT_LINK="-framework WebKit"
44582
44583else
44584
44585 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44586echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44587 wxUSE_WEBKIT=no
44588
646b6ec1
VS
44589fi
44590
07bea8f0
VS
44591
44592 CPPFLAGS="$old_CPPFLAGS"
44593 elif test "$wxUSE_COCOA" = 1; then
44594 cat >>confdefs.h <<\_ACEOF
44595#define wxUSE_WEBKIT 1
44596_ACEOF
44597
44598 else
44599 wxUSE_WEBKIT=no
44600 fi
44601fi
44602
9a8f0513
VS
44603USE_XRC=0
44604if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44605 if test "$wxUSE_XML" != "yes"; then
44606 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44607echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44608 wxUSE_XRC=no
44609 else
44610 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44611#define wxUSE_XRC 1
44612_ACEOF
44613
d2ebf0b7
VS
44614 USE_XRC=1
44615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44616 fi
9a8f0513 44617fi
07bea8f0 44618
a848cd7e
SC
44619if test "$wxUSE_MENUS" = "yes"; then
44620 cat >>confdefs.h <<\_ACEOF
44621#define wxUSE_MENUS 1
44622_ACEOF
44623
44624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44625fi
44626
44627if test "$wxUSE_METAFILE" = "yes"; then
44628 cat >>confdefs.h <<\_ACEOF
44629#define wxUSE_METAFILE 1
44630_ACEOF
44631
44632fi
44633
44634if test "$wxUSE_MIMETYPE" = "yes"; then
44635 cat >>confdefs.h <<\_ACEOF
44636#define wxUSE_MIMETYPE 1
44637_ACEOF
44638
44639fi
44640
44641if test "$wxUSE_MINIFRAME" = "yes"; then
44642 cat >>confdefs.h <<\_ACEOF
44643#define wxUSE_MINIFRAME 1
44644_ACEOF
44645
44646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44647fi
44648
44649if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44650 cat >>confdefs.h <<\_ACEOF
44651#define wxUSE_SYSTEM_OPTIONS 1
44652_ACEOF
44653
44654 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 44655 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
44656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44657 fi
44658fi
44659
44660
44661if test "$wxUSE_VALIDATORS" = "yes"; then
44662 cat >>confdefs.h <<\_ACEOF
44663#define wxUSE_VALIDATORS 1
44664_ACEOF
44665
44666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44667fi
44668
44669if test "$wxUSE_PALETTE" = "yes" ; then
44670 cat >>confdefs.h <<\_ACEOF
44671#define wxUSE_PALETTE 1
44672_ACEOF
44673
44674fi
44675
44676if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44677 LIBS=" -lunicows $LIBS"
44678fi
44679
91dea314
MW
44680USE_RICHTEXT=0
44681if test "$wxUSE_RICHTEXT" = "yes"; then
44682 cat >>confdefs.h <<\_ACEOF
44683#define wxUSE_RICHTEXT 1
44684_ACEOF
44685
44686 USE_RICHTEXT=1
44687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44688fi
44689
a848cd7e
SC
44690
44691if test "$wxUSE_IMAGE" = "yes" ; then
44692 cat >>confdefs.h <<\_ACEOF
44693#define wxUSE_IMAGE 1
44694_ACEOF
44695
44696
44697 if test "$wxUSE_GIF" = "yes" ; then
44698 cat >>confdefs.h <<\_ACEOF
44699#define wxUSE_GIF 1
44700_ACEOF
44701
44702 fi
44703
44704 if test "$wxUSE_PCX" = "yes" ; then
44705 cat >>confdefs.h <<\_ACEOF
44706#define wxUSE_PCX 1
44707_ACEOF
44708
44709 fi
44710
44711 if test "$wxUSE_IFF" = "yes" ; then
44712 cat >>confdefs.h <<\_ACEOF
44713#define wxUSE_IFF 1
44714_ACEOF
44715
44716 fi
44717
44718 if test "$wxUSE_PNM" = "yes" ; then
44719 cat >>confdefs.h <<\_ACEOF
44720#define wxUSE_PNM 1
44721_ACEOF
44722
44723 fi
44724
44725 if test "$wxUSE_XPM" = "yes" ; then
44726 cat >>confdefs.h <<\_ACEOF
44727#define wxUSE_XPM 1
44728_ACEOF
44729
44730 fi
44731
44732 if test "$wxUSE_ICO_CUR" = "yes" ; then
44733 cat >>confdefs.h <<\_ACEOF
44734#define wxUSE_ICO_CUR 1
44735_ACEOF
44736
44737 fi
44738fi
44739
44740
44741if test "$wxUSE_CHOICEDLG" = "yes"; then
44742 cat >>confdefs.h <<\_ACEOF
44743#define wxUSE_CHOICEDLG 1
44744_ACEOF
44745
44746fi
44747
44748if test "$wxUSE_COLOURDLG" = "yes"; then
44749 cat >>confdefs.h <<\_ACEOF
44750#define wxUSE_COLOURDLG 1
44751_ACEOF
44752
44753fi
44754
44755if test "$wxUSE_FILEDLG" = "yes"; then
44756 cat >>confdefs.h <<\_ACEOF
44757#define wxUSE_FILEDLG 1
44758_ACEOF
44759
44760fi
44761
44762if test "$wxUSE_FINDREPLDLG" = "yes"; then
44763 cat >>confdefs.h <<\_ACEOF
44764#define wxUSE_FINDREPLDLG 1
44765_ACEOF
44766
44767fi
44768
44769if test "$wxUSE_FONTDLG" = "yes"; then
44770 cat >>confdefs.h <<\_ACEOF
44771#define wxUSE_FONTDLG 1
44772_ACEOF
44773
44774fi
44775
44776if test "$wxUSE_DIRDLG" = "yes"; then
44777 if test "$wxUSE_TREECTRL" != "yes"; then
44778 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44779echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44780 else
44781 cat >>confdefs.h <<\_ACEOF
44782#define wxUSE_DIRDLG 1
44783_ACEOF
44784
44785 fi
44786fi
44787
44788if test "$wxUSE_MSGDLG" = "yes"; then
44789 cat >>confdefs.h <<\_ACEOF
44790#define wxUSE_MSGDLG 1
44791_ACEOF
44792
44793fi
44794
44795if test "$wxUSE_NUMBERDLG" = "yes"; then
44796 cat >>confdefs.h <<\_ACEOF
44797#define wxUSE_NUMBERDLG 1
44798_ACEOF
44799
44800fi
44801
44802if test "$wxUSE_PROGRESSDLG" = "yes"; then
44803 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44804 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44805echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44806 else
44807 cat >>confdefs.h <<\_ACEOF
44808#define wxUSE_PROGRESSDLG 1
44809_ACEOF
44810
44811 fi
44812fi
44813
44814if test "$wxUSE_SPLASH" = "yes"; then
44815 cat >>confdefs.h <<\_ACEOF
44816#define wxUSE_SPLASH 1
44817_ACEOF
44818
2057db16 44819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
44820fi
44821
44822if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44823 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44824 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44825echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44826 else
44827 cat >>confdefs.h <<\_ACEOF
44828#define wxUSE_STARTUP_TIPS 1
44829_ACEOF
44830
44831 fi
44832fi
44833
44834if test "$wxUSE_TEXTDLG" = "yes"; then
44835 cat >>confdefs.h <<\_ACEOF
44836#define wxUSE_TEXTDLG 1
44837_ACEOF
44838
44839fi
44840
44841if test "$wxUSE_WIZARDDLG" = "yes"; then
44842 cat >>confdefs.h <<\_ACEOF
44843#define wxUSE_WIZARDDLG 1
44844_ACEOF
44845
44846 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44847fi
44848
44849
f10e38c4
VZ
44850USE_MEDIA=0
44851
ce756cb0 44852if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
44853 if test "$wxUSE_GTK" = 1; then
44854 wxUSE_GSTREAMER="yes"
44855
f10e38c4
VZ
44856 GST_VERSION_MAJOR=0
44857 GST_VERSION_MINOR=10
44858 GST_VERSION_RELEASE=0
44859 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44860 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
44861
44862 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 44863
dae87f93 44864 succeeded=no
ce756cb0 44865
dae87f93
RN
44866 if test -z "$PKG_CONFIG"; then
44867 # Extract the first word of "pkg-config", so it can be a program name with args.
44868set dummy pkg-config; ac_word=$2
44869echo "$as_me:$LINENO: checking for $ac_word" >&5
44870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44871if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44872 echo $ECHO_N "(cached) $ECHO_C" >&6
44873else
44874 case $PKG_CONFIG in
44875 [\\/]* | ?:[\\/]*)
44876 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44877 ;;
44878 *)
44879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44880for as_dir in $PATH
44881do
44882 IFS=$as_save_IFS
44883 test -z "$as_dir" && as_dir=.
44884 for ac_exec_ext in '' $ac_executable_extensions; do
44885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44886 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44888 break 2
44889 fi
44890done
44891done
44892
44893 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44894 ;;
44895esac
44896fi
44897PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44898
44899if test -n "$PKG_CONFIG"; then
44900 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44901echo "${ECHO_T}$PKG_CONFIG" >&6
44902else
44903 echo "$as_me:$LINENO: result: no" >&5
44904echo "${ECHO_T}no" >&6
44905fi
44906
44907 fi
44908
44909 if test "$PKG_CONFIG" = "no" ; then
44910 echo "*** The pkg-config script could not be found. Make sure it is"
44911 echo "*** in your path, or set the PKG_CONFIG environment variable"
44912 echo "*** to the full path to pkg-config."
44913 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44914 else
44915 PKG_CONFIG_MIN_VERSION=0.9.0
44916 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
f10e38c4
VZ
44917 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44918 gstreamer-plugins-base-$GST_MAJORMINOR
44919 gconf-2.0" >&5
44920echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44921 gstreamer-plugins-base-$GST_MAJORMINOR
44922 gconf-2.0... $ECHO_C" >&6
44923
44924 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44925 gstreamer-plugins-base-$GST_MAJORMINOR
44926 gconf-2.0" ; then
dae87f93 44927 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44928echo "${ECHO_T}yes" >&6
dae87f93 44929 succeeded=yes
ce756cb0 44930
f10e38c4
VZ
44931 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44932echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44933 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44934 gstreamer-plugins-base-$GST_MAJORMINOR
44935 gconf-2.0"`
44936 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44937echo "${ECHO_T}$GST_CFLAGS" >&6
44938
44939 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44940echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44941 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44942 gstreamer-plugins-base-$GST_MAJORMINOR
44943 gconf-2.0"`
44944 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44945echo "${ECHO_T}$GST_LIBS" >&6
dae87f93 44946 else
f10e38c4
VZ
44947 GST_CFLAGS=""
44948 GST_LIBS=""
dae87f93
RN
44949 ## If we have a custom action on failure, don't print errors, but
44950 ## do set a variable so people can do so.
f10e38c4
VZ
44951 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44952 gstreamer-plugins-base-$GST_MAJORMINOR
44953 gconf-2.0"`
ce756cb0 44954
dae87f93
RN
44955 fi
44956
44957
44958
44959 else
44960 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44961 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44962 fi
44963 fi
44964
44965 if test $succeeded = yes; then
44966
f10e38c4
VZ
44967 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44968 LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR"
ce756cb0 44969
ce756cb0 44970 else
dae87f93 44971
f10e38c4 44972 GST_VERSION_MINOR=8
dae87f93
RN
44973
44974 fi
44975
f10e38c4
VZ
44976 else
44977 GST_VERSION_MINOR=8
44978 fi
dae87f93 44979
f10e38c4
VZ
44980 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44981 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 44982
f10e38c4 44983 if test x$GST_VERSION_MINOR = x8; then
dae87f93 44984
f10e38c4 44985 succeeded=no
dae87f93 44986
f10e38c4
VZ
44987 if test -z "$PKG_CONFIG"; then
44988 # Extract the first word of "pkg-config", so it can be a program name with args.
44989set dummy pkg-config; ac_word=$2
dae87f93
RN
44990echo "$as_me:$LINENO: checking for $ac_word" >&5
44991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f10e38c4 44992if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
dae87f93
RN
44993 echo $ECHO_N "(cached) $ECHO_C" >&6
44994else
f10e38c4
VZ
44995 case $PKG_CONFIG in
44996 [\\/]* | ?:[\\/]*)
44997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44998 ;;
44999 *)
45000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dae87f93
RN
45001for as_dir in $PATH
45002do
45003 IFS=$as_save_IFS
45004 test -z "$as_dir" && as_dir=.
45005 for ac_exec_ext in '' $ac_executable_extensions; do
45006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f10e38c4 45007 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
dae87f93
RN
45008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45009 break 2
ce756cb0 45010 fi
dae87f93
RN
45011done
45012done
45013
f10e38c4
VZ
45014 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
45015 ;;
45016esac
dae87f93 45017fi
f10e38c4
VZ
45018PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45019
45020if test -n "$PKG_CONFIG"; then
45021 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45022echo "${ECHO_T}$PKG_CONFIG" >&6
dae87f93
RN
45023else
45024 echo "$as_me:$LINENO: result: no" >&5
45025echo "${ECHO_T}no" >&6
45026fi
45027
f10e38c4 45028 fi
ce756cb0 45029
f10e38c4
VZ
45030 if test "$PKG_CONFIG" = "no" ; then
45031 echo "*** The pkg-config script could not be found. Make sure it is"
45032 echo "*** in your path, or set the PKG_CONFIG environment variable"
45033 echo "*** to the full path to pkg-config."
45034 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
45035 else
45036 PKG_CONFIG_MIN_VERSION=0.9.0
45037 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
45038 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
45039 gstreamer-interfaces-$GST_MAJORMINOR
45040 gstreamer-gconf-$GST_MAJORMINOR" >&5
45041echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
45042 gstreamer-interfaces-$GST_MAJORMINOR
45043 gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6
45044
45045 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
45046 gstreamer-interfaces-$GST_MAJORMINOR
45047 gstreamer-gconf-$GST_MAJORMINOR" ; then
45048 echo "$as_me:$LINENO: result: yes" >&5
45049echo "${ECHO_T}yes" >&6
45050 succeeded=yes
dae87f93 45051
f10e38c4
VZ
45052 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
45053echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
45054 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
45055 gstreamer-interfaces-$GST_MAJORMINOR
45056 gstreamer-gconf-$GST_MAJORMINOR"`
45057 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
45058echo "${ECHO_T}$GST_CFLAGS" >&6
45059
45060 echo "$as_me:$LINENO: checking GST_LIBS" >&5
45061echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
45062 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
45063 gstreamer-interfaces-$GST_MAJORMINOR
45064 gstreamer-gconf-$GST_MAJORMINOR"`
45065 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
45066echo "${ECHO_T}$GST_LIBS" >&6
45067 else
45068 GST_CFLAGS=""
45069 GST_LIBS=""
45070 ## If we have a custom action on failure, don't print errors, but
45071 ## do set a variable so people can do so.
45072 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
45073 gstreamer-interfaces-$GST_MAJORMINOR
45074 gstreamer-gconf-$GST_MAJORMINOR"`
dae87f93 45075
dae87f93
RN
45076 fi
45077
45078
ce756cb0 45079
f10e38c4
VZ
45080 else
45081 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
45082 echo "*** See http://www.freedesktop.org/software/pkgconfig"
45083 fi
45084 fi
ce756cb0 45085
f10e38c4 45086 if test $succeeded = yes; then
dae87f93 45087
f10e38c4
VZ
45088 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45089 LIBS="$LIBS $GST_LIBS"
dae87f93 45090
f10e38c4 45091 else
ce756cb0 45092
f10e38c4
VZ
45093 { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5
45094echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;}
45095 wxUSE_GSTREAMER="no"
ce756cb0 45096
f10e38c4 45097 fi
ce756cb0 45098
dae87f93 45099 fi
ce756cb0 45100
f10e38c4 45101
dae87f93
RN
45102 if test "$wxUSE_GSTREAMER" = "yes"; then
45103 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45104#define wxUSE_GSTREAMER 1
45105_ACEOF
45106
dae87f93
RN
45107 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
45108echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
45109 fi
45110 fi
f10e38c4 45111 USE_MEDIA=1
ce756cb0
RN
45112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45113 cat >>confdefs.h <<\_ACEOF
45114#define wxUSE_MEDIACTRL 1
45115_ACEOF
45116
45117fi
45118
45119
a848cd7e
SC
45120if test "$cross_compiling" = "yes"; then
45121 OSINFO="\"$host\""
45122else
45123 OSINFO=`uname -s -r -m`
45124 OSINFO="\"$OSINFO\""
45125fi
45126
45127cat >>confdefs.h <<_ACEOF
45128#define WXWIN_OS_DESCRIPTION $OSINFO
45129_ACEOF
45130
45131
45132
45133if test "x$prefix" != "xNONE"; then
45134 wxPREFIX=$prefix
45135else
45136 wxPREFIX=$ac_default_prefix
45137fi
45138
45139cat >>confdefs.h <<_ACEOF
45140#define wxINSTALL_PREFIX "$wxPREFIX"
45141_ACEOF
45142
45143
a848cd7e
SC
45144
45145
45146CORE_BASE_LIBS="net base"
45147CORE_GUI_LIBS="adv core"
45148
45149if test "$wxUSE_XML" = "yes" ; then
45150 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45151fi
45152if test "$wxUSE_ODBC" != "no" ; then
45153 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45154 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45155fi
45156if test "$wxUSE_HTML" = "yes" ; then
45157 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45158fi
61639efb
VZ
45159if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45160 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45161fi
9a8f0513
VS
45162if test "$wxUSE_XRC" = "yes" ; then
45163 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45164fi
a848cd7e
SC
45165
45166if test "$wxUSE_GUI" != "yes"; then
45167 CORE_GUI_LIBS=""
45168fi
45169
45170
45171
45172
45173
5d7b7554
VZ
45174ac_ext=c
45175ac_cpp='$CPP $CPPFLAGS'
45176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45178ac_compiler_gnu=$ac_cv_c_compiler_gnu
45179
a848cd7e
SC
45180
45181
a848cd7e 45182if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 45183 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
45184 if test "$USE_DARWIN" = 1; then
45185 LDFLAGS="$LDFLAGS -framework QuickTime"
45186 else
45187 LDFLAGS="$LDFLAGS -lQuickTimeLib"
45188 fi
07bea8f0 45189 fi
5dcf30a0 45190 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
45191 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45192 else
45193 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 45194 fi
a848cd7e
SC
45195fi
45196if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 45197 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
45198 if test "$wxUSE_MEDIACTRL" = "yes"; then
45199 LDFLAGS="$LDFLAGS -framework QuickTime"
45200 fi
a848cd7e 45201fi
19b27e78
MW
45202if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45203 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45204fi
a848cd7e 45205
a848cd7e
SC
45206LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45207
a848cd7e
SC
45208if test "$wxUSE_GUI" = "yes"; then
45209
45210
8bce5cda
MW
45211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45212 dynamic erase event exec font image minimal mobile \
45213 mobile/wxedit mobile/styles propsize render \
9e39d889 45214 rotate shaped vscroll widgets"
a848cd7e
SC
45215
45216 if test "$wxUSE_MONOLITHIC" != "yes"; then
45217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45218 fi
0b78747f 45219 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45221 if test "$wxUSE_UNIVERSAL" != "yes"; then
45222 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45223 fi
45224 fi
45225 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45226 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45227 fi
a848cd7e
SC
45228else
45229 SAMPLES_SUBDIRS="console"
45230fi
45231
45232
48f625bc 45233if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45234 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45235elif test "$GCC" = yes ; then
45236 CWARNINGS="-Wall -Wundef"
45237fi
45238
48f625bc 45239if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45240 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45241elif test "$GXX" = yes ; then
45242 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45243fi
a848cd7e 45244
a848cd7e 45245
5ff751d6
VZ
45246WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45247WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45248
45249
c92ad099 45250CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45251 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45252 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45253 $CPPFLAGS `
5ff751d6 45254
8aeeb05c 45255C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45256CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45257CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45258
45259WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45260
a848cd7e 45261
95986553
DE
45262if test "x$MWCC" = "xyes"; then
45263
45264 CC="$CC -cwd source -I-"
45265 CXX="$CXX -cwd source -I-"
45266fi
45267
a848cd7e 45268
0c3c69fc 45269LIBS=`echo $LIBS`
a848cd7e
SC
45270EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45271EXTRALIBS_XML="$EXPAT_LINK"
45272EXTRALIBS_HTML="$MSPACK_LINK"
45273EXTRALIBS_ODBC="$ODBC_LINK"
45274if test "$wxUSE_GUI" = "yes"; then
2b850ae1 45275 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45276fi
45277if test "$wxUSE_OPENGL" = "yes"; then
45278 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45279fi
45280
8aeeb05c 45281LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45282
5ff751d6 45283WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45284
45285if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45286 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45287fi
45288if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45289 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45290fi
45291if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45292 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45293fi
45294if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45295 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45296fi
45297if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45298 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45299fi
45300if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45301 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45302fi
45303if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45304 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45305fi
45306
45307for i in $wxconfig_3rdparty ; do
5ff751d6 45308 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45309done
45310
45311
45312if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45313 WXUNIV=1
45314else
45315 WXUNIV=0
45316fi
45317
45318
45319
45320
45321
45322
45323
45324
45325
45326if test $wxUSE_MONOLITHIC = "yes" ; then
45327 MONOLITHIC=1
45328else
45329 MONOLITHIC=0
45330fi
45331
45332if test $wxUSE_PLUGINS = "yes" ; then
45333 USE_PLUGINS=1
45334else
45335 USE_PLUGINS=0
45336fi
45337
45338if test $wxUSE_ODBC != "no" ; then
45339 USE_ODBC=1
45340else
45341 USE_ODBC=0
45342fi
45343
16358932
VZ
45344if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45345 USE_QA=1
45346else
45347 USE_QA=0
45348fi
45349
a848cd7e
SC
45350if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45351 OFFICIAL_BUILD=1
45352else
45353 OFFICIAL_BUILD=0
45354fi
45355
45356
45357
45358
45359
45360
45361
45362
45363
45364
45365
45366
45367
45368
45369
45370
45371
45372
45373
ceec2216 45374
d1c38808 45375
3565d135 45376
2b850ae1 45377
a848cd7e
SC
45378
45379
45380TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45381
45382
45383
45384
45385
45386
45387
45388
4d4ff94c
VZ
45389case "$TOOLKIT" in
45390 GTK)
45391 TOOLKIT_USER="GTK+"
45392 if test "$WXGTK20" = 1; then
45393 TOOLKIT_USER="$TOOLKIT_USER 2"
45394 fi
9a8f0513 45395 ;;
4d4ff94c
VZ
45396
45397 *)
45398 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45399 ;;
4d4ff94c 45400esac
a848cd7e 45401
fb00f58d
JS
45402if test "$wxUSE_WINE" = "yes"; then
45403 BAKEFILE_FORCE_PLATFORM=win32
45404fi
45405
7afc46ab
KO
45406if test "$wxUSE_MAC" = 1 ; then
45407 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
45408 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
45409 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
45410 LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
45411 bk_use_pch=no
45412 fi
45413 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45414 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45415 # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
45416fi
45417
9a8f0513 45418
1e9e8aba
DE
45419
45420
a848cd7e 45421 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45422 if test "x${host}" = "x" ; then
45423 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45424echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45425 { (exit 1); exit 1; }; }
45426 fi
45427
a848cd7e
SC
45428 BAKEFILE_HOST="${host}"
45429 fi
45430
45431 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45432
45433 if test -n "$ac_tool_prefix"; then
45434 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45435set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45436echo "$as_me:$LINENO: checking for $ac_word" >&5
45437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45438if test "${ac_cv_prog_RANLIB+set}" = set; then
45439 echo $ECHO_N "(cached) $ECHO_C" >&6
45440else
45441 if test -n "$RANLIB"; then
45442 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45443else
45444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45445for as_dir in $PATH
45446do
45447 IFS=$as_save_IFS
45448 test -z "$as_dir" && as_dir=.
45449 for ac_exec_ext in '' $ac_executable_extensions; do
45450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45451 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45453 break 2
45454 fi
45455done
45456done
45457
45458fi
45459fi
45460RANLIB=$ac_cv_prog_RANLIB
45461if test -n "$RANLIB"; then
45462 echo "$as_me:$LINENO: result: $RANLIB" >&5
45463echo "${ECHO_T}$RANLIB" >&6
45464else
45465 echo "$as_me:$LINENO: result: no" >&5
45466echo "${ECHO_T}no" >&6
45467fi
45468
45469fi
45470if test -z "$ac_cv_prog_RANLIB"; then
45471 ac_ct_RANLIB=$RANLIB
45472 # Extract the first word of "ranlib", so it can be a program name with args.
45473set dummy ranlib; ac_word=$2
45474echo "$as_me:$LINENO: checking for $ac_word" >&5
45475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45476if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45477 echo $ECHO_N "(cached) $ECHO_C" >&6
45478else
45479 if test -n "$ac_ct_RANLIB"; then
45480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45481else
45482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45483for as_dir in $PATH
45484do
45485 IFS=$as_save_IFS
45486 test -z "$as_dir" && as_dir=.
45487 for ac_exec_ext in '' $ac_executable_extensions; do
45488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45489 ac_cv_prog_ac_ct_RANLIB="ranlib"
45490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45491 break 2
45492 fi
45493done
45494done
45495
45496 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45497fi
45498fi
45499ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45500if test -n "$ac_ct_RANLIB"; then
45501 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45502echo "${ECHO_T}$ac_ct_RANLIB" >&6
45503else
45504 echo "$as_me:$LINENO: result: no" >&5
45505echo "${ECHO_T}no" >&6
45506fi
45507
45508 RANLIB=$ac_ct_RANLIB
45509else
45510 RANLIB="$ac_cv_prog_RANLIB"
45511fi
45512
45513 # Find a good install program. We prefer a C program (faster),
45514# so one script is as good as another. But avoid the broken or
45515# incompatible versions:
45516# SysV /etc/install, /usr/sbin/install
45517# SunOS /usr/etc/install
45518# IRIX /sbin/install
45519# AIX /bin/install
45520# AmigaOS /C/install, which installs bootblocks on floppy discs
45521# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45522# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45523# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45524# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45525# ./install, which can be erroneously created by make from ./install.sh.
45526echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45527echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45528if test -z "$INSTALL"; then
45529if test "${ac_cv_path_install+set}" = set; then
45530 echo $ECHO_N "(cached) $ECHO_C" >&6
45531else
45532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45533for as_dir in $PATH
45534do
45535 IFS=$as_save_IFS
45536 test -z "$as_dir" && as_dir=.
45537 # Account for people who put trailing slashes in PATH elements.
45538case $as_dir/ in
45539 ./ | .// | /cC/* | \
45540 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45541 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45542 /usr/ucb/* ) ;;
45543 *)
45544 # OSF1 and SCO ODT 3.0 have their own names for install.
45545 # Don't use installbsd from OSF since it installs stuff as root
45546 # by default.
45547 for ac_prog in ginstall scoinst install; do
45548 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45549 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45550 if test $ac_prog = install &&
45551 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45552 # AIX install. It has an incompatible calling convention.
45553 :
45554 elif test $ac_prog = install &&
45555 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45556 # program-specific install script used by HP pwplus--don't use.
45557 :
45558 else
45559 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45560 break 3
45561 fi
45562 fi
a848cd7e
SC
45563 done
45564 done
45565 ;;
45566esac
45567done
45568
45569
45570fi
45571 if test "${ac_cv_path_install+set}" = set; then
45572 INSTALL=$ac_cv_path_install
45573 else
45574 # As a last resort, use the slow shell script. We don't cache a
45575 # path for INSTALL within a source directory, because that will
45576 # break other packages using the cache if that directory is
45577 # removed, or if the path is relative.
45578 INSTALL=$ac_install_sh
45579 fi
45580fi
45581echo "$as_me:$LINENO: result: $INSTALL" >&5
45582echo "${ECHO_T}$INSTALL" >&6
45583
45584# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45585# It thinks the first close brace ends the variable substitution.
45586test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45587
45588test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45589
45590test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45591
45592 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45593echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45594LN_S=$as_ln_s
45595if test "$LN_S" = "ln -s"; then
45596 echo "$as_me:$LINENO: result: yes" >&5
45597echo "${ECHO_T}yes" >&6
45598else
45599 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45600echo "${ECHO_T}no, using $LN_S" >&6
45601fi
45602
45603
45604 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45605echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45606set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45607if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45608 echo $ECHO_N "(cached) $ECHO_C" >&6
45609else
45610 cat >conftest.make <<\_ACEOF
45611all:
45612 @echo 'ac_maketemp="$(MAKE)"'
45613_ACEOF
45614# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45615eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45616if test -n "$ac_maketemp"; then
45617 eval ac_cv_prog_make_${ac_make}_set=yes
45618else
45619 eval ac_cv_prog_make_${ac_make}_set=no
45620fi
45621rm -f conftest.make
45622fi
45623if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45624 echo "$as_me:$LINENO: result: yes" >&5
45625echo "${ECHO_T}yes" >&6
45626 SET_MAKE=
45627else
45628 echo "$as_me:$LINENO: result: no" >&5
45629echo "${ECHO_T}no" >&6
45630 SET_MAKE="MAKE=${MAKE-make}"
45631fi
45632
45633
45634
45635 if test -n "$ac_tool_prefix"; then
45636 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45637set dummy ${ac_tool_prefix}ar; ac_word=$2
45638echo "$as_me:$LINENO: checking for $ac_word" >&5
45639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45640if test "${ac_cv_prog_AR+set}" = set; then
45641 echo $ECHO_N "(cached) $ECHO_C" >&6
45642else
45643 if test -n "$AR"; then
45644 ac_cv_prog_AR="$AR" # Let the user override the test.
45645else
45646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45647for as_dir in $PATH
45648do
45649 IFS=$as_save_IFS
45650 test -z "$as_dir" && as_dir=.
45651 for ac_exec_ext in '' $ac_executable_extensions; do
45652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45653 ac_cv_prog_AR="${ac_tool_prefix}ar"
45654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45655 break 2
45656 fi
45657done
45658done
45659
45660fi
45661fi
45662AR=$ac_cv_prog_AR
45663if test -n "$AR"; then
45664 echo "$as_me:$LINENO: result: $AR" >&5
45665echo "${ECHO_T}$AR" >&6
45666else
45667 echo "$as_me:$LINENO: result: no" >&5
45668echo "${ECHO_T}no" >&6
45669fi
45670
45671fi
45672if test -z "$ac_cv_prog_AR"; then
45673 ac_ct_AR=$AR
45674 # Extract the first word of "ar", so it can be a program name with args.
45675set dummy ar; ac_word=$2
45676echo "$as_me:$LINENO: checking for $ac_word" >&5
45677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45678if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45679 echo $ECHO_N "(cached) $ECHO_C" >&6
45680else
45681 if test -n "$ac_ct_AR"; then
45682 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45683else
45684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45685for as_dir in $PATH
45686do
45687 IFS=$as_save_IFS
45688 test -z "$as_dir" && as_dir=.
45689 for ac_exec_ext in '' $ac_executable_extensions; do
45690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45691 ac_cv_prog_ac_ct_AR="ar"
45692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45693 break 2
45694 fi
45695done
45696done
45697
45698 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45699fi
45700fi
45701ac_ct_AR=$ac_cv_prog_ac_ct_AR
45702if test -n "$ac_ct_AR"; then
45703 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45704echo "${ECHO_T}$ac_ct_AR" >&6
45705else
45706 echo "$as_me:$LINENO: result: no" >&5
45707echo "${ECHO_T}no" >&6
45708fi
45709
45710 AR=$ac_ct_AR
45711else
45712 AR="$ac_cv_prog_AR"
45713fi
45714
45715 if test -n "$ac_tool_prefix"; then
45716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45717set dummy ${ac_tool_prefix}strip; ac_word=$2
45718echo "$as_me:$LINENO: checking for $ac_word" >&5
45719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45720if test "${ac_cv_prog_STRIP+set}" = set; then
45721 echo $ECHO_N "(cached) $ECHO_C" >&6
45722else
45723 if test -n "$STRIP"; then
45724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45725else
45726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45727for as_dir in $PATH
45728do
45729 IFS=$as_save_IFS
45730 test -z "$as_dir" && as_dir=.
45731 for ac_exec_ext in '' $ac_executable_extensions; do
45732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45735 break 2
45736 fi
45737done
45738done
45739
45740fi
45741fi
45742STRIP=$ac_cv_prog_STRIP
45743if test -n "$STRIP"; then
45744 echo "$as_me:$LINENO: result: $STRIP" >&5
45745echo "${ECHO_T}$STRIP" >&6
45746else
45747 echo "$as_me:$LINENO: result: no" >&5
45748echo "${ECHO_T}no" >&6
45749fi
45750
45751fi
45752if test -z "$ac_cv_prog_STRIP"; then
45753 ac_ct_STRIP=$STRIP
45754 # Extract the first word of "strip", so it can be a program name with args.
45755set dummy strip; ac_word=$2
45756echo "$as_me:$LINENO: checking for $ac_word" >&5
45757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45758if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45759 echo $ECHO_N "(cached) $ECHO_C" >&6
45760else
45761 if test -n "$ac_ct_STRIP"; then
45762 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45763else
45764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45765for as_dir in $PATH
45766do
45767 IFS=$as_save_IFS
45768 test -z "$as_dir" && as_dir=.
45769 for ac_exec_ext in '' $ac_executable_extensions; do
45770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45771 ac_cv_prog_ac_ct_STRIP="strip"
45772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45773 break 2
45774 fi
45775done
45776done
45777
45778 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45779fi
45780fi
45781ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45782if test -n "$ac_ct_STRIP"; then
45783 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45784echo "${ECHO_T}$ac_ct_STRIP" >&6
45785else
45786 echo "$as_me:$LINENO: result: no" >&5
45787echo "${ECHO_T}no" >&6
45788fi
45789
45790 STRIP=$ac_ct_STRIP
45791else
45792 STRIP="$ac_cv_prog_STRIP"
45793fi
45794
45795 if test -n "$ac_tool_prefix"; then
45796 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45797set dummy ${ac_tool_prefix}nm; ac_word=$2
45798echo "$as_me:$LINENO: checking for $ac_word" >&5
45799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45800if test "${ac_cv_prog_NM+set}" = set; then
45801 echo $ECHO_N "(cached) $ECHO_C" >&6
45802else
45803 if test -n "$NM"; then
45804 ac_cv_prog_NM="$NM" # Let the user override the test.
45805else
45806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45807for as_dir in $PATH
45808do
45809 IFS=$as_save_IFS
45810 test -z "$as_dir" && as_dir=.
45811 for ac_exec_ext in '' $ac_executable_extensions; do
45812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45813 ac_cv_prog_NM="${ac_tool_prefix}nm"
45814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45815 break 2
45816 fi
45817done
45818done
45819
45820fi
45821fi
45822NM=$ac_cv_prog_NM
45823if test -n "$NM"; then
45824 echo "$as_me:$LINENO: result: $NM" >&5
45825echo "${ECHO_T}$NM" >&6
45826else
45827 echo "$as_me:$LINENO: result: no" >&5
45828echo "${ECHO_T}no" >&6
45829fi
45830
45831fi
45832if test -z "$ac_cv_prog_NM"; then
45833 ac_ct_NM=$NM
45834 # Extract the first word of "nm", so it can be a program name with args.
45835set dummy nm; ac_word=$2
45836echo "$as_me:$LINENO: checking for $ac_word" >&5
45837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45838if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45839 echo $ECHO_N "(cached) $ECHO_C" >&6
45840else
45841 if test -n "$ac_ct_NM"; then
45842 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45843else
45844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45845for as_dir in $PATH
45846do
45847 IFS=$as_save_IFS
45848 test -z "$as_dir" && as_dir=.
45849 for ac_exec_ext in '' $ac_executable_extensions; do
45850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45851 ac_cv_prog_ac_ct_NM="nm"
45852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45853 break 2
45854 fi
45855done
45856done
45857
45858 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45859fi
45860fi
45861ac_ct_NM=$ac_cv_prog_ac_ct_NM
45862if test -n "$ac_ct_NM"; then
45863 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45864echo "${ECHO_T}$ac_ct_NM" >&6
45865else
45866 echo "$as_me:$LINENO: result: no" >&5
45867echo "${ECHO_T}no" >&6
45868fi
45869
45870 NM=$ac_ct_NM
45871else
45872 NM="$ac_cv_prog_NM"
45873fi
45874
45875
45876 case ${BAKEFILE_HOST} in
45877 *-hp-hpux* )
1e9e8aba 45878 INSTALL_DIR="mkdir -p"
a848cd7e
SC
45879 ;;
45880 *) INSTALL_DIR="$INSTALL -d"
45881 ;;
45882 esac
45883
45884
45885 LDFLAGS_GUI=
45886 case ${BAKEFILE_HOST} in
45887 *-*-cygwin* | *-*-mingw32* )
45888 LDFLAGS_GUI="-mwindows"
45889 esac
45890
45891
45892 fi
45893
45894 echo "$as_me:$LINENO: checking if make is GNU make" >&5
45895echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45896if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45897 echo $ECHO_N "(cached) $ECHO_C" >&6
45898else
45899
45900 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45901 egrep -s GNU > /dev/null); then
45902 bakefile_cv_prog_makeisgnu="yes"
45903 else
45904 bakefile_cv_prog_makeisgnu="no"
45905 fi
45906
45907fi
45908echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45909echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45910
45911 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45912 IF_GNU_MAKE=""
45913 else
45914 IF_GNU_MAKE="#"
45915 fi
45916
45917
45918
45919 PLATFORM_UNIX=0
45920 PLATFORM_WIN32=0
45921 PLATFORM_MSDOS=0
45922 PLATFORM_MAC=0
1e9e8aba 45923 PLATFORM_MACOS=0
a848cd7e
SC
45924 PLATFORM_MACOSX=0
45925 PLATFORM_OS2=0
1e9e8aba 45926 PLATFORM_BEOS=0
a848cd7e
SC
45927
45928 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45929 case "${BAKEFILE_HOST}" in
810b94f0 45930 *-*-mingw32* )
a848cd7e
SC
45931 PLATFORM_WIN32=1
45932 ;;
45933 *-pc-msdosdjgpp )
45934 PLATFORM_MSDOS=1
45935 ;;
45936 *-pc-os2_emx | *-pc-os2-emx )
45937 PLATFORM_OS2=1
45938 ;;
47bd5406 45939 *-*-darwin* )
a848cd7e
SC
45940 PLATFORM_MAC=1
45941 PLATFORM_MACOSX=1
45942 ;;
1e9e8aba
DE
45943 *-*-beos* )
45944 PLATFORM_BEOS=1
45945 ;;
45946 powerpc-apple-macos* )
45947 PLATFORM_MAC=1
45948 PLATFORM_MACOS=1
45949 ;;
a848cd7e
SC
45950 * )
45951 PLATFORM_UNIX=1
45952 ;;
45953 esac
45954 else
45955 case "$BAKEFILE_FORCE_PLATFORM" in
45956 win32 )
45957 PLATFORM_WIN32=1
45958 ;;
45959 msdos )
45960 PLATFORM_MSDOS=1
45961 ;;
45962 os2 )
45963 PLATFORM_OS2=1
45964 ;;
45965 darwin )
45966 PLATFORM_MAC=1
45967 PLATFORM_MACOSX=1
45968 ;;
45969 unix )
45970 PLATFORM_UNIX=1
45971 ;;
1e9e8aba
DE
45972 beos )
45973 PLATFORM_BEOS=1
45974 ;;
a848cd7e
SC
45975 * )
45976 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45977echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45978 { (exit 1); exit 1; }; }
45979 ;;
45980 esac
45981 fi
45982
45983
45984
45985
45986
45987
45988
45989
45990
1e9e8aba
DE
45991
45992
a848cd7e
SC
45993 # Check whether --enable-omf or --disable-omf was given.
45994if test "${enable_omf+set}" = set; then
45995 enableval="$enable_omf"
45996 bk_os2_use_omf="$enableval"
45997fi;
45998
45999 case "${BAKEFILE_HOST}" in
46000 *-*-darwin* )
47bd5406
VZ
46001 if test "x$GCC" = "xyes"; then
46002 CFLAGS="$CFLAGS -fno-common"
46003 CXXFLAGS="$CXXFLAGS -fno-common"
46004 fi
46005 if test "x$XLCC" = "xyes"; then
46006 CFLAGS="$CFLAGS -qnocommon"
46007 CXXFLAGS="$CXXFLAGS -qnocommon"
46008 fi
a848cd7e
SC
46009 ;;
46010
46011 *-pc-os2_emx | *-pc-os2-emx )
46012 if test "x$bk_os2_use_omf" = "xyes" ; then
46013 AR=emxomfar
46014 RANLIB=:
46015 LDFLAGS="-Zomf $LDFLAGS"
46016 CFLAGS="-Zomf $CFLAGS"
46017 CXXFLAGS="-Zomf $CXXFLAGS"
46018 OS2_LIBEXT="lib"
46019 else
46020 OS2_LIBEXT="a"
46021 fi
46022 ;;
1e9e8aba
DE
46023
46024 i*86-*-beos* )
46025 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46026 ;;
a848cd7e
SC
46027 esac
46028
46029
46030 SO_SUFFIX="so"
46031 SO_SUFFIX_MODULE="so"
46032 EXEEXT=""
46033 LIBPREFIX="lib"
46034 LIBEXT=".a"
46035 DLLPREFIX="lib"
46036 DLLPREFIX_MODULE=""
46037 DLLIMP_SUFFIX=""
810b94f0 46038 dlldir="$libdir"
a848cd7e
SC
46039
46040 case "${BAKEFILE_HOST}" in
46041 *-hp-hpux* )
46042 SO_SUFFIX="sl"
46043 SO_SUFFIX_MODULE="sl"
46044 ;;
46045 *-*-aix* )
46046 SO_SUFFIX="a"
46047 SO_SUFFIX_MODULE="a"
46048 ;;
810b94f0
MW
46049 *-*-cygwin* )
46050 SO_SUFFIX="dll"
46051 SO_SUFFIX_MODULE="dll"
46052 DLLIMP_SUFFIX="dll.a"
46053 EXEEXT=".exe"
46054 DLLPREFIX="cyg"
46055 dlldir="$bindir"
46056 ;;
46057 *-*-mingw32* )
a848cd7e
SC
46058 SO_SUFFIX="dll"
46059 SO_SUFFIX_MODULE="dll"
46060 DLLIMP_SUFFIX="dll.a"
46061 EXEEXT=".exe"
46062 DLLPREFIX=""
810b94f0 46063 dlldir="$bindir"
a848cd7e
SC
46064 ;;
46065 *-pc-msdosdjgpp )
46066 EXEEXT=".exe"
46067 DLLPREFIX=""
810b94f0 46068 dlldir="$bindir"
a848cd7e
SC
46069 ;;
46070 *-pc-os2_emx | *-pc-os2-emx )
46071 SO_SUFFIX="dll"
46072 SO_SUFFIX_MODULE="dll"
46073 DLLIMP_SUFFIX=$OS2_LIBEXT
46074 EXEEXT=".exe"
46075 DLLPREFIX=""
46076 LIBPREFIX=""
46077 LIBEXT=".$OS2_LIBEXT"
810b94f0 46078 dlldir="$bindir"
a848cd7e 46079 ;;
47bd5406 46080 *-*-darwin* )
a848cd7e
SC
46081 SO_SUFFIX="dylib"
46082 SO_SUFFIX_MODULE="bundle"
46083 ;;
46084 esac
46085
46086 if test "x$DLLIMP_SUFFIX" = "x" ; then
46087 DLLIMP_SUFFIX="$SO_SUFFIX"
46088 fi
46089
46090
46091
46092
46093
46094
46095
46096
46097
46098
46099
810b94f0 46100
1e9e8aba
DE
46101 PIC_FLAG=""
46102 if test "x$GCC" = "xyes"; then
a848cd7e
SC
46103 PIC_FLAG="-fPIC"
46104 fi
46105
1e9e8aba
DE
46106 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46107 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 46108 WINDOWS_IMPLIB=0
1e9e8aba 46109
a848cd7e
SC
46110 case "${BAKEFILE_HOST}" in
46111 *-hp-hpux* )
1e9e8aba 46112 if test "x$GCC" != "xyes"; then
a848cd7e
SC
46113 LDFLAGS="$LDFLAGS -L/usr/lib"
46114
46115 SHARED_LD_CC="${CC} -b -o"
46116 SHARED_LD_CXX="${CXX} -b -o"
46117 PIC_FLAG="+Z"
46118 fi
46119 ;;
46120
46121 *-*-linux* )
46122 if test "x$GCC" != "xyes"; then
46123 echo "$as_me:$LINENO: checking for Intel compiler" >&5
46124echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46125if test "${bakefile_cv_prog_icc+set}" = set; then
46126 echo $ECHO_N "(cached) $ECHO_C" >&6
46127else
46128
46129 cat >conftest.$ac_ext <<_ACEOF
46130/* confdefs.h. */
46131_ACEOF
46132cat confdefs.h >>conftest.$ac_ext
46133cat >>conftest.$ac_ext <<_ACEOF
46134/* end confdefs.h. */
46135
46136int
46137main ()
46138{
46139
46140 #ifndef __INTEL_COMPILER
e5efa97e 46141 This is not ICC
a848cd7e
SC
46142 #endif
46143
46144 ;
46145 return 0;
46146}
46147_ACEOF
46148rm -f conftest.$ac_objext
46149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46150 (eval $ac_compile) 2>conftest.er1
a848cd7e 46151 ac_status=$?
ac1cb8d3
VS
46152 grep -v '^ *+' conftest.er1 >conftest.err
46153 rm -f conftest.er1
46154 cat conftest.err >&5
a848cd7e
SC
46155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46156 (exit $ac_status); } &&
6954625c 46157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
46158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46159 (eval $ac_try) 2>&5
46160 ac_status=$?
46161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46162 (exit $ac_status); }; } &&
46163 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46165 (eval $ac_try) 2>&5
46166 ac_status=$?
46167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46168 (exit $ac_status); }; }; then
46169 bakefile_cv_prog_icc=yes
46170else
46171 echo "$as_me: failed program was:" >&5
46172sed 's/^/| /' conftest.$ac_ext >&5
46173
46174bakefile_cv_prog_icc=no
46175
46176fi
ac1cb8d3 46177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46178
46179fi
46180echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46181echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46182 if test "$bakefile_cv_prog_icc" = "yes"; then
46183 PIC_FLAG="-KPIC"
46184 fi
46185 fi
46186 ;;
46187
46188 *-*-solaris2* )
46189 if test "x$GCC" != xyes ; then
46190 SHARED_LD_CC="${CC} -G -o"
46191 SHARED_LD_CXX="${CXX} -G -o"
46192 PIC_FLAG="-KPIC"
46193 fi
46194 ;;
46195
46196 *-*-darwin* )
46197
473276a9
VS
46198D='$'
46199cat <<EOF >shared-ld-sh
a848cd7e
SC
46200#!/bin/sh
46201#-----------------------------------------------------------------------------
46202#-- Name: distrib/mac/shared-ld-sh
46203#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46204#-- Author: Gilles Depeyrot
46205#-- Copyright: (c) 2002 Gilles Depeyrot
46206#-- Licence: any use permitted
46207#-----------------------------------------------------------------------------
46208
46209verbose=0
46210args=""
46211objects=""
46212linking_flag="-dynamiclib"
810b94f0 46213ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46214
473276a9
VS
46215while test ${D}# -gt 0; do
46216 case ${D}1 in
a848cd7e
SC
46217
46218 -v)
46219 verbose=1
46220 ;;
46221
46222 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46223 # collect these options and values
473276a9 46224 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46225 shift
46226 ;;
46227
810b94f0
MW
46228 -s|-Wl,*)
46229 # collect these load args
46230 ldargs="${D}{ldargs} ${D}1"
2113bc77 46231 ;;
810b94f0
MW
46232
46233 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46234 # collect these options
473276a9 46235 args="${D}{args} ${D}1"
a848cd7e
SC
46236 ;;
46237
46238 -dynamiclib|-bundle)
473276a9 46239 linking_flag="${D}1"
a848cd7e
SC
46240 ;;
46241
46242 -*)
473276a9 46243 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46244 exit 1
46245 ;;
46246
46247 *.o | *.a | *.dylib)
46248 # collect object files
473276a9 46249 objects="${D}{objects} ${D}1"
a848cd7e
SC
46250 ;;
46251
46252 *)
473276a9 46253 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46254 exit 1
46255 ;;
46256
46257 esac
46258 shift
46259done
46260
810b94f0
MW
46261status=0
46262
a848cd7e
SC
46263#
46264# Link one module containing all the others
46265#
473276a9 46266if test ${D}{verbose} = 1; then
810b94f0 46267 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46268fi
810b94f0 46269c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46270status=${D}?
a848cd7e
SC
46271
46272#
810b94f0
MW
46273# Link the shared library from the single module created, but only if the
46274# previous command didn't fail:
a848cd7e 46275#
810b94f0
MW
46276if test ${D}{status} = 0; then
46277 if test ${D}{verbose} = 1; then
46278 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46279 fi
46280 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46281 status=${D}?
a848cd7e
SC
46282fi
46283
46284#
46285# Remove intermediate module
46286#
473276a9 46287rm -f master.${D}${D}.o
a848cd7e 46288
810b94f0 46289exit ${D}status
a848cd7e 46290EOF
473276a9 46291
583d6b4b
VZ
46292 chmod +x shared-ld-sh
46293
46294 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46295 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46296
46297
46298 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46299echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46300if test "${bakefile_cv_gcc31+set}" = set; then
46301 echo $ECHO_N "(cached) $ECHO_C" >&6
46302else
46303
46304 cat >conftest.$ac_ext <<_ACEOF
46305/* confdefs.h. */
46306_ACEOF
46307cat confdefs.h >>conftest.$ac_ext
46308cat >>conftest.$ac_ext <<_ACEOF
46309/* end confdefs.h. */
46310
46311int
46312main ()
46313{
46314
46315 #if (__GNUC__ < 3) || \
46316 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 46317 This is old gcc
583d6b4b 46318 #endif
a848cd7e 46319
583d6b4b
VZ
46320 ;
46321 return 0;
46322}
46323_ACEOF
46324rm -f conftest.$ac_objext
46325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46326 (eval $ac_compile) 2>conftest.er1
46327 ac_status=$?
46328 grep -v '^ *+' conftest.er1 >conftest.err
46329 rm -f conftest.er1
46330 cat conftest.err >&5
46331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46332 (exit $ac_status); } &&
6954625c 46333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
46334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46335 (eval $ac_try) 2>&5
46336 ac_status=$?
46337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46338 (exit $ac_status); }; } &&
46339 { ac_try='test -s conftest.$ac_objext'
46340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46341 (eval $ac_try) 2>&5
46342 ac_status=$?
46343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46344 (exit $ac_status); }; }; then
46345
46346 bakefile_cv_gcc31=yes
46347
46348else
46349 echo "$as_me: failed program was:" >&5
46350sed 's/^/| /' conftest.$ac_ext >&5
46351
46352
46353 bakefile_cv_gcc31=no
46354
46355
46356fi
46357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46358
46359fi
46360echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46361echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46362 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46363 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46364 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46365 else
46366 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46367 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46368 fi
46369
47bd5406
VZ
46370 if test "x$GCC" == "xyes"; then
46371 PIC_FLAG="-dynamic -fPIC"
46372 fi
46373 if test "x$XLCC" = "xyes"; then
46374 PIC_FLAG="-dynamic -DPIC"
46375 fi
a848cd7e
SC
46376 ;;
46377
46378 *-*-aix* )
f6b50c59 46379 if test "x$GCC" = "xyes"; then
583d6b4b 46380 PIC_FLAG=""
f6b50c59 46381
583d6b4b
VZ
46382 case "${BAKEFILE_HOST}" in
46383 *-*-aix5* )
46384 LD_EXPFULL="-Wl,-bexpfull"
46385 ;;
46386 esac
f6b50c59 46387
583d6b4b
VZ
46388 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46389 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46390 else
46391 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46392set dummy makeC++SharedLib; ac_word=$2
46393echo "$as_me:$LINENO: checking for $ac_word" >&5
46394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46395if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46396 echo $ECHO_N "(cached) $ECHO_C" >&6
46397else
46398 if test -n "$AIX_CXX_LD"; then
46399 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46400else
46401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46402for as_dir in $PATH
46403do
46404 IFS=$as_save_IFS
46405 test -z "$as_dir" && as_dir=.
46406 for ac_exec_ext in '' $ac_executable_extensions; do
46407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46408 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46410 break 2
46411 fi
46412done
46413done
46414
46415 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46416fi
46417fi
46418AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46419if test -n "$AIX_CXX_LD"; then
46420 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46421echo "${ECHO_T}$AIX_CXX_LD" >&6
46422else
46423 echo "$as_me:$LINENO: result: no" >&5
46424echo "${ECHO_T}no" >&6
46425fi
46426
f6b50c59 46427 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46428 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46429 fi
46430 ;;
46431
46432 *-*-beos* )
1e9e8aba
DE
46433 SHARED_LD_CC="${LD} -nostart -o"
46434 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46435 ;;
46436
46437 *-*-irix* )
46438 if test "x$GCC" != "xyes"; then
46439 PIC_FLAG="-KPIC"
46440 fi
46441 ;;
46442
46443 *-*-cygwin* | *-*-mingw32* )
46444 PIC_FLAG=""
1e9e8aba
DE
46445 SHARED_LD_CC="\$(CC) -shared -o"
46446 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46447 WINDOWS_IMPLIB=1
a848cd7e
SC
46448 ;;
46449
46450 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46451 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46452 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46453 PIC_FLAG=""
473276a9
VS
46454
46455D='$'
46456cat <<EOF >dllar.sh
46457#!/bin/sh
46458#
46459# dllar - a tool to build both a .dll and an .a file
46460# from a set of object (.o) files for EMX/OS2.
46461#
46462# Written by Andrew Zabolotny, bit@freya.etu.ru
46463# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46464#
46465# This script will accept a set of files on the command line.
46466# All the public symbols from the .o files will be exported into
46467# a .DEF file, then linker will be run (through gcc) against them to
46468# build a shared library consisting of all given .o files. All libraries
46469# (.a) will be first decompressed into component .o files then act as
46470# described above. You can optionally give a description (-d "description")
46471# which will be put into .DLL. To see the list of accepted options (as well
46472# as command-line format) simply run this program without options. The .DLL
46473# is built to be imported by name (there is no guarantee that new versions
46474# of the library you build will have same ordinals for same symbols).
46475#
46476# dllar is free software; you can redistribute it and/or modify
46477# it under the terms of the GNU General Public License as published by
46478# the Free Software Foundation; either version 2, or (at your option)
46479# any later version.
46480#
46481# dllar is distributed in the hope that it will be useful,
46482# but WITHOUT ANY WARRANTY; without even the implied warranty of
46483# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46484# GNU General Public License for more details.
46485#
46486# You should have received a copy of the GNU General Public License
46487# along with dllar; see the file COPYING. If not, write to the Free
46488# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46489# 02111-1307, USA.
46490
46491# To successfuly run this program you will need:
46492# - Current drive should have LFN support (HPFS, ext2, network, etc)
46493# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46494# - gcc
46495# (used to build the .dll)
46496# - emxexp
46497# (used to create .def file from .o files)
46498# - emximp
46499# (used to create .a file from .def file)
46500# - GNU text utilites (cat, sort, uniq)
46501# used to process emxexp output
46502# - GNU file utilities (mv, rm)
46503# - GNU sed
46504# - lxlite (optional, see flag below)
46505# (used for general .dll cleanup)
46506#
46507
46508flag_USE_LXLITE=1;
46509
46510#
46511# helper functions
46512# basnam, variant of basename, which does _not_ remove the path, _iff_
46513# second argument (suffix to remove) is given
46514basnam(){
46515 case ${D}# in
46516 1)
1e9e8aba 46517 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46518 ;;
46519 2)
46520 echo ${D}1 | sed 's/'${D}2'${D}//'
46521 ;;
46522 *)
46523 echo "error in basnam ${D}*"
46524 exit 8
46525 ;;
46526 esac
46527}
46528
46529# Cleanup temporary files and output
46530CleanUp() {
46531 cd ${D}curDir
46532 for i in ${D}inputFiles ; do
46533 case ${D}i in
46534 *!)
46535 rm -rf \`basnam ${D}i !\`
46536 ;;
46537 *)
46538 ;;
46539 esac
46540 done
46541
46542 # Kill result in case of failure as there is just to many stupid make/nmake
46543 # things out there which doesn't do this.
1e9e8aba 46544 if [ ${D}# -eq 0 ]; then
473276a9
VS
46545 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46546 fi
46547}
46548
46549# Print usage and exit script with rc=1.
46550PrintHelp() {
b1d22ded
DE
46551 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46552 echo ' [-name-mangler-script script.sh]'
46553 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46554 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46555 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46556 echo ' [*.o] [*.a]'
473276a9
VS
46557 echo '*> "output_file" should have no extension.'
46558 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46559 echo ' The import library name is derived from this and is set to "name".a,'
46560 echo ' unless overridden by -import'
46561 echo '*> "importlib_name" should have no extension.'
46562 echo ' If it has the .o, or .a extension, it is automatically removed.'
46563 echo ' This name is used as the import library name and may be longer and'
46564 echo ' more descriptive than the DLL name which has to follow the old '
46565 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46566 echo '*> "script.sh may be given to override the output_file name by a'
46567 echo ' different name. It is mainly useful if the regular make process'
46568 echo ' of some package does not take into account OS/2 restriction of'
46569 echo ' DLL name lengths. It takes the importlib name as input and is'
46570 echo ' supposed to procude a shorter name as output. The script should'
46571 echo ' expect to get importlib_name without extension and should produce'
46572 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46573 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46574 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46575 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46576 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46577 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46578 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46579 echo ' If the last character of a symbol is "*", all symbols beginning'
46580 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46581 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46582 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46583 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46584 echo ' C runtime DLLs.'
b1d22ded 46585 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46586 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46587 echo ' unchanged to GCC at the end of command line.'
46588 echo '*> If you create a DLL from a library and you do not specify -o,'
46589 echo ' the basename for DLL and import library will be set to library name,'
46590 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46591 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46592 echo ' library will be renamed into gcc_s.a.'
46593 echo '--------'
46594 echo 'Example:'
46595 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46596 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46597 CleanUp
46598 exit 1
46599}
46600
46601# Execute a command.
46602# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46603# @Uses Whatever CleanUp() uses.
46604doCommand() {
46605 echo "${D}*"
46606 eval ${D}*
46607 rcCmd=${D}?
46608
1e9e8aba 46609 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46610 echo "command failed, exit code="${D}rcCmd
46611 CleanUp
46612 exit ${D}rcCmd
46613 fi
46614}
46615
46616# main routine
46617# setup globals
46618cmdLine=${D}*
46619outFile=""
46620outimpFile=""
46621inputFiles=""
b1d22ded 46622renameScript=""
473276a9
VS
46623description=""
46624CC=gcc.exe
46625CFLAGS="-s -Zcrtdll"
46626EXTRA_CFLAGS=""
46627EXPORT_BY_ORDINALS=0
46628exclude_symbols=""
46629library_flags=""
46630curDir=\`pwd\`
46631curDirS=curDir
46632case ${D}curDirS in
46633*/)
46634 ;;
46635*)
46636 curDirS=${D}{curDirS}"/"
46637 ;;
46638esac
46639# Parse commandline
46640libsToLink=0
b1d22ded 46641omfLinking=0
1e9e8aba 46642while [ ${D}1 ]; do
473276a9
VS
46643 case ${D}1 in
46644 -ord*)
46645 EXPORT_BY_ORDINALS=1;
46646 ;;
46647 -o*)
46648 shift
46649 outFile=${D}1
46650 ;;
46651 -i*)
46652 shift
46653 outimpFile=${D}1
46654 ;;
b1d22ded
DE
46655 -name-mangler-script)
46656 shift
46657 renameScript=${D}1
46658 ;;
473276a9
VS
46659 -d*)
46660 shift
46661 description=${D}1
46662 ;;
46663 -f*)
46664 shift
46665 CFLAGS=${D}1
46666 ;;
46667 -c*)
46668 shift
46669 CC=${D}1
46670 ;;
46671 -h*)
46672 PrintHelp
46673 ;;
46674 -ex*)
46675 shift
46676 exclude_symbols=${D}{exclude_symbols}${D}1" "
46677 ;;
46678 -libf*)
46679 shift
46680 library_flags=${D}{library_flags}${D}1" "
46681 ;;
46682 -nocrt*)
46683 CFLAGS="-s"
46684 ;;
46685 -nolxl*)
46686 flag_USE_LXLITE=0
46687 ;;
46688 -* | /*)
46689 case ${D}1 in
46690 -L* | -l*)
46691 libsToLink=1
46692 ;;
b1d22ded
DE
46693 -Zomf)
46694 omfLinking=1
46695 ;;
473276a9
VS
46696 *)
46697 ;;
46698 esac
46699 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46700 ;;
b1d22ded
DE
46701 *.dll)
46702 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46703 if [ ${D}omfLinking -eq 1 ]; then
46704 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46705 else
46706 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46707 fi
46708 ;;
473276a9
VS
46709 *)
46710 found=0;
1e9e8aba 46711 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46712 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46713 else
46714 for file in ${D}1 ; do
1e9e8aba 46715 if [ -f ${D}file ]; then
473276a9
VS
46716 inputFiles="${D}{inputFiles} ${D}file"
46717 found=1
46718 fi
46719 done
1e9e8aba 46720 if [ ${D}found -eq 0 ]; then
473276a9
VS
46721 echo "ERROR: No file(s) found: "${D}1
46722 exit 8
46723 fi
46724 fi
46725 ;;
46726 esac
46727 shift
46728done # iterate cmdline words
46729
46730#
1e9e8aba 46731if [ -z "${D}inputFiles" ]; then
473276a9
VS
46732 echo "dllar: no input files"
46733 PrintHelp
46734fi
46735
46736# Now extract all .o files from .a files
46737newInputFiles=""
46738for file in ${D}inputFiles ; do
46739 case ${D}file in
46740 *.a | *.lib)
46741 case ${D}file in
46742 *.a)
46743 suffix=".a"
46744 AR="ar"
46745 ;;
46746 *.lib)
46747 suffix=".lib"
46748 AR="emxomfar"
46749 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46750 ;;
46751 *)
46752 ;;
46753 esac
46754 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46755 mkdir ${D}dirname
1e9e8aba 46756 if [ ${D}? -ne 0 ]; then
473276a9
VS
46757 echo "Failed to create subdirectory ./${D}dirname"
46758 CleanUp
46759 exit 8;
46760 fi
46761 # Append '!' to indicate archive
46762 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46763 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46764 cd ${D}curDir
46765 found=0;
46766 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46767 if [ -f ${D}subfile ]; then
473276a9 46768 found=1
1e9e8aba 46769 if [ -s ${D}subfile ]; then
473276a9
VS
46770 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46771 newInputFiles="${D}newInputFiles ${D}subfile"
46772 fi
46773 fi
46774 done
1e9e8aba
DE
46775 if [ ${D}found -eq 0 ]; then
46776 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46777 fi
46778 ;;
46779 *)
46780 newInputFiles="${D}{newInputFiles} ${D}file"
46781 ;;
46782 esac
46783done
46784inputFiles="${D}newInputFiles"
46785
46786# Output filename(s).
46787do_backup=0;
1e9e8aba 46788if [ -z ${D}outFile ]; then
473276a9
VS
46789 do_backup=1;
46790 set outFile ${D}inputFiles; outFile=${D}2
46791fi
46792
46793# If it is an archive, remove the '!' and the '_%' suffixes
46794case ${D}outFile in
46795*_%!)
46796 outFile=\`basnam ${D}outFile _%!\`
46797 ;;
46798*)
46799 ;;
46800esac
46801case ${D}outFile in
46802*.dll)
46803 outFile=\`basnam ${D}outFile .dll\`
46804 ;;
46805*.DLL)
46806 outFile=\`basnam ${D}outFile .DLL\`
46807 ;;
46808*.o)
46809 outFile=\`basnam ${D}outFile .o\`
46810 ;;
46811*.obj)
46812 outFile=\`basnam ${D}outFile .obj\`
46813 ;;
46814*.a)
46815 outFile=\`basnam ${D}outFile .a\`
46816 ;;
46817*.lib)
46818 outFile=\`basnam ${D}outFile .lib\`
46819 ;;
46820*)
46821 ;;
46822esac
46823case ${D}outimpFile in
46824*.a)
46825 outimpFile=\`basnam ${D}outimpFile .a\`
46826 ;;
46827*.lib)
46828 outimpFile=\`basnam ${D}outimpFile .lib\`
46829 ;;
46830*)
46831 ;;
46832esac
1e9e8aba 46833if [ -z ${D}outimpFile ]; then
473276a9
VS
46834 outimpFile=${D}outFile
46835fi
46836defFile="${D}{outFile}.def"
46837arcFile="${D}{outimpFile}.a"
46838arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46839
46840#create ${D}dllFile as something matching 8.3 restrictions,
46841if [ -z ${D}renameScript ] ; then
46842 dllFile="${D}outFile"
46843else
46844 dllFile=\`${D}renameScript ${D}outimpFile\`
46845fi
473276a9 46846
1e9e8aba
DE
46847if [ ${D}do_backup -ne 0 ] ; then
46848 if [ -f ${D}arcFile ] ; then
473276a9
VS
46849 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46850 fi
1e9e8aba 46851 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46852 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46853 fi
46854fi
46855
46856# Extract public symbols from all the object files.
46857tmpdefFile=${D}{defFile}_%
46858rm -f ${D}tmpdefFile
46859for file in ${D}inputFiles ; do
46860 case ${D}file in
46861 *!)
46862 ;;
46863 *)
46864 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46865 ;;
46866 esac
46867done
46868
46869# Create the def file.
46870rm -f ${D}defFile
46871echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
46872dllFile="${D}{dllFile}.dll"
46873if [ ! -z ${D}description ]; then
1e9e8aba 46874 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
46875fi
46876echo "EXPORTS" >> ${D}defFile
46877
46878doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46879grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46880
46881# Checks if the export is ok or not.
46882for word in ${D}exclude_symbols; do
46883 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46884 mv ${D}{tmpdefFile}% ${D}tmpdefFile
46885done
46886
46887
1e9e8aba
DE
46888if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46889 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
46890 sed '
46891 N
46892 : loop
1e9e8aba 46893 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
46894 t loop
46895 ' > ${D}{tmpdefFile}%
46896 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46897else
46898 rm -f ${D}{tmpdefFile}%
46899fi
46900cat ${D}tmpdefFile >> ${D}defFile
46901rm -f ${D}tmpdefFile
46902
46903# Do linking, create implib, and apply lxlite.
46904gccCmdl="";
46905for file in ${D}inputFiles ; do
46906 case ${D}file in
46907 *!)
46908 ;;
46909 *)
46910 gccCmdl="${D}gccCmdl ${D}file"
46911 ;;
46912 esac
46913done
46914doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46915touch "${D}{outFile}.dll"
46916
46917doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 46918if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 46919 add_flags="";
1e9e8aba 46920 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
46921 add_flags="-ynd"
46922 fi
46923 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46924fi
46925doCommand "emxomf -s -l ${D}arcFile"
46926
46927# Successful exit.
46928CleanUp 1
46929exit 0
46930EOF
46931
46932 chmod +x dllar.sh
a848cd7e
SC
46933 ;;
46934
1e9e8aba 46935 powerpc-apple-macos* | \
0ad5d837 46936 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
46937 *-*-sunos4* | \
46938 *-*-osf* | \
46939 *-*-dgux5* | \
47a7e797
MW
46940 *-*-sysv5* | \
46941 *-pc-msdosdjgpp )
a848cd7e
SC
46942 ;;
46943
46944 *)
46945 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46946echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46947 { (exit 1); exit 1; }; }
46948 esac
46949
2057db16
VS
46950 if test "x$PIC_FLAG" != "x" ; then
46951 PIC_FLAG="$PIC_FLAG -DPIC"
46952 fi
46953
a848cd7e
SC
46954 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46955 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46956 fi
46957 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46958 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46959 fi
46960
46961
46962
46963
46964
46965
46966
46967
810b94f0 46968
a848cd7e
SC
46969 USE_SOVERSION=0
46970 USE_SOVERLINUX=0
46971 USE_SOVERSOLARIS=0
810b94f0 46972 USE_SOVERCYGWIN=0
a848cd7e
SC
46973 USE_SOSYMLINKS=0
46974 USE_MACVERSION=0
46975 SONAME_FLAG=
46976
46977 case "${BAKEFILE_HOST}" in
0ad5d837 46978 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
46979 SONAME_FLAG="-Wl,-soname,"
46980 USE_SOVERSION=1
46981 USE_SOVERLINUX=1
46982 USE_SOSYMLINKS=1
46983 ;;
46984
a848cd7e
SC
46985 *-*-solaris2* )
46986 SONAME_FLAG="-h "
46987 USE_SOVERSION=1
46988 USE_SOVERSOLARIS=1
46989 USE_SOSYMLINKS=1
46990 ;;
46991
46992 *-*-darwin* )
46993 USE_MACVERSION=1
46994 USE_SOVERSION=1
46995 USE_SOSYMLINKS=1
46996 ;;
810b94f0
MW
46997
46998 *-*-cygwin* )
46999 USE_SOVERSION=1
47000 USE_SOVERCYGWIN=1
47001 ;;
a848cd7e
SC
47002 esac
47003
47004
47005
47006
47007
47008
47009
47010
47011
810b94f0 47012
f10e38c4
VZ
47013 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47014if test "${enable_dependency_tracking+set}" = set; then
47015 enableval="$enable_dependency_tracking"
47016 bk_use_trackdeps="$enableval"
47017fi;
47018
a848cd7e
SC
47019 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47020echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 47021
f10e38c4
VZ
47022 if test "x$bk_use_trackdeps" = "xno" ; then
47023 DEPS_TRACKING=0
47024 echo "$as_me:$LINENO: result: disabled" >&5
47025echo "${ECHO_T}disabled" >&6
47026 else
47027 DEPS_TRACKING=1
47028
47029 if test "x$GCC" = "xyes"; then
47030 DEPSMODE=gcc
47031 case "${BAKEFILE_HOST}" in
47032 *-*-darwin* )
47033 DEPSFLAG="-no-cpp-precomp -MMD"
47034 ;;
47035 * )
47036 DEPSFLAG="-MMD"
47037 ;;
47038 esac
47039 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 47040echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
47041 elif test "x$MWCC" = "xyes"; then
47042 DEPSMODE=mwcc
47043 DEPSFLAG="-MM"
47044 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 47045echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
47046 elif test "x$SUNCC" = "xyes"; then
47047 DEPSMODE=unixcc
47048 DEPSFLAG="-xM1"
47049 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 47050echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
47051 elif test "x$SGICC" = "xyes"; then
47052 DEPSMODE=unixcc
47053 DEPSFLAG="-M"
47054 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 47055echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
47056 elif test "x$HPCC" = "xyes"; then
47057 DEPSMODE=unixcc
47058 DEPSFLAG="+make"
47059 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 47060echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
47061 elif test "x$COMPAQCC" = "xyes"; then
47062 DEPSMODE=gcc
47063 DEPSFLAG="-MD"
47064 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 47065echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
47066 else
47067 DEPS_TRACKING=0
47068 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 47069echo "${ECHO_T}none" >&6
f10e38c4 47070 fi
a848cd7e 47071
f10e38c4 47072 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
47073
47074D='$'
47075cat <<EOF >bk-deps
a848cd7e
SC
47076#!/bin/sh
47077
47078# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47079# script. It is used to track C/C++ files dependencies in portable way.
47080#
47081# Permission is given to use this file in any way.
47082
473276a9 47083DEPSMODE=${DEPSMODE}
a848cd7e 47084DEPSDIR=.deps
0ad5d837 47085DEPSFLAG="${DEPSFLAG}"
a848cd7e 47086
473276a9 47087mkdir -p ${D}DEPSDIR
a848cd7e 47088
473276a9 47089if test ${D}DEPSMODE = gcc ; then
0ad5d837 47090 ${D}* ${D}{DEPSFLAG}
473276a9
VS
47091 status=${D}?
47092 if test ${D}{status} != 0 ; then
47093 exit ${D}{status}
a848cd7e
SC
47094 fi
47095 # move created file to the location we want it in:
473276a9
VS
47096 while test ${D}# -gt 0; do
47097 case "${D}1" in
a848cd7e
SC
47098 -o )
47099 shift
473276a9 47100 objfile=${D}1
a848cd7e
SC
47101 ;;
47102 -* )
47103 ;;
47104 * )
473276a9 47105 srcfile=${D}1
a848cd7e
SC
47106 ;;
47107 esac
47108 shift
47109 done
1e9e8aba
DE
47110 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47111 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
47112 if test -f ${D}depfile ; then
47113 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47114 rm -f ${D}depfile
a848cd7e 47115 else
a1aa0349 47116 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 47117 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
47118 if test ! -f ${D}depfile ; then
47119 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47120 depfile="${D}objfile.d"
47121 fi
473276a9
VS
47122 if test -f ${D}depfile ; then
47123 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47124 rm -f ${D}depfile
a848cd7e
SC
47125 fi
47126 fi
47127 exit 0
81f90336 47128elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 47129 ${D}* || exit ${D}?
81f90336
MW
47130 # Run mwcc again with -MM and redirect into the dep file we want
47131 # NOTE: We can't use shift here because we need ${D}* to be valid
47132 prevarg=
47133 for arg in ${D}* ; do
47134 if test "${D}prevarg" = "-o"; then
47135 objfile=${D}arg
47136 else
47137 case "${D}arg" in
47138 -* )
47139 ;;
47140 * )
47141 srcfile=${D}arg
47142 ;;
47143 esac
47144 fi
47145 prevarg="${D}arg"
47146 done
0ad5d837 47147 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47148 exit 0
0ad5d837 47149elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47150 ${D}* || exit ${D}?
a9e5b1f0
MW
47151 # Run compiler again with deps flag and redirect into the dep file.
47152 # It doesn't work if the '-o FILE' option is used, but without it the
47153 # dependency file will contain the wrong name for the object. So it is
47154 # removed from the command line, and the dep file is fixed with sed.
47155 cmd=""
47156 while test ${D}# -gt 0; do
47157 case "${D}1" in
47158 -o )
47159 shift
47160 objfile=${D}1
47161 ;;
47162 * )
47163 eval arg${D}#=\\${D}1
47164 cmd="${D}cmd \\${D}arg${D}#"
47165 ;;
47166 esac
47167 shift
47168 done
0ad5d837 47169 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47170 exit 0
a848cd7e 47171else
473276a9
VS
47172 ${D}*
47173 exit ${D}?
a848cd7e
SC
47174fi
47175EOF
473276a9 47176
f10e38c4
VZ
47177 chmod +x bk-deps
47178 fi
a848cd7e
SC
47179 fi
47180
47181
47182
47183
a848cd7e
SC
47184 case ${BAKEFILE_HOST} in
47185 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47186 if test -n "$ac_tool_prefix"; then
47187 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47188set dummy ${ac_tool_prefix}windres; ac_word=$2
47189echo "$as_me:$LINENO: checking for $ac_word" >&5
47190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47191if test "${ac_cv_prog_WINDRES+set}" = set; then
47192 echo $ECHO_N "(cached) $ECHO_C" >&6
47193else
47194 if test -n "$WINDRES"; then
47195 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47196else
47197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47198for as_dir in $PATH
47199do
47200 IFS=$as_save_IFS
47201 test -z "$as_dir" && as_dir=.
47202 for ac_exec_ext in '' $ac_executable_extensions; do
47203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47204 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47206 break 2
47207 fi
47208done
47209done
47210
47211fi
47212fi
47213WINDRES=$ac_cv_prog_WINDRES
47214if test -n "$WINDRES"; then
47215 echo "$as_me:$LINENO: result: $WINDRES" >&5
47216echo "${ECHO_T}$WINDRES" >&6
47217else
47218 echo "$as_me:$LINENO: result: no" >&5
47219echo "${ECHO_T}no" >&6
47220fi
47221
47222fi
47223if test -z "$ac_cv_prog_WINDRES"; then
47224 ac_ct_WINDRES=$WINDRES
47225 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47226set dummy windres; ac_word=$2
47227echo "$as_me:$LINENO: checking for $ac_word" >&5
47228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47229if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47230 echo $ECHO_N "(cached) $ECHO_C" >&6
47231else
8ced02f6
DE
47232 if test -n "$ac_ct_WINDRES"; then
47233 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47234else
47235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47236for as_dir in $PATH
47237do
47238 IFS=$as_save_IFS
47239 test -z "$as_dir" && as_dir=.
47240 for ac_exec_ext in '' $ac_executable_extensions; do
47241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47242 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47244 break 2
47245 fi
47246done
47247done
47248
a848cd7e
SC
47249fi
47250fi
8ced02f6
DE
47251ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47252if test -n "$ac_ct_WINDRES"; then
47253 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47254echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47255else
47256 echo "$as_me:$LINENO: result: no" >&5
47257echo "${ECHO_T}no" >&6
47258fi
47259
8ced02f6
DE
47260 WINDRES=$ac_ct_WINDRES
47261else
47262 WINDRES="$ac_cv_prog_WINDRES"
47263fi
47264
a848cd7e
SC
47265 ;;
47266
1e9e8aba 47267 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47268 # Extract the first word of "Rez", so it can be a program name with args.
47269set dummy Rez; ac_word=$2
47270echo "$as_me:$LINENO: checking for $ac_word" >&5
47271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47272if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47273 echo $ECHO_N "(cached) $ECHO_C" >&6
47274else
8ced02f6
DE
47275 if test -n "$REZ"; then
47276 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47277else
47278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47279for as_dir in $PATH
47280do
47281 IFS=$as_save_IFS
47282 test -z "$as_dir" && as_dir=.
47283 for ac_exec_ext in '' $ac_executable_extensions; do
47284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47285 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47287 break 2
47288 fi
47289done
47290done
47291
8ced02f6 47292 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47293fi
47294fi
8ced02f6
DE
47295REZ=$ac_cv_prog_REZ
47296if test -n "$REZ"; then
47297 echo "$as_me:$LINENO: result: $REZ" >&5
47298echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47299else
47300 echo "$as_me:$LINENO: result: no" >&5
47301echo "${ECHO_T}no" >&6
47302fi
47303
47304 # Extract the first word of "SetFile", so it can be a program name with args.
47305set dummy SetFile; ac_word=$2
47306echo "$as_me:$LINENO: checking for $ac_word" >&5
47307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47308if test "${ac_cv_prog_SETFILE+set}" = set; then
47309 echo $ECHO_N "(cached) $ECHO_C" >&6
47310else
47311 if test -n "$SETFILE"; then
47312 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47313else
47314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47315for as_dir in $PATH
47316do
47317 IFS=$as_save_IFS
47318 test -z "$as_dir" && as_dir=.
47319 for ac_exec_ext in '' $ac_executable_extensions; do
47320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47321 ac_cv_prog_SETFILE="SetFile"
47322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47323 break 2
47324 fi
47325done
47326done
47327
47328 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47329fi
47330fi
47331SETFILE=$ac_cv_prog_SETFILE
47332if test -n "$SETFILE"; then
47333 echo "$as_me:$LINENO: result: $SETFILE" >&5
47334echo "${ECHO_T}$SETFILE" >&6
47335else
47336 echo "$as_me:$LINENO: result: no" >&5
47337echo "${ECHO_T}no" >&6
47338fi
47339
47340 ;;
47341 esac
47342
47343
47344
47345
47346
8ced02f6 47347
f10e38c4 47348 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 47349
dcc1b6ad 47350
f10e38c4 47351BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 47352
646b6ec1 47353
74b84332 47354
a848cd7e
SC
47355 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47356if test "${enable_precomp_headers+set}" = set; then
47357 enableval="$enable_precomp_headers"
47358 bk_use_pch="$enableval"
47359fi;
47360
47361 GCC_PCH=0
f10e38c4
VZ
47362 ICC_PCH=0
47363 USE_PCH=0
a848cd7e 47364
5c60e845
MW
47365 case ${BAKEFILE_HOST} in
47366 *-*-cygwin* )
47367 bk_use_pch="no"
47368 ;;
47369 esac
47370
a848cd7e
SC
47371 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47372 if test "x$GCC" = "xyes"; then
47373 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47374echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47375 cat >conftest.$ac_ext <<_ACEOF
47376/* confdefs.h. */
47377_ACEOF
47378cat confdefs.h >>conftest.$ac_ext
47379cat >>conftest.$ac_ext <<_ACEOF
47380/* end confdefs.h. */
47381
47382int
47383main ()
47384{
47385
47386 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47387 There is no PCH support
a848cd7e
SC
47388 #endif
47389 #if (__GNUC__ < 3)
e5efa97e 47390 There is no PCH support
a848cd7e
SC
47391 #endif
47392 #if (__GNUC__ == 3) && \
47393 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47394 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47395 ( defined(__INTEL_COMPILER) )
e5efa97e 47396 There is no PCH support
a848cd7e
SC
47397 #endif
47398
47399 ;
47400 return 0;
47401}
47402_ACEOF
47403rm -f conftest.$ac_objext
47404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47405 (eval $ac_compile) 2>conftest.er1
a848cd7e 47406 ac_status=$?
ac1cb8d3
VS
47407 grep -v '^ *+' conftest.er1 >conftest.err
47408 rm -f conftest.er1
47409 cat conftest.err >&5
a848cd7e
SC
47410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47411 (exit $ac_status); } &&
6954625c 47412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47414 (eval $ac_try) 2>&5
47415 ac_status=$?
47416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47417 (exit $ac_status); }; } &&
47418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47420 (eval $ac_try) 2>&5
47421 ac_status=$?
47422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47423 (exit $ac_status); }; }; then
47424
47425 echo "$as_me:$LINENO: result: yes" >&5
47426echo "${ECHO_T}yes" >&6
a848cd7e
SC
47427 GCC_PCH=1
47428
47429else
47430 echo "$as_me: failed program was:" >&5
47431sed 's/^/| /' conftest.$ac_ext >&5
47432
47433
f10e38c4
VZ
47434 cat >conftest.$ac_ext <<_ACEOF
47435/* confdefs.h. */
47436_ACEOF
47437cat confdefs.h >>conftest.$ac_ext
47438cat >>conftest.$ac_ext <<_ACEOF
47439/* end confdefs.h. */
47440
47441int
47442main ()
47443{
47444
47445 #if !defined(__INTEL_COMPILER) || \
47446 (__INTEL_COMPILER < 800)
e5efa97e 47447 There is no PCH support
f10e38c4
VZ
47448 #endif
47449
47450 ;
47451 return 0;
47452}
47453_ACEOF
47454rm -f conftest.$ac_objext
47455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47456 (eval $ac_compile) 2>conftest.er1
47457 ac_status=$?
47458 grep -v '^ *+' conftest.er1 >conftest.err
47459 rm -f conftest.er1
47460 cat conftest.err >&5
47461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47462 (exit $ac_status); } &&
6954625c 47463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
47464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47465 (eval $ac_try) 2>&5
47466 ac_status=$?
47467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47468 (exit $ac_status); }; } &&
47469 { ac_try='test -s conftest.$ac_objext'
47470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47471 (eval $ac_try) 2>&5
47472 ac_status=$?
47473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47474 (exit $ac_status); }; }; then
47475
47476 echo "$as_me:$LINENO: result: yes" >&5
47477echo "${ECHO_T}yes" >&6
47478 ICC_PCH=1
47479
47480else
47481 echo "$as_me: failed program was:" >&5
47482sed 's/^/| /' conftest.$ac_ext >&5
47483
47484
47485 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47486echo "${ECHO_T}no" >&6
47487
47488fi
ac1cb8d3 47489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47490
47491fi
47492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47493 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47494 USE_PCH=1
1e9e8aba
DE
47495
47496D='$'
47497cat <<EOF >bk-make-pch
a848cd7e
SC
47498#!/bin/sh
47499
47500# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47501# script. It is used to generated precompiled headers.
47502#
47503# Permission is given to use this file in any way.
47504
1e9e8aba
DE
47505outfile="${D}{1}"
47506header="${D}{2}"
a848cd7e
SC
47507shift
47508shift
47509
f10e38c4
VZ
47510compiler=""
47511headerfile=""
47512
1e9e8aba 47513while test ${D}{#} -gt 0; do
f10e38c4 47514 add_to_cmdline=1
1e9e8aba 47515 case "${D}{1}" in
a848cd7e 47516 -I* )
1e9e8aba
DE
47517 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47518 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47519 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47520 fi
47521 ;;
f10e38c4
VZ
47522 -use-pch|-use_pch )
47523 shift
47524 add_to_cmdline=0
47525 ;;
a848cd7e 47526 esac
f10e38c4
VZ
47527 if test ${D}add_to_cmdline = 1 ; then
47528 compiler="${D}{compiler} ${D}{1}"
47529 fi
a848cd7e
SC
47530 shift
47531done
47532
1e9e8aba 47533if test "x${D}{headerfile}" = "x" ; then
f10e38c4 47534 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 47535else
1e9e8aba
DE
47536 if test -f ${D}{outfile} ; then
47537 rm -f ${D}{outfile}
a848cd7e 47538 else
1e9e8aba 47539 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47540 fi
1e9e8aba 47541 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 47542 mkdir -p .deps
f10e38c4
VZ
47543 if test "x${GCC_PCH}" = "x1" ; then
47544 # can do this because gcc is >= 3.4:
47545 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47546 elif test "x${ICC_PCH}" = "x1" ; then
47547 filename=pch_gen-${D}${D}
47548 file=${D}{filename}.c
47549 dfile=${D}{filename}.d
47550 cat > ${D}file <<EOT
47551#include "${D}header"
47552EOT
47553 # using -MF icc complains about differing command lines in creation/use
47554 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47555 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47556 rm -f ${D}file ${D}dfile ${D}{filename}.o
47557 fi
1e9e8aba 47558 exit ${D}{?}
a848cd7e
SC
47559fi
47560EOF
1e9e8aba 47561
a848cd7e
SC
47562 chmod +x bk-make-pch
47563 fi
47564 fi
47565 fi
47566
47567
47568
f10e38c4 47569
a848cd7e
SC
47570 COND_BUILD_DEBUG="#"
47571 if test "x$BUILD" = "xdebug" ; then
47572 COND_BUILD_DEBUG=""
47573 fi
47574
47575 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47576 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47577 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47578 fi
47579
47580 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47581 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47582 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47583 fi
47584
47585 COND_BUILD_DEBUG_UNICODE_0="#"
47586 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47587 COND_BUILD_DEBUG_UNICODE_0=""
47588 fi
47589
47590 COND_BUILD_DEBUG_UNICODE_1="#"
47591 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47592 COND_BUILD_DEBUG_UNICODE_1=""
47593 fi
47594
47595 COND_BUILD_RELEASE="#"
47596 if test "x$BUILD" = "xrelease" ; then
47597 COND_BUILD_RELEASE=""
47598 fi
47599
47600 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47601 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47602 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47603 fi
47604
47605 COND_BUILD_RELEASE_UNICODE_0="#"
47606 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47607 COND_BUILD_RELEASE_UNICODE_0=""
47608 fi
47609
47610 COND_BUILD_RELEASE_UNICODE_1="#"
47611 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47612 COND_BUILD_RELEASE_UNICODE_1=""
47613 fi
47614
47615 COND_DEBUG_FLAG_1="#"
47616 if test "x$DEBUG_FLAG" = "x1" ; then
47617 COND_DEBUG_FLAG_1=""
47618 fi
47619
47620 COND_DEBUG_INFO_0="#"
47621 if test "x$DEBUG_INFO" = "x0" ; then
47622 COND_DEBUG_INFO_0=""
47623 fi
47624
47625 COND_DEBUG_INFO_1="#"
47626 if test "x$DEBUG_INFO" = "x1" ; then
47627 COND_DEBUG_INFO_1=""
47628 fi
47629
47630 COND_DEPS_TRACKING_0="#"
47631 if test "x$DEPS_TRACKING" = "x0" ; then
47632 COND_DEPS_TRACKING_0=""
47633 fi
47634
47635 COND_DEPS_TRACKING_1="#"
47636 if test "x$DEPS_TRACKING" = "x1" ; then
47637 COND_DEPS_TRACKING_1=""
47638 fi
47639
47640 COND_GCC_PCH_1="#"
47641 if test "x$GCC_PCH" = "x1" ; then
47642 COND_GCC_PCH_1=""
47643 fi
47644
f10e38c4
VZ
47645 COND_ICC_PCH_1="#"
47646 if test "x$ICC_PCH" = "x1" ; then
47647 COND_ICC_PCH_1=""
47648 fi
47649
a848cd7e
SC
47650 COND_MONOLITHIC_0="#"
47651 if test "x$MONOLITHIC" = "x0" ; then
47652 COND_MONOLITHIC_0=""
47653 fi
47654
47655 COND_MONOLITHIC_0_SHARED_0="#"
47656 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47657 COND_MONOLITHIC_0_SHARED_0=""
47658 fi
47659
47660 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47661 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47662 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47663 fi
47664
90970d69
DE
47665 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47666 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47667 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47668 fi
47669
f10e38c4
VZ
47670 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
47671 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47672 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
47673 fi
47674
a848cd7e
SC
47675 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47676 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47677 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47678 fi
47679
6671c68b
VZ
47680 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47681 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47682 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47683 fi
47684
a848cd7e
SC
47685 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47686 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47687 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47688 fi
47689
ceec2216
RL
47690 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47691 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47692 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47693 fi
47694
a848cd7e
SC
47695 COND_MONOLITHIC_0_SHARED_1="#"
47696 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47697 COND_MONOLITHIC_0_SHARED_1=""
47698 fi
47699
47700 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47701 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47702 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47703 fi
47704
90970d69
DE
47705 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47706 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47707 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47708 fi
47709
f10e38c4
VZ
47710 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
47711 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47712 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
47713 fi
47714
a848cd7e
SC
47715 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47716 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47717 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47718 fi
47719
6671c68b
VZ
47720 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47721 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47722 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47723 fi
47724
a848cd7e
SC
47725 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47726 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47727 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47728 fi
47729
ceec2216
RL
47730 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47731 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47732 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47733 fi
47734
e5efa97e
VZ
47735 COND_MONOLITHIC_0_USE_MEDIA_1="#"
47736 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
47737 COND_MONOLITHIC_0_USE_MEDIA_1=""
47738 fi
47739
a848cd7e
SC
47740 COND_MONOLITHIC_0_USE_ODBC_1="#"
47741 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47742 COND_MONOLITHIC_0_USE_ODBC_1=""
47743 fi
47744
47745 COND_MONOLITHIC_1="#"
47746 if test "x$MONOLITHIC" = "x1" ; then
47747 COND_MONOLITHIC_1=""
47748 fi
47749
47750 COND_MONOLITHIC_1_SHARED_0="#"
47751 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47752 COND_MONOLITHIC_1_SHARED_0=""
47753 fi
47754
47755 COND_MONOLITHIC_1_SHARED_1="#"
47756 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47757 COND_MONOLITHIC_1_SHARED_1=""
47758 fi
47759
47760 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47761 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47762 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47763 fi
47764
47765 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47766 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47767 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47768 fi
47769
eb730a0c
JS
47770 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47771 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47772 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47773 fi
47774
a848cd7e
SC
47775 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47776 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47777 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47778 fi
47779
47780 COND_PLATFORM_MACOSX_1="#"
47781 if test "x$PLATFORM_MACOSX" = "x1" ; then
47782 COND_PLATFORM_MACOSX_1=""
47783 fi
47784
a30f955f
VS
47785 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47786 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47787 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47788 fi
47789
a848cd7e
SC
47790 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47791 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47792 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47793 fi
47794
47795 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47796 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47797 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47798 fi
47799
47800 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47801 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47802 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47803 fi
47804
fc480dc1
DE
47805 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47806 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47807 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47808 fi
47809
1e9e8aba
DE
47810 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47811 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47812 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47813 fi
47814
ebee3cd0
VS
47815 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47816 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47817 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47818 fi
47819
47820 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47821 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47822 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47823 fi
47824
a848cd7e
SC
47825 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47826 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47827 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47828 fi
47829
47830 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47831 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47832 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47833 fi
47834
b48a2016
DE
47835 COND_PLATFORM_MACOS_1="#"
47836 if test "x$PLATFORM_MACOS" = "x1" ; then
47837 COND_PLATFORM_MACOS_1=""
47838 fi
47839
083508af
MW
47840 COND_PLATFORM_MAC_1="#"
47841 if test "x$PLATFORM_MAC" = "x1" ; then
47842 COND_PLATFORM_MAC_1=""
47843 fi
47844
e5efa97e
VZ
47845 COND_PLATFORM_MSDOS_0="#"
47846 if test "x$PLATFORM_MSDOS" = "x0" ; then
47847 COND_PLATFORM_MSDOS_0=""
47848 fi
47849
83d8eb47
MW
47850 COND_PLATFORM_MSDOS_1="#"
47851 if test "x$PLATFORM_MSDOS" = "x1" ; then
47852 COND_PLATFORM_MSDOS_1=""
47853 fi
47854
a848cd7e
SC
47855 COND_PLATFORM_OS2_1="#"
47856 if test "x$PLATFORM_OS2" = "x1" ; then
47857 COND_PLATFORM_OS2_1=""
47858 fi
47859
47860 COND_PLATFORM_UNIX_0="#"
47861 if test "x$PLATFORM_UNIX" = "x0" ; then
47862 COND_PLATFORM_UNIX_0=""
47863 fi
47864
47865 COND_PLATFORM_UNIX_1="#"
47866 if test "x$PLATFORM_UNIX" = "x1" ; then
47867 COND_PLATFORM_UNIX_1=""
47868 fi
47869
47870 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47871 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47872 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47873 fi
47874
47875 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47876 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47877 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47878 fi
47879
47880 COND_PLATFORM_WIN32_0="#"
47881 if test "x$PLATFORM_WIN32" = "x0" ; then
47882 COND_PLATFORM_WIN32_0=""
47883 fi
47884
47885 COND_PLATFORM_WIN32_1="#"
47886 if test "x$PLATFORM_WIN32" = "x1" ; then
47887 COND_PLATFORM_WIN32_1=""
47888 fi
47889
47890 COND_SHARED_0="#"
47891 if test "x$SHARED" = "x0" ; then
47892 COND_SHARED_0=""
47893 fi
47894
083508af
MW
47895 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47896 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47897 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47898 fi
47899
47900 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47901 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47902 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47903 fi
47904
47905 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47906 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47907 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47908 fi
47909
a848cd7e
SC
47910 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47911 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47912 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47913 fi
47914
47915 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47916 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47917 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47918 fi
47919
47920 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47921 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47922 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47923 fi
47924
47925 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47926 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47927 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47928 fi
47929
083508af
MW
47930 COND_SHARED_0_USE_XRC_1="#"
47931 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47932 COND_SHARED_0_USE_XRC_1=""
47933 fi
47934
a848cd7e
SC
47935 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47936 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47937 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47938 fi
47939
47940 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47941 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47942 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47943 fi
47944
47945 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47946 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47947 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47948 fi
47949
47950 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47951 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47952 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47953 fi
47954
47955 COND_SHARED_1="#"
47956 if test "x$SHARED" = "x1" ; then
47957 COND_SHARED_1=""
47958 fi
47959
47960 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47961 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47962 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47963 fi
47964
083508af
MW
47965 COND_SHARED_1_USE_XRC_1="#"
47966 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47967 COND_SHARED_1_USE_XRC_1=""
47968 fi
47969
a30f955f
VS
47970 COND_TOOLKIT_="#"
47971 if test "x$TOOLKIT" = "x" ; then
47972 COND_TOOLKIT_=""
47973 fi
47974
a848cd7e
SC
47975 COND_TOOLKIT_COCOA="#"
47976 if test "x$TOOLKIT" = "xCOCOA" ; then
47977 COND_TOOLKIT_COCOA=""
47978 fi
47979
a49baeab
DE
47980 COND_TOOLKIT_COCOA_USE_GUI_1="#"
47981 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47982 COND_TOOLKIT_COCOA_USE_GUI_1=""
47983 fi
47984
a848cd7e
SC
47985 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47986 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47987 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47988 fi
47989
47990 COND_TOOLKIT_GTK="#"
47991 if test "x$TOOLKIT" = "xGTK" ; then
47992 COND_TOOLKIT_GTK=""
47993 fi
47994
d044deea
MW
47995 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
47996 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
47997 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
47998 fi
47999
48000 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48001 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48002 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48003 fi
48004
48005 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48006 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48007 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48008 fi
48009
48010 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48011 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48012 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48013 fi
48014
48015 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48016 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48017 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48018 fi
48019
48020 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48021 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48022 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48023 fi
48024
a848cd7e
SC
48025 COND_TOOLKIT_GTK_USE_GUI_1="#"
48026 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48027 COND_TOOLKIT_GTK_USE_GUI_1=""
48028 fi
48029
a848cd7e
SC
48030 COND_TOOLKIT_MAC="#"
48031 if test "x$TOOLKIT" = "xMAC" ; then
48032 COND_TOOLKIT_MAC=""
48033 fi
48034
48035 COND_TOOLKIT_MAC_USE_GUI_1="#"
48036 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48037 COND_TOOLKIT_MAC_USE_GUI_1=""
48038 fi
48039
48040 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48041 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48042 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48043 fi
48044
48045 COND_TOOLKIT_MGL="#"
48046 if test "x$TOOLKIT" = "xMGL" ; then
48047 COND_TOOLKIT_MGL=""
48048 fi
48049
48050 COND_TOOLKIT_MGL_USE_GUI_1="#"
48051 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48052 COND_TOOLKIT_MGL_USE_GUI_1=""
48053 fi
48054
48055 COND_TOOLKIT_MOTIF="#"
48056 if test "x$TOOLKIT" = "xMOTIF" ; then
48057 COND_TOOLKIT_MOTIF=""
48058 fi
48059
48060 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48061 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48062 COND_TOOLKIT_MOTIF_USE_GUI_1=""
48063 fi
48064
48065 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48066 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48067 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48068 fi
48069
48070 COND_TOOLKIT_MSW="#"
48071 if test "x$TOOLKIT" = "xMSW" ; then
48072 COND_TOOLKIT_MSW=""
48073 fi
48074
48075 COND_TOOLKIT_MSW_USE_GUI_1="#"
48076 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48077 COND_TOOLKIT_MSW_USE_GUI_1=""
48078 fi
48079
48080 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48081 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48082 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48083 fi
48084
0ee4059d
DE
48085 COND_TOOLKIT_MSW_WXUNIV_0="#"
48086 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48087 COND_TOOLKIT_MSW_WXUNIV_0=""
48088 fi
48089
a848cd7e
SC
48090 COND_TOOLKIT_PM="#"
48091 if test "x$TOOLKIT" = "xPM" ; then
48092 COND_TOOLKIT_PM=""
48093 fi
48094
48095 COND_TOOLKIT_PM_USE_GUI_1="#"
48096 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48097 COND_TOOLKIT_PM_USE_GUI_1=""
48098 fi
48099
48100 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48101 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48102 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48103 fi
48104
3fd9c298
DE
48105 COND_TOOLKIT_WINCE="#"
48106 if test "x$TOOLKIT" = "xWINCE" ; then
48107 COND_TOOLKIT_WINCE=""
48108 fi
48109
48110 COND_TOOLKIT_WINCE_USE_GUI_1="#"
48111 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48112 COND_TOOLKIT_WINCE_USE_GUI_1=""
48113 fi
48114
48115 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48116 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48117 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48118 fi
48119
0ee4059d
DE
48120 COND_TOOLKIT_WINCE_WXUNIV_0="#"
48121 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48122 COND_TOOLKIT_WINCE_WXUNIV_0=""
48123 fi
48124
a848cd7e
SC
48125 COND_TOOLKIT_X11="#"
48126 if test "x$TOOLKIT" = "xX11" ; then
48127 COND_TOOLKIT_X11=""
48128 fi
48129
48130 COND_TOOLKIT_X11_USE_GUI_1="#"
48131 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48132 COND_TOOLKIT_X11_USE_GUI_1=""
48133 fi
48134
48135 COND_UNICODE_1="#"
48136 if test "x$UNICODE" = "x1" ; then
48137 COND_UNICODE_1=""
48138 fi
48139
48140 COND_USE_EXCEPTIONS_0="#"
48141 if test "x$USE_EXCEPTIONS" = "x0" ; then
48142 COND_USE_EXCEPTIONS_0=""
48143 fi
48144
48145 COND_USE_EXCEPTIONS_1="#"
48146 if test "x$USE_EXCEPTIONS" = "x1" ; then
48147 COND_USE_EXCEPTIONS_1=""
48148 fi
48149
48150 COND_USE_GUI_0="#"
48151 if test "x$USE_GUI" = "x0" ; then
48152 COND_USE_GUI_0=""
48153 fi
48154
48155 COND_USE_GUI_1="#"
48156 if test "x$USE_GUI" = "x1" ; then
48157 COND_USE_GUI_1=""
48158 fi
48159
48160 COND_USE_GUI_1_WXUNIV_0="#"
48161 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48162 COND_USE_GUI_1_WXUNIV_0=""
48163 fi
48164
48165 COND_USE_GUI_1_WXUNIV_1="#"
48166 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48167 COND_USE_GUI_1_WXUNIV_1=""
48168 fi
48169
48170 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48171 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48172 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48173 fi
48174
48175 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48176 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48177 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48178 fi
48179
48180 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48181 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48182 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48183 fi
48184
083508af
MW
48185 COND_USE_ODBC_1="#"
48186 if test "x$USE_ODBC" = "x1" ; then
48187 COND_USE_ODBC_1=""
48188 fi
48189
48190 COND_USE_OPENGL_1="#"
48191 if test "x$USE_OPENGL" = "x1" ; then
48192 COND_USE_OPENGL_1=""
48193 fi
48194
f10e38c4
VZ
48195 COND_USE_PCH_1="#"
48196 if test "x$USE_PCH" = "x1" ; then
48197 COND_USE_PCH_1=""
48198 fi
48199
a848cd7e
SC
48200 COND_USE_PLUGINS_0="#"
48201 if test "x$USE_PLUGINS" = "x0" ; then
48202 COND_USE_PLUGINS_0=""
48203 fi
48204
0b78747f
MW
48205 COND_USE_RTTI_0="#"
48206 if test "x$USE_RTTI" = "x0" ; then
48207 COND_USE_RTTI_0=""
48208 fi
48209
48210 COND_USE_RTTI_1="#"
48211 if test "x$USE_RTTI" = "x1" ; then
48212 COND_USE_RTTI_1=""
48213 fi
48214
a848cd7e
SC
48215 COND_USE_SOSYMLINKS_1="#"
48216 if test "x$USE_SOSYMLINKS" = "x1" ; then
48217 COND_USE_SOSYMLINKS_1=""
48218 fi
48219
eb730a0c
JS
48220 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48221 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48222 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48223 fi
48224
a848cd7e
SC
48225 COND_USE_SOVERLINUX_1="#"
48226 if test "x$USE_SOVERLINUX" = "x1" ; then
48227 COND_USE_SOVERLINUX_1=""
48228 fi
48229
48230 COND_USE_SOVERSION_0="#"
48231 if test "x$USE_SOVERSION" = "x0" ; then
48232 COND_USE_SOVERSION_0=""
48233 fi
48234
48235 COND_USE_SOVERSOLARIS_1="#"
48236 if test "x$USE_SOVERSOLARIS" = "x1" ; then
48237 COND_USE_SOVERSOLARIS_1=""
48238 fi
48239
0b78747f
MW
48240 COND_USE_THREADS_0="#"
48241 if test "x$USE_THREADS" = "x0" ; then
48242 COND_USE_THREADS_0=""
48243 fi
48244
48245 COND_USE_THREADS_1="#"
48246 if test "x$USE_THREADS" = "x1" ; then
48247 COND_USE_THREADS_1=""
48248 fi
48249
a13a7f89
RL
48250 COND_USE_XRC_1="#"
48251 if test "x$USE_XRC" = "x1" ; then
48252 COND_USE_XRC_1=""
48253 fi
48254
eb730a0c
JS
48255 COND_WINDOWS_IMPLIB_1="#"
48256 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48257 COND_WINDOWS_IMPLIB_1=""
48258 fi
48259
a848cd7e
SC
48260 COND_WITH_PLUGIN_SDL_1="#"
48261 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48262 COND_WITH_PLUGIN_SDL_1=""
48263 fi
48264
1e6eb025
VZ
48265 COND_WXUNIV_0="#"
48266 if test "x$WXUNIV" = "x0" ; then
48267 COND_WXUNIV_0=""
48268 fi
48269
a848cd7e
SC
48270 COND_WXUNIV_1="#"
48271 if test "x$WXUNIV" = "x1" ; then
48272 COND_WXUNIV_1=""
48273 fi
48274
48275 COND_WXUSE_EXPAT_BUILTIN="#"
48276 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48277 COND_WXUSE_EXPAT_BUILTIN=""
48278 fi
48279
48280 COND_WXUSE_LIBJPEG_BUILTIN="#"
48281 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48282 COND_WXUSE_LIBJPEG_BUILTIN=""
48283 fi
48284
48285 COND_WXUSE_LIBPNG_BUILTIN="#"
48286 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48287 COND_WXUSE_LIBPNG_BUILTIN=""
48288 fi
48289
48290 COND_WXUSE_LIBTIFF_BUILTIN="#"
48291 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48292 COND_WXUSE_LIBTIFF_BUILTIN=""
48293 fi
48294
48295 COND_WXUSE_ODBC_BUILTIN="#"
48296 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48297 COND_WXUSE_ODBC_BUILTIN=""
48298 fi
48299
48300 COND_WXUSE_REGEX_BUILTIN="#"
48301 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48302 COND_WXUSE_REGEX_BUILTIN=""
48303 fi
48304
48305 COND_WXUSE_ZLIB_BUILTIN="#"
48306 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48307 COND_WXUSE_ZLIB_BUILTIN=""
48308 fi
48309
48310
48311
810b94f0
MW
48312 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48313 { { 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
48314echo "$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;}
48315 { (exit 1); exit 1; }; }
48316 fi
48317
2057db16
VS
48318 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48319 { { 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
48320echo "$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;}
48321 { (exit 1); exit 1; }; }
48322 fi
48323
a848cd7e 48324
7afc46ab
KO
48325
48326if test "$wxUSE_MAC" = 1 ; then
48327 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
48328 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48329 mv temp bk-deps
48330 chmod +x bk-deps
48331 fi
48332fi
48333
ceec2216
RL
48334if test "$wxUSE_SHARED" = "yes"; then
48335
48336 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48337 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48338
5b674b9d
DE
48339 case "${host}" in
48340 *-pc-os2_emx | *-pc-os2-emx )
48341 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48342 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48343 cp -p ${srcdir}/src/os2/dllnames.sh .
48344 cp -p ${srcdir}/src/os2/dllar.sh .
48345 ;;
48346 esac
ceec2216
RL
48347else
48348
48349 EXE_LINKER="$CXX -o"
48350
48351fi
69120ee4
VZ
48352if test "$wxUSE_OMF" = "yes"; then
48353 case "${host}" in
48354 *-pc-os2_emx | *-pc-os2-emx )
48355 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48356 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48357 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48358 ;;
48359 esac
48360fi
a848cd7e 48361
c08ebc62 48362if test $GCC_PCH = 1 ; then
254e8e29 48363 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48364fi
a848cd7e 48365
5ff751d6 48366WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48367
48368SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48369
48370
48371
48372
48373
48374
48375
48376
48377
48378
48379
48380
48381
48382
48383
48384
48385
48386
48387
48388
48389
48390
48391
48392
48393
48394
48395
48396
48397
48398
48399
48400
48401
48402
48403
48404
48405
48406
48407
48408
48409
48410
a848cd7e
SC
48411
48412
48413
48414
48415
48416
48417
48418
48419
48420
48421
48422
a848cd7e
SC
48423
48424
ddd14b14 48425
370d2fd7 48426
8ced02f6 48427
a848cd7e
SC
48428
48429
48430echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48431echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48432set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48433if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48434 echo $ECHO_N "(cached) $ECHO_C" >&6
48435else
48436 cat >conftest.make <<\_ACEOF
48437all:
48438 @echo 'ac_maketemp="$(MAKE)"'
48439_ACEOF
48440# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48441eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48442if test -n "$ac_maketemp"; then
48443 eval ac_cv_prog_make_${ac_make}_set=yes
48444else
48445 eval ac_cv_prog_make_${ac_make}_set=no
48446fi
48447rm -f conftest.make
48448fi
48449if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48450 echo "$as_me:$LINENO: result: yes" >&5
48451echo "${ECHO_T}yes" >&6
48452 SET_MAKE=
48453else
48454 echo "$as_me:$LINENO: result: no" >&5
48455echo "${ECHO_T}no" >&6
48456 SET_MAKE="MAKE=${MAKE-make}"
48457fi
48458
48459
a848cd7e 48460
ceec2216
RL
48461 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48462
a848cd7e 48463
5c60e845
MW
48464if test "$USE_WIN32" = 1; then
48465 ac_config_commands="$ac_config_commands
48466 rcdefs.h
48467 "
48468
48469fi
48470
ceec2216 48471 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48472
a848cd7e 48473
ceec2216 48474 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48475
ceec2216
RL
48476
48477 ac_config_files="$ac_config_files version-script Makefile"
48478
48479
5c60e845 48480 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48481
48482
9103d280 48483
1c14217d 48484if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48485if test "$wxUSE_GUI" = "yes"; then
48486 SUBDIRS="samples demos utils contrib"
48487else SUBDIRS="samples utils"
48488fi
48489
48490
48491
48492# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48493if test "${with_cppunit_prefix+set}" = set; then
48494 withval="$with_cppunit_prefix"
48495 cppunit_config_prefix="$withval"
48496else
48497 cppunit_config_prefix=""
48498fi;
48499
48500# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48501if test "${with_cppunit_exec_prefix+set}" = set; then
48502 withval="$with_cppunit_exec_prefix"
48503 cppunit_config_exec_prefix="$withval"
48504else
48505 cppunit_config_exec_prefix=""
48506fi;
48507
48508 if test x$cppunit_config_exec_prefix != x ; then
48509 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48510 if test x${CPPUNIT_CONFIG+set} != xset ; then
48511 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48512 fi
48513 fi
48514 if test x$cppunit_config_prefix != x ; then
48515 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48516 if test x${CPPUNIT_CONFIG+set} != xset ; then
48517 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48518 fi
48519 fi
48520
48521 # Extract the first word of "cppunit-config", so it can be a program name with args.
48522set dummy cppunit-config; ac_word=$2
48523echo "$as_me:$LINENO: checking for $ac_word" >&5
48524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48525if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48526 echo $ECHO_N "(cached) $ECHO_C" >&6
48527else
48528 case $CPPUNIT_CONFIG in
48529 [\\/]* | ?:[\\/]*)
48530 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48531 ;;
48532 *)
48533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48534for as_dir in $PATH
48535do
48536 IFS=$as_save_IFS
48537 test -z "$as_dir" && as_dir=.
48538 for ac_exec_ext in '' $ac_executable_extensions; do
48539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48540 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48542 break 2
48543 fi
48544done
48545done
48546
48547 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48548 ;;
48549esac
48550fi
48551CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48552
48553if test -n "$CPPUNIT_CONFIG"; then
48554 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48555echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48556else
48557 echo "$as_me:$LINENO: result: no" >&5
48558echo "${ECHO_T}no" >&6
48559fi
48560
48561 cppunit_version_min=1.8.0
48562
48563 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48564echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48565 no_cppunit=""
48566 if test "$CPPUNIT_CONFIG" = "no" ; then
48567 no_cppunit=yes
48568 else
48569 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48570 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48571 cppunit_version=`$CPPUNIT_CONFIG --version`
48572
48573 cppunit_major_version=`echo $cppunit_version | \
48574 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48575 cppunit_minor_version=`echo $cppunit_version | \
48576 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48577 cppunit_micro_version=`echo $cppunit_version | \
48578 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48579
48580 cppunit_major_min=`echo $cppunit_version_min | \
48581 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48582 cppunit_minor_min=`echo $cppunit_version_min | \
48583 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48584 cppunit_micro_min=`echo $cppunit_version_min | \
48585 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48586
48587 cppunit_version_proper=`expr \
48588 $cppunit_major_version \> $cppunit_major_min \| \
48589 $cppunit_major_version \= $cppunit_major_min \& \
48590 $cppunit_minor_version \> $cppunit_minor_min \| \
48591 $cppunit_major_version \= $cppunit_major_min \& \
48592 $cppunit_minor_version \= $cppunit_minor_min \& \
48593 $cppunit_micro_version \>= $cppunit_micro_min `
48594
48595 if test "$cppunit_version_proper" = "1" ; then
48596 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48597echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48598 else
48599 echo "$as_me:$LINENO: result: no" >&5
48600echo "${ECHO_T}no" >&6
48601 no_cppunit=yes
48602 fi
48603 fi
48604
48605 if test "x$no_cppunit" = x ; then
c2218763 48606 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48607 else
48608 CPPUNIT_CFLAGS=""
48609 CPPUNIT_LIBS=""
c2218763 48610 :
a848cd7e
SC
48611 fi
48612
48613
48614
48615
48616
48617for subdir in `echo $SUBDIRS`; do
48618 if test -d ${srcdir}/${subdir} ; then
48619 if test "$wxUSE_GUI" = "yes"; then
48620 if test ${subdir} = "samples"; then
48621 makefiles="samples/Makefile.in $makefiles"
48622 for sample in `echo $SAMPLES_SUBDIRS`; do
48623 if test -d $srcdir/samples/$sample; then
48624 makefiles="samples/$sample/Makefile.in $makefiles"
48625 fi
48626 done
9c112555
MW
48627 else
48628 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48629 eval "disabled=\$$disabled_var"
48630 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48631 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48632 fi
48633 else if test ${subdir} = "samples"; then
48634 makefiles="samples/Makefile.in samples/console/Makefile.in"
48635 elif test ${subdir} = "utils"; then
6537ccf8
VS
48636 makefiles=""
48637 for util in HelpGen tex2rtf ; do
48638 if test -d $srcdir/utils/$util ; then
48639 makefiles="utils/$util/Makefile.in \
48640 utils/$util/src/Makefile.in \
48641 $makefiles"
48642 fi
48643 done
a848cd7e
SC
48644 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48645 fi
48646 fi
48647
48648 for mkin in $makefiles ; do
48649 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48650 ac_config_files="$ac_config_files $mk"
48651
48652 done
48653 fi
48654done
1c14217d 48655fi
a848cd7e
SC
48656cat >confcache <<\_ACEOF
48657# This file is a shell script that caches the results of configure
48658# tests run on this system so they can be shared between configure
48659# scripts and configure runs, see configure's option --config-cache.
48660# It is not useful on other systems. If it contains results you don't
48661# want to keep, you may remove or edit it.
48662#
48663# config.status only pays attention to the cache file if you give it
48664# the --recheck option to rerun configure.
48665#
48666# `ac_cv_env_foo' variables (set or unset) will be overridden when
48667# loading this file, other *unset* `ac_cv_foo' will be assigned the
48668# following values.
48669
48670_ACEOF
48671
48672# The following way of writing the cache mishandles newlines in values,
48673# but we know of no workaround that is simple, portable, and efficient.
48674# So, don't put newlines in cache variables' values.
48675# Ultrix sh set writes to stderr and can't be redirected directly,
48676# and sets the high bit in the cache file unless we assign to the vars.
48677{
48678 (set) 2>&1 |
48679 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48680 *ac_space=\ *)
48681 # `set' does not quote correctly, so add quotes (double-quote
48682 # substitution turns \\\\ into \\, and sed turns \\ into \).
48683 sed -n \
ac1cb8d3
VS
48684 "s/'/'\\\\''/g;
48685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48686 ;;
48687 *)
48688 # `set' quotes correctly as required by POSIX, so do not add quotes.
48689 sed -n \
ac1cb8d3 48690 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48691 ;;
48692 esac;
48693} |
48694 sed '
48695 t clear
48696 : clear
48697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48698 t end
48699 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48700 : end' >>confcache
48701if diff $cache_file confcache >/dev/null 2>&1; then :; else
48702 if test -w $cache_file; then
48703 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48704 cat confcache >$cache_file
48705 else
48706 echo "not updating unwritable cache $cache_file"
48707 fi
48708fi
48709rm -f confcache
48710
48711test "x$prefix" = xNONE && prefix=$ac_default_prefix
48712# Let make expand exec_prefix.
48713test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48714
48715# VPATH may cause trouble with some makes, so we remove $(srcdir),
48716# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48717# trailing colons and then remove the whole line if VPATH becomes empty
48718# (actually we leave an empty line to preserve line numbers).
48719if test "x$srcdir" = x.; then
ac1cb8d3 48720 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
48721s/:*\$(srcdir):*/:/;
48722s/:*\${srcdir}:*/:/;
48723s/:*@srcdir@:*/:/;
ac1cb8d3 48724s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48725s/:*$//;
ac1cb8d3 48726s/^[^=]*=[ ]*$//;
a848cd7e
SC
48727}'
48728fi
48729
48730DEFS=-DHAVE_CONFIG_H
48731
48732ac_libobjs=
48733ac_ltlibobjs=
48734for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48735 # 1. Remove the extension, and $U if already installed.
48736 ac_i=`echo "$ac_i" |
ac1cb8d3 48737 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48738 # 2. Add them.
48739 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48740 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48741done
48742LIBOBJS=$ac_libobjs
48743
48744LTLIBOBJS=$ac_ltlibobjs
48745
48746
48747
48748: ${CONFIG_STATUS=./config.status}
48749ac_clean_files_save=$ac_clean_files
48750ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48751{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48752echo "$as_me: creating $CONFIG_STATUS" >&6;}
48753cat >$CONFIG_STATUS <<_ACEOF
48754#! $SHELL
48755# Generated by $as_me.
48756# Run this file to recreate the current configuration.
48757# Compiler output produced by configure, useful for debugging
48758# configure, is in config.log if it exists.
48759
48760debug=false
48761ac_cs_recheck=false
48762ac_cs_silent=false
48763SHELL=\${CONFIG_SHELL-$SHELL}
48764_ACEOF
48765
48766cat >>$CONFIG_STATUS <<\_ACEOF
48767## --------------------- ##
48768## M4sh Initialization. ##
48769## --------------------- ##
48770
48771# Be Bourne compatible
48772if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48773 emulate sh
48774 NULLCMD=:
48775 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48776 # is contrary to our usage. Disable this feature.
48777 alias -g '${1+"$@"}'='"$@"'
48778elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48779 set -o posix
48780fi
ac1cb8d3 48781DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48782
48783# Support unset when possible.
ac1cb8d3 48784if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48785 as_unset=unset
48786else
48787 as_unset=false
48788fi
48789
48790
48791# Work around bugs in pre-3.0 UWIN ksh.
48792$as_unset ENV MAIL MAILPATH
48793PS1='$ '
48794PS2='> '
48795PS4='+ '
48796
48797# NLS nuisances.
48798for as_var in \
48799 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48800 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48801 LC_TELEPHONE LC_TIME
48802do
ac1cb8d3 48803 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48804 eval $as_var=C; export $as_var
48805 else
48806 $as_unset $as_var
48807 fi
48808done
48809
48810# Required to use basename.
48811if expr a : '\(a\)' >/dev/null 2>&1; then
48812 as_expr=expr
48813else
48814 as_expr=false
48815fi
48816
48817if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48818 as_basename=basename
48819else
48820 as_basename=false
48821fi
48822
48823
48824# Name of the executable.
48825as_me=`$as_basename "$0" ||
48826$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48827 X"$0" : 'X\(//\)$' \| \
48828 X"$0" : 'X\(/\)$' \| \
48829 . : '\(.\)' 2>/dev/null ||
48830echo X/"$0" |
48831 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48832 /^X\/\(\/\/\)$/{ s//\1/; q; }
48833 /^X\/\(\/\).*/{ s//\1/; q; }
48834 s/.*/./; q'`
48835
48836
48837# PATH needs CR, and LINENO needs CR and PATH.
48838# Avoid depending upon Character Ranges.
48839as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48840as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48841as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48842as_cr_digits='0123456789'
48843as_cr_alnum=$as_cr_Letters$as_cr_digits
48844
48845# The user is always right.
48846if test "${PATH_SEPARATOR+set}" != set; then
48847 echo "#! /bin/sh" >conf$$.sh
48848 echo "exit 0" >>conf$$.sh
48849 chmod +x conf$$.sh
48850 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48851 PATH_SEPARATOR=';'
48852 else
48853 PATH_SEPARATOR=:
48854 fi
48855 rm -f conf$$.sh
48856fi
48857
48858
48859 as_lineno_1=$LINENO
48860 as_lineno_2=$LINENO
48861 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48862 test "x$as_lineno_1" != "x$as_lineno_2" &&
48863 test "x$as_lineno_3" = "x$as_lineno_2" || {
48864 # Find who we are. Look in the path if we contain no path at all
48865 # relative or not.
48866 case $0 in
48867 *[\\/]* ) as_myself=$0 ;;
48868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48869for as_dir in $PATH
48870do
48871 IFS=$as_save_IFS
48872 test -z "$as_dir" && as_dir=.
48873 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48874done
48875
48876 ;;
48877 esac
48878 # We did not find ourselves, most probably we were run as `sh COMMAND'
48879 # in which case we are not to be found in the path.
48880 if test "x$as_myself" = x; then
48881 as_myself=$0
48882 fi
48883 if test ! -f "$as_myself"; then
48884 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48885echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48886 { (exit 1); exit 1; }; }
48887 fi
48888 case $CONFIG_SHELL in
48889 '')
48890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48891for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48892do
48893 IFS=$as_save_IFS
48894 test -z "$as_dir" && as_dir=.
48895 for as_base in sh bash ksh sh5; do
48896 case $as_dir in
48897 /*)
48898 if ("$as_dir/$as_base" -c '
48899 as_lineno_1=$LINENO
48900 as_lineno_2=$LINENO
48901 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48902 test "x$as_lineno_1" != "x$as_lineno_2" &&
48903 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
48904 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48905 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48906 CONFIG_SHELL=$as_dir/$as_base
48907 export CONFIG_SHELL
48908 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48909 fi;;
48910 esac
48911 done
48912done
48913;;
48914 esac
48915
48916 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48917 # uniformly replaced by the line number. The first 'sed' inserts a
48918 # line-number line before each line; the second 'sed' does the real
48919 # work. The second script uses 'N' to pair each line-number line
48920 # with the numbered line, and appends trailing '-' during
48921 # substitution so that $LINENO is not a special case at line end.
48922 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48923 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
48924 sed '=' <$as_myself |
48925 sed '
48926 N
48927 s,$,-,
48928 : loop
48929 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48930 t loop
48931 s,-$,,
48932 s,^['$as_cr_digits']*\n,,
48933 ' >$as_me.lineno &&
48934 chmod +x $as_me.lineno ||
48935 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48936echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48937 { (exit 1); exit 1; }; }
48938
48939 # Don't try to exec as it changes $[0], causing all sort of problems
48940 # (the dirname of $[0] is not the place where we might find the
48941 # original and so on. Autoconf is especially sensible to this).
48942 . ./$as_me.lineno
48943 # Exit status is that of the last command.
48944 exit
48945}
48946
48947
48948case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48949 *c*,-n*) ECHO_N= ECHO_C='
48950' ECHO_T=' ' ;;
48951 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48952 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
48953esac
48954
48955if expr a : '\(a\)' >/dev/null 2>&1; then
48956 as_expr=expr
48957else
48958 as_expr=false
48959fi
48960
48961rm -f conf$$ conf$$.exe conf$$.file
48962echo >conf$$.file
48963if ln -s conf$$.file conf$$ 2>/dev/null; then
48964 # We could just check for DJGPP; but this test a) works b) is more generic
48965 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48966 if test -f conf$$.exe; then
48967 # Don't use ln at all; we don't have any links
48968 as_ln_s='cp -p'
48969 else
48970 as_ln_s='ln -s'
48971 fi
48972elif ln conf$$.file conf$$ 2>/dev/null; then
48973 as_ln_s=ln
48974else
48975 as_ln_s='cp -p'
48976fi
48977rm -f conf$$ conf$$.exe conf$$.file
48978
48979if mkdir -p . 2>/dev/null; then
48980 as_mkdir_p=:
48981else
ac1cb8d3 48982 test -d ./-p && rmdir ./-p
a848cd7e
SC
48983 as_mkdir_p=false
48984fi
48985
48986as_executable_p="test -f"
48987
48988# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 48989as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48990
48991# Sed expression to map a string onto a valid variable name.
ac1cb8d3 48992as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48993
48994
48995# IFS
48996# We need space, tab and new line, in precisely that order.
48997as_nl='
48998'
48999IFS=" $as_nl"
49000
49001# CDPATH.
49002$as_unset CDPATH
49003
49004exec 6>&1
49005
49006# Open the log real soon, to keep \$[0] and so on meaningful, and to
49007# report actual input values of CONFIG_FILES etc. instead of their
49008# values after options handling. Logging --version etc. is OK.
49009exec 5>>config.log
49010{
49011 echo
49012 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49013## Running $as_me. ##
49014_ASBOX
49015} >&5
49016cat >&5 <<_CSEOF
49017
dd8df4fc 49018This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 49019generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
49020
49021 CONFIG_FILES = $CONFIG_FILES
49022 CONFIG_HEADERS = $CONFIG_HEADERS
49023 CONFIG_LINKS = $CONFIG_LINKS
49024 CONFIG_COMMANDS = $CONFIG_COMMANDS
49025 $ $0 $@
49026
49027_CSEOF
49028echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49029echo >&5
49030_ACEOF
49031
49032# Files that config.status was made for.
49033if test -n "$ac_config_files"; then
49034 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49035fi
49036
49037if test -n "$ac_config_headers"; then
49038 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49039fi
49040
49041if test -n "$ac_config_links"; then
49042 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49043fi
49044
49045if test -n "$ac_config_commands"; then
49046 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49047fi
49048
49049cat >>$CONFIG_STATUS <<\_ACEOF
49050
49051ac_cs_usage="\
49052\`$as_me' instantiates files from templates according to the
49053current configuration.
49054
49055Usage: $0 [OPTIONS] [FILE]...
49056
49057 -h, --help print this help, then exit
49058 -V, --version print version number, then exit
49059 -q, --quiet do not print progress messages
49060 -d, --debug don't remove temporary files
49061 --recheck update $as_me by reconfiguring in the same conditions
49062 --file=FILE[:TEMPLATE]
ac1cb8d3 49063 instantiate the configuration file FILE
a848cd7e 49064 --header=FILE[:TEMPLATE]
ac1cb8d3 49065 instantiate the configuration header FILE
a848cd7e
SC
49066
49067Configuration files:
49068$config_files
49069
49070Configuration headers:
49071$config_headers
49072
49073Configuration commands:
49074$config_commands
49075
49076Report bugs to <bug-autoconf@gnu.org>."
49077_ACEOF
49078
49079cat >>$CONFIG_STATUS <<_ACEOF
49080ac_cs_version="\\
dd8df4fc 49081wxWidgets config.status 2.7.0
ac1cb8d3 49082configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
49083 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49084
ac1cb8d3 49085Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
49086This config.status script is free software; the Free Software Foundation
49087gives unlimited permission to copy, distribute and modify it."
49088srcdir=$srcdir
49089INSTALL="$INSTALL"
49090_ACEOF
49091
49092cat >>$CONFIG_STATUS <<\_ACEOF
49093# If no file are specified by the user, then we need to provide default
49094# value. By we need to know if files were specified by the user.
49095ac_need_defaults=:
49096while test $# != 0
49097do
49098 case $1 in
49099 --*=*)
49100 ac_option=`expr "x$1" : 'x\([^=]*\)='`
49101 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49102 ac_shift=:
49103 ;;
49104 -*)
49105 ac_option=$1
49106 ac_optarg=$2
49107 ac_shift=shift
49108 ;;
49109 *) # This is not an option, so the user has probably given explicit
49110 # arguments.
49111 ac_option=$1
49112 ac_need_defaults=false;;
49113 esac
49114
49115 case $ac_option in
49116 # Handling of the options.
49117_ACEOF
49118cat >>$CONFIG_STATUS <<\_ACEOF
49119 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49120 ac_cs_recheck=: ;;
49121 --version | --vers* | -V )
49122 echo "$ac_cs_version"; exit 0 ;;
49123 --he | --h)
49124 # Conflict between --help and --header
49125 { { echo "$as_me:$LINENO: error: ambiguous option: $1
49126Try \`$0 --help' for more information." >&5
49127echo "$as_me: error: ambiguous option: $1
49128Try \`$0 --help' for more information." >&2;}
49129 { (exit 1); exit 1; }; };;
49130 --help | --hel | -h )
49131 echo "$ac_cs_usage"; exit 0 ;;
49132 --debug | --d* | -d )
49133 debug=: ;;
49134 --file | --fil | --fi | --f )
49135 $ac_shift
49136 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49137 ac_need_defaults=false;;
49138 --header | --heade | --head | --hea )
49139 $ac_shift
49140 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49141 ac_need_defaults=false;;
49142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49143 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49144 ac_cs_silent=: ;;
49145
49146 # This is an error.
49147 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49148Try \`$0 --help' for more information." >&5
49149echo "$as_me: error: unrecognized option: $1
49150Try \`$0 --help' for more information." >&2;}
49151 { (exit 1); exit 1; }; } ;;
49152
49153 *) ac_config_targets="$ac_config_targets $1" ;;
49154
49155 esac
49156 shift
49157done
49158
49159ac_configure_extra_args=
49160
49161if $ac_cs_silent; then
49162 exec 6>/dev/null
49163 ac_configure_extra_args="$ac_configure_extra_args --silent"
49164fi
49165
49166_ACEOF
49167cat >>$CONFIG_STATUS <<_ACEOF
49168if \$ac_cs_recheck; then
49169 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49170 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49171fi
49172
49173_ACEOF
49174
49175cat >>$CONFIG_STATUS <<_ACEOF
49176#
49177# INIT-COMMANDS section.
49178#
49179
5c60e845
MW
49180
49181 CPP="$CPP"
49182 infile="$srcdir/include/wx/msw/genrcdefs.h"
49183 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49184
49185
ceec2216
RL
49186 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49187 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49188 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49189 LN_S="${LN_S}"
a848cd7e
SC
49190
49191
49192_ACEOF
49193
49194
49195
49196cat >>$CONFIG_STATUS <<\_ACEOF
49197for ac_config_target in $ac_config_targets
49198do
49199 case "$ac_config_target" in
49200 # Handling of arguments.
ceec2216
RL
49201 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49202 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
49203 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49204 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49205 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 49206 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
49207 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49208 "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
49209 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49210echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49211 { (exit 1); exit 1; }; };;
49212 esac
49213done
49214
49215# If the user did not use the arguments to specify the items to instantiate,
49216# then the envvar interface is used. Set only those that are not.
49217# We use the long form for the default assignment because of an extremely
49218# bizarre bug on SunOS 4.1.3.
49219if $ac_need_defaults; then
49220 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49221 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49222 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49223fi
49224
49225# Have a temporary directory for convenience. Make it in the build tree
49226# simply because there is no reason to put it here, and in addition,
49227# creating and moving files from /tmp can sometimes cause problems.
49228# Create a temporary directory, and hook for its removal unless debugging.
49229$debug ||
49230{
49231 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49232 trap '{ (exit 1); exit 1; }' 1 2 13 15
49233}
49234
49235# Create a (secure) tmp directory for tmp files.
49236
49237{
49238 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49239 test -n "$tmp" && test -d "$tmp"
49240} ||
49241{
49242 tmp=./confstat$$-$RANDOM
49243 (umask 077 && mkdir $tmp)
49244} ||
49245{
49246 echo "$me: cannot create a temporary directory in ." >&2
49247 { (exit 1); exit 1; }
49248}
49249
49250_ACEOF
49251
49252cat >>$CONFIG_STATUS <<_ACEOF
49253
49254#
49255# CONFIG_FILES section.
49256#
49257
49258# No need to generate the scripts if there are no CONFIG_FILES.
49259# This happens for instance when ./config.status config.h
49260if test -n "\$CONFIG_FILES"; then
49261 # Protect against being on the right side of a sed subst in config.status.
49262 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49263 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49264s,@SHELL@,$SHELL,;t t
49265s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49266s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49267s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49268s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49269s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49270s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49271s,@exec_prefix@,$exec_prefix,;t t
49272s,@prefix@,$prefix,;t t
49273s,@program_transform_name@,$program_transform_name,;t t
49274s,@bindir@,$bindir,;t t
49275s,@sbindir@,$sbindir,;t t
49276s,@libexecdir@,$libexecdir,;t t
49277s,@datadir@,$datadir,;t t
49278s,@sysconfdir@,$sysconfdir,;t t
49279s,@sharedstatedir@,$sharedstatedir,;t t
49280s,@localstatedir@,$localstatedir,;t t
49281s,@libdir@,$libdir,;t t
49282s,@includedir@,$includedir,;t t
49283s,@oldincludedir@,$oldincludedir,;t t
49284s,@infodir@,$infodir,;t t
49285s,@mandir@,$mandir,;t t
49286s,@build_alias@,$build_alias,;t t
49287s,@host_alias@,$host_alias,;t t
49288s,@target_alias@,$target_alias,;t t
49289s,@DEFS@,$DEFS,;t t
49290s,@ECHO_C@,$ECHO_C,;t t
49291s,@ECHO_N@,$ECHO_N,;t t
49292s,@ECHO_T@,$ECHO_T,;t t
49293s,@LIBS@,$LIBS,;t t
49294s,@build@,$build,;t t
49295s,@build_cpu@,$build_cpu,;t t
49296s,@build_vendor@,$build_vendor,;t t
49297s,@build_os@,$build_os,;t t
49298s,@host@,$host,;t t
49299s,@host_cpu@,$host_cpu,;t t
49300s,@host_vendor@,$host_vendor,;t t
49301s,@host_os@,$host_os,;t t
49302s,@target@,$target,;t t
49303s,@target_cpu@,$target_cpu,;t t
49304s,@target_vendor@,$target_vendor,;t t
49305s,@target_os@,$target_os,;t t
49306s,@CC@,$CC,;t t
49307s,@CFLAGS@,$CFLAGS,;t t
49308s,@LDFLAGS@,$LDFLAGS,;t t
49309s,@CPPFLAGS@,$CPPFLAGS,;t t
49310s,@ac_ct_CC@,$ac_ct_CC,;t t
49311s,@EXEEXT@,$EXEEXT,;t t
49312s,@OBJEXT@,$OBJEXT,;t t
49313s,@CPP@,$CPP,;t t
49314s,@EGREP@,$EGREP,;t t
49315s,@CXX@,$CXX,;t t
49316s,@CXXFLAGS@,$CXXFLAGS,;t t
49317s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49318s,@RANLIB@,$RANLIB,;t t
49319s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49320s,@AR@,$AR,;t t
8c80d384 49321s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49322s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49323s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49324s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49325s,@STRIP@,$STRIP,;t t
8c80d384 49326s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49327s,@WINDRES@,$WINDRES,;t t
49328s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49329s,@DLLTOOL@,$DLLTOOL,;t t
49330s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49331s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49332s,@LN_S@,$LN_S,;t t
49333s,@CXXCPP@,$CXXCPP,;t t
49334s,@subdirs@,$subdirs,;t t
49335s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49336s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49337s,@GTK_LIBS@,$GTK_LIBS,;t t
49338s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49339s,@X_CFLAGS@,$X_CFLAGS,;t t
49340s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49341s,@X_LIBS@,$X_LIBS,;t t
49342s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49343s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49344s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49345s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49346s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49347s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49348s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49349s,@REZ@,$REZ,;t t
a848cd7e
SC
49350s,@DEREZ@,$DEREZ,;t t
49351s,@SETFILE@,$SETFILE,;t t
49352s,@LIBICONV@,$LIBICONV,;t t
49353s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49354s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49355s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49356s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49357s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49358s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
49359s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49360s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
49361s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49362s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
49363s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49364s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
49365s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49366s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49367s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49368s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49369s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49370s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49371s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49372s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49373s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49374s,@VENDOR@,$VENDOR,;t t
49375s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49376s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49377s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49378s,@WXUNIV@,$WXUNIV,;t t
49379s,@MONOLITHIC@,$MONOLITHIC,;t t
49380s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49381s,@EXTRALIBS@,$EXTRALIBS,;t t
49382s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49383s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49384s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49385s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49386s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49387s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49388s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49389s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 49390s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 49391s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49392s,@UNICODE@,$UNICODE,;t t
49393s,@BUILD@,$BUILD,;t t
49394s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49395s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49396s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49397s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49398s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49399s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49400s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49401s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49402s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49403s,@SET_MAKE@,$SET_MAKE,;t t
49404s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49405s,@NM@,$NM,;t t
49406s,@ac_ct_NM@,$ac_ct_NM,;t t
49407s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49408s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49409s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49410s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49411s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49412s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49413s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49414s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49415s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49416s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49417s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49418s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49419s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49420s,@LIBPREFIX@,$LIBPREFIX,;t t
49421s,@LIBEXT@,$LIBEXT,;t t
49422s,@DLLPREFIX@,$DLLPREFIX,;t t
49423s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49424s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49425s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49426s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49427s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49428s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49429s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49430s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49431s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49432s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49433s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49434s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49435s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49436s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49437s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49438s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49439s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49440s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 49441s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
49442s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49443s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49444s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49445s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49446s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49447s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49448s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49449s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49450s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49451s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49452s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49453s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49454s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49455s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49456s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49457s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49458s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49459s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49460s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49461s,@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 49462s,@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 49463s,@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 49464s,@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 49465s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 49466s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49467s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49468s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49469s,@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 49470s,@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 49471s,@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 49472s,@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 49473s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 49474s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49475s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49476s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49477s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49478s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49479s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49480s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49481s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49482s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49483s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49484s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49485s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49486s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49487s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49488s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49489s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49490s,@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
49491s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49492s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49493s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49494s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49495s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49496s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 49497s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 49498s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49499s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49500s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49501s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49502s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49503s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49504s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49505s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49506s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49507s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49508s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49509s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49510s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49511s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49512s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49513s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49514s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49515s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49516s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49517s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49518s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49519s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49520s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49521s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49522s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49523s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49524s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49525s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49526s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49527s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49528s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49529s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49530s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49531s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49532s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49533s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49534s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49535s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49536s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49537s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49538s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49539s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49540s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49541s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49542s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49543s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49544s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49545s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49546s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49547s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49548s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49549s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49550s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49551s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49552s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49553s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49554s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49555s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49556s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49557s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49558s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49559s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49560s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49561s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49562s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49563s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49564s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49565s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49566s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 49567s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 49568s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49569s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49570s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49571s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49572s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49573s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49574s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49575s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49576s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49577s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49578s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49579s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49580s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49581s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49582s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49583s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49584s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49585s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49586s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49587s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49588s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49589s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49590s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49591s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49592s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49593s,@USE_GUI@,$USE_GUI,;t t
49594s,@AFMINSTALL@,$AFMINSTALL,;t t
49595s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49596s,@TOOLKIT@,$TOOLKIT,;t t
49597s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49598s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49599s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49600s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49601s,@WIDGET_SET@,$WIDGET_SET,;t t
49602s,@WX_RELEASE@,$WX_RELEASE,;t t
49603s,@WX_VERSION@,$WX_VERSION,;t t
49604s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49605s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49606s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49607s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49608s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49609s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49610s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49611s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49612s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49613s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49614s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49615s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49616s,@DISTDIR@,$DISTDIR,;t t
49617s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49618s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49619s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49620s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49621s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49622s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49623s,@RESFLAGS@,$RESFLAGS,;t t
49624s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49625s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49626s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49627s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49628s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49629s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49630s,@GCC@,$GCC,;t t
a848cd7e
SC
49631s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49632s,@LIBOBJS@,$LIBOBJS,;t t
49633s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49634CEOF
49635
49636_ACEOF
49637
49638 cat >>$CONFIG_STATUS <<\_ACEOF
49639 # Split the substitutions into bite-sized pieces for seds with
49640 # small command number limits, like on Digital OSF/1 and HP-UX.
49641 ac_max_sed_lines=48
49642 ac_sed_frag=1 # Number of current file.
49643 ac_beg=1 # First line for current file.
49644 ac_end=$ac_max_sed_lines # Line after last line for current file.
49645 ac_more_lines=:
49646 ac_sed_cmds=
49647 while $ac_more_lines; do
49648 if test $ac_beg -gt 1; then
49649 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49650 else
49651 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49652 fi
49653 if test ! -s $tmp/subs.frag; then
49654 ac_more_lines=false
49655 else
49656 # The purpose of the label and of the branching condition is to
49657 # speed up the sed processing (if there are no `@' at all, there
49658 # is no need to browse any of the substitutions).
49659 # These are the two extra sed commands mentioned above.
49660 (echo ':t
49661 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49662 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49663 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49664 else
ac1cb8d3 49665 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49666 fi
49667 ac_sed_frag=`expr $ac_sed_frag + 1`
49668 ac_beg=$ac_end
49669 ac_end=`expr $ac_end + $ac_max_sed_lines`
49670 fi
49671 done
49672 if test -z "$ac_sed_cmds"; then
49673 ac_sed_cmds=cat
49674 fi
49675fi # test -n "$CONFIG_FILES"
49676
49677_ACEOF
49678cat >>$CONFIG_STATUS <<\_ACEOF
49679for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49680 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49681 case $ac_file in
49682 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49683 cat >$tmp/stdin
49684 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49685 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49686 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49688 * ) ac_file_in=$ac_file.in ;;
49689 esac
49690
49691 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49692 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49693$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49694 X"$ac_file" : 'X\(//\)[^/]' \| \
49695 X"$ac_file" : 'X\(//\)$' \| \
49696 X"$ac_file" : 'X\(/\)' \| \
49697 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49698echo X"$ac_file" |
49699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49701 /^X\(\/\/\)$/{ s//\1/; q; }
49702 /^X\(\/\).*/{ s//\1/; q; }
49703 s/.*/./; q'`
49704 { if $as_mkdir_p; then
49705 mkdir -p "$ac_dir"
49706 else
49707 as_dir="$ac_dir"
49708 as_dirs=
49709 while test ! -d "$as_dir"; do
49710 as_dirs="$as_dir $as_dirs"
49711 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49712$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49713 X"$as_dir" : 'X\(//\)[^/]' \| \
49714 X"$as_dir" : 'X\(//\)$' \| \
49715 X"$as_dir" : 'X\(/\)' \| \
49716 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49717echo X"$as_dir" |
49718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49720 /^X\(\/\/\)$/{ s//\1/; q; }
49721 /^X\(\/\).*/{ s//\1/; q; }
49722 s/.*/./; q'`
49723 done
49724 test ! -n "$as_dirs" || mkdir $as_dirs
49725 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49726echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49727 { (exit 1); exit 1; }; }; }
49728
49729 ac_builddir=.
49730
49731if test "$ac_dir" != .; then
49732 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49733 # A "../" for each directory in $ac_dir_suffix.
49734 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49735else
49736 ac_dir_suffix= ac_top_builddir=
49737fi
49738
49739case $srcdir in
49740 .) # No --srcdir option. We are building in place.
49741 ac_srcdir=.
49742 if test -z "$ac_top_builddir"; then
49743 ac_top_srcdir=.
49744 else
49745 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49746 fi ;;
49747 [\\/]* | ?:[\\/]* ) # Absolute path.
49748 ac_srcdir=$srcdir$ac_dir_suffix;
49749 ac_top_srcdir=$srcdir ;;
49750 *) # Relative path.
49751 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49752 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49753esac
ac1cb8d3
VS
49754
49755# Do not use `cd foo && pwd` to compute absolute paths, because
49756# the directories may not exist.
49757case `pwd` in
49758.) ac_abs_builddir="$ac_dir";;
49759*)
49760 case "$ac_dir" in
49761 .) ac_abs_builddir=`pwd`;;
49762 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49763 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49764 esac;;
49765esac
49766case $ac_abs_builddir in
49767.) ac_abs_top_builddir=${ac_top_builddir}.;;
49768*)
49769 case ${ac_top_builddir}. in
49770 .) ac_abs_top_builddir=$ac_abs_builddir;;
49771 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49772 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49773 esac;;
49774esac
49775case $ac_abs_builddir in
49776.) ac_abs_srcdir=$ac_srcdir;;
49777*)
49778 case $ac_srcdir in
49779 .) ac_abs_srcdir=$ac_abs_builddir;;
49780 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49781 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49782 esac;;
49783esac
49784case $ac_abs_builddir in
49785.) ac_abs_top_srcdir=$ac_top_srcdir;;
49786*)
49787 case $ac_top_srcdir in
49788 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49789 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49790 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49791 esac;;
49792esac
a848cd7e
SC
49793
49794
49795 case $INSTALL in
49796 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49797 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49798 esac
49799
a848cd7e
SC
49800 # Let's still pretend it is `configure' which instantiates (i.e., don't
49801 # use $as_me), people would be surprised to read:
49802 # /* config.h. Generated by config.status. */
49803 if test x"$ac_file" = x-; then
49804 configure_input=
49805 else
49806 configure_input="$ac_file. "
49807 fi
49808 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49809 sed 's,.*/,,'` by configure."
a848cd7e
SC
49810
49811 # First look for the input files in the build tree, otherwise in the
49812 # src tree.
49813 ac_file_inputs=`IFS=:
49814 for f in $ac_file_in; do
49815 case $f in
49816 -) echo $tmp/stdin ;;
49817 [\\/$]*)
ac1cb8d3
VS
49818 # Absolute (can't be DOS-style, as IFS=:)
49819 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49820echo "$as_me: error: cannot find input file: $f" >&2;}
49821 { (exit 1); exit 1; }; }
ac1cb8d3 49822 echo "$f";;
a848cd7e 49823 *) # Relative
ac1cb8d3
VS
49824 if test -f "$f"; then
49825 # Build tree
49826 echo "$f"
49827 elif test -f "$srcdir/$f"; then
49828 # Source tree
49829 echo "$srcdir/$f"
49830 else
49831 # /dev/null tree
49832 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49833echo "$as_me: error: cannot find input file: $f" >&2;}
49834 { (exit 1); exit 1; }; }
ac1cb8d3 49835 fi;;
a848cd7e
SC
49836 esac
49837 done` || { (exit 1); exit 1; }
6954625c
VZ
49838
49839 if test x"$ac_file" != x-; then
49840 { echo "$as_me:$LINENO: creating $ac_file" >&5
49841echo "$as_me: creating $ac_file" >&6;}
49842 rm -f "$ac_file"
49843 fi
a848cd7e
SC
49844_ACEOF
49845cat >>$CONFIG_STATUS <<_ACEOF
49846 sed "$ac_vpsub
49847$extrasub
49848_ACEOF
49849cat >>$CONFIG_STATUS <<\_ACEOF
49850:t
49851/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49852s,@configure_input@,$configure_input,;t t
49853s,@srcdir@,$ac_srcdir,;t t
49854s,@abs_srcdir@,$ac_abs_srcdir,;t t
49855s,@top_srcdir@,$ac_top_srcdir,;t t
49856s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49857s,@builddir@,$ac_builddir,;t t
49858s,@abs_builddir@,$ac_abs_builddir,;t t
49859s,@top_builddir@,$ac_top_builddir,;t t
49860s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49861s,@INSTALL@,$ac_INSTALL,;t t
49862" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49863 rm -f $tmp/stdin
49864 if test x"$ac_file" != x-; then
49865 mv $tmp/out $ac_file
49866 else
49867 cat $tmp/out
49868 rm -f $tmp/out
49869 fi
49870
ceec2216
RL
49871 # Run the commands associated with the file.
49872 case $ac_file in
49873 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49874 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49875 esac
a848cd7e
SC
49876done
49877_ACEOF
49878cat >>$CONFIG_STATUS <<\_ACEOF
49879
49880#
49881# CONFIG_HEADER section.
49882#
49883
49884# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49885# NAME is the cpp macro being defined and VALUE is the value it is being given.
49886#
49887# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
49888ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
49889ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
49890ac_dC=' '
49891ac_dD=',;t'
49892# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 49893ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
49894ac_uB='$,\1#\2define\3'
49895ac_uC=' '
49896ac_uD=',;t'
49897
49898for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49899 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49900 case $ac_file in
49901 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49902 cat >$tmp/stdin
49903 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49905 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49906 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49907 * ) ac_file_in=$ac_file.in ;;
49908 esac
49909
49910 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49911echo "$as_me: creating $ac_file" >&6;}
49912
49913 # First look for the input files in the build tree, otherwise in the
49914 # src tree.
49915 ac_file_inputs=`IFS=:
49916 for f in $ac_file_in; do
49917 case $f in
49918 -) echo $tmp/stdin ;;
49919 [\\/$]*)
ac1cb8d3
VS
49920 # Absolute (can't be DOS-style, as IFS=:)
49921 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49922echo "$as_me: error: cannot find input file: $f" >&2;}
49923 { (exit 1); exit 1; }; }
ac1cb8d3
VS
49924 # Do quote $f, to prevent DOS paths from being IFS'd.
49925 echo "$f";;
a848cd7e 49926 *) # Relative
ac1cb8d3
VS
49927 if test -f "$f"; then
49928 # Build tree
49929 echo "$f"
49930 elif test -f "$srcdir/$f"; then
49931 # Source tree
49932 echo "$srcdir/$f"
49933 else
49934 # /dev/null tree
49935 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49936echo "$as_me: error: cannot find input file: $f" >&2;}
49937 { (exit 1); exit 1; }; }
ac1cb8d3 49938 fi;;
a848cd7e
SC
49939 esac
49940 done` || { (exit 1); exit 1; }
49941 # Remove the trailing spaces.
ac1cb8d3 49942 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
49943
49944_ACEOF
49945
49946# Transform confdefs.h into two sed scripts, `conftest.defines' and
49947# `conftest.undefs', that substitutes the proper values into
49948# config.h.in to produce config.h. The first handles `#define'
49949# templates, and the second `#undef' templates.
49950# And first: Protect against being on the right side of a sed subst in
49951# config.status. Protect against being in an unquoted here document
49952# in config.status.
49953rm -f conftest.defines conftest.undefs
49954# Using a here document instead of a string reduces the quoting nightmare.
49955# Putting comments in sed scripts is not portable.
49956#
49957# `end' is used to avoid that the second main sed command (meant for
49958# 0-ary CPP macros) applies to n-ary macro definitions.
49959# See the Autoconf documentation for `clear'.
49960cat >confdef2sed.sed <<\_ACEOF
49961s/[\\&,]/\\&/g
49962s,[\\$`],\\&,g
49963t clear
49964: clear
ac1cb8d3 49965s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 49966t end
ac1cb8d3 49967s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
49968: end
49969_ACEOF
49970# If some macros were called several times there might be several times
49971# the same #defines, which is useless. Nevertheless, we may not want to
49972# sort them, since we want the *last* AC-DEFINE to be honored.
49973uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49974sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49975rm -f confdef2sed.sed
49976
49977# This sed command replaces #undef with comments. This is necessary, for
49978# example, in the case of _POSIX_SOURCE, which is predefined and required
49979# on some systems where configure will not decide to define it.
49980cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 49981s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
49982_ACEOF
49983
49984# Break up conftest.defines because some shells have a limit on the size
49985# of here documents, and old seds have small limits too (100 cmds).
49986echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 49987echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
49988echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49989echo ' :' >>$CONFIG_STATUS
49990rm -f conftest.tail
49991while grep . conftest.defines >/dev/null
49992do
49993 # Write a limited-size here document to $tmp/defines.sed.
49994 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49995 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 49996 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
49997 # Work around the forget-to-reset-the-flag bug.
49998 echo 't clr' >>$CONFIG_STATUS
49999 echo ': clr' >>$CONFIG_STATUS
50000 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50001 echo 'CEOF
50002 sed -f $tmp/defines.sed $tmp/in >$tmp/out
50003 rm -f $tmp/in
50004 mv $tmp/out $tmp/in
50005' >>$CONFIG_STATUS
50006 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50007 rm -f conftest.defines
50008 mv conftest.tail conftest.defines
50009done
50010rm -f conftest.defines
50011echo ' fi # grep' >>$CONFIG_STATUS
50012echo >>$CONFIG_STATUS
50013
50014# Break up conftest.undefs because some shells have a limit on the size
50015# of here documents, and old seds have small limits too (100 cmds).
50016echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
50017rm -f conftest.tail
50018while grep . conftest.undefs >/dev/null
50019do
50020 # Write a limited-size here document to $tmp/undefs.sed.
50021 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50022 # Speed up: don't consider the non `#undef'
ac1cb8d3 50023 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
50024 # Work around the forget-to-reset-the-flag bug.
50025 echo 't clr' >>$CONFIG_STATUS
50026 echo ': clr' >>$CONFIG_STATUS
50027 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50028 echo 'CEOF
50029 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50030 rm -f $tmp/in
50031 mv $tmp/out $tmp/in
50032' >>$CONFIG_STATUS
50033 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50034 rm -f conftest.undefs
50035 mv conftest.tail conftest.undefs
50036done
50037rm -f conftest.undefs
50038
50039cat >>$CONFIG_STATUS <<\_ACEOF
50040 # Let's still pretend it is `configure' which instantiates (i.e., don't
50041 # use $as_me), people would be surprised to read:
50042 # /* config.h. Generated by config.status. */
50043 if test x"$ac_file" = x-; then
50044 echo "/* Generated by configure. */" >$tmp/config.h
50045 else
50046 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
50047 fi
50048 cat $tmp/in >>$tmp/config.h
50049 rm -f $tmp/in
50050 if test x"$ac_file" != x-; then
50051 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50052 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50053echo "$as_me: $ac_file is unchanged" >&6;}
50054 else
50055 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50056$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50057 X"$ac_file" : 'X\(//\)[^/]' \| \
50058 X"$ac_file" : 'X\(//\)$' \| \
50059 X"$ac_file" : 'X\(/\)' \| \
50060 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50061echo X"$ac_file" |
50062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50063 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50064 /^X\(\/\/\)$/{ s//\1/; q; }
50065 /^X\(\/\).*/{ s//\1/; q; }
50066 s/.*/./; q'`
50067 { if $as_mkdir_p; then
50068 mkdir -p "$ac_dir"
50069 else
50070 as_dir="$ac_dir"
50071 as_dirs=
50072 while test ! -d "$as_dir"; do
50073 as_dirs="$as_dir $as_dirs"
50074 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50076 X"$as_dir" : 'X\(//\)[^/]' \| \
50077 X"$as_dir" : 'X\(//\)$' \| \
50078 X"$as_dir" : 'X\(/\)' \| \
50079 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50080echo X"$as_dir" |
50081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50083 /^X\(\/\/\)$/{ s//\1/; q; }
50084 /^X\(\/\).*/{ s//\1/; q; }
50085 s/.*/./; q'`
50086 done
50087 test ! -n "$as_dirs" || mkdir $as_dirs
50088 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50089echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50090 { (exit 1); exit 1; }; }; }
50091
50092 rm -f $ac_file
50093 mv $tmp/config.h $ac_file
50094 fi
50095 else
50096 cat $tmp/config.h
50097 rm -f $tmp/config.h
50098 fi
50099done
50100_ACEOF
50101cat >>$CONFIG_STATUS <<\_ACEOF
50102
50103#
50104# CONFIG_COMMANDS section.
50105#
50106for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50107 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50108 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50109 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50110$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50111 X"$ac_dest" : 'X\(//\)[^/]' \| \
50112 X"$ac_dest" : 'X\(//\)$' \| \
50113 X"$ac_dest" : 'X\(/\)' \| \
50114 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50115echo X"$ac_dest" |
50116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50117 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50118 /^X\(\/\/\)$/{ s//\1/; q; }
50119 /^X\(\/\).*/{ s//\1/; q; }
50120 s/.*/./; q'`
ac1cb8d3
VS
50121 { if $as_mkdir_p; then
50122 mkdir -p "$ac_dir"
50123 else
50124 as_dir="$ac_dir"
50125 as_dirs=
50126 while test ! -d "$as_dir"; do
50127 as_dirs="$as_dir $as_dirs"
50128 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50129$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50130 X"$as_dir" : 'X\(//\)[^/]' \| \
50131 X"$as_dir" : 'X\(//\)$' \| \
50132 X"$as_dir" : 'X\(/\)' \| \
50133 . : '\(.\)' 2>/dev/null ||
50134echo X"$as_dir" |
50135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50136 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50137 /^X\(\/\/\)$/{ s//\1/; q; }
50138 /^X\(\/\).*/{ s//\1/; q; }
50139 s/.*/./; q'`
50140 done
50141 test ! -n "$as_dirs" || mkdir $as_dirs
50142 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50143echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50144 { (exit 1); exit 1; }; }; }
50145
a848cd7e
SC
50146 ac_builddir=.
50147
50148if test "$ac_dir" != .; then
50149 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50150 # A "../" for each directory in $ac_dir_suffix.
50151 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50152else
50153 ac_dir_suffix= ac_top_builddir=
50154fi
50155
50156case $srcdir in
50157 .) # No --srcdir option. We are building in place.
50158 ac_srcdir=.
50159 if test -z "$ac_top_builddir"; then
50160 ac_top_srcdir=.
50161 else
50162 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50163 fi ;;
50164 [\\/]* | ?:[\\/]* ) # Absolute path.
50165 ac_srcdir=$srcdir$ac_dir_suffix;
50166 ac_top_srcdir=$srcdir ;;
50167 *) # Relative path.
50168 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50169 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50170esac
ac1cb8d3
VS
50171
50172# Do not use `cd foo && pwd` to compute absolute paths, because
50173# the directories may not exist.
50174case `pwd` in
50175.) ac_abs_builddir="$ac_dir";;
50176*)
50177 case "$ac_dir" in
50178 .) ac_abs_builddir=`pwd`;;
50179 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50180 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50181 esac;;
50182esac
50183case $ac_abs_builddir in
50184.) ac_abs_top_builddir=${ac_top_builddir}.;;
50185*)
50186 case ${ac_top_builddir}. in
50187 .) ac_abs_top_builddir=$ac_abs_builddir;;
50188 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50189 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50190 esac;;
50191esac
50192case $ac_abs_builddir in
50193.) ac_abs_srcdir=$ac_srcdir;;
50194*)
50195 case $ac_srcdir in
50196 .) ac_abs_srcdir=$ac_abs_builddir;;
50197 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50198 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50199 esac;;
50200esac
50201case $ac_abs_builddir in
50202.) ac_abs_top_srcdir=$ac_top_srcdir;;
50203*)
50204 case $ac_top_srcdir in
50205 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50206 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50207 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50208 esac;;
50209esac
a848cd7e
SC
50210
50211
50212 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50213echo "$as_me: executing $ac_dest commands" >&6;}
50214 case $ac_dest in
5c60e845
MW
50215 rcdefs.h )
50216 mkdir -p $outdir &&
50217 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50218 ;;
ceec2216
RL
50219 wx-config ) rm -f wx-config
50220 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50221 ;;
a848cd7e
SC
50222 esac
50223done
50224_ACEOF
50225
50226cat >>$CONFIG_STATUS <<\_ACEOF
50227
50228{ (exit 0); exit 0; }
50229_ACEOF
50230chmod +x $CONFIG_STATUS
50231ac_clean_files=$ac_clean_files_save
50232
50233
50234# configure is writing to config.log, and then calls config.status.
50235# config.status does its own redirection, appending to config.log.
50236# Unfortunately, on DOS this fails, as config.log is still kept open
50237# by configure, so config.status won't be able to write to it; its
50238# output is simply discarded. So we exec the FD to /dev/null,
50239# effectively closing config.log, so it can be properly (re)opened and
50240# appended to by config.status. When coming back to configure, we
50241# need to make the FD available again.
50242if test "$no_create" != yes; then
50243 ac_cs_success=:
50244 ac_config_status_args=
50245 test "$silent" = yes &&
50246 ac_config_status_args="$ac_config_status_args --quiet"
50247 exec 5>/dev/null
50248 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50249 exec 5>>config.log
50250 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50251 # would make configure fail if this is the last instruction.
50252 $ac_cs_success || { (exit 1); exit 1; }
50253fi
50254
50255#
50256# CONFIG_SUBDIRS section.
50257#
50258if test "$no_recursion" != yes; then
50259
50260 # Remove --cache-file and --srcdir arguments so they do not pile up.
50261 ac_sub_configure_args=
50262 ac_prev=
50263 for ac_arg in $ac_configure_args; do
50264 if test -n "$ac_prev"; then
50265 ac_prev=
50266 continue
50267 fi
50268 case $ac_arg in
50269 -cache-file | --cache-file | --cache-fil | --cache-fi \
50270 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50271 ac_prev=cache_file ;;
50272 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50273 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50274 | --c=*)
50275 ;;
50276 --config-cache | -C)
50277 ;;
50278 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50279 ac_prev=srcdir ;;
50280 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50281 ;;
50282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50283 ac_prev=prefix ;;
50284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50285 ;;
50286 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50287 esac
50288 done
50289
50290 # Always prepend --prefix to ensure using the same prefix
50291 # in subdir configurations.
50292 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50293
50294 ac_popdir=`pwd`
50295 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50296
50297 # Do not complain, so a configure script can configure whichever
50298 # parts of a large source tree are present.
50299 test -d $srcdir/$ac_dir || continue
50300
50301 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50302echo "$as_me: configuring in $ac_dir" >&6;}
50303 { if $as_mkdir_p; then
50304 mkdir -p "$ac_dir"
50305 else
50306 as_dir="$ac_dir"
50307 as_dirs=
50308 while test ! -d "$as_dir"; do
50309 as_dirs="$as_dir $as_dirs"
50310 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50311$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50312 X"$as_dir" : 'X\(//\)[^/]' \| \
50313 X"$as_dir" : 'X\(//\)$' \| \
50314 X"$as_dir" : 'X\(/\)' \| \
50315 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50316echo X"$as_dir" |
50317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50319 /^X\(\/\/\)$/{ s//\1/; q; }
50320 /^X\(\/\).*/{ s//\1/; q; }
50321 s/.*/./; q'`
50322 done
50323 test ! -n "$as_dirs" || mkdir $as_dirs
50324 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50325echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50326 { (exit 1); exit 1; }; }; }
50327
50328 ac_builddir=.
50329
50330if test "$ac_dir" != .; then
50331 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50332 # A "../" for each directory in $ac_dir_suffix.
50333 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50334else
50335 ac_dir_suffix= ac_top_builddir=
50336fi
50337
50338case $srcdir in
50339 .) # No --srcdir option. We are building in place.
50340 ac_srcdir=.
50341 if test -z "$ac_top_builddir"; then
50342 ac_top_srcdir=.
50343 else
50344 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50345 fi ;;
50346 [\\/]* | ?:[\\/]* ) # Absolute path.
50347 ac_srcdir=$srcdir$ac_dir_suffix;
50348 ac_top_srcdir=$srcdir ;;
50349 *) # Relative path.
50350 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50351 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50352esac
ac1cb8d3
VS
50353
50354# Do not use `cd foo && pwd` to compute absolute paths, because
50355# the directories may not exist.
50356case `pwd` in
50357.) ac_abs_builddir="$ac_dir";;
50358*)
50359 case "$ac_dir" in
50360 .) ac_abs_builddir=`pwd`;;
50361 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50362 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50363 esac;;
50364esac
50365case $ac_abs_builddir in
50366.) ac_abs_top_builddir=${ac_top_builddir}.;;
50367*)
50368 case ${ac_top_builddir}. in
50369 .) ac_abs_top_builddir=$ac_abs_builddir;;
50370 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50371 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50372 esac;;
50373esac
50374case $ac_abs_builddir in
50375.) ac_abs_srcdir=$ac_srcdir;;
50376*)
50377 case $ac_srcdir in
50378 .) ac_abs_srcdir=$ac_abs_builddir;;
50379 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50380 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50381 esac;;
50382esac
50383case $ac_abs_builddir in
50384.) ac_abs_top_srcdir=$ac_top_srcdir;;
50385*)
50386 case $ac_top_srcdir in
50387 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50388 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50389 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50390 esac;;
50391esac
a848cd7e
SC
50392
50393
50394 cd $ac_dir
50395
50396 # Check for guested configure; otherwise get Cygnus style configure.
50397 if test -f $ac_srcdir/configure.gnu; then
50398 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50399 elif test -f $ac_srcdir/configure; then
50400 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50401 elif test -f $ac_srcdir/configure.in; then
50402 ac_sub_configure=$ac_configure
50403 else
50404 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50405echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50406 ac_sub_configure=
50407 fi
50408
50409 # The recursion is here.
50410 if test -n "$ac_sub_configure"; then
50411 # Make the cache file name correct relative to the subdirectory.
50412 case $cache_file in
50413 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50414 *) # Relative path.
ac1cb8d3 50415 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50416 esac
50417
50418 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50419echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50420 # The eval makes quoting arguments work.
50421 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50422 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50423 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50424echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50425 { (exit 1); exit 1; }; }
50426 fi
50427
6954625c 50428 cd "$ac_popdir"
a848cd7e
SC
50429 done
50430fi
50431
50432
50433echo
77ffb593 50434echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50435echo ""
4d4ff94c 50436echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50437echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50438
77ffb593
JS
50439echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50440echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50441echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50442
77ffb593 50443echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50444echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50445echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50446
77ffb593 50447echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50448echo " jpeg ${wxUSE_LIBJPEG-none}"
50449echo " png ${wxUSE_LIBPNG-none}"
50450echo " regex ${wxUSE_REGEX}"
50451echo " tiff ${wxUSE_LIBTIFF-none}"
50452if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50453echo " xpm ${wxUSE_LIBXPM-none}"
50454fi
50455echo " zlib ${wxUSE_ZLIB}"
50456echo " odbc ${wxUSE_ODBC}"
50457echo " expat ${wxUSE_EXPAT}"
50458echo " libmspack ${wxUSE_LIBMSPACK}"
50459echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50460echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
2b850ae1 50461echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}"
3565d135 50462echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50463
50464echo ""
50465