]> git.saurik.com Git - wxWidgets.git/blame - configure
don't compare bools with NULL
[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"
8ced02f6 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 LNDIR 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 GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT 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 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 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_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_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_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_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_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_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 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_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_RESCOMP EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE WXCONFIG_POSTLINK_COMMAND 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
dee1a63f
MB
892 --enable-compat24 enable wxWidgets 2.4 compatibility
893 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 962 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
963 --enable-postscript use wxPostscriptDC device context (default for gtk+)
964 --enable-prologio not available; see contrib
965 --enable-resources not available; see contrib
966 --enable-clipboard use wxClipboard class
967 --enable-dnd use Drag'n'Drop classes
968 --enable-metafile use win32 metafiles
969 --enable-controls use all usual controls
970 --enable-accel use accelerators
971 --enable-button use wxButton class
972 --enable-bmpbutton use wxBitmapButton class
973 --enable-calendar use wxCalendarCtrl class
974 --enable-caret use wxCaret class
975 --enable-checkbox use wxCheckBox class
976 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
977 --enable-choice use wxChoice class
92bbdbcd 978 --enable-choicebook use wxChoicebook class
a848cd7e 979 --enable-combobox use wxComboBox class
da98e9be 980 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
981 --enable-display use wxDisplay class
982 --enable-gauge use wxGauge class
983 --enable-grid use wxGrid class
984 --enable-imaglist use wxImageList class
985 --enable-listbook use wxListbook class
986 --enable-listbox use wxListBox class
987 --enable-listctrl use wxListCtrl class
988 --enable-notebook use wxNotebook class
989 --enable-radiobox use wxRadioBox class
990 --enable-radiobtn use wxRadioButton class
991 --enable-sash use wxSashWindow class
992 --enable-scrollbar use wxScrollBar class and scrollable windows
993 --enable-slider use wxSlider class
994 --enable-spinbtn use wxSpinButton class
995 --enable-spinctrl use wxSpinCtrl class
996 --enable-splitter use wxSplitterWindow class
997 --enable-statbmp use wxStaticBitmap class
998 --enable-statbox use wxStaticBox class
999 --enable-statline use wxStaticLine class
1000 --enable-stattext use wxStaticText class
1001 --enable-statusbar use wxStatusBar class
1002 --enable-tabdialog use wxTabControl class
1003 --enable-textctrl use wxTextCtrl class
1004 --enable-togglebtn use wxToggleButton class
1005 --enable-toolbar use wxToolBar class
1006 --enable-tbarnative use native wxToolBar class
1007 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1008 --enable-treebook use wxTreebook class
a848cd7e
SC
1009 --enable-treectrl use wxTreeCtrl class
1010 --enable-tipwindow use wxTipWindow class
1011 --enable-popupwin use wxPopUpWindow class
1012 --enable-commondlg use all common dialogs
1013 --enable-choicedlg use wxChoiceDialog
1014 --enable-coldlg use wxColourDialog
1015 --enable-filedlg use wxFileDialog
1016 --enable-finddlg use wxFindReplaceDialog
1017 --enable-fontdlg use wxFontDialog
1018 --enable-dirdlg use wxDirDialog
1019 --enable-msgdlg use wxMessageDialog
1020 --enable-numberdlg use wxNumberEntryDialog
1021 --enable-splash use wxSplashScreen
1022 --enable-textdlg use wxTextDialog
1023 --enable-tipdlg use startup tips
1024 --enable-progressdlg use wxProgressDialog
1025 --enable-wizarddlg use wxWizard
1026 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1027 --enable-miniframe use wxMiniFrame class
1028 --enable-tooltips use wxToolTip class
1029 --enable-splines use spline drawing code
fbe2ca43 1030 --enable-mousewheel use mousewheel
a848cd7e
SC
1031 --enable-validators use wxValidator and derived classes
1032 --enable-busyinfo use wxBusyInfo
4cb1d3da 1033 --enable-joystick use wxJoystick
38b4a946 1034 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1035 --enable-dragimage use wxDragImage
1036 --enable-accessibility enable accessibility support
38b4a946 1037 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1038 --enable-palette use wxPalette class
1039 --enable-image use wxImage class
1040 --enable-gif use gif images (GIF file format)
1041 --enable-pcx use pcx images (PCX file format)
1042 --enable-iff use iff images (IFF file format)
1043 --enable-pnm use pnm images (PNM file format)
1044 --enable-xpm use xpm images (XPM file format)
1045 --enable-icocur use Windows ICO and CUR formats
77ffb593 1046 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1047 --enable-vendor=VENDOR vendor name (win32 DLL only)
1048 --disable-largefile omit support for large files
1049 --disable-gtktest do not try to compile and run a test GTK+ program
1050 --disable-gtktest Do not try to compile and run a test GTK program
1051 --disable-sdltest Do not try to compile and run a test SDL program
1052 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1053 --disable-precomp-headers
1054 don't use precompiled headers even if compiler can
a848cd7e
SC
1055
1056Optional Packages:
1057 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1058 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1059 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1060 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1061 --with-motif use Motif/Lesstif
1062 --with-mac use Mac OS X
1063 --with-cocoa use Cocoa
1064 --with-wine use Wine
1065 --with-msw use MS-Windows
1066 --with-pm use OS/2 Presentation Manager
1067 --with-mgl use SciTech MGL
1068 --with-microwin use MicroWindows
1069 --with-x11 use X11
1070 --with-libpng use libpng (PNG image format)
1071 --with-libjpeg use libjpeg (JPEG file format)
1072 --with-libtiff use libtiff (TIFF file format)
1073 --with-libxpm use libxpm (XPM file format)
1074 --with-libmspack use libmspack (CHM help files loading)
1075 --with-sdl use SDL for audio on Unix
d51253e8 1076 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1077 --with-opengl use OpenGL (or Mesa)
1078 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1079 --with-regex enable support for wxRegEx class
1080 --with-zlib use zlib for LZW compression
1081 --with-odbc use the IODBC and wxODBC classes
1082 --with-expat enable XML support using expat parser
ceec2216 1083 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1084 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1085 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1086 --with-x use the X Window System
1087 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1088 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1089 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1090 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1091 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1092
1093Some influential environment variables:
dcc1b6ad
VS
1094 CC C compiler command
1095 CFLAGS C compiler flags
1096 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1097 nonstandard directory <lib dir>
1098 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1099 headers in a nonstandard directory <include dir>
1100 CPP C preprocessor
1101 CXX C++ compiler command
1102 CXXFLAGS C++ compiler flags
1103 CXXCPP C++ preprocessor
a848cd7e
SC
1104
1105Use these variables to override the choices made by `configure' or to help
1106it to find libraries and programs with nonstandard names/locations.
1107
77ffb593 1108Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1109_ACEOF
1110fi
1111
1112if test "$ac_init_help" = "recursive"; then
1113 # If there are subdirs, report their specific --help.
1114 ac_popdir=`pwd`
1115 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1116 test -d $ac_dir || continue
1117 ac_builddir=.
1118
1119if test "$ac_dir" != .; then
1120 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1121 # A "../" for each directory in $ac_dir_suffix.
1122 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1123else
1124 ac_dir_suffix= ac_top_builddir=
1125fi
1126
1127case $srcdir in
1128 .) # No --srcdir option. We are building in place.
1129 ac_srcdir=.
1130 if test -z "$ac_top_builddir"; then
1131 ac_top_srcdir=.
1132 else
1133 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1134 fi ;;
1135 [\\/]* | ?:[\\/]* ) # Absolute path.
1136 ac_srcdir=$srcdir$ac_dir_suffix;
1137 ac_top_srcdir=$srcdir ;;
1138 *) # Relative path.
1139 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1140 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1141esac
ac1cb8d3
VS
1142
1143# Do not use `cd foo && pwd` to compute absolute paths, because
1144# the directories may not exist.
1145case `pwd` in
1146.) ac_abs_builddir="$ac_dir";;
1147*)
1148 case "$ac_dir" in
1149 .) ac_abs_builddir=`pwd`;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1151 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1152 esac;;
1153esac
1154case $ac_abs_builddir in
1155.) ac_abs_top_builddir=${ac_top_builddir}.;;
1156*)
1157 case ${ac_top_builddir}. in
1158 .) ac_abs_top_builddir=$ac_abs_builddir;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1161 esac;;
1162esac
1163case $ac_abs_builddir in
1164.) ac_abs_srcdir=$ac_srcdir;;
1165*)
1166 case $ac_srcdir in
1167 .) ac_abs_srcdir=$ac_abs_builddir;;
1168 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1169 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1170 esac;;
1171esac
1172case $ac_abs_builddir in
1173.) ac_abs_top_srcdir=$ac_top_srcdir;;
1174*)
1175 case $ac_top_srcdir in
1176 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1177 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1179 esac;;
1180esac
a848cd7e
SC
1181
1182 cd $ac_dir
1183 # Check for guested configure; otherwise get Cygnus style configure.
1184 if test -f $ac_srcdir/configure.gnu; then
1185 echo
1186 $SHELL $ac_srcdir/configure.gnu --help=recursive
1187 elif test -f $ac_srcdir/configure; then
1188 echo
1189 $SHELL $ac_srcdir/configure --help=recursive
1190 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1191 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1192 echo
1193 $ac_configure --help
1194 else
1195 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1196 fi
5ff751d6 1197 cd "$ac_popdir"
a848cd7e
SC
1198 done
1199fi
1200
1201test -n "$ac_init_help" && exit 0
1202if $ac_init_version; then
1203 cat <<\_ACEOF
dd8df4fc 1204wxWidgets configure 2.7.0
ac1cb8d3 1205generated by GNU Autoconf 2.59
a848cd7e 1206
ac1cb8d3 1207Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1208This configure script is free software; the Free Software Foundation
1209gives unlimited permission to copy, distribute and modify it.
1210_ACEOF
1211 exit 0
1212fi
1213exec 5>config.log
1214cat >&5 <<_ACEOF
1215This file contains any messages produced by compilers while
1216running configure, to aid debugging if configure makes a mistake.
1217
dd8df4fc 1218It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1219generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1220
1221 $ $0 $@
1222
1223_ACEOF
1224{
1225cat <<_ASUNAME
1226## --------- ##
1227## Platform. ##
1228## --------- ##
1229
1230hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1231uname -m = `(uname -m) 2>/dev/null || echo unknown`
1232uname -r = `(uname -r) 2>/dev/null || echo unknown`
1233uname -s = `(uname -s) 2>/dev/null || echo unknown`
1234uname -v = `(uname -v) 2>/dev/null || echo unknown`
1235
1236/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1237/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1238
1239/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1240/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1241/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1242hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1243/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1244/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1245/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1246
1247_ASUNAME
1248
1249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1250for as_dir in $PATH
1251do
1252 IFS=$as_save_IFS
1253 test -z "$as_dir" && as_dir=.
1254 echo "PATH: $as_dir"
1255done
1256
1257} >&5
1258
1259cat >&5 <<_ACEOF
1260
1261
1262## ----------- ##
1263## Core tests. ##
1264## ----------- ##
1265
1266_ACEOF
1267
1268
1269# Keep a trace of the command line.
1270# Strip out --no-create and --no-recursion so they do not pile up.
1271# Strip out --silent because we don't want to record it for future runs.
1272# Also quote any args containing shell meta-characters.
1273# Make two passes to allow for proper duplicate-argument suppression.
1274ac_configure_args=
1275ac_configure_args0=
1276ac_configure_args1=
1277ac_sep=
1278ac_must_keep_next=false
1279for ac_pass in 1 2
1280do
1281 for ac_arg
1282 do
1283 case $ac_arg in
1284 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286 | -silent | --silent | --silen | --sile | --sil)
1287 continue ;;
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 esac
1291 case $ac_pass in
1292 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1293 2)
1294 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1295 if test $ac_must_keep_next = true; then
ac1cb8d3 1296 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1297 else
ac1cb8d3
VS
1298 case $ac_arg in
1299 *=* | --config-cache | -C | -disable-* | --disable-* \
1300 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1301 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1302 | -with-* | --with-* | -without-* | --without-* | --x)
1303 case "$ac_configure_args0 " in
1304 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1305 esac
1306 ;;
1307 -* ) ac_must_keep_next=true ;;
1308 esac
a848cd7e
SC
1309 fi
1310 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1311 # Get rid of the leading space.
1312 ac_sep=" "
1313 ;;
1314 esac
1315 done
1316done
1317$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1318$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1319
1320# When interrupted or exit'd, cleanup temporary files, and complete
1321# config.log. We remove comments because anyway the quotes in there
1322# would cause problems or look ugly.
1323# WARNING: Be sure not to use single quotes in there, as some shells,
1324# such as our DU 5.0 friend, will then `close' the trap.
1325trap 'exit_status=$?
1326 # Save into config.log some information that might help in debugging.
1327 {
1328 echo
1329
1330 cat <<\_ASBOX
1331## ---------------- ##
1332## Cache variables. ##
1333## ---------------- ##
1334_ASBOX
1335 echo
1336 # The following way of writing the cache mishandles newlines in values,
1337{
1338 (set) 2>&1 |
1339 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1340 *ac_space=\ *)
1341 sed -n \
ac1cb8d3
VS
1342 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1344 ;;
1345 *)
1346 sed -n \
ac1cb8d3 1347 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1348 ;;
1349 esac;
1350}
1351 echo
1352
1353 cat <<\_ASBOX
1354## ----------------- ##
1355## Output variables. ##
1356## ----------------- ##
1357_ASBOX
1358 echo
1359 for ac_var in $ac_subst_vars
1360 do
1361 eval ac_val=$`echo $ac_var`
1362 echo "$ac_var='"'"'$ac_val'"'"'"
1363 done | sort
1364 echo
1365
1366 if test -n "$ac_subst_files"; then
1367 cat <<\_ASBOX
1368## ------------- ##
1369## Output files. ##
1370## ------------- ##
1371_ASBOX
1372 echo
1373 for ac_var in $ac_subst_files
1374 do
1375 eval ac_val=$`echo $ac_var`
ac1cb8d3 1376 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1377 done | sort
1378 echo
1379 fi
1380
1381 if test -s confdefs.h; then
1382 cat <<\_ASBOX
1383## ----------- ##
1384## confdefs.h. ##
1385## ----------- ##
1386_ASBOX
1387 echo
1388 sed "/^$/d" confdefs.h | sort
1389 echo
1390 fi
1391 test "$ac_signal" != 0 &&
1392 echo "$as_me: caught signal $ac_signal"
1393 echo "$as_me: exit $exit_status"
1394 } >&5
ac1cb8d3 1395 rm -f core *.core &&
a848cd7e
SC
1396 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1397 exit $exit_status
1398 ' 0
1399for ac_signal in 1 2 13 15; do
1400 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1401done
1402ac_signal=0
1403
1404# confdefs.h avoids OS command line length limits that DEFS can exceed.
1405rm -rf conftest* confdefs.h
1406# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1407echo >confdefs.h
1408
1409# Predefined preprocessor variables.
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_NAME "$PACKAGE_NAME"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1418_ACEOF
1419
1420
1421cat >>confdefs.h <<_ACEOF
1422#define PACKAGE_VERSION "$PACKAGE_VERSION"
1423_ACEOF
1424
1425
1426cat >>confdefs.h <<_ACEOF
1427#define PACKAGE_STRING "$PACKAGE_STRING"
1428_ACEOF
1429
1430
1431cat >>confdefs.h <<_ACEOF
1432#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1433_ACEOF
1434
1435
1436# Let the site file select an alternate cache file if it wants to.
1437# Prefer explicitly selected file to automatically selected ones.
1438if test -z "$CONFIG_SITE"; then
1439 if test "x$prefix" != xNONE; then
1440 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1441 else
1442 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1443 fi
1444fi
1445for ac_site_file in $CONFIG_SITE; do
1446 if test -r "$ac_site_file"; then
1447 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1448echo "$as_me: loading site script $ac_site_file" >&6;}
1449 sed 's/^/| /' "$ac_site_file" >&5
1450 . "$ac_site_file"
1451 fi
1452done
1453
1454if test -r "$cache_file"; then
1455 # Some versions of bash will fail to source /dev/null (special
1456 # files actually), so we avoid doing that.
1457 if test -f "$cache_file"; then
1458 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1459echo "$as_me: loading cache $cache_file" >&6;}
1460 case $cache_file in
1461 [\\/]* | ?:[\\/]* ) . $cache_file;;
1462 *) . ./$cache_file;;
1463 esac
1464 fi
1465else
1466 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1467echo "$as_me: creating cache $cache_file" >&6;}
1468 >$cache_file
1469fi
1470
1471# Check that the precious variables saved in the cache have kept the same
1472# value.
1473ac_cache_corrupted=false
1474for ac_var in `(set) 2>&1 |
ac1cb8d3 1475 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1476 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1477 eval ac_new_set=\$ac_env_${ac_var}_set
1478 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1479 eval ac_new_val="\$ac_env_${ac_var}_value"
1480 case $ac_old_set,$ac_new_set in
1481 set,)
1482 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1483echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1484 ac_cache_corrupted=: ;;
1485 ,set)
1486 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1487echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1488 ac_cache_corrupted=: ;;
1489 ,);;
1490 *)
1491 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1492 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1493echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1494 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1495echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1496 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1497echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1498 ac_cache_corrupted=:
a848cd7e
SC
1499 fi;;
1500 esac
1501 # Pass precious variables to config.status.
1502 if test "$ac_new_set" = set; then
1503 case $ac_new_val in
1504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1505 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1506 *) ac_arg=$ac_var=$ac_new_val ;;
1507 esac
1508 case " $ac_configure_args " in
1509 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1510 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1511 esac
1512 fi
1513done
1514if $ac_cache_corrupted; then
1515 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1516echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1517 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1518echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1519 { (exit 1); exit 1; }; }
1520fi
1521
1522ac_ext=c
1523ac_cpp='$CPP $CPPFLAGS'
1524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1526ac_compiler_gnu=$ac_cv_c_compiler_gnu
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557ac_aux_dir=
1558for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1559 if test -f $ac_dir/install-sh; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 break
1563 elif test -f $ac_dir/install.sh; then
1564 ac_aux_dir=$ac_dir
1565 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 break
1567 elif test -f $ac_dir/shtool; then
1568 ac_aux_dir=$ac_dir
1569 ac_install_sh="$ac_aux_dir/shtool install -c"
1570 break
1571 fi
1572done
1573if test -z "$ac_aux_dir"; then
1574 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1575echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1576 { (exit 1); exit 1; }; }
1577fi
1578ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581
1582# Make sure we can run config.sub.
1583$ac_config_sub sun4 >/dev/null 2>&1 ||
1584 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1585echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1586 { (exit 1); exit 1; }; }
1587
1588echo "$as_me:$LINENO: checking build system type" >&5
1589echo $ECHO_N "checking build system type... $ECHO_C" >&6
1590if test "${ac_cv_build+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1592else
1593 ac_cv_build_alias=$build_alias
1594test -z "$ac_cv_build_alias" &&
1595 ac_cv_build_alias=`$ac_config_guess`
1596test -z "$ac_cv_build_alias" &&
1597 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1598echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1599 { (exit 1); exit 1; }; }
1600ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1601 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1602echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1603 { (exit 1); exit 1; }; }
1604
1605fi
1606echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1607echo "${ECHO_T}$ac_cv_build" >&6
1608build=$ac_cv_build
1609build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1610build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1611build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1612
1613
1614echo "$as_me:$LINENO: checking host system type" >&5
1615echo $ECHO_N "checking host system type... $ECHO_C" >&6
1616if test "${ac_cv_host+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618else
1619 ac_cv_host_alias=$host_alias
1620test -z "$ac_cv_host_alias" &&
1621 ac_cv_host_alias=$ac_cv_build_alias
1622ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1623 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1624echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1625 { (exit 1); exit 1; }; }
1626
1627fi
1628echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1629echo "${ECHO_T}$ac_cv_host" >&6
1630host=$ac_cv_host
1631host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1632host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1633host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1634
1635
1636echo "$as_me:$LINENO: checking target system type" >&5
1637echo $ECHO_N "checking target system type... $ECHO_C" >&6
1638if test "${ac_cv_target+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 ac_cv_target_alias=$target_alias
1642test "x$ac_cv_target_alias" = "x" &&
1643 ac_cv_target_alias=$ac_cv_host_alias
1644ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1645 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1646echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1647 { (exit 1); exit 1; }; }
1648
1649fi
1650echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1651echo "${ECHO_T}$ac_cv_target" >&6
1652target=$ac_cv_target
1653target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1654target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1655target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1656
1657
1658# The aliases save the names the user supplied, while $host etc.
1659# will get canonicalized.
1660test -n "$target_alias" &&
1661 test "$program_prefix$program_suffix$program_transform_name" = \
1662 NONENONEs,x,x, &&
1663 program_prefix=${target_alias}-
1664
1665
1666
ceec2216 1667wx_major_version_number=2
dd8df4fc
VZ
1668wx_minor_version_number=7
1669wx_release_number=0
1670wx_subrelease_number=0
a848cd7e 1671
ceec2216
RL
1672WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1673WX_VERSION=$WX_RELEASE.$wx_release_number
1674WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1675
ceec2216 1676WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1677
a848cd7e
SC
1678
1679
1680
1681USE_UNIX=1
1682USE_OS2=0
1683USE_WIN32=0
1684USE_DOS=0
1685USE_BEOS=0
1686USE_MAC=0
1687
1688USE_AIX=
1689USE_BSD= USE_DARWIN= USE_FREEBSD=
1690USE_GNU= USE_HPUX=
1691USE_LINUX=
1692USE_NETBSD=
1693USE_OPENBSD=
1694USE_OSF= USE_SGI=
1695USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1696USE_ULTRIX=
1697USE_UNIXWARE=
1698
1699USE_ALPHA=
1700
1701NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1702
1703ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1704
1705DEFAULT_wxUSE_COCOA=0
1706DEFAULT_wxUSE_GTK=0
1707DEFAULT_wxUSE_MAC=0
1708DEFAULT_wxUSE_MGL=0
1709DEFAULT_wxUSE_MICROWIN=0
1710DEFAULT_wxUSE_MOTIF=0
1711DEFAULT_wxUSE_MSW=0
1712DEFAULT_wxUSE_PM=0
1713DEFAULT_wxUSE_X11=0
1714
1715DEFAULT_DEFAULT_wxUSE_COCOA=0
1716DEFAULT_DEFAULT_wxUSE_GTK=0
1717DEFAULT_DEFAULT_wxUSE_MAC=0
1718DEFAULT_DEFAULT_wxUSE_MGL=0
1719DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1720DEFAULT_DEFAULT_wxUSE_MOTIF=0
1721DEFAULT_DEFAULT_wxUSE_MSW=0
1722DEFAULT_DEFAULT_wxUSE_PM=0
1723DEFAULT_DEFAULT_wxUSE_X11=0
1724
1725PROGRAM_EXT=
1726SO_SUFFIX=so
1727SAMPLES_RPATH_FLAG=
1728SAMPLES_RPATH_POSTLINK=
1729
a03b8b04
RD
1730DEFAULT_STD_FLAG=yes
1731
a848cd7e
SC
1732case "${host}" in
1733 *-hp-hpux* )
1734 USE_HPUX=1
1735 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1736 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1737 SO_SUFFIX=sl
1738 cat >>confdefs.h <<\_ACEOF
1739#define __HPUX__ 1
1740_ACEOF
1741
2eef8513
VZ
1742
1743 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
a848cd7e
SC
1744 ;;
1745 *-*-linux* )
1746 USE_LINUX=1
1747 cat >>confdefs.h <<\_ACEOF
1748#define __LINUX__ 1
1749_ACEOF
1750
1751 TMP=`uname -m`
1752 if test "x$TMP" = "xalpha"; then
1753 USE_ALPHA=1
1754 cat >>confdefs.h <<\_ACEOF
1755#define __ALPHA__ 1
1756_ACEOF
1757
1758 fi
1759 DEFAULT_DEFAULT_wxUSE_GTK=1
1760 ;;
1761 *-*-gnu* | *-*-k*bsd*-gnu )
1762 USE_GNU=1
1763 TMP=`uname -m`
1764 if test "x$TMP" = "xalpha"; then
1765 USE_ALPHA=1
1766 cat >>confdefs.h <<\_ACEOF
1767#define __ALPHA__ 1
1768_ACEOF
1769
1770 fi
1771 DEFAULT_DEFAULT_wxUSE_GTK=1
1772 ;;
1773 *-*-irix5* | *-*-irix6* )
1774 USE_SGI=1
1775 USE_SVR4=1
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SGI__ 1
1778_ACEOF
1779
1780 cat >>confdefs.h <<\_ACEOF
1781#define __SVR4__ 1
1782_ACEOF
1783
1784 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1785 ;;
1786 *-*-solaris2* )
1787 USE_SUN=1
1788 USE_SOLARIS=1
1789 USE_SVR4=1
1790 cat >>confdefs.h <<\_ACEOF
1791#define __SUN__ 1
1792_ACEOF
1793
1794 cat >>confdefs.h <<\_ACEOF
1795#define __SOLARIS__ 1
1796_ACEOF
1797
1798 cat >>confdefs.h <<\_ACEOF
1799#define __SVR4__ 1
1800_ACEOF
1801
1802 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1803 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1804 ;;
1805 *-*-sunos4* )
1806 USE_SUN=1
1807 USE_SUNOS=1
1808 USE_BSD=1
1809 cat >>confdefs.h <<\_ACEOF
1810#define __SUN__ 1
1811_ACEOF
1812
1813 cat >>confdefs.h <<\_ACEOF
1814#define __SUNOS__ 1
1815_ACEOF
1816
1817 cat >>confdefs.h <<\_ACEOF
1818#define __BSD__ 1
1819_ACEOF
1820
1821 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1822 ;;
1823 *-*-freebsd*)
1824 USE_BSD=1
1825 USE_FREEBSD=1
1826 cat >>confdefs.h <<\_ACEOF
1827#define __FREEBSD__ 1
1828_ACEOF
1829
1830 cat >>confdefs.h <<\_ACEOF
1831#define __BSD__ 1
1832_ACEOF
1833
1834 DEFAULT_DEFAULT_wxUSE_GTK=1
1835 ;;
1836 *-*-openbsd*)
1837 USE_BSD=1
1838 USE_OPENBSD=1
1839 cat >>confdefs.h <<\_ACEOF
1840#define __OPENBSD__ 1
1841_ACEOF
1842
1843 cat >>confdefs.h <<\_ACEOF
1844#define __BSD__ 1
1845_ACEOF
1846
1847 DEFAULT_DEFAULT_wxUSE_GTK=1
1848 ;;
1849 *-*-netbsd*)
1850 USE_BSD=1
1851 USE_NETBSD=1
1852 cat >>confdefs.h <<\_ACEOF
1853#define __NETBSD__ 1
1854_ACEOF
1855
1856 cat >>confdefs.h <<\_ACEOF
1857#define __BSD__ 1
1858_ACEOF
1859
1860 DEFAULT_DEFAULT_wxUSE_GTK=1
1861 ;;
1862 *-*-osf* )
1863 USE_ALPHA=1
1864 USE_OSF=1
1865 cat >>confdefs.h <<\_ACEOF
1866#define __ALPHA__ 1
1867_ACEOF
1868
1869 cat >>confdefs.h <<\_ACEOF
1870#define __OSF__ 1
1871_ACEOF
1872
1873 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1874 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1875 ;;
1876 *-*-dgux5* )
1877 USE_ALPHA=1
1878 USE_SVR4=1
1879 cat >>confdefs.h <<\_ACEOF
1880#define __ALPHA__ 1
1881_ACEOF
1882
1883 cat >>confdefs.h <<\_ACEOF
1884#define __SVR4__ 1
1885_ACEOF
1886
1887 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1888 ;;
1889 *-*-sysv5* )
1890 USE_SYSV=1
1891 USE_SVR4=1
1892 cat >>confdefs.h <<\_ACEOF
1893#define __SYSV__ 1
1894_ACEOF
1895
1896 cat >>confdefs.h <<\_ACEOF
1897#define __SVR4__ 1
1898_ACEOF
1899
1900 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1901 ;;
1902 *-*-aix* )
1903 USE_AIX=1
1904 USE_SYSV=1
1905 USE_SVR4=1
1906 SO_SUFFIX=a
1907 cat >>confdefs.h <<\_ACEOF
1908#define __AIX__ 1
1909_ACEOF
1910
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
1922 *-*-*UnixWare*)
1923 USE_SYSV=1
1924 USE_SVR4=1
1925 USE_UNIXWARE=1
1926 cat >>confdefs.h <<\_ACEOF
1927#define __UNIXWARE__ 1
1928_ACEOF
1929
1930 ;;
1931
1932 *-*-cygwin* | *-*-mingw32* )
1933 SO_SUFFIX=dll
1934 PROGRAM_EXT=".exe"
a848cd7e 1935 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1936 DEFAULT_STD_FLAG=no
a848cd7e
SC
1937 ;;
1938
1939 *-pc-msdosdjgpp )
1940 USE_UNIX=0
1941 USE_DOS=1
1942 cat >>confdefs.h <<\_ACEOF
1943#define __DOS__ 1
1944_ACEOF
1945
1946 PROGRAM_EXT=".exe"
1947 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1948 ;;
1949
1950 *-pc-os2_emx | *-pc-os2-emx )
1951 cat >>confdefs.h <<\_ACEOF
1952#define __EMX__ 1
1953_ACEOF
1954
1955 USE_OS2=1
1956 cat >>confdefs.h <<\_ACEOF
1957#define __OS2__ 1
1958_ACEOF
1959
1960 PROGRAM_EXT=".exe"
1961 DEFAULT_DEFAULT_wxUSE_PM=1
1962 CXX=gcc
1963 LDFLAGS="$LDFLAGS -Zcrtdll"
1964 ac_executable_extensions=".exe"
1965 export ac_executable_extensions
1966 ac_save_IFS="$IFS"
1967 IFS='\\'
1968 ac_TEMP_PATH=
1969 for ac_dir in $PATH; do
1970 IFS=$ac_save_IFS
1971 if test -z "$ac_TEMP_PATH"; then
1972 ac_TEMP_PATH="$ac_dir"
1973 else
1974 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1975 fi
1976 done
1977 export PATH="$ac_TEMP_PATH"
1978 unset ac_TEMP_PATH
a03b8b04 1979 DEFAULT_STD_FLAG=no
a848cd7e
SC
1980 ;;
1981
cfda0ea8 1982 *-*-darwin* )
a848cd7e
SC
1983 USE_BSD=1
1984 USE_DARWIN=1
1985 SO_SUFFIX=dylib
1986 cat >>confdefs.h <<\_ACEOF
1987#define __BSD__ 1
1988_ACEOF
1989
1990 cat >>confdefs.h <<\_ACEOF
1991#define __DARWIN__ 1
a848cd7e
SC
1992_ACEOF
1993
1994 cat >>confdefs.h <<\_ACEOF
1995#define TARGET_CARBON 1
1996_ACEOF
1997
1998 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1999 DEFAULT_STD_FLAG=no
a848cd7e 2000 ;;
1e9e8aba
DE
2001 powerpc-apple-macos* )
2002 USE_UNIX=0
2003 ac_cv_c_bigendian=yes
2004 SO_SUFFIX=shlib
2005 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2006 DEFAULT_STD_FLAG=no
1e9e8aba 2007 ;;
a848cd7e
SC
2008
2009 *-*-beos* )
2010 USE_BEOS=1
2011 cat >>confdefs.h <<\_ACEOF
2012#define __BEOS__ 1
2013_ACEOF
2014
2015 ;;
2016
2017 *)
2018 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2019echo "$as_me: error: unknown system type ${host}." >&2;}
2020 { (exit 1); exit 1; }; }
2021esac
2022
2023
2024
2025
2026 wx_arg_cache_file="configarg.cache"
2027 echo "loading argument cache $wx_arg_cache_file"
2028 rm -f ${wx_arg_cache_file}.tmp
2029 touch ${wx_arg_cache_file}.tmp
2030 touch ${wx_arg_cache_file}
2031
2032
2033DEBUG_CONFIGURE=0
2034if test $DEBUG_CONFIGURE = 1; then
2035 DEFAULT_wxUSE_UNIVERSAL=no
2036 DEFAULT_wxUSE_STL=no
2037
2038 DEFAULT_wxUSE_NANOX=no
2039
2040 DEFAULT_wxUSE_THREADS=yes
2041
2042 DEFAULT_wxUSE_SHARED=yes
2043 DEFAULT_wxUSE_OPTIMISE=no
2044 DEFAULT_wxUSE_PROFILE=no
2045 DEFAULT_wxUSE_NO_DEPS=no
2046 DEFAULT_wxUSE_NO_RTTI=no
2047 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2048 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2049 DEFAULT_wxUSE_PERMISSIVE=no
2050 DEFAULT_wxUSE_DEBUG_FLAG=yes
2051 DEFAULT_wxUSE_DEBUG_INFO=yes
2052 DEFAULT_wxUSE_DEBUG_GDB=yes
2053 DEFAULT_wxUSE_MEM_TRACING=no
2054 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2055 DEFAULT_wxUSE_DMALLOC=no
2056 DEFAULT_wxUSE_APPLE_IEEE=no
2057
2058 DEFAULT_wxUSE_EXCEPTIONS=no
2059 DEFAULT_wxUSE_LOG=yes
2060 DEFAULT_wxUSE_LOGWINDOW=no
2061 DEFAULT_wxUSE_LOGGUI=no
2062 DEFAULT_wxUSE_LOGDIALOG=no
2063
2064 DEFAULT_wxUSE_GUI=yes
2065 DEFAULT_wxUSE_CONTROLS=no
2066
2067 DEFAULT_wxUSE_REGEX=no
2068 DEFAULT_wxUSE_XML=no
2069 DEFAULT_wxUSE_EXPAT=no
2070 DEFAULT_wxUSE_ZLIB=no
2071 DEFAULT_wxUSE_LIBPNG=no
2072 DEFAULT_wxUSE_LIBJPEG=no
2073 DEFAULT_wxUSE_LIBTIFF=no
2074 DEFAULT_wxUSE_LIBXPM=no
2075 DEFAULT_wxUSE_LIBMSPACK=no
2076 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2077 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2078 DEFAULT_wxUSE_ODBC=no
2079 DEFAULT_wxUSE_OPENGL=no
2080
2081 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2082 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2083 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2084 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2085 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2086 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2087 DEFAULT_wxUSE_CMDLINE_PARSER=no
2088 DEFAULT_wxUSE_DATETIME=no
2089 DEFAULT_wxUSE_TIMER=no
2090 DEFAULT_wxUSE_STOPWATCH=no
2091 DEFAULT_wxUSE_FILE=no
2092 DEFAULT_wxUSE_FFILE=no
07158944 2093 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2094 DEFAULT_wxUSE_TEXTBUFFER=no
2095 DEFAULT_wxUSE_TEXTFILE=no
2096 DEFAULT_wxUSE_SOUND=no
3b57de8b 2097 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2098 DEFAULT_wxUSE_INTL=no
2099 DEFAULT_wxUSE_CONFIG=no
2100 DEFAULT_wxUSE_FONTMAP=no
2101 DEFAULT_wxUSE_STREAMS=no
2102 DEFAULT_wxUSE_SOCKETS=no
2103 DEFAULT_wxUSE_OLE=no
2104 DEFAULT_wxUSE_DATAOBJ=no
2105 DEFAULT_wxUSE_DIALUP_MANAGER=no
2106 DEFAULT_wxUSE_JOYSTICK=no
2107 DEFAULT_wxUSE_DYNLIB_CLASS=no
2108 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2109 DEFAULT_wxUSE_LONGLONG=no
2110 DEFAULT_wxUSE_GEOMETRY=no
2111
2112 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2113 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2114 DEFAULT_wxUSE_POSTSCRIPT=no
2115
2116 DEFAULT_wxUSE_CLIPBOARD=no
2117 DEFAULT_wxUSE_TOOLTIPS=no
2118 DEFAULT_wxUSE_DRAG_AND_DROP=no
2119 DEFAULT_wxUSE_DRAGIMAGE=no
2120 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2121 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2122
8a7b1113 2123 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2124 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2125 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2126 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2127
2128 DEFAULT_wxUSE_RESOURCES=no
2129 DEFAULT_wxUSE_CONSTRAINTS=no
2130 DEFAULT_wxUSE_IPC=no
2131 DEFAULT_wxUSE_HELP=no
2132 DEFAULT_wxUSE_MS_HTML_HELP=no
2133 DEFAULT_wxUSE_WXHTML_HELP=no
2134 DEFAULT_wxUSE_TREELAYOUT=no
2135 DEFAULT_wxUSE_METAFILE=no
2136 DEFAULT_wxUSE_MIMETYPE=no
2137 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2138 DEFAULT_wxUSE_PROTOCOL=no
2139 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2140 DEFAULT_wxUSE_PROTOCOL_FTP=no
2141 DEFAULT_wxUSE_PROTOCOL_FILE=no
2142 DEFAULT_wxUSE_URL=no
2143
2144 DEFAULT_wxUSE_COMMONDLGS=no
2145 DEFAULT_wxUSE_CHOICEDLG=no
2146 DEFAULT_wxUSE_COLOURDLG=no
2147 DEFAULT_wxUSE_DIRDLG=no
2148 DEFAULT_wxUSE_FILEDLG=no
2149 DEFAULT_wxUSE_FINDREPLDLG=no
2150 DEFAULT_wxUSE_FONTDLG=no
2151 DEFAULT_wxUSE_MSGDLG=no
2152 DEFAULT_wxUSE_NUMBERDLG=no
2153 DEFAULT_wxUSE_TEXTDLG=no
2154 DEFAULT_wxUSE_SPLASH=no
2155 DEFAULT_wxUSE_STARTUP_TIPS=no
2156 DEFAULT_wxUSE_PROGRESSDLG=no
2157 DEFAULT_wxUSE_WIZARDDLG=no
2158
2159 DEFAULT_wxUSE_MENUS=no
2160 DEFAULT_wxUSE_MINIFRAME=no
2161 DEFAULT_wxUSE_HTML=no
91dea314 2162 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2163 DEFAULT_wxUSE_XRC=no
646b6ec1 2164 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2165 DEFAULT_wxUSE_FILESYSTEM=no
2166 DEFAULT_wxUSE_FS_INET=no
2167 DEFAULT_wxUSE_FS_ZIP=no
2168 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2169 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2170 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2171 DEFAULT_wxUSE_VALIDATORS=no
2172
2173 DEFAULT_wxUSE_ACCEL=no
2174 DEFAULT_wxUSE_BUTTON=no
2175 DEFAULT_wxUSE_BMPBUTTON=no
2176 DEFAULT_wxUSE_CALCTRL=no
2177 DEFAULT_wxUSE_CARET=no
2178 DEFAULT_wxUSE_CHECKBOX=no
2179 DEFAULT_wxUSE_CHECKLST=no
2180 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2181 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2182 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2183 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2184 DEFAULT_wxUSE_DISPLAY=no
2185 DEFAULT_wxUSE_GAUGE=no
2186 DEFAULT_wxUSE_GRID=no
2187 DEFAULT_wxUSE_IMAGLIST=no
2188 DEFAULT_wxUSE_LISTBOOK=no
2189 DEFAULT_wxUSE_LISTBOX=no
2190 DEFAULT_wxUSE_LISTCTRL=no
2191 DEFAULT_wxUSE_NOTEBOOK=no
2192 DEFAULT_wxUSE_RADIOBOX=no
2193 DEFAULT_wxUSE_RADIOBTN=no
2194 DEFAULT_wxUSE_SASH=no
2195 DEFAULT_wxUSE_SCROLLBAR=no
2196 DEFAULT_wxUSE_SLIDER=no
2197 DEFAULT_wxUSE_SPINBTN=no
2198 DEFAULT_wxUSE_SPINCTRL=no
2199 DEFAULT_wxUSE_SPLITTER=no
2200 DEFAULT_wxUSE_STATBMP=no
2201 DEFAULT_wxUSE_STATBOX=no
2202 DEFAULT_wxUSE_STATLINE=no
2203 DEFAULT_wxUSE_STATTEXT=no
2204 DEFAULT_wxUSE_STATUSBAR=yes
2205 DEFAULT_wxUSE_TABDIALOG=no
2206 DEFAULT_wxUSE_TEXTCTRL=no
2207 DEFAULT_wxUSE_TOGGLEBTN=no
2208 DEFAULT_wxUSE_TOOLBAR=no
2209 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2210 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2211 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
2212 DEFAULT_wxUSE_TREECTRL=no
2213 DEFAULT_wxUSE_POPUPWIN=no
2214 DEFAULT_wxUSE_TIPWINDOW=no
2215
2216 DEFAULT_wxUSE_UNICODE=no
2217 DEFAULT_wxUSE_UNICODE_MSLU=no
2218 DEFAULT_wxUSE_WCSRTOMBS=no
2219
2220 DEFAULT_wxUSE_PALETTE=no
2221 DEFAULT_wxUSE_IMAGE=no
2222 DEFAULT_wxUSE_GIF=no
2223 DEFAULT_wxUSE_PCX=no
2224 DEFAULT_wxUSE_PNM=no
2225 DEFAULT_wxUSE_IFF=no
2226 DEFAULT_wxUSE_XPM=no
2227 DEFAULT_wxUSE_ICO_CUR=no
2228 DEFAULT_wxUSE_ACCESSIBILITY=no
2229
2230 DEFAULT_wxUSE_MONOLITHIC=no
2231 DEFAULT_wxUSE_PLUGINS=no
2232 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2233else
2234 DEFAULT_wxUSE_UNIVERSAL=no
2235 DEFAULT_wxUSE_STL=no
2236
2237 DEFAULT_wxUSE_NANOX=no
2238
2239 DEFAULT_wxUSE_THREADS=yes
2240
2241 DEFAULT_wxUSE_SHARED=yes
2242 DEFAULT_wxUSE_OPTIMISE=yes
2243 DEFAULT_wxUSE_PROFILE=no
2244 DEFAULT_wxUSE_NO_DEPS=no
2245 DEFAULT_wxUSE_NO_RTTI=no
2246 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2247 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2248 DEFAULT_wxUSE_PERMISSIVE=no
2249 DEFAULT_wxUSE_DEBUG_FLAG=no
2250 DEFAULT_wxUSE_DEBUG_INFO=no
2251 DEFAULT_wxUSE_DEBUG_GDB=no
2252 DEFAULT_wxUSE_MEM_TRACING=no
2253 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2254 DEFAULT_wxUSE_DMALLOC=no
2255 DEFAULT_wxUSE_APPLE_IEEE=yes
2256
2257 DEFAULT_wxUSE_EXCEPTIONS=yes
2258 DEFAULT_wxUSE_LOG=yes
2259 DEFAULT_wxUSE_LOGWINDOW=yes
2260 DEFAULT_wxUSE_LOGGUI=yes
2261 DEFAULT_wxUSE_LOGDIALOG=yes
2262
2263 DEFAULT_wxUSE_GUI=yes
2264
2265 DEFAULT_wxUSE_REGEX=yes
2266 DEFAULT_wxUSE_XML=yes
2267 DEFAULT_wxUSE_EXPAT=yes
2268 DEFAULT_wxUSE_ZLIB=yes
2269 DEFAULT_wxUSE_LIBPNG=yes
2270 DEFAULT_wxUSE_LIBJPEG=yes
2271 DEFAULT_wxUSE_LIBTIFF=yes
2272 DEFAULT_wxUSE_LIBXPM=yes
2273 DEFAULT_wxUSE_LIBMSPACK=yes
2274 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2275 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2276 DEFAULT_wxUSE_ODBC=no
52cb607e 2277 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2278
2279 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2280 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2281 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2282 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2283 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2284 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2285 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2286 DEFAULT_wxUSE_DATETIME=yes
2287 DEFAULT_wxUSE_TIMER=yes
2288 DEFAULT_wxUSE_STOPWATCH=yes
2289 DEFAULT_wxUSE_FILE=yes
2290 DEFAULT_wxUSE_FFILE=yes
07158944 2291 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2292 DEFAULT_wxUSE_TEXTBUFFER=yes
2293 DEFAULT_wxUSE_TEXTFILE=yes
2294 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2295 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2296 DEFAULT_wxUSE_INTL=yes
2297 DEFAULT_wxUSE_CONFIG=yes
2298 DEFAULT_wxUSE_FONTMAP=yes
2299 DEFAULT_wxUSE_STREAMS=yes
2300 DEFAULT_wxUSE_SOCKETS=yes
2301 DEFAULT_wxUSE_OLE=yes
2302 DEFAULT_wxUSE_DATAOBJ=yes
2303 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2304 DEFAULT_wxUSE_JOYSTICK=yes
2305 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2306 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2307 DEFAULT_wxUSE_LONGLONG=yes
2308 DEFAULT_wxUSE_GEOMETRY=yes
2309
2310 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2311 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2312 DEFAULT_wxUSE_POSTSCRIPT=yes
2313
2314 DEFAULT_wxUSE_CLIPBOARD=yes
2315 DEFAULT_wxUSE_TOOLTIPS=yes
2316 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2317 DEFAULT_wxUSE_DRAGIMAGE=yes
2318 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2319 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2320
8a7b1113 2321 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2322 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2323 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2324 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2325
2326 DEFAULT_wxUSE_RESOURCES=no
2327 DEFAULT_wxUSE_CONSTRAINTS=yes
2328 DEFAULT_wxUSE_IPC=yes
2329 DEFAULT_wxUSE_HELP=yes
2330 DEFAULT_wxUSE_MS_HTML_HELP=yes
2331 DEFAULT_wxUSE_WXHTML_HELP=yes
2332 DEFAULT_wxUSE_TREELAYOUT=yes
2333 DEFAULT_wxUSE_METAFILE=yes
2334 DEFAULT_wxUSE_MIMETYPE=yes
2335 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2336 DEFAULT_wxUSE_PROTOCOL=yes
2337 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2338 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2339 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2340 DEFAULT_wxUSE_URL=yes
2341
2342 DEFAULT_wxUSE_COMMONDLGS=yes
2343 DEFAULT_wxUSE_CHOICEDLG=yes
2344 DEFAULT_wxUSE_COLOURDLG=yes
2345 DEFAULT_wxUSE_DIRDLG=yes
2346 DEFAULT_wxUSE_FILEDLG=yes
2347 DEFAULT_wxUSE_FINDREPLDLG=yes
2348 DEFAULT_wxUSE_FONTDLG=yes
2349 DEFAULT_wxUSE_MSGDLG=yes
2350 DEFAULT_wxUSE_NUMBERDLG=yes
2351 DEFAULT_wxUSE_TEXTDLG=yes
2352 DEFAULT_wxUSE_SPLASH=yes
2353 DEFAULT_wxUSE_STARTUP_TIPS=yes
2354 DEFAULT_wxUSE_PROGRESSDLG=yes
2355 DEFAULT_wxUSE_WIZARDDLG=yes
2356
2357 DEFAULT_wxUSE_MENUS=yes
2358 DEFAULT_wxUSE_MINIFRAME=yes
2359 DEFAULT_wxUSE_HTML=yes
91dea314 2360 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2361 DEFAULT_wxUSE_XRC=yes
646b6ec1 2362 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2363 DEFAULT_wxUSE_FILESYSTEM=yes
2364 DEFAULT_wxUSE_FS_INET=yes
2365 DEFAULT_wxUSE_FS_ZIP=yes
2366 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2367 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2368 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2369 DEFAULT_wxUSE_VALIDATORS=yes
2370
2371 DEFAULT_wxUSE_ACCEL=yes
2372 DEFAULT_wxUSE_BUTTON=yes
2373 DEFAULT_wxUSE_BMPBUTTON=yes
2374 DEFAULT_wxUSE_CALCTRL=yes
2375 DEFAULT_wxUSE_CARET=yes
2376 DEFAULT_wxUSE_CHECKBOX=yes
2377 DEFAULT_wxUSE_CHECKLST=yes
2378 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2379 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2380 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2381 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2382 DEFAULT_wxUSE_DISPLAY=yes
2383 DEFAULT_wxUSE_GAUGE=yes
2384 DEFAULT_wxUSE_GRID=yes
2385 DEFAULT_wxUSE_IMAGLIST=yes
2386 DEFAULT_wxUSE_LISTBOOK=yes
2387 DEFAULT_wxUSE_LISTBOX=yes
2388 DEFAULT_wxUSE_LISTCTRL=yes
2389 DEFAULT_wxUSE_NOTEBOOK=yes
2390 DEFAULT_wxUSE_RADIOBOX=yes
2391 DEFAULT_wxUSE_RADIOBTN=yes
2392 DEFAULT_wxUSE_SASH=yes
2393 DEFAULT_wxUSE_SCROLLBAR=yes
2394 DEFAULT_wxUSE_SLIDER=yes
2395 DEFAULT_wxUSE_SPINBTN=yes
2396 DEFAULT_wxUSE_SPINCTRL=yes
2397 DEFAULT_wxUSE_SPLITTER=yes
2398 DEFAULT_wxUSE_STATBMP=yes
2399 DEFAULT_wxUSE_STATBOX=yes
2400 DEFAULT_wxUSE_STATLINE=yes
2401 DEFAULT_wxUSE_STATTEXT=yes
2402 DEFAULT_wxUSE_STATUSBAR=yes
2403 DEFAULT_wxUSE_TABDIALOG=no
2404 DEFAULT_wxUSE_TEXTCTRL=yes
2405 DEFAULT_wxUSE_TOGGLEBTN=yes
2406 DEFAULT_wxUSE_TOOLBAR=yes
2407 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2408 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2409 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
2410 DEFAULT_wxUSE_TREECTRL=yes
2411 DEFAULT_wxUSE_POPUPWIN=yes
2412 DEFAULT_wxUSE_TIPWINDOW=yes
2413
78de529b 2414 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2415 DEFAULT_wxUSE_UNICODE_MSLU=yes
2416 DEFAULT_wxUSE_WCSRTOMBS=no
2417
2418 DEFAULT_wxUSE_PALETTE=yes
2419 DEFAULT_wxUSE_IMAGE=yes
2420 DEFAULT_wxUSE_GIF=yes
2421 DEFAULT_wxUSE_PCX=yes
2422 DEFAULT_wxUSE_IFF=no
2423 DEFAULT_wxUSE_PNM=yes
2424 DEFAULT_wxUSE_XPM=yes
2425 DEFAULT_wxUSE_ICO_CUR=yes
2426 DEFAULT_wxUSE_ACCESSIBILITY=no
2427
2428 DEFAULT_wxUSE_MONOLITHIC=no
2429 DEFAULT_wxUSE_PLUGINS=no
2430 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2431
f34ca037 2432 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2433fi
2434
2435
2436
f34ca037 2437
a848cd7e
SC
2438for toolkit in `echo $ALL_TOOLKITS`; do
2439 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2440 if test "x$LINE" != "x" ; then
2441 has_toolkit_in_cache=1
2442 eval "DEFAULT_$LINE"
2443 eval "CACHE_$toolkit=1"
f34ca037
MW
2444
2445 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2446 if test "x$LINE" != "x" ; then
2447 eval "DEFAULT_$LINE"
2448 fi
a848cd7e
SC
2449 fi
2450done
2451
2452
2453
2454 enablestring=
2455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2456echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2457 no_cache=0
2458 # Check whether --enable-gui or --disable-gui was given.
2459if test "${enable_gui+set}" = set; then
2460 enableval="$enable_gui"
2461
2462 if test "$enableval" = yes; then
2463 ac_cv_use_gui='wxUSE_GUI=yes'
2464 else
2465 ac_cv_use_gui='wxUSE_GUI=no'
2466 fi
2467
2468else
2469
2470 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2471 if test "x$LINE" != x ; then
2472 eval "DEFAULT_$LINE"
2473 else
2474 no_cache=1
2475 fi
2476
2477 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2478
2479fi;
2480
2481 eval "$ac_cv_use_gui"
2482 if test "$no_cache" != 1; then
2483 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2484 fi
2485
2486 if test "$wxUSE_GUI" = yes; then
2487 echo "$as_me:$LINENO: result: yes" >&5
2488echo "${ECHO_T}yes" >&6
2489 else
2490 echo "$as_me:$LINENO: result: no" >&5
2491echo "${ECHO_T}no" >&6
2492 fi
2493
2494
2495 enablestring=
2496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2497echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2498 no_cache=0
2499 # Check whether --enable-monolithic or --disable-monolithic was given.
2500if test "${enable_monolithic+set}" = set; then
2501 enableval="$enable_monolithic"
2502
2503 if test "$enableval" = yes; then
2504 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2505 else
2506 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2507 fi
2508
2509else
2510
2511 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2512 if test "x$LINE" != x ; then
2513 eval "DEFAULT_$LINE"
2514 else
2515 no_cache=1
2516 fi
2517
2518 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2519
2520fi;
2521
2522 eval "$ac_cv_use_monolithic"
2523 if test "$no_cache" != 1; then
2524 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2525 fi
2526
2527 if test "$wxUSE_MONOLITHIC" = yes; then
2528 echo "$as_me:$LINENO: result: yes" >&5
2529echo "${ECHO_T}yes" >&6
2530 else
2531 echo "$as_me:$LINENO: result: no" >&5
2532echo "${ECHO_T}no" >&6
2533 fi
2534
2535
2536 enablestring=
2537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2538echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2539 no_cache=0
2540 # Check whether --enable-plugins or --disable-plugins was given.
2541if test "${enable_plugins+set}" = set; then
2542 enableval="$enable_plugins"
2543
2544 if test "$enableval" = yes; then
2545 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2546 else
2547 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2548 fi
2549
2550else
2551
2552 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2553 if test "x$LINE" != x ; then
2554 eval "DEFAULT_$LINE"
2555 else
2556 no_cache=1
2557 fi
2558
2559 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2560
2561fi;
2562
2563 eval "$ac_cv_use_plugins"
2564 if test "$no_cache" != 1; then
2565 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2566 fi
2567
2568 if test "$wxUSE_PLUGINS" = yes; then
2569 echo "$as_me:$LINENO: result: yes" >&5
2570echo "${ECHO_T}yes" >&6
2571 else
2572 echo "$as_me:$LINENO: result: no" >&5
2573echo "${ECHO_T}no" >&6
2574 fi
2575
2576
1c14217d
VZ
2577 withstring=without
2578 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2579echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2580 no_cache=0
2581
2582# Check whether --with-subdirs or --without-subdirs was given.
2583if test "${with_subdirs+set}" = set; then
2584 withval="$with_subdirs"
2585
2586 if test "$withval" = yes; then
2587 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2588 else
2589 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2590 fi
2591
2592else
2593
2594 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2595 if test "x$LINE" != x ; then
2596 eval "DEFAULT_$LINE"
2597 else
2598 no_cache=1
2599 fi
2600
2601 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2602
2603fi;
2604
2605 eval "$ac_cv_use_subdirs"
2606 if test "$no_cache" != 1; then
2607 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2608 fi
2609
2610 if test "$wxWITH_SUBDIRS" = yes; then
2611 echo "$as_me:$LINENO: result: yes" >&5
2612echo "${ECHO_T}yes" >&6
2613 else
2614 echo "$as_me:$LINENO: result: no" >&5
2615echo "${ECHO_T}no" >&6
2616 fi
2617
2618
a848cd7e
SC
2619if test "$wxUSE_GUI" = "yes"; then
2620
2621
2622 enablestring=
2623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2624echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2625 no_cache=0
2626 # Check whether --enable-universal or --disable-universal was given.
2627if test "${enable_universal+set}" = set; then
2628 enableval="$enable_universal"
2629
2630 if test "$enableval" = yes; then
2631 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2632 else
2633 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2634 fi
2635
2636else
2637
2638 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2639 if test "x$LINE" != x ; then
2640 eval "DEFAULT_$LINE"
2641 else
2642 no_cache=1
2643 fi
2644
2645 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2646
2647fi;
2648
2649 eval "$ac_cv_use_universal"
2650 if test "$no_cache" != 1; then
2651 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2652 fi
2653
2654 if test "$wxUSE_UNIVERSAL" = yes; then
2655 echo "$as_me:$LINENO: result: yes" >&5
2656echo "${ECHO_T}yes" >&6
2657 else
2658 echo "$as_me:$LINENO: result: no" >&5
2659echo "${ECHO_T}no" >&6
2660 fi
2661
2662
2663# Check whether --with-gtk or --without-gtk was given.
2664if test "${with_gtk+set}" = set; then
2665 withval="$with_gtk"
2666 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2667fi;
2668
2669# Check whether --with-motif or --without-motif was given.
2670if test "${with_motif+set}" = set; then
2671 withval="$with_motif"
2672 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2673fi;
2674
2675# Check whether --with-mac or --without-mac was given.
2676if test "${with_mac+set}" = set; then
2677 withval="$with_mac"
c228d3a4 2678 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2679fi;
2680
2681# Check whether --with-cocoa or --without-cocoa was given.
2682if test "${with_cocoa+set}" = set; then
2683 withval="$with_cocoa"
c228d3a4 2684 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2685fi;
2686
2687# Check whether --with-wine or --without-wine was given.
2688if test "${with_wine+set}" = set; then
2689 withval="$with_wine"
2690 wxUSE_WINE="$withval" CACHE_WINE=1
2691fi;
2692
2693# Check whether --with-msw or --without-msw was given.
2694if test "${with_msw+set}" = set; then
2695 withval="$with_msw"
2696 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2697fi;
2698
2699# Check whether --with-pm or --without-pm was given.
2700if test "${with_pm+set}" = set; then
2701 withval="$with_pm"
2702 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2703fi;
2704
2705# Check whether --with-mgl or --without-mgl was given.
2706if test "${with_mgl+set}" = set; then
2707 withval="$with_mgl"
2708 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2709fi;
2710
2711# Check whether --with-microwin or --without-microwin was given.
2712if test "${with_microwin+set}" = set; then
2713 withval="$with_microwin"
2714 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2715fi;
2716
2717# Check whether --with-x11 or --without-x11 was given.
2718if test "${with_x11+set}" = set; then
2719 withval="$with_x11"
2720 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2721fi;
2722
2723 enablestring=
2724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2725echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2726 no_cache=0
2727 # Check whether --enable-nanox or --disable-nanox was given.
2728if test "${enable_nanox+set}" = set; then
2729 enableval="$enable_nanox"
2730
2731 if test "$enableval" = yes; then
2732 ac_cv_use_nanox='wxUSE_NANOX=yes'
2733 else
2734 ac_cv_use_nanox='wxUSE_NANOX=no'
2735 fi
2736
2737else
2738
2739 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2740 if test "x$LINE" != x ; then
2741 eval "DEFAULT_$LINE"
2742 else
2743 no_cache=1
2744 fi
2745
2746 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2747
2748fi;
2749
2750 eval "$ac_cv_use_nanox"
2751 if test "$no_cache" != 1; then
2752 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2753 fi
2754
2755 if test "$wxUSE_NANOX" = yes; then
2756 echo "$as_me:$LINENO: result: yes" >&5
2757echo "${ECHO_T}yes" >&6
2758 else
2759 echo "$as_me:$LINENO: result: no" >&5
2760echo "${ECHO_T}no" >&6
2761 fi
2762
2763
f34ca037
MW
2764# Check whether --enable-gtk2 or --disable-gtk2 was given.
2765if test "${enable_gtk2+set}" = set; then
2766 enableval="$enable_gtk2"
2767 wxUSE_GTK2="$enableval"
2768fi;
a848cd7e 2769
a848cd7e
SC
2770 enablestring=
2771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2772echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2773 no_cache=0
2774 # Check whether --enable-gpe or --disable-gpe was given.
2775if test "${enable_gpe+set}" = set; then
2776 enableval="$enable_gpe"
2777
2778 if test "$enableval" = yes; then
2779 ac_cv_use_gpe='wxUSE_GPE=yes'
2780 else
2781 ac_cv_use_gpe='wxUSE_GPE=no'
2782 fi
2783
2784else
2785
2786 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2794
2795fi;
2796
2797 eval "$ac_cv_use_gpe"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_GPE" = yes; then
2803 echo "$as_me:$LINENO: result: yes" >&5
2804echo "${ECHO_T}yes" >&6
2805 else
2806 echo "$as_me:$LINENO: result: no" >&5
2807echo "${ECHO_T}no" >&6
2808 fi
2809
2810
2811
2812 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2813echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2814 no_cache=0
2815
2816# Check whether --with-libpng or --without-libpng was given.
2817if test "${with_libpng+set}" = set; then
2818 withval="$with_libpng"
2819
2820 if test "$withval" = yes; then
2821 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2822 elif test "$withval" = no; then
2823 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2824 elif test "$withval" = sys; then
2825 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2826 elif test "$withval" = builtin; then
2827 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2828 else
2829 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2830echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2831 { (exit 1); exit 1; }; }
2832 fi
2833
2834else
2835
2836 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2837 if test "x$LINE" != x ; then
2838 eval "DEFAULT_$LINE"
2839 else
2840 no_cache=1
2841 fi
2842
2843 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2844
2845fi;
2846
2847 eval "$ac_cv_use_libpng"
2848 if test "$no_cache" != 1; then
2849 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2850 fi
2851
2852 if test "$wxUSE_LIBPNG" = yes; then
2853 echo "$as_me:$LINENO: result: yes" >&5
2854echo "${ECHO_T}yes" >&6
2855 elif test "$wxUSE_LIBPNG" = no; then
2856 echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6
2858 elif test "$wxUSE_LIBPNG" = sys; then
2859 echo "$as_me:$LINENO: result: system version" >&5
2860echo "${ECHO_T}system version" >&6
2861 elif test "$wxUSE_LIBPNG" = builtin; then
2862 echo "$as_me:$LINENO: result: builtin version" >&5
2863echo "${ECHO_T}builtin version" >&6
2864 else
2865 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2866echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2867 { (exit 1); exit 1; }; }
2868 fi
2869
2870
2871 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2872echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2873 no_cache=0
2874
2875# Check whether --with-libjpeg or --without-libjpeg was given.
2876if test "${with_libjpeg+set}" = set; then
2877 withval="$with_libjpeg"
2878
2879 if test "$withval" = yes; then
2880 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2881 elif test "$withval" = no; then
2882 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2883 elif test "$withval" = sys; then
2884 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2885 elif test "$withval" = builtin; then
2886 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2887 else
2888 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2889echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2890 { (exit 1); exit 1; }; }
2891 fi
2892
2893else
2894
2895 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2896 if test "x$LINE" != x ; then
2897 eval "DEFAULT_$LINE"
2898 else
2899 no_cache=1
2900 fi
2901
2902 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2903
2904fi;
2905
2906 eval "$ac_cv_use_libjpeg"
2907 if test "$no_cache" != 1; then
2908 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2909 fi
2910
2911 if test "$wxUSE_LIBJPEG" = yes; then
2912 echo "$as_me:$LINENO: result: yes" >&5
2913echo "${ECHO_T}yes" >&6
2914 elif test "$wxUSE_LIBJPEG" = no; then
2915 echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6
2917 elif test "$wxUSE_LIBJPEG" = sys; then
2918 echo "$as_me:$LINENO: result: system version" >&5
2919echo "${ECHO_T}system version" >&6
2920 elif test "$wxUSE_LIBJPEG" = builtin; then
2921 echo "$as_me:$LINENO: result: builtin version" >&5
2922echo "${ECHO_T}builtin version" >&6
2923 else
2924 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2925echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2926 { (exit 1); exit 1; }; }
2927 fi
2928
2929
2930 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2931echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2932 no_cache=0
2933
2934# Check whether --with-libtiff or --without-libtiff was given.
2935if test "${with_libtiff+set}" = set; then
2936 withval="$with_libtiff"
2937
2938 if test "$withval" = yes; then
2939 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2940 elif test "$withval" = no; then
2941 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2942 elif test "$withval" = sys; then
2943 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2944 elif test "$withval" = builtin; then
2945 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2946 else
2947 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2948echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2949 { (exit 1); exit 1; }; }
2950 fi
2951
2952else
2953
2954 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2955 if test "x$LINE" != x ; then
2956 eval "DEFAULT_$LINE"
2957 else
2958 no_cache=1
2959 fi
2960
2961 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2962
2963fi;
2964
2965 eval "$ac_cv_use_libtiff"
2966 if test "$no_cache" != 1; then
2967 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2968 fi
2969
2970 if test "$wxUSE_LIBTIFF" = yes; then
2971 echo "$as_me:$LINENO: result: yes" >&5
2972echo "${ECHO_T}yes" >&6
2973 elif test "$wxUSE_LIBTIFF" = no; then
2974 echo "$as_me:$LINENO: result: no" >&5
2975echo "${ECHO_T}no" >&6
2976 elif test "$wxUSE_LIBTIFF" = sys; then
2977 echo "$as_me:$LINENO: result: system version" >&5
2978echo "${ECHO_T}system version" >&6
2979 elif test "$wxUSE_LIBTIFF" = builtin; then
2980 echo "$as_me:$LINENO: result: builtin version" >&5
2981echo "${ECHO_T}builtin version" >&6
2982 else
2983 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2984echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2985 { (exit 1); exit 1; }; }
2986 fi
2987
2988
2989 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2990echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2991 no_cache=0
2992
2993# Check whether --with-libxpm or --without-libxpm was given.
2994if test "${with_libxpm+set}" = set; then
2995 withval="$with_libxpm"
2996
2997 if test "$withval" = yes; then
2998 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2999 elif test "$withval" = no; then
3000 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3001 elif test "$withval" = sys; then
3002 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3003 elif test "$withval" = builtin; then
3004 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3005 else
3006 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3007echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3008 { (exit 1); exit 1; }; }
3009 fi
3010
3011else
3012
3013 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3014 if test "x$LINE" != x ; then
3015 eval "DEFAULT_$LINE"
3016 else
3017 no_cache=1
3018 fi
3019
3020 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3021
3022fi;
3023
3024 eval "$ac_cv_use_libxpm"
3025 if test "$no_cache" != 1; then
3026 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3027 fi
3028
3029 if test "$wxUSE_LIBXPM" = yes; then
3030 echo "$as_me:$LINENO: result: yes" >&5
3031echo "${ECHO_T}yes" >&6
3032 elif test "$wxUSE_LIBXPM" = no; then
3033 echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
3035 elif test "$wxUSE_LIBXPM" = sys; then
3036 echo "$as_me:$LINENO: result: system version" >&5
3037echo "${ECHO_T}system version" >&6
3038 elif test "$wxUSE_LIBXPM" = builtin; then
3039 echo "$as_me:$LINENO: result: builtin version" >&5
3040echo "${ECHO_T}builtin version" >&6
3041 else
3042 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3043echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3044 { (exit 1); exit 1; }; }
3045 fi
3046
3047
1c14217d
VZ
3048 withstring=
3049 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3050echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3051 no_cache=0
3052
3053# Check whether --with-libmspack or --without-libmspack was given.
3054if test "${with_libmspack+set}" = set; then
3055 withval="$with_libmspack"
3056
3057 if test "$withval" = yes; then
3058 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3059 else
3060 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3061 fi
3062
3063else
3064
3065 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3066 if test "x$LINE" != x ; then
3067 eval "DEFAULT_$LINE"
3068 else
3069 no_cache=1
3070 fi
3071
3072 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3073
3074fi;
3075
3076 eval "$ac_cv_use_libmspack"
3077 if test "$no_cache" != 1; then
3078 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3079 fi
3080
3081 if test "$wxUSE_LIBMSPACK" = yes; then
3082 echo "$as_me:$LINENO: result: yes" >&5
3083echo "${ECHO_T}yes" >&6
3084 else
3085 echo "$as_me:$LINENO: result: no" >&5
3086echo "${ECHO_T}no" >&6
3087 fi
3088
3089
1c14217d
VZ
3090 withstring=
3091 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3092echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3093 no_cache=0
3094
3095# Check whether --with-sdl or --without-sdl was given.
3096if test "${with_sdl+set}" = set; then
3097 withval="$with_sdl"
3098
3099 if test "$withval" = yes; then
3100 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3101 else
3102 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3103 fi
3104
3105else
3106
3107 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3108 if test "x$LINE" != x ; then
3109 eval "DEFAULT_$LINE"
3110 else
3111 no_cache=1
3112 fi
3113
3114 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3115
3116fi;
3117
3118 eval "$ac_cv_use_sdl"
3119 if test "$no_cache" != 1; then
3120 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3121 fi
3122
3123 if test "$wxUSE_LIBSDL" = yes; then
3124 echo "$as_me:$LINENO: result: yes" >&5
3125echo "${ECHO_T}yes" >&6
3126 else
3127 echo "$as_me:$LINENO: result: no" >&5
3128echo "${ECHO_T}no" >&6
3129 fi
3130
3131
1c14217d
VZ
3132 withstring=
3133 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3134echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3135 no_cache=0
3136
3137# Check whether --with-gnomeprint or --without-gnomeprint was given.
3138if test "${with_gnomeprint+set}" = set; then
3139 withval="$with_gnomeprint"
3140
3141 if test "$withval" = yes; then
3142 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3143 else
3144 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3157
3158fi;
3159
3160 eval "$ac_cv_use_gnomeprint"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3166 echo "$as_me:$LINENO: result: yes" >&5
3167echo "${ECHO_T}yes" >&6
3168 else
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171 fi
3172
3173
1c14217d
VZ
3174 withstring=
3175 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3176echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3177 no_cache=0
3178
3179# Check whether --with-opengl or --without-opengl was given.
3180if test "${with_opengl+set}" = set; then
3181 withval="$with_opengl"
3182
3183 if test "$withval" = yes; then
3184 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3185 else
3186 ac_cv_use_opengl='wxUSE_OPENGL=no'
3187 fi
3188
3189else
3190
3191 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3192 if test "x$LINE" != x ; then
3193 eval "DEFAULT_$LINE"
3194 else
3195 no_cache=1
3196 fi
3197
3198 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3199
3200fi;
3201
3202 eval "$ac_cv_use_opengl"
3203 if test "$no_cache" != 1; then
3204 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3205 fi
3206
3207 if test "$wxUSE_OPENGL" = yes; then
3208 echo "$as_me:$LINENO: result: yes" >&5
3209echo "${ECHO_T}yes" >&6
3210 else
3211 echo "$as_me:$LINENO: result: no" >&5
3212echo "${ECHO_T}no" >&6
3213 fi
3214
3215
3216fi
3217
3218
1c14217d
VZ
3219 withstring=
3220 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3221echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3222 no_cache=0
3223
3224# Check whether --with-dmalloc or --without-dmalloc was given.
3225if test "${with_dmalloc+set}" = set; then
3226 withval="$with_dmalloc"
3227
3228 if test "$withval" = yes; then
3229 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3230 else
3231 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3232 fi
3233
3234else
3235
3236 LINE=`grep "wxUSE_DMALLOC" ${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_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3244
3245fi;
3246
3247 eval "$ac_cv_use_dmalloc"
3248 if test "$no_cache" != 1; then
3249 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3250 fi
3251
3252 if test "$wxUSE_DMALLOC" = 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
3261 echo "$as_me:$LINENO: checking for --with-regex" >&5
3262echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3263 no_cache=0
3264
3265# Check whether --with-regex or --without-regex was given.
3266if test "${with_regex+set}" = set; then
3267 withval="$with_regex"
3268
3269 if test "$withval" = yes; then
3270 ac_cv_use_regex='wxUSE_REGEX=yes'
3271 elif test "$withval" = no; then
3272 ac_cv_use_regex='wxUSE_REGEX=no'
3273 elif test "$withval" = sys; then
3274 ac_cv_use_regex='wxUSE_REGEX=sys'
3275 elif test "$withval" = builtin; then
3276 ac_cv_use_regex='wxUSE_REGEX=builtin'
3277 else
3278 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3279echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3280 { (exit 1); exit 1; }; }
3281 fi
3282
3283else
3284
3285 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3286 if test "x$LINE" != x ; then
3287 eval "DEFAULT_$LINE"
3288 else
3289 no_cache=1
3290 fi
3291
3292 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3293
3294fi;
3295
3296 eval "$ac_cv_use_regex"
3297 if test "$no_cache" != 1; then
3298 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3299 fi
3300
3301 if test "$wxUSE_REGEX" = yes; then
3302 echo "$as_me:$LINENO: result: yes" >&5
3303echo "${ECHO_T}yes" >&6
3304 elif test "$wxUSE_REGEX" = no; then
3305 echo "$as_me:$LINENO: result: no" >&5
3306echo "${ECHO_T}no" >&6
3307 elif test "$wxUSE_REGEX" = sys; then
3308 echo "$as_me:$LINENO: result: system version" >&5
3309echo "${ECHO_T}system version" >&6
3310 elif test "$wxUSE_REGEX" = builtin; then
3311 echo "$as_me:$LINENO: result: builtin version" >&5
3312echo "${ECHO_T}builtin version" >&6
3313 else
3314 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3315echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3316 { (exit 1); exit 1; }; }
3317 fi
3318
3319
3320 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3321echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3322 no_cache=0
3323
3324# Check whether --with-zlib or --without-zlib was given.
3325if test "${with_zlib+set}" = set; then
3326 withval="$with_zlib"
3327
3328 if test "$withval" = yes; then
3329 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3330 elif test "$withval" = no; then
3331 ac_cv_use_zlib='wxUSE_ZLIB=no'
3332 elif test "$withval" = sys; then
3333 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3334 elif test "$withval" = builtin; then
3335 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3336 else
3337 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3338echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3339 { (exit 1); exit 1; }; }
3340 fi
3341
3342else
3343
3344 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3345 if test "x$LINE" != x ; then
3346 eval "DEFAULT_$LINE"
3347 else
3348 no_cache=1
3349 fi
3350
3351 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3352
3353fi;
3354
3355 eval "$ac_cv_use_zlib"
3356 if test "$no_cache" != 1; then
3357 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3358 fi
3359
3360 if test "$wxUSE_ZLIB" = yes; then
3361 echo "$as_me:$LINENO: result: yes" >&5
3362echo "${ECHO_T}yes" >&6
3363 elif test "$wxUSE_ZLIB" = no; then
3364 echo "$as_me:$LINENO: result: no" >&5
3365echo "${ECHO_T}no" >&6
3366 elif test "$wxUSE_ZLIB" = sys; then
3367 echo "$as_me:$LINENO: result: system version" >&5
3368echo "${ECHO_T}system version" >&6
3369 elif test "$wxUSE_ZLIB" = builtin; then
3370 echo "$as_me:$LINENO: result: builtin version" >&5
3371echo "${ECHO_T}builtin version" >&6
3372 else
3373 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3374echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3375 { (exit 1); exit 1; }; }
3376 fi
3377
3378
3379 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3380echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3381 no_cache=0
3382
3383# Check whether --with-odbc or --without-odbc was given.
3384if test "${with_odbc+set}" = set; then
3385 withval="$with_odbc"
3386
3387 if test "$withval" = yes; then
3388 ac_cv_use_odbc='wxUSE_ODBC=yes'
3389 elif test "$withval" = no; then
3390 ac_cv_use_odbc='wxUSE_ODBC=no'
3391 elif test "$withval" = sys; then
3392 ac_cv_use_odbc='wxUSE_ODBC=sys'
3393 elif test "$withval" = builtin; then
3394 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3395 else
3396 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3397echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3398 { (exit 1); exit 1; }; }
3399 fi
3400
3401else
3402
3403 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3404 if test "x$LINE" != x ; then
3405 eval "DEFAULT_$LINE"
3406 else
3407 no_cache=1
3408 fi
3409
3410 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3411
3412fi;
3413
3414 eval "$ac_cv_use_odbc"
3415 if test "$no_cache" != 1; then
3416 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3417 fi
3418
3419 if test "$wxUSE_ODBC" = yes; then
3420 echo "$as_me:$LINENO: result: yes" >&5
3421echo "${ECHO_T}yes" >&6
3422 elif test "$wxUSE_ODBC" = no; then
3423 echo "$as_me:$LINENO: result: no" >&5
3424echo "${ECHO_T}no" >&6
3425 elif test "$wxUSE_ODBC" = sys; then
3426 echo "$as_me:$LINENO: result: system version" >&5
3427echo "${ECHO_T}system version" >&6
3428 elif test "$wxUSE_ODBC" = builtin; then
3429 echo "$as_me:$LINENO: result: builtin version" >&5
3430echo "${ECHO_T}builtin version" >&6
3431 else
3432 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3433echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3434 { (exit 1); exit 1; }; }
3435 fi
3436
3437
3438 echo "$as_me:$LINENO: checking for --with-expat" >&5
3439echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3440 no_cache=0
3441
3442# Check whether --with-expat or --without-expat was given.
3443if test "${with_expat+set}" = set; then
3444 withval="$with_expat"
3445
3446 if test "$withval" = yes; then
3447 ac_cv_use_expat='wxUSE_EXPAT=yes'
3448 elif test "$withval" = no; then
3449 ac_cv_use_expat='wxUSE_EXPAT=no'
3450 elif test "$withval" = sys; then
3451 ac_cv_use_expat='wxUSE_EXPAT=sys'
3452 elif test "$withval" = builtin; then
3453 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3454 else
3455 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3456echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3457 { (exit 1); exit 1; }; }
3458 fi
3459
3460else
3461
3462 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3463 if test "x$LINE" != x ; then
3464 eval "DEFAULT_$LINE"
3465 else
3466 no_cache=1
3467 fi
3468
3469 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3470
3471fi;
3472
3473 eval "$ac_cv_use_expat"
3474 if test "$no_cache" != 1; then
3475 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3476 fi
3477
3478 if test "$wxUSE_EXPAT" = yes; then
3479 echo "$as_me:$LINENO: result: yes" >&5
3480echo "${ECHO_T}yes" >&6
3481 elif test "$wxUSE_EXPAT" = no; then
3482 echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6
3484 elif test "$wxUSE_EXPAT" = sys; then
3485 echo "$as_me:$LINENO: result: system version" >&5
3486echo "${ECHO_T}system version" >&6
3487 elif test "$wxUSE_EXPAT" = builtin; then
3488 echo "$as_me:$LINENO: result: builtin version" >&5
3489echo "${ECHO_T}builtin version" >&6
3490 else
3491 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3492echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3493 { (exit 1); exit 1; }; }
3494 fi
3495
3496
3497
3498
3499 enablestring=
3500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3501echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3502 no_cache=0
3503 # Check whether --enable-shared or --disable-shared was given.
3504if test "${enable_shared+set}" = set; then
3505 enableval="$enable_shared"
3506
3507 if test "$enableval" = yes; then
3508 ac_cv_use_shared='wxUSE_SHARED=yes'
3509 else
3510 ac_cv_use_shared='wxUSE_SHARED=no'
3511 fi
3512
3513else
3514
3515 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3516 if test "x$LINE" != x ; then
3517 eval "DEFAULT_$LINE"
3518 else
3519 no_cache=1
3520 fi
3521
3522 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3523
3524fi;
3525
3526 eval "$ac_cv_use_shared"
3527 if test "$no_cache" != 1; then
3528 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3529 fi
3530
3531 if test "$wxUSE_SHARED" = yes; then
3532 echo "$as_me:$LINENO: result: yes" >&5
3533echo "${ECHO_T}yes" >&6
3534 else
3535 echo "$as_me:$LINENO: result: no" >&5
3536echo "${ECHO_T}no" >&6
3537 fi
3538
3539
3540 enablestring=
3541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3542echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3543 no_cache=0
3544 # Check whether --enable-optimise or --disable-optimise was given.
3545if test "${enable_optimise+set}" = set; then
3546 enableval="$enable_optimise"
3547
3548 if test "$enableval" = yes; then
3549 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3550 else
3551 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3552 fi
3553
3554else
3555
3556 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3557 if test "x$LINE" != x ; then
3558 eval "DEFAULT_$LINE"
3559 else
3560 no_cache=1
3561 fi
3562
3563 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3564
3565fi;
3566
3567 eval "$ac_cv_use_optimise"
3568 if test "$no_cache" != 1; then
3569 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3570 fi
3571
3572 if test "$wxUSE_OPTIMISE" = yes; then
3573 echo "$as_me:$LINENO: result: yes" >&5
3574echo "${ECHO_T}yes" >&6
3575 else
3576 echo "$as_me:$LINENO: result: no" >&5
3577echo "${ECHO_T}no" >&6
3578 fi
3579
3580
3581 enablestring=
3582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3583echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3584 no_cache=0
3585 # Check whether --enable-debug or --disable-debug was given.
3586if test "${enable_debug+set}" = set; then
3587 enableval="$enable_debug"
3588
3589 if test "$enableval" = yes; then
3590 ac_cv_use_debug='wxUSE_DEBUG=yes'
3591 else
3592 ac_cv_use_debug='wxUSE_DEBUG=no'
3593 fi
3594
3595else
3596
3597 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3598 if test "x$LINE" != x ; then
3599 eval "DEFAULT_$LINE"
3600 else
3601 no_cache=1
3602 fi
3603
3604 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3605
3606fi;
3607
3608 eval "$ac_cv_use_debug"
3609 if test "$no_cache" != 1; then
3610 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3611 fi
3612
3613 if test "$wxUSE_DEBUG" = yes; then
3614 echo "$as_me:$LINENO: result: yes" >&5
3615echo "${ECHO_T}yes" >&6
3616 else
3617 echo "$as_me:$LINENO: result: no" >&5
3618echo "${ECHO_T}no" >&6
3619 fi
3620
3621
3622 enablestring=
3623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3624echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3625 no_cache=0
3626 # Check whether --enable-stl or --disable-stl was given.
3627if test "${enable_stl+set}" = set; then
3628 enableval="$enable_stl"
3629
3630 if test "$enableval" = yes; then
3631 ac_cv_use_stl='wxUSE_STL=yes'
3632 else
3633 ac_cv_use_stl='wxUSE_STL=no'
3634 fi
3635
3636else
3637
3638 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3639 if test "x$LINE" != x ; then
3640 eval "DEFAULT_$LINE"
3641 else
3642 no_cache=1
3643 fi
3644
3645 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3646
3647fi;
3648
3649 eval "$ac_cv_use_stl"
3650 if test "$no_cache" != 1; then
3651 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3652 fi
3653
3654 if test "$wxUSE_STL" = yes; then
3655 echo "$as_me:$LINENO: result: yes" >&5
3656echo "${ECHO_T}yes" >&6
3657 else
3658 echo "$as_me:$LINENO: result: no" >&5
3659echo "${ECHO_T}no" >&6
3660 fi
3661
3662if test "$USE_OS2" = "1"; then
69120ee4 3663 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3664
3665 enablestring=
3666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3667echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3668 no_cache=0
3669 # Check whether --enable-omf or --disable-omf was given.
3670if test "${enable_omf+set}" = set; then
3671 enableval="$enable_omf"
3672
3673 if test "$enableval" = yes; then
3674 ac_cv_use_omf='wxUSE_OMF=yes'
3675 else
3676 ac_cv_use_omf='wxUSE_OMF=no'
3677 fi
3678
3679else
3680
3681 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3682 if test "x$LINE" != x ; then
3683 eval "DEFAULT_$LINE"
3684 else
3685 no_cache=1
3686 fi
3687
3688 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3689
3690fi;
3691
3692 eval "$ac_cv_use_omf"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_OMF" = yes; then
3698 echo "$as_me:$LINENO: result: yes" >&5
3699echo "${ECHO_T}yes" >&6
3700 else
3701 echo "$as_me:$LINENO: result: no" >&5
3702echo "${ECHO_T}no" >&6
3703 fi
3704
3705fi
3706
3707if test "$wxUSE_DEBUG" = "yes"; then
3708 DEFAULT_wxUSE_DEBUG_FLAG=yes
3709 DEFAULT_wxUSE_DEBUG_INFO=yes
3710 BUILD=debug
3711elif test "$wxUSE_DEBUG" = "no"; then
3712 DEFAULT_wxUSE_DEBUG_FLAG=no
3713 DEFAULT_wxUSE_DEBUG_INFO=no
3714 BUILD=release
3715fi
3716
3717
3718 enablestring=
3719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3720echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3721 no_cache=0
3722 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3723if test "${enable_debug_flag+set}" = set; then
3724 enableval="$enable_debug_flag"
3725
3726 if test "$enableval" = yes; then
3727 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3728 else
3729 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3730 fi
3731
3732else
3733
3734 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3735 if test "x$LINE" != x ; then
3736 eval "DEFAULT_$LINE"
3737 else
3738 no_cache=1
3739 fi
3740
3741 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3742
3743fi;
3744
3745 eval "$ac_cv_use_debug_flag"
3746 if test "$no_cache" != 1; then
3747 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3748 fi
3749
3750 if test "$wxUSE_DEBUG_FLAG" = yes; then
3751 echo "$as_me:$LINENO: result: yes" >&5
3752echo "${ECHO_T}yes" >&6
3753 else
3754 echo "$as_me:$LINENO: result: no" >&5
3755echo "${ECHO_T}no" >&6
3756 fi
3757
3758
3759 enablestring=
3760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3761echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3762 no_cache=0
3763 # Check whether --enable-debug_info or --disable-debug_info was given.
3764if test "${enable_debug_info+set}" = set; then
3765 enableval="$enable_debug_info"
3766
3767 if test "$enableval" = yes; then
3768 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3769 else
3770 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3771 fi
3772
3773else
3774
3775 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3776 if test "x$LINE" != x ; then
3777 eval "DEFAULT_$LINE"
3778 else
3779 no_cache=1
3780 fi
3781
3782 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3783
3784fi;
3785
3786 eval "$ac_cv_use_debug_info"
3787 if test "$no_cache" != 1; then
3788 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3789 fi
3790
3791 if test "$wxUSE_DEBUG_INFO" = yes; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793echo "${ECHO_T}yes" >&6
3794 else
3795 echo "$as_me:$LINENO: result: no" >&5
3796echo "${ECHO_T}no" >&6
3797 fi
3798
3799
3800 enablestring=
3801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3802echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3803 no_cache=0
3804 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3805if test "${enable_debug_gdb+set}" = set; then
3806 enableval="$enable_debug_gdb"
3807
3808 if test "$enableval" = yes; then
3809 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3810 else
3811 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3812 fi
3813
3814else
3815
3816 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3817 if test "x$LINE" != x ; then
3818 eval "DEFAULT_$LINE"
3819 else
3820 no_cache=1
3821 fi
3822
3823 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3824
3825fi;
3826
3827 eval "$ac_cv_use_debug_gdb"
3828 if test "$no_cache" != 1; then
3829 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3830 fi
3831
3832 if test "$wxUSE_DEBUG_GDB" = yes; then
3833 echo "$as_me:$LINENO: result: yes" >&5
3834echo "${ECHO_T}yes" >&6
3835 else
3836 echo "$as_me:$LINENO: result: no" >&5
3837echo "${ECHO_T}no" >&6
3838 fi
3839
3840
3841 enablestring=
3842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3843echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3844 no_cache=0
3845 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3846if test "${enable_debug_cntxt+set}" = set; then
3847 enableval="$enable_debug_cntxt"
3848
3849 if test "$enableval" = yes; then
3850 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3851 else
3852 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3853 fi
3854
3855else
3856
3857 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3858 if test "x$LINE" != x ; then
3859 eval "DEFAULT_$LINE"
3860 else
3861 no_cache=1
3862 fi
3863
3864 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3865
3866fi;
3867
3868 eval "$ac_cv_use_debug_cntxt"
3869 if test "$no_cache" != 1; then
3870 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3871 fi
3872
3873 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3874 echo "$as_me:$LINENO: result: yes" >&5
3875echo "${ECHO_T}yes" >&6
3876 else
3877 echo "$as_me:$LINENO: result: no" >&5
3878echo "${ECHO_T}no" >&6
3879 fi
3880
3881
3882 enablestring=
3883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3884echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3885 no_cache=0
3886 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3887if test "${enable_mem_tracing+set}" = set; then
3888 enableval="$enable_mem_tracing"
3889
3890 if test "$enableval" = yes; then
3891 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3892 else
3893 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3894 fi
3895
3896else
3897
3898 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3899 if test "x$LINE" != x ; then
3900 eval "DEFAULT_$LINE"
3901 else
3902 no_cache=1
3903 fi
3904
3905 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3906
3907fi;
3908
3909 eval "$ac_cv_use_mem_tracing"
3910 if test "$no_cache" != 1; then
3911 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3912 fi
3913
3914 if test "$wxUSE_MEM_TRACING" = yes; then
3915 echo "$as_me:$LINENO: result: yes" >&5
3916echo "${ECHO_T}yes" >&6
3917 else
3918 echo "$as_me:$LINENO: result: no" >&5
3919echo "${ECHO_T}no" >&6
3920 fi
3921
3922
3923 enablestring=
3924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3925echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3926 no_cache=0
3927 # Check whether --enable-profile or --disable-profile was given.
3928if test "${enable_profile+set}" = set; then
3929 enableval="$enable_profile"
3930
3931 if test "$enableval" = yes; then
3932 ac_cv_use_profile='wxUSE_PROFILE=yes'
3933 else
3934 ac_cv_use_profile='wxUSE_PROFILE=no'
3935 fi
3936
3937else
3938
3939 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3940 if test "x$LINE" != x ; then
3941 eval "DEFAULT_$LINE"
3942 else
3943 no_cache=1
3944 fi
3945
3946 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3947
3948fi;
3949
3950 eval "$ac_cv_use_profile"
3951 if test "$no_cache" != 1; then
3952 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3953 fi
3954
3955 if test "$wxUSE_PROFILE" = yes; then
3956 echo "$as_me:$LINENO: result: yes" >&5
3957echo "${ECHO_T}yes" >&6
3958 else
3959 echo "$as_me:$LINENO: result: no" >&5
3960echo "${ECHO_T}no" >&6
3961 fi
3962
3963
3964 enablestring=
3965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3966echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3967 no_cache=0
3968 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3969if test "${enable_no_rtti+set}" = set; then
3970 enableval="$enable_no_rtti"
3971
3972 if test "$enableval" = yes; then
3973 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3974 else
3975 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3976 fi
3977
3978else
3979
3980 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3981 if test "x$LINE" != x ; then
3982 eval "DEFAULT_$LINE"
3983 else
3984 no_cache=1
3985 fi
3986
3987 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3988
3989fi;
3990
3991 eval "$ac_cv_use_no_rtti"
3992 if test "$no_cache" != 1; then
3993 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3994 fi
3995
3996 if test "$wxUSE_NO_RTTI" = yes; then
3997 echo "$as_me:$LINENO: result: yes" >&5
3998echo "${ECHO_T}yes" >&6
3999 else
4000 echo "$as_me:$LINENO: result: no" >&5
4001echo "${ECHO_T}no" >&6
4002 fi
4003
4004
4005 enablestring=
4006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4007echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4008 no_cache=0
4009 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4010if test "${enable_no_exceptions+set}" = set; then
4011 enableval="$enable_no_exceptions"
4012
4013 if test "$enableval" = yes; then
4014 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4015 else
4016 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4017 fi
4018
4019else
4020
4021 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4022 if test "x$LINE" != x ; then
4023 eval "DEFAULT_$LINE"
4024 else
4025 no_cache=1
4026 fi
4027
4028 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4029
4030fi;
4031
4032 eval "$ac_cv_use_no_exceptions"
4033 if test "$no_cache" != 1; then
4034 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4035 fi
4036
4037 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4038 echo "$as_me:$LINENO: result: yes" >&5
4039echo "${ECHO_T}yes" >&6
4040 else
4041 echo "$as_me:$LINENO: result: no" >&5
4042echo "${ECHO_T}no" >&6
4043 fi
4044
4045
4046 enablestring=
4047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4048echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4049 no_cache=0
4050 # Check whether --enable-permissive or --disable-permissive was given.
4051if test "${enable_permissive+set}" = set; then
4052 enableval="$enable_permissive"
4053
4054 if test "$enableval" = yes; then
4055 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4056 else
4057 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4058 fi
4059
4060else
4061
4062 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4063 if test "x$LINE" != x ; then
4064 eval "DEFAULT_$LINE"
4065 else
4066 no_cache=1
4067 fi
4068
4069 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4070
4071fi;
4072
4073 eval "$ac_cv_use_permissive"
4074 if test "$no_cache" != 1; then
4075 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4076 fi
4077
4078 if test "$wxUSE_PERMISSIVE" = yes; then
4079 echo "$as_me:$LINENO: result: yes" >&5
4080echo "${ECHO_T}yes" >&6
4081 else
4082 echo "$as_me:$LINENO: result: no" >&5
4083echo "${ECHO_T}no" >&6
4084 fi
4085
4086
4087 enablestring=
4088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4089echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4090 no_cache=0
4091 # Check whether --enable-no_deps or --disable-no_deps was given.
4092if test "${enable_no_deps+set}" = set; then
4093 enableval="$enable_no_deps"
4094
4095 if test "$enableval" = yes; then
4096 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4097 else
4098 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4099 fi
4100
4101else
4102
4103 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4104 if test "x$LINE" != x ; then
4105 eval "DEFAULT_$LINE"
4106 else
4107 no_cache=1
4108 fi
4109
4110 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4111
4112fi;
4113
4114 eval "$ac_cv_use_no_deps"
4115 if test "$no_cache" != 1; then
4116 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4117 fi
4118
4119 if test "$wxUSE_NO_DEPS" = yes; then
4120 echo "$as_me:$LINENO: result: yes" >&5
4121echo "${ECHO_T}yes" >&6
4122 else
4123 echo "$as_me:$LINENO: result: no" >&5
4124echo "${ECHO_T}no" >&6
4125 fi
4126
4127
4128
dee1a63f
MB
4129 enablestring=enable
4130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4131echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4132 no_cache=0
dee1a63f
MB
4133 # Check whether --enable-compat24 or --disable-compat24 was given.
4134if test "${enable_compat24+set}" = set; then
4135 enableval="$enable_compat24"
a848cd7e
SC
4136
4137 if test "$enableval" = yes; then
dee1a63f 4138 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4139 else
dee1a63f 4140 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4141 fi
4142
4143else
4144
dee1a63f 4145 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4146 if test "x$LINE" != x ; then
4147 eval "DEFAULT_$LINE"
4148 else
4149 no_cache=1
4150 fi
4151
dee1a63f 4152 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4153
4154fi;
4155
dee1a63f 4156 eval "$ac_cv_use_compat24"
a848cd7e 4157 if test "$no_cache" != 1; then
dee1a63f 4158 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4159 fi
4160
dee1a63f 4161 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4162 echo "$as_me:$LINENO: result: yes" >&5
4163echo "${ECHO_T}yes" >&6
4164 else
4165 echo "$as_me:$LINENO: result: no" >&5
4166echo "${ECHO_T}no" >&6
4167 fi
4168
4169
4170 enablestring=disable
dee1a63f
MB
4171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4172echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4173 no_cache=0
dee1a63f
MB
4174 # Check whether --enable-compat26 or --disable-compat26 was given.
4175if test "${enable_compat26+set}" = set; then
4176 enableval="$enable_compat26"
a848cd7e
SC
4177
4178 if test "$enableval" = yes; then
dee1a63f 4179 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4180 else
dee1a63f 4181 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4182 fi
4183
4184else
4185
dee1a63f 4186 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4187 if test "x$LINE" != x ; then
4188 eval "DEFAULT_$LINE"
4189 else
4190 no_cache=1
4191 fi
4192
dee1a63f 4193 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4194
4195fi;
4196
dee1a63f 4197 eval "$ac_cv_use_compat26"
a848cd7e 4198 if test "$no_cache" != 1; then
dee1a63f 4199 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4200 fi
4201
dee1a63f 4202 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4203 echo "$as_me:$LINENO: result: yes" >&5
4204echo "${ECHO_T}yes" >&6
4205 else
4206 echo "$as_me:$LINENO: result: no" >&5
4207echo "${ECHO_T}no" >&6
4208 fi
4209
4210
ffa0583f
RL
4211
4212 enablestring=
4213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4214echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4215 no_cache=0
4216 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4217if test "${enable_rpath+set}" = set; then
4218 enableval="$enable_rpath"
ffa0583f
RL
4219
4220 if test "$enableval" = yes; then
4221 ac_cv_use_rpath='wxUSE_RPATH=yes'
4222 else
4223 ac_cv_use_rpath='wxUSE_RPATH=no'
4224 fi
4225
4226else
4227
4228 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4229 if test "x$LINE" != x ; then
4230 eval "DEFAULT_$LINE"
4231 else
4232 no_cache=1
4233 fi
4234
4235 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4236
a848cd7e
SC
4237fi;
4238
ffa0583f
RL
4239 eval "$ac_cv_use_rpath"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_RPATH" = yes; then
4245 echo "$as_me:$LINENO: result: yes" >&5
4246echo "${ECHO_T}yes" >&6
4247 else
4248 echo "$as_me:$LINENO: result: no" >&5
4249echo "${ECHO_T}no" >&6
4250 fi
4251
a848cd7e
SC
4252
4253
4254
4255
4256 enablestring=
4257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4258echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4259 no_cache=0
4260 # Check whether --enable-intl or --disable-intl was given.
4261if test "${enable_intl+set}" = set; then
4262 enableval="$enable_intl"
4263
4264 if test "$enableval" = yes; then
4265 ac_cv_use_intl='wxUSE_INTL=yes'
4266 else
4267 ac_cv_use_intl='wxUSE_INTL=no'
4268 fi
4269
4270else
4271
4272 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4273 if test "x$LINE" != x ; then
4274 eval "DEFAULT_$LINE"
4275 else
4276 no_cache=1
4277 fi
4278
4279 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4280
4281fi;
4282
4283 eval "$ac_cv_use_intl"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_INTL" = yes; then
4289 echo "$as_me:$LINENO: result: yes" >&5
4290echo "${ECHO_T}yes" >&6
4291 else
4292 echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6
4294 fi
4295
4296
4297 enablestring=
4298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4299echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4300 no_cache=0
4301 # Check whether --enable-config or --disable-config was given.
4302if test "${enable_config+set}" = set; then
4303 enableval="$enable_config"
4304
4305 if test "$enableval" = yes; then
4306 ac_cv_use_config='wxUSE_CONFIG=yes'
4307 else
4308 ac_cv_use_config='wxUSE_CONFIG=no'
4309 fi
4310
4311else
4312
4313 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4314 if test "x$LINE" != x ; then
4315 eval "DEFAULT_$LINE"
4316 else
4317 no_cache=1
4318 fi
4319
4320 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4321
4322fi;
4323
4324 eval "$ac_cv_use_config"
4325 if test "$no_cache" != 1; then
4326 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4327 fi
4328
4329 if test "$wxUSE_CONFIG" = yes; then
4330 echo "$as_me:$LINENO: result: yes" >&5
4331echo "${ECHO_T}yes" >&6
4332 else
4333 echo "$as_me:$LINENO: result: no" >&5
4334echo "${ECHO_T}no" >&6
4335 fi
4336
4337
4338
4339 enablestring=
4340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4341echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4342 no_cache=0
4343 # Check whether --enable-protocols or --disable-protocols was given.
4344if test "${enable_protocols+set}" = set; then
4345 enableval="$enable_protocols"
4346
4347 if test "$enableval" = yes; then
4348 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4349 else
4350 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4351 fi
4352
4353else
4354
4355 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4356 if test "x$LINE" != x ; then
4357 eval "DEFAULT_$LINE"
4358 else
4359 no_cache=1
4360 fi
4361
4362 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4363
4364fi;
4365
4366 eval "$ac_cv_use_protocols"
4367 if test "$no_cache" != 1; then
4368 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4369 fi
4370
4371 if test "$wxUSE_PROTOCOL" = yes; then
4372 echo "$as_me:$LINENO: result: yes" >&5
4373echo "${ECHO_T}yes" >&6
4374 else
4375 echo "$as_me:$LINENO: result: no" >&5
4376echo "${ECHO_T}no" >&6
4377 fi
4378
4379
4380 enablestring=
4381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4382echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4383 no_cache=0
4384 # Check whether --enable-ftp or --disable-ftp was given.
4385if test "${enable_ftp+set}" = set; then
4386 enableval="$enable_ftp"
4387
4388 if test "$enableval" = yes; then
4389 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4390 else
4391 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4392 fi
4393
4394else
4395
4396 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4397 if test "x$LINE" != x ; then
4398 eval "DEFAULT_$LINE"
4399 else
4400 no_cache=1
4401 fi
4402
4403 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4404
4405fi;
4406
4407 eval "$ac_cv_use_ftp"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4413 echo "$as_me:$LINENO: result: yes" >&5
4414echo "${ECHO_T}yes" >&6
4415 else
4416 echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6
4418 fi
4419
4420
4421 enablestring=
4422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4423echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4424 no_cache=0
4425 # Check whether --enable-http or --disable-http was given.
4426if test "${enable_http+set}" = set; then
4427 enableval="$enable_http"
4428
4429 if test "$enableval" = yes; then
4430 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4431 else
4432 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4433 fi
4434
4435else
4436
4437 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4438 if test "x$LINE" != x ; then
4439 eval "DEFAULT_$LINE"
4440 else
4441 no_cache=1
4442 fi
4443
4444 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4445
4446fi;
4447
4448 eval "$ac_cv_use_http"
4449 if test "$no_cache" != 1; then
4450 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4451 fi
4452
4453 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4454 echo "$as_me:$LINENO: result: yes" >&5
4455echo "${ECHO_T}yes" >&6
4456 else
4457 echo "$as_me:$LINENO: result: no" >&5
4458echo "${ECHO_T}no" >&6
4459 fi
4460
4461
4462 enablestring=
4463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4464echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4465 no_cache=0
4466 # Check whether --enable-fileproto or --disable-fileproto was given.
4467if test "${enable_fileproto+set}" = set; then
4468 enableval="$enable_fileproto"
4469
4470 if test "$enableval" = yes; then
4471 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4472 else
4473 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4474 fi
4475
4476else
4477
4478 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4479 if test "x$LINE" != x ; then
4480 eval "DEFAULT_$LINE"
4481 else
4482 no_cache=1
4483 fi
4484
4485 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4486
4487fi;
4488
4489 eval "$ac_cv_use_fileproto"
4490 if test "$no_cache" != 1; then
4491 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4492 fi
4493
4494 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4495 echo "$as_me:$LINENO: result: yes" >&5
4496echo "${ECHO_T}yes" >&6
4497 else
4498 echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6
4500 fi
4501
4502
4503 enablestring=
4504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4505echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4506 no_cache=0
4507 # Check whether --enable-sockets or --disable-sockets was given.
4508if test "${enable_sockets+set}" = set; then
4509 enableval="$enable_sockets"
4510
4511 if test "$enableval" = yes; then
4512 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4513 else
4514 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4515 fi
4516
4517else
4518
4519 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4520 if test "x$LINE" != x ; then
4521 eval "DEFAULT_$LINE"
4522 else
4523 no_cache=1
4524 fi
4525
4526 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4527
4528fi;
4529
4530 eval "$ac_cv_use_sockets"
4531 if test "$no_cache" != 1; then
4532 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4533 fi
4534
4535 if test "$wxUSE_SOCKETS" = yes; then
4536 echo "$as_me:$LINENO: result: yes" >&5
4537echo "${ECHO_T}yes" >&6
4538 else
4539 echo "$as_me:$LINENO: result: no" >&5
4540echo "${ECHO_T}no" >&6
4541 fi
4542
4543
4544 enablestring=
4545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4546echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4547 no_cache=0
4548 # Check whether --enable-ole or --disable-ole was given.
4549if test "${enable_ole+set}" = set; then
4550 enableval="$enable_ole"
4551
4552 if test "$enableval" = yes; then
4553 ac_cv_use_ole='wxUSE_OLE=yes'
4554 else
4555 ac_cv_use_ole='wxUSE_OLE=no'
4556 fi
4557
4558else
4559
4560 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4561 if test "x$LINE" != x ; then
4562 eval "DEFAULT_$LINE"
4563 else
4564 no_cache=1
4565 fi
4566
4567 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4568
4569fi;
4570
4571 eval "$ac_cv_use_ole"
4572 if test "$no_cache" != 1; then
4573 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4574 fi
4575
4576 if test "$wxUSE_OLE" = yes; then
4577 echo "$as_me:$LINENO: result: yes" >&5
4578echo "${ECHO_T}yes" >&6
4579 else
4580 echo "$as_me:$LINENO: result: no" >&5
4581echo "${ECHO_T}no" >&6
4582 fi
4583
4584
4585 enablestring=
4586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4587echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4588 no_cache=0
4589 # Check whether --enable-dataobj or --disable-dataobj was given.
4590if test "${enable_dataobj+set}" = set; then
4591 enableval="$enable_dataobj"
4592
4593 if test "$enableval" = yes; then
4594 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4595 else
4596 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4597 fi
4598
4599else
4600
4601 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4602 if test "x$LINE" != x ; then
4603 eval "DEFAULT_$LINE"
4604 else
4605 no_cache=1
4606 fi
4607
4608 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4609
4610fi;
4611
4612 eval "$ac_cv_use_dataobj"
4613 if test "$no_cache" != 1; then
4614 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4615 fi
4616
4617 if test "$wxUSE_DATAOBJ" = yes; then
4618 echo "$as_me:$LINENO: result: yes" >&5
4619echo "${ECHO_T}yes" >&6
4620 else
4621 echo "$as_me:$LINENO: result: no" >&5
4622echo "${ECHO_T}no" >&6
4623 fi
4624
4625
4626
4627 enablestring=
4628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4629echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4630 no_cache=0
4631 # Check whether --enable-ipc or --disable-ipc was given.
4632if test "${enable_ipc+set}" = set; then
4633 enableval="$enable_ipc"
4634
4635 if test "$enableval" = yes; then
4636 ac_cv_use_ipc='wxUSE_IPC=yes'
4637 else
4638 ac_cv_use_ipc='wxUSE_IPC=no'
4639 fi
4640
4641else
4642
4643 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4644 if test "x$LINE" != x ; then
4645 eval "DEFAULT_$LINE"
4646 else
4647 no_cache=1
4648 fi
4649
4650 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4651
4652fi;
4653
4654 eval "$ac_cv_use_ipc"
4655 if test "$no_cache" != 1; then
4656 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4657 fi
4658
4659 if test "$wxUSE_IPC" = yes; then
4660 echo "$as_me:$LINENO: result: yes" >&5
4661echo "${ECHO_T}yes" >&6
4662 else
4663 echo "$as_me:$LINENO: result: no" >&5
4664echo "${ECHO_T}no" >&6
4665 fi
4666
4667
4668
4669 enablestring=
4670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4671echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4672 no_cache=0
4673 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4674if test "${enable_apple_ieee+set}" = set; then
4675 enableval="$enable_apple_ieee"
4676
4677 if test "$enableval" = yes; then
4678 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4679 else
4680 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4681 fi
4682
4683else
4684
4685 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
4692 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4693
4694fi;
4695
4696 eval "$ac_cv_use_apple_ieee"
4697 if test "$no_cache" != 1; then
4698 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4699 fi
4700
4701 if test "$wxUSE_APPLE_IEEE" = yes; then
4702 echo "$as_me:$LINENO: result: yes" >&5
4703echo "${ECHO_T}yes" >&6
4704 else
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
4707 fi
4708
4709
81f90336
MW
4710 enablestring=
4711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4712echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4713 no_cache=0
4714 # Check whether --enable-arcstream or --disable-arcstream was given.
4715if test "${enable_arcstream+set}" = set; then
4716 enableval="$enable_arcstream"
4717
4718 if test "$enableval" = yes; then
9e8e867f 4719 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4720 else
9e8e867f 4721 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4722 fi
4723
4724else
4725
9e8e867f 4726 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4727 if test "x$LINE" != x ; then
4728 eval "DEFAULT_$LINE"
4729 else
4730 no_cache=1
4731 fi
4732
9e8e867f 4733 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4734
4735fi;
4736
4737 eval "$ac_cv_use_arcstream"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4740 fi
4741
9e8e867f 4742 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4743 echo "$as_me:$LINENO: result: yes" >&5
4744echo "${ECHO_T}yes" >&6
4745 else
4746 echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
4748 fi
4749
4750
a848cd7e 4751 enablestring=
36b6448c
VZ
4752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4753echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4754 no_cache=0
36b6448c
VZ
4755 # Check whether --enable-backtrace or --disable-backtrace was given.
4756if test "${enable_backtrace+set}" = set; then
4757 enableval="$enable_backtrace"
a848cd7e
SC
4758
4759 if test "$enableval" = yes; then
36b6448c 4760 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4761 else
36b6448c 4762 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4763 fi
4764
4765else
4766
36b6448c 4767 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4768 if test "x$LINE" != x ; then
4769 eval "DEFAULT_$LINE"
4770 else
4771 no_cache=1
4772 fi
4773
36b6448c 4774 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4775
4776fi;
4777
36b6448c 4778 eval "$ac_cv_use_backtrace"
a848cd7e 4779 if test "$no_cache" != 1; then
36b6448c 4780 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4781 fi
4782
36b6448c 4783 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4784 echo "$as_me:$LINENO: result: yes" >&5
4785echo "${ECHO_T}yes" >&6
4786 else
4787 echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6
4789 fi
4790
4791
eaff0f0d 4792 enablestring=
36b6448c
VZ
4793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4794echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4795 no_cache=0
36b6448c
VZ
4796 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4797if test "${enable_catch_segvs+set}" = set; then
4798 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4799
4800 if test "$enableval" = yes; then
36b6448c 4801 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4802 else
36b6448c 4803 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4804 fi
4805
4806else
4807
36b6448c 4808 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4809 if test "x$LINE" != x ; then
4810 eval "DEFAULT_$LINE"
4811 else
4812 no_cache=1
4813 fi
4814
36b6448c 4815 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4816
4817fi;
4818
36b6448c 4819 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4820 if test "$no_cache" != 1; then
36b6448c 4821 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4822 fi
4823
36b6448c 4824 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4825 echo "$as_me:$LINENO: result: yes" >&5
4826echo "${ECHO_T}yes" >&6
4827 else
4828 echo "$as_me:$LINENO: result: no" >&5
4829echo "${ECHO_T}no" >&6
4830 fi
4831
4832
a848cd7e
SC
4833 enablestring=
4834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4835echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4836 no_cache=0
4837 # Check whether --enable-cmdline or --disable-cmdline was given.
4838if test "${enable_cmdline+set}" = set; then
4839 enableval="$enable_cmdline"
4840
4841 if test "$enableval" = yes; then
4842 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4843 else
4844 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4845 fi
4846
4847else
4848
4849 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4850 if test "x$LINE" != x ; then
4851 eval "DEFAULT_$LINE"
4852 else
4853 no_cache=1
4854 fi
4855
4856 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4857
4858fi;
4859
4860 eval "$ac_cv_use_cmdline"
4861 if test "$no_cache" != 1; then
4862 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4863 fi
4864
4865 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4866 echo "$as_me:$LINENO: result: yes" >&5
4867echo "${ECHO_T}yes" >&6
4868 else
4869 echo "$as_me:$LINENO: result: no" >&5
4870echo "${ECHO_T}no" >&6
4871 fi
4872
4873
4874 enablestring=
4875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4876echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4877 no_cache=0
4878 # Check whether --enable-datetime or --disable-datetime was given.
4879if test "${enable_datetime+set}" = set; then
4880 enableval="$enable_datetime"
4881
4882 if test "$enableval" = yes; then
4883 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4884 else
4885 ac_cv_use_datetime='wxUSE_DATETIME=no'
4886 fi
4887
4888else
4889
4890 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
4897 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4898
4899fi;
4900
4901 eval "$ac_cv_use_datetime"
4902 if test "$no_cache" != 1; then
4903 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4904 fi
4905
4906 if test "$wxUSE_DATETIME" = yes; then
4907 echo "$as_me:$LINENO: result: yes" >&5
4908echo "${ECHO_T}yes" >&6
4909 else
4910 echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6
4912 fi
4913
4914
36b6448c
VZ
4915 enablestring=
4916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4917echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4918 no_cache=0
4919 # Check whether --enable-debugreport or --disable-debugreport was given.
4920if test "${enable_debugreport+set}" = set; then
4921 enableval="$enable_debugreport"
4922
4923 if test "$enableval" = yes; then
4924 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4925 else
4926 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4927 fi
4928
4929else
4930
4931 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4932 if test "x$LINE" != x ; then
4933 eval "DEFAULT_$LINE"
4934 else
4935 no_cache=1
4936 fi
4937
4938 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4939
4940fi;
4941
4942 eval "$ac_cv_use_debugreport"
4943 if test "$no_cache" != 1; then
4944 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4945 fi
4946
4947 if test "$wxUSE_DEBUGREPORT" = yes; then
4948 echo "$as_me:$LINENO: result: yes" >&5
4949echo "${ECHO_T}yes" >&6
4950 else
4951 echo "$as_me:$LINENO: result: no" >&5
4952echo "${ECHO_T}no" >&6
4953 fi
4954
4955
a848cd7e
SC
4956 enablestring=
4957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4958echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4959 no_cache=0
4960 # Check whether --enable-dialupman or --disable-dialupman was given.
4961if test "${enable_dialupman+set}" = set; then
4962 enableval="$enable_dialupman"
4963
4964 if test "$enableval" = yes; then
4965 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4966 else
4967 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4968 fi
4969
4970else
4971
4972 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4973 if test "x$LINE" != x ; then
4974 eval "DEFAULT_$LINE"
4975 else
4976 no_cache=1
4977 fi
4978
4979 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4980
4981fi;
4982
4983 eval "$ac_cv_use_dialupman"
4984 if test "$no_cache" != 1; then
4985 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4986 fi
4987
4988 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4989 echo "$as_me:$LINENO: result: yes" >&5
4990echo "${ECHO_T}yes" >&6
4991 else
4992 echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6
4994 fi
4995
4996
4997 enablestring=
4998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4999echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5000 no_cache=0
5001 # Check whether --enable-dynlib or --disable-dynlib was given.
5002if test "${enable_dynlib+set}" = set; then
5003 enableval="$enable_dynlib"
5004
5005 if test "$enableval" = yes; then
5006 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5007 else
5008 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5009 fi
5010
5011else
5012
5013 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5014 if test "x$LINE" != x ; then
5015 eval "DEFAULT_$LINE"
5016 else
5017 no_cache=1
5018 fi
5019
5020 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5021
5022fi;
5023
5024 eval "$ac_cv_use_dynlib"
5025 if test "$no_cache" != 1; then
5026 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5027 fi
5028
5029 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5030 echo "$as_me:$LINENO: result: yes" >&5
5031echo "${ECHO_T}yes" >&6
5032 else
5033 echo "$as_me:$LINENO: result: no" >&5
5034echo "${ECHO_T}no" >&6
5035 fi
5036
5037
5038 enablestring=
5039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5040echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5041 no_cache=0
5042 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5043if test "${enable_dynamicloader+set}" = set; then
5044 enableval="$enable_dynamicloader"
5045
5046 if test "$enableval" = yes; then
5047 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5048 else
5049 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5050 fi
5051
5052else
5053
5054 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5055 if test "x$LINE" != x ; then
5056 eval "DEFAULT_$LINE"
5057 else
5058 no_cache=1
5059 fi
5060
5061 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5062
5063fi;
5064
5065 eval "$ac_cv_use_dynamicloader"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5071 echo "$as_me:$LINENO: result: yes" >&5
5072echo "${ECHO_T}yes" >&6
5073 else
5074 echo "$as_me:$LINENO: result: no" >&5
5075echo "${ECHO_T}no" >&6
5076 fi
5077
5078
5079 enablestring=
5080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5081echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5082 no_cache=0
5083 # Check whether --enable-exceptions or --disable-exceptions was given.
5084if test "${enable_exceptions+set}" = set; then
5085 enableval="$enable_exceptions"
5086
5087 if test "$enableval" = yes; then
5088 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5089 else
5090 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5091 fi
5092
5093else
5094
5095 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5096 if test "x$LINE" != x ; then
5097 eval "DEFAULT_$LINE"
5098 else
5099 no_cache=1
5100 fi
5101
5102 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5103
5104fi;
5105
5106 eval "$ac_cv_use_exceptions"
5107 if test "$no_cache" != 1; then
5108 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5109 fi
5110
5111 if test "$wxUSE_EXCEPTIONS" = yes; then
5112 echo "$as_me:$LINENO: result: yes" >&5
5113echo "${ECHO_T}yes" >&6
5114 else
5115 echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6
5117 fi
5118
5119
5120 enablestring=
5121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5122echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5123 no_cache=0
5124 # Check whether --enable-ffile or --disable-ffile was given.
5125if test "${enable_ffile+set}" = set; then
5126 enableval="$enable_ffile"
5127
5128 if test "$enableval" = yes; then
5129 ac_cv_use_ffile='wxUSE_FFILE=yes'
5130 else
5131 ac_cv_use_ffile='wxUSE_FFILE=no'
5132 fi
5133
5134else
5135
5136 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
5143 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5144
5145fi;
5146
5147 eval "$ac_cv_use_ffile"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_FFILE" = yes; then
5153 echo "$as_me:$LINENO: result: yes" >&5
5154echo "${ECHO_T}yes" >&6
5155 else
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158 fi
5159
5160
5161 enablestring=
5162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5163echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5164 no_cache=0
5165 # Check whether --enable-file or --disable-file was given.
5166if test "${enable_file+set}" = set; then
5167 enableval="$enable_file"
5168
5169 if test "$enableval" = yes; then
5170 ac_cv_use_file='wxUSE_FILE=yes'
5171 else
5172 ac_cv_use_file='wxUSE_FILE=no'
5173 fi
5174
5175else
5176
5177 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
5184 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5185
5186fi;
5187
5188 eval "$ac_cv_use_file"
5189 if test "$no_cache" != 1; then
5190 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5191 fi
5192
5193 if test "$wxUSE_FILE" = yes; then
5194 echo "$as_me:$LINENO: result: yes" >&5
5195echo "${ECHO_T}yes" >&6
5196 else
5197 echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
5199 fi
5200
5201
5202 enablestring=
5203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5204echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5205 no_cache=0
5206 # Check whether --enable-filesystem or --disable-filesystem was given.
5207if test "${enable_filesystem+set}" = set; then
5208 enableval="$enable_filesystem"
5209
5210 if test "$enableval" = yes; then
5211 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5212 else
5213 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5214 fi
5215
5216else
5217
5218 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5226
5227fi;
5228
5229 eval "$ac_cv_use_filesystem"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_FILESYSTEM" = yes; then
5235 echo "$as_me:$LINENO: result: yes" >&5
5236echo "${ECHO_T}yes" >&6
5237 else
5238 echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6
5240 fi
5241
5242
5243 enablestring=
5244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5245echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5246 no_cache=0
5247 # Check whether --enable-fontmap or --disable-fontmap was given.
5248if test "${enable_fontmap+set}" = set; then
5249 enableval="$enable_fontmap"
5250
5251 if test "$enableval" = yes; then
5252 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5253 else
5254 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5255 fi
5256
5257else
5258
5259 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5260 if test "x$LINE" != x ; then
5261 eval "DEFAULT_$LINE"
5262 else
5263 no_cache=1
5264 fi
5265
5266 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5267
5268fi;
5269
5270 eval "$ac_cv_use_fontmap"
5271 if test "$no_cache" != 1; then
5272 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5273 fi
5274
5275 if test "$wxUSE_FONTMAP" = yes; then
5276 echo "$as_me:$LINENO: result: yes" >&5
5277echo "${ECHO_T}yes" >&6
5278 else
5279 echo "$as_me:$LINENO: result: no" >&5
5280echo "${ECHO_T}no" >&6
5281 fi
5282
5283
5284 enablestring=
5285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5286echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5287 no_cache=0
5288 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5289if test "${enable_fs_inet+set}" = set; then
5290 enableval="$enable_fs_inet"
5291
5292 if test "$enableval" = yes; then
5293 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5294 else
5295 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5296 fi
5297
5298else
5299
5300 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5301 if test "x$LINE" != x ; then
5302 eval "DEFAULT_$LINE"
5303 else
5304 no_cache=1
5305 fi
5306
5307 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5308
5309fi;
5310
5311 eval "$ac_cv_use_fs_inet"
5312 if test "$no_cache" != 1; then
5313 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5314 fi
5315
5316 if test "$wxUSE_FS_INET" = yes; then
5317 echo "$as_me:$LINENO: result: yes" >&5
5318echo "${ECHO_T}yes" >&6
5319 else
5320 echo "$as_me:$LINENO: result: no" >&5
5321echo "${ECHO_T}no" >&6
5322 fi
5323
5324
5325 enablestring=
5326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5327echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5328 no_cache=0
5329 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5330if test "${enable_fs_zip+set}" = set; then
5331 enableval="$enable_fs_zip"
5332
5333 if test "$enableval" = yes; then
5334 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5335 else
5336 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5337 fi
5338
5339else
5340
5341 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
5348 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5349
5350fi;
5351
5352 eval "$ac_cv_use_fs_zip"
5353 if test "$no_cache" != 1; then
5354 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5355 fi
5356
5357 if test "$wxUSE_FS_ZIP" = yes; then
5358 echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
5360 else
5361 echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6
5363 fi
5364
5365
5366 enablestring=
5367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5368echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5369 no_cache=0
5370 # Check whether --enable-geometry or --disable-geometry was given.
5371if test "${enable_geometry+set}" = set; then
5372 enableval="$enable_geometry"
5373
5374 if test "$enableval" = yes; then
5375 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5376 else
5377 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5378 fi
5379
5380else
5381
5382 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5383 if test "x$LINE" != x ; then
5384 eval "DEFAULT_$LINE"
5385 else
5386 no_cache=1
5387 fi
5388
5389 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5390
5391fi;
5392
5393 eval "$ac_cv_use_geometry"
5394 if test "$no_cache" != 1; then
5395 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5396 fi
5397
5398 if test "$wxUSE_GEOMETRY" = yes; then
5399 echo "$as_me:$LINENO: result: yes" >&5
5400echo "${ECHO_T}yes" >&6
5401 else
5402 echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
5404 fi
5405
5406
5407 enablestring=
5408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5409echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5410 no_cache=0
5411 # Check whether --enable-log or --disable-log was given.
5412if test "${enable_log+set}" = set; then
5413 enableval="$enable_log"
5414
5415 if test "$enableval" = yes; then
5416 ac_cv_use_log='wxUSE_LOG=yes'
5417 else
5418 ac_cv_use_log='wxUSE_LOG=no'
5419 fi
5420
5421else
5422
5423 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5431
5432fi;
5433
5434 eval "$ac_cv_use_log"
5435 if test "$no_cache" != 1; then
5436 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5437 fi
5438
5439 if test "$wxUSE_LOG" = yes; then
5440 echo "$as_me:$LINENO: result: yes" >&5
5441echo "${ECHO_T}yes" >&6
5442 else
5443 echo "$as_me:$LINENO: result: no" >&5
5444echo "${ECHO_T}no" >&6
5445 fi
5446
5447
5448 enablestring=
5449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5450echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5451 no_cache=0
5452 # Check whether --enable-longlong or --disable-longlong was given.
5453if test "${enable_longlong+set}" = set; then
5454 enableval="$enable_longlong"
5455
5456 if test "$enableval" = yes; then
5457 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5458 else
5459 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5460 fi
5461
5462else
5463
5464 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
5471 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5472
5473fi;
5474
5475 eval "$ac_cv_use_longlong"
5476 if test "$no_cache" != 1; then
5477 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5478 fi
5479
5480 if test "$wxUSE_LONGLONG" = yes; then
5481 echo "$as_me:$LINENO: result: yes" >&5
5482echo "${ECHO_T}yes" >&6
5483 else
5484 echo "$as_me:$LINENO: result: no" >&5
5485echo "${ECHO_T}no" >&6
5486 fi
5487
5488
5489 enablestring=
5490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5491echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5492 no_cache=0
5493 # Check whether --enable-mimetype or --disable-mimetype was given.
5494if test "${enable_mimetype+set}" = set; then
5495 enableval="$enable_mimetype"
5496
5497 if test "$enableval" = yes; then
5498 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5499 else
5500 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5501 fi
5502
5503else
5504
5505 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5513
5514fi;
5515
5516 eval "$ac_cv_use_mimetype"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_MIMETYPE" = yes; then
5522 echo "$as_me:$LINENO: result: yes" >&5
5523echo "${ECHO_T}yes" >&6
5524 else
5525 echo "$as_me:$LINENO: result: no" >&5
5526echo "${ECHO_T}no" >&6
5527 fi
5528
5529
5530 enablestring=
5531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5532echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5533 no_cache=0
5534 # Check whether --enable-mslu or --disable-mslu was given.
5535if test "${enable_mslu+set}" = set; then
5536 enableval="$enable_mslu"
5537
5538 if test "$enableval" = yes; then
5539 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5540 else
5541 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5542 fi
5543
5544else
5545
5546 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5547 if test "x$LINE" != x ; then
5548 eval "DEFAULT_$LINE"
5549 else
5550 no_cache=1
5551 fi
5552
5553 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5554
5555fi;
5556
5557 eval "$ac_cv_use_mslu"
5558 if test "$no_cache" != 1; then
5559 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5560 fi
5561
5562 if test "$wxUSE_UNICODE_MSLU" = yes; then
5563 echo "$as_me:$LINENO: result: yes" >&5
5564echo "${ECHO_T}yes" >&6
5565 else
5566 echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6
5568 fi
5569
5570
5571 enablestring=
5572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5573echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5574 no_cache=0
5575 # Check whether --enable-snglinst or --disable-snglinst was given.
5576if test "${enable_snglinst+set}" = set; then
5577 enableval="$enable_snglinst"
5578
5579 if test "$enableval" = yes; then
5580 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5581 else
5582 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5583 fi
5584
5585else
5586
5587 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5588 if test "x$LINE" != x ; then
5589 eval "DEFAULT_$LINE"
5590 else
5591 no_cache=1
5592 fi
5593
5594 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5595
5596fi;
5597
5598 eval "$ac_cv_use_snglinst"
5599 if test "$no_cache" != 1; then
5600 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5601 fi
5602
5603 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5604 echo "$as_me:$LINENO: result: yes" >&5
5605echo "${ECHO_T}yes" >&6
5606 else
5607 echo "$as_me:$LINENO: result: no" >&5
5608echo "${ECHO_T}no" >&6
5609 fi
5610
5611
5612 enablestring=
07158944
VZ
5613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5614echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5615 no_cache=0
07158944
VZ
5616 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5617if test "${enable_std_iostreams+set}" = set; then
5618 enableval="$enable_std_iostreams"
a848cd7e
SC
5619
5620 if test "$enableval" = yes; then
07158944 5621 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5622 else
07158944 5623 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5624 fi
5625
5626else
5627
07158944 5628 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5629 if test "x$LINE" != x ; then
5630 eval "DEFAULT_$LINE"
5631 else
5632 no_cache=1
5633 fi
5634
07158944 5635 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5636
5637fi;
5638
07158944 5639 eval "$ac_cv_use_std_iostreams"
a848cd7e 5640 if test "$no_cache" != 1; then
07158944 5641 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5642 fi
5643
07158944 5644 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5645 echo "$as_me:$LINENO: result: yes" >&5
5646echo "${ECHO_T}yes" >&6
5647 else
5648 echo "$as_me:$LINENO: result: no" >&5
5649echo "${ECHO_T}no" >&6
5650 fi
5651
5652
59746b65
MW
5653 enablestring=
5654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5655echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5656 no_cache=0
5657 # Check whether --enable-std_string or --disable-std_string was given.
5658if test "${enable_std_string+set}" = set; then
5659 enableval="$enable_std_string"
5660
5661 if test "$enableval" = yes; then
5662 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5663 else
5664 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5665 fi
5666
5667else
5668
5669 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5670 if test "x$LINE" != x ; then
5671 eval "DEFAULT_$LINE"
5672 else
5673 no_cache=1
5674 fi
5675
5676 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5677
5678fi;
5679
5680 eval "$ac_cv_use_std_string"
5681 if test "$no_cache" != 1; then
5682 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5683 fi
5684
5685 if test "$wxUSE_STD_STRING" = yes; then
5686 echo "$as_me:$LINENO: result: yes" >&5
5687echo "${ECHO_T}yes" >&6
5688 else
5689 echo "$as_me:$LINENO: result: no" >&5
5690echo "${ECHO_T}no" >&6
5691 fi
5692
5693
a848cd7e 5694 enablestring=
07158944
VZ
5695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5696echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5697 no_cache=0
07158944
VZ
5698 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5699if test "${enable_stdpaths+set}" = set; then
5700 enableval="$enable_stdpaths"
a848cd7e
SC
5701
5702 if test "$enableval" = yes; then
07158944 5703 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5704 else
07158944 5705 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5706 fi
5707
5708else
5709
07158944 5710 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5711 if test "x$LINE" != x ; then
5712 eval "DEFAULT_$LINE"
5713 else
5714 no_cache=1
5715 fi
5716
07158944 5717 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5718
5719fi;
5720
07158944 5721 eval "$ac_cv_use_stdpaths"
a848cd7e 5722 if test "$no_cache" != 1; then
07158944 5723 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5724 fi
5725
07158944 5726 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5727 echo "$as_me:$LINENO: result: yes" >&5
5728echo "${ECHO_T}yes" >&6
5729 else
5730 echo "$as_me:$LINENO: result: no" >&5
5731echo "${ECHO_T}no" >&6
5732 fi
5733
5734
5735 enablestring=
5736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5737echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5738 no_cache=0
5739 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5740if test "${enable_stopwatch+set}" = set; then
5741 enableval="$enable_stopwatch"
5742
5743 if test "$enableval" = yes; then
5744 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5745 else
5746 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5747 fi
5748
5749else
5750
5751 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5752 if test "x$LINE" != x ; then
5753 eval "DEFAULT_$LINE"
5754 else
5755 no_cache=1
5756 fi
5757
5758 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5759
5760fi;
5761
5762 eval "$ac_cv_use_stopwatch"
5763 if test "$no_cache" != 1; then
5764 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5765 fi
5766
5767 if test "$wxUSE_STOPWATCH" = yes; then
5768 echo "$as_me:$LINENO: result: yes" >&5
5769echo "${ECHO_T}yes" >&6
5770 else
5771 echo "$as_me:$LINENO: result: no" >&5
5772echo "${ECHO_T}no" >&6
5773 fi
5774
5775
07158944
VZ
5776 enablestring=
5777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5778echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5779 no_cache=0
5780 # Check whether --enable-streams or --disable-streams was given.
5781if test "${enable_streams+set}" = set; then
5782 enableval="$enable_streams"
5783
5784 if test "$enableval" = yes; then
5785 ac_cv_use_streams='wxUSE_STREAMS=yes'
5786 else
5787 ac_cv_use_streams='wxUSE_STREAMS=no'
5788 fi
5789
5790else
5791
5792 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5793 if test "x$LINE" != x ; then
5794 eval "DEFAULT_$LINE"
5795 else
5796 no_cache=1
5797 fi
5798
5799 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5800
5801fi;
5802
5803 eval "$ac_cv_use_streams"
5804 if test "$no_cache" != 1; then
5805 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5806 fi
5807
5808 if test "$wxUSE_STREAMS" = yes; then
5809 echo "$as_me:$LINENO: result: yes" >&5
5810echo "${ECHO_T}yes" >&6
5811 else
5812 echo "$as_me:$LINENO: result: no" >&5
5813echo "${ECHO_T}no" >&6
5814 fi
5815
5816
a848cd7e
SC
5817 enablestring=
5818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5819echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5820 no_cache=0
5821 # Check whether --enable-system_options or --disable-system_options was given.
5822if test "${enable_system_options+set}" = set; then
5823 enableval="$enable_system_options"
5824
5825 if test "$enableval" = yes; then
5826 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5827 else
5828 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5829 fi
5830
5831else
5832
5833 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5834 if test "x$LINE" != x ; then
5835 eval "DEFAULT_$LINE"
5836 else
5837 no_cache=1
5838 fi
5839
5840 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5841
5842fi;
5843
5844 eval "$ac_cv_use_system_options"
5845 if test "$no_cache" != 1; then
5846 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5847 fi
5848
5849 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5850 echo "$as_me:$LINENO: result: yes" >&5
5851echo "${ECHO_T}yes" >&6
5852 else
5853 echo "$as_me:$LINENO: result: no" >&5
5854echo "${ECHO_T}no" >&6
5855 fi
5856
5857
5858 enablestring=
5859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5860echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5861 no_cache=0
5862 # Check whether --enable-textbuf or --disable-textbuf was given.
5863if test "${enable_textbuf+set}" = set; then
5864 enableval="$enable_textbuf"
5865
5866 if test "$enableval" = yes; then
5867 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5868 else
5869 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5870 fi
5871
5872else
5873
5874 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5875 if test "x$LINE" != x ; then
5876 eval "DEFAULT_$LINE"
5877 else
5878 no_cache=1
5879 fi
5880
5881 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5882
5883fi;
5884
5885 eval "$ac_cv_use_textbuf"
5886 if test "$no_cache" != 1; then
5887 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5888 fi
5889
5890 if test "$wxUSE_TEXTBUFFER" = yes; then
5891 echo "$as_me:$LINENO: result: yes" >&5
5892echo "${ECHO_T}yes" >&6
5893 else
5894 echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6
5896 fi
5897
5898
5899 enablestring=
5900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5901echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5902 no_cache=0
5903 # Check whether --enable-textfile or --disable-textfile was given.
5904if test "${enable_textfile+set}" = set; then
5905 enableval="$enable_textfile"
5906
5907 if test "$enableval" = yes; then
5908 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5909 else
5910 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5911 fi
5912
5913else
5914
5915 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5916 if test "x$LINE" != x ; then
5917 eval "DEFAULT_$LINE"
5918 else
5919 no_cache=1
5920 fi
5921
5922 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5923
5924fi;
5925
5926 eval "$ac_cv_use_textfile"
5927 if test "$no_cache" != 1; then
5928 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5929 fi
5930
5931 if test "$wxUSE_TEXTFILE" = yes; then
5932 echo "$as_me:$LINENO: result: yes" >&5
5933echo "${ECHO_T}yes" >&6
5934 else
5935 echo "$as_me:$LINENO: result: no" >&5
5936echo "${ECHO_T}no" >&6
5937 fi
5938
5939
5940 enablestring=
5941 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5942echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5943 no_cache=0
5944 # Check whether --enable-timer or --disable-timer was given.
5945if test "${enable_timer+set}" = set; then
5946 enableval="$enable_timer"
5947
5948 if test "$enableval" = yes; then
5949 ac_cv_use_timer='wxUSE_TIMER=yes'
5950 else
5951 ac_cv_use_timer='wxUSE_TIMER=no'
5952 fi
5953
5954else
5955
5956 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5957 if test "x$LINE" != x ; then
5958 eval "DEFAULT_$LINE"
5959 else
5960 no_cache=1
5961 fi
5962
5963 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5964
5965fi;
5966
5967 eval "$ac_cv_use_timer"
5968 if test "$no_cache" != 1; then
5969 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5970 fi
5971
5972 if test "$wxUSE_TIMER" = yes; then
5973 echo "$as_me:$LINENO: result: yes" >&5
5974echo "${ECHO_T}yes" >&6
5975 else
5976 echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6
5978 fi
5979
5980
5981 enablestring=
5982 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5983echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5984 no_cache=0
5985 # Check whether --enable-unicode or --disable-unicode was given.
5986if test "${enable_unicode+set}" = set; then
5987 enableval="$enable_unicode"
5988
5989 if test "$enableval" = yes; then
5990 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5991 else
5992 ac_cv_use_unicode='wxUSE_UNICODE=no'
5993 fi
5994
5995else
5996
5997 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5998 if test "x$LINE" != x ; then
5999 eval "DEFAULT_$LINE"
6000 else
6001 no_cache=1
6002 fi
6003
6004 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6005
6006fi;
6007
6008 eval "$ac_cv_use_unicode"
6009 if test "$no_cache" != 1; then
6010 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6011 fi
6012
6013 if test "$wxUSE_UNICODE" = yes; then
6014 echo "$as_me:$LINENO: result: yes" >&5
6015echo "${ECHO_T}yes" >&6
6016 else
6017 echo "$as_me:$LINENO: result: no" >&5
6018echo "${ECHO_T}no" >&6
6019 fi
6020
6021
6022 enablestring=
6023 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6024echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6025 no_cache=0
6026 # Check whether --enable-sound or --disable-sound was given.
6027if test "${enable_sound+set}" = set; then
6028 enableval="$enable_sound"
6029
6030 if test "$enableval" = yes; then
6031 ac_cv_use_sound='wxUSE_SOUND=yes'
6032 else
6033 ac_cv_use_sound='wxUSE_SOUND=no'
6034 fi
6035
6036else
6037
6038 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6039 if test "x$LINE" != x ; then
6040 eval "DEFAULT_$LINE"
6041 else
6042 no_cache=1
6043 fi
6044
6045 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6046
6047fi;
6048
6049 eval "$ac_cv_use_sound"
6050 if test "$no_cache" != 1; then
6051 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6052 fi
6053
6054 if test "$wxUSE_SOUND" = yes; then
6055 echo "$as_me:$LINENO: result: yes" >&5
6056echo "${ECHO_T}yes" >&6
6057 else
6058 echo "$as_me:$LINENO: result: no" >&5
6059echo "${ECHO_T}no" >&6
6060 fi
6061
6062
3b57de8b
RL
6063 enablestring=
6064 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6065echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6066 no_cache=0
6067 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6068if test "${enable_mediactrl+set}" = set; then
6069 enableval="$enable_mediactrl"
6070
6071 if test "$enableval" = yes; then
6072 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6073 else
6074 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6075 fi
6076
6077else
6078
6079 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6080 if test "x$LINE" != x ; then
6081 eval "DEFAULT_$LINE"
6082 else
6083 no_cache=1
6084 fi
6085
6086 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6087
6088fi;
6089
6090 eval "$ac_cv_use_mediactrl"
6091 if test "$no_cache" != 1; then
6092 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6093 fi
6094
6095 if test "$wxUSE_MEDIACTRL" = yes; then
6096 echo "$as_me:$LINENO: result: yes" >&5
6097echo "${ECHO_T}yes" >&6
6098 else
6099 echo "$as_me:$LINENO: result: no" >&5
6100echo "${ECHO_T}no" >&6
6101 fi
6102
6103
a848cd7e
SC
6104 enablestring=
6105 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6106echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6107 no_cache=0
6108 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6109if test "${enable_wxprintfv+set}" = set; then
6110 enableval="$enable_wxprintfv"
6111
6112 if test "$enableval" = yes; then
6113 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6114 else
6115 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6116 fi
6117
6118else
6119
6120 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6121 if test "x$LINE" != x ; then
6122 eval "DEFAULT_$LINE"
6123 else
6124 no_cache=1
6125 fi
6126
6127 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6128
6129fi;
6130
6131 eval "$ac_cv_use_wxprintfv"
6132 if test "$no_cache" != 1; then
6133 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6134 fi
6135
6136 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6137 echo "$as_me:$LINENO: result: yes" >&5
6138echo "${ECHO_T}yes" >&6
6139 else
6140 echo "$as_me:$LINENO: result: no" >&5
6141echo "${ECHO_T}no" >&6
6142 fi
6143
6144
6145 enablestring=
6146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6147echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6148 no_cache=0
6149 # Check whether --enable-zipstream or --disable-zipstream was given.
6150if test "${enable_zipstream+set}" = set; then
6151 enableval="$enable_zipstream"
6152
6153 if test "$enableval" = yes; then
6154 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6155 else
6156 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6157 fi
6158
6159else
6160
6161 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6162 if test "x$LINE" != x ; then
6163 eval "DEFAULT_$LINE"
6164 else
6165 no_cache=1
6166 fi
6167
6168 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6169
6170fi;
6171
6172 eval "$ac_cv_use_zipstream"
6173 if test "$no_cache" != 1; then
6174 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6175 fi
6176
6177 if test "$wxUSE_ZIPSTREAM" = yes; then
6178 echo "$as_me:$LINENO: result: yes" >&5
6179echo "${ECHO_T}yes" >&6
6180 else
6181 echo "$as_me:$LINENO: result: no" >&5
6182echo "${ECHO_T}no" >&6
6183 fi
6184
6185
a848cd7e
SC
6186
6187 enablestring=
6188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6189echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6190 no_cache=0
6191 # Check whether --enable-url or --disable-url was given.
6192if test "${enable_url+set}" = set; then
6193 enableval="$enable_url"
6194
6195 if test "$enableval" = yes; then
6196 ac_cv_use_url='wxUSE_URL=yes'
6197 else
6198 ac_cv_use_url='wxUSE_URL=no'
6199 fi
6200
6201else
6202
6203 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6204 if test "x$LINE" != x ; then
6205 eval "DEFAULT_$LINE"
6206 else
6207 no_cache=1
6208 fi
6209
6210 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6211
6212fi;
6213
6214 eval "$ac_cv_use_url"
6215 if test "$no_cache" != 1; then
6216 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6217 fi
6218
6219 if test "$wxUSE_URL" = yes; then
6220 echo "$as_me:$LINENO: result: yes" >&5
6221echo "${ECHO_T}yes" >&6
6222 else
6223 echo "$as_me:$LINENO: result: no" >&5
6224echo "${ECHO_T}no" >&6
6225 fi
6226
6227
6228 enablestring=
6229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6230echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6231 no_cache=0
6232 # Check whether --enable-protocol or --disable-protocol was given.
6233if test "${enable_protocol+set}" = set; then
6234 enableval="$enable_protocol"
6235
6236 if test "$enableval" = yes; then
6237 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6238 else
6239 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6240 fi
6241
6242else
6243
6244 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6245 if test "x$LINE" != x ; then
6246 eval "DEFAULT_$LINE"
6247 else
6248 no_cache=1
6249 fi
6250
6251 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6252
6253fi;
6254
6255 eval "$ac_cv_use_protocol"
6256 if test "$no_cache" != 1; then
6257 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6258 fi
6259
6260 if test "$wxUSE_PROTOCOL" = yes; then
6261 echo "$as_me:$LINENO: result: yes" >&5
6262echo "${ECHO_T}yes" >&6
6263 else
6264 echo "$as_me:$LINENO: result: no" >&5
6265echo "${ECHO_T}no" >&6
6266 fi
6267
6268
6269 enablestring=
6270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6271echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6272 no_cache=0
6273 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6274if test "${enable_protocol_http+set}" = set; then
6275 enableval="$enable_protocol_http"
6276
6277 if test "$enableval" = yes; then
6278 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6279 else
6280 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6281 fi
6282
6283else
6284
6285 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6286 if test "x$LINE" != x ; then
6287 eval "DEFAULT_$LINE"
6288 else
6289 no_cache=1
6290 fi
6291
6292 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6293
6294fi;
6295
6296 eval "$ac_cv_use_protocol_http"
6297 if test "$no_cache" != 1; then
6298 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6299 fi
6300
6301 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6302 echo "$as_me:$LINENO: result: yes" >&5
6303echo "${ECHO_T}yes" >&6
6304 else
6305 echo "$as_me:$LINENO: result: no" >&5
6306echo "${ECHO_T}no" >&6
6307 fi
6308
6309
6310 enablestring=
6311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6312echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6313 no_cache=0
6314 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6315if test "${enable_protocol_ftp+set}" = set; then
6316 enableval="$enable_protocol_ftp"
6317
6318 if test "$enableval" = yes; then
6319 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6320 else
6321 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6322 fi
6323
6324else
6325
6326 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6327 if test "x$LINE" != x ; then
6328 eval "DEFAULT_$LINE"
6329 else
6330 no_cache=1
6331 fi
6332
6333 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6334
6335fi;
6336
6337 eval "$ac_cv_use_protocol_ftp"
6338 if test "$no_cache" != 1; then
6339 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6340 fi
6341
6342 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6343 echo "$as_me:$LINENO: result: yes" >&5
6344echo "${ECHO_T}yes" >&6
6345 else
6346 echo "$as_me:$LINENO: result: no" >&5
6347echo "${ECHO_T}no" >&6
6348 fi
6349
6350
6351 enablestring=
6352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6353echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6354 no_cache=0
6355 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6356if test "${enable_protocol_file+set}" = set; then
6357 enableval="$enable_protocol_file"
6358
6359 if test "$enableval" = yes; then
6360 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6361 else
6362 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6363 fi
6364
6365else
6366
6367 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6368 if test "x$LINE" != x ; then
6369 eval "DEFAULT_$LINE"
6370 else
6371 no_cache=1
6372 fi
6373
6374 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6375
6376fi;
6377
6378 eval "$ac_cv_use_protocol_file"
6379 if test "$no_cache" != 1; then
6380 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6381 fi
6382
6383 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6384 echo "$as_me:$LINENO: result: yes" >&5
6385echo "${ECHO_T}yes" >&6
6386 else
6387 echo "$as_me:$LINENO: result: no" >&5
6388echo "${ECHO_T}no" >&6
6389 fi
6390
6391
6392
6393
6394
6395 enablestring=
6396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6397echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6398 no_cache=0
6399 # Check whether --enable-threads or --disable-threads was given.
6400if test "${enable_threads+set}" = set; then
6401 enableval="$enable_threads"
6402
6403 if test "$enableval" = yes; then
6404 ac_cv_use_threads='wxUSE_THREADS=yes'
6405 else
6406 ac_cv_use_threads='wxUSE_THREADS=no'
6407 fi
6408
6409else
6410
6411 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6412 if test "x$LINE" != x ; then
6413 eval "DEFAULT_$LINE"
6414 else
6415 no_cache=1
6416 fi
6417
6418 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6419
6420fi;
6421
6422 eval "$ac_cv_use_threads"
6423 if test "$no_cache" != 1; then
6424 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6425 fi
6426
6427 if test "$wxUSE_THREADS" = yes; then
6428 echo "$as_me:$LINENO: result: yes" >&5
6429echo "${ECHO_T}yes" >&6
6430 else
6431 echo "$as_me:$LINENO: result: no" >&5
6432echo "${ECHO_T}no" >&6
6433 fi
6434
6435
6436if test "$wxUSE_GUI" = "yes"; then
6437
6438
6439
6440 enablestring=
6441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6442echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6443 no_cache=0
6444 # Check whether --enable-docview or --disable-docview was given.
6445if test "${enable_docview+set}" = set; then
6446 enableval="$enable_docview"
6447
6448 if test "$enableval" = yes; then
6449 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6450 else
6451 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6452 fi
6453
6454else
6455
6456 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6457 if test "x$LINE" != x ; then
6458 eval "DEFAULT_$LINE"
6459 else
6460 no_cache=1
6461 fi
6462
6463 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6464
6465fi;
6466
6467 eval "$ac_cv_use_docview"
6468 if test "$no_cache" != 1; then
6469 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6470 fi
6471
6472 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6473 echo "$as_me:$LINENO: result: yes" >&5
6474echo "${ECHO_T}yes" >&6
6475 else
6476 echo "$as_me:$LINENO: result: no" >&5
6477echo "${ECHO_T}no" >&6
6478 fi
6479
6480
6481 enablestring=
6482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6483echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6484 no_cache=0
6485 # Check whether --enable-help or --disable-help was given.
6486if test "${enable_help+set}" = set; then
6487 enableval="$enable_help"
6488
6489 if test "$enableval" = yes; then
6490 ac_cv_use_help='wxUSE_HELP=yes'
6491 else
6492 ac_cv_use_help='wxUSE_HELP=no'
6493 fi
6494
6495else
6496
6497 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6498 if test "x$LINE" != x ; then
6499 eval "DEFAULT_$LINE"
6500 else
6501 no_cache=1
6502 fi
6503
6504 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6505
6506fi;
6507
6508 eval "$ac_cv_use_help"
6509 if test "$no_cache" != 1; then
6510 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6511 fi
6512
6513 if test "$wxUSE_HELP" = yes; then
6514 echo "$as_me:$LINENO: result: yes" >&5
6515echo "${ECHO_T}yes" >&6
6516 else
6517 echo "$as_me:$LINENO: result: no" >&5
6518echo "${ECHO_T}no" >&6
6519 fi
6520
6521
6522 enablestring=
6523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6524echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6525 no_cache=0
6526 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6527if test "${enable_mshtmlhelp+set}" = set; then
6528 enableval="$enable_mshtmlhelp"
6529
6530 if test "$enableval" = yes; then
6531 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6532 else
6533 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6534 fi
6535
6536else
6537
6538 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6539 if test "x$LINE" != x ; then
6540 eval "DEFAULT_$LINE"
6541 else
6542 no_cache=1
6543 fi
6544
6545 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6546
6547fi;
6548
6549 eval "$ac_cv_use_mshtmlhelp"
6550 if test "$no_cache" != 1; then
6551 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6552 fi
6553
6554 if test "$wxUSE_MS_HTML_HELP" = yes; then
6555 echo "$as_me:$LINENO: result: yes" >&5
6556echo "${ECHO_T}yes" >&6
6557 else
6558 echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6
6560 fi
6561
6562
6563 enablestring=
6564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6565echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6566 no_cache=0
6567 # Check whether --enable-html or --disable-html was given.
6568if test "${enable_html+set}" = set; then
6569 enableval="$enable_html"
6570
6571 if test "$enableval" = yes; then
6572 ac_cv_use_html='wxUSE_HTML=yes'
6573 else
6574 ac_cv_use_html='wxUSE_HTML=no'
6575 fi
6576
6577else
6578
6579 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6580 if test "x$LINE" != x ; then
6581 eval "DEFAULT_$LINE"
6582 else
6583 no_cache=1
6584 fi
6585
6586 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6587
6588fi;
6589
6590 eval "$ac_cv_use_html"
6591 if test "$no_cache" != 1; then
6592 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6593 fi
6594
6595 if test "$wxUSE_HTML" = yes; then
6596 echo "$as_me:$LINENO: result: yes" >&5
6597echo "${ECHO_T}yes" >&6
6598 else
6599 echo "$as_me:$LINENO: result: no" >&5
6600echo "${ECHO_T}no" >&6
6601 fi
6602
6603
6604 enablestring=
6605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6606echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6607 no_cache=0
6608 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6609if test "${enable_htmlhelp+set}" = set; then
6610 enableval="$enable_htmlhelp"
6611
6612 if test "$enableval" = yes; then
6613 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6614 else
6615 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6616 fi
6617
6618else
6619
6620 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6621 if test "x$LINE" != x ; then
6622 eval "DEFAULT_$LINE"
6623 else
6624 no_cache=1
6625 fi
6626
6627 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6628
6629fi;
6630
6631 eval "$ac_cv_use_htmlhelp"
6632 if test "$no_cache" != 1; then
6633 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6634 fi
6635
6636 if test "$wxUSE_WXHTML_HELP" = yes; then
6637 echo "$as_me:$LINENO: result: yes" >&5
6638echo "${ECHO_T}yes" >&6
6639 else
6640 echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6
6642 fi
6643
6644
9a8f0513
VS
6645 enablestring=
6646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6647echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6648 no_cache=0
6649 # Check whether --enable-xrc or --disable-xrc was given.
6650if test "${enable_xrc+set}" = set; then
6651 enableval="$enable_xrc"
6652
6653 if test "$enableval" = yes; then
6654 ac_cv_use_xrc='wxUSE_XRC=yes'
6655 else
6656 ac_cv_use_xrc='wxUSE_XRC=no'
6657 fi
6658
6659else
6660
6661 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6662 if test "x$LINE" != x ; then
6663 eval "DEFAULT_$LINE"
6664 else
6665 no_cache=1
6666 fi
6667
6668 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6669
6670fi;
6671
6672 eval "$ac_cv_use_xrc"
6673 if test "$no_cache" != 1; then
6674 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6675 fi
6676
6677 if test "$wxUSE_XRC" = yes; then
6678 echo "$as_me:$LINENO: result: yes" >&5
6679echo "${ECHO_T}yes" >&6
6680 else
6681 echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6
6683 fi
6684
6685
a848cd7e
SC
6686 enablestring=
6687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6688echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6689 no_cache=0
6690 # Check whether --enable-constraints or --disable-constraints was given.
6691if test "${enable_constraints+set}" = set; then
6692 enableval="$enable_constraints"
6693
6694 if test "$enableval" = yes; then
6695 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6696 else
6697 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6698 fi
6699
6700else
6701
6702 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6703 if test "x$LINE" != x ; then
6704 eval "DEFAULT_$LINE"
6705 else
6706 no_cache=1
6707 fi
6708
6709 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6710
6711fi;
6712
6713 eval "$ac_cv_use_constraints"
6714 if test "$no_cache" != 1; then
6715 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6716 fi
6717
6718 if test "$wxUSE_CONSTRAINTS" = yes; then
6719 echo "$as_me:$LINENO: result: yes" >&5
6720echo "${ECHO_T}yes" >&6
6721 else
6722 echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6
6724 fi
6725
6726
6727 enablestring=
6728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6729echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6730 no_cache=0
6731 # Check whether --enable-printarch or --disable-printarch was given.
6732if test "${enable_printarch+set}" = set; then
6733 enableval="$enable_printarch"
6734
6735 if test "$enableval" = yes; then
6736 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6737 else
6738 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6739 fi
6740
6741else
6742
6743 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6744 if test "x$LINE" != x ; then
6745 eval "DEFAULT_$LINE"
6746 else
6747 no_cache=1
6748 fi
6749
6750 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6751
6752fi;
6753
6754 eval "$ac_cv_use_printarch"
6755 if test "$no_cache" != 1; then
6756 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6757 fi
6758
6759 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6760 echo "$as_me:$LINENO: result: yes" >&5
6761echo "${ECHO_T}yes" >&6
6762 else
6763 echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6
6765 fi
6766
6767
6768 enablestring=
6769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6770echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6771 no_cache=0
6772 # Check whether --enable-mdi or --disable-mdi was given.
6773if test "${enable_mdi+set}" = set; then
6774 enableval="$enable_mdi"
6775
6776 if test "$enableval" = yes; then
8a7b1113 6777 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6778 else
8a7b1113 6779 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6780 fi
6781
6782else
6783
8a7b1113 6784 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6785 if test "x$LINE" != x ; then
6786 eval "DEFAULT_$LINE"
6787 else
6788 no_cache=1
6789 fi
6790
8a7b1113 6791 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6792
6793fi;
6794
6795 eval "$ac_cv_use_mdi"
6796 if test "$no_cache" != 1; then
6797 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6798 fi
6799
8a7b1113
VZ
6800 if test "$wxUSE_MDI" = yes; then
6801 echo "$as_me:$LINENO: result: yes" >&5
6802echo "${ECHO_T}yes" >&6
6803 else
6804 echo "$as_me:$LINENO: result: no" >&5
6805echo "${ECHO_T}no" >&6
6806 fi
6807
6808
6809 enablestring=
6810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6811echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6812 no_cache=0
6813 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6814if test "${enable_mdidoc+set}" = set; then
6815 enableval="$enable_mdidoc"
6816
6817 if test "$enableval" = yes; then
6818 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6819 else
6820 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6821 fi
6822
6823else
6824
6825 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6826 if test "x$LINE" != x ; then
6827 eval "DEFAULT_$LINE"
6828 else
6829 no_cache=1
6830 fi
6831
6832 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6833
6834fi;
6835
6836 eval "$ac_cv_use_mdidoc"
6837 if test "$no_cache" != 1; then
6838 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6839 fi
6840
a848cd7e
SC
6841 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6842 echo "$as_me:$LINENO: result: yes" >&5
6843echo "${ECHO_T}yes" >&6
6844 else
6845 echo "$as_me:$LINENO: result: no" >&5
6846echo "${ECHO_T}no" >&6
6847 fi
6848
6849
6850 enablestring=
6851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6852echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6853 no_cache=0
6854 # Check whether --enable-loggui or --disable-loggui was given.
6855if test "${enable_loggui+set}" = set; then
6856 enableval="$enable_loggui"
6857
6858 if test "$enableval" = yes; then
6859 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6860 else
6861 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6862 fi
6863
6864else
6865
6866 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6867 if test "x$LINE" != x ; then
6868 eval "DEFAULT_$LINE"
6869 else
6870 no_cache=1
6871 fi
6872
6873 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6874
6875fi;
6876
6877 eval "$ac_cv_use_loggui"
6878 if test "$no_cache" != 1; then
6879 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6880 fi
6881
6882 if test "$wxUSE_LOGGUI" = yes; then
6883 echo "$as_me:$LINENO: result: yes" >&5
6884echo "${ECHO_T}yes" >&6
6885 else
6886 echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6
6888 fi
6889
6890
6891 enablestring=
6892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6893echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6894 no_cache=0
6895 # Check whether --enable-logwin or --disable-logwin was given.
6896if test "${enable_logwin+set}" = set; then
6897 enableval="$enable_logwin"
6898
6899 if test "$enableval" = yes; then
6900 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6901 else
6902 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6903 fi
6904
6905else
6906
6907 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6908 if test "x$LINE" != x ; then
6909 eval "DEFAULT_$LINE"
6910 else
6911 no_cache=1
6912 fi
6913
6914 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6915
6916fi;
6917
6918 eval "$ac_cv_use_logwin"
6919 if test "$no_cache" != 1; then
6920 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6921 fi
6922
6923 if test "$wxUSE_LOGWINDOW" = yes; then
6924 echo "$as_me:$LINENO: result: yes" >&5
6925echo "${ECHO_T}yes" >&6
6926 else
6927 echo "$as_me:$LINENO: result: no" >&5
6928echo "${ECHO_T}no" >&6
6929 fi
6930
6931
6932 enablestring=
6933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6934echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6935 no_cache=0
6936 # Check whether --enable-logdialog or --disable-logdialog was given.
6937if test "${enable_logdialog+set}" = set; then
6938 enableval="$enable_logdialog"
6939
6940 if test "$enableval" = yes; then
6941 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6942 else
6943 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6944 fi
6945
6946else
6947
6948 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6949 if test "x$LINE" != x ; then
6950 eval "DEFAULT_$LINE"
6951 else
6952 no_cache=1
6953 fi
6954
6955 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6956
6957fi;
6958
6959 eval "$ac_cv_use_logdialog"
6960 if test "$no_cache" != 1; then
6961 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6962 fi
6963
6964 if test "$wxUSE_LOGDIALOG" = yes; then
6965 echo "$as_me:$LINENO: result: yes" >&5
6966echo "${ECHO_T}yes" >&6
6967 else
6968 echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6
6970 fi
6971
6972
646b6ec1
VS
6973 enablestring=
6974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6975echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6976 no_cache=0
6977 # Check whether --enable-webkit or --disable-webkit was given.
6978if test "${enable_webkit+set}" = set; then
6979 enableval="$enable_webkit"
6980
6981 if test "$enableval" = yes; then
6982 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6983 else
6984 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6985 fi
6986
6987else
6988
6989 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6990 if test "x$LINE" != x ; then
6991 eval "DEFAULT_$LINE"
6992 else
6993 no_cache=1
6994 fi
6995
6996 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6997
6998fi;
6999
7000 eval "$ac_cv_use_webkit"
7001 if test "$no_cache" != 1; then
7002 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7003 fi
7004
7005 if test "$wxUSE_WEBKIT" = yes; then
7006 echo "$as_me:$LINENO: result: yes" >&5
7007echo "${ECHO_T}yes" >&6
7008 else
7009 echo "$as_me:$LINENO: result: no" >&5
7010echo "${ECHO_T}no" >&6
7011 fi
7012
7013
91dea314
MW
7014 enablestring=
7015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7016echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7017 no_cache=0
7018 # Check whether --enable-html or --disable-html was given.
7019if test "${enable_html+set}" = set; then
7020 enableval="$enable_html"
7021
7022 if test "$enableval" = yes; then
7023 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7024 else
7025 ac_cv_use_html='wxUSE_RICHTEXT=no'
7026 fi
7027
7028else
7029
7030 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7031 if test "x$LINE" != x ; then
7032 eval "DEFAULT_$LINE"
7033 else
7034 no_cache=1
7035 fi
7036
7037 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7038
7039fi;
7040
7041 eval "$ac_cv_use_html"
7042 if test "$no_cache" != 1; then
7043 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7044 fi
7045
7046 if test "$wxUSE_RICHTEXT" = yes; then
7047 echo "$as_me:$LINENO: result: yes" >&5
7048echo "${ECHO_T}yes" >&6
7049 else
7050 echo "$as_me:$LINENO: result: no" >&5
7051echo "${ECHO_T}no" >&6
7052 fi
7053
7054
a848cd7e
SC
7055
7056 enablestring=
7057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7058echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7059 no_cache=0
7060 # Check whether --enable-postscript or --disable-postscript was given.
7061if test "${enable_postscript+set}" = set; then
7062 enableval="$enable_postscript"
7063
7064 if test "$enableval" = yes; then
7065 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7066 else
7067 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7068 fi
7069
7070else
7071
7072 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7073 if test "x$LINE" != x ; then
7074 eval "DEFAULT_$LINE"
7075 else
7076 no_cache=1
7077 fi
7078
7079 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7080
7081fi;
7082
7083 eval "$ac_cv_use_postscript"
7084 if test "$no_cache" != 1; then
7085 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7086 fi
7087
7088 if test "$wxUSE_POSTSCRIPT" = yes; then
7089 echo "$as_me:$LINENO: result: yes" >&5
7090echo "${ECHO_T}yes" >&6
7091 else
7092 echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6
7094 fi
7095
7096
7097
7098
7099
7100 enablestring=
7101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7102echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7103 no_cache=0
7104 # Check whether --enable-prologio or --disable-prologio was given.
7105if test "${enable_prologio+set}" = set; then
7106 enableval="$enable_prologio"
7107
7108 if test "$enableval" = yes; then
7109 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7110 else
7111 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7112 fi
7113
7114else
7115
7116 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7117 if test "x$LINE" != x ; then
7118 eval "DEFAULT_$LINE"
7119 else
7120 no_cache=1
7121 fi
7122
7123 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7124
7125fi;
7126
7127 eval "$ac_cv_use_prologio"
7128 if test "$no_cache" != 1; then
7129 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7130 fi
7131
7132 if test "$wxUSE_PROLOGIO" = yes; then
7133 echo "$as_me:$LINENO: result: yes" >&5
7134echo "${ECHO_T}yes" >&6
7135 else
7136 echo "$as_me:$LINENO: result: no" >&5
7137echo "${ECHO_T}no" >&6
7138 fi
7139
7140
7141 enablestring=
7142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7143echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7144 no_cache=0
7145 # Check whether --enable-resources or --disable-resources was given.
7146if test "${enable_resources+set}" = set; then
7147 enableval="$enable_resources"
7148
7149 if test "$enableval" = yes; then
7150 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7151 else
7152 ac_cv_use_resources='wxUSE_RESOURCES=no'
7153 fi
7154
7155else
7156
7157 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7158 if test "x$LINE" != x ; then
7159 eval "DEFAULT_$LINE"
7160 else
7161 no_cache=1
7162 fi
7163
7164 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7165
7166fi;
7167
7168 eval "$ac_cv_use_resources"
7169 if test "$no_cache" != 1; then
7170 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7171 fi
7172
7173 if test "$wxUSE_RESOURCES" = yes; then
7174 echo "$as_me:$LINENO: result: yes" >&5
7175echo "${ECHO_T}yes" >&6
7176 else
7177 echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6
7179 fi
7180
7181
7182
7183
7184 enablestring=
7185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7186echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7187 no_cache=0
7188 # Check whether --enable-clipboard or --disable-clipboard was given.
7189if test "${enable_clipboard+set}" = set; then
7190 enableval="$enable_clipboard"
7191
7192 if test "$enableval" = yes; then
7193 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7194 else
7195 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7196 fi
7197
7198else
7199
7200 LINE=`grep "wxUSE_CLIPBOARD" ${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_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7208
7209fi;
7210
7211 eval "$ac_cv_use_clipboard"
7212 if test "$no_cache" != 1; then
7213 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7214 fi
7215
7216 if test "$wxUSE_CLIPBOARD" = 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
7225 enablestring=
7226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7227echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7228 no_cache=0
7229 # Check whether --enable-dnd or --disable-dnd was given.
7230if test "${enable_dnd+set}" = set; then
7231 enableval="$enable_dnd"
7232
7233 if test "$enableval" = yes; then
7234 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7235 else
7236 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7237 fi
7238
7239else
7240
7241 LINE=`grep "wxUSE_DRAG_AND_DROP" ${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_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7249
7250fi;
7251
7252 eval "$ac_cv_use_dnd"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_DRAG_AND_DROP" = 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
7266 enablestring=
7267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7268echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7269 no_cache=0
7270 # Check whether --enable-metafile or --disable-metafile was given.
7271if test "${enable_metafile+set}" = set; then
7272 enableval="$enable_metafile"
7273
7274 if test "$enableval" = yes; then
7275 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7276 else
7277 ac_cv_use_metafile='wxUSE_METAFILE=no'
7278 fi
7279
7280else
7281
7282 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7283 if test "x$LINE" != x ; then
7284 eval "DEFAULT_$LINE"
7285 else
7286 no_cache=1
7287 fi
7288
7289 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7290
7291fi;
7292
7293 eval "$ac_cv_use_metafile"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_METAFILE" = yes; then
7299 echo "$as_me:$LINENO: result: yes" >&5
7300echo "${ECHO_T}yes" >&6
7301 else
7302 echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6
7304 fi
7305
7306
7307
7308
7309
7310 enablestring=
7311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7312echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7313 no_cache=0
7314 # Check whether --enable-controls or --disable-controls was given.
7315if test "${enable_controls+set}" = set; then
7316 enableval="$enable_controls"
7317
7318 if test "$enableval" = yes; then
7319 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7320 else
7321 ac_cv_use_controls='wxUSE_CONTROLS=no'
7322 fi
7323
7324else
7325
7326 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7327 if test "x$LINE" != x ; then
7328 eval "DEFAULT_$LINE"
7329 else
7330 no_cache=1
7331 fi
7332
7333 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7334
7335fi;
7336
7337 eval "$ac_cv_use_controls"
7338 if test "$no_cache" != 1; then
7339 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7340 fi
7341
7342 if test "$wxUSE_CONTROLS" = yes; then
7343 echo "$as_me:$LINENO: result: yes" >&5
7344echo "${ECHO_T}yes" >&6
7345 else
7346 echo "$as_me:$LINENO: result: no" >&5
7347echo "${ECHO_T}no" >&6
7348 fi
7349
7350
7351if test "$wxUSE_CONTROLS" = "yes"; then
7352 DEFAULT_wxUSE_ACCEL=yes
7353 DEFAULT_wxUSE_BMPBUTTON=yes
7354 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7355 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7356 DEFAULT_wxUSE_CARET=yes
7357 DEFAULT_wxUSE_COMBOBOX=yes
7358 DEFAULT_wxUSE_CHECKBOX=yes
7359 DEFAULT_wxUSE_CHECKLISTBOX=yes
7360 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7361 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7362 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7363 DEFAULT_wxUSE_GAUGE=yes
7364 DEFAULT_wxUSE_GRID=yes
7365 DEFAULT_wxUSE_IMAGLIST=yes
7366 DEFAULT_wxUSE_LISTBOOK=yes
7367 DEFAULT_wxUSE_LISTBOX=yes
7368 DEFAULT_wxUSE_LISTCTRL=yes
7369 DEFAULT_wxUSE_NOTEBOOK=yes
7370 DEFAULT_wxUSE_RADIOBOX=yes
7371 DEFAULT_wxUSE_RADIOBTN=yes
7372 DEFAULT_wxUSE_SASH=yes
7373 DEFAULT_wxUSE_SCROLLBAR=yes
7374 DEFAULT_wxUSE_SLIDER=yes
7375 DEFAULT_wxUSE_SPINBTN=yes
7376 DEFAULT_wxUSE_SPINCTRL=yes
7377 DEFAULT_wxUSE_SPLITTER=yes
7378 DEFAULT_wxUSE_STATBMP=yes
7379 DEFAULT_wxUSE_STATBOX=yes
7380 DEFAULT_wxUSE_STATLINE=yes
7381 DEFAULT_wxUSE_STATUSBAR=yes
7382 DEFAULT_wxUSE_TAB_DIALOG=yes
7383 DEFAULT_wxUSE_TOGGLEBTN=yes
7384 DEFAULT_wxUSE_TOOLBAR=yes
7385 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7386 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7387 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7388 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
7389 DEFAULT_wxUSE_TREECTRL=yes
7390 DEFAULT_wxUSE_POPUPWIN=yes
7391 DEFAULT_wxUSE_TIPWINDOW=yes
7392elif test "$wxUSE_CONTROLS" = "no"; then
7393 DEFAULT_wxUSE_ACCEL=no
7394 DEFAULT_wxUSE_BMPBUTTON=no
7395 DEFAULT_wxUSE_BUTTON=no
7396 DEFAULT_wxUSE_CALCTRL=no
7397 DEFAULT_wxUSE_CARET=no
7398 DEFAULT_wxUSE_COMBOBOX=no
7399 DEFAULT_wxUSE_CHECKBOX=no
7400 DEFAULT_wxUSE_CHECKLISTBOX=no
7401 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7402 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7403 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7404 DEFAULT_wxUSE_GAUGE=no
7405 DEFAULT_wxUSE_GRID=no
7406 DEFAULT_wxUSE_IMAGLIST=no
7407 DEFAULT_wxUSE_LISTBOOK=no
7408 DEFAULT_wxUSE_LISTBOX=no
7409 DEFAULT_wxUSE_LISTCTRL=no
7410 DEFAULT_wxUSE_NOTEBOOK=no
7411 DEFAULT_wxUSE_RADIOBOX=no
7412 DEFAULT_wxUSE_RADIOBTN=no
7413 DEFAULT_wxUSE_SASH=no
7414 DEFAULT_wxUSE_SCROLLBAR=no
7415 DEFAULT_wxUSE_SLIDER=no
7416 DEFAULT_wxUSE_SPINBTN=no
7417 DEFAULT_wxUSE_SPINCTRL=no
7418 DEFAULT_wxUSE_SPLITTER=no
7419 DEFAULT_wxUSE_STATBMP=no
7420 DEFAULT_wxUSE_STATBOX=no
7421 DEFAULT_wxUSE_STATLINE=no
7422 DEFAULT_wxUSE_STATUSBAR=no
7423 DEFAULT_wxUSE_TAB_DIALOG=no
7424 DEFAULT_wxUSE_TOGGLEBTN=no
7425 DEFAULT_wxUSE_TOOLBAR=no
7426 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7427 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7428 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7429 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
7430 DEFAULT_wxUSE_TREECTRL=no
7431 DEFAULT_wxUSE_POPUPWIN=no
7432 DEFAULT_wxUSE_TIPWINDOW=no
7433fi
7434
a848cd7e
SC
7435
7436 enablestring=
7437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7438echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7439 no_cache=0
7440 # Check whether --enable-accel or --disable-accel was given.
7441if test "${enable_accel+set}" = set; then
7442 enableval="$enable_accel"
7443
7444 if test "$enableval" = yes; then
7445 ac_cv_use_accel='wxUSE_ACCEL=yes'
7446 else
7447 ac_cv_use_accel='wxUSE_ACCEL=no'
7448 fi
7449
7450else
7451
7452 LINE=`grep "wxUSE_ACCEL" ${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_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7460
7461fi;
7462
7463 eval "$ac_cv_use_accel"
7464 if test "$no_cache" != 1; then
7465 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7466 fi
7467
7468 if test "$wxUSE_ACCEL" = 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}-button" >&5
7479echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7480 no_cache=0
7481 # Check whether --enable-button or --disable-button was given.
7482if test "${enable_button+set}" = set; then
7483 enableval="$enable_button"
7484
7485 if test "$enableval" = yes; then
7486 ac_cv_use_button='wxUSE_BUTTON=yes'
7487 else
7488 ac_cv_use_button='wxUSE_BUTTON=no'
7489 fi
7490
7491else
7492
7493 LINE=`grep "wxUSE_BUTTON" ${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_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7501
7502fi;
7503
7504 eval "$ac_cv_use_button"
7505 if test "$no_cache" != 1; then
7506 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7507 fi
7508
7509 if test "$wxUSE_BUTTON" = 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 enablestring=
7519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7520echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7521 no_cache=0
7522 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7523if test "${enable_bmpbutton+set}" = set; then
7524 enableval="$enable_bmpbutton"
7525
7526 if test "$enableval" = yes; then
7527 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7528 else
7529 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7530 fi
7531
7532else
7533
7534 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7535 if test "x$LINE" != x ; then
7536 eval "DEFAULT_$LINE"
7537 else
7538 no_cache=1
7539 fi
7540
7541 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7542
7543fi;
7544
7545 eval "$ac_cv_use_bmpbutton"
7546 if test "$no_cache" != 1; then
7547 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7548 fi
7549
7550 if test "$wxUSE_BMPBUTTON" = yes; then
7551 echo "$as_me:$LINENO: result: yes" >&5
7552echo "${ECHO_T}yes" >&6
7553 else
7554 echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6
7556 fi
7557
7558
7559 enablestring=
7560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7561echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7562 no_cache=0
7563 # Check whether --enable-calendar or --disable-calendar was given.
7564if test "${enable_calendar+set}" = set; then
7565 enableval="$enable_calendar"
7566
7567 if test "$enableval" = yes; then
7568 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7569 else
7570 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7571 fi
7572
7573else
7574
7575 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7576 if test "x$LINE" != x ; then
7577 eval "DEFAULT_$LINE"
7578 else
7579 no_cache=1
7580 fi
7581
7582 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7583
7584fi;
7585
7586 eval "$ac_cv_use_calendar"
7587 if test "$no_cache" != 1; then
7588 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7589 fi
7590
7591 if test "$wxUSE_CALCTRL" = yes; then
7592 echo "$as_me:$LINENO: result: yes" >&5
7593echo "${ECHO_T}yes" >&6
7594 else
7595 echo "$as_me:$LINENO: result: no" >&5
7596echo "${ECHO_T}no" >&6
7597 fi
7598
7599
7600 enablestring=
7601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7602echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7603 no_cache=0
7604 # Check whether --enable-caret or --disable-caret was given.
7605if test "${enable_caret+set}" = set; then
7606 enableval="$enable_caret"
7607
7608 if test "$enableval" = yes; then
7609 ac_cv_use_caret='wxUSE_CARET=yes'
7610 else
7611 ac_cv_use_caret='wxUSE_CARET=no'
7612 fi
7613
7614else
7615
7616 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7617 if test "x$LINE" != x ; then
7618 eval "DEFAULT_$LINE"
7619 else
7620 no_cache=1
7621 fi
7622
7623 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7624
7625fi;
7626
7627 eval "$ac_cv_use_caret"
7628 if test "$no_cache" != 1; then
7629 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7630 fi
7631
7632 if test "$wxUSE_CARET" = yes; then
7633 echo "$as_me:$LINENO: result: yes" >&5
7634echo "${ECHO_T}yes" >&6
7635 else
7636 echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6
7638 fi
7639
7640
7641 enablestring=
7642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7643echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7644 no_cache=0
7645 # Check whether --enable-checkbox or --disable-checkbox was given.
7646if test "${enable_checkbox+set}" = set; then
7647 enableval="$enable_checkbox"
7648
7649 if test "$enableval" = yes; then
7650 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7651 else
7652 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7653 fi
7654
7655else
7656
7657 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7658 if test "x$LINE" != x ; then
7659 eval "DEFAULT_$LINE"
7660 else
7661 no_cache=1
7662 fi
7663
7664 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7665
7666fi;
7667
7668 eval "$ac_cv_use_checkbox"
7669 if test "$no_cache" != 1; then
7670 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7671 fi
7672
7673 if test "$wxUSE_CHECKBOX" = yes; then
7674 echo "$as_me:$LINENO: result: yes" >&5
7675echo "${ECHO_T}yes" >&6
7676 else
7677 echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6
7679 fi
7680
7681
7682 enablestring=
7683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7684echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7685 no_cache=0
7686 # Check whether --enable-checklst or --disable-checklst was given.
7687if test "${enable_checklst+set}" = set; then
7688 enableval="$enable_checklst"
7689
7690 if test "$enableval" = yes; then
7691 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7692 else
7693 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7694 fi
7695
7696else
7697
7698 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7699 if test "x$LINE" != x ; then
7700 eval "DEFAULT_$LINE"
7701 else
7702 no_cache=1
7703 fi
7704
7705 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7706
7707fi;
7708
7709 eval "$ac_cv_use_checklst"
7710 if test "$no_cache" != 1; then
7711 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7712 fi
7713
7714 if test "$wxUSE_CHECKLST" = yes; then
7715 echo "$as_me:$LINENO: result: yes" >&5
7716echo "${ECHO_T}yes" >&6
7717 else
7718 echo "$as_me:$LINENO: result: no" >&5
7719echo "${ECHO_T}no" >&6
7720 fi
7721
7722
7723 enablestring=
7724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7725echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7726 no_cache=0
7727 # Check whether --enable-choice or --disable-choice was given.
7728if test "${enable_choice+set}" = set; then
7729 enableval="$enable_choice"
7730
7731 if test "$enableval" = yes; then
7732 ac_cv_use_choice='wxUSE_CHOICE=yes'
7733 else
7734 ac_cv_use_choice='wxUSE_CHOICE=no'
7735 fi
7736
7737else
7738
7739 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7740 if test "x$LINE" != x ; then
7741 eval "DEFAULT_$LINE"
7742 else
7743 no_cache=1
7744 fi
7745
7746 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7747
7748fi;
7749
7750 eval "$ac_cv_use_choice"
7751 if test "$no_cache" != 1; then
7752 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7753 fi
7754
7755 if test "$wxUSE_CHOICE" = yes; then
7756 echo "$as_me:$LINENO: result: yes" >&5
7757echo "${ECHO_T}yes" >&6
7758 else
7759 echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6
7761 fi
7762
7763
92bbdbcd
WS
7764 enablestring=
7765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7766echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7767 no_cache=0
7768 # Check whether --enable-choicebook or --disable-choicebook was given.
7769if test "${enable_choicebook+set}" = set; then
7770 enableval="$enable_choicebook"
7771
7772 if test "$enableval" = yes; then
7773 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7774 else
7775 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7776 fi
7777
7778else
7779
7780 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7781 if test "x$LINE" != x ; then
7782 eval "DEFAULT_$LINE"
7783 else
7784 no_cache=1
7785 fi
7786
7787 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7788
7789fi;
7790
7791 eval "$ac_cv_use_choicebook"
7792 if test "$no_cache" != 1; then
7793 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7794 fi
7795
7796 if test "$wxUSE_CHOICEBOOK" = yes; then
7797 echo "$as_me:$LINENO: result: yes" >&5
7798echo "${ECHO_T}yes" >&6
7799 else
7800 echo "$as_me:$LINENO: result: no" >&5
7801echo "${ECHO_T}no" >&6
7802 fi
7803
7804
a848cd7e
SC
7805 enablestring=
7806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7807echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7808 no_cache=0
7809 # Check whether --enable-combobox or --disable-combobox was given.
7810if test "${enable_combobox+set}" = set; then
7811 enableval="$enable_combobox"
7812
7813 if test "$enableval" = yes; then
7814 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7815 else
7816 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7817 fi
7818
7819else
7820
7821 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7822 if test "x$LINE" != x ; then
7823 eval "DEFAULT_$LINE"
7824 else
7825 no_cache=1
7826 fi
7827
7828 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7829
7830fi;
7831
7832 eval "$ac_cv_use_combobox"
7833 if test "$no_cache" != 1; then
7834 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7835 fi
7836
7837 if test "$wxUSE_COMBOBOX" = yes; then
7838 echo "$as_me:$LINENO: result: yes" >&5
7839echo "${ECHO_T}yes" >&6
7840 else
7841 echo "$as_me:$LINENO: result: no" >&5
7842echo "${ECHO_T}no" >&6
7843 fi
7844
7845
da98e9be
VZ
7846 enablestring=
7847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7848echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7849 no_cache=0
7850 # Check whether --enable-datepick or --disable-datepick was given.
7851if test "${enable_datepick+set}" = set; then
7852 enableval="$enable_datepick"
7853
7854 if test "$enableval" = yes; then
7855 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7856 else
7857 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7858 fi
7859
7860else
7861
7862 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7863 if test "x$LINE" != x ; then
7864 eval "DEFAULT_$LINE"
7865 else
7866 no_cache=1
7867 fi
7868
7869 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7870
7871fi;
7872
7873 eval "$ac_cv_use_datepick"
7874 if test "$no_cache" != 1; then
7875 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7876 fi
7877
7878 if test "$wxUSE_DATEPICKCTRL" = yes; then
7879 echo "$as_me:$LINENO: result: yes" >&5
7880echo "${ECHO_T}yes" >&6
7881 else
7882 echo "$as_me:$LINENO: result: no" >&5
7883echo "${ECHO_T}no" >&6
7884 fi
7885
7886
a848cd7e
SC
7887 enablestring=
7888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7889echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7890 no_cache=0
7891 # Check whether --enable-display or --disable-display was given.
7892if test "${enable_display+set}" = set; then
7893 enableval="$enable_display"
7894
7895 if test "$enableval" = yes; then
7896 ac_cv_use_display='wxUSE_DISPLAY=yes'
7897 else
7898 ac_cv_use_display='wxUSE_DISPLAY=no'
7899 fi
7900
7901else
7902
7903 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7904 if test "x$LINE" != x ; then
7905 eval "DEFAULT_$LINE"
7906 else
7907 no_cache=1
7908 fi
7909
7910 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7911
7912fi;
7913
7914 eval "$ac_cv_use_display"
7915 if test "$no_cache" != 1; then
7916 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7917 fi
7918
7919 if test "$wxUSE_DISPLAY" = yes; then
7920 echo "$as_me:$LINENO: result: yes" >&5
7921echo "${ECHO_T}yes" >&6
7922 else
7923 echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
7925 fi
7926
7927
7928 enablestring=
7929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7930echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7931 no_cache=0
7932 # Check whether --enable-gauge or --disable-gauge was given.
7933if test "${enable_gauge+set}" = set; then
7934 enableval="$enable_gauge"
7935
7936 if test "$enableval" = yes; then
7937 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7938 else
7939 ac_cv_use_gauge='wxUSE_GAUGE=no'
7940 fi
7941
7942else
7943
7944 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7945 if test "x$LINE" != x ; then
7946 eval "DEFAULT_$LINE"
7947 else
7948 no_cache=1
7949 fi
7950
7951 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7952
7953fi;
7954
7955 eval "$ac_cv_use_gauge"
7956 if test "$no_cache" != 1; then
7957 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7958 fi
7959
7960 if test "$wxUSE_GAUGE" = yes; then
7961 echo "$as_me:$LINENO: result: yes" >&5
7962echo "${ECHO_T}yes" >&6
7963 else
7964 echo "$as_me:$LINENO: result: no" >&5
7965echo "${ECHO_T}no" >&6
7966 fi
7967
7968
7969 enablestring=
7970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7971echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7972 no_cache=0
7973 # Check whether --enable-grid or --disable-grid was given.
7974if test "${enable_grid+set}" = set; then
7975 enableval="$enable_grid"
7976
7977 if test "$enableval" = yes; then
7978 ac_cv_use_grid='wxUSE_GRID=yes'
7979 else
7980 ac_cv_use_grid='wxUSE_GRID=no'
7981 fi
7982
7983else
7984
7985 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7986 if test "x$LINE" != x ; then
7987 eval "DEFAULT_$LINE"
7988 else
7989 no_cache=1
7990 fi
7991
7992 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7993
7994fi;
7995
7996 eval "$ac_cv_use_grid"
7997 if test "$no_cache" != 1; then
7998 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7999 fi
8000
8001 if test "$wxUSE_GRID" = yes; then
8002 echo "$as_me:$LINENO: result: yes" >&5
8003echo "${ECHO_T}yes" >&6
8004 else
8005 echo "$as_me:$LINENO: result: no" >&5
8006echo "${ECHO_T}no" >&6
8007 fi
8008
8009
8010 enablestring=
8011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8012echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8013 no_cache=0
8014 # Check whether --enable-imaglist or --disable-imaglist was given.
8015if test "${enable_imaglist+set}" = set; then
8016 enableval="$enable_imaglist"
8017
8018 if test "$enableval" = yes; then
8019 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8020 else
8021 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8022 fi
8023
8024else
8025
8026 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8027 if test "x$LINE" != x ; then
8028 eval "DEFAULT_$LINE"
8029 else
8030 no_cache=1
8031 fi
8032
8033 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8034
8035fi;
8036
8037 eval "$ac_cv_use_imaglist"
8038 if test "$no_cache" != 1; then
8039 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8040 fi
8041
8042 if test "$wxUSE_IMAGLIST" = yes; then
8043 echo "$as_me:$LINENO: result: yes" >&5
8044echo "${ECHO_T}yes" >&6
8045 else
8046 echo "$as_me:$LINENO: result: no" >&5
8047echo "${ECHO_T}no" >&6
8048 fi
8049
8050
8051 enablestring=
8052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8053echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8054 no_cache=0
8055 # Check whether --enable-listbook or --disable-listbook was given.
8056if test "${enable_listbook+set}" = set; then
8057 enableval="$enable_listbook"
8058
8059 if test "$enableval" = yes; then
8060 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8061 else
8062 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8063 fi
8064
8065else
8066
8067 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8068 if test "x$LINE" != x ; then
8069 eval "DEFAULT_$LINE"
8070 else
8071 no_cache=1
8072 fi
8073
8074 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8075
8076fi;
8077
8078 eval "$ac_cv_use_listbook"
8079 if test "$no_cache" != 1; then
8080 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8081 fi
8082
8083 if test "$wxUSE_LISTBOOK" = yes; then
8084 echo "$as_me:$LINENO: result: yes" >&5
8085echo "${ECHO_T}yes" >&6
8086 else
8087 echo "$as_me:$LINENO: result: no" >&5
8088echo "${ECHO_T}no" >&6
8089 fi
8090
8091
8092 enablestring=
8093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8094echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8095 no_cache=0
8096 # Check whether --enable-listbox or --disable-listbox was given.
8097if test "${enable_listbox+set}" = set; then
8098 enableval="$enable_listbox"
8099
8100 if test "$enableval" = yes; then
8101 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8102 else
8103 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8104 fi
8105
8106else
8107
8108 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8116
8117fi;
8118
8119 eval "$ac_cv_use_listbox"
8120 if test "$no_cache" != 1; then
8121 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8122 fi
8123
8124 if test "$wxUSE_LISTBOX" = yes; then
8125 echo "$as_me:$LINENO: result: yes" >&5
8126echo "${ECHO_T}yes" >&6
8127 else
8128 echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
8130 fi
8131
8132
8133 enablestring=
8134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8135echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8136 no_cache=0
8137 # Check whether --enable-listctrl or --disable-listctrl was given.
8138if test "${enable_listctrl+set}" = set; then
8139 enableval="$enable_listctrl"
8140
8141 if test "$enableval" = yes; then
8142 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8143 else
8144 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8145 fi
8146
8147else
8148
8149 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8150 if test "x$LINE" != x ; then
8151 eval "DEFAULT_$LINE"
8152 else
8153 no_cache=1
8154 fi
8155
8156 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8157
8158fi;
8159
8160 eval "$ac_cv_use_listctrl"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_LISTCTRL" = yes; then
8166 echo "$as_me:$LINENO: result: yes" >&5
8167echo "${ECHO_T}yes" >&6
8168 else
8169 echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6
8171 fi
8172
8173
8174 enablestring=
8175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8176echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8177 no_cache=0
8178 # Check whether --enable-notebook or --disable-notebook was given.
8179if test "${enable_notebook+set}" = set; then
8180 enableval="$enable_notebook"
8181
8182 if test "$enableval" = yes; then
8183 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8184 else
8185 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8186 fi
8187
8188else
8189
8190 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8191 if test "x$LINE" != x ; then
8192 eval "DEFAULT_$LINE"
8193 else
8194 no_cache=1
8195 fi
8196
8197 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8198
8199fi;
8200
8201 eval "$ac_cv_use_notebook"
8202 if test "$no_cache" != 1; then
8203 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8204 fi
8205
8206 if test "$wxUSE_NOTEBOOK" = yes; then
8207 echo "$as_me:$LINENO: result: yes" >&5
8208echo "${ECHO_T}yes" >&6
8209 else
8210 echo "$as_me:$LINENO: result: no" >&5
8211echo "${ECHO_T}no" >&6
8212 fi
8213
8214
8215 enablestring=
8216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8217echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8218 no_cache=0
8219 # Check whether --enable-radiobox or --disable-radiobox was given.
8220if test "${enable_radiobox+set}" = set; then
8221 enableval="$enable_radiobox"
8222
8223 if test "$enableval" = yes; then
8224 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8225 else
8226 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8227 fi
8228
8229else
8230
8231 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8232 if test "x$LINE" != x ; then
8233 eval "DEFAULT_$LINE"
8234 else
8235 no_cache=1
8236 fi
8237
8238 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8239
8240fi;
8241
8242 eval "$ac_cv_use_radiobox"
8243 if test "$no_cache" != 1; then
8244 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8245 fi
8246
8247 if test "$wxUSE_RADIOBOX" = yes; then
8248 echo "$as_me:$LINENO: result: yes" >&5
8249echo "${ECHO_T}yes" >&6
8250 else
8251 echo "$as_me:$LINENO: result: no" >&5
8252echo "${ECHO_T}no" >&6
8253 fi
8254
8255
8256 enablestring=
8257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8258echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8259 no_cache=0
8260 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8261if test "${enable_radiobtn+set}" = set; then
8262 enableval="$enable_radiobtn"
8263
8264 if test "$enableval" = yes; then
8265 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8266 else
8267 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8268 fi
8269
8270else
8271
8272 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8273 if test "x$LINE" != x ; then
8274 eval "DEFAULT_$LINE"
8275 else
8276 no_cache=1
8277 fi
8278
8279 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8280
8281fi;
8282
8283 eval "$ac_cv_use_radiobtn"
8284 if test "$no_cache" != 1; then
8285 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8286 fi
8287
8288 if test "$wxUSE_RADIOBTN" = yes; then
8289 echo "$as_me:$LINENO: result: yes" >&5
8290echo "${ECHO_T}yes" >&6
8291 else
8292 echo "$as_me:$LINENO: result: no" >&5
8293echo "${ECHO_T}no" >&6
8294 fi
8295
8296
8297 enablestring=
8298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8299echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8300 no_cache=0
8301 # Check whether --enable-sash or --disable-sash was given.
8302if test "${enable_sash+set}" = set; then
8303 enableval="$enable_sash"
8304
8305 if test "$enableval" = yes; then
8306 ac_cv_use_sash='wxUSE_SASH=yes'
8307 else
8308 ac_cv_use_sash='wxUSE_SASH=no'
8309 fi
8310
8311else
8312
8313 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8314 if test "x$LINE" != x ; then
8315 eval "DEFAULT_$LINE"
8316 else
8317 no_cache=1
8318 fi
8319
8320 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8321
8322fi;
8323
8324 eval "$ac_cv_use_sash"
8325 if test "$no_cache" != 1; then
8326 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8327 fi
8328
8329 if test "$wxUSE_SASH" = yes; then
8330 echo "$as_me:$LINENO: result: yes" >&5
8331echo "${ECHO_T}yes" >&6
8332 else
8333 echo "$as_me:$LINENO: result: no" >&5
8334echo "${ECHO_T}no" >&6
8335 fi
8336
8337
8338 enablestring=
8339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8340echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8341 no_cache=0
8342 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8343if test "${enable_scrollbar+set}" = set; then
8344 enableval="$enable_scrollbar"
8345
8346 if test "$enableval" = yes; then
8347 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8348 else
8349 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8350 fi
8351
8352else
8353
8354 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8355 if test "x$LINE" != x ; then
8356 eval "DEFAULT_$LINE"
8357 else
8358 no_cache=1
8359 fi
8360
8361 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8362
8363fi;
8364
8365 eval "$ac_cv_use_scrollbar"
8366 if test "$no_cache" != 1; then
8367 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8368 fi
8369
8370 if test "$wxUSE_SCROLLBAR" = yes; then
8371 echo "$as_me:$LINENO: result: yes" >&5
8372echo "${ECHO_T}yes" >&6
8373 else
8374 echo "$as_me:$LINENO: result: no" >&5
8375echo "${ECHO_T}no" >&6
8376 fi
8377
8378
8379 enablestring=
8380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8381echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8382 no_cache=0
8383 # Check whether --enable-slider or --disable-slider was given.
8384if test "${enable_slider+set}" = set; then
8385 enableval="$enable_slider"
8386
8387 if test "$enableval" = yes; then
8388 ac_cv_use_slider='wxUSE_SLIDER=yes'
8389 else
8390 ac_cv_use_slider='wxUSE_SLIDER=no'
8391 fi
8392
8393else
8394
8395 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8396 if test "x$LINE" != x ; then
8397 eval "DEFAULT_$LINE"
8398 else
8399 no_cache=1
8400 fi
8401
8402 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8403
8404fi;
8405
8406 eval "$ac_cv_use_slider"
8407 if test "$no_cache" != 1; then
8408 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8409 fi
8410
8411 if test "$wxUSE_SLIDER" = yes; then
8412 echo "$as_me:$LINENO: result: yes" >&5
8413echo "${ECHO_T}yes" >&6
8414 else
8415 echo "$as_me:$LINENO: result: no" >&5
8416echo "${ECHO_T}no" >&6
8417 fi
8418
8419
8420 enablestring=
8421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8422echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8423 no_cache=0
8424 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8425if test "${enable_spinbtn+set}" = set; then
8426 enableval="$enable_spinbtn"
8427
8428 if test "$enableval" = yes; then
8429 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8430 else
8431 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8432 fi
8433
8434else
8435
8436 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8437 if test "x$LINE" != x ; then
8438 eval "DEFAULT_$LINE"
8439 else
8440 no_cache=1
8441 fi
8442
8443 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8444
8445fi;
8446
8447 eval "$ac_cv_use_spinbtn"
8448 if test "$no_cache" != 1; then
8449 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8450 fi
8451
8452 if test "$wxUSE_SPINBTN" = yes; then
8453 echo "$as_me:$LINENO: result: yes" >&5
8454echo "${ECHO_T}yes" >&6
8455 else
8456 echo "$as_me:$LINENO: result: no" >&5
8457echo "${ECHO_T}no" >&6
8458 fi
8459
8460
8461 enablestring=
8462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8463echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8464 no_cache=0
8465 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8466if test "${enable_spinctrl+set}" = set; then
8467 enableval="$enable_spinctrl"
8468
8469 if test "$enableval" = yes; then
8470 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8471 else
8472 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8473 fi
8474
8475else
8476
8477 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8478 if test "x$LINE" != x ; then
8479 eval "DEFAULT_$LINE"
8480 else
8481 no_cache=1
8482 fi
8483
8484 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8485
8486fi;
8487
8488 eval "$ac_cv_use_spinctrl"
8489 if test "$no_cache" != 1; then
8490 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8491 fi
8492
8493 if test "$wxUSE_SPINCTRL" = yes; then
8494 echo "$as_me:$LINENO: result: yes" >&5
8495echo "${ECHO_T}yes" >&6
8496 else
8497 echo "$as_me:$LINENO: result: no" >&5
8498echo "${ECHO_T}no" >&6
8499 fi
8500
8501
8502 enablestring=
8503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8504echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8505 no_cache=0
8506 # Check whether --enable-splitter or --disable-splitter was given.
8507if test "${enable_splitter+set}" = set; then
8508 enableval="$enable_splitter"
8509
8510 if test "$enableval" = yes; then
8511 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8512 else
8513 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8514 fi
8515
8516else
8517
8518 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8519 if test "x$LINE" != x ; then
8520 eval "DEFAULT_$LINE"
8521 else
8522 no_cache=1
8523 fi
8524
8525 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8526
8527fi;
8528
8529 eval "$ac_cv_use_splitter"
8530 if test "$no_cache" != 1; then
8531 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8532 fi
8533
8534 if test "$wxUSE_SPLITTER" = yes; then
8535 echo "$as_me:$LINENO: result: yes" >&5
8536echo "${ECHO_T}yes" >&6
8537 else
8538 echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6
8540 fi
8541
8542
8543 enablestring=
8544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8545echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8546 no_cache=0
8547 # Check whether --enable-statbmp or --disable-statbmp was given.
8548if test "${enable_statbmp+set}" = set; then
8549 enableval="$enable_statbmp"
8550
8551 if test "$enableval" = yes; then
8552 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8553 else
8554 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8555 fi
8556
8557else
8558
8559 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8560 if test "x$LINE" != x ; then
8561 eval "DEFAULT_$LINE"
8562 else
8563 no_cache=1
8564 fi
8565
8566 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8567
8568fi;
8569
8570 eval "$ac_cv_use_statbmp"
8571 if test "$no_cache" != 1; then
8572 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8573 fi
8574
8575 if test "$wxUSE_STATBMP" = yes; then
8576 echo "$as_me:$LINENO: result: yes" >&5
8577echo "${ECHO_T}yes" >&6
8578 else
8579 echo "$as_me:$LINENO: result: no" >&5
8580echo "${ECHO_T}no" >&6
8581 fi
8582
8583
8584 enablestring=
8585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8586echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8587 no_cache=0
8588 # Check whether --enable-statbox or --disable-statbox was given.
8589if test "${enable_statbox+set}" = set; then
8590 enableval="$enable_statbox"
8591
8592 if test "$enableval" = yes; then
8593 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8594 else
8595 ac_cv_use_statbox='wxUSE_STATBOX=no'
8596 fi
8597
8598else
8599
8600 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8601 if test "x$LINE" != x ; then
8602 eval "DEFAULT_$LINE"
8603 else
8604 no_cache=1
8605 fi
8606
8607 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8608
8609fi;
8610
8611 eval "$ac_cv_use_statbox"
8612 if test "$no_cache" != 1; then
8613 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8614 fi
8615
8616 if test "$wxUSE_STATBOX" = yes; then
8617 echo "$as_me:$LINENO: result: yes" >&5
8618echo "${ECHO_T}yes" >&6
8619 else
8620 echo "$as_me:$LINENO: result: no" >&5
8621echo "${ECHO_T}no" >&6
8622 fi
8623
8624
8625 enablestring=
8626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8627echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8628 no_cache=0
8629 # Check whether --enable-statline or --disable-statline was given.
8630if test "${enable_statline+set}" = set; then
8631 enableval="$enable_statline"
8632
8633 if test "$enableval" = yes; then
8634 ac_cv_use_statline='wxUSE_STATLINE=yes'
8635 else
8636 ac_cv_use_statline='wxUSE_STATLINE=no'
8637 fi
8638
8639else
8640
8641 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8642 if test "x$LINE" != x ; then
8643 eval "DEFAULT_$LINE"
8644 else
8645 no_cache=1
8646 fi
8647
8648 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8649
8650fi;
8651
8652 eval "$ac_cv_use_statline"
8653 if test "$no_cache" != 1; then
8654 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8655 fi
8656
8657 if test "$wxUSE_STATLINE" = yes; then
8658 echo "$as_me:$LINENO: result: yes" >&5
8659echo "${ECHO_T}yes" >&6
8660 else
8661 echo "$as_me:$LINENO: result: no" >&5
8662echo "${ECHO_T}no" >&6
8663 fi
8664
8665
8666 enablestring=
8667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8668echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8669 no_cache=0
8670 # Check whether --enable-stattext or --disable-stattext was given.
8671if test "${enable_stattext+set}" = set; then
8672 enableval="$enable_stattext"
8673
8674 if test "$enableval" = yes; then
8675 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8676 else
8677 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8678 fi
8679
8680else
8681
8682 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8683 if test "x$LINE" != x ; then
8684 eval "DEFAULT_$LINE"
8685 else
8686 no_cache=1
8687 fi
8688
8689 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8690
8691fi;
8692
8693 eval "$ac_cv_use_stattext"
8694 if test "$no_cache" != 1; then
8695 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8696 fi
8697
8698 if test "$wxUSE_STATTEXT" = yes; then
8699 echo "$as_me:$LINENO: result: yes" >&5
8700echo "${ECHO_T}yes" >&6
8701 else
8702 echo "$as_me:$LINENO: result: no" >&5
8703echo "${ECHO_T}no" >&6
8704 fi
8705
8706
8707 enablestring=
8708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8709echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8710 no_cache=0
8711 # Check whether --enable-statusbar or --disable-statusbar was given.
8712if test "${enable_statusbar+set}" = set; then
8713 enableval="$enable_statusbar"
8714
8715 if test "$enableval" = yes; then
8716 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8717 else
8718 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8719 fi
8720
8721else
8722
8723 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8724 if test "x$LINE" != x ; then
8725 eval "DEFAULT_$LINE"
8726 else
8727 no_cache=1
8728 fi
8729
8730 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8731
8732fi;
8733
8734 eval "$ac_cv_use_statusbar"
8735 if test "$no_cache" != 1; then
8736 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8737 fi
8738
8739 if test "$wxUSE_STATUSBAR" = yes; then
8740 echo "$as_me:$LINENO: result: yes" >&5
8741echo "${ECHO_T}yes" >&6
8742 else
8743 echo "$as_me:$LINENO: result: no" >&5
8744echo "${ECHO_T}no" >&6
8745 fi
8746
8747
8748 enablestring=
8749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8750echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8751 no_cache=0
8752 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8753if test "${enable_tabdialog+set}" = set; then
8754 enableval="$enable_tabdialog"
8755
8756 if test "$enableval" = yes; then
8757 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8758 else
8759 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8760 fi
8761
8762else
8763
8764 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8765 if test "x$LINE" != x ; then
8766 eval "DEFAULT_$LINE"
8767 else
8768 no_cache=1
8769 fi
8770
8771 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8772
8773fi;
8774
8775 eval "$ac_cv_use_tabdialog"
8776 if test "$no_cache" != 1; then
8777 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8778 fi
8779
8780 if test "$wxUSE_TABDIALOG" = yes; then
8781 echo "$as_me:$LINENO: result: yes" >&5
8782echo "${ECHO_T}yes" >&6
8783 else
8784 echo "$as_me:$LINENO: result: no" >&5
8785echo "${ECHO_T}no" >&6
8786 fi
8787
8788
8789 enablestring=
8790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8791echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8792 no_cache=0
8793 # Check whether --enable-textctrl or --disable-textctrl was given.
8794if test "${enable_textctrl+set}" = set; then
8795 enableval="$enable_textctrl"
8796
8797 if test "$enableval" = yes; then
8798 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8799 else
8800 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8801 fi
8802
8803else
8804
8805 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8806 if test "x$LINE" != x ; then
8807 eval "DEFAULT_$LINE"
8808 else
8809 no_cache=1
8810 fi
8811
8812 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8813
8814fi;
8815
8816 eval "$ac_cv_use_textctrl"
8817 if test "$no_cache" != 1; then
8818 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8819 fi
8820
8821 if test "$wxUSE_TEXTCTRL" = yes; then
8822 echo "$as_me:$LINENO: result: yes" >&5
8823echo "${ECHO_T}yes" >&6
8824 else
8825 echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6
8827 fi
8828
8829
8830 enablestring=
8831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8832echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8833 no_cache=0
8834 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8835if test "${enable_togglebtn+set}" = set; then
8836 enableval="$enable_togglebtn"
8837
8838 if test "$enableval" = yes; then
8839 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8840 else
8841 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8842 fi
8843
8844else
8845
8846 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8847 if test "x$LINE" != x ; then
8848 eval "DEFAULT_$LINE"
8849 else
8850 no_cache=1
8851 fi
8852
8853 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8854
8855fi;
8856
8857 eval "$ac_cv_use_togglebtn"
8858 if test "$no_cache" != 1; then
8859 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8860 fi
8861
8862 if test "$wxUSE_TOGGLEBTN" = yes; then
8863 echo "$as_me:$LINENO: result: yes" >&5
8864echo "${ECHO_T}yes" >&6
8865 else
8866 echo "$as_me:$LINENO: result: no" >&5
8867echo "${ECHO_T}no" >&6
8868 fi
8869
8870
8871 enablestring=
8872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8873echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8874 no_cache=0
8875 # Check whether --enable-toolbar or --disable-toolbar was given.
8876if test "${enable_toolbar+set}" = set; then
8877 enableval="$enable_toolbar"
8878
8879 if test "$enableval" = yes; then
8880 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8881 else
8882 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8883 fi
8884
8885else
8886
8887 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8888 if test "x$LINE" != x ; then
8889 eval "DEFAULT_$LINE"
8890 else
8891 no_cache=1
8892 fi
8893
8894 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8895
8896fi;
8897
8898 eval "$ac_cv_use_toolbar"
8899 if test "$no_cache" != 1; then
8900 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8901 fi
8902
8903 if test "$wxUSE_TOOLBAR" = yes; then
8904 echo "$as_me:$LINENO: result: yes" >&5
8905echo "${ECHO_T}yes" >&6
8906 else
8907 echo "$as_me:$LINENO: result: no" >&5
8908echo "${ECHO_T}no" >&6
8909 fi
8910
8911
8912 enablestring=
8913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8914echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8915 no_cache=0
8916 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8917if test "${enable_tbarnative+set}" = set; then
8918 enableval="$enable_tbarnative"
8919
8920 if test "$enableval" = yes; then
8921 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8922 else
8923 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8924 fi
8925
8926else
8927
8928 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8929 if test "x$LINE" != x ; then
8930 eval "DEFAULT_$LINE"
8931 else
8932 no_cache=1
8933 fi
8934
8935 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8936
8937fi;
8938
8939 eval "$ac_cv_use_tbarnative"
8940 if test "$no_cache" != 1; then
8941 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8942 fi
8943
8944 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8945 echo "$as_me:$LINENO: result: yes" >&5
8946echo "${ECHO_T}yes" >&6
8947 else
8948 echo "$as_me:$LINENO: result: no" >&5
8949echo "${ECHO_T}no" >&6
8950 fi
8951
8952
8953 enablestring=
8954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8955echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8956 no_cache=0
8957 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8958if test "${enable_tbarsmpl+set}" = set; then
8959 enableval="$enable_tbarsmpl"
8960
8961 if test "$enableval" = yes; then
8962 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8963 else
8964 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8965 fi
8966
8967else
8968
8969 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8970 if test "x$LINE" != x ; then
8971 eval "DEFAULT_$LINE"
8972 else
8973 no_cache=1
8974 fi
8975
8976 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8977
8978fi;
8979
8980 eval "$ac_cv_use_tbarsmpl"
8981 if test "$no_cache" != 1; then
8982 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8983 fi
8984
8985 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8986 echo "$as_me:$LINENO: result: yes" >&5
8987echo "${ECHO_T}yes" >&6
8988 else
8989 echo "$as_me:$LINENO: result: no" >&5
8990echo "${ECHO_T}no" >&6
8991 fi
8992
8993
0093c2fc
VZ
8994 enablestring=
8995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
8996echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
8997 no_cache=0
8998 # Check whether --enable-treebook or --disable-treebook was given.
8999if test "${enable_treebook+set}" = set; then
9000 enableval="$enable_treebook"
9001
9002 if test "$enableval" = yes; then
9003 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9004 else
9005 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9006 fi
9007
9008else
9009
9010 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9011 if test "x$LINE" != x ; then
9012 eval "DEFAULT_$LINE"
9013 else
9014 no_cache=1
9015 fi
9016
9017 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9018
9019fi;
9020
9021 eval "$ac_cv_use_treebook"
9022 if test "$no_cache" != 1; then
9023 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9024 fi
9025
9026 if test "$wxUSE_TREEBOOK" = yes; then
9027 echo "$as_me:$LINENO: result: yes" >&5
9028echo "${ECHO_T}yes" >&6
9029 else
9030 echo "$as_me:$LINENO: result: no" >&5
9031echo "${ECHO_T}no" >&6
9032 fi
9033
9034
a848cd7e
SC
9035 enablestring=
9036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9037echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9038 no_cache=0
9039 # Check whether --enable-treectrl or --disable-treectrl was given.
9040if test "${enable_treectrl+set}" = set; then
9041 enableval="$enable_treectrl"
9042
9043 if test "$enableval" = yes; then
9044 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9045 else
9046 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9047 fi
9048
9049else
9050
9051 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9052 if test "x$LINE" != x ; then
9053 eval "DEFAULT_$LINE"
9054 else
9055 no_cache=1
9056 fi
9057
9058 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9059
9060fi;
9061
9062 eval "$ac_cv_use_treectrl"
9063 if test "$no_cache" != 1; then
9064 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9065 fi
9066
9067 if test "$wxUSE_TREECTRL" = yes; then
9068 echo "$as_me:$LINENO: result: yes" >&5
9069echo "${ECHO_T}yes" >&6
9070 else
9071 echo "$as_me:$LINENO: result: no" >&5
9072echo "${ECHO_T}no" >&6
9073 fi
9074
9075
9076 enablestring=
9077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9078echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9079 no_cache=0
9080 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9081if test "${enable_tipwindow+set}" = set; then
9082 enableval="$enable_tipwindow"
9083
9084 if test "$enableval" = yes; then
9085 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9086 else
9087 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9088 fi
9089
9090else
9091
9092 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9093 if test "x$LINE" != x ; then
9094 eval "DEFAULT_$LINE"
9095 else
9096 no_cache=1
9097 fi
9098
9099 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9100
9101fi;
9102
9103 eval "$ac_cv_use_tipwindow"
9104 if test "$no_cache" != 1; then
9105 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9106 fi
9107
9108 if test "$wxUSE_TIPWINDOW" = yes; then
9109 echo "$as_me:$LINENO: result: yes" >&5
9110echo "${ECHO_T}yes" >&6
9111 else
9112 echo "$as_me:$LINENO: result: no" >&5
9113echo "${ECHO_T}no" >&6
9114 fi
9115
9116
9117 enablestring=
9118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9119echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9120 no_cache=0
9121 # Check whether --enable-popupwin or --disable-popupwin was given.
9122if test "${enable_popupwin+set}" = set; then
9123 enableval="$enable_popupwin"
9124
9125 if test "$enableval" = yes; then
9126 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9127 else
9128 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9129 fi
9130
9131else
9132
9133 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9134 if test "x$LINE" != x ; then
9135 eval "DEFAULT_$LINE"
9136 else
9137 no_cache=1
9138 fi
9139
9140 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9141
9142fi;
9143
9144 eval "$ac_cv_use_popupwin"
9145 if test "$no_cache" != 1; then
9146 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9147 fi
9148
9149 if test "$wxUSE_POPUPWIN" = yes; then
9150 echo "$as_me:$LINENO: result: yes" >&5
9151echo "${ECHO_T}yes" >&6
9152 else
9153 echo "$as_me:$LINENO: result: no" >&5
9154echo "${ECHO_T}no" >&6
9155 fi
9156
9157
9158
9159
9160 enablestring=
9161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9162echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9163 no_cache=0
9164 # Check whether --enable-commondlg or --disable-commondlg was given.
9165if test "${enable_commondlg+set}" = set; then
9166 enableval="$enable_commondlg"
9167
9168 if test "$enableval" = yes; then
9169 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9170 else
9171 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9172 fi
9173
9174else
9175
9176 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9177 if test "x$LINE" != x ; then
9178 eval "DEFAULT_$LINE"
9179 else
9180 no_cache=1
9181 fi
9182
9183 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9184
9185fi;
9186
9187 eval "$ac_cv_use_commondlg"
9188 if test "$no_cache" != 1; then
9189 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9190 fi
9191
9192 if test "$wxUSE_COMMONDLGS" = yes; then
9193 echo "$as_me:$LINENO: result: yes" >&5
9194echo "${ECHO_T}yes" >&6
9195 else
9196 echo "$as_me:$LINENO: result: no" >&5
9197echo "${ECHO_T}no" >&6
9198 fi
9199
9200
9201 enablestring=
9202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9203echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9204 no_cache=0
9205 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9206if test "${enable_choicedlg+set}" = set; then
9207 enableval="$enable_choicedlg"
9208
9209 if test "$enableval" = yes; then
9210 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9211 else
9212 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9213 fi
9214
9215else
9216
9217 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9218 if test "x$LINE" != x ; then
9219 eval "DEFAULT_$LINE"
9220 else
9221 no_cache=1
9222 fi
9223
9224 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9225
9226fi;
9227
9228 eval "$ac_cv_use_choicedlg"
9229 if test "$no_cache" != 1; then
9230 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9231 fi
9232
9233 if test "$wxUSE_CHOICEDLG" = yes; then
9234 echo "$as_me:$LINENO: result: yes" >&5
9235echo "${ECHO_T}yes" >&6
9236 else
9237 echo "$as_me:$LINENO: result: no" >&5
9238echo "${ECHO_T}no" >&6
9239 fi
9240
9241
9242 enablestring=
9243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9244echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9245 no_cache=0
9246 # Check whether --enable-coldlg or --disable-coldlg was given.
9247if test "${enable_coldlg+set}" = set; then
9248 enableval="$enable_coldlg"
9249
9250 if test "$enableval" = yes; then
9251 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9252 else
9253 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9254 fi
9255
9256else
9257
9258 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9259 if test "x$LINE" != x ; then
9260 eval "DEFAULT_$LINE"
9261 else
9262 no_cache=1
9263 fi
9264
9265 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9266
9267fi;
9268
9269 eval "$ac_cv_use_coldlg"
9270 if test "$no_cache" != 1; then
9271 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9272 fi
9273
9274 if test "$wxUSE_COLOURDLG" = yes; then
9275 echo "$as_me:$LINENO: result: yes" >&5
9276echo "${ECHO_T}yes" >&6
9277 else
9278 echo "$as_me:$LINENO: result: no" >&5
9279echo "${ECHO_T}no" >&6
9280 fi
9281
9282
9283 enablestring=
9284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9285echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9286 no_cache=0
9287 # Check whether --enable-filedlg or --disable-filedlg was given.
9288if test "${enable_filedlg+set}" = set; then
9289 enableval="$enable_filedlg"
9290
9291 if test "$enableval" = yes; then
9292 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9293 else
9294 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9295 fi
9296
9297else
9298
9299 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9300 if test "x$LINE" != x ; then
9301 eval "DEFAULT_$LINE"
9302 else
9303 no_cache=1
9304 fi
9305
9306 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9307
9308fi;
9309
9310 eval "$ac_cv_use_filedlg"
9311 if test "$no_cache" != 1; then
9312 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9313 fi
9314
9315 if test "$wxUSE_FILEDLG" = yes; then
9316 echo "$as_me:$LINENO: result: yes" >&5
9317echo "${ECHO_T}yes" >&6
9318 else
9319 echo "$as_me:$LINENO: result: no" >&5
9320echo "${ECHO_T}no" >&6
9321 fi
9322
9323
9324 enablestring=
9325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9326echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9327 no_cache=0
9328 # Check whether --enable-finddlg or --disable-finddlg was given.
9329if test "${enable_finddlg+set}" = set; then
9330 enableval="$enable_finddlg"
9331
9332 if test "$enableval" = yes; then
9333 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9334 else
9335 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9336 fi
9337
9338else
9339
9340 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9341 if test "x$LINE" != x ; then
9342 eval "DEFAULT_$LINE"
9343 else
9344 no_cache=1
9345 fi
9346
9347 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9348
9349fi;
9350
9351 eval "$ac_cv_use_finddlg"
9352 if test "$no_cache" != 1; then
9353 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9354 fi
9355
9356 if test "$wxUSE_FINDREPLDLG" = yes; then
9357 echo "$as_me:$LINENO: result: yes" >&5
9358echo "${ECHO_T}yes" >&6
9359 else
9360 echo "$as_me:$LINENO: result: no" >&5
9361echo "${ECHO_T}no" >&6
9362 fi
9363
9364
9365 enablestring=
9366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9367echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9368 no_cache=0
9369 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9370if test "${enable_fontdlg+set}" = set; then
9371 enableval="$enable_fontdlg"
9372
9373 if test "$enableval" = yes; then
9374 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9375 else
9376 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9377 fi
9378
9379else
9380
9381 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9382 if test "x$LINE" != x ; then
9383 eval "DEFAULT_$LINE"
9384 else
9385 no_cache=1
9386 fi
9387
9388 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9389
9390fi;
9391
9392 eval "$ac_cv_use_fontdlg"
9393 if test "$no_cache" != 1; then
9394 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9395 fi
9396
9397 if test "$wxUSE_FONTDLG" = yes; then
9398 echo "$as_me:$LINENO: result: yes" >&5
9399echo "${ECHO_T}yes" >&6
9400 else
9401 echo "$as_me:$LINENO: result: no" >&5
9402echo "${ECHO_T}no" >&6
9403 fi
9404
9405
9406 enablestring=
9407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9408echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9409 no_cache=0
9410 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9411if test "${enable_dirdlg+set}" = set; then
9412 enableval="$enable_dirdlg"
9413
9414 if test "$enableval" = yes; then
9415 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9416 else
9417 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9418 fi
9419
9420else
9421
9422 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9423 if test "x$LINE" != x ; then
9424 eval "DEFAULT_$LINE"
9425 else
9426 no_cache=1
9427 fi
9428
9429 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9430
9431fi;
9432
9433 eval "$ac_cv_use_dirdlg"
9434 if test "$no_cache" != 1; then
9435 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9436 fi
9437
9438 if test "$wxUSE_DIRDLG" = yes; then
9439 echo "$as_me:$LINENO: result: yes" >&5
9440echo "${ECHO_T}yes" >&6
9441 else
9442 echo "$as_me:$LINENO: result: no" >&5
9443echo "${ECHO_T}no" >&6
9444 fi
9445
9446
9447 enablestring=
9448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9449echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9450 no_cache=0
9451 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9452if test "${enable_msgdlg+set}" = set; then
9453 enableval="$enable_msgdlg"
9454
9455 if test "$enableval" = yes; then
9456 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9457 else
9458 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9459 fi
9460
9461else
9462
9463 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9464 if test "x$LINE" != x ; then
9465 eval "DEFAULT_$LINE"
9466 else
9467 no_cache=1
9468 fi
9469
9470 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9471
9472fi;
9473
9474 eval "$ac_cv_use_msgdlg"
9475 if test "$no_cache" != 1; then
9476 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9477 fi
9478
9479 if test "$wxUSE_MSGDLG" = yes; then
9480 echo "$as_me:$LINENO: result: yes" >&5
9481echo "${ECHO_T}yes" >&6
9482 else
9483 echo "$as_me:$LINENO: result: no" >&5
9484echo "${ECHO_T}no" >&6
9485 fi
9486
9487
9488 enablestring=
9489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9490echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9491 no_cache=0
9492 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9493if test "${enable_numberdlg+set}" = set; then
9494 enableval="$enable_numberdlg"
9495
9496 if test "$enableval" = yes; then
9497 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9498 else
9499 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9500 fi
9501
9502else
9503
9504 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9505 if test "x$LINE" != x ; then
9506 eval "DEFAULT_$LINE"
9507 else
9508 no_cache=1
9509 fi
9510
9511 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9512
9513fi;
9514
9515 eval "$ac_cv_use_numberdlg"
9516 if test "$no_cache" != 1; then
9517 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9518 fi
9519
9520 if test "$wxUSE_NUMBERDLG" = yes; then
9521 echo "$as_me:$LINENO: result: yes" >&5
9522echo "${ECHO_T}yes" >&6
9523 else
9524 echo "$as_me:$LINENO: result: no" >&5
9525echo "${ECHO_T}no" >&6
9526 fi
9527
9528
9529 enablestring=
9530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9531echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9532 no_cache=0
9533 # Check whether --enable-splash or --disable-splash was given.
9534if test "${enable_splash+set}" = set; then
9535 enableval="$enable_splash"
9536
9537 if test "$enableval" = yes; then
9538 ac_cv_use_splash='wxUSE_SPLASH=yes'
9539 else
9540 ac_cv_use_splash='wxUSE_SPLASH=no'
9541 fi
9542
9543else
9544
9545 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9546 if test "x$LINE" != x ; then
9547 eval "DEFAULT_$LINE"
9548 else
9549 no_cache=1
9550 fi
9551
9552 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9553
9554fi;
9555
9556 eval "$ac_cv_use_splash"
9557 if test "$no_cache" != 1; then
9558 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9559 fi
9560
9561 if test "$wxUSE_SPLASH" = yes; then
9562 echo "$as_me:$LINENO: result: yes" >&5
9563echo "${ECHO_T}yes" >&6
9564 else
9565 echo "$as_me:$LINENO: result: no" >&5
9566echo "${ECHO_T}no" >&6
9567 fi
9568
9569
9570 enablestring=
9571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9572echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9573 no_cache=0
9574 # Check whether --enable-textdlg or --disable-textdlg was given.
9575if test "${enable_textdlg+set}" = set; then
9576 enableval="$enable_textdlg"
9577
9578 if test "$enableval" = yes; then
9579 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9580 else
9581 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9582 fi
9583
9584else
9585
9586 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9587 if test "x$LINE" != x ; then
9588 eval "DEFAULT_$LINE"
9589 else
9590 no_cache=1
9591 fi
9592
9593 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9594
9595fi;
9596
9597 eval "$ac_cv_use_textdlg"
9598 if test "$no_cache" != 1; then
9599 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9600 fi
9601
9602 if test "$wxUSE_TEXTDLG" = yes; then
9603 echo "$as_me:$LINENO: result: yes" >&5
9604echo "${ECHO_T}yes" >&6
9605 else
9606 echo "$as_me:$LINENO: result: no" >&5
9607echo "${ECHO_T}no" >&6
9608 fi
9609
9610
9611 enablestring=
9612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9613echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9614 no_cache=0
9615 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9616if test "${enable_tipdlg+set}" = set; then
9617 enableval="$enable_tipdlg"
9618
9619 if test "$enableval" = yes; then
9620 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9621 else
9622 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9623 fi
9624
9625else
9626
9627 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9628 if test "x$LINE" != x ; then
9629 eval "DEFAULT_$LINE"
9630 else
9631 no_cache=1
9632 fi
9633
9634 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9635
9636fi;
9637
9638 eval "$ac_cv_use_tipdlg"
9639 if test "$no_cache" != 1; then
9640 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9641 fi
9642
9643 if test "$wxUSE_STARTUP_TIPS" = yes; then
9644 echo "$as_me:$LINENO: result: yes" >&5
9645echo "${ECHO_T}yes" >&6
9646 else
9647 echo "$as_me:$LINENO: result: no" >&5
9648echo "${ECHO_T}no" >&6
9649 fi
9650
9651
9652 enablestring=
9653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9654echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9655 no_cache=0
9656 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9657if test "${enable_progressdlg+set}" = set; then
9658 enableval="$enable_progressdlg"
9659
9660 if test "$enableval" = yes; then
9661 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9662 else
9663 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9664 fi
9665
9666else
9667
9668 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9669 if test "x$LINE" != x ; then
9670 eval "DEFAULT_$LINE"
9671 else
9672 no_cache=1
9673 fi
9674
9675 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9676
9677fi;
9678
9679 eval "$ac_cv_use_progressdlg"
9680 if test "$no_cache" != 1; then
9681 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9682 fi
9683
9684 if test "$wxUSE_PROGRESSDLG" = yes; then
9685 echo "$as_me:$LINENO: result: yes" >&5
9686echo "${ECHO_T}yes" >&6
9687 else
9688 echo "$as_me:$LINENO: result: no" >&5
9689echo "${ECHO_T}no" >&6
9690 fi
9691
9692
9693 enablestring=
9694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9695echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9696 no_cache=0
9697 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9698if test "${enable_wizarddlg+set}" = set; then
9699 enableval="$enable_wizarddlg"
9700
9701 if test "$enableval" = yes; then
9702 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9703 else
9704 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9705 fi
9706
9707else
9708
9709 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9710 if test "x$LINE" != x ; then
9711 eval "DEFAULT_$LINE"
9712 else
9713 no_cache=1
9714 fi
9715
9716 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9717
9718fi;
9719
9720 eval "$ac_cv_use_wizarddlg"
9721 if test "$no_cache" != 1; then
9722 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9723 fi
9724
9725 if test "$wxUSE_WIZARDDLG" = yes; then
9726 echo "$as_me:$LINENO: result: yes" >&5
9727echo "${ECHO_T}yes" >&6
9728 else
9729 echo "$as_me:$LINENO: result: no" >&5
9730echo "${ECHO_T}no" >&6
9731 fi
9732
9733
9734
9735
9736 enablestring=
9737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9738echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9739 no_cache=0
9740 # Check whether --enable-menus or --disable-menus was given.
9741if test "${enable_menus+set}" = set; then
9742 enableval="$enable_menus"
9743
9744 if test "$enableval" = yes; then
9745 ac_cv_use_menus='wxUSE_MENUS=yes'
9746 else
9747 ac_cv_use_menus='wxUSE_MENUS=no'
9748 fi
9749
9750else
9751
9752 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9753 if test "x$LINE" != x ; then
9754 eval "DEFAULT_$LINE"
9755 else
9756 no_cache=1
9757 fi
9758
9759 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9760
9761fi;
9762
9763 eval "$ac_cv_use_menus"
9764 if test "$no_cache" != 1; then
9765 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9766 fi
9767
9768 if test "$wxUSE_MENUS" = yes; then
9769 echo "$as_me:$LINENO: result: yes" >&5
9770echo "${ECHO_T}yes" >&6
9771 else
9772 echo "$as_me:$LINENO: result: no" >&5
9773echo "${ECHO_T}no" >&6
9774 fi
9775
9776
9777 enablestring=
9778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9779echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9780 no_cache=0
9781 # Check whether --enable-miniframe or --disable-miniframe was given.
9782if test "${enable_miniframe+set}" = set; then
9783 enableval="$enable_miniframe"
9784
9785 if test "$enableval" = yes; then
9786 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9787 else
9788 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9789 fi
9790
9791else
9792
9793 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9794 if test "x$LINE" != x ; then
9795 eval "DEFAULT_$LINE"
9796 else
9797 no_cache=1
9798 fi
9799
9800 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9801
9802fi;
9803
9804 eval "$ac_cv_use_miniframe"
9805 if test "$no_cache" != 1; then
9806 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9807 fi
9808
9809 if test "$wxUSE_MINIFRAME" = yes; then
9810 echo "$as_me:$LINENO: result: yes" >&5
9811echo "${ECHO_T}yes" >&6
9812 else
9813 echo "$as_me:$LINENO: result: no" >&5
9814echo "${ECHO_T}no" >&6
9815 fi
9816
9817
9818 enablestring=
9819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9820echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9821 no_cache=0
9822 # Check whether --enable-tooltips or --disable-tooltips was given.
9823if test "${enable_tooltips+set}" = set; then
9824 enableval="$enable_tooltips"
9825
9826 if test "$enableval" = yes; then
9827 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9828 else
9829 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9830 fi
9831
9832else
9833
9834 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9835 if test "x$LINE" != x ; then
9836 eval "DEFAULT_$LINE"
9837 else
9838 no_cache=1
9839 fi
9840
9841 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9842
9843fi;
9844
9845 eval "$ac_cv_use_tooltips"
9846 if test "$no_cache" != 1; then
9847 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9848 fi
9849
9850 if test "$wxUSE_TOOLTIPS" = yes; then
9851 echo "$as_me:$LINENO: result: yes" >&5
9852echo "${ECHO_T}yes" >&6
9853 else
9854 echo "$as_me:$LINENO: result: no" >&5
9855echo "${ECHO_T}no" >&6
9856 fi
9857
9858
9859 enablestring=
9860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9861echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9862 no_cache=0
9863 # Check whether --enable-splines or --disable-splines was given.
9864if test "${enable_splines+set}" = set; then
9865 enableval="$enable_splines"
9866
9867 if test "$enableval" = yes; then
9868 ac_cv_use_splines='wxUSE_SPLINES=yes'
9869 else
9870 ac_cv_use_splines='wxUSE_SPLINES=no'
9871 fi
9872
9873else
9874
9875 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9876 if test "x$LINE" != x ; then
9877 eval "DEFAULT_$LINE"
9878 else
9879 no_cache=1
9880 fi
9881
9882 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9883
9884fi;
9885
9886 eval "$ac_cv_use_splines"
9887 if test "$no_cache" != 1; then
9888 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9889 fi
9890
9891 if test "$wxUSE_SPLINES" = yes; then
9892 echo "$as_me:$LINENO: result: yes" >&5
9893echo "${ECHO_T}yes" >&6
9894 else
9895 echo "$as_me:$LINENO: result: no" >&5
9896echo "${ECHO_T}no" >&6
9897 fi
9898
9899
fbe2ca43
SN
9900 enablestring=
9901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9902echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9903 no_cache=0
9904 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9905if test "${enable_mousewheel+set}" = set; then
9906 enableval="$enable_mousewheel"
9907
9908 if test "$enableval" = yes; then
9909 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9910 else
9911 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9912 fi
9913
9914else
9915
9916 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9917 if test "x$LINE" != x ; then
9918 eval "DEFAULT_$LINE"
9919 else
9920 no_cache=1
9921 fi
9922
9923 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9924
9925fi;
9926
9927 eval "$ac_cv_use_mousewheel"
9928 if test "$no_cache" != 1; then
9929 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9930 fi
9931
9932 if test "$wxUSE_MOUSEWHEEL" = yes; then
9933 echo "$as_me:$LINENO: result: yes" >&5
9934echo "${ECHO_T}yes" >&6
9935 else
9936 echo "$as_me:$LINENO: result: no" >&5
9937echo "${ECHO_T}no" >&6
9938 fi
9939
9940
a848cd7e
SC
9941 enablestring=
9942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9943echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9944 no_cache=0
9945 # Check whether --enable-validators or --disable-validators was given.
9946if test "${enable_validators+set}" = set; then
9947 enableval="$enable_validators"
9948
9949 if test "$enableval" = yes; then
9950 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9951 else
9952 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9953 fi
9954
9955else
9956
9957 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9958 if test "x$LINE" != x ; then
9959 eval "DEFAULT_$LINE"
9960 else
9961 no_cache=1
9962 fi
9963
9964 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9965
9966fi;
9967
9968 eval "$ac_cv_use_validators"
9969 if test "$no_cache" != 1; then
9970 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9971 fi
9972
9973 if test "$wxUSE_VALIDATORS" = yes; then
9974 echo "$as_me:$LINENO: result: yes" >&5
9975echo "${ECHO_T}yes" >&6
9976 else
9977 echo "$as_me:$LINENO: result: no" >&5
9978echo "${ECHO_T}no" >&6
9979 fi
9980
9981
9982 enablestring=
9983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9984echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9985 no_cache=0
9986 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9987if test "${enable_busyinfo+set}" = set; then
9988 enableval="$enable_busyinfo"
9989
9990 if test "$enableval" = yes; then
9991 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9992 else
9993 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9994 fi
9995
9996else
9997
9998 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9999 if test "x$LINE" != x ; then
10000 eval "DEFAULT_$LINE"
10001 else
10002 no_cache=1
10003 fi
10004
10005 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10006
10007fi;
10008
10009 eval "$ac_cv_use_busyinfo"
10010 if test "$no_cache" != 1; then
10011 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10012 fi
10013
10014 if test "$wxUSE_BUSYINFO" = yes; then
10015 echo "$as_me:$LINENO: result: yes" >&5
10016echo "${ECHO_T}yes" >&6
10017 else
10018 echo "$as_me:$LINENO: result: no" >&5
10019echo "${ECHO_T}no" >&6
10020 fi
10021
10022
10023 enablestring=
10024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10025echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10026 no_cache=0
10027 # Check whether --enable-joystick or --disable-joystick was given.
10028if test "${enable_joystick+set}" = set; then
10029 enableval="$enable_joystick"
10030
10031 if test "$enableval" = yes; then
10032 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10033 else
10034 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10035 fi
10036
10037else
10038
10039 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10040 if test "x$LINE" != x ; then
10041 eval "DEFAULT_$LINE"
10042 else
10043 no_cache=1
10044 fi
10045
10046 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10047
10048fi;
10049
10050 eval "$ac_cv_use_joystick"
10051 if test "$no_cache" != 1; then
10052 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10053 fi
10054
10055 if test "$wxUSE_JOYSTICK" = yes; then
10056 echo "$as_me:$LINENO: result: yes" >&5
10057echo "${ECHO_T}yes" >&6
10058 else
10059 echo "$as_me:$LINENO: result: no" >&5
10060echo "${ECHO_T}no" >&6
10061 fi
10062
10063
10064 enablestring=
10065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10066echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10067 no_cache=0
10068 # Check whether --enable-metafile or --disable-metafile was given.
10069if test "${enable_metafile+set}" = set; then
10070 enableval="$enable_metafile"
10071
10072 if test "$enableval" = yes; then
10073 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10074 else
10075 ac_cv_use_metafile='wxUSE_METAFILE=no'
10076 fi
10077
10078else
10079
10080 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10081 if test "x$LINE" != x ; then
10082 eval "DEFAULT_$LINE"
10083 else
10084 no_cache=1
10085 fi
10086
10087 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10088
10089fi;
10090
10091 eval "$ac_cv_use_metafile"
10092 if test "$no_cache" != 1; then
10093 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10094 fi
10095
10096 if test "$wxUSE_METAFILE" = yes; then
10097 echo "$as_me:$LINENO: result: yes" >&5
10098echo "${ECHO_T}yes" >&6
10099 else
10100 echo "$as_me:$LINENO: result: no" >&5
10101echo "${ECHO_T}no" >&6
10102 fi
10103
10104
10105 enablestring=
10106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10107echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10108 no_cache=0
10109 # Check whether --enable-dragimage or --disable-dragimage was given.
10110if test "${enable_dragimage+set}" = set; then
10111 enableval="$enable_dragimage"
10112
10113 if test "$enableval" = yes; then
10114 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10115 else
10116 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10117 fi
10118
10119else
10120
10121 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10122 if test "x$LINE" != x ; then
10123 eval "DEFAULT_$LINE"
10124 else
10125 no_cache=1
10126 fi
10127
10128 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10129
10130fi;
10131
10132 eval "$ac_cv_use_dragimage"
10133 if test "$no_cache" != 1; then
10134 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10135 fi
10136
10137 if test "$wxUSE_DRAGIMAGE" = yes; then
10138 echo "$as_me:$LINENO: result: yes" >&5
10139echo "${ECHO_T}yes" >&6
10140 else
10141 echo "$as_me:$LINENO: result: no" >&5
10142echo "${ECHO_T}no" >&6
10143 fi
10144
10145
10146 enablestring=
10147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10148echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10149 no_cache=0
10150 # Check whether --enable-accessibility or --disable-accessibility was given.
10151if test "${enable_accessibility+set}" = set; then
10152 enableval="$enable_accessibility"
10153
10154 if test "$enableval" = yes; then
10155 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10156 else
10157 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10158 fi
10159
10160else
10161
10162 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10163 if test "x$LINE" != x ; then
10164 eval "DEFAULT_$LINE"
10165 else
10166 no_cache=1
10167 fi
10168
10169 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10170
10171fi;
10172
10173 eval "$ac_cv_use_accessibility"
10174 if test "$no_cache" != 1; then
10175 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10176 fi
10177
10178 if test "$wxUSE_ACCESSIBILITY" = yes; then
10179 echo "$as_me:$LINENO: result: yes" >&5
10180echo "${ECHO_T}yes" >&6
10181 else
10182 echo "$as_me:$LINENO: result: no" >&5
10183echo "${ECHO_T}no" >&6
10184 fi
10185
10186
38b4a946
VZ
10187if test "$wxUSE_MSW" = "1"; then
10188
10189 enablestring=
10190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10191echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10192 no_cache=0
10193 # Check whether --enable-dccache or --disable-dccache was given.
10194if test "${enable_dccache+set}" = set; then
10195 enableval="$enable_dccache"
10196
10197 if test "$enableval" = yes; then
10198 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10199 else
10200 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10201 fi
10202
10203else
10204
10205 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10206 if test "x$LINE" != x ; then
10207 eval "DEFAULT_$LINE"
10208 else
10209 no_cache=1
10210 fi
10211
10212 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10213
10214fi;
10215
10216 eval "$ac_cv_use_dccache"
10217 if test "$no_cache" != 1; then
10218 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10219 fi
10220
10221 if test "$wxUSE_DC_CACHEING" = yes; then
10222 echo "$as_me:$LINENO: result: yes" >&5
10223echo "${ECHO_T}yes" >&6
10224 else
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
10227 fi
10228
10229fi
10230
a848cd7e
SC
10231
10232
10233 enablestring=
10234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10235echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10236 no_cache=0
10237 # Check whether --enable-palette or --disable-palette was given.
10238if test "${enable_palette+set}" = set; then
10239 enableval="$enable_palette"
10240
10241 if test "$enableval" = yes; then
10242 ac_cv_use_palette='wxUSE_PALETTE=yes'
10243 else
10244 ac_cv_use_palette='wxUSE_PALETTE=no'
10245 fi
10246
10247else
10248
10249 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10250 if test "x$LINE" != x ; then
10251 eval "DEFAULT_$LINE"
10252 else
10253 no_cache=1
10254 fi
10255
10256 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10257
10258fi;
10259
10260 eval "$ac_cv_use_palette"
10261 if test "$no_cache" != 1; then
10262 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10263 fi
10264
10265 if test "$wxUSE_PALETTE" = yes; then
10266 echo "$as_me:$LINENO: result: yes" >&5
10267echo "${ECHO_T}yes" >&6
10268 else
10269 echo "$as_me:$LINENO: result: no" >&5
10270echo "${ECHO_T}no" >&6
10271 fi
10272
10273
10274 enablestring=
10275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10276echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10277 no_cache=0
10278 # Check whether --enable-image or --disable-image was given.
10279if test "${enable_image+set}" = set; then
10280 enableval="$enable_image"
10281
10282 if test "$enableval" = yes; then
10283 ac_cv_use_image='wxUSE_IMAGE=yes'
10284 else
10285 ac_cv_use_image='wxUSE_IMAGE=no'
10286 fi
10287
10288else
10289
10290 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10291 if test "x$LINE" != x ; then
10292 eval "DEFAULT_$LINE"
10293 else
10294 no_cache=1
10295 fi
10296
10297 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10298
10299fi;
10300
10301 eval "$ac_cv_use_image"
10302 if test "$no_cache" != 1; then
10303 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10304 fi
10305
10306 if test "$wxUSE_IMAGE" = yes; then
10307 echo "$as_me:$LINENO: result: yes" >&5
10308echo "${ECHO_T}yes" >&6
10309 else
10310 echo "$as_me:$LINENO: result: no" >&5
10311echo "${ECHO_T}no" >&6
10312 fi
10313
10314
10315 enablestring=
10316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10317echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10318 no_cache=0
10319 # Check whether --enable-gif or --disable-gif was given.
10320if test "${enable_gif+set}" = set; then
10321 enableval="$enable_gif"
10322
10323 if test "$enableval" = yes; then
10324 ac_cv_use_gif='wxUSE_GIF=yes'
10325 else
10326 ac_cv_use_gif='wxUSE_GIF=no'
10327 fi
10328
10329else
10330
10331 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10332 if test "x$LINE" != x ; then
10333 eval "DEFAULT_$LINE"
10334 else
10335 no_cache=1
10336 fi
10337
10338 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10339
10340fi;
10341
10342 eval "$ac_cv_use_gif"
10343 if test "$no_cache" != 1; then
10344 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10345 fi
10346
10347 if test "$wxUSE_GIF" = yes; then
10348 echo "$as_me:$LINENO: result: yes" >&5
10349echo "${ECHO_T}yes" >&6
10350 else
10351 echo "$as_me:$LINENO: result: no" >&5
10352echo "${ECHO_T}no" >&6
10353 fi
10354
10355
10356 enablestring=
10357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10358echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10359 no_cache=0
10360 # Check whether --enable-pcx or --disable-pcx was given.
10361if test "${enable_pcx+set}" = set; then
10362 enableval="$enable_pcx"
10363
10364 if test "$enableval" = yes; then
10365 ac_cv_use_pcx='wxUSE_PCX=yes'
10366 else
10367 ac_cv_use_pcx='wxUSE_PCX=no'
10368 fi
10369
10370else
10371
10372 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10373 if test "x$LINE" != x ; then
10374 eval "DEFAULT_$LINE"
10375 else
10376 no_cache=1
10377 fi
10378
10379 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10380
10381fi;
10382
10383 eval "$ac_cv_use_pcx"
10384 if test "$no_cache" != 1; then
10385 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10386 fi
10387
10388 if test "$wxUSE_PCX" = yes; then
10389 echo "$as_me:$LINENO: result: yes" >&5
10390echo "${ECHO_T}yes" >&6
10391 else
10392 echo "$as_me:$LINENO: result: no" >&5
10393echo "${ECHO_T}no" >&6
10394 fi
10395
10396
10397 enablestring=
10398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10399echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10400 no_cache=0
10401 # Check whether --enable-iff or --disable-iff was given.
10402if test "${enable_iff+set}" = set; then
10403 enableval="$enable_iff"
10404
10405 if test "$enableval" = yes; then
10406 ac_cv_use_iff='wxUSE_IFF=yes'
10407 else
10408 ac_cv_use_iff='wxUSE_IFF=no'
10409 fi
10410
10411else
10412
10413 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10414 if test "x$LINE" != x ; then
10415 eval "DEFAULT_$LINE"
10416 else
10417 no_cache=1
10418 fi
10419
10420 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10421
10422fi;
10423
10424 eval "$ac_cv_use_iff"
10425 if test "$no_cache" != 1; then
10426 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10427 fi
10428
10429 if test "$wxUSE_IFF" = yes; then
10430 echo "$as_me:$LINENO: result: yes" >&5
10431echo "${ECHO_T}yes" >&6
10432 else
10433 echo "$as_me:$LINENO: result: no" >&5
10434echo "${ECHO_T}no" >&6
10435 fi
10436
10437
10438 enablestring=
10439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10440echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10441 no_cache=0
10442 # Check whether --enable-pnm or --disable-pnm was given.
10443if test "${enable_pnm+set}" = set; then
10444 enableval="$enable_pnm"
10445
10446 if test "$enableval" = yes; then
10447 ac_cv_use_pnm='wxUSE_PNM=yes'
10448 else
10449 ac_cv_use_pnm='wxUSE_PNM=no'
10450 fi
10451
10452else
10453
10454 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10455 if test "x$LINE" != x ; then
10456 eval "DEFAULT_$LINE"
10457 else
10458 no_cache=1
10459 fi
10460
10461 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10462
10463fi;
10464
10465 eval "$ac_cv_use_pnm"
10466 if test "$no_cache" != 1; then
10467 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10468 fi
10469
10470 if test "$wxUSE_PNM" = yes; then
10471 echo "$as_me:$LINENO: result: yes" >&5
10472echo "${ECHO_T}yes" >&6
10473 else
10474 echo "$as_me:$LINENO: result: no" >&5
10475echo "${ECHO_T}no" >&6
10476 fi
10477
10478
10479 enablestring=
10480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10481echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10482 no_cache=0
10483 # Check whether --enable-xpm or --disable-xpm was given.
10484if test "${enable_xpm+set}" = set; then
10485 enableval="$enable_xpm"
10486
10487 if test "$enableval" = yes; then
10488 ac_cv_use_xpm='wxUSE_XPM=yes'
10489 else
10490 ac_cv_use_xpm='wxUSE_XPM=no'
10491 fi
10492
10493else
10494
10495 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10496 if test "x$LINE" != x ; then
10497 eval "DEFAULT_$LINE"
10498 else
10499 no_cache=1
10500 fi
10501
10502 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10503
10504fi;
10505
10506 eval "$ac_cv_use_xpm"
10507 if test "$no_cache" != 1; then
10508 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10509 fi
10510
10511 if test "$wxUSE_XPM" = yes; then
10512 echo "$as_me:$LINENO: result: yes" >&5
10513echo "${ECHO_T}yes" >&6
10514 else
10515 echo "$as_me:$LINENO: result: no" >&5
10516echo "${ECHO_T}no" >&6
10517 fi
10518
10519
10520 enablestring=
10521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10522echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10523 no_cache=0
10524 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10525if test "${enable_ico_cur+set}" = set; then
10526 enableval="$enable_ico_cur"
10527
10528 if test "$enableval" = yes; then
10529 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10530 else
10531 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10532 fi
10533
10534else
10535
10536 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10537 if test "x$LINE" != x ; then
10538 eval "DEFAULT_$LINE"
10539 else
10540 no_cache=1
10541 fi
10542
10543 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10544
10545fi;
10546
10547 eval "$ac_cv_use_ico_cur"
10548 if test "$no_cache" != 1; then
10549 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10550 fi
10551
10552 if test "$wxUSE_ICO_CUR" = yes; then
10553 echo "$as_me:$LINENO: result: yes" >&5
10554echo "${ECHO_T}yes" >&6
10555 else
10556 echo "$as_me:$LINENO: result: no" >&5
10557echo "${ECHO_T}no" >&6
10558 fi
10559
10560
10561fi
10562
10563
10564
ceec2216
RL
10565# Check whether --with-flavour or --without-flavour was given.
10566if test "${with_flavour+set}" = set; then
10567 withval="$with_flavour"
10568 WX_FLAVOUR="$withval"
10569fi;
10570
10571
10572
a848cd7e
SC
10573 enablestring=
10574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10575echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10576 no_cache=0
10577 # Check whether --enable-official_build or --disable-official_build was given.
10578if test "${enable_official_build+set}" = set; then
10579 enableval="$enable_official_build"
10580
10581 if test "$enableval" = yes; then
10582 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10583 else
10584 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10585 fi
10586
10587else
10588
10589 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10590 if test "x$LINE" != x ; then
10591 eval "DEFAULT_$LINE"
10592 else
10593 no_cache=1
10594 fi
10595
10596 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10597
10598fi;
10599
10600 eval "$ac_cv_use_official_build"
10601 if test "$no_cache" != 1; then
10602 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10603 fi
10604
10605 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10606 echo "$as_me:$LINENO: result: yes" >&5
10607echo "${ECHO_T}yes" >&6
10608 else
10609 echo "$as_me:$LINENO: result: no" >&5
10610echo "${ECHO_T}no" >&6
10611 fi
10612
10613# Check whether --enable-vendor or --disable-vendor was given.
10614if test "${enable_vendor+set}" = set; then
10615 enableval="$enable_vendor"
10616 VENDOR="$enableval"
10617fi;
10618if test "x$VENDOR" = "x"; then
10619 VENDOR="custom"
10620fi
10621
a848cd7e
SC
10622
10623
10624
10625 echo "saving argument cache $wx_arg_cache_file"
10626 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10627
10628
10629
10630echo "$as_me:$LINENO: checking for toolkit" >&5
10631echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10632
10633# In Wine, we need to default to MSW, not GTK or MOTIF
10634if test "$wxUSE_WINE" = "yes"; then
10635 DEFAULT_DEFAULT_wxUSE_GTK=0
10636 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10637 DEFAULT_DEFAULT_wxUSE_MSW=1
10638 wxUSE_SHARED=no
10639fi
10640
f597b41c 10641
a848cd7e
SC
10642if test "$wxUSE_GUI" = "yes"; then
10643
10644 if test "$USE_BEOS" = 1; then
10645 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10646echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10647 { (exit 1); exit 1; }; }
10648 fi
10649
10650 if test "$TOOLKIT_GIVEN" = 1; then
10651 for toolkit in `echo $ALL_TOOLKITS`; do
10652 var=wxUSE_$toolkit
10653 eval "value=\$${var}"
f34ca037
MW
10654 if test "x$value" = "xno"; then
10655 eval "$var=0"
10656 elif test "x$value" != "x"; then
10657 eval "$var=1"
10658 fi
10659
10660 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10661 eval "wx${toolkit}_VERSION=$value"
10662 fi
a848cd7e
SC
10663 done
10664 else
10665 for toolkit in `echo $ALL_TOOLKITS`; do
10666 if test "$has_toolkit_in_cache" != 1; then
10667 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10668 else
10669 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10670
10671 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10672 if test "x$version" != "x"; then
10673 eval "wx${toolkit}_VERSION=$version"
10674 fi
a848cd7e
SC
10675 fi
10676 eval "wxUSE_$toolkit=\$${var}"
10677 done
10678 fi
10679
10680 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10681 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10682 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10683
10684 case "${host}" in
10685 *-pc-os2_emx | *-pc-os2-emx )
10686 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10687 esac
10688
10689 case "$NUM_TOOLKITS" in
10690 1)
10691 ;;
10692 0)
10693 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10694echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10695 { (exit 1); exit 1; }; }
10696 ;;
10697 *)
10698 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10699echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10700 { (exit 1); exit 1; }; }
10701 esac
10702
f34ca037
MW
10703 # to be removed when --disable-gtk2 isn't needed
10704 if test "x$wxUSE_GTK2" = "xyes"; then
10705 wxGTK_VERSION=2
10706 elif test "x$wxUSE_GTK2" = "xno"; then
10707 wxGTK_VERSION=1
10708 fi
10709
a848cd7e
SC
10710 for toolkit in `echo $ALL_TOOLKITS`; do
10711 var=wxUSE_$toolkit
10712 eval "value=\$${var}"
10713 if test "x$value" != x; then
10714 cache_var=CACHE_$toolkit
10715 eval "cache=\$${cache_var}"
10716 if test "$cache" = 1; then
10717 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10718 eval "version=\$wx${toolkit}_VERSION"
10719 if test "x$version" != "x"; then
10720 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10721 fi
a848cd7e
SC
10722 fi
10723 if test "$value" = 1; then
10724 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10725 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10726echo "${ECHO_T}$toolkit_echo" >&6
10727 fi
10728 fi
10729 done
10730else
10731 if test "x$host_alias" != "x"; then
10732 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10733echo "${ECHO_T}base ($host_alias hosted) only" >&6
10734 else
10735 echo "$as_me:$LINENO: result: base only" >&5
10736echo "${ECHO_T}base only" >&6
10737 fi
10738fi
10739
10740wants_win32=0
10741doesnt_want_win32=0
10742case "${host}" in
10743 *-*-cygwin*)
10744 if test "$wxUSE_MSW" = 1 ; then
10745 wants_win32=1
7275146d 10746 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10747 else
10748 doesnt_want_win32=1
10749 fi
10750 ;;
10751 *-*-mingw*)
10752 wants_win32=1
10753 ;;
10754esac
10755
10756if test "$wxUSE_WINE" = "yes"; then
10757 wants_win32=1
10758 CC=winegcc
10759 CXX=wineg++
a848cd7e
SC
10760 LDFLAGS_GUI="-mwindows"
10761fi
10762
10763if test "$wants_win32" = 1 ; then
10764 USE_UNIX=0
10765 USE_WIN32=1
10766 cat >>confdefs.h <<\_ACEOF
10767#define __WIN32__ 1
10768_ACEOF
10769
10770 cat >>confdefs.h <<\_ACEOF
10771#define __WIN95__ 1
10772_ACEOF
10773
10774 cat >>confdefs.h <<\_ACEOF
10775#define __WINDOWS__ 1
10776_ACEOF
10777
10778 cat >>confdefs.h <<\_ACEOF
10779#define __GNUWIN32__ 1
10780_ACEOF
10781
10782 cat >>confdefs.h <<\_ACEOF
10783#define STRICT 1
10784_ACEOF
10785
10786 cat >>confdefs.h <<\_ACEOF
10787#define WINVER 0x0400
10788_ACEOF
10789
10790fi
10791if test "$doesnt_want_win32" = 1 ; then
10792 USE_UNIX=1
10793 USE_WIN32=0
10794fi
10795
10796if test "$USE_UNIX" = 1 ; then
10797 wxUSE_UNIX=yes
10798 cat >>confdefs.h <<\_ACEOF
10799#define __UNIX__ 1
10800_ACEOF
10801
10802fi
10803
10804
10805cat >confcache <<\_ACEOF
10806# This file is a shell script that caches the results of configure
10807# tests run on this system so they can be shared between configure
10808# scripts and configure runs, see configure's option --config-cache.
10809# It is not useful on other systems. If it contains results you don't
10810# want to keep, you may remove or edit it.
10811#
10812# config.status only pays attention to the cache file if you give it
10813# the --recheck option to rerun configure.
10814#
10815# `ac_cv_env_foo' variables (set or unset) will be overridden when
10816# loading this file, other *unset* `ac_cv_foo' will be assigned the
10817# following values.
10818
10819_ACEOF
10820
10821# The following way of writing the cache mishandles newlines in values,
10822# but we know of no workaround that is simple, portable, and efficient.
10823# So, don't put newlines in cache variables' values.
10824# Ultrix sh set writes to stderr and can't be redirected directly,
10825# and sets the high bit in the cache file unless we assign to the vars.
10826{
10827 (set) 2>&1 |
10828 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10829 *ac_space=\ *)
10830 # `set' does not quote correctly, so add quotes (double-quote
10831 # substitution turns \\\\ into \\, and sed turns \\ into \).
10832 sed -n \
ac1cb8d3
VS
10833 "s/'/'\\\\''/g;
10834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10835 ;;
10836 *)
10837 # `set' quotes correctly as required by POSIX, so do not add quotes.
10838 sed -n \
ac1cb8d3 10839 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10840 ;;
10841 esac;
10842} |
10843 sed '
10844 t clear
10845 : clear
10846 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10847 t end
10848 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10849 : end' >>confcache
10850if diff $cache_file confcache >/dev/null 2>&1; then :; else
10851 if test -w $cache_file; then
10852 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10853 cat confcache >$cache_file
10854 else
10855 echo "not updating unwritable cache $cache_file"
10856 fi
10857fi
10858rm -f confcache
10859
a848cd7e 10860CFLAGS=${CFLAGS:=}
6dcfc289
DE
10861
10862
3006edc0 10863
6dcfc289 10864 ac_ext=c
a848cd7e
SC
10865ac_cpp='$CPP $CPPFLAGS'
10866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10868ac_compiler_gnu=$ac_cv_c_compiler_gnu
10869if test -n "$ac_tool_prefix"; then
10870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10871set dummy ${ac_tool_prefix}gcc; ac_word=$2
10872echo "$as_me:$LINENO: checking for $ac_word" >&5
10873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10874if test "${ac_cv_prog_CC+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10876else
10877 if test -n "$CC"; then
10878 ac_cv_prog_CC="$CC" # Let the user override the test.
10879else
10880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881for as_dir in $PATH
10882do
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10890 fi
10891done
10892done
10893
10894fi
10895fi
10896CC=$ac_cv_prog_CC
10897if test -n "$CC"; then
10898 echo "$as_me:$LINENO: result: $CC" >&5
10899echo "${ECHO_T}$CC" >&6
10900else
10901 echo "$as_me:$LINENO: result: no" >&5
10902echo "${ECHO_T}no" >&6
10903fi
10904
10905fi
10906if test -z "$ac_cv_prog_CC"; then
10907 ac_ct_CC=$CC
10908 # Extract the first word of "gcc", so it can be a program name with args.
10909set dummy gcc; ac_word=$2
10910echo "$as_me:$LINENO: checking for $ac_word" >&5
10911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10912if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914else
10915 if test -n "$ac_ct_CC"; then
10916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10917else
10918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919for as_dir in $PATH
10920do
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10925 ac_cv_prog_ac_ct_CC="gcc"
10926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 break 2
10928 fi
10929done
10930done
10931
10932fi
10933fi
10934ac_ct_CC=$ac_cv_prog_ac_ct_CC
10935if test -n "$ac_ct_CC"; then
10936 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10937echo "${ECHO_T}$ac_ct_CC" >&6
10938else
10939 echo "$as_me:$LINENO: result: no" >&5
10940echo "${ECHO_T}no" >&6
10941fi
10942
10943 CC=$ac_ct_CC
10944else
10945 CC="$ac_cv_prog_CC"
10946fi
10947
10948if test -z "$CC"; then
10949 if test -n "$ac_tool_prefix"; then
10950 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10951set dummy ${ac_tool_prefix}cc; ac_word=$2
10952echo "$as_me:$LINENO: checking for $ac_word" >&5
10953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10954if test "${ac_cv_prog_CC+set}" = set; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10956else
10957 if test -n "$CC"; then
10958 ac_cv_prog_CC="$CC" # Let the user override the test.
10959else
10960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10961for as_dir in $PATH
10962do
10963 IFS=$as_save_IFS
10964 test -z "$as_dir" && as_dir=.
10965 for ac_exec_ext in '' $ac_executable_extensions; do
10966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10967 ac_cv_prog_CC="${ac_tool_prefix}cc"
10968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10969 break 2
10970 fi
10971done
10972done
10973
10974fi
10975fi
10976CC=$ac_cv_prog_CC
10977if test -n "$CC"; then
10978 echo "$as_me:$LINENO: result: $CC" >&5
10979echo "${ECHO_T}$CC" >&6
10980else
10981 echo "$as_me:$LINENO: result: no" >&5
10982echo "${ECHO_T}no" >&6
10983fi
10984
10985fi
10986if test -z "$ac_cv_prog_CC"; then
10987 ac_ct_CC=$CC
10988 # Extract the first word of "cc", so it can be a program name with args.
10989set dummy cc; ac_word=$2
10990echo "$as_me:$LINENO: checking for $ac_word" >&5
10991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994else
10995 if test -n "$ac_ct_CC"; then
10996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10997else
10998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999for as_dir in $PATH
11000do
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11005 ac_cv_prog_ac_ct_CC="cc"
11006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11008 fi
11009done
11010done
11011
11012fi
11013fi
11014ac_ct_CC=$ac_cv_prog_ac_ct_CC
11015if test -n "$ac_ct_CC"; then
11016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11017echo "${ECHO_T}$ac_ct_CC" >&6
11018else
11019 echo "$as_me:$LINENO: result: no" >&5
11020echo "${ECHO_T}no" >&6
11021fi
11022
11023 CC=$ac_ct_CC
11024else
11025 CC="$ac_cv_prog_CC"
11026fi
11027
11028fi
11029if test -z "$CC"; then
11030 # Extract the first word of "cc", so it can be a program name with args.
11031set dummy cc; ac_word=$2
11032echo "$as_me:$LINENO: checking for $ac_word" >&5
11033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11034if test "${ac_cv_prog_CC+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036else
11037 if test -n "$CC"; then
11038 ac_cv_prog_CC="$CC" # Let the user override the test.
11039else
11040 ac_prog_rejected=no
11041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042for as_dir in $PATH
11043do
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11049 ac_prog_rejected=yes
11050 continue
11051 fi
11052 ac_cv_prog_CC="cc"
11053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11054 break 2
11055 fi
11056done
11057done
11058
11059if test $ac_prog_rejected = yes; then
11060 # We found a bogon in the path, so make sure we never use it.
11061 set dummy $ac_cv_prog_CC
11062 shift
11063 if test $# != 0; then
11064 # We chose a different compiler from the bogus one.
11065 # However, it has the same basename, so the bogon will be chosen
11066 # first if we set CC to just the basename; use the full file name.
11067 shift
11068 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11069 fi
11070fi
11071fi
11072fi
11073CC=$ac_cv_prog_CC
11074if test -n "$CC"; then
11075 echo "$as_me:$LINENO: result: $CC" >&5
11076echo "${ECHO_T}$CC" >&6
11077else
11078 echo "$as_me:$LINENO: result: no" >&5
11079echo "${ECHO_T}no" >&6
11080fi
11081
11082fi
11083if test -z "$CC"; then
11084 if test -n "$ac_tool_prefix"; then
11085 for ac_prog in cl
11086 do
11087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11088set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11089echo "$as_me:$LINENO: checking for $ac_word" >&5
11090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11091if test "${ac_cv_prog_CC+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093else
11094 if test -n "$CC"; then
11095 ac_cv_prog_CC="$CC" # Let the user override the test.
11096else
11097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098for as_dir in $PATH
11099do
11100 IFS=$as_save_IFS
11101 test -z "$as_dir" && as_dir=.
11102 for ac_exec_ext in '' $ac_executable_extensions; do
11103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 break 2
11107 fi
11108done
11109done
11110
11111fi
11112fi
11113CC=$ac_cv_prog_CC
11114if test -n "$CC"; then
11115 echo "$as_me:$LINENO: result: $CC" >&5
11116echo "${ECHO_T}$CC" >&6
11117else
11118 echo "$as_me:$LINENO: result: no" >&5
11119echo "${ECHO_T}no" >&6
11120fi
11121
11122 test -n "$CC" && break
11123 done
11124fi
11125if test -z "$CC"; then
11126 ac_ct_CC=$CC
11127 for ac_prog in cl
11128do
11129 # Extract the first word of "$ac_prog", so it can be a program name with args.
11130set dummy $ac_prog; ac_word=$2
11131echo "$as_me:$LINENO: checking for $ac_word" >&5
11132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11133if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11135else
11136 if test -n "$ac_ct_CC"; then
11137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11138else
11139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140for as_dir in $PATH
11141do
11142 IFS=$as_save_IFS
11143 test -z "$as_dir" && as_dir=.
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11146 ac_cv_prog_ac_ct_CC="$ac_prog"
11147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11148 break 2
11149 fi
11150done
11151done
11152
11153fi
11154fi
11155ac_ct_CC=$ac_cv_prog_ac_ct_CC
11156if test -n "$ac_ct_CC"; then
11157 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11158echo "${ECHO_T}$ac_ct_CC" >&6
11159else
11160 echo "$as_me:$LINENO: result: no" >&5
11161echo "${ECHO_T}no" >&6
11162fi
11163
11164 test -n "$ac_ct_CC" && break
11165done
11166
11167 CC=$ac_ct_CC
11168fi
11169
11170fi
11171
11172
11173test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11174See \`config.log' for more details." >&5
11175echo "$as_me: error: no acceptable C compiler found in \$PATH
11176See \`config.log' for more details." >&2;}
11177 { (exit 1); exit 1; }; }
11178
11179# Provide some information about the compiler.
11180echo "$as_me:$LINENO:" \
11181 "checking for C compiler version" >&5
11182ac_compiler=`set X $ac_compile; echo $2`
11183{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11184 (eval $ac_compiler --version </dev/null >&5) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }
11188{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11189 (eval $ac_compiler -v </dev/null >&5) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }
11193{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11194 (eval $ac_compiler -V </dev/null >&5) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }
11198
11199cat >conftest.$ac_ext <<_ACEOF
11200/* confdefs.h. */
11201_ACEOF
11202cat confdefs.h >>conftest.$ac_ext
11203cat >>conftest.$ac_ext <<_ACEOF
11204/* end confdefs.h. */
11205
11206int
11207main ()
11208{
11209
11210 ;
11211 return 0;
11212}
11213_ACEOF
11214ac_clean_files_save=$ac_clean_files
11215ac_clean_files="$ac_clean_files a.out a.exe b.out"
11216# Try to create an executable without -o first, disregard a.out.
11217# It will help us diagnose broken compilers, and finding out an intuition
11218# of exeext.
ac1cb8d3
VS
11219echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11220echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11221ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11222if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11223 (eval $ac_link_default) 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; then
11227 # Find the output, starting from the most likely. This scheme is
11228# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11229# resort.
11230
11231# Be careful to initialize this variable, since it used to be cached.
11232# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11233ac_cv_exeext=
11234# b.out is created by i960 compilers.
11235for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11236do
11237 test -f "$ac_file" || continue
11238 case $ac_file in
11239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11240 ;;
a848cd7e 11241 conftest.$ac_ext )
ac1cb8d3
VS
11242 # This is the source file.
11243 ;;
a848cd7e 11244 [ab].out )
ac1cb8d3
VS
11245 # We found the default executable, but exeext='' is most
11246 # certainly right.
11247 break;;
a848cd7e 11248 *.* )
ac1cb8d3
VS
11249 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11250 # FIXME: I believe we export ac_cv_exeext for Libtool,
11251 # but it would be cool to find out if it's true. Does anybody
11252 # maintain Libtool? --akim.
11253 export ac_cv_exeext
11254 break;;
a848cd7e 11255 * )
ac1cb8d3 11256 break;;
a848cd7e
SC
11257 esac
11258done
11259else
11260 echo "$as_me: failed program was:" >&5
11261sed 's/^/| /' conftest.$ac_ext >&5
11262
11263{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11264See \`config.log' for more details." >&5
11265echo "$as_me: error: C compiler cannot create executables
11266See \`config.log' for more details." >&2;}
11267 { (exit 77); exit 77; }; }
11268fi
11269
11270ac_exeext=$ac_cv_exeext
11271echo "$as_me:$LINENO: result: $ac_file" >&5
11272echo "${ECHO_T}$ac_file" >&6
11273
11274# Check the compiler produces executables we can run. If not, either
11275# the compiler is broken, or we cross compile.
11276echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11277echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11278# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11279# If not cross compiling, check that we can run a simple program.
11280if test "$cross_compiling" != yes; then
11281 if { ac_try='./$ac_file'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 cross_compiling=no
11288 else
11289 if test "$cross_compiling" = maybe; then
11290 cross_compiling=yes
11291 else
11292 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11293If you meant to cross compile, use \`--host'.
11294See \`config.log' for more details." >&5
11295echo "$as_me: error: cannot run C compiled programs.
11296If you meant to cross compile, use \`--host'.
11297See \`config.log' for more details." >&2;}
11298 { (exit 1); exit 1; }; }
11299 fi
11300 fi
11301fi
11302echo "$as_me:$LINENO: result: yes" >&5
11303echo "${ECHO_T}yes" >&6
11304
11305rm -f a.out a.exe conftest$ac_cv_exeext b.out
11306ac_clean_files=$ac_clean_files_save
11307# Check the compiler produces executables we can run. If not, either
11308# the compiler is broken, or we cross compile.
11309echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11310echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11311echo "$as_me:$LINENO: result: $cross_compiling" >&5
11312echo "${ECHO_T}$cross_compiling" >&6
11313
11314echo "$as_me:$LINENO: checking for suffix of executables" >&5
11315echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317 (eval $ac_link) 2>&5
11318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; then
11321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11322# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11323# work properly (i.e., refer to `conftest.exe'), while it won't with
11324# `rm'.
11325for ac_file in conftest.exe conftest conftest.*; do
11326 test -f "$ac_file" || continue
11327 case $ac_file in
11328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11330 export ac_cv_exeext
11331 break;;
a848cd7e
SC
11332 * ) break;;
11333 esac
11334done
11335else
11336 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11337See \`config.log' for more details." >&5
11338echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11339See \`config.log' for more details." >&2;}
11340 { (exit 1); exit 1; }; }
11341fi
11342
11343rm -f conftest$ac_cv_exeext
11344echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11345echo "${ECHO_T}$ac_cv_exeext" >&6
11346
11347rm -f conftest.$ac_ext
11348EXEEXT=$ac_cv_exeext
11349ac_exeext=$EXEEXT
11350echo "$as_me:$LINENO: checking for suffix of object files" >&5
11351echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11352if test "${ac_cv_objext+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354else
11355 cat >conftest.$ac_ext <<_ACEOF
11356/* confdefs.h. */
11357_ACEOF
11358cat confdefs.h >>conftest.$ac_ext
11359cat >>conftest.$ac_ext <<_ACEOF
11360/* end confdefs.h. */
11361
11362int
11363main ()
11364{
11365
11366 ;
11367 return 0;
11368}
11369_ACEOF
11370rm -f conftest.o conftest.obj
11371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11372 (eval $ac_compile) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; then
11376 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11377 case $ac_file in
11378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11379 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11380 break;;
11381 esac
11382done
11383else
11384 echo "$as_me: failed program was:" >&5
11385sed 's/^/| /' conftest.$ac_ext >&5
11386
11387{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11388See \`config.log' for more details." >&5
11389echo "$as_me: error: cannot compute suffix of object files: cannot compile
11390See \`config.log' for more details." >&2;}
11391 { (exit 1); exit 1; }; }
11392fi
11393
11394rm -f conftest.$ac_cv_objext conftest.$ac_ext
11395fi
11396echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11397echo "${ECHO_T}$ac_cv_objext" >&6
11398OBJEXT=$ac_cv_objext
11399ac_objext=$OBJEXT
11400echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11401echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11402if test "${ac_cv_c_compiler_gnu+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404else
11405 cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411
11412int
11413main ()
11414{
11415#ifndef __GNUC__
11416 choke me
11417#endif
11418
11419 ;
11420 return 0;
11421}
11422_ACEOF
11423rm -f conftest.$ac_objext
11424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11425 (eval $ac_compile) 2>conftest.er1
a848cd7e 11426 ac_status=$?
ac1cb8d3
VS
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
a848cd7e
SC
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
5ff751d6 11432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; } &&
11438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 ac_compiler_gnu=yes
11445else
11446 echo "$as_me: failed program was:" >&5
11447sed 's/^/| /' conftest.$ac_ext >&5
11448
11449ac_compiler_gnu=no
11450fi
ac1cb8d3 11451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11452ac_cv_c_compiler_gnu=$ac_compiler_gnu
11453
11454fi
11455echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11456echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11457GCC=`test $ac_compiler_gnu = yes && echo yes`
11458ac_test_CFLAGS=${CFLAGS+set}
11459ac_save_CFLAGS=$CFLAGS
8aeeb05c 11460CFLAGS="-g"
a848cd7e
SC
11461echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11462echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11463if test "${ac_cv_prog_cc_g+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11465else
11466 cat >conftest.$ac_ext <<_ACEOF
11467/* confdefs.h. */
11468_ACEOF
11469cat confdefs.h >>conftest.$ac_ext
11470cat >>conftest.$ac_ext <<_ACEOF
11471/* end confdefs.h. */
11472
11473int
11474main ()
11475{
11476
11477 ;
11478 return 0;
11479}
11480_ACEOF
11481rm -f conftest.$ac_objext
11482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11483 (eval $ac_compile) 2>conftest.er1
a848cd7e 11484 ac_status=$?
ac1cb8d3
VS
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
a848cd7e
SC
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
5ff751d6 11490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; } &&
11496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; }; then
11502 ac_cv_prog_cc_g=yes
11503else
11504 echo "$as_me: failed program was:" >&5
11505sed 's/^/| /' conftest.$ac_ext >&5
11506
11507ac_cv_prog_cc_g=no
11508fi
ac1cb8d3 11509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11510fi
11511echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11512echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11513if test "$ac_test_CFLAGS" = set; then
11514 CFLAGS=$ac_save_CFLAGS
11515elif test $ac_cv_prog_cc_g = yes; then
11516 if test "$GCC" = yes; then
11517 CFLAGS="-g -O2"
11518 else
11519 CFLAGS="-g"
11520 fi
11521else
11522 if test "$GCC" = yes; then
11523 CFLAGS="-O2"
11524 else
11525 CFLAGS=
11526 fi
11527fi
11528echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11529echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11530if test "${ac_cv_prog_cc_stdc+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532else
11533 ac_cv_prog_cc_stdc=no
11534ac_save_CC=$CC
11535cat >conftest.$ac_ext <<_ACEOF
11536/* confdefs.h. */
11537_ACEOF
11538cat confdefs.h >>conftest.$ac_ext
11539cat >>conftest.$ac_ext <<_ACEOF
11540/* end confdefs.h. */
11541#include <stdarg.h>
11542#include <stdio.h>
11543#include <sys/types.h>
11544#include <sys/stat.h>
11545/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11546struct buf { int x; };
11547FILE * (*rcsopen) (struct buf *, struct stat *, int);
11548static char *e (p, i)
11549 char **p;
11550 int i;
11551{
11552 return p[i];
11553}
11554static char *f (char * (*g) (char **, int), char **p, ...)
11555{
11556 char *s;
11557 va_list v;
11558 va_start (v,p);
11559 s = g (p, va_arg (v,int));
11560 va_end (v);
11561 return s;
11562}
ac1cb8d3
VS
11563
11564/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11565 function prototypes and stuff, but not '\xHH' hex character constants.
11566 These don't provoke an error unfortunately, instead are silently treated
11567 as 'x'. The following induces an error, until -std1 is added to get
11568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11569 array size at least. It's necessary to write '\x00'==0 to get something
11570 that's true only with -std1. */
11571int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11572
a848cd7e
SC
11573int test (int i, double x);
11574struct s1 {int (*f) (int a);};
11575struct s2 {int (*f) (double a);};
11576int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11577int argc;
11578char **argv;
11579int
11580main ()
11581{
11582return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11583 ;
11584 return 0;
11585}
11586_ACEOF
11587# Don't try gcc -ansi; that turns off useful extensions and
11588# breaks some systems' header files.
11589# AIX -qlanglvl=ansi
11590# Ultrix and OSF/1 -std1
11591# HP-UX 10.20 and later -Ae
11592# HP-UX older versions -Aa -D_HPUX_SOURCE
11593# SVR4 -Xc -D__EXTENSIONS__
11594for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11595do
11596 CC="$ac_save_CC $ac_arg"
11597 rm -f conftest.$ac_objext
11598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11599 (eval $ac_compile) 2>conftest.er1
a848cd7e 11600 ac_status=$?
ac1cb8d3
VS
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
a848cd7e
SC
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
5ff751d6 11606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; } &&
11612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 ac_cv_prog_cc_stdc=$ac_arg
11619break
11620else
11621 echo "$as_me: failed program was:" >&5
11622sed 's/^/| /' conftest.$ac_ext >&5
11623
11624fi
ac1cb8d3 11625rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11626done
11627rm -f conftest.$ac_ext conftest.$ac_objext
11628CC=$ac_save_CC
11629
11630fi
11631
11632case "x$ac_cv_prog_cc_stdc" in
11633 x|xno)
11634 echo "$as_me:$LINENO: result: none needed" >&5
11635echo "${ECHO_T}none needed" >&6 ;;
11636 *)
11637 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11638echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11639 CC="$CC $ac_cv_prog_cc_stdc" ;;
11640esac
11641
11642# Some people use a C++ compiler to compile C. Since we use `exit',
11643# in C++ we need to declare it. In case someone uses the same compiler
11644# for both compiling C and C++ we need to have the C++ compiler decide
11645# the declaration of exit, since it's the most demanding environment.
11646cat >conftest.$ac_ext <<_ACEOF
11647#ifndef __cplusplus
11648 choke me
11649#endif
11650_ACEOF
11651rm -f conftest.$ac_objext
11652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11653 (eval $ac_compile) 2>conftest.er1
a848cd7e 11654 ac_status=$?
ac1cb8d3
VS
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
a848cd7e
SC
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
5ff751d6 11660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; } &&
11666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }; then
11672 for ac_declaration in \
ac1cb8d3 11673 '' \
a848cd7e
SC
11674 'extern "C" void std::exit (int) throw (); using std::exit;' \
11675 'extern "C" void std::exit (int); using std::exit;' \
11676 'extern "C" void exit (int) throw ();' \
11677 'extern "C" void exit (int);' \
11678 'void exit (int);'
11679do
11680 cat >conftest.$ac_ext <<_ACEOF
11681/* confdefs.h. */
11682_ACEOF
11683cat confdefs.h >>conftest.$ac_ext
11684cat >>conftest.$ac_ext <<_ACEOF
11685/* end confdefs.h. */
de59c161 11686$ac_declaration
ac1cb8d3 11687#include <stdlib.h>
a848cd7e
SC
11688int
11689main ()
11690{
11691exit (42);
11692 ;
11693 return 0;
11694}
11695_ACEOF
11696rm -f conftest.$ac_objext
11697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11698 (eval $ac_compile) 2>conftest.er1
a848cd7e 11699 ac_status=$?
ac1cb8d3
VS
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
a848cd7e
SC
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
5ff751d6 11705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 :
11718else
11719 echo "$as_me: failed program was:" >&5
11720sed 's/^/| /' conftest.$ac_ext >&5
11721
11722continue
11723fi
ac1cb8d3 11724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11725 cat >conftest.$ac_ext <<_ACEOF
11726/* confdefs.h. */
11727_ACEOF
11728cat confdefs.h >>conftest.$ac_ext
11729cat >>conftest.$ac_ext <<_ACEOF
11730/* end confdefs.h. */
11731$ac_declaration
11732int
11733main ()
11734{
11735exit (42);
11736 ;
11737 return 0;
11738}
11739_ACEOF
11740rm -f conftest.$ac_objext
11741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11742 (eval $ac_compile) 2>conftest.er1
a848cd7e 11743 ac_status=$?
ac1cb8d3
VS
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -f conftest.er1
11746 cat conftest.err >&5
a848cd7e
SC
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
5ff751d6 11749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; } &&
11755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 break
11762else
11763 echo "$as_me: failed program was:" >&5
11764sed 's/^/| /' conftest.$ac_ext >&5
11765
11766fi
ac1cb8d3 11767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11768done
11769rm -f conftest*
11770if test -n "$ac_declaration"; then
11771 echo '#ifdef __cplusplus' >>confdefs.h
11772 echo $ac_declaration >>confdefs.h
11773 echo '#endif' >>confdefs.h
11774fi
11775
11776else
11777 echo "$as_me: failed program was:" >&5
11778sed 's/^/| /' conftest.$ac_ext >&5
11779
11780fi
ac1cb8d3 11781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11782ac_ext=c
11783ac_cpp='$CPP $CPPFLAGS'
11784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11786ac_compiler_gnu=$ac_cv_c_compiler_gnu
11787
ab0ad5f1
VZ
11788
11789
11790 ac_ext=c
11791ac_cpp='$CPP $CPPFLAGS'
11792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11794ac_compiler_gnu=$ac_cv_c_compiler_gnu
11795
11796 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11797echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11798if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800else
11801 cat >conftest.$ac_ext <<_ACEOF
11802/* confdefs.h. */
11803_ACEOF
11804cat confdefs.h >>conftest.$ac_ext
11805cat >>conftest.$ac_ext <<_ACEOF
11806/* end confdefs.h. */
11807
11808int
11809main ()
11810{
11811
11812 #ifndef __INTEL_COMPILER
11813 choke me
11814 #endif
11815
11816 ;
11817 return 0;
11818}
11819_ACEOF
11820rm -f conftest.$ac_objext
11821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11822 (eval $ac_compile) 2>conftest.er1
11823 ac_status=$?
11824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
5ff751d6 11829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; } &&
11835 { ac_try='test -s conftest.$ac_objext'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11842else
11843 echo "$as_me: failed program was:" >&5
11844sed 's/^/| /' conftest.$ac_ext >&5
11845
11846bakefile_cv_c_compiler___INTEL_COMPILER=no
11847
11848fi
11849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11850
11851
11852fi
11853echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11854echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11855 ac_ext=c
11856ac_cpp='$CPP $CPPFLAGS'
11857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11859ac_compiler_gnu=$ac_cv_c_compiler_gnu
11860
11861 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11862 :; INTELCC=yes
11863 else
11864 :;
11865 fi
11866
11867
11868 if test "x$GCC" != "xyes"; then
3006edc0
VZ
11869 if test "xCC" = "xC"; then
11870 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 11871echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 11872if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11874else
11875 cat >conftest.$ac_ext <<_ACEOF
11876/* confdefs.h. */
11877_ACEOF
11878cat confdefs.h >>conftest.$ac_ext
11879cat >>conftest.$ac_ext <<_ACEOF
11880/* end confdefs.h. */
11881
11882int
11883main ()
11884{
11885
11886 ;
11887 return 0;
11888}
11889_ACEOF
11890rm -f conftest.$ac_objext conftest.$ac_ext.o
11891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11892 (eval $ac_compile) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; then
11896 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11897 case $ac_file in
11898 conftest.$ac_ext.o)
0093c2fc 11899 bakefile_cv_c_exto="-ext o"
480ccd21
DE
11900 ;;
11901 *)
11902 ;;
11903 esac
11904done
11905else
11906 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11907See \`config.log' for more details." >&5
11908echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11909See \`config.log' for more details." >&2;}
11910 { (exit 1); exit 1; }; }
11911
11912fi
11913
11914rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11915
11916fi
0093c2fc
VZ
11917echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
11918echo "${ECHO_T}$bakefile_cv_c_exto" >&6
11919if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 11920 if test "c" = "c"; then
0093c2fc 11921 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
11922 fi
11923 if test "c" = "cxx"; then
0093c2fc 11924 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
11925 fi
11926fi
11927
0093c2fc 11928 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
11929 unset ac_cv_prog_cc_g
11930 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11931ac_save_CFLAGS=$CFLAGS
8aeeb05c 11932CFLAGS="-g"
480ccd21
DE
11933echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11934echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11935if test "${ac_cv_prog_cc_g+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937else
11938 cat >conftest.$ac_ext <<_ACEOF
11939/* confdefs.h. */
11940_ACEOF
11941cat confdefs.h >>conftest.$ac_ext
11942cat >>conftest.$ac_ext <<_ACEOF
11943/* end confdefs.h. */
11944
11945int
11946main ()
11947{
11948
11949 ;
11950 return 0;
11951}
11952_ACEOF
11953rm -f conftest.$ac_objext
11954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>conftest.er1
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
5ff751d6 11962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11965 ac_status=$?
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; } &&
11968 { ac_try='test -s conftest.$ac_objext'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11971 ac_status=$?
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
11974 ac_cv_prog_cc_g=yes
11975else
11976 echo "$as_me: failed program was:" >&5
11977sed 's/^/| /' conftest.$ac_ext >&5
11978
11979ac_cv_prog_cc_g=no
11980fi
11981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11982fi
11983echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11984echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11985if test "$ac_test_CFLAGS" = set; then
11986 CFLAGS=$ac_save_CFLAGS
11987elif test $ac_cv_prog_cc_g = yes; then
11988 if test "$GCC" = yes; then
11989 CFLAGS="-g -O2"
11990 else
11991 CFLAGS="-g"
11992 fi
11993else
11994 if test "$GCC" = yes; then
11995 CFLAGS="-O2"
11996 else
11997 CFLAGS=
11998 fi
11999fi
3006edc0 12000 fi
ab0ad5f1 12001 fi
3006edc0
VZ
12002
12003 case `uname -s` in
12004 AIX*)
12005 ac_ext=c
12006ac_cpp='$CPP $CPPFLAGS'
12007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12009ac_compiler_gnu=$ac_cv_c_compiler_gnu
12010
12011echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12012echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12013if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015else
12016 cat >conftest.$ac_ext <<_ACEOF
12017/* confdefs.h. */
12018_ACEOF
12019cat confdefs.h >>conftest.$ac_ext
12020cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h. */
12022
12023int
12024main ()
12025{
12026#ifndef __xlC__
12027 choke me
12028#endif
12029
12030 ;
12031 return 0;
12032}
12033_ACEOF
12034rm -f conftest.$ac_objext
12035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12036 (eval $ac_compile) 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
5ff751d6 12043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; } &&
12049 { ac_try='test -s conftest.$ac_objext'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
0093c2fc 12055 bakefile_compiler_xlc=yes
3006edc0
VZ
12056else
12057 echo "$as_me: failed program was:" >&5
12058sed 's/^/| /' conftest.$ac_ext >&5
12059
0093c2fc 12060bakefile_compiler_xlc=no
3006edc0
VZ
12061fi
12062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12063 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12064
12065fi
0093c2fc
VZ
12066echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12067echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12068
0093c2fc 12069XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12070ac_ext=c
12071ac_cpp='$CPP $CPPFLAGS'
12072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12074ac_compiler_gnu=$ac_cv_c_compiler_gnu
12075
12076
12077 ;;
12078
12079 Darwin)
12080 ac_ext=c
95986553
DE
12081ac_cpp='$CPP $CPPFLAGS'
12082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12084ac_compiler_gnu=$ac_cv_c_compiler_gnu
12085
12086echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12087echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12088if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12090else
12091 cat >conftest.$ac_ext <<_ACEOF
12092/* confdefs.h. */
12093_ACEOF
12094cat confdefs.h >>conftest.$ac_ext
12095cat >>conftest.$ac_ext <<_ACEOF
12096/* end confdefs.h. */
12097
12098int
12099main ()
12100{
12101#ifndef __MWERKS__
12102 choke me
12103#endif
12104
12105 ;
12106 return 0;
12107}
12108_ACEOF
12109rm -f conftest.$ac_objext
12110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12111 (eval $ac_compile) 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
5ff751d6 12118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; } &&
12124 { ac_try='test -s conftest.$ac_objext'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 bakefile_compiler_mwerks=yes
12131else
12132 echo "$as_me: failed program was:" >&5
12133sed 's/^/| /' conftest.$ac_ext >&5
12134
12135bakefile_compiler_mwerks=no
12136fi
12137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12138 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12139
12140fi
12141echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12142echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12143
0e6fa1d9 12144MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12145ac_ext=c
12146ac_cpp='$CPP $CPPFLAGS'
12147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12149ac_compiler_gnu=$ac_cv_c_compiler_gnu
12150
12151
3006edc0 12152 ac_ext=c
9273ffba
DE
12153ac_cpp='$CPP $CPPFLAGS'
12154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12156ac_compiler_gnu=$ac_cv_c_compiler_gnu
12157
12158echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12159echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12160if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162else
12163 cat >conftest.$ac_ext <<_ACEOF
12164/* confdefs.h. */
12165_ACEOF
12166cat confdefs.h >>conftest.$ac_ext
12167cat >>conftest.$ac_ext <<_ACEOF
12168/* end confdefs.h. */
12169
12170int
12171main ()
12172{
12173#ifndef __xlC__
12174 choke me
12175#endif
12176
12177 ;
12178 return 0;
12179}
12180_ACEOF
12181rm -f conftest.$ac_objext
12182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12183 (eval $ac_compile) 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
5ff751d6 12190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
0093c2fc 12202 bakefile_compiler_xlc=yes
9273ffba
DE
12203else
12204 echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
12206
0093c2fc 12207bakefile_compiler_xlc=no
9273ffba
DE
12208fi
12209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12210 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12211
12212fi
0093c2fc
VZ
12213echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12214echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12215
0093c2fc 12216XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12217ac_ext=c
12218ac_cpp='$CPP $CPPFLAGS'
12219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221ac_compiler_gnu=$ac_cv_c_compiler_gnu
12222
12223
3006edc0
VZ
12224 ;;
12225
12226 IRIX*)
a848cd7e 12227
6dcfc289 12228
0ad5d837
VZ
12229 ac_ext=c
12230ac_cpp='$CPP $CPPFLAGS'
12231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12233ac_compiler_gnu=$ac_cv_c_compiler_gnu
12234
12235 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12236echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12237if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12238 echo $ECHO_N "(cached) $ECHO_C" >&6
12239else
12240 cat >conftest.$ac_ext <<_ACEOF
12241/* confdefs.h. */
12242_ACEOF
12243cat confdefs.h >>conftest.$ac_ext
12244cat >>conftest.$ac_ext <<_ACEOF
12245/* end confdefs.h. */
12246
12247int
12248main ()
12249{
12250
12251 #ifndef _SGI_COMPILER_VERSION
12252 choke me
12253 #endif
12254
12255 ;
12256 return 0;
12257}
12258_ACEOF
12259rm -f conftest.$ac_objext
12260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12261 (eval $ac_compile) 2>conftest.er1
12262 ac_status=$?
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
5ff751d6 12268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest.$ac_objext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12281else
12282 echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
12285bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12286
12287fi
12288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12289
12290
12291fi
12292echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12293echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12294 ac_ext=c
12295ac_cpp='$CPP $CPPFLAGS'
12296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12298ac_compiler_gnu=$ac_cv_c_compiler_gnu
12299
12300 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12301 :; SGICC=yes
12302 else
12303 :;
12304 fi
12305
12306
3006edc0
VZ
12307 ;;
12308
0093c2fc 12309 HP-UX*)
3006edc0
VZ
12310
12311
12312 ac_ext=c
12313ac_cpp='$CPP $CPPFLAGS'
12314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12316ac_compiler_gnu=$ac_cv_c_compiler_gnu
12317
0093c2fc
VZ
12318 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12319echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12320if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322else
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
12330int
12331main ()
12332{
12333
0093c2fc 12334 #ifndef __HP_cc
3006edc0
VZ
12335 choke me
12336 #endif
12337
12338 ;
12339 return 0;
12340}
12341_ACEOF
12342rm -f conftest.$ac_objext
12343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344 (eval $ac_compile) 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
5ff751d6 12351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest.$ac_objext'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
0093c2fc 12363 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12364else
12365 echo "$as_me: failed program was:" >&5
12366sed 's/^/| /' conftest.$ac_ext >&5
12367
0093c2fc 12368bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12369
12370fi
12371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12372
12373
12374fi
0093c2fc
VZ
12375echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12376echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12377 ac_ext=c
12378ac_cpp='$CPP $CPPFLAGS'
12379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12381ac_compiler_gnu=$ac_cv_c_compiler_gnu
12382
0093c2fc
VZ
12383 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12384 :; HPCC=yes
a1aa0349
VZ
12385 else
12386 :;
12387 fi
12388
12389
12390 ;;
12391
0093c2fc 12392 OSF1)
a1aa0349
VZ
12393
12394
12395 ac_ext=c
12396ac_cpp='$CPP $CPPFLAGS'
12397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12399ac_compiler_gnu=$ac_cv_c_compiler_gnu
12400
0093c2fc
VZ
12401 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12402echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12403if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12405else
12406 cat >conftest.$ac_ext <<_ACEOF
12407/* confdefs.h. */
12408_ACEOF
12409cat confdefs.h >>conftest.$ac_ext
12410cat >>conftest.$ac_ext <<_ACEOF
12411/* end confdefs.h. */
12412
12413int
12414main ()
12415{
12416
0093c2fc 12417 #ifndef __DECC
a1aa0349
VZ
12418 choke me
12419 #endif
12420
12421 ;
12422 return 0;
12423}
12424_ACEOF
12425rm -f conftest.$ac_objext
12426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427 (eval $ac_compile) 2>conftest.er1
12428 ac_status=$?
12429 grep -v '^ *+' conftest.er1 >conftest.err
12430 rm -f conftest.er1
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
5ff751d6 12434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest.$ac_objext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
0093c2fc 12446 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12447else
12448 echo "$as_me: failed program was:" >&5
12449sed 's/^/| /' conftest.$ac_ext >&5
12450
0093c2fc 12451bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12452
12453fi
12454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12455
12456
12457fi
0093c2fc
VZ
12458echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12459echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12460 ac_ext=c
12461ac_cpp='$CPP $CPPFLAGS'
12462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12464ac_compiler_gnu=$ac_cv_c_compiler_gnu
12465
0093c2fc
VZ
12466 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12467 :; COMPAQCC=yes
12468 else
12469 :;
12470 fi
12471
12472
12473 ;;
12474
12475 SunOS)
12476
12477
12478 ac_ext=c
12479ac_cpp='$CPP $CPPFLAGS'
12480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12482ac_compiler_gnu=$ac_cv_c_compiler_gnu
12483
12484 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12485echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12486if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488else
12489 cat >conftest.$ac_ext <<_ACEOF
12490/* confdefs.h. */
12491_ACEOF
12492cat confdefs.h >>conftest.$ac_ext
12493cat >>conftest.$ac_ext <<_ACEOF
12494/* end confdefs.h. */
12495
12496int
12497main ()
12498{
12499
12500 #ifndef __SUNPRO_C
12501 choke me
12502 #endif
12503
12504 ;
12505 return 0;
12506}
12507_ACEOF
12508rm -f conftest.$ac_objext
12509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510 (eval $ac_compile) 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
5ff751d6 12517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; } &&
12523 { ac_try='test -s conftest.$ac_objext'
12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12526 ac_status=$?
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; }; then
12529 bakefile_cv_c_compiler___SUNPRO_C=yes
12530else
12531 echo "$as_me: failed program was:" >&5
12532sed 's/^/| /' conftest.$ac_ext >&5
12533
12534bakefile_cv_c_compiler___SUNPRO_C=no
12535
12536fi
12537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12538
12539
12540fi
12541echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12542echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12543 ac_ext=c
12544ac_cpp='$CPP $CPPFLAGS'
12545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12547ac_compiler_gnu=$ac_cv_c_compiler_gnu
12548
12549 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12550 :; SUNCC=yes
3006edc0
VZ
12551 else
12552 :;
12553 fi
12554
12555
12556 ;;
12557 esac
ab0ad5f1 12558 fi
a9e5b1f0
MW
12559
12560
3006edc0 12561
a848cd7e
SC
12562ac_ext=c
12563ac_cpp='$CPP $CPPFLAGS'
12564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12566ac_compiler_gnu=$ac_cv_c_compiler_gnu
12567echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12568echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12569# On Suns, sometimes $CPP names a directory.
12570if test -n "$CPP" && test -d "$CPP"; then
12571 CPP=
12572fi
12573if test -z "$CPP"; then
12574 if test "${ac_cv_prog_CPP+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12576else
12577 # Double quotes because CPP needs to be expanded
12578 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12579 do
12580 ac_preproc_ok=false
12581for ac_c_preproc_warn_flag in '' yes
12582do
12583 # Use a header file that comes with gcc, so configuring glibc
12584 # with a fresh cross-compiler works.
12585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12586 # <limits.h> exists even on freestanding compilers.
12587 # On the NeXT, cc -E runs the code through the compiler's parser,
12588 # not just through cpp. "Syntax error" is here to catch this case.
12589 cat >conftest.$ac_ext <<_ACEOF
12590/* confdefs.h. */
12591_ACEOF
12592cat confdefs.h >>conftest.$ac_ext
12593cat >>conftest.$ac_ext <<_ACEOF
12594/* end confdefs.h. */
12595#ifdef __STDC__
12596# include <limits.h>
12597#else
12598# include <assert.h>
12599#endif
ac1cb8d3 12600 Syntax error
a848cd7e
SC
12601_ACEOF
12602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } >/dev/null; then
12610 if test -s conftest.err; then
12611 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12613 else
12614 ac_cpp_err=
12615 fi
12616else
12617 ac_cpp_err=yes
12618fi
12619if test -z "$ac_cpp_err"; then
12620 :
12621else
12622 echo "$as_me: failed program was:" >&5
12623sed 's/^/| /' conftest.$ac_ext >&5
12624
12625 # Broken: fails on valid input.
12626continue
12627fi
12628rm -f conftest.err conftest.$ac_ext
12629
12630 # OK, works on sane cases. Now check whether non-existent headers
12631 # can be detected and how.
12632 cat >conftest.$ac_ext <<_ACEOF
12633/* confdefs.h. */
12634_ACEOF
12635cat confdefs.h >>conftest.$ac_ext
12636cat >>conftest.$ac_ext <<_ACEOF
12637/* end confdefs.h. */
12638#include <ac_nonexistent.h>
12639_ACEOF
12640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } >/dev/null; then
12648 if test -s conftest.err; then
12649 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12651 else
12652 ac_cpp_err=
12653 fi
12654else
12655 ac_cpp_err=yes
12656fi
12657if test -z "$ac_cpp_err"; then
12658 # Broken: success on invalid input.
12659continue
12660else
12661 echo "$as_me: failed program was:" >&5
12662sed 's/^/| /' conftest.$ac_ext >&5
12663
12664 # Passes both tests.
12665ac_preproc_ok=:
12666break
12667fi
12668rm -f conftest.err conftest.$ac_ext
12669
12670done
12671# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12672rm -f conftest.err conftest.$ac_ext
12673if $ac_preproc_ok; then
12674 break
12675fi
12676
12677 done
12678 ac_cv_prog_CPP=$CPP
12679
12680fi
12681 CPP=$ac_cv_prog_CPP
12682else
12683 ac_cv_prog_CPP=$CPP
12684fi
12685echo "$as_me:$LINENO: result: $CPP" >&5
12686echo "${ECHO_T}$CPP" >&6
12687ac_preproc_ok=false
12688for ac_c_preproc_warn_flag in '' yes
12689do
12690 # Use a header file that comes with gcc, so configuring glibc
12691 # with a fresh cross-compiler works.
12692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12693 # <limits.h> exists even on freestanding compilers.
12694 # On the NeXT, cc -E runs the code through the compiler's parser,
12695 # not just through cpp. "Syntax error" is here to catch this case.
12696 cat >conftest.$ac_ext <<_ACEOF
12697/* confdefs.h. */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h. */
12702#ifdef __STDC__
12703# include <limits.h>
12704#else
12705# include <assert.h>
12706#endif
ac1cb8d3 12707 Syntax error
a848cd7e
SC
12708_ACEOF
12709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12711 ac_status=$?
12712 grep -v '^ *+' conftest.er1 >conftest.err
12713 rm -f conftest.er1
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } >/dev/null; then
12717 if test -s conftest.err; then
12718 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12720 else
12721 ac_cpp_err=
12722 fi
12723else
12724 ac_cpp_err=yes
12725fi
12726if test -z "$ac_cpp_err"; then
12727 :
12728else
12729 echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
12732 # Broken: fails on valid input.
12733continue
12734fi
12735rm -f conftest.err conftest.$ac_ext
12736
12737 # OK, works on sane cases. Now check whether non-existent headers
12738 # can be detected and how.
12739 cat >conftest.$ac_ext <<_ACEOF
12740/* confdefs.h. */
12741_ACEOF
12742cat confdefs.h >>conftest.$ac_ext
12743cat >>conftest.$ac_ext <<_ACEOF
12744/* end confdefs.h. */
12745#include <ac_nonexistent.h>
12746_ACEOF
12747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } >/dev/null; then
12755 if test -s conftest.err; then
12756 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12758 else
12759 ac_cpp_err=
12760 fi
12761else
12762 ac_cpp_err=yes
12763fi
12764if test -z "$ac_cpp_err"; then
12765 # Broken: success on invalid input.
12766continue
12767else
12768 echo "$as_me: failed program was:" >&5
12769sed 's/^/| /' conftest.$ac_ext >&5
12770
12771 # Passes both tests.
12772ac_preproc_ok=:
12773break
12774fi
12775rm -f conftest.err conftest.$ac_ext
12776
12777done
12778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12779rm -f conftest.err conftest.$ac_ext
12780if $ac_preproc_ok; then
12781 :
12782else
12783 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12784See \`config.log' for more details." >&5
12785echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12786See \`config.log' for more details." >&2;}
12787 { (exit 1); exit 1; }; }
12788fi
12789
12790ac_ext=c
12791ac_cpp='$CPP $CPPFLAGS'
12792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12794ac_compiler_gnu=$ac_cv_c_compiler_gnu
12795
12796
12797echo "$as_me:$LINENO: checking for egrep" >&5
12798echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12799if test "${ac_cv_prog_egrep+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12801else
12802 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12803 then ac_cv_prog_egrep='grep -E'
12804 else ac_cv_prog_egrep='egrep'
12805 fi
12806fi
12807echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12808echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12809 EGREP=$ac_cv_prog_egrep
12810
12811
12812if test $ac_cv_c_compiler_gnu = yes; then
12813 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12814echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12815if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12816 echo $ECHO_N "(cached) $ECHO_C" >&6
12817else
12818 ac_pattern="Autoconf.*'x'"
12819 cat >conftest.$ac_ext <<_ACEOF
12820/* confdefs.h. */
12821_ACEOF
12822cat confdefs.h >>conftest.$ac_ext
12823cat >>conftest.$ac_ext <<_ACEOF
12824/* end confdefs.h. */
12825#include <sgtty.h>
12826Autoconf TIOCGETP
12827_ACEOF
12828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12829 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12830 ac_cv_prog_gcc_traditional=yes
12831else
12832 ac_cv_prog_gcc_traditional=no
12833fi
12834rm -f conftest*
12835
12836
12837 if test $ac_cv_prog_gcc_traditional = no; then
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#include <termio.h>
12845Autoconf TCGETA
12846_ACEOF
12847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12848 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12849 ac_cv_prog_gcc_traditional=yes
12850fi
12851rm -f conftest*
12852
12853 fi
12854fi
12855echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12856echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12857 if test $ac_cv_prog_gcc_traditional = yes; then
12858 CC="$CC -traditional"
12859 fi
12860fi
12861
12862
12863
12864
12865ac_ext=cc
12866ac_cpp='$CXXCPP $CPPFLAGS'
12867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12870
12871
12872CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12873
12874
3006edc0 12875
6dcfc289 12876 ac_ext=cc
a848cd7e
SC
12877ac_cpp='$CXXCPP $CPPFLAGS'
12878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12881if test -n "$ac_tool_prefix"; then
12882 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12883 do
12884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12885set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12886echo "$as_me:$LINENO: checking for $ac_word" >&5
12887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12888if test "${ac_cv_prog_CXX+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890else
12891 if test -n "$CXX"; then
12892 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12893else
12894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895for as_dir in $PATH
12896do
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12901 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12904 fi
12905done
12906done
12907
12908fi
12909fi
12910CXX=$ac_cv_prog_CXX
12911if test -n "$CXX"; then
12912 echo "$as_me:$LINENO: result: $CXX" >&5
12913echo "${ECHO_T}$CXX" >&6
12914else
12915 echo "$as_me:$LINENO: result: no" >&5
12916echo "${ECHO_T}no" >&6
12917fi
12918
12919 test -n "$CXX" && break
12920 done
12921fi
12922if test -z "$CXX"; then
12923 ac_ct_CXX=$CXX
12924 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12925do
12926 # Extract the first word of "$ac_prog", so it can be a program name with args.
12927set dummy $ac_prog; ac_word=$2
12928echo "$as_me:$LINENO: checking for $ac_word" >&5
12929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12930if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12932else
12933 if test -n "$ac_ct_CXX"; then
12934 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12935else
12936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937for as_dir in $PATH
12938do
12939 IFS=$as_save_IFS
12940 test -z "$as_dir" && as_dir=.
12941 for ac_exec_ext in '' $ac_executable_extensions; do
12942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12943 ac_cv_prog_ac_ct_CXX="$ac_prog"
12944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12945 break 2
12946 fi
12947done
12948done
12949
12950fi
12951fi
12952ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12953if test -n "$ac_ct_CXX"; then
12954 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12955echo "${ECHO_T}$ac_ct_CXX" >&6
12956else
12957 echo "$as_me:$LINENO: result: no" >&5
12958echo "${ECHO_T}no" >&6
12959fi
12960
12961 test -n "$ac_ct_CXX" && break
12962done
12963test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12964
12965 CXX=$ac_ct_CXX
12966fi
12967
12968
12969# Provide some information about the compiler.
12970echo "$as_me:$LINENO:" \
12971 "checking for C++ compiler version" >&5
12972ac_compiler=`set X $ac_compile; echo $2`
12973{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12974 (eval $ac_compiler --version </dev/null >&5) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }
12978{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12979 (eval $ac_compiler -v </dev/null >&5) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }
12983{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12984 (eval $ac_compiler -V </dev/null >&5) 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }
12988
12989echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12990echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12991if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12993else
12994 cat >conftest.$ac_ext <<_ACEOF
12995/* confdefs.h. */
12996_ACEOF
12997cat confdefs.h >>conftest.$ac_ext
12998cat >>conftest.$ac_ext <<_ACEOF
12999/* end confdefs.h. */
13000
13001int
13002main ()
13003{
13004#ifndef __GNUC__
13005 choke me
13006#endif
13007
13008 ;
13009 return 0;
13010}
13011_ACEOF
13012rm -f conftest.$ac_objext
13013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13014 (eval $ac_compile) 2>conftest.er1
a848cd7e 13015 ac_status=$?
ac1cb8d3
VS
13016 grep -v '^ *+' conftest.er1 >conftest.err
13017 rm -f conftest.er1
13018 cat conftest.err >&5
a848cd7e
SC
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
5ff751d6 13021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; } &&
13027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029 (eval $ac_try) 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; }; then
13033 ac_compiler_gnu=yes
13034else
13035 echo "$as_me: failed program was:" >&5
13036sed 's/^/| /' conftest.$ac_ext >&5
13037
13038ac_compiler_gnu=no
13039fi
ac1cb8d3 13040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13041ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13042
13043fi
13044echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13045echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13046GXX=`test $ac_compiler_gnu = yes && echo yes`
13047ac_test_CXXFLAGS=${CXXFLAGS+set}
13048ac_save_CXXFLAGS=$CXXFLAGS
13049CXXFLAGS="-g"
13050echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13051echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13052if test "${ac_cv_prog_cxx_g+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13054else
13055 cat >conftest.$ac_ext <<_ACEOF
13056/* confdefs.h. */
13057_ACEOF
13058cat confdefs.h >>conftest.$ac_ext
13059cat >>conftest.$ac_ext <<_ACEOF
13060/* end confdefs.h. */
13061
13062int
13063main ()
13064{
13065
13066 ;
13067 return 0;
13068}
13069_ACEOF
13070rm -f conftest.$ac_objext
13071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13072 (eval $ac_compile) 2>conftest.er1
a848cd7e 13073 ac_status=$?
ac1cb8d3
VS
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
a848cd7e
SC
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
5ff751d6 13079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; } &&
13085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13091 ac_cv_prog_cxx_g=yes
13092else
13093 echo "$as_me: failed program was:" >&5
13094sed 's/^/| /' conftest.$ac_ext >&5
13095
13096ac_cv_prog_cxx_g=no
13097fi
ac1cb8d3 13098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13099fi
13100echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13101echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13102if test "$ac_test_CXXFLAGS" = set; then
13103 CXXFLAGS=$ac_save_CXXFLAGS
13104elif test $ac_cv_prog_cxx_g = yes; then
13105 if test "$GXX" = yes; then
8aeeb05c 13106 CXXFLAGS="-g -O2"
a848cd7e 13107 else
8aeeb05c 13108 CXXFLAGS="-g"
a848cd7e
SC
13109 fi
13110else
13111 if test "$GXX" = yes; then
13112 CXXFLAGS="-O2"
13113 else
13114 CXXFLAGS=
13115 fi
13116fi
13117for ac_declaration in \
ac1cb8d3 13118 '' \
a848cd7e
SC
13119 'extern "C" void std::exit (int) throw (); using std::exit;' \
13120 'extern "C" void std::exit (int); using std::exit;' \
13121 'extern "C" void exit (int) throw ();' \
13122 'extern "C" void exit (int);' \
13123 'void exit (int);'
13124do
13125 cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
de59c161 13131$ac_declaration
ac1cb8d3 13132#include <stdlib.h>
a848cd7e
SC
13133int
13134main ()
13135{
13136exit (42);
13137 ;
13138 return 0;
13139}
13140_ACEOF
13141rm -f conftest.$ac_objext
13142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13143 (eval $ac_compile) 2>conftest.er1
a848cd7e 13144 ac_status=$?
ac1cb8d3
VS
13145 grep -v '^ *+' conftest.er1 >conftest.err
13146 rm -f conftest.er1
13147 cat conftest.err >&5
a848cd7e
SC
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } &&
5ff751d6 13150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 :
13163else
13164 echo "$as_me: failed program was:" >&5
13165sed 's/^/| /' conftest.$ac_ext >&5
13166
13167continue
13168fi
ac1cb8d3 13169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13170 cat >conftest.$ac_ext <<_ACEOF
13171/* confdefs.h. */
13172_ACEOF
13173cat confdefs.h >>conftest.$ac_ext
13174cat >>conftest.$ac_ext <<_ACEOF
13175/* end confdefs.h. */
13176$ac_declaration
13177int
13178main ()
13179{
13180exit (42);
13181 ;
13182 return 0;
13183}
13184_ACEOF
13185rm -f conftest.$ac_objext
13186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13187 (eval $ac_compile) 2>conftest.er1
a848cd7e 13188 ac_status=$?
ac1cb8d3
VS
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
a848cd7e
SC
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } &&
5ff751d6 13194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; } &&
13200 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; }; then
13206 break
13207else
13208 echo "$as_me: failed program was:" >&5
13209sed 's/^/| /' conftest.$ac_ext >&5
13210
13211fi
ac1cb8d3 13212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13213done
13214rm -f conftest*
13215if test -n "$ac_declaration"; then
13216 echo '#ifdef __cplusplus' >>confdefs.h
13217 echo $ac_declaration >>confdefs.h
13218 echo '#endif' >>confdefs.h
13219fi
13220
13221ac_ext=cc
13222ac_cpp='$CXXCPP $CPPFLAGS'
13223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13226
ab0ad5f1
VZ
13227
13228
13229 ac_ext=cc
13230ac_cpp='$CXXCPP $CPPFLAGS'
13231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13234
13235 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13236echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13237if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13239else
13240 cat >conftest.$ac_ext <<_ACEOF
13241/* confdefs.h. */
13242_ACEOF
13243cat confdefs.h >>conftest.$ac_ext
13244cat >>conftest.$ac_ext <<_ACEOF
13245/* end confdefs.h. */
13246
13247int
13248main ()
13249{
13250
13251 #ifndef __INTEL_COMPILER
13252 choke me
13253 #endif
13254
13255 ;
13256 return 0;
13257}
13258_ACEOF
13259rm -f conftest.$ac_objext
13260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>conftest.er1
13262 ac_status=$?
13263 grep -v '^ *+' conftest.er1 >conftest.err
13264 rm -f conftest.er1
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
5ff751d6 13268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest.$ac_objext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13281else
13282 echo "$as_me: failed program was:" >&5
13283sed 's/^/| /' conftest.$ac_ext >&5
13284
13285bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13286
13287fi
13288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13289
13290
13291fi
13292echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13293echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13294 ac_ext=cc
13295ac_cpp='$CXXCPP $CPPFLAGS'
13296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13299
13300 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13301 :; INTELCXX=yes
13302 else
13303 :;
13304 fi
13305
13306
3006edc0
VZ
13307 if test "x$GCXX" != "xyes"; then
13308 if test "xCXX" = "xC"; then
13309 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13310echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13311if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313else
13314 cat >conftest.$ac_ext <<_ACEOF
13315/* confdefs.h. */
13316_ACEOF
13317cat confdefs.h >>conftest.$ac_ext
13318cat >>conftest.$ac_ext <<_ACEOF
13319/* end confdefs.h. */
13320
13321int
13322main ()
13323{
13324
13325 ;
13326 return 0;
13327}
13328_ACEOF
13329rm -f conftest.$ac_objext conftest.$ac_ext.o
13330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13331 (eval $ac_compile) 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; then
13335 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13336 case $ac_file in
13337 conftest.$ac_ext.o)
0093c2fc 13338 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13339 ;;
13340 *)
13341 ;;
13342 esac
13343done
13344else
13345 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13346See \`config.log' for more details." >&5
13347echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13348See \`config.log' for more details." >&2;}
13349 { (exit 1); exit 1; }; }
13350
13351fi
13352
13353rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13354
13355fi
0093c2fc
VZ
13356echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13357echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13358if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13359 if test "cxx" = "c"; then
0093c2fc 13360 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13361 fi
13362 if test "cxx" = "cxx"; then
0093c2fc 13363 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13364 fi
13365fi
13366
0093c2fc 13367 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13368 unset ac_cv_prog_cc_g
13369 ac_test_CFLAGS=${CFLAGS+set}
13370ac_save_CFLAGS=$CFLAGS
8aeeb05c 13371CFLAGS="-g"
3006edc0
VZ
13372echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13373echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13374if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376else
13377 cat >conftest.$ac_ext <<_ACEOF
13378/* confdefs.h. */
13379_ACEOF
13380cat confdefs.h >>conftest.$ac_ext
13381cat >>conftest.$ac_ext <<_ACEOF
13382/* end confdefs.h. */
13383
13384int
13385main ()
13386{
13387
13388 ;
13389 return 0;
13390}
13391_ACEOF
13392rm -f conftest.$ac_objext
13393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13394 (eval $ac_compile) 2>conftest.er1
13395 ac_status=$?
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -f conftest.er1
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } &&
5ff751d6 13401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; } &&
13407 { ac_try='test -s conftest.$ac_objext'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
3006edc0 13413 ac_cv_prog_cc_g=yes
480ccd21
DE
13414else
13415 echo "$as_me: failed program was:" >&5
13416sed 's/^/| /' conftest.$ac_ext >&5
13417
3006edc0 13418ac_cv_prog_cc_g=no
480ccd21
DE
13419fi
13420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13421fi
3006edc0
VZ
13422echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13423echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13424if test "$ac_test_CFLAGS" = set; then
13425 CFLAGS=$ac_save_CFLAGS
13426elif test $ac_cv_prog_cc_g = yes; then
13427 if test "$GCC" = yes; then
13428 CFLAGS="-g -O2"
480ccd21 13429 else
3006edc0 13430 CFLAGS="-g"
480ccd21
DE
13431 fi
13432else
3006edc0
VZ
13433 if test "$GCC" = yes; then
13434 CFLAGS="-O2"
480ccd21 13435 else
3006edc0 13436 CFLAGS=
480ccd21
DE
13437 fi
13438fi
3006edc0 13439 fi
ab0ad5f1 13440 fi
3006edc0
VZ
13441
13442 case `uname -s` in
13443 AIX*)
13444 ac_ext=cc
13445ac_cpp='$CXXCPP $CPPFLAGS'
13446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13449
13450echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13451echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13452if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454else
13455 cat >conftest.$ac_ext <<_ACEOF
13456/* confdefs.h. */
13457_ACEOF
13458cat confdefs.h >>conftest.$ac_ext
13459cat >>conftest.$ac_ext <<_ACEOF
13460/* end confdefs.h. */
13461
13462int
13463main ()
13464{
13465#ifndef __xlC__
13466 choke me
13467#endif
13468
13469 ;
13470 return 0;
13471}
13472_ACEOF
13473rm -f conftest.$ac_objext
13474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13475 (eval $ac_compile) 2>conftest.er1
13476 ac_status=$?
13477 grep -v '^ *+' conftest.er1 >conftest.err
13478 rm -f conftest.er1
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
5ff751d6 13482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
13488 { ac_try='test -s conftest.$ac_objext'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
0093c2fc 13494 bakefile_compiler_xlc=yes
3006edc0
VZ
13495else
13496 echo "$as_me: failed program was:" >&5
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
0093c2fc 13499bakefile_compiler_xlc=no
3006edc0
VZ
13500fi
13501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13502 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13503
13504fi
0093c2fc
VZ
13505echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13506echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13507
0093c2fc 13508XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13509ac_ext=cc
13510ac_cpp='$CXXCPP $CPPFLAGS'
13511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13514
13515
13516 ;;
13517
13518 Darwin)
13519 ac_ext=cc
95986553
DE
13520ac_cpp='$CXXCPP $CPPFLAGS'
13521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13524
13525echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13526echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13527if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13529else
13530 cat >conftest.$ac_ext <<_ACEOF
13531/* confdefs.h. */
13532_ACEOF
13533cat confdefs.h >>conftest.$ac_ext
13534cat >>conftest.$ac_ext <<_ACEOF
13535/* end confdefs.h. */
13536
13537int
13538main ()
13539{
13540#ifndef __MWERKS__
13541 choke me
13542#endif
13543
13544 ;
13545 return 0;
13546}
13547_ACEOF
13548rm -f conftest.$ac_objext
13549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13550 (eval $ac_compile) 2>conftest.er1
13551 ac_status=$?
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
5ff751d6 13557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; } &&
13563 { ac_try='test -s conftest.$ac_objext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 bakefile_compiler_mwerks=yes
13570else
13571 echo "$as_me: failed program was:" >&5
13572sed 's/^/| /' conftest.$ac_ext >&5
13573
13574bakefile_compiler_mwerks=no
13575fi
13576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13577 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13578
13579fi
13580echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13581echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13582
0e6fa1d9 13583MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13584ac_ext=cc
13585ac_cpp='$CXXCPP $CPPFLAGS'
13586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13589
13590
3006edc0 13591 ac_ext=cc
9273ffba
DE
13592ac_cpp='$CXXCPP $CPPFLAGS'
13593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13596
13597echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13598echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13599if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13601else
13602 cat >conftest.$ac_ext <<_ACEOF
13603/* confdefs.h. */
13604_ACEOF
13605cat confdefs.h >>conftest.$ac_ext
13606cat >>conftest.$ac_ext <<_ACEOF
13607/* end confdefs.h. */
13608
13609int
13610main ()
13611{
13612#ifndef __xlC__
13613 choke me
13614#endif
13615
13616 ;
13617 return 0;
13618}
13619_ACEOF
13620rm -f conftest.$ac_objext
13621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13622 (eval $ac_compile) 2>conftest.er1
13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } &&
5ff751d6 13629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; } &&
13635 { ac_try='test -s conftest.$ac_objext'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
0093c2fc 13641 bakefile_compiler_xlc=yes
9273ffba
DE
13642else
13643 echo "$as_me: failed program was:" >&5
13644sed 's/^/| /' conftest.$ac_ext >&5
13645
0093c2fc 13646bakefile_compiler_xlc=no
9273ffba
DE
13647fi
13648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13649 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13650
13651fi
0093c2fc
VZ
13652echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13653echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 13654
0093c2fc 13655XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13656ac_ext=cc
13657ac_cpp='$CXXCPP $CPPFLAGS'
13658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13661
13662
3006edc0
VZ
13663 ;;
13664
13665 IRIX*)
95986553 13666
6dcfc289 13667
0ad5d837
VZ
13668 ac_ext=cc
13669ac_cpp='$CXXCPP $CPPFLAGS'
13670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13673
13674 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13675echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13676if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678else
13679 cat >conftest.$ac_ext <<_ACEOF
13680/* confdefs.h. */
13681_ACEOF
13682cat confdefs.h >>conftest.$ac_ext
13683cat >>conftest.$ac_ext <<_ACEOF
13684/* end confdefs.h. */
13685
13686int
13687main ()
13688{
13689
13690 #ifndef _SGI_COMPILER_VERSION
13691 choke me
13692 #endif
13693
13694 ;
13695 return 0;
13696}
13697_ACEOF
13698rm -f conftest.$ac_objext
13699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13700 (eval $ac_compile) 2>conftest.er1
13701 ac_status=$?
13702 grep -v '^ *+' conftest.er1 >conftest.err
13703 rm -f conftest.er1
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } &&
5ff751d6 13707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; } &&
13713 { ac_try='test -s conftest.$ac_objext'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13720else
13721 echo "$as_me: failed program was:" >&5
13722sed 's/^/| /' conftest.$ac_ext >&5
13723
13724bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13725
13726fi
13727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13728
13729
13730fi
13731echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13732echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13733 ac_ext=cc
13734ac_cpp='$CXXCPP $CPPFLAGS'
13735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13738
13739 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13740 :; SGICXX=yes
13741 else
13742 :;
13743 fi
13744
13745
3006edc0
VZ
13746 ;;
13747
0093c2fc 13748 HP-UX*)
3006edc0
VZ
13749
13750
13751 ac_ext=cc
13752ac_cpp='$CXXCPP $CPPFLAGS'
13753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13756
0093c2fc
VZ
13757 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13758echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13759if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13761else
13762 cat >conftest.$ac_ext <<_ACEOF
13763/* confdefs.h. */
13764_ACEOF
13765cat confdefs.h >>conftest.$ac_ext
13766cat >>conftest.$ac_ext <<_ACEOF
13767/* end confdefs.h. */
13768
13769int
13770main ()
13771{
13772
0093c2fc 13773 #ifndef __HP_aCC
3006edc0
VZ
13774 choke me
13775 #endif
13776
13777 ;
13778 return 0;
13779}
13780_ACEOF
13781rm -f conftest.$ac_objext
13782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13783 (eval $ac_compile) 2>conftest.er1
13784 ac_status=$?
13785 grep -v '^ *+' conftest.er1 >conftest.err
13786 rm -f conftest.er1
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
5ff751d6 13790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
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'
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
0093c2fc 13802 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
13803else
13804 echo "$as_me: failed program was:" >&5
13805sed 's/^/| /' conftest.$ac_ext >&5
13806
0093c2fc 13807bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
13808
13809fi
13810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13811
13812
13813fi
0093c2fc
VZ
13814echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
13815echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
13816 ac_ext=cc
13817ac_cpp='$CXXCPP $CPPFLAGS'
13818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13821
0093c2fc
VZ
13822 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
13823 :; HPCXX=yes
a1aa0349
VZ
13824 else
13825 :;
13826 fi
13827
13828
13829 ;;
13830
0093c2fc 13831 OSF1)
a1aa0349
VZ
13832
13833
13834 ac_ext=cc
13835ac_cpp='$CXXCPP $CPPFLAGS'
13836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13839
0093c2fc
VZ
13840 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
13841echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
13842if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13844else
13845 cat >conftest.$ac_ext <<_ACEOF
13846/* confdefs.h. */
13847_ACEOF
13848cat confdefs.h >>conftest.$ac_ext
13849cat >>conftest.$ac_ext <<_ACEOF
13850/* end confdefs.h. */
13851
13852int
13853main ()
13854{
13855
0093c2fc 13856 #ifndef __DECCXX
a1aa0349
VZ
13857 choke me
13858 #endif
13859
13860 ;
13861 return 0;
13862}
13863_ACEOF
13864rm -f conftest.$ac_objext
13865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13866 (eval $ac_compile) 2>conftest.er1
13867 ac_status=$?
13868 grep -v '^ *+' conftest.er1 >conftest.err
13869 rm -f conftest.er1
13870 cat conftest.err >&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } &&
5ff751d6 13873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13876 ac_status=$?
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; } &&
13879 { ac_try='test -s conftest.$ac_objext'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }; then
0093c2fc 13885 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
13886else
13887 echo "$as_me: failed program was:" >&5
13888sed 's/^/| /' conftest.$ac_ext >&5
13889
0093c2fc 13890bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
13891
13892fi
13893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13894
13895
13896fi
0093c2fc
VZ
13897echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
13898echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
13899 ac_ext=cc
13900ac_cpp='$CXXCPP $CPPFLAGS'
13901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13904
0093c2fc
VZ
13905 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
13906 :; COMPAQCXX=yes
13907 else
13908 :;
13909 fi
13910
13911
13912 ;;
13913
13914 SunOS)
13915
13916
13917 ac_ext=cc
13918ac_cpp='$CXXCPP $CPPFLAGS'
13919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13922
13923 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
13924echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
13925if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13927else
13928 cat >conftest.$ac_ext <<_ACEOF
13929/* confdefs.h. */
13930_ACEOF
13931cat confdefs.h >>conftest.$ac_ext
13932cat >>conftest.$ac_ext <<_ACEOF
13933/* end confdefs.h. */
13934
13935int
13936main ()
13937{
13938
13939 #ifndef __SUNPRO_CC
13940 choke me
13941 #endif
13942
13943 ;
13944 return 0;
13945}
13946_ACEOF
13947rm -f conftest.$ac_objext
13948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13949 (eval $ac_compile) 2>conftest.er1
13950 ac_status=$?
13951 grep -v '^ *+' conftest.er1 >conftest.err
13952 rm -f conftest.er1
13953 cat conftest.err >&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } &&
5ff751d6 13956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest.$ac_objext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13969else
13970 echo "$as_me: failed program was:" >&5
13971sed 's/^/| /' conftest.$ac_ext >&5
13972
13973bakefile_cv_cxx_compiler___SUNPRO_CC=no
13974
13975fi
13976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13977
13978
13979fi
13980echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13981echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13982 ac_ext=cc
13983ac_cpp='$CXXCPP $CPPFLAGS'
13984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13987
13988 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13989 :; SUNCXX=yes
3006edc0
VZ
13990 else
13991 :;
ab0ad5f1 13992 fi
a9e5b1f0
MW
13993
13994
3006edc0
VZ
13995 ;;
13996 esac
13997 fi
13998
13999
14000
a848cd7e
SC
14001ac_ext=c
14002ac_cpp='$CPP $CPPFLAGS'
14003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14005ac_compiler_gnu=$ac_cv_c_compiler_gnu
14006
14007
a848cd7e
SC
14008if test -n "$ac_tool_prefix"; then
14009 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14010set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14011echo "$as_me:$LINENO: checking for $ac_word" >&5
14012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14013if test "${ac_cv_prog_RANLIB+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14015else
14016 if test -n "$RANLIB"; then
14017 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14018else
14019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020for as_dir in $PATH
14021do
14022 IFS=$as_save_IFS
14023 test -z "$as_dir" && as_dir=.
14024 for ac_exec_ext in '' $ac_executable_extensions; do
14025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14026 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14028 break 2
14029 fi
14030done
14031done
14032
14033fi
14034fi
14035RANLIB=$ac_cv_prog_RANLIB
14036if test -n "$RANLIB"; then
14037 echo "$as_me:$LINENO: result: $RANLIB" >&5
14038echo "${ECHO_T}$RANLIB" >&6
14039else
14040 echo "$as_me:$LINENO: result: no" >&5
14041echo "${ECHO_T}no" >&6
14042fi
14043
14044fi
14045if test -z "$ac_cv_prog_RANLIB"; then
14046 ac_ct_RANLIB=$RANLIB
14047 # Extract the first word of "ranlib", so it can be a program name with args.
14048set dummy ranlib; ac_word=$2
14049echo "$as_me:$LINENO: checking for $ac_word" >&5
14050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14051if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14053else
14054 if test -n "$ac_ct_RANLIB"; then
14055 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14056else
14057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058for as_dir in $PATH
14059do
14060 IFS=$as_save_IFS
14061 test -z "$as_dir" && as_dir=.
14062 for ac_exec_ext in '' $ac_executable_extensions; do
14063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14064 ac_cv_prog_ac_ct_RANLIB="ranlib"
14065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14066 break 2
14067 fi
14068done
14069done
14070
14071 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14072fi
14073fi
14074ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14075if test -n "$ac_ct_RANLIB"; then
14076 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14077echo "${ECHO_T}$ac_ct_RANLIB" >&6
14078else
14079 echo "$as_me:$LINENO: result: no" >&5
14080echo "${ECHO_T}no" >&6
14081fi
14082
14083 RANLIB=$ac_ct_RANLIB
14084else
14085 RANLIB="$ac_cv_prog_RANLIB"
14086fi
14087
14088
8c80d384
DE
14089if test -n "$ac_tool_prefix"; then
14090 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14091set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14092echo "$as_me:$LINENO: checking for $ac_word" >&5
14093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14094if test "${ac_cv_prog_AR+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14096else
14097 if test -n "$AR"; then
14098 ac_cv_prog_AR="$AR" # Let the user override the test.
14099else
14100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101for as_dir in $PATH
14102do
14103 IFS=$as_save_IFS
14104 test -z "$as_dir" && as_dir=.
14105 for ac_exec_ext in '' $ac_executable_extensions; do
14106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14107 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14109 break 2
14110 fi
14111done
14112done
14113
14114fi
14115fi
14116AR=$ac_cv_prog_AR
14117if test -n "$AR"; then
14118 echo "$as_me:$LINENO: result: $AR" >&5
14119echo "${ECHO_T}$AR" >&6
14120else
14121 echo "$as_me:$LINENO: result: no" >&5
14122echo "${ECHO_T}no" >&6
14123fi
14124
8c80d384
DE
14125fi
14126if test -z "$ac_cv_prog_AR"; then
14127 ac_ct_AR=$AR
14128 # Extract the first word of "ar", so it can be a program name with args.
14129set dummy ar; ac_word=$2
14130echo "$as_me:$LINENO: checking for $ac_word" >&5
14131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14132if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134else
14135 if test -n "$ac_ct_AR"; then
14136 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14137else
14138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139for as_dir in $PATH
14140do
14141 IFS=$as_save_IFS
14142 test -z "$as_dir" && as_dir=.
14143 for ac_exec_ext in '' $ac_executable_extensions; do
14144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14145 ac_cv_prog_ac_ct_AR="ar"
14146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14147 break 2
14148 fi
14149done
14150done
14151
14152fi
14153fi
14154ac_ct_AR=$ac_cv_prog_ac_ct_AR
14155if test -n "$ac_ct_AR"; then
14156 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14157echo "${ECHO_T}$ac_ct_AR" >&6
14158else
14159 echo "$as_me:$LINENO: result: no" >&5
14160echo "${ECHO_T}no" >&6
14161fi
14162
14163 AR=$ac_ct_AR
14164else
14165 AR="$ac_cv_prog_AR"
14166fi
14167
a848cd7e 14168if test "x$AR" = "x" ; then
77ffb593
JS
14169 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14170echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14171 { (exit 1); exit 1; }; }
14172fi
14173
14174# Find a good install program. We prefer a C program (faster),
14175# so one script is as good as another. But avoid the broken or
14176# incompatible versions:
14177# SysV /etc/install, /usr/sbin/install
14178# SunOS /usr/etc/install
14179# IRIX /sbin/install
14180# AIX /bin/install
14181# AmigaOS /C/install, which installs bootblocks on floppy discs
14182# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14183# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14184# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14185# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14186# ./install, which can be erroneously created by make from ./install.sh.
14187echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14188echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14189if test -z "$INSTALL"; then
14190if test "${ac_cv_path_install+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14192else
14193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194for as_dir in $PATH
14195do
14196 IFS=$as_save_IFS
14197 test -z "$as_dir" && as_dir=.
14198 # Account for people who put trailing slashes in PATH elements.
14199case $as_dir/ in
14200 ./ | .// | /cC/* | \
14201 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14202 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14203 /usr/ucb/* ) ;;
14204 *)
14205 # OSF1 and SCO ODT 3.0 have their own names for install.
14206 # Don't use installbsd from OSF since it installs stuff as root
14207 # by default.
14208 for ac_prog in ginstall scoinst install; do
14209 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14210 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14211 if test $ac_prog = install &&
14212 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14213 # AIX install. It has an incompatible calling convention.
14214 :
14215 elif test $ac_prog = install &&
14216 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14217 # program-specific install script used by HP pwplus--don't use.
14218 :
14219 else
14220 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14221 break 3
14222 fi
14223 fi
a848cd7e
SC
14224 done
14225 done
14226 ;;
14227esac
14228done
14229
14230
14231fi
14232 if test "${ac_cv_path_install+set}" = set; then
14233 INSTALL=$ac_cv_path_install
14234 else
14235 # As a last resort, use the slow shell script. We don't cache a
14236 # path for INSTALL within a source directory, because that will
14237 # break other packages using the cache if that directory is
14238 # removed, or if the path is relative.
14239 INSTALL=$ac_install_sh
14240 fi
14241fi
14242echo "$as_me:$LINENO: result: $INSTALL" >&5
14243echo "${ECHO_T}$INSTALL" >&6
14244
14245# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14246# It thinks the first close brace ends the variable substitution.
14247test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14248
14249test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14250
14251test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14252
14253
14254case ${INSTALL} in
14255 /* ) # Absolute
14256 ;;
14257 ?:* ) # Drive letter, considered as absolute.
14258 ;;
14259 *)
14260 INSTALL=`pwd`/${INSTALL} ;;
14261esac
14262
a848cd7e
SC
14263
14264case "${host}" in
14265
cfda0ea8 14266 *-*-darwin* )
a848cd7e
SC
14267 INSTALL_PROGRAM="cp -fp"
14268 INSTALL_DATA="cp -fp"
14269 ;;
14270 *)
14271 ;;
14272esac
14273
8c80d384
DE
14274if test -n "$ac_tool_prefix"; then
14275 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14276set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14277echo "$as_me:$LINENO: checking for $ac_word" >&5
14278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14279if test "${ac_cv_prog_STRIP+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14281else
14282 if test -n "$STRIP"; then
14283 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14284else
14285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286for as_dir in $PATH
14287do
14288 IFS=$as_save_IFS
14289 test -z "$as_dir" && as_dir=.
14290 for ac_exec_ext in '' $ac_executable_extensions; do
14291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14292 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14294 break 2
14295 fi
14296done
14297done
14298
a848cd7e
SC
14299fi
14300fi
14301STRIP=$ac_cv_prog_STRIP
14302if test -n "$STRIP"; then
14303 echo "$as_me:$LINENO: result: $STRIP" >&5
14304echo "${ECHO_T}$STRIP" >&6
14305else
14306 echo "$as_me:$LINENO: result: no" >&5
14307echo "${ECHO_T}no" >&6
14308fi
14309
8c80d384
DE
14310fi
14311if test -z "$ac_cv_prog_STRIP"; then
14312 ac_ct_STRIP=$STRIP
14313 # Extract the first word of "strip", so it can be a program name with args.
14314set dummy strip; ac_word=$2
14315echo "$as_me:$LINENO: checking for $ac_word" >&5
14316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14317if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14319else
14320 if test -n "$ac_ct_STRIP"; then
14321 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14322else
14323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324for as_dir in $PATH
14325do
14326 IFS=$as_save_IFS
14327 test -z "$as_dir" && as_dir=.
14328 for ac_exec_ext in '' $ac_executable_extensions; do
14329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14330 ac_cv_prog_ac_ct_STRIP="strip"
14331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14332 break 2
14333 fi
14334done
14335done
14336
14337 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14338fi
14339fi
14340ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14341if test -n "$ac_ct_STRIP"; then
14342 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14343echo "${ECHO_T}$ac_ct_STRIP" >&6
14344else
14345 echo "$as_me:$LINENO: result: no" >&5
14346echo "${ECHO_T}no" >&6
14347fi
14348
14349 STRIP=$ac_ct_STRIP
14350else
14351 STRIP="$ac_cv_prog_STRIP"
14352fi
14353
14354
14355if test "$wxUSE_WINE" = "yes"; then
14356 if test -n "$ac_tool_prefix"; then
14357 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14358set dummy ${ac_tool_prefix}wrc; ac_word=$2
14359echo "$as_me:$LINENO: checking for $ac_word" >&5
14360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14361if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363else
8ced02f6
DE
14364 if test -n "$WINDRES"; then
14365 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14366else
14367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14368for as_dir in $PATH
14369do
14370 IFS=$as_save_IFS
14371 test -z "$as_dir" && as_dir=.
14372 for ac_exec_ext in '' $ac_executable_extensions; do
14373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14374 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
14375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14376 break 2
14377 fi
14378done
14379done
14380
14381fi
14382fi
8ced02f6
DE
14383WINDRES=$ac_cv_prog_WINDRES
14384if test -n "$WINDRES"; then
14385 echo "$as_me:$LINENO: result: $WINDRES" >&5
14386echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14387else
14388 echo "$as_me:$LINENO: result: no" >&5
14389echo "${ECHO_T}no" >&6
14390fi
14391
14392fi
8ced02f6
DE
14393if test -z "$ac_cv_prog_WINDRES"; then
14394 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14395 # Extract the first word of "wrc", so it can be a program name with args.
14396set dummy wrc; ac_word=$2
14397echo "$as_me:$LINENO: checking for $ac_word" >&5
14398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14399if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401else
8ced02f6
DE
14402 if test -n "$ac_ct_WINDRES"; then
14403 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14404else
14405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14406for as_dir in $PATH
14407do
14408 IFS=$as_save_IFS
14409 test -z "$as_dir" && as_dir=.
14410 for ac_exec_ext in '' $ac_executable_extensions; do
14411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14412 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
14413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14414 break 2
14415 fi
14416done
14417done
14418
14419fi
14420fi
8ced02f6
DE
14421ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14422if test -n "$ac_ct_WINDRES"; then
14423 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14424echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
14425else
14426 echo "$as_me:$LINENO: result: no" >&5
14427echo "${ECHO_T}no" >&6
14428fi
14429
8ced02f6 14430 WINDRES=$ac_ct_WINDRES
8c80d384 14431else
8ced02f6 14432 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
14433fi
14434
14435else
14436 case "${host}" in
14437 *-*-cygwin* | *-*-mingw32* )
8ced02f6 14438 if test -n "$ac_tool_prefix"; then
8c80d384
DE
14439 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14440set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14441echo "$as_me:$LINENO: checking for $ac_word" >&5
14442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14443if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14445else
14446 if test -n "$DLLTOOL"; then
14447 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14448else
14449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14450for as_dir in $PATH
14451do
14452 IFS=$as_save_IFS
14453 test -z "$as_dir" && as_dir=.
14454 for ac_exec_ext in '' $ac_executable_extensions; do
14455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14456 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14458 break 2
14459 fi
14460done
14461done
14462
14463fi
14464fi
14465DLLTOOL=$ac_cv_prog_DLLTOOL
14466if test -n "$DLLTOOL"; then
14467 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14468echo "${ECHO_T}$DLLTOOL" >&6
14469else
14470 echo "$as_me:$LINENO: result: no" >&5
14471echo "${ECHO_T}no" >&6
14472fi
14473
14474fi
14475if test -z "$ac_cv_prog_DLLTOOL"; then
14476 ac_ct_DLLTOOL=$DLLTOOL
14477 # Extract the first word of "dlltool", so it can be a program name with args.
14478set dummy dlltool; ac_word=$2
14479echo "$as_me:$LINENO: checking for $ac_word" >&5
14480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14481if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483else
14484 if test -n "$ac_ct_DLLTOOL"; then
14485 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14486else
14487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14488for as_dir in $PATH
14489do
14490 IFS=$as_save_IFS
14491 test -z "$as_dir" && as_dir=.
14492 for ac_exec_ext in '' $ac_executable_extensions; do
14493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14494 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14496 break 2
14497 fi
14498done
14499done
14500
14501fi
14502fi
14503ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14504if test -n "$ac_ct_DLLTOOL"; then
14505 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14506echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14507else
14508 echo "$as_me:$LINENO: result: no" >&5
14509echo "${ECHO_T}no" >&6
14510fi
14511
14512 DLLTOOL=$ac_ct_DLLTOOL
14513else
14514 DLLTOOL="$ac_cv_prog_DLLTOOL"
14515fi
14516
14517 ;;
14518 esac
14519fi
a848cd7e
SC
14520
14521echo "$as_me:$LINENO: checking if make is GNU make" >&5
14522echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14523if test "${wx_cv_prog_makeisgnu+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525else
14526
14527 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14528 egrep -s GNU > /dev/null); then
14529 wx_cv_prog_makeisgnu="yes"
14530 else
14531 wx_cv_prog_makeisgnu="no"
14532 fi
14533
14534fi
14535echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14536echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14537
14538if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14539 IF_GNU_MAKE=""
14540else
14541 IF_GNU_MAKE="#"
14542fi
14543
14544
14545
14546if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14547echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14548echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14549if test "${wx_cv_prog_makevpath+set}" = set; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14551else
14552
14553cat - << EOF > confMake
14554check : file
14555 cp \$? \$@
14556 cp \$? final_file
14557EOF
14558
14559if test ! -d sub ; then
14560 mkdir sub
14561fi
14562echo dummy > sub/file
14563${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14564RESULT=$?
14565rm -f sub/file check final_file confMake
14566rmdir sub
14567if test "$RESULT" = 0; then
14568 wx_cv_prog_makevpath="yes"
14569else
14570 wx_cv_prog_makevpath="no"
14571fi
14572
14573fi
14574echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14575echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14576
14577if test "x$wx_cv_prog_makevpath" != "xyes"; then
14578{ { echo "$as_me:$LINENO: error:
14579You need a make-utility that is able to use the variable
14580VPATH correctly.
14581If your version of make does not support VPATH correctly,
14582please install GNU-make (possibly as gmake), and start
14583configure with the following command:
14584export MAKE=gmake; ./configure for sh-type shells
14585setenv MAKE gmake; ./configure for csh-type shells
14586Also please do remember to use gmake in this case every time
14587you are trying to compile.
14588" >&5
14589echo "$as_me: error:
14590You need a make-utility that is able to use the variable
14591VPATH correctly.
14592If your version of make does not support VPATH correctly,
14593please install GNU-make (possibly as gmake), and start
14594configure with the following command:
14595export MAKE=gmake; ./configure for sh-type shells
14596setenv MAKE gmake; ./configure for csh-type shells
14597Also please do remember to use gmake in this case every time
14598you are trying to compile.
14599" >&2;}
14600 { (exit 1); exit 1; }; }
14601fi fi
14602echo "$as_me:$LINENO: checking whether ln -s works" >&5
14603echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14604LN_S=$as_ln_s
14605if test "$LN_S" = "ln -s"; then
14606 echo "$as_me:$LINENO: result: yes" >&5
14607echo "${ECHO_T}yes" >&6
14608else
14609 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14610echo "${ECHO_T}no, using $LN_S" >&6
14611fi
14612
14613
bcaab0f9
MW
14614for ac_prog in lndir
14615do
14616 # Extract the first word of "$ac_prog", so it can be a program name with args.
14617set dummy $ac_prog; ac_word=$2
14618echo "$as_me:$LINENO: checking for $ac_word" >&5
14619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14620if test "${ac_cv_prog_LNDIR+set}" = set; then
14621 echo $ECHO_N "(cached) $ECHO_C" >&6
14622else
14623 if test -n "$LNDIR"; then
14624 ac_cv_prog_LNDIR="$LNDIR" # Let the user override the test.
14625else
14626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14627for as_dir in $PATH
14628do
14629 IFS=$as_save_IFS
14630 test -z "$as_dir" && as_dir=.
14631 for ac_exec_ext in '' $ac_executable_extensions; do
14632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14633 ac_cv_prog_LNDIR="$ac_prog"
14634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14635 break 2
14636 fi
14637done
14638done
14639
14640fi
14641fi
14642LNDIR=$ac_cv_prog_LNDIR
14643if test -n "$LNDIR"; then
14644 echo "$as_me:$LINENO: result: $LNDIR" >&5
14645echo "${ECHO_T}$LNDIR" >&6
14646else
14647 echo "$as_me:$LINENO: result: no" >&5
14648echo "${ECHO_T}no" >&6
14649fi
14650
14651 test -n "$LNDIR" && break
14652done
91dea314 14653test -n "$LNDIR" || LNDIR="cp -pR"
bcaab0f9
MW
14654
14655
14656
a848cd7e 14657
2113bc77 14658if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
14659 CXXFLAGS="$CXXFLAGS -qunique"
14660fi
14661
4d7ec9f1
DE
14662case "${host}" in
14663 powerpc-*-darwin* )
14664 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14665echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14666 cat >conftest.$ac_ext <<_ACEOF
14667/* confdefs.h. */
14668_ACEOF
14669cat confdefs.h >>conftest.$ac_ext
14670cat >>conftest.$ac_ext <<_ACEOF
14671/* end confdefs.h. */
14672
14673int
14674main ()
14675{
14676#ifndef __POWERPC__
14677 choke me for lack of PowerPC
14678#endif
14679
14680 ;
14681 return 0;
14682}
14683_ACEOF
14684rm -f conftest.$ac_objext
14685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
5ff751d6 14693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14696 ac_status=$?
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; } &&
14699 { ac_try='test -s conftest.$ac_objext'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 echo "$as_me:$LINENO: result: yes" >&5
14706echo "${ECHO_T}yes" >&6
14707else
14708 echo "$as_me: failed program was:" >&5
14709sed 's/^/| /' conftest.$ac_ext >&5
14710
14711echo "$as_me:$LINENO: result: no" >&5
14712echo "${ECHO_T}no" >&6
14713 cat >>confdefs.h <<\_ACEOF
14714#define __POWERPC__ 1
14715_ACEOF
14716
14717
14718fi
14719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14720 ;;
14721esac
14722
14723case "${host}" in
14724 *-*-darwin* )
4d7ec9f1
DE
14725 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14726echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14727 cat >conftest.$ac_ext <<_ACEOF
14728/* confdefs.h. */
14729_ACEOF
14730cat confdefs.h >>conftest.$ac_ext
14731cat >>conftest.$ac_ext <<_ACEOF
14732/* end confdefs.h. */
14733#include <CoreFoundation/CFBase.h>
14734
14735int
14736main ()
14737{
14738
14739 ;
14740 return 0;
14741}
14742_ACEOF
14743rm -f conftest.$ac_objext
14744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745 (eval $ac_compile) 2>conftest.er1
14746 ac_status=$?
14747 grep -v '^ *+' conftest.er1 >conftest.err
14748 rm -f conftest.er1
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
5ff751d6 14752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 echo "$as_me:$LINENO: result: yes" >&5
14765echo "${ECHO_T}yes" >&6
14766else
14767 echo "$as_me: failed program was:" >&5
14768sed 's/^/| /' conftest.$ac_ext >&5
14769
14770echo "$as_me:$LINENO: result: no" >&5
14771echo "${ECHO_T}no" >&6
14772 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14773echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14774 cat >conftest.$ac_ext <<_ACEOF
14775/* confdefs.h. */
14776_ACEOF
14777cat confdefs.h >>conftest.$ac_ext
14778cat >>conftest.$ac_ext <<_ACEOF
14779/* end confdefs.h. */
14780#define __CF_USE_FRAMEWORK_INCLUDES__
14781#include <CoreFoundation/CFBase.h>
14782
14783int
14784main ()
14785{
14786
14787 ;
14788 return 0;
14789}
14790_ACEOF
14791rm -f conftest.$ac_objext
14792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793 (eval $ac_compile) 2>conftest.er1
14794 ac_status=$?
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
5ff751d6 14800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; } &&
14806 { ac_try='test -s conftest.$ac_objext'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
14812 echo "$as_me:$LINENO: result: yes" >&5
14813echo "${ECHO_T}yes" >&6
14814 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14815else
14816 echo "$as_me: failed program was:" >&5
14817sed 's/^/| /' conftest.$ac_ext >&5
14818
14819{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14820See \`config.log' for more details." >&5
14821echo "$as_me: error: no. CoreFoundation not available.
14822See \`config.log' for more details." >&2;}
14823 { (exit 1); exit 1; }; }
14824
14825fi
14826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14827
14828
14829fi
14830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14831 ;;
14832esac
14833
a848cd7e
SC
14834case "${host}" in
14835 *-pc-os2_emx | *-pc-os2-emx )
14836 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14837 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14838echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14839if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841else
14842 ac_check_lib_save_LIBS=$LIBS
14843LIBS="-lcExt $LIBS"
14844cat >conftest.$ac_ext <<_ACEOF
14845/* confdefs.h. */
14846_ACEOF
14847cat confdefs.h >>conftest.$ac_ext
14848cat >>conftest.$ac_ext <<_ACEOF
14849/* end confdefs.h. */
14850
14851/* Override any gcc2 internal prototype to avoid an error. */
14852#ifdef __cplusplus
14853extern "C"
14854#endif
14855/* We use char because int might match the return type of a gcc2
14856 builtin and then its argument prototype would still apply. */
14857char drand48 ();
14858int
14859main ()
14860{
14861drand48 ();
14862 ;
14863 return 0;
14864}
14865_ACEOF
14866rm -f conftest.$ac_objext conftest$ac_exeext
14867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14868 (eval $ac_link) 2>conftest.er1
a848cd7e 14869 ac_status=$?
ac1cb8d3
VS
14870 grep -v '^ *+' conftest.er1 >conftest.err
14871 rm -f conftest.er1
14872 cat conftest.err >&5
a848cd7e
SC
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } &&
5ff751d6 14875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 ac_cv_lib_cExt_drand48=yes
14888else
14889 echo "$as_me: failed program was:" >&5
14890sed 's/^/| /' conftest.$ac_ext >&5
14891
14892ac_cv_lib_cExt_drand48=no
14893fi
ac1cb8d3
VS
14894rm -f conftest.err conftest.$ac_objext \
14895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14896LIBS=$ac_check_lib_save_LIBS
14897fi
14898echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14899echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14900if test $ac_cv_lib_cExt_drand48 = yes; then
14901 LIBS="$LIBS -lcExt"
14902fi
14903
14904 else
14905 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14906 fi
69120ee4
VZ
14907 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14908echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
14909if test "${wx_cv_gccversion+set}" = set; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14911else
14912
391a765e
VS
14913 if test "$cross_compiling" = yes; then
14914 wx_cv_gccversion="EMX2"
14915
14916else
14917 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14918/* confdefs.h. */
14919_ACEOF
14920cat confdefs.h >>conftest.$ac_ext
14921cat >>conftest.$ac_ext <<_ACEOF
14922/* end confdefs.h. */
14923
391a765e 14924 #include <stdio.h>
a848cd7e 14925
391a765e
VS
14926 int main()
14927 {
14928 FILE *f=fopen("conftestval", "w");
14929 if (!f) exit(1);
14930 fprintf(f,
a848cd7e 14931 #if (__GNUC__ < 3)
391a765e
VS
14932 "EMX2"
14933 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
14934 "EMX3"
14935 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
14936 "Innotek5"
14937 #else
14938 "Innotek6"
a848cd7e 14939 #endif
391a765e
VS
14940 );
14941 exit(0);
14942 }
a848cd7e 14943
a848cd7e 14944_ACEOF
391a765e
VS
14945rm -f conftest$ac_exeext
14946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14947 (eval $ac_link) 2>&5
ac1cb8d3
VS
14948 ac_status=$?
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 14950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14953 ac_status=$?
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
391a765e 14956 wx_cv_gccversion=`cat conftestval`
a848cd7e 14957else
391a765e
VS
14958 echo "$as_me: program exited with status $ac_status" >&5
14959echo "$as_me: failed program was:" >&5
a848cd7e
SC
14960sed 's/^/| /' conftest.$ac_ext >&5
14961
391a765e
VS
14962( exit $ac_status )
14963wx_cv_gccversion="EMX2"
a848cd7e 14964fi
391a765e 14965rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 14966fi
a848cd7e
SC
14967
14968fi
14969echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
14970echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 14971 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
14972 LIBS="$LIBS -lstdcpp"
14973 LDFLAGS="$LDFLAGS -Zsysv-signals"
14974 else
391a765e 14975 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 14976 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
14977 LDFLAGS="$LDFLAGS -Zsysv-signals"
14978 else
14979 LIBS="$LIBS -lstdc++"
14980 fi
14981 fi
94acd38e
DE
14982 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
14983 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
14984echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
14985 wxUSE_OMF=yes
2da0c077 14986 enable_omf=yes
a848cd7e
SC
14987 fi
14988 ;;
14989 *)
14990
14991
14992
14993 ac_ext=cc
14994ac_cpp='$CXXCPP $CPPFLAGS'
14995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14998
14999
95986553 15000 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15001echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15002if test "${ac_cv_string_strcasecmp+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15004else
15005
15006 cat >conftest.$ac_ext <<_ACEOF
15007/* confdefs.h. */
15008_ACEOF
15009cat confdefs.h >>conftest.$ac_ext
15010cat >>conftest.$ac_ext <<_ACEOF
15011/* end confdefs.h. */
15012
15013 #include <string.h>
15014
15015int
15016main ()
15017{
15018
15019 strcasecmp("foo", "bar");
15020
15021 ;
15022 return 0;
15023}
15024_ACEOF
15025rm -f conftest.$ac_objext conftest$ac_exeext
15026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15027 (eval $ac_link) 2>conftest.er1
a848cd7e 15028 ac_status=$?
ac1cb8d3
VS
15029 grep -v '^ *+' conftest.er1 >conftest.err
15030 rm -f conftest.er1
15031 cat conftest.err >&5
a848cd7e
SC
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
5ff751d6 15034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; } &&
15040 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046 ac_cv_string_strcasecmp=yes
15047else
15048 echo "$as_me: failed program was:" >&5
15049sed 's/^/| /' conftest.$ac_ext >&5
15050
15051ac_cv_string_strcasecmp=no
15052
15053fi
ac1cb8d3
VS
15054rm -f conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15056
15057fi
15058echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15059echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15060
15061 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15062 cat >>confdefs.h <<\_ACEOF
15063#define HAVE_STRCASECMP_IN_STRING_H 1
15064_ACEOF
15065
15066 else
15067 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15068echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15069if test "${ac_cv_strings_strcasecmp+set}" = set; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15071else
15072
15073 cat >conftest.$ac_ext <<_ACEOF
15074/* confdefs.h. */
15075_ACEOF
15076cat confdefs.h >>conftest.$ac_ext
15077cat >>conftest.$ac_ext <<_ACEOF
15078/* end confdefs.h. */
15079
15080 #include <strings.h>
15081
15082int
15083main ()
15084{
15085
15086 strcasecmp("foo", "bar");
15087
15088 ;
15089 return 0;
15090}
15091_ACEOF
15092rm -f conftest.$ac_objext conftest$ac_exeext
15093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15094 (eval $ac_link) 2>conftest.er1
a848cd7e 15095 ac_status=$?
ac1cb8d3
VS
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
a848cd7e
SC
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
5ff751d6 15101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; } &&
15107 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; }; then
15113 ac_cv_strings_strcasecmp=yes
15114else
15115 echo "$as_me: failed program was:" >&5
15116sed 's/^/| /' conftest.$ac_ext >&5
15117
15118ac_cv_strings_strcasecmp=no
15119
15120fi
ac1cb8d3
VS
15121rm -f conftest.err conftest.$ac_objext \
15122 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15123
15124fi
15125echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15126echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15127
0c3c69fc 15128 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15129 cat >>confdefs.h <<\_ACEOF
15130#define HAVE_STRCASECMP_IN_STRINGS_H 1
15131_ACEOF
15132
15133 else
15134 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15135echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15136 { (exit 1); exit 1; }; }
15137 fi
15138 fi
15139
15140 ac_ext=c
15141ac_cpp='$CPP $CPPFLAGS'
15142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15144ac_compiler_gnu=$ac_cv_c_compiler_gnu
15145
15146 ;;
15147esac
15148
15149
15150echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15151echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15152if test "${ac_cv_header_stdc+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15154else
15155 cat >conftest.$ac_ext <<_ACEOF
15156/* confdefs.h. */
15157_ACEOF
15158cat confdefs.h >>conftest.$ac_ext
15159cat >>conftest.$ac_ext <<_ACEOF
15160/* end confdefs.h. */
15161#include <stdlib.h>
15162#include <stdarg.h>
15163#include <string.h>
15164#include <float.h>
15165
15166int
15167main ()
15168{
15169
15170 ;
15171 return 0;
15172}
15173_ACEOF
15174rm -f conftest.$ac_objext
15175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15176 (eval $ac_compile) 2>conftest.er1
a848cd7e 15177 ac_status=$?
ac1cb8d3
VS
15178 grep -v '^ *+' conftest.er1 >conftest.err
15179 rm -f conftest.er1
15180 cat conftest.err >&5
a848cd7e
SC
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } &&
5ff751d6 15183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; } &&
15189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15195 ac_cv_header_stdc=yes
15196else
15197 echo "$as_me: failed program was:" >&5
15198sed 's/^/| /' conftest.$ac_ext >&5
15199
15200ac_cv_header_stdc=no
15201fi
ac1cb8d3 15202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15203
15204if test $ac_cv_header_stdc = yes; then
15205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15206 cat >conftest.$ac_ext <<_ACEOF
15207/* confdefs.h. */
15208_ACEOF
15209cat confdefs.h >>conftest.$ac_ext
15210cat >>conftest.$ac_ext <<_ACEOF
15211/* end confdefs.h. */
15212#include <string.h>
15213
15214_ACEOF
15215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15216 $EGREP "memchr" >/dev/null 2>&1; then
15217 :
15218else
15219 ac_cv_header_stdc=no
15220fi
15221rm -f conftest*
15222
15223fi
15224
15225if test $ac_cv_header_stdc = yes; then
15226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15227 cat >conftest.$ac_ext <<_ACEOF
15228/* confdefs.h. */
15229_ACEOF
15230cat confdefs.h >>conftest.$ac_ext
15231cat >>conftest.$ac_ext <<_ACEOF
15232/* end confdefs.h. */
15233#include <stdlib.h>
15234
15235_ACEOF
15236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15237 $EGREP "free" >/dev/null 2>&1; then
15238 :
15239else
15240 ac_cv_header_stdc=no
15241fi
15242rm -f conftest*
15243
15244fi
15245
15246if test $ac_cv_header_stdc = yes; then
15247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15248 if test "$cross_compiling" = yes; then
15249 :
15250else
15251 cat >conftest.$ac_ext <<_ACEOF
15252/* confdefs.h. */
15253_ACEOF
15254cat confdefs.h >>conftest.$ac_ext
15255cat >>conftest.$ac_ext <<_ACEOF
15256/* end confdefs.h. */
15257#include <ctype.h>
15258#if ((' ' & 0x0FF) == 0x020)
15259# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15260# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15261#else
15262# define ISLOWER(c) \
ac1cb8d3
VS
15263 (('a' <= (c) && (c) <= 'i') \
15264 || ('j' <= (c) && (c) <= 'r') \
15265 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15266# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15267#endif
15268
15269#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15270int
15271main ()
15272{
15273 int i;
15274 for (i = 0; i < 256; i++)
15275 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15276 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15277 exit(2);
15278 exit (0);
15279}
15280_ACEOF
15281rm -f conftest$ac_exeext
15282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15283 (eval $ac_link) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15289 ac_status=$?
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; }; then
15292 :
15293else
15294 echo "$as_me: program exited with status $ac_status" >&5
15295echo "$as_me: failed program was:" >&5
15296sed 's/^/| /' conftest.$ac_ext >&5
15297
15298( exit $ac_status )
15299ac_cv_header_stdc=no
15300fi
ac1cb8d3 15301rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15302fi
15303fi
15304fi
15305echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15306echo "${ECHO_T}$ac_cv_header_stdc" >&6
15307if test $ac_cv_header_stdc = yes; then
15308
15309cat >>confdefs.h <<\_ACEOF
15310#define STDC_HEADERS 1
15311_ACEOF
15312
15313fi
15314
15315# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15326 inttypes.h stdint.h unistd.h
a848cd7e
SC
15327do
15328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15329echo "$as_me:$LINENO: checking for $ac_header" >&5
15330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15331if eval "test \"\${$as_ac_Header+set}\" = set"; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333else
15334 cat >conftest.$ac_ext <<_ACEOF
15335/* confdefs.h. */
15336_ACEOF
15337cat confdefs.h >>conftest.$ac_ext
15338cat >>conftest.$ac_ext <<_ACEOF
15339/* end confdefs.h. */
15340$ac_includes_default
15341
15342#include <$ac_header>
15343_ACEOF
15344rm -f conftest.$ac_objext
15345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15346 (eval $ac_compile) 2>conftest.er1
a848cd7e 15347 ac_status=$?
ac1cb8d3
VS
15348 grep -v '^ *+' conftest.er1 >conftest.err
15349 rm -f conftest.er1
15350 cat conftest.err >&5
a848cd7e
SC
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
5ff751d6 15353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15362 ac_status=$?
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15365 eval "$as_ac_Header=yes"
15366else
15367 echo "$as_me: failed program was:" >&5
15368sed 's/^/| /' conftest.$ac_ext >&5
15369
15370eval "$as_ac_Header=no"
15371fi
ac1cb8d3 15372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15373fi
15374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15376if test `eval echo '${'$as_ac_Header'}'` = yes; then
15377 cat >>confdefs.h <<_ACEOF
15378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15379_ACEOF
15380
15381fi
15382
15383done
15384
15385
15386
15387for ac_header in stdlib.h
15388do
15389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15390if eval "test \"\${$as_ac_Header+set}\" = set"; then
15391 echo "$as_me:$LINENO: checking for $ac_header" >&5
15392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15393if eval "test \"\${$as_ac_Header+set}\" = set"; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15395fi
15396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15397echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15398else
15399 # Is the header compilable?
15400echo "$as_me:$LINENO: checking $ac_header usability" >&5
15401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15402cat >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$ac_includes_default
15409#include <$ac_header>
15410_ACEOF
15411rm -f conftest.$ac_objext
15412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15413 (eval $ac_compile) 2>conftest.er1
a848cd7e 15414 ac_status=$?
ac1cb8d3
VS
15415 grep -v '^ *+' conftest.er1 >conftest.err
15416 rm -f conftest.er1
15417 cat conftest.err >&5
a848cd7e
SC
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
5ff751d6 15420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 ac_header_compiler=yes
15433else
15434 echo "$as_me: failed program was:" >&5
15435sed 's/^/| /' conftest.$ac_ext >&5
15436
15437ac_header_compiler=no
15438fi
ac1cb8d3 15439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15440echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15441echo "${ECHO_T}$ac_header_compiler" >&6
15442
15443# Is the header present?
15444echo "$as_me:$LINENO: checking $ac_header presence" >&5
15445echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15446cat >conftest.$ac_ext <<_ACEOF
15447/* confdefs.h. */
15448_ACEOF
15449cat confdefs.h >>conftest.$ac_ext
15450cat >>conftest.$ac_ext <<_ACEOF
15451/* end confdefs.h. */
15452#include <$ac_header>
15453_ACEOF
15454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15456 ac_status=$?
15457 grep -v '^ *+' conftest.er1 >conftest.err
15458 rm -f conftest.er1
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } >/dev/null; then
15462 if test -s conftest.err; then
15463 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15465 else
15466 ac_cpp_err=
15467 fi
15468else
15469 ac_cpp_err=yes
15470fi
15471if test -z "$ac_cpp_err"; then
15472 ac_header_preproc=yes
15473else
15474 echo "$as_me: failed program was:" >&5
15475sed 's/^/| /' conftest.$ac_ext >&5
15476
15477 ac_header_preproc=no
15478fi
15479rm -f conftest.err conftest.$ac_ext
15480echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15481echo "${ECHO_T}$ac_header_preproc" >&6
15482
15483# So? What about this header?
ac1cb8d3
VS
15484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15485 yes:no: )
a848cd7e
SC
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15489echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15490 ac_header_preproc=yes
a848cd7e 15491 ;;
ac1cb8d3 15492 no:yes:* )
a848cd7e
SC
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15496echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15498echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15500echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15504echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15505 (
15506 cat <<\_ASBOX
ac1cb8d3
VS
15507## ----------------------------------------- ##
15508## Report this to wx-dev@lists.wxwidgets.org ##
15509## ----------------------------------------- ##
a848cd7e
SC
15510_ASBOX
15511 ) |
15512 sed "s/^/$as_me: WARNING: /" >&2
15513 ;;
15514esac
15515echo "$as_me:$LINENO: checking for $ac_header" >&5
15516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15517if eval "test \"\${$as_ac_Header+set}\" = set"; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6
15519else
ac1cb8d3 15520 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15521fi
15522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15524
15525fi
15526if test `eval echo '${'$as_ac_Header'}'` = yes; then
15527 cat >>confdefs.h <<_ACEOF
15528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15529_ACEOF
15530
15531fi
15532
15533done
15534
15535
15536for ac_header in malloc.h
15537do
15538as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15539if eval "test \"\${$as_ac_Header+set}\" = set"; then
15540 echo "$as_me:$LINENO: checking for $ac_header" >&5
15541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15542if eval "test \"\${$as_ac_Header+set}\" = set"; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15544fi
15545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15546echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15547else
15548 # Is the header compilable?
15549echo "$as_me:$LINENO: checking $ac_header usability" >&5
15550echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15551cat >conftest.$ac_ext <<_ACEOF
15552/* confdefs.h. */
15553_ACEOF
15554cat confdefs.h >>conftest.$ac_ext
15555cat >>conftest.$ac_ext <<_ACEOF
15556/* end confdefs.h. */
15557$ac_includes_default
15558#include <$ac_header>
15559_ACEOF
15560rm -f conftest.$ac_objext
15561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15562 (eval $ac_compile) 2>conftest.er1
a848cd7e 15563 ac_status=$?
ac1cb8d3
VS
15564 grep -v '^ *+' conftest.er1 >conftest.err
15565 rm -f conftest.er1
15566 cat conftest.err >&5
a848cd7e
SC
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
5ff751d6 15569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; } &&
15575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577 (eval $ac_try) 2>&5
15578 ac_status=$?
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
15581 ac_header_compiler=yes
15582else
15583 echo "$as_me: failed program was:" >&5
15584sed 's/^/| /' conftest.$ac_ext >&5
15585
15586ac_header_compiler=no
15587fi
ac1cb8d3 15588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15589echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15590echo "${ECHO_T}$ac_header_compiler" >&6
15591
15592# Is the header present?
15593echo "$as_me:$LINENO: checking $ac_header presence" >&5
15594echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15595cat >conftest.$ac_ext <<_ACEOF
15596/* confdefs.h. */
15597_ACEOF
15598cat confdefs.h >>conftest.$ac_ext
15599cat >>conftest.$ac_ext <<_ACEOF
15600/* end confdefs.h. */
15601#include <$ac_header>
15602_ACEOF
15603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15605 ac_status=$?
15606 grep -v '^ *+' conftest.er1 >conftest.err
15607 rm -f conftest.er1
15608 cat conftest.err >&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } >/dev/null; then
15611 if test -s conftest.err; then
15612 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15614 else
15615 ac_cpp_err=
15616 fi
15617else
15618 ac_cpp_err=yes
15619fi
15620if test -z "$ac_cpp_err"; then
15621 ac_header_preproc=yes
15622else
15623 echo "$as_me: failed program was:" >&5
15624sed 's/^/| /' conftest.$ac_ext >&5
15625
15626 ac_header_preproc=no
15627fi
15628rm -f conftest.err conftest.$ac_ext
15629echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15630echo "${ECHO_T}$ac_header_preproc" >&6
15631
15632# So? What about this header?
ac1cb8d3
VS
15633case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15634 yes:no: )
a848cd7e
SC
15635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15636echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15638echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15639 ac_header_preproc=yes
a848cd7e 15640 ;;
ac1cb8d3 15641 no:yes:* )
a848cd7e
SC
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15643echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15645echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15647echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15649echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15651echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15653echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15654 (
15655 cat <<\_ASBOX
ac1cb8d3
VS
15656## ----------------------------------------- ##
15657## Report this to wx-dev@lists.wxwidgets.org ##
15658## ----------------------------------------- ##
a848cd7e
SC
15659_ASBOX
15660 ) |
15661 sed "s/^/$as_me: WARNING: /" >&2
15662 ;;
15663esac
15664echo "$as_me:$LINENO: checking for $ac_header" >&5
15665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15666if eval "test \"\${$as_ac_Header+set}\" = set"; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15668else
ac1cb8d3 15669 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15670fi
15671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15672echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15673
15674fi
15675if test `eval echo '${'$as_ac_Header'}'` = yes; then
15676 cat >>confdefs.h <<_ACEOF
15677#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15678_ACEOF
15679
15680fi
15681
15682done
15683
15684
15685for ac_header in unistd.h
15686do
15687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15688if eval "test \"\${$as_ac_Header+set}\" = set"; then
15689 echo "$as_me:$LINENO: checking for $ac_header" >&5
15690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15691if eval "test \"\${$as_ac_Header+set}\" = set"; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15693fi
15694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15696else
15697 # Is the header compilable?
15698echo "$as_me:$LINENO: checking $ac_header usability" >&5
15699echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15700cat >conftest.$ac_ext <<_ACEOF
15701/* confdefs.h. */
15702_ACEOF
15703cat confdefs.h >>conftest.$ac_ext
15704cat >>conftest.$ac_ext <<_ACEOF
15705/* end confdefs.h. */
15706$ac_includes_default
15707#include <$ac_header>
15708_ACEOF
15709rm -f conftest.$ac_objext
15710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15711 (eval $ac_compile) 2>conftest.er1
a848cd7e 15712 ac_status=$?
ac1cb8d3
VS
15713 grep -v '^ *+' conftest.er1 >conftest.err
15714 rm -f conftest.er1
15715 cat conftest.err >&5
a848cd7e
SC
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } &&
5ff751d6 15718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720 (eval $ac_try) 2>&5
15721 ac_status=$?
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; } &&
15724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15730 ac_header_compiler=yes
15731else
15732 echo "$as_me: failed program was:" >&5
15733sed 's/^/| /' conftest.$ac_ext >&5
15734
15735ac_header_compiler=no
15736fi
ac1cb8d3 15737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15739echo "${ECHO_T}$ac_header_compiler" >&6
15740
15741# Is the header present?
15742echo "$as_me:$LINENO: checking $ac_header presence" >&5
15743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15744cat >conftest.$ac_ext <<_ACEOF
15745/* confdefs.h. */
15746_ACEOF
15747cat confdefs.h >>conftest.$ac_ext
15748cat >>conftest.$ac_ext <<_ACEOF
15749/* end confdefs.h. */
15750#include <$ac_header>
15751_ACEOF
15752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15754 ac_status=$?
15755 grep -v '^ *+' conftest.er1 >conftest.err
15756 rm -f conftest.er1
15757 cat conftest.err >&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); } >/dev/null; then
15760 if test -s conftest.err; then
15761 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15763 else
15764 ac_cpp_err=
15765 fi
15766else
15767 ac_cpp_err=yes
15768fi
15769if test -z "$ac_cpp_err"; then
15770 ac_header_preproc=yes
15771else
15772 echo "$as_me: failed program was:" >&5
15773sed 's/^/| /' conftest.$ac_ext >&5
15774
15775 ac_header_preproc=no
15776fi
15777rm -f conftest.err conftest.$ac_ext
15778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15779echo "${ECHO_T}$ac_header_preproc" >&6
15780
15781# So? What about this header?
ac1cb8d3
VS
15782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15783 yes:no: )
a848cd7e
SC
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15788 ac_header_preproc=yes
a848cd7e 15789 ;;
ac1cb8d3 15790 no:yes:* )
a848cd7e
SC
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15803 (
15804 cat <<\_ASBOX
ac1cb8d3
VS
15805## ----------------------------------------- ##
15806## Report this to wx-dev@lists.wxwidgets.org ##
15807## ----------------------------------------- ##
a848cd7e
SC
15808_ASBOX
15809 ) |
15810 sed "s/^/$as_me: WARNING: /" >&2
15811 ;;
15812esac
15813echo "$as_me:$LINENO: checking for $ac_header" >&5
15814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15815if eval "test \"\${$as_ac_Header+set}\" = set"; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15817else
ac1cb8d3 15818 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15819fi
15820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15822
15823fi
15824if test `eval echo '${'$as_ac_Header'}'` = yes; then
15825 cat >>confdefs.h <<_ACEOF
15826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15827_ACEOF
15828
15829fi
15830
15831done
15832
15833
15834for ac_header in wchar.h
15835do
15836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15837if eval "test \"\${$as_ac_Header+set}\" = set"; then
15838 echo "$as_me:$LINENO: checking for $ac_header" >&5
15839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15840if eval "test \"\${$as_ac_Header+set}\" = set"; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15842fi
15843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15845else
15846 # Is the header compilable?
15847echo "$as_me:$LINENO: checking $ac_header usability" >&5
15848echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15849cat >conftest.$ac_ext <<_ACEOF
15850/* confdefs.h. */
15851_ACEOF
15852cat confdefs.h >>conftest.$ac_ext
15853cat >>conftest.$ac_ext <<_ACEOF
15854/* end confdefs.h. */
15855$ac_includes_default
15856#include <$ac_header>
15857_ACEOF
15858rm -f conftest.$ac_objext
15859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15860 (eval $ac_compile) 2>conftest.er1
a848cd7e 15861 ac_status=$?
ac1cb8d3
VS
15862 grep -v '^ *+' conftest.er1 >conftest.err
15863 rm -f conftest.er1
15864 cat conftest.err >&5
a848cd7e
SC
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } &&
5ff751d6 15867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; } &&
15873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 ac_header_compiler=yes
15880else
15881 echo "$as_me: failed program was:" >&5
15882sed 's/^/| /' conftest.$ac_ext >&5
15883
15884ac_header_compiler=no
15885fi
ac1cb8d3 15886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15887echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15888echo "${ECHO_T}$ac_header_compiler" >&6
15889
15890# Is the header present?
15891echo "$as_me:$LINENO: checking $ac_header presence" >&5
15892echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15893cat >conftest.$ac_ext <<_ACEOF
15894/* confdefs.h. */
15895_ACEOF
15896cat confdefs.h >>conftest.$ac_ext
15897cat >>conftest.$ac_ext <<_ACEOF
15898/* end confdefs.h. */
15899#include <$ac_header>
15900_ACEOF
15901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15903 ac_status=$?
15904 grep -v '^ *+' conftest.er1 >conftest.err
15905 rm -f conftest.er1
15906 cat conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } >/dev/null; then
15909 if test -s conftest.err; then
15910 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15912 else
15913 ac_cpp_err=
15914 fi
15915else
15916 ac_cpp_err=yes
15917fi
15918if test -z "$ac_cpp_err"; then
15919 ac_header_preproc=yes
15920else
15921 echo "$as_me: failed program was:" >&5
15922sed 's/^/| /' conftest.$ac_ext >&5
15923
15924 ac_header_preproc=no
15925fi
15926rm -f conftest.err conftest.$ac_ext
15927echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15928echo "${ECHO_T}$ac_header_preproc" >&6
15929
15930# So? What about this header?
ac1cb8d3
VS
15931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15932 yes:no: )
a848cd7e
SC
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15937 ac_header_preproc=yes
a848cd7e 15938 ;;
ac1cb8d3 15939 no:yes:* )
a848cd7e
SC
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15943echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15947echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15952 (
15953 cat <<\_ASBOX
ac1cb8d3
VS
15954## ----------------------------------------- ##
15955## Report this to wx-dev@lists.wxwidgets.org ##
15956## ----------------------------------------- ##
a848cd7e
SC
15957_ASBOX
15958 ) |
15959 sed "s/^/$as_me: WARNING: /" >&2
15960 ;;
15961esac
15962echo "$as_me:$LINENO: checking for $ac_header" >&5
15963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15964if eval "test \"\${$as_ac_Header+set}\" = set"; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15966else
ac1cb8d3 15967 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15968fi
15969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15971
15972fi
15973if test `eval echo '${'$as_ac_Header'}'` = yes; then
15974 cat >>confdefs.h <<_ACEOF
15975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15976_ACEOF
15977
15978fi
15979
15980done
15981
15982
15983if test "$ac_cv_header_wchar_h" != "yes"; then
15984
15985for ac_header in wcstr.h
15986do
15987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15988if eval "test \"\${$as_ac_Header+set}\" = set"; then
15989 echo "$as_me:$LINENO: checking for $ac_header" >&5
15990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15991if eval "test \"\${$as_ac_Header+set}\" = set"; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15993fi
15994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15995echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15996else
15997 # Is the header compilable?
15998echo "$as_me:$LINENO: checking $ac_header usability" >&5
15999echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16000cat >conftest.$ac_ext <<_ACEOF
16001/* confdefs.h. */
16002_ACEOF
16003cat confdefs.h >>conftest.$ac_ext
16004cat >>conftest.$ac_ext <<_ACEOF
16005/* end confdefs.h. */
16006$ac_includes_default
16007#include <$ac_header>
16008_ACEOF
16009rm -f conftest.$ac_objext
16010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16011 (eval $ac_compile) 2>conftest.er1
a848cd7e 16012 ac_status=$?
ac1cb8d3
VS
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
a848cd7e
SC
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
5ff751d6 16018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; } &&
16024 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16027 ac_status=$?
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }; then
16030 ac_header_compiler=yes
16031else
16032 echo "$as_me: failed program was:" >&5
16033sed 's/^/| /' conftest.$ac_ext >&5
16034
16035ac_header_compiler=no
16036fi
ac1cb8d3 16037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16038echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16039echo "${ECHO_T}$ac_header_compiler" >&6
16040
16041# Is the header present?
16042echo "$as_me:$LINENO: checking $ac_header presence" >&5
16043echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16044cat >conftest.$ac_ext <<_ACEOF
16045/* confdefs.h. */
16046_ACEOF
16047cat confdefs.h >>conftest.$ac_ext
16048cat >>conftest.$ac_ext <<_ACEOF
16049/* end confdefs.h. */
16050#include <$ac_header>
16051_ACEOF
16052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16054 ac_status=$?
16055 grep -v '^ *+' conftest.er1 >conftest.err
16056 rm -f conftest.er1
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } >/dev/null; then
16060 if test -s conftest.err; then
16061 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16063 else
16064 ac_cpp_err=
16065 fi
16066else
16067 ac_cpp_err=yes
16068fi
16069if test -z "$ac_cpp_err"; then
16070 ac_header_preproc=yes
16071else
16072 echo "$as_me: failed program was:" >&5
16073sed 's/^/| /' conftest.$ac_ext >&5
16074
16075 ac_header_preproc=no
16076fi
16077rm -f conftest.err conftest.$ac_ext
16078echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16079echo "${ECHO_T}$ac_header_preproc" >&6
16080
16081# So? What about this header?
ac1cb8d3
VS
16082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16083 yes:no: )
a848cd7e
SC
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16085echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16087echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16088 ac_header_preproc=yes
a848cd7e 16089 ;;
ac1cb8d3 16090 no:yes:* )
a848cd7e
SC
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16092echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16094echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16096echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16098echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16100echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16102echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16103 (
16104 cat <<\_ASBOX
ac1cb8d3
VS
16105## ----------------------------------------- ##
16106## Report this to wx-dev@lists.wxwidgets.org ##
16107## ----------------------------------------- ##
a848cd7e
SC
16108_ASBOX
16109 ) |
16110 sed "s/^/$as_me: WARNING: /" >&2
16111 ;;
16112esac
16113echo "$as_me:$LINENO: checking for $ac_header" >&5
16114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16115if eval "test \"\${$as_ac_Header+set}\" = set"; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16117else
ac1cb8d3 16118 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16119fi
16120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16122
16123fi
16124if test `eval echo '${'$as_ac_Header'}'` = yes; then
16125 cat >>confdefs.h <<_ACEOF
16126#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16127_ACEOF
16128
16129fi
16130
16131done
16132
16133fi
16134
16135
16136for ac_header in fnmatch.h
16137do
16138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16139if eval "test \"\${$as_ac_Header+set}\" = set"; then
16140 echo "$as_me:$LINENO: checking for $ac_header" >&5
16141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16142if eval "test \"\${$as_ac_Header+set}\" = set"; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16144fi
16145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16147else
16148 # Is the header compilable?
16149echo "$as_me:$LINENO: checking $ac_header usability" >&5
16150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16151cat >conftest.$ac_ext <<_ACEOF
16152/* confdefs.h. */
16153_ACEOF
16154cat confdefs.h >>conftest.$ac_ext
16155cat >>conftest.$ac_ext <<_ACEOF
16156/* end confdefs.h. */
16157$ac_includes_default
16158#include <$ac_header>
16159_ACEOF
16160rm -f conftest.$ac_objext
16161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16162 (eval $ac_compile) 2>conftest.er1
a848cd7e 16163 ac_status=$?
ac1cb8d3
VS
16164 grep -v '^ *+' conftest.er1 >conftest.err
16165 rm -f conftest.er1
16166 cat conftest.err >&5
a848cd7e
SC
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); } &&
5ff751d6 16169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171 (eval $ac_try) 2>&5
16172 ac_status=$?
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; } &&
16175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_header_compiler=yes
16182else
16183 echo "$as_me: failed program was:" >&5
16184sed 's/^/| /' conftest.$ac_ext >&5
16185
16186ac_header_compiler=no
16187fi
ac1cb8d3 16188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16189echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16190echo "${ECHO_T}$ac_header_compiler" >&6
16191
16192# Is the header present?
16193echo "$as_me:$LINENO: checking $ac_header presence" >&5
16194echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16195cat >conftest.$ac_ext <<_ACEOF
16196/* confdefs.h. */
16197_ACEOF
16198cat confdefs.h >>conftest.$ac_ext
16199cat >>conftest.$ac_ext <<_ACEOF
16200/* end confdefs.h. */
16201#include <$ac_header>
16202_ACEOF
16203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16205 ac_status=$?
16206 grep -v '^ *+' conftest.er1 >conftest.err
16207 rm -f conftest.er1
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } >/dev/null; then
16211 if test -s conftest.err; then
16212 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16214 else
16215 ac_cpp_err=
16216 fi
16217else
16218 ac_cpp_err=yes
16219fi
16220if test -z "$ac_cpp_err"; then
16221 ac_header_preproc=yes
16222else
16223 echo "$as_me: failed program was:" >&5
16224sed 's/^/| /' conftest.$ac_ext >&5
16225
16226 ac_header_preproc=no
16227fi
16228rm -f conftest.err conftest.$ac_ext
16229echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16230echo "${ECHO_T}$ac_header_preproc" >&6
16231
16232# So? What about this header?
ac1cb8d3
VS
16233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16234 yes:no: )
a848cd7e
SC
16235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16236echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16238echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16239 ac_header_preproc=yes
a848cd7e 16240 ;;
ac1cb8d3 16241 no:yes:* )
a848cd7e
SC
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16243echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16245echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16247echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16249echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16251echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16253echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16254 (
16255 cat <<\_ASBOX
ac1cb8d3
VS
16256## ----------------------------------------- ##
16257## Report this to wx-dev@lists.wxwidgets.org ##
16258## ----------------------------------------- ##
a848cd7e
SC
16259_ASBOX
16260 ) |
16261 sed "s/^/$as_me: WARNING: /" >&2
16262 ;;
16263esac
16264echo "$as_me:$LINENO: checking for $ac_header" >&5
16265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16266if eval "test \"\${$as_ac_Header+set}\" = set"; then
16267 echo $ECHO_N "(cached) $ECHO_C" >&6
16268else
ac1cb8d3 16269 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16270fi
16271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16272echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16273
16274fi
16275if test `eval echo '${'$as_ac_Header'}'` = yes; then
16276 cat >>confdefs.h <<_ACEOF
16277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16278_ACEOF
16279
16280fi
16281
16282done
16283
16284
a848cd7e
SC
16285
16286for ac_header in langinfo.h
16287do
16288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16289if eval "test \"\${$as_ac_Header+set}\" = set"; then
16290 echo "$as_me:$LINENO: checking for $ac_header" >&5
16291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16292if eval "test \"\${$as_ac_Header+set}\" = set"; then
16293 echo $ECHO_N "(cached) $ECHO_C" >&6
16294fi
16295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16297else
16298 # Is the header compilable?
16299echo "$as_me:$LINENO: checking $ac_header usability" >&5
16300echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16301cat >conftest.$ac_ext <<_ACEOF
16302/* confdefs.h. */
16303_ACEOF
16304cat confdefs.h >>conftest.$ac_ext
16305cat >>conftest.$ac_ext <<_ACEOF
16306/* end confdefs.h. */
16307$ac_includes_default
16308#include <$ac_header>
16309_ACEOF
16310rm -f conftest.$ac_objext
16311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16312 (eval $ac_compile) 2>conftest.er1
a848cd7e 16313 ac_status=$?
ac1cb8d3
VS
16314 grep -v '^ *+' conftest.er1 >conftest.err
16315 rm -f conftest.er1
16316 cat conftest.err >&5
a848cd7e
SC
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } &&
5ff751d6 16319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; } &&
16325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327 (eval $ac_try) 2>&5
16328 ac_status=$?
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); }; }; then
16331 ac_header_compiler=yes
16332else
16333 echo "$as_me: failed program was:" >&5
16334sed 's/^/| /' conftest.$ac_ext >&5
16335
16336ac_header_compiler=no
16337fi
ac1cb8d3 16338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16340echo "${ECHO_T}$ac_header_compiler" >&6
16341
16342# Is the header present?
16343echo "$as_me:$LINENO: checking $ac_header presence" >&5
16344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16345cat >conftest.$ac_ext <<_ACEOF
16346/* confdefs.h. */
16347_ACEOF
16348cat confdefs.h >>conftest.$ac_ext
16349cat >>conftest.$ac_ext <<_ACEOF
16350/* end confdefs.h. */
16351#include <$ac_header>
16352_ACEOF
16353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16355 ac_status=$?
16356 grep -v '^ *+' conftest.er1 >conftest.err
16357 rm -f conftest.er1
16358 cat conftest.err >&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } >/dev/null; then
16361 if test -s conftest.err; then
16362 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16364 else
16365 ac_cpp_err=
16366 fi
16367else
16368 ac_cpp_err=yes
16369fi
16370if test -z "$ac_cpp_err"; then
16371 ac_header_preproc=yes
16372else
16373 echo "$as_me: failed program was:" >&5
16374sed 's/^/| /' conftest.$ac_ext >&5
16375
16376 ac_header_preproc=no
16377fi
16378rm -f conftest.err conftest.$ac_ext
16379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16380echo "${ECHO_T}$ac_header_preproc" >&6
16381
16382# So? What about this header?
ac1cb8d3
VS
16383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16384 yes:no: )
a848cd7e
SC
16385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16389 ac_header_preproc=yes
a848cd7e 16390 ;;
ac1cb8d3 16391 no:yes:* )
a848cd7e
SC
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16404 (
16405 cat <<\_ASBOX
ac1cb8d3
VS
16406## ----------------------------------------- ##
16407## Report this to wx-dev@lists.wxwidgets.org ##
16408## ----------------------------------------- ##
a848cd7e
SC
16409_ASBOX
16410 ) |
16411 sed "s/^/$as_me: WARNING: /" >&2
16412 ;;
16413esac
16414echo "$as_me:$LINENO: checking for $ac_header" >&5
16415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16416if eval "test \"\${$as_ac_Header+set}\" = set"; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16418else
ac1cb8d3 16419 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16420fi
16421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16423
16424fi
16425if test `eval echo '${'$as_ac_Header'}'` = yes; then
16426 cat >>confdefs.h <<_ACEOF
16427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16428_ACEOF
16429
16430fi
16431
16432done
16433
16434
16435case "${host}" in
16436 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16437 if test $ac_cv_header_langinfo_h = "yes" \
16438 -a \( "$wx_cv_gccversion" = "EMX2" \
16439 -o "$wx_cv_gccversion" = "EMX3" \
16440 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16441 LIBS="$LIBS -lintl"
16442 fi
16443 ;;
16444esac
16445
a848cd7e
SC
16446
16447echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16448echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16449if test "${ac_cv_c_const+set}" = set; then
16450 echo $ECHO_N "(cached) $ECHO_C" >&6
16451else
16452 cat >conftest.$ac_ext <<_ACEOF
16453/* confdefs.h. */
16454_ACEOF
16455cat confdefs.h >>conftest.$ac_ext
16456cat >>conftest.$ac_ext <<_ACEOF
16457/* end confdefs.h. */
16458
16459int
16460main ()
16461{
16462/* FIXME: Include the comments suggested by Paul. */
16463#ifndef __cplusplus
16464 /* Ultrix mips cc rejects this. */
16465 typedef int charset[2];
16466 const charset x;
16467 /* SunOS 4.1.1 cc rejects this. */
16468 char const *const *ccp;
16469 char **p;
16470 /* NEC SVR4.0.2 mips cc rejects this. */
16471 struct point {int x, y;};
16472 static struct point const zero = {0,0};
16473 /* AIX XL C 1.02.0.0 rejects this.
16474 It does not let you subtract one const X* pointer from another in
16475 an arm of an if-expression whose if-part is not a constant
16476 expression */
16477 const char *g = "string";
16478 ccp = &g + (g ? g-g : 0);
16479 /* HPUX 7.0 cc rejects these. */
16480 ++ccp;
16481 p = (char**) ccp;
16482 ccp = (char const *const *) p;
16483 { /* SCO 3.2v4 cc rejects this. */
16484 char *t;
16485 char const *s = 0 ? (char *) 0 : (char const *) 0;
16486
16487 *t++ = 0;
16488 }
16489 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16490 int x[] = {25, 17};
16491 const int *foo = &x[0];
16492 ++foo;
16493 }
16494 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16495 typedef const int *iptr;
16496 iptr p = 0;
16497 ++p;
16498 }
16499 { /* AIX XL C 1.02.0.0 rejects this saying
16500 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16501 struct s { int j; const int *ap[3]; };
16502 struct s *b; b->j = 5;
16503 }
16504 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16505 const int foo = 10;
16506 }
16507#endif
16508
16509 ;
16510 return 0;
16511}
16512_ACEOF
16513rm -f conftest.$ac_objext
16514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16515 (eval $ac_compile) 2>conftest.er1
a848cd7e 16516 ac_status=$?
ac1cb8d3
VS
16517 grep -v '^ *+' conftest.er1 >conftest.err
16518 rm -f conftest.er1
16519 cat conftest.err >&5
a848cd7e
SC
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); } &&
5ff751d6 16522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } &&
16528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 ac_cv_c_const=yes
16535else
16536 echo "$as_me: failed program was:" >&5
16537sed 's/^/| /' conftest.$ac_ext >&5
16538
16539ac_cv_c_const=no
16540fi
ac1cb8d3 16541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16542fi
16543echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16544echo "${ECHO_T}$ac_cv_c_const" >&6
16545if test $ac_cv_c_const = no; then
16546
16547cat >>confdefs.h <<\_ACEOF
16548#define const
16549_ACEOF
16550
16551fi
16552
16553echo "$as_me:$LINENO: checking for inline" >&5
16554echo $ECHO_N "checking for inline... $ECHO_C" >&6
16555if test "${ac_cv_c_inline+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16557else
16558 ac_cv_c_inline=no
16559for ac_kw in inline __inline__ __inline; do
16560 cat >conftest.$ac_ext <<_ACEOF
16561/* confdefs.h. */
16562_ACEOF
16563cat confdefs.h >>conftest.$ac_ext
16564cat >>conftest.$ac_ext <<_ACEOF
16565/* end confdefs.h. */
16566#ifndef __cplusplus
16567typedef int foo_t;
16568static $ac_kw foo_t static_foo () {return 0; }
16569$ac_kw foo_t foo () {return 0; }
16570#endif
16571
16572_ACEOF
16573rm -f conftest.$ac_objext
16574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16575 (eval $ac_compile) 2>conftest.er1
a848cd7e 16576 ac_status=$?
ac1cb8d3
VS
16577 grep -v '^ *+' conftest.er1 >conftest.err
16578 rm -f conftest.er1
16579 cat conftest.err >&5
a848cd7e
SC
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } &&
5ff751d6 16582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; } &&
16588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 ac_cv_c_inline=$ac_kw; break
16595else
16596 echo "$as_me: failed program was:" >&5
16597sed 's/^/| /' conftest.$ac_ext >&5
16598
16599fi
ac1cb8d3 16600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16601done
16602
16603fi
16604echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16605echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16606
16607
a848cd7e
SC
16608case $ac_cv_c_inline in
16609 inline | yes) ;;
ac1cb8d3
VS
16610 *)
16611 case $ac_cv_c_inline in
16612 no) ac_val=;;
16613 *) ac_val=$ac_cv_c_inline;;
16614 esac
16615 cat >>confdefs.h <<_ACEOF
16616#ifndef __cplusplus
16617#define inline $ac_val
16618#endif
de59c161 16619_ACEOF
ac1cb8d3 16620 ;;
a848cd7e
SC
16621esac
16622
16623
16624echo "$as_me:$LINENO: checking for char" >&5
16625echo $ECHO_N "checking for char... $ECHO_C" >&6
16626if test "${ac_cv_type_char+set}" = set; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16628else
16629 cat >conftest.$ac_ext <<_ACEOF
16630/* confdefs.h. */
16631_ACEOF
16632cat confdefs.h >>conftest.$ac_ext
16633cat >>conftest.$ac_ext <<_ACEOF
16634/* end confdefs.h. */
16635$ac_includes_default
16636int
16637main ()
16638{
16639if ((char *) 0)
16640 return 0;
16641if (sizeof (char))
16642 return 0;
16643 ;
16644 return 0;
16645}
16646_ACEOF
16647rm -f conftest.$ac_objext
16648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16649 (eval $ac_compile) 2>conftest.er1
a848cd7e 16650 ac_status=$?
ac1cb8d3
VS
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
a848cd7e
SC
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
5ff751d6 16656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_cv_type_char=yes
16669else
16670 echo "$as_me: failed program was:" >&5
16671sed 's/^/| /' conftest.$ac_ext >&5
16672
16673ac_cv_type_char=no
16674fi
ac1cb8d3 16675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16676fi
16677echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16678echo "${ECHO_T}$ac_cv_type_char" >&6
16679
16680echo "$as_me:$LINENO: checking size of char" >&5
16681echo $ECHO_N "checking size of char... $ECHO_C" >&6
16682if test "${ac_cv_sizeof_char+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16684else
16685 if test "$ac_cv_type_char" = yes; then
16686 # The cast to unsigned long works around a bug in the HP C Compiler
16687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16689 # This bug is HP SR number 8606223364.
16690 if test "$cross_compiling" = yes; then
16691 # Depending upon the size, compute the lo and hi bounds.
16692cat >conftest.$ac_ext <<_ACEOF
16693/* confdefs.h. */
16694_ACEOF
16695cat confdefs.h >>conftest.$ac_ext
16696cat >>conftest.$ac_ext <<_ACEOF
16697/* end confdefs.h. */
16698$ac_includes_default
16699int
16700main ()
16701{
16702static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16703test_array [0] = 0
16704
16705 ;
16706 return 0;
16707}
16708_ACEOF
16709rm -f conftest.$ac_objext
16710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16711 (eval $ac_compile) 2>conftest.er1
a848cd7e 16712 ac_status=$?
ac1cb8d3
VS
16713 grep -v '^ *+' conftest.er1 >conftest.err
16714 rm -f conftest.er1
16715 cat conftest.err >&5
a848cd7e
SC
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
5ff751d6 16718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; } &&
16724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16730 ac_lo=0 ac_mid=0
16731 while :; do
16732 cat >conftest.$ac_ext <<_ACEOF
16733/* confdefs.h. */
16734_ACEOF
16735cat confdefs.h >>conftest.$ac_ext
16736cat >>conftest.$ac_ext <<_ACEOF
16737/* end confdefs.h. */
16738$ac_includes_default
16739int
16740main ()
16741{
16742static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16743test_array [0] = 0
16744
16745 ;
16746 return 0;
16747}
16748_ACEOF
16749rm -f conftest.$ac_objext
16750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16751 (eval $ac_compile) 2>conftest.er1
a848cd7e 16752 ac_status=$?
ac1cb8d3
VS
16753 grep -v '^ *+' conftest.er1 >conftest.err
16754 rm -f conftest.er1
16755 cat conftest.err >&5
a848cd7e
SC
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
5ff751d6 16758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; } &&
16764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16767 ac_status=$?
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; }; then
16770 ac_hi=$ac_mid; break
16771else
16772 echo "$as_me: failed program was:" >&5
16773sed 's/^/| /' conftest.$ac_ext >&5
16774
16775ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16776 if test $ac_lo -le $ac_mid; then
16777 ac_lo= ac_hi=
16778 break
16779 fi
16780 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16781fi
ac1cb8d3 16782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16783 done
16784else
16785 echo "$as_me: failed program was:" >&5
16786sed 's/^/| /' conftest.$ac_ext >&5
16787
16788cat >conftest.$ac_ext <<_ACEOF
16789/* confdefs.h. */
16790_ACEOF
16791cat confdefs.h >>conftest.$ac_ext
16792cat >>conftest.$ac_ext <<_ACEOF
16793/* end confdefs.h. */
16794$ac_includes_default
16795int
16796main ()
16797{
16798static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16799test_array [0] = 0
16800
16801 ;
16802 return 0;
16803}
16804_ACEOF
16805rm -f conftest.$ac_objext
16806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16807 (eval $ac_compile) 2>conftest.er1
a848cd7e 16808 ac_status=$?
ac1cb8d3
VS
16809 grep -v '^ *+' conftest.er1 >conftest.err
16810 rm -f conftest.er1
16811 cat conftest.err >&5
a848cd7e
SC
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
5ff751d6 16814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } &&
16820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; }; then
16826 ac_hi=-1 ac_mid=-1
16827 while :; do
16828 cat >conftest.$ac_ext <<_ACEOF
16829/* confdefs.h. */
16830_ACEOF
16831cat confdefs.h >>conftest.$ac_ext
16832cat >>conftest.$ac_ext <<_ACEOF
16833/* end confdefs.h. */
16834$ac_includes_default
16835int
16836main ()
16837{
16838static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16839test_array [0] = 0
16840
16841 ;
16842 return 0;
16843}
16844_ACEOF
16845rm -f conftest.$ac_objext
16846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16847 (eval $ac_compile) 2>conftest.er1
a848cd7e 16848 ac_status=$?
ac1cb8d3
VS
16849 grep -v '^ *+' conftest.er1 >conftest.err
16850 rm -f conftest.er1
16851 cat conftest.err >&5
a848cd7e
SC
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
5ff751d6 16854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 ac_lo=$ac_mid; break
16867else
16868 echo "$as_me: failed program was:" >&5
16869sed 's/^/| /' conftest.$ac_ext >&5
16870
16871ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16872 if test $ac_mid -le $ac_hi; then
16873 ac_lo= ac_hi=
16874 break
16875 fi
16876 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16877fi
ac1cb8d3 16878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16879 done
16880else
16881 echo "$as_me: failed program was:" >&5
16882sed 's/^/| /' conftest.$ac_ext >&5
16883
16884ac_lo= ac_hi=
16885fi
ac1cb8d3 16886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16887fi
ac1cb8d3 16888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16889# Binary search between lo and hi bounds.
16890while test "x$ac_lo" != "x$ac_hi"; do
16891 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16892 cat >conftest.$ac_ext <<_ACEOF
16893/* confdefs.h. */
16894_ACEOF
16895cat confdefs.h >>conftest.$ac_ext
16896cat >>conftest.$ac_ext <<_ACEOF
16897/* end confdefs.h. */
16898$ac_includes_default
16899int
16900main ()
16901{
16902static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16903test_array [0] = 0
16904
16905 ;
16906 return 0;
16907}
16908_ACEOF
16909rm -f conftest.$ac_objext
16910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16911 (eval $ac_compile) 2>conftest.er1
a848cd7e 16912 ac_status=$?
ac1cb8d3
VS
16913 grep -v '^ *+' conftest.er1 >conftest.err
16914 rm -f conftest.er1
16915 cat conftest.err >&5
a848cd7e
SC
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
5ff751d6 16918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; } &&
16924 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_hi=$ac_mid
16931else
16932 echo "$as_me: failed program was:" >&5
16933sed 's/^/| /' conftest.$ac_ext >&5
16934
16935ac_lo=`expr '(' $ac_mid ')' + 1`
16936fi
ac1cb8d3 16937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16938done
16939case $ac_lo in
16940?*) ac_cv_sizeof_char=$ac_lo;;
16941'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16942See \`config.log' for more details." >&5
16943echo "$as_me: error: cannot compute sizeof (char), 77
16944See \`config.log' for more details." >&2;}
16945 { (exit 1); exit 1; }; } ;;
16946esac
16947else
16948 if test "$cross_compiling" = yes; then
5ff751d6
VZ
16949 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16950echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16951 { (exit 1); exit 1; }; }
16952else
16953 cat >conftest.$ac_ext <<_ACEOF
16954/* confdefs.h. */
16955_ACEOF
16956cat confdefs.h >>conftest.$ac_ext
16957cat >>conftest.$ac_ext <<_ACEOF
16958/* end confdefs.h. */
16959$ac_includes_default
16960long longval () { return (long) (sizeof (char)); }
16961unsigned long ulongval () { return (long) (sizeof (char)); }
16962#include <stdio.h>
16963#include <stdlib.h>
16964int
16965main ()
16966{
16967
16968 FILE *f = fopen ("conftest.val", "w");
16969 if (! f)
16970 exit (1);
16971 if (((long) (sizeof (char))) < 0)
16972 {
16973 long i = longval ();
16974 if (i != ((long) (sizeof (char))))
16975 exit (1);
16976 fprintf (f, "%ld\n", i);
16977 }
16978 else
16979 {
16980 unsigned long i = ulongval ();
16981 if (i != ((long) (sizeof (char))))
16982 exit (1);
16983 fprintf (f, "%lu\n", i);
16984 }
16985 exit (ferror (f) || fclose (f) != 0);
16986
16987 ;
16988 return 0;
16989}
16990_ACEOF
16991rm -f conftest$ac_exeext
16992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16993 (eval $ac_link) 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998 (eval $ac_try) 2>&5
16999 ac_status=$?
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
17002 ac_cv_sizeof_char=`cat conftest.val`
17003else
17004 echo "$as_me: program exited with status $ac_status" >&5
17005echo "$as_me: failed program was:" >&5
17006sed 's/^/| /' conftest.$ac_ext >&5
17007
17008( exit $ac_status )
17009{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17010See \`config.log' for more details." >&5
17011echo "$as_me: error: cannot compute sizeof (char), 77
17012See \`config.log' for more details." >&2;}
17013 { (exit 1); exit 1; }; }
17014fi
ac1cb8d3 17015rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17016fi
17017fi
17018rm -f conftest.val
17019else
17020 ac_cv_sizeof_char=0
17021fi
17022fi
17023echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17024echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17025cat >>confdefs.h <<_ACEOF
17026#define SIZEOF_CHAR $ac_cv_sizeof_char
17027_ACEOF
17028
17029
17030echo "$as_me:$LINENO: checking for short" >&5
17031echo $ECHO_N "checking for short... $ECHO_C" >&6
17032if test "${ac_cv_type_short+set}" = set; then
17033 echo $ECHO_N "(cached) $ECHO_C" >&6
17034else
17035 cat >conftest.$ac_ext <<_ACEOF
17036/* confdefs.h. */
17037_ACEOF
17038cat confdefs.h >>conftest.$ac_ext
17039cat >>conftest.$ac_ext <<_ACEOF
17040/* end confdefs.h. */
17041$ac_includes_default
17042int
17043main ()
17044{
17045if ((short *) 0)
17046 return 0;
17047if (sizeof (short))
17048 return 0;
17049 ;
17050 return 0;
17051}
17052_ACEOF
17053rm -f conftest.$ac_objext
17054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17055 (eval $ac_compile) 2>conftest.er1
a848cd7e 17056 ac_status=$?
ac1cb8d3
VS
17057 grep -v '^ *+' conftest.er1 >conftest.err
17058 rm -f conftest.er1
17059 cat conftest.err >&5
a848cd7e
SC
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } &&
5ff751d6 17062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; } &&
17068 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
17074 ac_cv_type_short=yes
17075else
17076 echo "$as_me: failed program was:" >&5
17077sed 's/^/| /' conftest.$ac_ext >&5
17078
17079ac_cv_type_short=no
17080fi
ac1cb8d3 17081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17082fi
17083echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17084echo "${ECHO_T}$ac_cv_type_short" >&6
17085
17086echo "$as_me:$LINENO: checking size of short" >&5
17087echo $ECHO_N "checking size of short... $ECHO_C" >&6
17088if test "${ac_cv_sizeof_short+set}" = set; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17090else
17091 if test "$ac_cv_type_short" = yes; then
17092 # The cast to unsigned long works around a bug in the HP C Compiler
17093 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17094 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17095 # This bug is HP SR number 8606223364.
17096 if test "$cross_compiling" = yes; then
17097 # Depending upon the size, compute the lo and hi bounds.
17098cat >conftest.$ac_ext <<_ACEOF
17099/* confdefs.h. */
17100_ACEOF
17101cat confdefs.h >>conftest.$ac_ext
17102cat >>conftest.$ac_ext <<_ACEOF
17103/* end confdefs.h. */
17104$ac_includes_default
17105int
17106main ()
17107{
17108static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17109test_array [0] = 0
17110
17111 ;
17112 return 0;
17113}
17114_ACEOF
17115rm -f conftest.$ac_objext
17116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17117 (eval $ac_compile) 2>conftest.er1
a848cd7e 17118 ac_status=$?
ac1cb8d3
VS
17119 grep -v '^ *+' conftest.er1 >conftest.err
17120 rm -f conftest.er1
17121 cat conftest.err >&5
a848cd7e
SC
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } &&
5ff751d6 17124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17127 ac_status=$?
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; } &&
17130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17133 ac_status=$?
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; }; then
17136 ac_lo=0 ac_mid=0
17137 while :; do
17138 cat >conftest.$ac_ext <<_ACEOF
17139/* confdefs.h. */
17140_ACEOF
17141cat confdefs.h >>conftest.$ac_ext
17142cat >>conftest.$ac_ext <<_ACEOF
17143/* end confdefs.h. */
17144$ac_includes_default
17145int
17146main ()
17147{
17148static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17149test_array [0] = 0
17150
17151 ;
17152 return 0;
17153}
17154_ACEOF
17155rm -f conftest.$ac_objext
17156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17157 (eval $ac_compile) 2>conftest.er1
a848cd7e 17158 ac_status=$?
ac1cb8d3
VS
17159 grep -v '^ *+' conftest.er1 >conftest.err
17160 rm -f conftest.er1
17161 cat conftest.err >&5
a848cd7e
SC
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
5ff751d6 17164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; } &&
17170 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172 (eval $ac_try) 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; }; then
17176 ac_hi=$ac_mid; break
17177else
17178 echo "$as_me: failed program was:" >&5
17179sed 's/^/| /' conftest.$ac_ext >&5
17180
17181ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17182 if test $ac_lo -le $ac_mid; then
17183 ac_lo= ac_hi=
17184 break
17185 fi
17186 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17187fi
ac1cb8d3 17188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17189 done
17190else
17191 echo "$as_me: failed program was:" >&5
17192sed 's/^/| /' conftest.$ac_ext >&5
17193
17194cat >conftest.$ac_ext <<_ACEOF
17195/* confdefs.h. */
17196_ACEOF
17197cat confdefs.h >>conftest.$ac_ext
17198cat >>conftest.$ac_ext <<_ACEOF
17199/* end confdefs.h. */
17200$ac_includes_default
17201int
17202main ()
17203{
17204static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17205test_array [0] = 0
17206
17207 ;
17208 return 0;
17209}
17210_ACEOF
17211rm -f conftest.$ac_objext
17212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17213 (eval $ac_compile) 2>conftest.er1
a848cd7e 17214 ac_status=$?
ac1cb8d3
VS
17215 grep -v '^ *+' conftest.er1 >conftest.err
17216 rm -f conftest.er1
17217 cat conftest.err >&5
a848cd7e
SC
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } &&
5ff751d6 17220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; } &&
17226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17232 ac_hi=-1 ac_mid=-1
17233 while :; do
17234 cat >conftest.$ac_ext <<_ACEOF
17235/* confdefs.h. */
17236_ACEOF
17237cat confdefs.h >>conftest.$ac_ext
17238cat >>conftest.$ac_ext <<_ACEOF
17239/* end confdefs.h. */
17240$ac_includes_default
17241int
17242main ()
17243{
17244static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17245test_array [0] = 0
17246
17247 ;
17248 return 0;
17249}
17250_ACEOF
17251rm -f conftest.$ac_objext
17252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17253 (eval $ac_compile) 2>conftest.er1
a848cd7e 17254 ac_status=$?
ac1cb8d3
VS
17255 grep -v '^ *+' conftest.er1 >conftest.err
17256 rm -f conftest.er1
17257 cat conftest.err >&5
a848cd7e
SC
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } &&
5ff751d6 17260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; } &&
17266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17272 ac_lo=$ac_mid; break
17273else
17274 echo "$as_me: failed program was:" >&5
17275sed 's/^/| /' conftest.$ac_ext >&5
17276
17277ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17278 if test $ac_mid -le $ac_hi; then
17279 ac_lo= ac_hi=
17280 break
17281 fi
17282 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17283fi
ac1cb8d3 17284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17285 done
17286else
17287 echo "$as_me: failed program was:" >&5
17288sed 's/^/| /' conftest.$ac_ext >&5
17289
17290ac_lo= ac_hi=
17291fi
ac1cb8d3 17292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17293fi
ac1cb8d3 17294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17295# Binary search between lo and hi bounds.
17296while test "x$ac_lo" != "x$ac_hi"; do
17297 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17298 cat >conftest.$ac_ext <<_ACEOF
17299/* confdefs.h. */
17300_ACEOF
17301cat confdefs.h >>conftest.$ac_ext
17302cat >>conftest.$ac_ext <<_ACEOF
17303/* end confdefs.h. */
17304$ac_includes_default
17305int
17306main ()
17307{
17308static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17309test_array [0] = 0
17310
17311 ;
17312 return 0;
17313}
17314_ACEOF
17315rm -f conftest.$ac_objext
17316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17317 (eval $ac_compile) 2>conftest.er1
a848cd7e 17318 ac_status=$?
ac1cb8d3
VS
17319 grep -v '^ *+' conftest.er1 >conftest.err
17320 rm -f conftest.er1
17321 cat conftest.err >&5
a848cd7e
SC
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
5ff751d6 17324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_hi=$ac_mid
17337else
17338 echo "$as_me: failed program was:" >&5
17339sed 's/^/| /' conftest.$ac_ext >&5
17340
17341ac_lo=`expr '(' $ac_mid ')' + 1`
17342fi
ac1cb8d3 17343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17344done
17345case $ac_lo in
17346?*) ac_cv_sizeof_short=$ac_lo;;
17347'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17348See \`config.log' for more details." >&5
17349echo "$as_me: error: cannot compute sizeof (short), 77
17350See \`config.log' for more details." >&2;}
17351 { (exit 1); exit 1; }; } ;;
17352esac
17353else
17354 if test "$cross_compiling" = yes; then
5ff751d6
VZ
17355 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17356echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17357 { (exit 1); exit 1; }; }
17358else
17359 cat >conftest.$ac_ext <<_ACEOF
17360/* confdefs.h. */
17361_ACEOF
17362cat confdefs.h >>conftest.$ac_ext
17363cat >>conftest.$ac_ext <<_ACEOF
17364/* end confdefs.h. */
17365$ac_includes_default
17366long longval () { return (long) (sizeof (short)); }
17367unsigned long ulongval () { return (long) (sizeof (short)); }
17368#include <stdio.h>
17369#include <stdlib.h>
17370int
17371main ()
17372{
17373
17374 FILE *f = fopen ("conftest.val", "w");
17375 if (! f)
17376 exit (1);
17377 if (((long) (sizeof (short))) < 0)
17378 {
17379 long i = longval ();
17380 if (i != ((long) (sizeof (short))))
17381 exit (1);
17382 fprintf (f, "%ld\n", i);
17383 }
17384 else
17385 {
17386 unsigned long i = ulongval ();
17387 if (i != ((long) (sizeof (short))))
17388 exit (1);
17389 fprintf (f, "%lu\n", i);
17390 }
17391 exit (ferror (f) || fclose (f) != 0);
17392
17393 ;
17394 return 0;
17395}
17396_ACEOF
17397rm -f conftest$ac_exeext
17398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17399 (eval $ac_link) 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17405 ac_status=$?
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; }; then
17408 ac_cv_sizeof_short=`cat conftest.val`
17409else
17410 echo "$as_me: program exited with status $ac_status" >&5
17411echo "$as_me: failed program was:" >&5
17412sed 's/^/| /' conftest.$ac_ext >&5
17413
17414( exit $ac_status )
17415{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17416See \`config.log' for more details." >&5
17417echo "$as_me: error: cannot compute sizeof (short), 77
17418See \`config.log' for more details." >&2;}
17419 { (exit 1); exit 1; }; }
17420fi
ac1cb8d3 17421rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17422fi
17423fi
17424rm -f conftest.val
17425else
17426 ac_cv_sizeof_short=0
17427fi
17428fi
17429echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17430echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17431cat >>confdefs.h <<_ACEOF
17432#define SIZEOF_SHORT $ac_cv_sizeof_short
17433_ACEOF
17434
17435
17436echo "$as_me:$LINENO: checking for void *" >&5
17437echo $ECHO_N "checking for void *... $ECHO_C" >&6
17438if test "${ac_cv_type_void_p+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17440else
17441 cat >conftest.$ac_ext <<_ACEOF
17442/* confdefs.h. */
17443_ACEOF
17444cat confdefs.h >>conftest.$ac_ext
17445cat >>conftest.$ac_ext <<_ACEOF
17446/* end confdefs.h. */
17447$ac_includes_default
17448int
17449main ()
17450{
17451if ((void * *) 0)
17452 return 0;
17453if (sizeof (void *))
17454 return 0;
17455 ;
17456 return 0;
17457}
17458_ACEOF
17459rm -f conftest.$ac_objext
17460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17461 (eval $ac_compile) 2>conftest.er1
a848cd7e 17462 ac_status=$?
ac1cb8d3
VS
17463 grep -v '^ *+' conftest.er1 >conftest.err
17464 rm -f conftest.er1
17465 cat conftest.err >&5
a848cd7e
SC
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
5ff751d6 17468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; } &&
17474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 ac_cv_type_void_p=yes
17481else
17482 echo "$as_me: failed program was:" >&5
17483sed 's/^/| /' conftest.$ac_ext >&5
17484
17485ac_cv_type_void_p=no
17486fi
ac1cb8d3 17487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17488fi
17489echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17490echo "${ECHO_T}$ac_cv_type_void_p" >&6
17491
17492echo "$as_me:$LINENO: checking size of void *" >&5
17493echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17494if test "${ac_cv_sizeof_void_p+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17496else
17497 if test "$ac_cv_type_void_p" = yes; then
17498 # The cast to unsigned long works around a bug in the HP C Compiler
17499 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17500 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17501 # This bug is HP SR number 8606223364.
17502 if test "$cross_compiling" = yes; then
17503 # Depending upon the size, compute the lo and hi bounds.
17504cat >conftest.$ac_ext <<_ACEOF
17505/* confdefs.h. */
17506_ACEOF
17507cat confdefs.h >>conftest.$ac_ext
17508cat >>conftest.$ac_ext <<_ACEOF
17509/* end confdefs.h. */
17510$ac_includes_default
17511int
17512main ()
17513{
17514static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17515test_array [0] = 0
17516
17517 ;
17518 return 0;
17519}
17520_ACEOF
17521rm -f conftest.$ac_objext
17522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17523 (eval $ac_compile) 2>conftest.er1
a848cd7e 17524 ac_status=$?
ac1cb8d3
VS
17525 grep -v '^ *+' conftest.er1 >conftest.err
17526 rm -f conftest.er1
17527 cat conftest.err >&5
a848cd7e
SC
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } &&
5ff751d6 17530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; } &&
17536 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 ac_lo=0 ac_mid=0
17543 while :; do
17544 cat >conftest.$ac_ext <<_ACEOF
17545/* confdefs.h. */
17546_ACEOF
17547cat confdefs.h >>conftest.$ac_ext
17548cat >>conftest.$ac_ext <<_ACEOF
17549/* end confdefs.h. */
17550$ac_includes_default
17551int
17552main ()
17553{
17554static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17555test_array [0] = 0
17556
17557 ;
17558 return 0;
17559}
17560_ACEOF
17561rm -f conftest.$ac_objext
17562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17563 (eval $ac_compile) 2>conftest.er1
a848cd7e 17564 ac_status=$?
ac1cb8d3
VS
17565 grep -v '^ *+' conftest.er1 >conftest.err
17566 rm -f conftest.er1
17567 cat conftest.err >&5
a848cd7e
SC
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } &&
5ff751d6 17570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; } &&
17576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
17582 ac_hi=$ac_mid; break
17583else
17584 echo "$as_me: failed program was:" >&5
17585sed 's/^/| /' conftest.$ac_ext >&5
17586
17587ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17588 if test $ac_lo -le $ac_mid; then
17589 ac_lo= ac_hi=
17590 break
17591 fi
17592 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17593fi
ac1cb8d3 17594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17595 done
17596else
17597 echo "$as_me: failed program was:" >&5
17598sed 's/^/| /' conftest.$ac_ext >&5
17599
17600cat >conftest.$ac_ext <<_ACEOF
17601/* confdefs.h. */
17602_ACEOF
17603cat confdefs.h >>conftest.$ac_ext
17604cat >>conftest.$ac_ext <<_ACEOF
17605/* end confdefs.h. */
17606$ac_includes_default
17607int
17608main ()
17609{
17610static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17611test_array [0] = 0
17612
17613 ;
17614 return 0;
17615}
17616_ACEOF
17617rm -f conftest.$ac_objext
17618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17619 (eval $ac_compile) 2>conftest.er1
a848cd7e 17620 ac_status=$?
ac1cb8d3
VS
17621 grep -v '^ *+' conftest.er1 >conftest.err
17622 rm -f conftest.er1
17623 cat conftest.err >&5
a848cd7e
SC
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
5ff751d6 17626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_hi=-1 ac_mid=-1
17639 while :; do
17640 cat >conftest.$ac_ext <<_ACEOF
17641/* confdefs.h. */
17642_ACEOF
17643cat confdefs.h >>conftest.$ac_ext
17644cat >>conftest.$ac_ext <<_ACEOF
17645/* end confdefs.h. */
17646$ac_includes_default
17647int
17648main ()
17649{
17650static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17651test_array [0] = 0
17652
17653 ;
17654 return 0;
17655}
17656_ACEOF
17657rm -f conftest.$ac_objext
17658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17659 (eval $ac_compile) 2>conftest.er1
a848cd7e 17660 ac_status=$?
ac1cb8d3
VS
17661 grep -v '^ *+' conftest.er1 >conftest.err
17662 rm -f conftest.er1
17663 cat conftest.err >&5
a848cd7e
SC
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
5ff751d6 17666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; }; then
17678 ac_lo=$ac_mid; break
17679else
17680 echo "$as_me: failed program was:" >&5
17681sed 's/^/| /' conftest.$ac_ext >&5
17682
17683ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17684 if test $ac_mid -le $ac_hi; then
17685 ac_lo= ac_hi=
17686 break
17687 fi
17688 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17689fi
ac1cb8d3 17690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17691 done
17692else
17693 echo "$as_me: failed program was:" >&5
17694sed 's/^/| /' conftest.$ac_ext >&5
17695
17696ac_lo= ac_hi=
17697fi
ac1cb8d3 17698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17699fi
ac1cb8d3 17700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17701# Binary search between lo and hi bounds.
17702while test "x$ac_lo" != "x$ac_hi"; do
17703 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17704 cat >conftest.$ac_ext <<_ACEOF
17705/* confdefs.h. */
17706_ACEOF
17707cat confdefs.h >>conftest.$ac_ext
17708cat >>conftest.$ac_ext <<_ACEOF
17709/* end confdefs.h. */
17710$ac_includes_default
17711int
17712main ()
17713{
17714static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17715test_array [0] = 0
17716
17717 ;
17718 return 0;
17719}
17720_ACEOF
17721rm -f conftest.$ac_objext
17722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17723 (eval $ac_compile) 2>conftest.er1
a848cd7e 17724 ac_status=$?
ac1cb8d3
VS
17725 grep -v '^ *+' conftest.er1 >conftest.err
17726 rm -f conftest.er1
17727 cat conftest.err >&5
a848cd7e
SC
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); } &&
5ff751d6 17730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732 (eval $ac_try) 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; } &&
17736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738 (eval $ac_try) 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; }; then
17742 ac_hi=$ac_mid
17743else
17744 echo "$as_me: failed program was:" >&5
17745sed 's/^/| /' conftest.$ac_ext >&5
17746
17747ac_lo=`expr '(' $ac_mid ')' + 1`
17748fi
ac1cb8d3 17749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17750done
17751case $ac_lo in
17752?*) ac_cv_sizeof_void_p=$ac_lo;;
17753'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17754See \`config.log' for more details." >&5
17755echo "$as_me: error: cannot compute sizeof (void *), 77
17756See \`config.log' for more details." >&2;}
17757 { (exit 1); exit 1; }; } ;;
17758esac
17759else
17760 if test "$cross_compiling" = yes; then
5ff751d6
VZ
17761 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17762echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17763 { (exit 1); exit 1; }; }
17764else
17765 cat >conftest.$ac_ext <<_ACEOF
17766/* confdefs.h. */
17767_ACEOF
17768cat confdefs.h >>conftest.$ac_ext
17769cat >>conftest.$ac_ext <<_ACEOF
17770/* end confdefs.h. */
17771$ac_includes_default
17772long longval () { return (long) (sizeof (void *)); }
17773unsigned long ulongval () { return (long) (sizeof (void *)); }
17774#include <stdio.h>
17775#include <stdlib.h>
17776int
17777main ()
17778{
17779
17780 FILE *f = fopen ("conftest.val", "w");
17781 if (! f)
17782 exit (1);
17783 if (((long) (sizeof (void *))) < 0)
17784 {
17785 long i = longval ();
17786 if (i != ((long) (sizeof (void *))))
17787 exit (1);
17788 fprintf (f, "%ld\n", i);
17789 }
17790 else
17791 {
17792 unsigned long i = ulongval ();
17793 if (i != ((long) (sizeof (void *))))
17794 exit (1);
17795 fprintf (f, "%lu\n", i);
17796 }
17797 exit (ferror (f) || fclose (f) != 0);
17798
17799 ;
17800 return 0;
17801}
17802_ACEOF
17803rm -f conftest$ac_exeext
17804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17805 (eval $ac_link) 2>&5
17806 ac_status=$?
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 ac_cv_sizeof_void_p=`cat conftest.val`
17815else
17816 echo "$as_me: program exited with status $ac_status" >&5
17817echo "$as_me: failed program was:" >&5
17818sed 's/^/| /' conftest.$ac_ext >&5
17819
17820( exit $ac_status )
17821{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17822See \`config.log' for more details." >&5
17823echo "$as_me: error: cannot compute sizeof (void *), 77
17824See \`config.log' for more details." >&2;}
17825 { (exit 1); exit 1; }; }
17826fi
ac1cb8d3 17827rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17828fi
17829fi
17830rm -f conftest.val
17831else
17832 ac_cv_sizeof_void_p=0
17833fi
17834fi
17835echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17836echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17837cat >>confdefs.h <<_ACEOF
17838#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17839_ACEOF
17840
17841
17842echo "$as_me:$LINENO: checking for int" >&5
17843echo $ECHO_N "checking for int... $ECHO_C" >&6
17844if test "${ac_cv_type_int+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17846else
17847 cat >conftest.$ac_ext <<_ACEOF
17848/* confdefs.h. */
17849_ACEOF
17850cat confdefs.h >>conftest.$ac_ext
17851cat >>conftest.$ac_ext <<_ACEOF
17852/* end confdefs.h. */
17853$ac_includes_default
17854int
17855main ()
17856{
17857if ((int *) 0)
17858 return 0;
17859if (sizeof (int))
17860 return 0;
17861 ;
17862 return 0;
17863}
17864_ACEOF
17865rm -f conftest.$ac_objext
17866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17867 (eval $ac_compile) 2>conftest.er1
a848cd7e 17868 ac_status=$?
ac1cb8d3
VS
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
a848cd7e
SC
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
5ff751d6 17874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876 (eval $ac_try) 2>&5
17877 ac_status=$?
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; } &&
17880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; }; then
17886 ac_cv_type_int=yes
17887else
17888 echo "$as_me: failed program was:" >&5
17889sed 's/^/| /' conftest.$ac_ext >&5
17890
17891ac_cv_type_int=no
17892fi
ac1cb8d3 17893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17894fi
17895echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17896echo "${ECHO_T}$ac_cv_type_int" >&6
17897
17898echo "$as_me:$LINENO: checking size of int" >&5
17899echo $ECHO_N "checking size of int... $ECHO_C" >&6
17900if test "${ac_cv_sizeof_int+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902else
17903 if test "$ac_cv_type_int" = yes; then
17904 # The cast to unsigned long works around a bug in the HP C Compiler
17905 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17906 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17907 # This bug is HP SR number 8606223364.
17908 if test "$cross_compiling" = yes; then
17909 # Depending upon the size, compute the lo and hi bounds.
17910cat >conftest.$ac_ext <<_ACEOF
17911/* confdefs.h. */
17912_ACEOF
17913cat confdefs.h >>conftest.$ac_ext
17914cat >>conftest.$ac_ext <<_ACEOF
17915/* end confdefs.h. */
17916$ac_includes_default
17917int
17918main ()
17919{
17920static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17921test_array [0] = 0
17922
17923 ;
17924 return 0;
17925}
17926_ACEOF
17927rm -f conftest.$ac_objext
17928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17929 (eval $ac_compile) 2>conftest.er1
a848cd7e 17930 ac_status=$?
ac1cb8d3
VS
17931 grep -v '^ *+' conftest.er1 >conftest.err
17932 rm -f conftest.er1
17933 cat conftest.err >&5
a848cd7e
SC
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
5ff751d6 17936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; } &&
17942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 ac_lo=0 ac_mid=0
17949 while :; do
17950 cat >conftest.$ac_ext <<_ACEOF
17951/* confdefs.h. */
17952_ACEOF
17953cat confdefs.h >>conftest.$ac_ext
17954cat >>conftest.$ac_ext <<_ACEOF
17955/* end confdefs.h. */
17956$ac_includes_default
17957int
17958main ()
17959{
17960static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17961test_array [0] = 0
17962
17963 ;
17964 return 0;
17965}
17966_ACEOF
17967rm -f conftest.$ac_objext
17968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17969 (eval $ac_compile) 2>conftest.er1
a848cd7e 17970 ac_status=$?
ac1cb8d3
VS
17971 grep -v '^ *+' conftest.er1 >conftest.err
17972 rm -f conftest.er1
17973 cat conftest.err >&5
a848cd7e
SC
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } &&
5ff751d6 17976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17979 ac_status=$?
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; } &&
17982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17985 ac_status=$?
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; }; then
17988 ac_hi=$ac_mid; break
17989else
17990 echo "$as_me: failed program was:" >&5
17991sed 's/^/| /' conftest.$ac_ext >&5
17992
17993ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17994 if test $ac_lo -le $ac_mid; then
17995 ac_lo= ac_hi=
17996 break
17997 fi
17998 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17999fi
ac1cb8d3 18000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18001 done
18002else
18003 echo "$as_me: failed program was:" >&5
18004sed 's/^/| /' conftest.$ac_ext >&5
18005
18006cat >conftest.$ac_ext <<_ACEOF
18007/* confdefs.h. */
18008_ACEOF
18009cat confdefs.h >>conftest.$ac_ext
18010cat >>conftest.$ac_ext <<_ACEOF
18011/* end confdefs.h. */
18012$ac_includes_default
18013int
18014main ()
18015{
18016static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18017test_array [0] = 0
18018
18019 ;
18020 return 0;
18021}
18022_ACEOF
18023rm -f conftest.$ac_objext
18024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18025 (eval $ac_compile) 2>conftest.er1
a848cd7e 18026 ac_status=$?
ac1cb8d3
VS
18027 grep -v '^ *+' conftest.er1 >conftest.err
18028 rm -f conftest.er1
18029 cat conftest.err >&5
a848cd7e
SC
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } &&
5ff751d6 18032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18035 ac_status=$?
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; } &&
18038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18041 ac_status=$?
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; }; then
18044 ac_hi=-1 ac_mid=-1
18045 while :; do
18046 cat >conftest.$ac_ext <<_ACEOF
18047/* confdefs.h. */
18048_ACEOF
18049cat confdefs.h >>conftest.$ac_ext
18050cat >>conftest.$ac_ext <<_ACEOF
18051/* end confdefs.h. */
18052$ac_includes_default
18053int
18054main ()
18055{
18056static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18057test_array [0] = 0
18058
18059 ;
18060 return 0;
18061}
18062_ACEOF
18063rm -f conftest.$ac_objext
18064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18065 (eval $ac_compile) 2>conftest.er1
a848cd7e 18066 ac_status=$?
ac1cb8d3
VS
18067 grep -v '^ *+' conftest.er1 >conftest.err
18068 rm -f conftest.er1
18069 cat conftest.err >&5
a848cd7e
SC
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); } &&
5ff751d6 18072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; } &&
18078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080 (eval $ac_try) 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; }; then
18084 ac_lo=$ac_mid; break
18085else
18086 echo "$as_me: failed program was:" >&5
18087sed 's/^/| /' conftest.$ac_ext >&5
18088
18089ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18090 if test $ac_mid -le $ac_hi; then
18091 ac_lo= ac_hi=
18092 break
18093 fi
18094 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18095fi
ac1cb8d3 18096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18097 done
18098else
18099 echo "$as_me: failed program was:" >&5
18100sed 's/^/| /' conftest.$ac_ext >&5
18101
18102ac_lo= ac_hi=
18103fi
ac1cb8d3 18104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18105fi
ac1cb8d3 18106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18107# Binary search between lo and hi bounds.
18108while test "x$ac_lo" != "x$ac_hi"; do
18109 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18110 cat >conftest.$ac_ext <<_ACEOF
18111/* confdefs.h. */
18112_ACEOF
18113cat confdefs.h >>conftest.$ac_ext
18114cat >>conftest.$ac_ext <<_ACEOF
18115/* end confdefs.h. */
18116$ac_includes_default
18117int
18118main ()
18119{
18120static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18121test_array [0] = 0
18122
18123 ;
18124 return 0;
18125}
18126_ACEOF
18127rm -f conftest.$ac_objext
18128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18129 (eval $ac_compile) 2>conftest.er1
a848cd7e 18130 ac_status=$?
ac1cb8d3
VS
18131 grep -v '^ *+' conftest.er1 >conftest.err
18132 rm -f conftest.er1
18133 cat conftest.err >&5
a848cd7e
SC
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
5ff751d6 18136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; } &&
18142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; }; then
18148 ac_hi=$ac_mid
18149else
18150 echo "$as_me: failed program was:" >&5
18151sed 's/^/| /' conftest.$ac_ext >&5
18152
18153ac_lo=`expr '(' $ac_mid ')' + 1`
18154fi
ac1cb8d3 18155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18156done
18157case $ac_lo in
18158?*) ac_cv_sizeof_int=$ac_lo;;
18159'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18160See \`config.log' for more details." >&5
18161echo "$as_me: error: cannot compute sizeof (int), 77
18162See \`config.log' for more details." >&2;}
18163 { (exit 1); exit 1; }; } ;;
18164esac
18165else
18166 if test "$cross_compiling" = yes; then
5ff751d6
VZ
18167 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18168echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18169 { (exit 1); exit 1; }; }
18170else
18171 cat >conftest.$ac_ext <<_ACEOF
18172/* confdefs.h. */
18173_ACEOF
18174cat confdefs.h >>conftest.$ac_ext
18175cat >>conftest.$ac_ext <<_ACEOF
18176/* end confdefs.h. */
18177$ac_includes_default
18178long longval () { return (long) (sizeof (int)); }
18179unsigned long ulongval () { return (long) (sizeof (int)); }
18180#include <stdio.h>
18181#include <stdlib.h>
18182int
18183main ()
18184{
18185
18186 FILE *f = fopen ("conftest.val", "w");
18187 if (! f)
18188 exit (1);
18189 if (((long) (sizeof (int))) < 0)
18190 {
18191 long i = longval ();
18192 if (i != ((long) (sizeof (int))))
18193 exit (1);
18194 fprintf (f, "%ld\n", i);
18195 }
18196 else
18197 {
18198 unsigned long i = ulongval ();
18199 if (i != ((long) (sizeof (int))))
18200 exit (1);
18201 fprintf (f, "%lu\n", i);
18202 }
18203 exit (ferror (f) || fclose (f) != 0);
18204
18205 ;
18206 return 0;
18207}
18208_ACEOF
18209rm -f conftest$ac_exeext
18210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18211 (eval $ac_link) 2>&5
18212 ac_status=$?
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; }; then
18220 ac_cv_sizeof_int=`cat conftest.val`
18221else
18222 echo "$as_me: program exited with status $ac_status" >&5
18223echo "$as_me: failed program was:" >&5
18224sed 's/^/| /' conftest.$ac_ext >&5
18225
18226( exit $ac_status )
18227{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18228See \`config.log' for more details." >&5
18229echo "$as_me: error: cannot compute sizeof (int), 77
18230See \`config.log' for more details." >&2;}
18231 { (exit 1); exit 1; }; }
18232fi
ac1cb8d3 18233rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18234fi
18235fi
18236rm -f conftest.val
18237else
18238 ac_cv_sizeof_int=0
18239fi
18240fi
18241echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18242echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18243cat >>confdefs.h <<_ACEOF
18244#define SIZEOF_INT $ac_cv_sizeof_int
18245_ACEOF
18246
18247
18248echo "$as_me:$LINENO: checking for long" >&5
18249echo $ECHO_N "checking for long... $ECHO_C" >&6
18250if test "${ac_cv_type_long+set}" = set; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18252else
18253 cat >conftest.$ac_ext <<_ACEOF
18254/* confdefs.h. */
18255_ACEOF
18256cat confdefs.h >>conftest.$ac_ext
18257cat >>conftest.$ac_ext <<_ACEOF
18258/* end confdefs.h. */
18259$ac_includes_default
18260int
18261main ()
18262{
18263if ((long *) 0)
18264 return 0;
18265if (sizeof (long))
18266 return 0;
18267 ;
18268 return 0;
18269}
18270_ACEOF
18271rm -f conftest.$ac_objext
18272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18273 (eval $ac_compile) 2>conftest.er1
a848cd7e 18274 ac_status=$?
ac1cb8d3
VS
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
a848cd7e
SC
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
5ff751d6 18280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18292 ac_cv_type_long=yes
18293else
18294 echo "$as_me: failed program was:" >&5
18295sed 's/^/| /' conftest.$ac_ext >&5
18296
18297ac_cv_type_long=no
18298fi
ac1cb8d3 18299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18300fi
18301echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18302echo "${ECHO_T}$ac_cv_type_long" >&6
18303
18304echo "$as_me:$LINENO: checking size of long" >&5
18305echo $ECHO_N "checking size of long... $ECHO_C" >&6
18306if test "${ac_cv_sizeof_long+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18308else
18309 if test "$ac_cv_type_long" = yes; then
18310 # The cast to unsigned long works around a bug in the HP C Compiler
18311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18313 # This bug is HP SR number 8606223364.
18314 if test "$cross_compiling" = yes; then
18315 # Depending upon the size, compute the lo and hi bounds.
18316cat >conftest.$ac_ext <<_ACEOF
18317/* confdefs.h. */
18318_ACEOF
18319cat confdefs.h >>conftest.$ac_ext
18320cat >>conftest.$ac_ext <<_ACEOF
18321/* end confdefs.h. */
18322$ac_includes_default
18323int
18324main ()
18325{
18326static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18327test_array [0] = 0
18328
18329 ;
18330 return 0;
18331}
18332_ACEOF
18333rm -f conftest.$ac_objext
18334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18335 (eval $ac_compile) 2>conftest.er1
a848cd7e 18336 ac_status=$?
ac1cb8d3
VS
18337 grep -v '^ *+' conftest.er1 >conftest.err
18338 rm -f conftest.er1
18339 cat conftest.err >&5
a848cd7e
SC
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
5ff751d6 18342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; } &&
18348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; }; then
18354 ac_lo=0 ac_mid=0
18355 while :; do
18356 cat >conftest.$ac_ext <<_ACEOF
18357/* confdefs.h. */
18358_ACEOF
18359cat confdefs.h >>conftest.$ac_ext
18360cat >>conftest.$ac_ext <<_ACEOF
18361/* end confdefs.h. */
18362$ac_includes_default
18363int
18364main ()
18365{
18366static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18367test_array [0] = 0
18368
18369 ;
18370 return 0;
18371}
18372_ACEOF
18373rm -f conftest.$ac_objext
18374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18375 (eval $ac_compile) 2>conftest.er1
a848cd7e 18376 ac_status=$?
ac1cb8d3
VS
18377 grep -v '^ *+' conftest.er1 >conftest.err
18378 rm -f conftest.er1
18379 cat conftest.err >&5
a848cd7e
SC
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } &&
5ff751d6 18382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18385 ac_status=$?
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; } &&
18388 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390 (eval $ac_try) 2>&5
18391 ac_status=$?
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; }; then
18394 ac_hi=$ac_mid; break
18395else
18396 echo "$as_me: failed program was:" >&5
18397sed 's/^/| /' conftest.$ac_ext >&5
18398
18399ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18400 if test $ac_lo -le $ac_mid; then
18401 ac_lo= ac_hi=
18402 break
18403 fi
18404 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18405fi
ac1cb8d3 18406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18407 done
18408else
18409 echo "$as_me: failed program was:" >&5
18410sed 's/^/| /' conftest.$ac_ext >&5
18411
18412cat >conftest.$ac_ext <<_ACEOF
18413/* confdefs.h. */
18414_ACEOF
18415cat confdefs.h >>conftest.$ac_ext
18416cat >>conftest.$ac_ext <<_ACEOF
18417/* end confdefs.h. */
18418$ac_includes_default
18419int
18420main ()
18421{
18422static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18423test_array [0] = 0
18424
18425 ;
18426 return 0;
18427}
18428_ACEOF
18429rm -f conftest.$ac_objext
18430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18431 (eval $ac_compile) 2>conftest.er1
a848cd7e 18432 ac_status=$?
ac1cb8d3
VS
18433 grep -v '^ *+' conftest.er1 >conftest.err
18434 rm -f conftest.er1
18435 cat conftest.err >&5
a848cd7e
SC
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } &&
5ff751d6 18438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; } &&
18444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446 (eval $ac_try) 2>&5
18447 ac_status=$?
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; }; then
18450 ac_hi=-1 ac_mid=-1
18451 while :; do
18452 cat >conftest.$ac_ext <<_ACEOF
18453/* confdefs.h. */
18454_ACEOF
18455cat confdefs.h >>conftest.$ac_ext
18456cat >>conftest.$ac_ext <<_ACEOF
18457/* end confdefs.h. */
18458$ac_includes_default
18459int
18460main ()
18461{
18462static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18463test_array [0] = 0
18464
18465 ;
18466 return 0;
18467}
18468_ACEOF
18469rm -f conftest.$ac_objext
18470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18471 (eval $ac_compile) 2>conftest.er1
a848cd7e 18472 ac_status=$?
ac1cb8d3
VS
18473 grep -v '^ *+' conftest.er1 >conftest.err
18474 rm -f conftest.er1
18475 cat conftest.err >&5
a848cd7e
SC
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); } &&
5ff751d6 18478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; } &&
18484 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 ac_lo=$ac_mid; break
18491else
18492 echo "$as_me: failed program was:" >&5
18493sed 's/^/| /' conftest.$ac_ext >&5
18494
18495ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18496 if test $ac_mid -le $ac_hi; then
18497 ac_lo= ac_hi=
18498 break
18499 fi
18500 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18501fi
ac1cb8d3 18502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18503 done
18504else
18505 echo "$as_me: failed program was:" >&5
18506sed 's/^/| /' conftest.$ac_ext >&5
18507
18508ac_lo= ac_hi=
18509fi
ac1cb8d3 18510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18511fi
ac1cb8d3 18512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18513# Binary search between lo and hi bounds.
18514while test "x$ac_lo" != "x$ac_hi"; do
18515 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18516 cat >conftest.$ac_ext <<_ACEOF
18517/* confdefs.h. */
18518_ACEOF
18519cat confdefs.h >>conftest.$ac_ext
18520cat >>conftest.$ac_ext <<_ACEOF
18521/* end confdefs.h. */
18522$ac_includes_default
18523int
18524main ()
18525{
18526static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18527test_array [0] = 0
18528
18529 ;
18530 return 0;
18531}
18532_ACEOF
18533rm -f conftest.$ac_objext
18534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18535 (eval $ac_compile) 2>conftest.er1
a848cd7e 18536 ac_status=$?
ac1cb8d3
VS
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
a848cd7e
SC
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
5ff751d6 18542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; } &&
18548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18551 ac_status=$?
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_hi=$ac_mid
18555else
18556 echo "$as_me: failed program was:" >&5
18557sed 's/^/| /' conftest.$ac_ext >&5
18558
18559ac_lo=`expr '(' $ac_mid ')' + 1`
18560fi
ac1cb8d3 18561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18562done
18563case $ac_lo in
18564?*) ac_cv_sizeof_long=$ac_lo;;
18565'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18566See \`config.log' for more details." >&5
18567echo "$as_me: error: cannot compute sizeof (long), 77
18568See \`config.log' for more details." >&2;}
18569 { (exit 1); exit 1; }; } ;;
18570esac
18571else
18572 if test "$cross_compiling" = yes; then
5ff751d6
VZ
18573 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18574echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18575 { (exit 1); exit 1; }; }
18576else
18577 cat >conftest.$ac_ext <<_ACEOF
18578/* confdefs.h. */
18579_ACEOF
18580cat confdefs.h >>conftest.$ac_ext
18581cat >>conftest.$ac_ext <<_ACEOF
18582/* end confdefs.h. */
18583$ac_includes_default
18584long longval () { return (long) (sizeof (long)); }
18585unsigned long ulongval () { return (long) (sizeof (long)); }
18586#include <stdio.h>
18587#include <stdlib.h>
18588int
18589main ()
18590{
18591
18592 FILE *f = fopen ("conftest.val", "w");
18593 if (! f)
18594 exit (1);
18595 if (((long) (sizeof (long))) < 0)
18596 {
18597 long i = longval ();
18598 if (i != ((long) (sizeof (long))))
18599 exit (1);
18600 fprintf (f, "%ld\n", i);
18601 }
18602 else
18603 {
18604 unsigned long i = ulongval ();
18605 if (i != ((long) (sizeof (long))))
18606 exit (1);
18607 fprintf (f, "%lu\n", i);
18608 }
18609 exit (ferror (f) || fclose (f) != 0);
18610
18611 ;
18612 return 0;
18613}
18614_ACEOF
18615rm -f conftest$ac_exeext
18616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18617 (eval $ac_link) 2>&5
18618 ac_status=$?
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 ac_cv_sizeof_long=`cat conftest.val`
18627else
18628 echo "$as_me: program exited with status $ac_status" >&5
18629echo "$as_me: failed program was:" >&5
18630sed 's/^/| /' conftest.$ac_ext >&5
18631
18632( exit $ac_status )
18633{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18634See \`config.log' for more details." >&5
18635echo "$as_me: error: cannot compute sizeof (long), 77
18636See \`config.log' for more details." >&2;}
18637 { (exit 1); exit 1; }; }
18638fi
ac1cb8d3 18639rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18640fi
18641fi
18642rm -f conftest.val
18643else
18644 ac_cv_sizeof_long=0
18645fi
18646fi
18647echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18648echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18649cat >>confdefs.h <<_ACEOF
18650#define SIZEOF_LONG $ac_cv_sizeof_long
18651_ACEOF
18652
18653
18654echo "$as_me:$LINENO: checking for size_t" >&5
18655echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18656if test "${ac_cv_type_size_t+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18658else
18659 cat >conftest.$ac_ext <<_ACEOF
18660/* confdefs.h. */
18661_ACEOF
18662cat confdefs.h >>conftest.$ac_ext
18663cat >>conftest.$ac_ext <<_ACEOF
18664/* end confdefs.h. */
18665$ac_includes_default
18666int
18667main ()
18668{
18669if ((size_t *) 0)
18670 return 0;
18671if (sizeof (size_t))
18672 return 0;
18673 ;
18674 return 0;
18675}
18676_ACEOF
18677rm -f conftest.$ac_objext
18678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18679 (eval $ac_compile) 2>conftest.er1
a848cd7e 18680 ac_status=$?
ac1cb8d3
VS
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
a848cd7e
SC
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } &&
5ff751d6 18686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688 (eval $ac_try) 2>&5
18689 ac_status=$?
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; } &&
18692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 ac_cv_type_size_t=yes
18699else
18700 echo "$as_me: failed program was:" >&5
18701sed 's/^/| /' conftest.$ac_ext >&5
18702
18703ac_cv_type_size_t=no
18704fi
ac1cb8d3 18705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18706fi
18707echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18708echo "${ECHO_T}$ac_cv_type_size_t" >&6
18709
18710echo "$as_me:$LINENO: checking size of size_t" >&5
18711echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18712if test "${ac_cv_sizeof_size_t+set}" = set; then
18713 echo $ECHO_N "(cached) $ECHO_C" >&6
18714else
18715 if test "$ac_cv_type_size_t" = yes; then
18716 # The cast to unsigned long works around a bug in the HP C Compiler
18717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18719 # This bug is HP SR number 8606223364.
18720 if test "$cross_compiling" = yes; then
18721 # Depending upon the size, compute the lo and hi bounds.
18722cat >conftest.$ac_ext <<_ACEOF
18723/* confdefs.h. */
18724_ACEOF
18725cat confdefs.h >>conftest.$ac_ext
18726cat >>conftest.$ac_ext <<_ACEOF
18727/* end confdefs.h. */
18728$ac_includes_default
18729int
18730main ()
18731{
18732static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18733test_array [0] = 0
18734
18735 ;
18736 return 0;
18737}
18738_ACEOF
18739rm -f conftest.$ac_objext
18740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18741 (eval $ac_compile) 2>conftest.er1
a848cd7e 18742 ac_status=$?
ac1cb8d3
VS
18743 grep -v '^ *+' conftest.er1 >conftest.err
18744 rm -f conftest.er1
18745 cat conftest.err >&5
a848cd7e
SC
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } &&
5ff751d6 18748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; } &&
18754 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 (eval $ac_try) 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; }; then
18760 ac_lo=0 ac_mid=0
18761 while :; do
18762 cat >conftest.$ac_ext <<_ACEOF
18763/* confdefs.h. */
18764_ACEOF
18765cat confdefs.h >>conftest.$ac_ext
18766cat >>conftest.$ac_ext <<_ACEOF
18767/* end confdefs.h. */
18768$ac_includes_default
18769int
18770main ()
18771{
18772static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18773test_array [0] = 0
18774
18775 ;
18776 return 0;
18777}
18778_ACEOF
18779rm -f conftest.$ac_objext
18780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18781 (eval $ac_compile) 2>conftest.er1
a848cd7e 18782 ac_status=$?
ac1cb8d3
VS
18783 grep -v '^ *+' conftest.er1 >conftest.err
18784 rm -f conftest.er1
18785 cat conftest.err >&5
a848cd7e
SC
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } &&
5ff751d6 18788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 ac_hi=$ac_mid; break
18801else
18802 echo "$as_me: failed program was:" >&5
18803sed 's/^/| /' conftest.$ac_ext >&5
18804
18805ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18806 if test $ac_lo -le $ac_mid; then
18807 ac_lo= ac_hi=
18808 break
18809 fi
18810 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18811fi
ac1cb8d3 18812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18813 done
18814else
18815 echo "$as_me: failed program was:" >&5
18816sed 's/^/| /' conftest.$ac_ext >&5
18817
18818cat >conftest.$ac_ext <<_ACEOF
18819/* confdefs.h. */
18820_ACEOF
18821cat confdefs.h >>conftest.$ac_ext
18822cat >>conftest.$ac_ext <<_ACEOF
18823/* end confdefs.h. */
18824$ac_includes_default
18825int
18826main ()
18827{
18828static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18829test_array [0] = 0
18830
18831 ;
18832 return 0;
18833}
18834_ACEOF
18835rm -f conftest.$ac_objext
18836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18837 (eval $ac_compile) 2>conftest.er1
a848cd7e 18838 ac_status=$?
ac1cb8d3
VS
18839 grep -v '^ *+' conftest.er1 >conftest.err
18840 rm -f conftest.er1
18841 cat conftest.err >&5
a848cd7e
SC
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
5ff751d6 18844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_hi=-1 ac_mid=-1
18857 while :; do
18858 cat >conftest.$ac_ext <<_ACEOF
18859/* confdefs.h. */
18860_ACEOF
18861cat confdefs.h >>conftest.$ac_ext
18862cat >>conftest.$ac_ext <<_ACEOF
18863/* end confdefs.h. */
18864$ac_includes_default
18865int
18866main ()
18867{
18868static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18869test_array [0] = 0
18870
18871 ;
18872 return 0;
18873}
18874_ACEOF
18875rm -f conftest.$ac_objext
18876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18877 (eval $ac_compile) 2>conftest.er1
a848cd7e 18878 ac_status=$?
ac1cb8d3
VS
18879 grep -v '^ *+' conftest.er1 >conftest.err
18880 rm -f conftest.er1
18881 cat conftest.err >&5
a848cd7e
SC
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
5ff751d6 18884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886 (eval $ac_try) 2>&5
18887 ac_status=$?
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; } &&
18890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18892 (eval $ac_try) 2>&5
18893 ac_status=$?
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); }; }; then
18896 ac_lo=$ac_mid; break
18897else
18898 echo "$as_me: failed program was:" >&5
18899sed 's/^/| /' conftest.$ac_ext >&5
18900
18901ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18902 if test $ac_mid -le $ac_hi; then
18903 ac_lo= ac_hi=
18904 break
18905 fi
18906 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18907fi
ac1cb8d3 18908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18909 done
18910else
18911 echo "$as_me: failed program was:" >&5
18912sed 's/^/| /' conftest.$ac_ext >&5
18913
18914ac_lo= ac_hi=
18915fi
ac1cb8d3 18916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18917fi
ac1cb8d3 18918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18919# Binary search between lo and hi bounds.
18920while test "x$ac_lo" != "x$ac_hi"; do
18921 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18922 cat >conftest.$ac_ext <<_ACEOF
18923/* confdefs.h. */
18924_ACEOF
18925cat confdefs.h >>conftest.$ac_ext
18926cat >>conftest.$ac_ext <<_ACEOF
18927/* end confdefs.h. */
18928$ac_includes_default
18929int
18930main ()
18931{
18932static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18933test_array [0] = 0
18934
18935 ;
18936 return 0;
18937}
18938_ACEOF
18939rm -f conftest.$ac_objext
18940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18941 (eval $ac_compile) 2>conftest.er1
a848cd7e 18942 ac_status=$?
ac1cb8d3
VS
18943 grep -v '^ *+' conftest.er1 >conftest.err
18944 rm -f conftest.er1
18945 cat conftest.err >&5
a848cd7e
SC
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
5ff751d6 18948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; } &&
18954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18960 ac_hi=$ac_mid
18961else
18962 echo "$as_me: failed program was:" >&5
18963sed 's/^/| /' conftest.$ac_ext >&5
18964
18965ac_lo=`expr '(' $ac_mid ')' + 1`
18966fi
ac1cb8d3 18967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18968done
18969case $ac_lo in
18970?*) ac_cv_sizeof_size_t=$ac_lo;;
18971'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18972See \`config.log' for more details." >&5
18973echo "$as_me: error: cannot compute sizeof (size_t), 77
18974See \`config.log' for more details." >&2;}
18975 { (exit 1); exit 1; }; } ;;
18976esac
18977else
18978 if test "$cross_compiling" = yes; then
5ff751d6
VZ
18979 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18980echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18981 { (exit 1); exit 1; }; }
18982else
18983 cat >conftest.$ac_ext <<_ACEOF
18984/* confdefs.h. */
18985_ACEOF
18986cat confdefs.h >>conftest.$ac_ext
18987cat >>conftest.$ac_ext <<_ACEOF
18988/* end confdefs.h. */
18989$ac_includes_default
18990long longval () { return (long) (sizeof (size_t)); }
18991unsigned long ulongval () { return (long) (sizeof (size_t)); }
18992#include <stdio.h>
18993#include <stdlib.h>
18994int
18995main ()
18996{
18997
18998 FILE *f = fopen ("conftest.val", "w");
18999 if (! f)
19000 exit (1);
19001 if (((long) (sizeof (size_t))) < 0)
19002 {
19003 long i = longval ();
19004 if (i != ((long) (sizeof (size_t))))
19005 exit (1);
19006 fprintf (f, "%ld\n", i);
19007 }
19008 else
19009 {
19010 unsigned long i = ulongval ();
19011 if (i != ((long) (sizeof (size_t))))
19012 exit (1);
19013 fprintf (f, "%lu\n", i);
19014 }
19015 exit (ferror (f) || fclose (f) != 0);
19016
19017 ;
19018 return 0;
19019}
19020_ACEOF
19021rm -f conftest$ac_exeext
19022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19023 (eval $ac_link) 2>&5
19024 ac_status=$?
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19028 (eval $ac_try) 2>&5
19029 ac_status=$?
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; }; then
19032 ac_cv_sizeof_size_t=`cat conftest.val`
19033else
19034 echo "$as_me: program exited with status $ac_status" >&5
19035echo "$as_me: failed program was:" >&5
19036sed 's/^/| /' conftest.$ac_ext >&5
19037
19038( exit $ac_status )
19039{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19040See \`config.log' for more details." >&5
19041echo "$as_me: error: cannot compute sizeof (size_t), 77
19042See \`config.log' for more details." >&2;}
19043 { (exit 1); exit 1; }; }
19044fi
ac1cb8d3 19045rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19046fi
19047fi
19048rm -f conftest.val
19049else
19050 ac_cv_sizeof_size_t=0
19051fi
19052fi
19053echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19054echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19055cat >>confdefs.h <<_ACEOF
19056#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19057_ACEOF
19058
19059
19060
19061case "${host}" in
19062 arm-*-linux* )
19063 echo "$as_me:$LINENO: checking for long long" >&5
19064echo $ECHO_N "checking for long long... $ECHO_C" >&6
19065if test "${ac_cv_type_long_long+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19067else
19068 cat >conftest.$ac_ext <<_ACEOF
19069/* confdefs.h. */
19070_ACEOF
19071cat confdefs.h >>conftest.$ac_ext
19072cat >>conftest.$ac_ext <<_ACEOF
19073/* end confdefs.h. */
19074$ac_includes_default
19075int
19076main ()
19077{
19078if ((long long *) 0)
19079 return 0;
19080if (sizeof (long long))
19081 return 0;
19082 ;
19083 return 0;
19084}
19085_ACEOF
19086rm -f conftest.$ac_objext
19087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19088 (eval $ac_compile) 2>conftest.er1
a848cd7e 19089 ac_status=$?
ac1cb8d3
VS
19090 grep -v '^ *+' conftest.er1 >conftest.err
19091 rm -f conftest.er1
19092 cat conftest.err >&5
a848cd7e
SC
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } &&
5ff751d6 19095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; } &&
19101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; }; then
19107 ac_cv_type_long_long=yes
19108else
19109 echo "$as_me: failed program was:" >&5
19110sed 's/^/| /' conftest.$ac_ext >&5
19111
19112ac_cv_type_long_long=no
19113fi
ac1cb8d3 19114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19115fi
19116echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19117echo "${ECHO_T}$ac_cv_type_long_long" >&6
19118
19119echo "$as_me:$LINENO: checking size of long long" >&5
19120echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19121if test "${ac_cv_sizeof_long_long+set}" = set; then
19122 echo $ECHO_N "(cached) $ECHO_C" >&6
19123else
19124 if test "$ac_cv_type_long_long" = yes; then
19125 # The cast to unsigned long works around a bug in the HP C Compiler
19126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19128 # This bug is HP SR number 8606223364.
19129 if test "$cross_compiling" = yes; then
19130 # Depending upon the size, compute the lo and hi bounds.
19131cat >conftest.$ac_ext <<_ACEOF
19132/* confdefs.h. */
19133_ACEOF
19134cat confdefs.h >>conftest.$ac_ext
19135cat >>conftest.$ac_ext <<_ACEOF
19136/* end confdefs.h. */
19137$ac_includes_default
19138int
19139main ()
19140{
19141static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19142test_array [0] = 0
19143
19144 ;
19145 return 0;
19146}
19147_ACEOF
19148rm -f conftest.$ac_objext
19149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19150 (eval $ac_compile) 2>conftest.er1
a848cd7e 19151 ac_status=$?
ac1cb8d3
VS
19152 grep -v '^ *+' conftest.er1 >conftest.err
19153 rm -f conftest.er1
19154 cat conftest.err >&5
a848cd7e
SC
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); } &&
5ff751d6 19157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159 (eval $ac_try) 2>&5
19160 ac_status=$?
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; } &&
19163 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19166 ac_status=$?
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; }; then
19169 ac_lo=0 ac_mid=0
19170 while :; do
19171 cat >conftest.$ac_ext <<_ACEOF
19172/* confdefs.h. */
19173_ACEOF
19174cat confdefs.h >>conftest.$ac_ext
19175cat >>conftest.$ac_ext <<_ACEOF
19176/* end confdefs.h. */
19177$ac_includes_default
19178int
19179main ()
19180{
19181static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19182test_array [0] = 0
19183
19184 ;
19185 return 0;
19186}
19187_ACEOF
19188rm -f conftest.$ac_objext
19189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19190 (eval $ac_compile) 2>conftest.er1
a848cd7e 19191 ac_status=$?
ac1cb8d3
VS
19192 grep -v '^ *+' conftest.er1 >conftest.err
19193 rm -f conftest.er1
19194 cat conftest.err >&5
a848cd7e
SC
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
5ff751d6 19197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19209 ac_hi=$ac_mid; break
19210else
19211 echo "$as_me: failed program was:" >&5
19212sed 's/^/| /' conftest.$ac_ext >&5
19213
19214ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19215 if test $ac_lo -le $ac_mid; then
19216 ac_lo= ac_hi=
19217 break
19218 fi
19219 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19220fi
ac1cb8d3 19221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19222 done
19223else
19224 echo "$as_me: failed program was:" >&5
19225sed 's/^/| /' conftest.$ac_ext >&5
19226
19227cat >conftest.$ac_ext <<_ACEOF
19228/* confdefs.h. */
19229_ACEOF
19230cat confdefs.h >>conftest.$ac_ext
19231cat >>conftest.$ac_ext <<_ACEOF
19232/* end confdefs.h. */
19233$ac_includes_default
19234int
19235main ()
19236{
19237static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19238test_array [0] = 0
19239
19240 ;
19241 return 0;
19242}
19243_ACEOF
19244rm -f conftest.$ac_objext
19245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19246 (eval $ac_compile) 2>conftest.er1
a848cd7e 19247 ac_status=$?
ac1cb8d3
VS
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
a848cd7e
SC
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } &&
5ff751d6 19253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265 ac_hi=-1 ac_mid=-1
19266 while :; do
19267 cat >conftest.$ac_ext <<_ACEOF
19268/* confdefs.h. */
19269_ACEOF
19270cat confdefs.h >>conftest.$ac_ext
19271cat >>conftest.$ac_ext <<_ACEOF
19272/* end confdefs.h. */
19273$ac_includes_default
19274int
19275main ()
19276{
19277static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19278test_array [0] = 0
19279
19280 ;
19281 return 0;
19282}
19283_ACEOF
19284rm -f conftest.$ac_objext
19285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19286 (eval $ac_compile) 2>conftest.er1
a848cd7e 19287 ac_status=$?
ac1cb8d3
VS
19288 grep -v '^ *+' conftest.er1 >conftest.err
19289 rm -f conftest.er1
19290 cat conftest.err >&5
a848cd7e
SC
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
5ff751d6 19293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295 (eval $ac_try) 2>&5
19296 ac_status=$?
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; } &&
19299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; }; then
19305 ac_lo=$ac_mid; break
19306else
19307 echo "$as_me: failed program was:" >&5
19308sed 's/^/| /' conftest.$ac_ext >&5
19309
19310ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19311 if test $ac_mid -le $ac_hi; then
19312 ac_lo= ac_hi=
19313 break
19314 fi
19315 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19316fi
ac1cb8d3 19317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19318 done
19319else
19320 echo "$as_me: failed program was:" >&5
19321sed 's/^/| /' conftest.$ac_ext >&5
19322
19323ac_lo= ac_hi=
19324fi
ac1cb8d3 19325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19326fi
ac1cb8d3 19327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19328# Binary search between lo and hi bounds.
19329while test "x$ac_lo" != "x$ac_hi"; do
19330 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19331 cat >conftest.$ac_ext <<_ACEOF
19332/* confdefs.h. */
19333_ACEOF
19334cat confdefs.h >>conftest.$ac_ext
19335cat >>conftest.$ac_ext <<_ACEOF
19336/* end confdefs.h. */
19337$ac_includes_default
19338int
19339main ()
19340{
19341static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19342test_array [0] = 0
19343
19344 ;
19345 return 0;
19346}
19347_ACEOF
19348rm -f conftest.$ac_objext
19349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19350 (eval $ac_compile) 2>conftest.er1
a848cd7e 19351 ac_status=$?
ac1cb8d3
VS
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
a848cd7e
SC
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
5ff751d6 19357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19360 ac_status=$?
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; } &&
19363 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19369 ac_hi=$ac_mid
19370else
19371 echo "$as_me: failed program was:" >&5
19372sed 's/^/| /' conftest.$ac_ext >&5
19373
19374ac_lo=`expr '(' $ac_mid ')' + 1`
19375fi
ac1cb8d3 19376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19377done
19378case $ac_lo in
19379?*) ac_cv_sizeof_long_long=$ac_lo;;
19380'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19381See \`config.log' for more details." >&5
19382echo "$as_me: error: cannot compute sizeof (long long), 77
19383See \`config.log' for more details." >&2;}
19384 { (exit 1); exit 1; }; } ;;
19385esac
19386else
19387 if test "$cross_compiling" = yes; then
5ff751d6
VZ
19388 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19389echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19390 { (exit 1); exit 1; }; }
19391else
19392 cat >conftest.$ac_ext <<_ACEOF
19393/* confdefs.h. */
19394_ACEOF
19395cat confdefs.h >>conftest.$ac_ext
19396cat >>conftest.$ac_ext <<_ACEOF
19397/* end confdefs.h. */
19398$ac_includes_default
19399long longval () { return (long) (sizeof (long long)); }
19400unsigned long ulongval () { return (long) (sizeof (long long)); }
19401#include <stdio.h>
19402#include <stdlib.h>
19403int
19404main ()
19405{
19406
19407 FILE *f = fopen ("conftest.val", "w");
19408 if (! f)
19409 exit (1);
19410 if (((long) (sizeof (long long))) < 0)
19411 {
19412 long i = longval ();
19413 if (i != ((long) (sizeof (long long))))
19414 exit (1);
19415 fprintf (f, "%ld\n", i);
19416 }
19417 else
19418 {
19419 unsigned long i = ulongval ();
19420 if (i != ((long) (sizeof (long long))))
19421 exit (1);
19422 fprintf (f, "%lu\n", i);
19423 }
19424 exit (ferror (f) || fclose (f) != 0);
19425
19426 ;
19427 return 0;
19428}
19429_ACEOF
19430rm -f conftest$ac_exeext
19431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19432 (eval $ac_link) 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 ac_cv_sizeof_long_long=`cat conftest.val`
19442else
19443 echo "$as_me: program exited with status $ac_status" >&5
19444echo "$as_me: failed program was:" >&5
19445sed 's/^/| /' conftest.$ac_ext >&5
19446
19447( exit $ac_status )
19448{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19449See \`config.log' for more details." >&5
19450echo "$as_me: error: cannot compute sizeof (long long), 77
19451See \`config.log' for more details." >&2;}
19452 { (exit 1); exit 1; }; }
19453fi
ac1cb8d3 19454rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19455fi
19456fi
19457rm -f conftest.val
19458else
19459 ac_cv_sizeof_long_long=0
19460fi
19461fi
19462echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19463echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19464cat >>confdefs.h <<_ACEOF
19465#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19466_ACEOF
19467
19468
19469 ;;
19470 *-hp-hpux* )
19471 echo "$as_me:$LINENO: checking for long long" >&5
19472echo $ECHO_N "checking for long long... $ECHO_C" >&6
19473if test "${ac_cv_type_long_long+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475else
19476 cat >conftest.$ac_ext <<_ACEOF
19477/* confdefs.h. */
19478_ACEOF
19479cat confdefs.h >>conftest.$ac_ext
19480cat >>conftest.$ac_ext <<_ACEOF
19481/* end confdefs.h. */
19482$ac_includes_default
19483int
19484main ()
19485{
19486if ((long long *) 0)
19487 return 0;
19488if (sizeof (long long))
19489 return 0;
19490 ;
19491 return 0;
19492}
19493_ACEOF
19494rm -f conftest.$ac_objext
19495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19496 (eval $ac_compile) 2>conftest.er1
a848cd7e 19497 ac_status=$?
ac1cb8d3
VS
19498 grep -v '^ *+' conftest.er1 >conftest.err
19499 rm -f conftest.er1
19500 cat conftest.err >&5
a848cd7e
SC
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); } &&
5ff751d6 19503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; } &&
19509 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 ac_cv_type_long_long=yes
19516else
19517 echo "$as_me: failed program was:" >&5
19518sed 's/^/| /' conftest.$ac_ext >&5
19519
19520ac_cv_type_long_long=no
19521fi
ac1cb8d3 19522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19523fi
19524echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19525echo "${ECHO_T}$ac_cv_type_long_long" >&6
19526
19527echo "$as_me:$LINENO: checking size of long long" >&5
19528echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19529if test "${ac_cv_sizeof_long_long+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19531else
19532 if test "$ac_cv_type_long_long" = yes; then
19533 # The cast to unsigned long works around a bug in the HP C Compiler
19534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19536 # This bug is HP SR number 8606223364.
19537 if test "$cross_compiling" = yes; then
19538 # Depending upon the size, compute the lo and hi bounds.
19539cat >conftest.$ac_ext <<_ACEOF
19540/* confdefs.h. */
19541_ACEOF
19542cat confdefs.h >>conftest.$ac_ext
19543cat >>conftest.$ac_ext <<_ACEOF
19544/* end confdefs.h. */
19545$ac_includes_default
19546int
19547main ()
19548{
19549static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19550test_array [0] = 0
19551
19552 ;
19553 return 0;
19554}
19555_ACEOF
19556rm -f conftest.$ac_objext
19557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19558 (eval $ac_compile) 2>conftest.er1
a848cd7e 19559 ac_status=$?
ac1cb8d3
VS
19560 grep -v '^ *+' conftest.er1 >conftest.err
19561 rm -f conftest.er1
19562 cat conftest.err >&5
a848cd7e
SC
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } &&
5ff751d6 19565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19568 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; } &&
19571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19574 ac_status=$?
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; }; then
19577 ac_lo=0 ac_mid=0
19578 while :; do
19579 cat >conftest.$ac_ext <<_ACEOF
19580/* confdefs.h. */
19581_ACEOF
19582cat confdefs.h >>conftest.$ac_ext
19583cat >>conftest.$ac_ext <<_ACEOF
19584/* end confdefs.h. */
19585$ac_includes_default
19586int
19587main ()
19588{
19589static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19590test_array [0] = 0
19591
19592 ;
19593 return 0;
19594}
19595_ACEOF
19596rm -f conftest.$ac_objext
19597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19598 (eval $ac_compile) 2>conftest.er1
a848cd7e 19599 ac_status=$?
ac1cb8d3
VS
19600 grep -v '^ *+' conftest.er1 >conftest.err
19601 rm -f conftest.er1
19602 cat conftest.err >&5
a848cd7e
SC
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } &&
5ff751d6 19605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607 (eval $ac_try) 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; } &&
19611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19617 ac_hi=$ac_mid; break
19618else
19619 echo "$as_me: failed program was:" >&5
19620sed 's/^/| /' conftest.$ac_ext >&5
19621
19622ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19623 if test $ac_lo -le $ac_mid; then
19624 ac_lo= ac_hi=
19625 break
19626 fi
19627 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19628fi
ac1cb8d3 19629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19630 done
19631else
19632 echo "$as_me: failed program was:" >&5
19633sed 's/^/| /' conftest.$ac_ext >&5
19634
19635cat >conftest.$ac_ext <<_ACEOF
19636/* confdefs.h. */
19637_ACEOF
19638cat confdefs.h >>conftest.$ac_ext
19639cat >>conftest.$ac_ext <<_ACEOF
19640/* end confdefs.h. */
19641$ac_includes_default
19642int
19643main ()
19644{
19645static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19646test_array [0] = 0
19647
19648 ;
19649 return 0;
19650}
19651_ACEOF
19652rm -f conftest.$ac_objext
19653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19654 (eval $ac_compile) 2>conftest.er1
a848cd7e 19655 ac_status=$?
ac1cb8d3
VS
19656 grep -v '^ *+' conftest.er1 >conftest.err
19657 rm -f conftest.er1
19658 cat conftest.err >&5
a848cd7e
SC
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
5ff751d6 19661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; } &&
19667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
19673 ac_hi=-1 ac_mid=-1
19674 while :; do
19675 cat >conftest.$ac_ext <<_ACEOF
19676/* confdefs.h. */
19677_ACEOF
19678cat confdefs.h >>conftest.$ac_ext
19679cat >>conftest.$ac_ext <<_ACEOF
19680/* end confdefs.h. */
19681$ac_includes_default
19682int
19683main ()
19684{
19685static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19686test_array [0] = 0
19687
19688 ;
19689 return 0;
19690}
19691_ACEOF
19692rm -f conftest.$ac_objext
19693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19694 (eval $ac_compile) 2>conftest.er1
a848cd7e 19695 ac_status=$?
ac1cb8d3
VS
19696 grep -v '^ *+' conftest.er1 >conftest.err
19697 rm -f conftest.er1
19698 cat conftest.err >&5
a848cd7e
SC
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } &&
5ff751d6 19701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19704 ac_status=$?
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; } &&
19707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19713 ac_lo=$ac_mid; break
19714else
19715 echo "$as_me: failed program was:" >&5
19716sed 's/^/| /' conftest.$ac_ext >&5
19717
19718ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19719 if test $ac_mid -le $ac_hi; then
19720 ac_lo= ac_hi=
19721 break
19722 fi
19723 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19724fi
ac1cb8d3 19725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19726 done
19727else
19728 echo "$as_me: failed program was:" >&5
19729sed 's/^/| /' conftest.$ac_ext >&5
19730
19731ac_lo= ac_hi=
19732fi
ac1cb8d3 19733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19734fi
ac1cb8d3 19735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19736# Binary search between lo and hi bounds.
19737while test "x$ac_lo" != "x$ac_hi"; do
19738 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19739 cat >conftest.$ac_ext <<_ACEOF
19740/* confdefs.h. */
19741_ACEOF
19742cat confdefs.h >>conftest.$ac_ext
19743cat >>conftest.$ac_ext <<_ACEOF
19744/* end confdefs.h. */
19745$ac_includes_default
19746int
19747main ()
19748{
19749static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19750test_array [0] = 0
19751
19752 ;
19753 return 0;
19754}
19755_ACEOF
19756rm -f conftest.$ac_objext
19757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19758 (eval $ac_compile) 2>conftest.er1
a848cd7e 19759 ac_status=$?
ac1cb8d3
VS
19760 grep -v '^ *+' conftest.er1 >conftest.err
19761 rm -f conftest.er1
19762 cat conftest.err >&5
a848cd7e
SC
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } &&
5ff751d6 19765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767 (eval $ac_try) 2>&5
19768 ac_status=$?
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; } &&
19771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19774 ac_status=$?
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; }; then
19777 ac_hi=$ac_mid
19778else
19779 echo "$as_me: failed program was:" >&5
19780sed 's/^/| /' conftest.$ac_ext >&5
19781
19782ac_lo=`expr '(' $ac_mid ')' + 1`
19783fi
ac1cb8d3 19784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19785done
19786case $ac_lo in
19787?*) ac_cv_sizeof_long_long=$ac_lo;;
19788'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19789See \`config.log' for more details." >&5
19790echo "$as_me: error: cannot compute sizeof (long long), 77
19791See \`config.log' for more details." >&2;}
19792 { (exit 1); exit 1; }; } ;;
19793esac
19794else
19795 if test "$cross_compiling" = yes; then
5ff751d6
VZ
19796 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19797echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19798 { (exit 1); exit 1; }; }
19799else
19800 cat >conftest.$ac_ext <<_ACEOF
19801/* confdefs.h. */
19802_ACEOF
19803cat confdefs.h >>conftest.$ac_ext
19804cat >>conftest.$ac_ext <<_ACEOF
19805/* end confdefs.h. */
19806$ac_includes_default
19807long longval () { return (long) (sizeof (long long)); }
19808unsigned long ulongval () { return (long) (sizeof (long long)); }
19809#include <stdio.h>
19810#include <stdlib.h>
19811int
19812main ()
19813{
19814
19815 FILE *f = fopen ("conftest.val", "w");
19816 if (! f)
19817 exit (1);
19818 if (((long) (sizeof (long long))) < 0)
19819 {
19820 long i = longval ();
19821 if (i != ((long) (sizeof (long long))))
19822 exit (1);
19823 fprintf (f, "%ld\n", i);
19824 }
19825 else
19826 {
19827 unsigned long i = ulongval ();
19828 if (i != ((long) (sizeof (long long))))
19829 exit (1);
19830 fprintf (f, "%lu\n", i);
19831 }
19832 exit (ferror (f) || fclose (f) != 0);
19833
19834 ;
19835 return 0;
19836}
19837_ACEOF
19838rm -f conftest$ac_exeext
19839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19840 (eval $ac_link) 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; }; then
19849 ac_cv_sizeof_long_long=`cat conftest.val`
19850else
19851 echo "$as_me: program exited with status $ac_status" >&5
19852echo "$as_me: failed program was:" >&5
19853sed 's/^/| /' conftest.$ac_ext >&5
19854
19855( exit $ac_status )
19856{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19857See \`config.log' for more details." >&5
19858echo "$as_me: error: cannot compute sizeof (long long), 77
19859See \`config.log' for more details." >&2;}
19860 { (exit 1); exit 1; }; }
19861fi
ac1cb8d3 19862rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19863fi
19864fi
19865rm -f conftest.val
19866else
19867 ac_cv_sizeof_long_long=0
19868fi
19869fi
19870echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19871echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19872cat >>confdefs.h <<_ACEOF
19873#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19874_ACEOF
19875
19876
19877 if test "$ac_cv_sizeof_long_long" != "0"; then
19878 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19879 fi
19880 ;;
19881 * )
19882 echo "$as_me:$LINENO: checking for long long" >&5
19883echo $ECHO_N "checking for long long... $ECHO_C" >&6
19884if test "${ac_cv_type_long_long+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19886else
19887 cat >conftest.$ac_ext <<_ACEOF
19888/* confdefs.h. */
19889_ACEOF
19890cat confdefs.h >>conftest.$ac_ext
19891cat >>conftest.$ac_ext <<_ACEOF
19892/* end confdefs.h. */
19893$ac_includes_default
19894int
19895main ()
19896{
19897if ((long long *) 0)
19898 return 0;
19899if (sizeof (long long))
19900 return 0;
19901 ;
19902 return 0;
19903}
19904_ACEOF
19905rm -f conftest.$ac_objext
19906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19907 (eval $ac_compile) 2>conftest.er1
a848cd7e 19908 ac_status=$?
ac1cb8d3
VS
19909 grep -v '^ *+' conftest.er1 >conftest.err
19910 rm -f conftest.er1
19911 cat conftest.err >&5
a848cd7e
SC
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } &&
5ff751d6 19914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; } &&
19920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922 (eval $ac_try) 2>&5
19923 ac_status=$?
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; }; then
19926 ac_cv_type_long_long=yes
19927else
19928 echo "$as_me: failed program was:" >&5
19929sed 's/^/| /' conftest.$ac_ext >&5
19930
19931ac_cv_type_long_long=no
19932fi
ac1cb8d3 19933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19934fi
19935echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19936echo "${ECHO_T}$ac_cv_type_long_long" >&6
19937
19938echo "$as_me:$LINENO: checking size of long long" >&5
19939echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19940if test "${ac_cv_sizeof_long_long+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19942else
19943 if test "$ac_cv_type_long_long" = yes; then
19944 # The cast to unsigned long works around a bug in the HP C Compiler
19945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19947 # This bug is HP SR number 8606223364.
19948 if test "$cross_compiling" = yes; then
19949 # Depending upon the size, compute the lo and hi bounds.
19950cat >conftest.$ac_ext <<_ACEOF
19951/* confdefs.h. */
19952_ACEOF
19953cat confdefs.h >>conftest.$ac_ext
19954cat >>conftest.$ac_ext <<_ACEOF
19955/* end confdefs.h. */
19956$ac_includes_default
19957int
19958main ()
19959{
19960static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19961test_array [0] = 0
19962
19963 ;
19964 return 0;
19965}
19966_ACEOF
19967rm -f conftest.$ac_objext
19968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19969 (eval $ac_compile) 2>conftest.er1
a848cd7e 19970 ac_status=$?
ac1cb8d3
VS
19971 grep -v '^ *+' conftest.er1 >conftest.err
19972 rm -f conftest.er1
19973 cat conftest.err >&5
a848cd7e
SC
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } &&
5ff751d6 19976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; } &&
19982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; }; then
19988 ac_lo=0 ac_mid=0
19989 while :; do
19990 cat >conftest.$ac_ext <<_ACEOF
19991/* confdefs.h. */
19992_ACEOF
19993cat confdefs.h >>conftest.$ac_ext
19994cat >>conftest.$ac_ext <<_ACEOF
19995/* end confdefs.h. */
19996$ac_includes_default
19997int
19998main ()
19999{
20000static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20001test_array [0] = 0
20002
20003 ;
20004 return 0;
20005}
20006_ACEOF
20007rm -f conftest.$ac_objext
20008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20009 (eval $ac_compile) 2>conftest.er1
a848cd7e 20010 ac_status=$?
ac1cb8d3
VS
20011 grep -v '^ *+' conftest.er1 >conftest.err
20012 rm -f conftest.er1
20013 cat conftest.err >&5
a848cd7e
SC
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } &&
5ff751d6 20016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; } &&
20022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20028 ac_hi=$ac_mid; break
20029else
20030 echo "$as_me: failed program was:" >&5
20031sed 's/^/| /' conftest.$ac_ext >&5
20032
20033ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20034 if test $ac_lo -le $ac_mid; then
20035 ac_lo= ac_hi=
20036 break
20037 fi
20038 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20039fi
ac1cb8d3 20040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20041 done
20042else
20043 echo "$as_me: failed program was:" >&5
20044sed 's/^/| /' conftest.$ac_ext >&5
20045
20046cat >conftest.$ac_ext <<_ACEOF
20047/* confdefs.h. */
20048_ACEOF
20049cat confdefs.h >>conftest.$ac_ext
20050cat >>conftest.$ac_ext <<_ACEOF
20051/* end confdefs.h. */
20052$ac_includes_default
20053int
20054main ()
20055{
20056static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20057test_array [0] = 0
20058
20059 ;
20060 return 0;
20061}
20062_ACEOF
20063rm -f conftest.$ac_objext
20064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20065 (eval $ac_compile) 2>conftest.er1
a848cd7e 20066 ac_status=$?
ac1cb8d3
VS
20067 grep -v '^ *+' conftest.er1 >conftest.err
20068 rm -f conftest.er1
20069 cat conftest.err >&5
a848cd7e
SC
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
5ff751d6 20072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20075 ac_status=$?
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; } &&
20078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 ac_hi=-1 ac_mid=-1
20085 while :; do
20086 cat >conftest.$ac_ext <<_ACEOF
20087/* confdefs.h. */
20088_ACEOF
20089cat confdefs.h >>conftest.$ac_ext
20090cat >>conftest.$ac_ext <<_ACEOF
20091/* end confdefs.h. */
20092$ac_includes_default
20093int
20094main ()
20095{
20096static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20097test_array [0] = 0
20098
20099 ;
20100 return 0;
20101}
20102_ACEOF
20103rm -f conftest.$ac_objext
20104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20105 (eval $ac_compile) 2>conftest.er1
a848cd7e 20106 ac_status=$?
ac1cb8d3
VS
20107 grep -v '^ *+' conftest.er1 >conftest.err
20108 rm -f conftest.er1
20109 cat conftest.err >&5
a848cd7e
SC
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } &&
5ff751d6 20112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20124 ac_lo=$ac_mid; break
20125else
20126 echo "$as_me: failed program was:" >&5
20127sed 's/^/| /' conftest.$ac_ext >&5
20128
20129ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20130 if test $ac_mid -le $ac_hi; then
20131 ac_lo= ac_hi=
20132 break
20133 fi
20134 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20135fi
ac1cb8d3 20136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20137 done
20138else
20139 echo "$as_me: failed program was:" >&5
20140sed 's/^/| /' conftest.$ac_ext >&5
20141
20142ac_lo= ac_hi=
20143fi
ac1cb8d3 20144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20145fi
ac1cb8d3 20146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20147# Binary search between lo and hi bounds.
20148while test "x$ac_lo" != "x$ac_hi"; do
20149 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20150 cat >conftest.$ac_ext <<_ACEOF
20151/* confdefs.h. */
20152_ACEOF
20153cat confdefs.h >>conftest.$ac_ext
20154cat >>conftest.$ac_ext <<_ACEOF
20155/* end confdefs.h. */
20156$ac_includes_default
20157int
20158main ()
20159{
20160static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20161test_array [0] = 0
20162
20163 ;
20164 return 0;
20165}
20166_ACEOF
20167rm -f conftest.$ac_objext
20168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20169 (eval $ac_compile) 2>conftest.er1
a848cd7e 20170 ac_status=$?
ac1cb8d3
VS
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
a848cd7e
SC
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } &&
5ff751d6 20176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; } &&
20182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; }; then
20188 ac_hi=$ac_mid
20189else
20190 echo "$as_me: failed program was:" >&5
20191sed 's/^/| /' conftest.$ac_ext >&5
20192
20193ac_lo=`expr '(' $ac_mid ')' + 1`
20194fi
ac1cb8d3 20195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20196done
20197case $ac_lo in
20198?*) ac_cv_sizeof_long_long=$ac_lo;;
20199'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20200See \`config.log' for more details." >&5
20201echo "$as_me: error: cannot compute sizeof (long long), 77
20202See \`config.log' for more details." >&2;}
20203 { (exit 1); exit 1; }; } ;;
20204esac
20205else
20206 if test "$cross_compiling" = yes; then
5ff751d6
VZ
20207 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20208echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20209 { (exit 1); exit 1; }; }
20210else
20211 cat >conftest.$ac_ext <<_ACEOF
20212/* confdefs.h. */
20213_ACEOF
20214cat confdefs.h >>conftest.$ac_ext
20215cat >>conftest.$ac_ext <<_ACEOF
20216/* end confdefs.h. */
20217$ac_includes_default
20218long longval () { return (long) (sizeof (long long)); }
20219unsigned long ulongval () { return (long) (sizeof (long long)); }
20220#include <stdio.h>
20221#include <stdlib.h>
20222int
20223main ()
20224{
20225
20226 FILE *f = fopen ("conftest.val", "w");
20227 if (! f)
20228 exit (1);
20229 if (((long) (sizeof (long long))) < 0)
20230 {
20231 long i = longval ();
20232 if (i != ((long) (sizeof (long long))))
20233 exit (1);
20234 fprintf (f, "%ld\n", i);
20235 }
20236 else
20237 {
20238 unsigned long i = ulongval ();
20239 if (i != ((long) (sizeof (long long))))
20240 exit (1);
20241 fprintf (f, "%lu\n", i);
20242 }
20243 exit (ferror (f) || fclose (f) != 0);
20244
20245 ;
20246 return 0;
20247}
20248_ACEOF
20249rm -f conftest$ac_exeext
20250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20251 (eval $ac_link) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256 (eval $ac_try) 2>&5
20257 ac_status=$?
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
20260 ac_cv_sizeof_long_long=`cat conftest.val`
20261else
20262 echo "$as_me: program exited with status $ac_status" >&5
20263echo "$as_me: failed program was:" >&5
20264sed 's/^/| /' conftest.$ac_ext >&5
20265
20266( exit $ac_status )
20267{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20268See \`config.log' for more details." >&5
20269echo "$as_me: error: cannot compute sizeof (long long), 77
20270See \`config.log' for more details." >&2;}
20271 { (exit 1); exit 1; }; }
20272fi
ac1cb8d3 20273rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20274fi
20275fi
20276rm -f conftest.val
20277else
20278 ac_cv_sizeof_long_long=0
20279fi
20280fi
20281echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20282echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20283cat >>confdefs.h <<_ACEOF
20284#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20285_ACEOF
20286
20287
20288esac
20289
238ecede
MW
20290echo "$as_me:$LINENO: checking for wchar_t" >&5
20291echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20292if test "${ac_cv_type_wchar_t+set}" = set; then
20293 echo $ECHO_N "(cached) $ECHO_C" >&6
20294else
20295 cat >conftest.$ac_ext <<_ACEOF
20296/* confdefs.h. */
20297_ACEOF
20298cat confdefs.h >>conftest.$ac_ext
20299cat >>conftest.$ac_ext <<_ACEOF
20300/* end confdefs.h. */
20301
83d8eb47
MW
20302 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20303 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20304 # error "fake wchar_t"
20305 #endif
20306 #ifdef HAVE_WCHAR_H
20307 # ifdef __CYGWIN__
20308 # include <stddef.h>
20309 # endif
20310 # include <wchar.h>
20311 #endif
20312 #ifdef HAVE_STDLIB_H
20313 # include <stdlib.h>
20314 #endif
20315 #include <stdio.h>
20316
20317
20318
20319int
20320main ()
20321{
20322if ((wchar_t *) 0)
20323 return 0;
20324if (sizeof (wchar_t))
20325 return 0;
20326 ;
20327 return 0;
20328}
20329_ACEOF
20330rm -f conftest.$ac_objext
20331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20332 (eval $ac_compile) 2>conftest.er1
20333 ac_status=$?
20334 grep -v '^ *+' conftest.er1 >conftest.err
20335 rm -f conftest.er1
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
5ff751d6 20339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; } &&
20345 { ac_try='test -s conftest.$ac_objext'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }; then
20351 ac_cv_type_wchar_t=yes
20352else
20353 echo "$as_me: failed program was:" >&5
20354sed 's/^/| /' conftest.$ac_ext >&5
20355
20356ac_cv_type_wchar_t=no
20357fi
20358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20359fi
20360echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20361echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20362
a848cd7e
SC
20363echo "$as_me:$LINENO: checking size of wchar_t" >&5
20364echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20365if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20367else
238ecede
MW
20368 if test "$ac_cv_type_wchar_t" = yes; then
20369 # The cast to unsigned long works around a bug in the HP C Compiler
20370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20372 # This bug is HP SR number 8606223364.
20373 if test "$cross_compiling" = yes; then
20374 # Depending upon the size, compute the lo and hi bounds.
20375cat >conftest.$ac_ext <<_ACEOF
20376/* confdefs.h. */
20377_ACEOF
20378cat confdefs.h >>conftest.$ac_ext
20379cat >>conftest.$ac_ext <<_ACEOF
20380/* end confdefs.h. */
20381
83d8eb47
MW
20382 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20383 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20384 # error "fake wchar_t"
20385 #endif
20386 #ifdef HAVE_WCHAR_H
20387 # ifdef __CYGWIN__
20388 # include <stddef.h>
20389 # endif
20390 # include <wchar.h>
20391 #endif
20392 #ifdef HAVE_STDLIB_H
20393 # include <stdlib.h>
20394 #endif
20395 #include <stdio.h>
20396
20397
20398
20399int
20400main ()
20401{
20402static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20403test_array [0] = 0
20404
20405 ;
20406 return 0;
20407}
20408_ACEOF
20409rm -f conftest.$ac_objext
20410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20411 (eval $ac_compile) 2>conftest.er1
20412 ac_status=$?
20413 grep -v '^ *+' conftest.er1 >conftest.err
20414 rm -f conftest.er1
20415 cat conftest.err >&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } &&
5ff751d6 20418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; } &&
20424 { ac_try='test -s conftest.$ac_objext'
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_lo=0 ac_mid=0
20431 while :; do
20432 cat >conftest.$ac_ext <<_ACEOF
20433/* confdefs.h. */
20434_ACEOF
20435cat confdefs.h >>conftest.$ac_ext
20436cat >>conftest.$ac_ext <<_ACEOF
20437/* end confdefs.h. */
20438
83d8eb47
MW
20439 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20440 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20441 # error "fake wchar_t"
20442 #endif
20443 #ifdef HAVE_WCHAR_H
20444 # ifdef __CYGWIN__
20445 # include <stddef.h>
20446 # endif
20447 # include <wchar.h>
20448 #endif
20449 #ifdef HAVE_STDLIB_H
20450 # include <stdlib.h>
20451 #endif
20452 #include <stdio.h>
20453
20454
20455
20456int
20457main ()
20458{
20459static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20460test_array [0] = 0
20461
20462 ;
20463 return 0;
20464}
20465_ACEOF
20466rm -f conftest.$ac_objext
20467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20468 (eval $ac_compile) 2>conftest.er1
20469 ac_status=$?
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } &&
5ff751d6 20475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477 (eval $ac_try) 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; } &&
20481 { ac_try='test -s conftest.$ac_objext'
20482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20483 (eval $ac_try) 2>&5
20484 ac_status=$?
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; }; then
20487 ac_hi=$ac_mid; break
20488else
20489 echo "$as_me: failed program was:" >&5
20490sed 's/^/| /' conftest.$ac_ext >&5
20491
20492ac_lo=`expr $ac_mid + 1`
20493 if test $ac_lo -le $ac_mid; then
20494 ac_lo= ac_hi=
20495 break
20496 fi
20497 ac_mid=`expr 2 '*' $ac_mid + 1`
20498fi
20499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20500 done
20501else
20502 echo "$as_me: failed program was:" >&5
20503sed 's/^/| /' conftest.$ac_ext >&5
20504
20505cat >conftest.$ac_ext <<_ACEOF
20506/* confdefs.h. */
20507_ACEOF
20508cat confdefs.h >>conftest.$ac_ext
20509cat >>conftest.$ac_ext <<_ACEOF
20510/* end confdefs.h. */
20511
83d8eb47
MW
20512 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20513 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20514 # error "fake wchar_t"
20515 #endif
20516 #ifdef HAVE_WCHAR_H
20517 # ifdef __CYGWIN__
20518 # include <stddef.h>
20519 # endif
20520 # include <wchar.h>
20521 #endif
20522 #ifdef HAVE_STDLIB_H
20523 # include <stdlib.h>
20524 #endif
20525 #include <stdio.h>
20526
20527
20528
20529int
20530main ()
20531{
20532static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20533test_array [0] = 0
20534
20535 ;
20536 return 0;
20537}
20538_ACEOF
20539rm -f conftest.$ac_objext
20540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20541 (eval $ac_compile) 2>conftest.er1
20542 ac_status=$?
20543 grep -v '^ *+' conftest.er1 >conftest.err
20544 rm -f conftest.er1
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
5ff751d6 20548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; } &&
20554 { ac_try='test -s conftest.$ac_objext'
20555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556 (eval $ac_try) 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20560 ac_hi=-1 ac_mid=-1
20561 while :; do
20562 cat >conftest.$ac_ext <<_ACEOF
20563/* confdefs.h. */
20564_ACEOF
20565cat confdefs.h >>conftest.$ac_ext
20566cat >>conftest.$ac_ext <<_ACEOF
20567/* end confdefs.h. */
20568
83d8eb47
MW
20569 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20570 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20571 # error "fake wchar_t"
20572 #endif
20573 #ifdef HAVE_WCHAR_H
20574 # ifdef __CYGWIN__
20575 # include <stddef.h>
20576 # endif
20577 # include <wchar.h>
20578 #endif
20579 #ifdef HAVE_STDLIB_H
20580 # include <stdlib.h>
20581 #endif
20582 #include <stdio.h>
20583
20584
20585
20586int
20587main ()
20588{
20589static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20590test_array [0] = 0
20591
20592 ;
20593 return 0;
20594}
20595_ACEOF
20596rm -f conftest.$ac_objext
20597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20598 (eval $ac_compile) 2>conftest.er1
20599 ac_status=$?
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } &&
5ff751d6 20605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607 (eval $ac_try) 2>&5
20608 ac_status=$?
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); }; } &&
20611 { ac_try='test -s conftest.$ac_objext'
20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613 (eval $ac_try) 2>&5
20614 ac_status=$?
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; }; then
20617 ac_lo=$ac_mid; break
20618else
20619 echo "$as_me: failed program was:" >&5
20620sed 's/^/| /' conftest.$ac_ext >&5
20621
20622ac_hi=`expr '(' $ac_mid ')' - 1`
20623 if test $ac_mid -le $ac_hi; then
20624 ac_lo= ac_hi=
20625 break
20626 fi
20627 ac_mid=`expr 2 '*' $ac_mid`
20628fi
20629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20630 done
20631else
20632 echo "$as_me: failed program was:" >&5
20633sed 's/^/| /' conftest.$ac_ext >&5
20634
20635ac_lo= ac_hi=
20636fi
20637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20638fi
20639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20640# Binary search between lo and hi bounds.
20641while test "x$ac_lo" != "x$ac_hi"; do
20642 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20643 cat >conftest.$ac_ext <<_ACEOF
20644/* confdefs.h. */
20645_ACEOF
20646cat confdefs.h >>conftest.$ac_ext
20647cat >>conftest.$ac_ext <<_ACEOF
20648/* end confdefs.h. */
20649
83d8eb47
MW
20650 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20651 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20652 # error "fake wchar_t"
20653 #endif
20654 #ifdef HAVE_WCHAR_H
20655 # ifdef __CYGWIN__
20656 # include <stddef.h>
20657 # endif
20658 # include <wchar.h>
20659 #endif
20660 #ifdef HAVE_STDLIB_H
20661 # include <stdlib.h>
20662 #endif
20663 #include <stdio.h>
a848cd7e 20664
a848cd7e 20665
a848cd7e 20666
238ecede
MW
20667int
20668main ()
20669{
20670static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20671test_array [0] = 0
a848cd7e 20672
238ecede
MW
20673 ;
20674 return 0;
20675}
20676_ACEOF
20677rm -f conftest.$ac_objext
20678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20679 (eval $ac_compile) 2>conftest.er1
20680 ac_status=$?
20681 grep -v '^ *+' conftest.er1 >conftest.err
20682 rm -f conftest.er1
20683 cat conftest.err >&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } &&
5ff751d6 20686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; } &&
20692 { ac_try='test -s conftest.$ac_objext'
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
20698 ac_hi=$ac_mid
20699else
20700 echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
20703ac_lo=`expr '(' $ac_mid ')' + 1`
20704fi
20705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20706done
20707case $ac_lo in
20708?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20709'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20710See \`config.log' for more details." >&5
20711echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20712See \`config.log' for more details." >&2;}
20713 { (exit 1); exit 1; }; } ;;
20714esac
20715else
20716 if test "$cross_compiling" = yes; then
5ff751d6
VZ
20717 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20718echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 20719 { (exit 1); exit 1; }; }
a848cd7e
SC
20720else
20721 cat >conftest.$ac_ext <<_ACEOF
20722/* confdefs.h. */
20723_ACEOF
20724cat confdefs.h >>conftest.$ac_ext
20725cat >>conftest.$ac_ext <<_ACEOF
20726/* end confdefs.h. */
20727
83d8eb47
MW
20728 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20729 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20730 # error "fake wchar_t"
20731 #endif
20732 #ifdef HAVE_WCHAR_H
20733 # ifdef __CYGWIN__
20734 # include <stddef.h>
20735 # endif
20736 # include <wchar.h>
20737 #endif
20738 #ifdef HAVE_STDLIB_H
20739 # include <stdlib.h>
20740 #endif
20741 #include <stdio.h>
20742
20743
20744
20745long longval () { return (long) (sizeof (wchar_t)); }
20746unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20747#include <stdio.h>
20748#include <stdlib.h>
20749int
20750main ()
20751{
a848cd7e 20752
238ecede
MW
20753 FILE *f = fopen ("conftest.val", "w");
20754 if (! f)
20755 exit (1);
20756 if (((long) (sizeof (wchar_t))) < 0)
20757 {
20758 long i = longval ();
20759 if (i != ((long) (sizeof (wchar_t))))
20760 exit (1);
20761 fprintf (f, "%ld\n", i);
20762 }
20763 else
20764 {
20765 unsigned long i = ulongval ();
20766 if (i != ((long) (sizeof (wchar_t))))
20767 exit (1);
20768 fprintf (f, "%lu\n", i);
20769 }
20770 exit (ferror (f) || fclose (f) != 0);
20771
20772 ;
20773 return 0;
20774}
a848cd7e
SC
20775_ACEOF
20776rm -f conftest$ac_exeext
20777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20778 (eval $ac_link) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20783 (eval $ac_try) 2>&5
20784 ac_status=$?
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; }; then
238ecede 20787 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
20788else
20789 echo "$as_me: program exited with status $ac_status" >&5
20790echo "$as_me: failed program was:" >&5
20791sed 's/^/| /' conftest.$ac_ext >&5
20792
20793( exit $ac_status )
238ecede
MW
20794{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20795See \`config.log' for more details." >&5
20796echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20797See \`config.log' for more details." >&2;}
20798 { (exit 1); exit 1; }; }
a848cd7e 20799fi
ac1cb8d3 20800rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 20801fi
a848cd7e 20802fi
238ecede
MW
20803rm -f conftest.val
20804else
20805 ac_cv_sizeof_wchar_t=0
20806fi
20807fi
20808echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20809echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 20810cat >>confdefs.h <<_ACEOF
238ecede 20811#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
20812_ACEOF
20813
20814
47a7e797
MW
20815if test "$ac_cv_sizeof_wchar_t" != "0"; then
20816 wxUSE_WCHAR_T=yes
20817else
20818 wxUSE_WCHAR_T=no
20819fi
238ecede 20820
ba3d13e1
VZ
20821echo "$as_me:$LINENO: checking for va_copy" >&5
20822echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20823if test "${wx_cv_func_va_copy+set}" = set; then
20824 echo $ECHO_N "(cached) $ECHO_C" >&6
20825else
20826
20827 cat >conftest.$ac_ext <<_ACEOF
20828
20829 #include <stdarg.h>
20830 void foo(char *f, ...)
20831 {
20832 va_list ap1, ap2;
20833 va_start(ap1, f);
20834 va_copy(ap2, ap1);
20835 va_end(ap2);
20836 va_end(ap1);
20837 }
5886b072
VZ
20838 int main()
20839 {
b902e639
VZ
20840 foo("hi", 17);
20841 return 0;
5886b072 20842 }
ba3d13e1
VZ
20843_ACEOF
20844rm -f conftest.$ac_objext conftest$ac_exeext
20845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20846 (eval $ac_link) 2>conftest.er1
20847 ac_status=$?
20848 grep -v '^ *+' conftest.er1 >conftest.err
20849 rm -f conftest.er1
20850 cat conftest.err >&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } &&
5ff751d6 20853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
20854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855 (eval $ac_try) 2>&5
20856 ac_status=$?
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); }; } &&
20859 { ac_try='test -s conftest$ac_exeext'
20860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20861 (eval $ac_try) 2>&5
20862 ac_status=$?
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); }; }; then
20865 wx_cv_func_va_copy=yes
20866else
20867 echo "$as_me: failed program was:" >&5
20868sed 's/^/| /' conftest.$ac_ext >&5
20869
20870wx_cv_func_va_copy=no
20871
20872fi
20873rm -f conftest.err conftest.$ac_objext \
20874 conftest$ac_exeext conftest.$ac_ext
20875
20876
20877fi
20878echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20879echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20880
20881if test $wx_cv_func_va_copy = "yes"; then
20882 cat >>confdefs.h <<\_ACEOF
20883#define HAVE_VA_COPY 1
20884_ACEOF
20885
20886else
20887 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20888echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20889if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20891else
20892
20893 if test "$cross_compiling" = yes; then
20894 wx_cv_type_va_list_lvalue=yes
20895
20896else
20897 cat >conftest.$ac_ext <<_ACEOF
20898
20899 #include <stdarg.h>
20900 int foo(char *f, ...)
20901 {
20902 va_list ap1, ap2;
20903 va_start(ap1, f);
20904 ap2 = ap1;
20905 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20906 return 1;
20907 va_end(ap2);
20908 va_end(ap1);
20909 return 0;
20910 }
20911 int main()
20912 {
20913 return foo("hi", 17);
20914 }
20915_ACEOF
20916rm -f conftest$ac_exeext
20917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20918 (eval $ac_link) 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923 (eval $ac_try) 2>&5
20924 ac_status=$?
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; }; then
20927 wx_cv_type_va_list_lvalue=yes
20928else
20929 echo "$as_me: program exited with status $ac_status" >&5
20930echo "$as_me: failed program was:" >&5
20931sed 's/^/| /' conftest.$ac_ext >&5
20932
20933( exit $ac_status )
20934wx_cv_type_va_list_lvalue=no
20935fi
20936rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20937fi
20938
20939
20940fi
20941echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20942echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20943
20944 if test $wx_cv_type_va_list_lvalue != "yes"; then
20945 cat >>confdefs.h <<\_ACEOF
20946#define VA_LIST_IS_ARRAY 1
20947_ACEOF
20948
20949 fi
20950fi
20951
a848cd7e
SC
20952# Check whether --enable-largefile or --disable-largefile was given.
20953if test "${enable_largefile+set}" = set; then
20954 enableval="$enable_largefile"
20955
20956fi;
20957if test "$enable_largefile" != no; then
20958 wx_largefile=no
20959
20960 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20961echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20962if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
20964else
20965
20966 cat >conftest.$ac_ext <<_ACEOF
20967/* confdefs.h. */
20968_ACEOF
20969cat confdefs.h >>conftest.$ac_ext
20970cat >>conftest.$ac_ext <<_ACEOF
20971/* end confdefs.h. */
20972#define _FILE_OFFSET_BITS 64
20973 #include <sys/types.h>
20974int
20975main ()
20976{
20977typedef struct {
20978 unsigned int field: sizeof(off_t) == 8;
20979} wxlf;
20980
20981 ;
20982 return 0;
20983}
20984_ACEOF
20985rm -f conftest.$ac_objext
20986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20987 (eval $ac_compile) 2>conftest.er1
a848cd7e 20988 ac_status=$?
ac1cb8d3
VS
20989 grep -v '^ *+' conftest.er1 >conftest.err
20990 rm -f conftest.er1
20991 cat conftest.err >&5
a848cd7e
SC
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } &&
5ff751d6 20994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; } &&
21000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002 (eval $ac_try) 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 ac_cv_sys_file_offset_bits=64
21007else
21008 echo "$as_me: failed program was:" >&5
21009sed 's/^/| /' conftest.$ac_ext >&5
21010
21011ac_cv_sys_file_offset_bits=no
21012fi
ac1cb8d3 21013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21014
21015
21016fi
21017echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21018echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21019
21020 if test "$ac_cv_sys_file_offset_bits" != no; then
21021 wx_largefile=yes
21022 cat >>confdefs.h <<_ACEOF
21023#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21024_ACEOF
21025
21026 fi
21027
21028 if test "x$wx_largefile" != "xyes"; then
21029
21030 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21031echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21032if test "${ac_cv_sys_large_files+set}" = set; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21034else
21035
21036 cat >conftest.$ac_ext <<_ACEOF
21037/* confdefs.h. */
21038_ACEOF
21039cat confdefs.h >>conftest.$ac_ext
21040cat >>conftest.$ac_ext <<_ACEOF
21041/* end confdefs.h. */
21042#define _LARGE_FILES 1
21043 #include <sys/types.h>
21044int
21045main ()
21046{
21047typedef struct {
21048 unsigned int field: sizeof(off_t) == 8;
21049} wxlf;
21050
21051 ;
21052 return 0;
21053}
21054_ACEOF
21055rm -f conftest.$ac_objext
21056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21057 (eval $ac_compile) 2>conftest.er1
a848cd7e 21058 ac_status=$?
ac1cb8d3
VS
21059 grep -v '^ *+' conftest.er1 >conftest.err
21060 rm -f conftest.er1
21061 cat conftest.err >&5
a848cd7e
SC
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
5ff751d6 21064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; } &&
21070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5
21073 ac_status=$?
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; }; then
21076 ac_cv_sys_large_files=1
21077else
21078 echo "$as_me: failed program was:" >&5
21079sed 's/^/| /' conftest.$ac_ext >&5
21080
21081ac_cv_sys_large_files=no
21082fi
ac1cb8d3 21083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21084
21085
21086fi
21087echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21088echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21089
21090 if test "$ac_cv_sys_large_files" != no; then
21091 wx_largefile=yes
21092 cat >>confdefs.h <<_ACEOF
21093#define _LARGE_FILES $ac_cv_sys_large_files
21094_ACEOF
21095
21096 fi
21097
21098 fi
21099
21100 echo "$as_me:$LINENO: checking if large file support is available" >&5
21101echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21102 if test "x$wx_largefile" = "xyes"; then
21103 cat >>confdefs.h <<\_ACEOF
21104#define HAVE_LARGEFILE_SUPPORT 1
21105_ACEOF
21106
21107 fi
21108 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21109echo "${ECHO_T}$wx_largefile" >&6
21110fi
21111
5b674b9d
DE
21112
21113if test "x$wx_largefile" = "xyes"; then
21114 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21115 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21116
21117 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21118 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21119echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21120if test "${wx_cv_STDC_EXT_required+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21122else
21123
21124
21125
21126 ac_ext=cc
21127ac_cpp='$CXXCPP $CPPFLAGS'
21128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21131
21132 cat >conftest.$ac_ext <<_ACEOF
21133/* confdefs.h. */
21134_ACEOF
21135cat confdefs.h >>conftest.$ac_ext
21136cat >>conftest.$ac_ext <<_ACEOF
21137/* end confdefs.h. */
21138
21139int
21140main ()
21141{
21142
21143 #ifndef __STDC_EXT__
21144 choke me
21145 #endif
21146
21147 ;
21148 return 0;
21149}
21150_ACEOF
21151rm -f conftest.$ac_objext
21152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21153 (eval $ac_compile) 2>conftest.er1
21154 ac_status=$?
21155 grep -v '^ *+' conftest.er1 >conftest.err
21156 rm -f conftest.er1
21157 cat conftest.err >&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } &&
5ff751d6 21160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21163 ac_status=$?
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; } &&
21166 { ac_try='test -s conftest.$ac_objext'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 wx_cv_STDC_EXT_required=no
21173else
21174 echo "$as_me: failed program was:" >&5
21175sed 's/^/| /' conftest.$ac_ext >&5
21176
21177wx_cv_STDC_EXT_required=yes
21178
21179fi
21180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21181 ac_ext=c
21182ac_cpp='$CPP $CPPFLAGS'
21183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21185ac_compiler_gnu=$ac_cv_c_compiler_gnu
21186
21187
21188
21189fi
21190echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21191echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21192 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21193 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21194 fi
21195 fi
5b674b9d 21196 else
5ff751d6 21197 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21198 fi
21199 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21200echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21201if test "${ac_cv_sys_largefile_source+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21203else
21204 while :; do
21205 ac_cv_sys_largefile_source=no
21206 cat >conftest.$ac_ext <<_ACEOF
21207/* confdefs.h. */
21208_ACEOF
21209cat confdefs.h >>conftest.$ac_ext
21210cat >>conftest.$ac_ext <<_ACEOF
21211/* end confdefs.h. */
21212#include <stdio.h>
21213int
21214main ()
21215{
21216return !fseeko;
21217 ;
21218 return 0;
21219}
21220_ACEOF
21221rm -f conftest.$ac_objext
21222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21223 (eval $ac_compile) 2>conftest.er1
21224 ac_status=$?
21225 grep -v '^ *+' conftest.er1 >conftest.err
21226 rm -f conftest.er1
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } &&
5ff751d6 21230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21232 (eval $ac_try) 2>&5
21233 ac_status=$?
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); }; } &&
21236 { ac_try='test -s conftest.$ac_objext'
21237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21238 (eval $ac_try) 2>&5
21239 ac_status=$?
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); }; }; then
21242 break
21243else
21244 echo "$as_me: failed program was:" >&5
21245sed 's/^/| /' conftest.$ac_ext >&5
21246
21247fi
21248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21249 cat >conftest.$ac_ext <<_ACEOF
21250/* confdefs.h. */
21251_ACEOF
21252cat confdefs.h >>conftest.$ac_ext
21253cat >>conftest.$ac_ext <<_ACEOF
21254/* end confdefs.h. */
21255#define _LARGEFILE_SOURCE 1
21256#include <stdio.h>
21257int
21258main ()
21259{
21260return !fseeko;
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); } &&
5ff751d6 21274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
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_cv_sys_largefile_source=1; break
21287else
21288 echo "$as_me: failed program was:" >&5
21289sed 's/^/| /' conftest.$ac_ext >&5
21290
21291fi
21292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21293 break
21294done
21295fi
21296echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21297echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21298if test "$ac_cv_sys_largefile_source" != no; then
21299
21300cat >>confdefs.h <<_ACEOF
21301#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21302_ACEOF
21303
21304fi
21305rm -f conftest*
21306
21307# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21308# in glibc 2.1.3, but that breaks too many other things.
21309# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21310echo "$as_me:$LINENO: checking for fseeko" >&5
21311echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21312if test "${ac_cv_func_fseeko+set}" = set; then
21313 echo $ECHO_N "(cached) $ECHO_C" >&6
21314else
21315 cat >conftest.$ac_ext <<_ACEOF
21316/* confdefs.h. */
21317_ACEOF
21318cat confdefs.h >>conftest.$ac_ext
21319cat >>conftest.$ac_ext <<_ACEOF
21320/* end confdefs.h. */
21321#include <stdio.h>
21322int
21323main ()
21324{
21325return fseeko && fseeko (stdin, 0, 0);
21326 ;
21327 return 0;
21328}
21329_ACEOF
21330rm -f conftest.$ac_objext conftest$ac_exeext
21331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21332 (eval $ac_link) 2>conftest.er1
21333 ac_status=$?
21334 grep -v '^ *+' conftest.er1 >conftest.err
21335 rm -f conftest.er1
21336 cat conftest.err >&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } &&
5ff751d6 21339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21341 (eval $ac_try) 2>&5
21342 ac_status=$?
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); }; } &&
21345 { ac_try='test -s conftest$ac_exeext'
21346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347 (eval $ac_try) 2>&5
21348 ac_status=$?
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; }; then
21351 ac_cv_func_fseeko=yes
21352else
21353 echo "$as_me: failed program was:" >&5
21354sed 's/^/| /' conftest.$ac_ext >&5
21355
21356ac_cv_func_fseeko=no
21357fi
21358rm -f conftest.err conftest.$ac_objext \
21359 conftest$ac_exeext conftest.$ac_ext
21360fi
21361echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21362echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21363if test $ac_cv_func_fseeko = yes; then
21364
21365cat >>confdefs.h <<\_ACEOF
21366#define HAVE_FSEEKO 1
21367_ACEOF
21368
21369fi
21370
5b674b9d 21371 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 21372 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 21373 fi
a848cd7e
SC
21374fi
21375
21376echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21377echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21378if test "${ac_cv_c_bigendian+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21380else
21381 ac_cv_c_bigendian=unknown
21382# See if sys/param.h defines the BYTE_ORDER macro.
21383cat >conftest.$ac_ext <<_ACEOF
21384/* confdefs.h. */
21385_ACEOF
21386cat confdefs.h >>conftest.$ac_ext
21387cat >>conftest.$ac_ext <<_ACEOF
21388/* end confdefs.h. */
21389#include <sys/types.h>
21390#include <sys/param.h>
21391int
21392main ()
21393{
21394
21395#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21396 bogus endian macros
21397#endif
21398 ;
21399 return 0;
21400}
21401_ACEOF
21402rm -f conftest.$ac_objext
21403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21404 (eval $ac_compile) 2>conftest.er1
a848cd7e 21405 ac_status=$?
ac1cb8d3
VS
21406 grep -v '^ *+' conftest.er1 >conftest.err
21407 rm -f conftest.er1
21408 cat conftest.err >&5
a848cd7e
SC
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } &&
5ff751d6 21411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21414 ac_status=$?
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; } &&
21417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 # It does; now see whether it defined to BIG_ENDIAN or not.
21424cat >conftest.$ac_ext <<_ACEOF
21425/* confdefs.h. */
21426_ACEOF
21427cat confdefs.h >>conftest.$ac_ext
21428cat >>conftest.$ac_ext <<_ACEOF
21429/* end confdefs.h. */
21430#include <sys/types.h>
21431#include <sys/param.h>
21432int
21433main ()
21434{
21435
21436#if BYTE_ORDER != BIG_ENDIAN
21437 not big endian
21438#endif
21439 ;
21440 return 0;
21441}
21442_ACEOF
21443rm -f conftest.$ac_objext
21444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21445 (eval $ac_compile) 2>conftest.er1
a848cd7e 21446 ac_status=$?
ac1cb8d3
VS
21447 grep -v '^ *+' conftest.er1 >conftest.err
21448 rm -f conftest.er1
21449 cat conftest.err >&5
a848cd7e
SC
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } &&
5ff751d6 21452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21454 (eval $ac_try) 2>&5
21455 ac_status=$?
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); }; } &&
21458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21460 (eval $ac_try) 2>&5
21461 ac_status=$?
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); }; }; then
21464 ac_cv_c_bigendian=yes
21465else
21466 echo "$as_me: failed program was:" >&5
21467sed 's/^/| /' conftest.$ac_ext >&5
21468
21469ac_cv_c_bigendian=no
21470fi
ac1cb8d3 21471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21472else
21473 echo "$as_me: failed program was:" >&5
21474sed 's/^/| /' conftest.$ac_ext >&5
21475
21476fi
ac1cb8d3 21477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21478if test $ac_cv_c_bigendian = unknown; then
21479if test "$cross_compiling" = yes; then
21480 ac_cv_c_bigendian=unknown
21481else
21482 cat >conftest.$ac_ext <<_ACEOF
21483/* confdefs.h. */
21484_ACEOF
21485cat confdefs.h >>conftest.$ac_ext
21486cat >>conftest.$ac_ext <<_ACEOF
21487/* end confdefs.h. */
21488main () {
21489 /* Are we little or big endian? From Harbison&Steele. */
21490 union
21491 {
21492 long l;
21493 char c[sizeof (long)];
21494 } u;
21495 u.l = 1;
21496 exit (u.c[sizeof (long) - 1] == 1);
21497}
21498_ACEOF
21499rm -f conftest$ac_exeext
21500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21501 (eval $ac_link) 2>&5
21502 ac_status=$?
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21507 ac_status=$?
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; }; then
21510 ac_cv_c_bigendian=no
21511else
21512 echo "$as_me: program exited with status $ac_status" >&5
21513echo "$as_me: failed program was:" >&5
21514sed 's/^/| /' conftest.$ac_ext >&5
21515
21516( exit $ac_status )
21517ac_cv_c_bigendian=yes
21518fi
ac1cb8d3 21519rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21520fi
21521fi
21522fi
21523echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21524echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21525if test $ac_cv_c_bigendian = unknown; then
21526 { 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
21527echo "$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;}
21528fi
21529if test $ac_cv_c_bigendian = yes; then
21530 cat >>confdefs.h <<\_ACEOF
21531#define WORDS_BIGENDIAN 1
21532_ACEOF
21533
21534fi
21535
21536
21537ac_ext=cc
21538ac_cpp='$CXXCPP $CPPFLAGS'
21539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21542echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21543echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21544if test -z "$CXXCPP"; then
21545 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21547else
21548 # Double quotes because CXXCPP needs to be expanded
21549 for CXXCPP in "$CXX -E" "/lib/cpp"
21550 do
21551 ac_preproc_ok=false
21552for ac_cxx_preproc_warn_flag in '' yes
21553do
21554 # Use a header file that comes with gcc, so configuring glibc
21555 # with a fresh cross-compiler works.
21556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21557 # <limits.h> exists even on freestanding compilers.
21558 # On the NeXT, cc -E runs the code through the compiler's parser,
21559 # not just through cpp. "Syntax error" is here to catch this case.
21560 cat >conftest.$ac_ext <<_ACEOF
21561/* confdefs.h. */
21562_ACEOF
21563cat confdefs.h >>conftest.$ac_ext
21564cat >>conftest.$ac_ext <<_ACEOF
21565/* end confdefs.h. */
21566#ifdef __STDC__
21567# include <limits.h>
21568#else
21569# include <assert.h>
21570#endif
ac1cb8d3 21571 Syntax error
a848cd7e
SC
21572_ACEOF
21573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21575 ac_status=$?
21576 grep -v '^ *+' conftest.er1 >conftest.err
21577 rm -f conftest.er1
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } >/dev/null; then
21581 if test -s conftest.err; then
21582 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21583 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21584 else
21585 ac_cpp_err=
21586 fi
21587else
21588 ac_cpp_err=yes
21589fi
21590if test -z "$ac_cpp_err"; then
21591 :
21592else
21593 echo "$as_me: failed program was:" >&5
21594sed 's/^/| /' conftest.$ac_ext >&5
21595
21596 # Broken: fails on valid input.
21597continue
21598fi
21599rm -f conftest.err conftest.$ac_ext
21600
21601 # OK, works on sane cases. Now check whether non-existent headers
21602 # can be detected and how.
21603 cat >conftest.$ac_ext <<_ACEOF
21604/* confdefs.h. */
21605_ACEOF
21606cat confdefs.h >>conftest.$ac_ext
21607cat >>conftest.$ac_ext <<_ACEOF
21608/* end confdefs.h. */
21609#include <ac_nonexistent.h>
21610_ACEOF
21611if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21613 ac_status=$?
21614 grep -v '^ *+' conftest.er1 >conftest.err
21615 rm -f conftest.er1
21616 cat conftest.err >&5
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); } >/dev/null; then
21619 if test -s conftest.err; then
21620 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21621 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21622 else
21623 ac_cpp_err=
21624 fi
21625else
21626 ac_cpp_err=yes
21627fi
21628if test -z "$ac_cpp_err"; then
21629 # Broken: success on invalid input.
21630continue
21631else
21632 echo "$as_me: failed program was:" >&5
21633sed 's/^/| /' conftest.$ac_ext >&5
21634
21635 # Passes both tests.
21636ac_preproc_ok=:
21637break
21638fi
21639rm -f conftest.err conftest.$ac_ext
21640
21641done
21642# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21643rm -f conftest.err conftest.$ac_ext
21644if $ac_preproc_ok; then
21645 break
21646fi
21647
21648 done
21649 ac_cv_prog_CXXCPP=$CXXCPP
21650
21651fi
21652 CXXCPP=$ac_cv_prog_CXXCPP
21653else
21654 ac_cv_prog_CXXCPP=$CXXCPP
21655fi
21656echo "$as_me:$LINENO: result: $CXXCPP" >&5
21657echo "${ECHO_T}$CXXCPP" >&6
21658ac_preproc_ok=false
21659for ac_cxx_preproc_warn_flag in '' yes
21660do
21661 # Use a header file that comes with gcc, so configuring glibc
21662 # with a fresh cross-compiler works.
21663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21664 # <limits.h> exists even on freestanding compilers.
21665 # On the NeXT, cc -E runs the code through the compiler's parser,
21666 # not just through cpp. "Syntax error" is here to catch this case.
21667 cat >conftest.$ac_ext <<_ACEOF
21668/* confdefs.h. */
21669_ACEOF
21670cat confdefs.h >>conftest.$ac_ext
21671cat >>conftest.$ac_ext <<_ACEOF
21672/* end confdefs.h. */
21673#ifdef __STDC__
21674# include <limits.h>
21675#else
21676# include <assert.h>
21677#endif
ac1cb8d3 21678 Syntax error
a848cd7e
SC
21679_ACEOF
21680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21682 ac_status=$?
21683 grep -v '^ *+' conftest.er1 >conftest.err
21684 rm -f conftest.er1
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } >/dev/null; then
21688 if test -s conftest.err; then
21689 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21690 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21691 else
21692 ac_cpp_err=
21693 fi
21694else
21695 ac_cpp_err=yes
21696fi
21697if test -z "$ac_cpp_err"; then
21698 :
21699else
21700 echo "$as_me: failed program was:" >&5
21701sed 's/^/| /' conftest.$ac_ext >&5
21702
21703 # Broken: fails on valid input.
21704continue
21705fi
21706rm -f conftest.err conftest.$ac_ext
21707
21708 # OK, works on sane cases. Now check whether non-existent headers
21709 # can be detected and how.
21710 cat >conftest.$ac_ext <<_ACEOF
21711/* confdefs.h. */
21712_ACEOF
21713cat confdefs.h >>conftest.$ac_ext
21714cat >>conftest.$ac_ext <<_ACEOF
21715/* end confdefs.h. */
21716#include <ac_nonexistent.h>
21717_ACEOF
21718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21720 ac_status=$?
21721 grep -v '^ *+' conftest.er1 >conftest.err
21722 rm -f conftest.er1
21723 cat conftest.err >&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } >/dev/null; then
21726 if test -s conftest.err; then
21727 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21728 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21729 else
21730 ac_cpp_err=
21731 fi
21732else
21733 ac_cpp_err=yes
21734fi
21735if test -z "$ac_cpp_err"; then
21736 # Broken: success on invalid input.
21737continue
21738else
21739 echo "$as_me: failed program was:" >&5
21740sed 's/^/| /' conftest.$ac_ext >&5
21741
21742 # Passes both tests.
21743ac_preproc_ok=:
21744break
21745fi
21746rm -f conftest.err conftest.$ac_ext
21747
21748done
21749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21750rm -f conftest.err conftest.$ac_ext
21751if $ac_preproc_ok; then
21752 :
21753else
21754 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21755See \`config.log' for more details." >&5
21756echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21757See \`config.log' for more details." >&2;}
21758 { (exit 1); exit 1; }; }
21759fi
21760
21761ac_ext=cc
21762ac_cpp='$CXXCPP $CPPFLAGS'
21763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21766
21767
21768
21769
21770
21771 ac_ext=cc
21772ac_cpp='$CXXCPP $CPPFLAGS'
21773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21776
21777
21778
21779for ac_header in iostream
21780do
21781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21782if eval "test \"\${$as_ac_Header+set}\" = set"; then
21783 echo "$as_me:$LINENO: checking for $ac_header" >&5
21784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21785if eval "test \"\${$as_ac_Header+set}\" = set"; then
21786 echo $ECHO_N "(cached) $ECHO_C" >&6
21787fi
21788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21790else
21791 # Is the header compilable?
21792echo "$as_me:$LINENO: checking $ac_header usability" >&5
21793echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21794cat >conftest.$ac_ext <<_ACEOF
21795/* confdefs.h. */
21796_ACEOF
21797cat confdefs.h >>conftest.$ac_ext
21798cat >>conftest.$ac_ext <<_ACEOF
21799/* end confdefs.h. */
21800$ac_includes_default
21801#include <$ac_header>
21802_ACEOF
21803rm -f conftest.$ac_objext
21804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21805 (eval $ac_compile) 2>conftest.er1
a848cd7e 21806 ac_status=$?
ac1cb8d3
VS
21807 grep -v '^ *+' conftest.er1 >conftest.err
21808 rm -f conftest.er1
21809 cat conftest.err >&5
a848cd7e
SC
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } &&
5ff751d6 21812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21814 (eval $ac_try) 2>&5
21815 ac_status=$?
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; } &&
21818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21820 (eval $ac_try) 2>&5
21821 ac_status=$?
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); }; }; then
21824 ac_header_compiler=yes
21825else
21826 echo "$as_me: failed program was:" >&5
21827sed 's/^/| /' conftest.$ac_ext >&5
21828
21829ac_header_compiler=no
21830fi
ac1cb8d3 21831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21832echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21833echo "${ECHO_T}$ac_header_compiler" >&6
21834
21835# Is the header present?
21836echo "$as_me:$LINENO: checking $ac_header presence" >&5
21837echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21838cat >conftest.$ac_ext <<_ACEOF
21839/* confdefs.h. */
21840_ACEOF
21841cat confdefs.h >>conftest.$ac_ext
21842cat >>conftest.$ac_ext <<_ACEOF
21843/* end confdefs.h. */
21844#include <$ac_header>
21845_ACEOF
21846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21848 ac_status=$?
21849 grep -v '^ *+' conftest.er1 >conftest.err
21850 rm -f conftest.er1
21851 cat conftest.err >&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } >/dev/null; then
21854 if test -s conftest.err; then
21855 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21856 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21857 else
21858 ac_cpp_err=
21859 fi
21860else
21861 ac_cpp_err=yes
21862fi
21863if test -z "$ac_cpp_err"; then
21864 ac_header_preproc=yes
21865else
21866 echo "$as_me: failed program was:" >&5
21867sed 's/^/| /' conftest.$ac_ext >&5
21868
21869 ac_header_preproc=no
21870fi
21871rm -f conftest.err conftest.$ac_ext
21872echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21873echo "${ECHO_T}$ac_header_preproc" >&6
21874
21875# So? What about this header?
ac1cb8d3
VS
21876case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21877 yes:no: )
a848cd7e
SC
21878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21879echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21881echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21882 ac_header_preproc=yes
a848cd7e 21883 ;;
ac1cb8d3 21884 no:yes:* )
a848cd7e
SC
21885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21886echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21888echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21890echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21892echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21896echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21897 (
21898 cat <<\_ASBOX
ac1cb8d3
VS
21899## ----------------------------------------- ##
21900## Report this to wx-dev@lists.wxwidgets.org ##
21901## ----------------------------------------- ##
a848cd7e
SC
21902_ASBOX
21903 ) |
21904 sed "s/^/$as_me: WARNING: /" >&2
21905 ;;
21906esac
21907echo "$as_me:$LINENO: checking for $ac_header" >&5
21908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21909if eval "test \"\${$as_ac_Header+set}\" = set"; then
21910 echo $ECHO_N "(cached) $ECHO_C" >&6
21911else
ac1cb8d3 21912 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21913fi
21914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21916
21917fi
21918if test `eval echo '${'$as_ac_Header'}'` = yes; then
21919 cat >>confdefs.h <<_ACEOF
21920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21921_ACEOF
21922
21923fi
21924
21925done
21926
21927
21928 if test "$ac_cv_header_iostream" = "yes" ; then
21929 :
21930 else
21931 cat >>confdefs.h <<\_ACEOF
21932#define wxUSE_IOSTREAMH 1
21933_ACEOF
21934
21935 fi
21936
21937 ac_ext=c
21938ac_cpp='$CPP $CPPFLAGS'
21939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21941ac_compiler_gnu=$ac_cv_c_compiler_gnu
21942
21943
21944
21945
21946 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21947echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21948if test "${wx_cv_cpp_bool+set}" = set; then
21949 echo $ECHO_N "(cached) $ECHO_C" >&6
21950else
21951
21952
21953
21954 ac_ext=cc
21955ac_cpp='$CXXCPP $CPPFLAGS'
21956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21959
21960
21961 cat >conftest.$ac_ext <<_ACEOF
21962/* confdefs.h. */
21963_ACEOF
21964cat confdefs.h >>conftest.$ac_ext
21965cat >>conftest.$ac_ext <<_ACEOF
21966/* end confdefs.h. */
21967
21968
21969int
21970main ()
21971{
21972
21973 bool b = true;
21974
21975 return 0;
21976
21977 ;
21978 return 0;
21979}
21980_ACEOF
21981rm -f conftest.$ac_objext
21982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21983 (eval $ac_compile) 2>conftest.er1
a848cd7e 21984 ac_status=$?
ac1cb8d3
VS
21985 grep -v '^ *+' conftest.er1 >conftest.err
21986 rm -f conftest.er1
21987 cat conftest.err >&5
a848cd7e
SC
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } &&
5ff751d6 21990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992 (eval $ac_try) 2>&5
21993 ac_status=$?
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; } &&
21996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21998 (eval $ac_try) 2>&5
21999 ac_status=$?
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); }; }; then
22002
22003 wx_cv_cpp_bool=yes
22004
22005else
22006 echo "$as_me: failed program was:" >&5
22007sed 's/^/| /' conftest.$ac_ext >&5
22008
22009
22010 wx_cv_cpp_bool=no
22011
22012
22013fi
ac1cb8d3 22014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22015
22016 ac_ext=c
22017ac_cpp='$CPP $CPPFLAGS'
22018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22020ac_compiler_gnu=$ac_cv_c_compiler_gnu
22021
22022
22023fi
22024echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22025echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22026
22027 if test "$wx_cv_cpp_bool" = "yes"; then
22028 cat >>confdefs.h <<\_ACEOF
22029#define HAVE_BOOL 1
22030_ACEOF
22031
22032 fi
22033
22034
22035
22036 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22037echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22038if test "${wx_cv_explicit+set}" = set; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22040else
22041
22042
22043
22044 ac_ext=cc
22045ac_cpp='$CXXCPP $CPPFLAGS'
22046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22049
22050
22051 cat >conftest.$ac_ext <<_ACEOF
22052/* confdefs.h. */
22053_ACEOF
22054cat confdefs.h >>conftest.$ac_ext
22055cat >>conftest.$ac_ext <<_ACEOF
22056/* end confdefs.h. */
22057
22058 class Foo { public: explicit Foo(int) {} };
22059
22060int
22061main ()
22062{
22063
22064 return 0;
22065
22066 ;
22067 return 0;
22068}
22069_ACEOF
22070rm -f conftest.$ac_objext
22071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22072 (eval $ac_compile) 2>conftest.er1
a848cd7e 22073 ac_status=$?
ac1cb8d3
VS
22074 grep -v '^ *+' conftest.er1 >conftest.err
22075 rm -f conftest.er1
22076 cat conftest.err >&5
a848cd7e
SC
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } &&
5ff751d6 22079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22081 (eval $ac_try) 2>&5
22082 ac_status=$?
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); }; } &&
22085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22087 (eval $ac_try) 2>&5
22088 ac_status=$?
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); }; }; then
22091
22092 cat >conftest.$ac_ext <<_ACEOF
22093/* confdefs.h. */
22094_ACEOF
22095cat confdefs.h >>conftest.$ac_ext
22096cat >>conftest.$ac_ext <<_ACEOF
22097/* end confdefs.h. */
22098
22099 class Foo { public: explicit Foo(int) {} };
22100 static void TakeFoo(const Foo& foo) { }
22101
22102int
22103main ()
22104{
22105
22106 TakeFoo(17);
22107 return 0;
22108
22109 ;
22110 return 0;
22111}
22112_ACEOF
22113rm -f conftest.$ac_objext
22114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22115 (eval $ac_compile) 2>conftest.er1
a848cd7e 22116 ac_status=$?
ac1cb8d3
VS
22117 grep -v '^ *+' conftest.er1 >conftest.err
22118 rm -f conftest.er1
22119 cat conftest.err >&5
a848cd7e
SC
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } &&
5ff751d6 22122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
22128 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22130 (eval $ac_try) 2>&5
22131 ac_status=$?
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }; }; then
22134 wx_cv_explicit=no
22135else
22136 echo "$as_me: failed program was:" >&5
22137sed 's/^/| /' conftest.$ac_ext >&5
22138
22139wx_cv_explicit=yes
22140
22141fi
ac1cb8d3 22142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22143
22144else
22145 echo "$as_me: failed program was:" >&5
22146sed 's/^/| /' conftest.$ac_ext >&5
22147
22148wx_cv_explicit=no
22149
22150fi
ac1cb8d3 22151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22152
22153 ac_ext=c
22154ac_cpp='$CPP $CPPFLAGS'
22155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22157ac_compiler_gnu=$ac_cv_c_compiler_gnu
22158
22159
22160fi
22161echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22162echo "${ECHO_T}$wx_cv_explicit" >&6
22163
22164 if test "$wx_cv_explicit" = "yes"; then
22165 cat >>confdefs.h <<\_ACEOF
22166#define HAVE_EXPLICIT 1
22167_ACEOF
22168
22169 fi
22170
22171
22172echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22173echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22174if test "${ac_cv_cxx_const_cast+set}" = set; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22176else
22177
22178
22179 ac_ext=cc
22180ac_cpp='$CXXCPP $CPPFLAGS'
22181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22184
22185 cat >conftest.$ac_ext <<_ACEOF
22186/* confdefs.h. */
22187_ACEOF
22188cat confdefs.h >>conftest.$ac_ext
22189cat >>conftest.$ac_ext <<_ACEOF
22190/* end confdefs.h. */
22191
22192int
22193main ()
22194{
22195int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22196 ;
22197 return 0;
22198}
22199_ACEOF
22200rm -f conftest.$ac_objext
22201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22202 (eval $ac_compile) 2>conftest.er1
a848cd7e 22203 ac_status=$?
ac1cb8d3
VS
22204 grep -v '^ *+' conftest.er1 >conftest.err
22205 rm -f conftest.er1
22206 cat conftest.err >&5
a848cd7e
SC
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } &&
5ff751d6 22209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22211 (eval $ac_try) 2>&5
22212 ac_status=$?
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; } &&
22215 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22217 (eval $ac_try) 2>&5
22218 ac_status=$?
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); }; }; then
22221 ac_cv_cxx_const_cast=yes
22222else
22223 echo "$as_me: failed program was:" >&5
22224sed 's/^/| /' conftest.$ac_ext >&5
22225
22226ac_cv_cxx_const_cast=no
22227fi
ac1cb8d3 22228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22229 ac_ext=c
22230ac_cpp='$CPP $CPPFLAGS'
22231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22233ac_compiler_gnu=$ac_cv_c_compiler_gnu
22234
22235
22236fi
22237echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22238echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22239if test "$ac_cv_cxx_const_cast" = yes; then
22240
22241cat >>confdefs.h <<\_ACEOF
22242#define HAVE_CONST_CAST
22243_ACEOF
22244
22245fi
22246
7714864e
RL
22247echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22248echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22249if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22250 echo $ECHO_N "(cached) $ECHO_C" >&6
22251else
22252
22253
22254 ac_ext=cc
22255ac_cpp='$CXXCPP $CPPFLAGS'
22256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22259
22260 cat >conftest.$ac_ext <<_ACEOF
22261/* confdefs.h. */
22262_ACEOF
22263cat confdefs.h >>conftest.$ac_ext
22264cat >>conftest.$ac_ext <<_ACEOF
22265/* end confdefs.h. */
22266#include <typeinfo>
22267class Base { public : Base () {} virtual void f () = 0;};
22268class Derived : public Base { public : Derived () {} virtual void f () {} };
22269class Unrelated { public : Unrelated () {} };
22270int g (Unrelated&) { return 0; }
22271int
22272main ()
22273{
22274
22275Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22276 ;
22277 return 0;
22278}
22279_ACEOF
22280rm -f conftest.$ac_objext
22281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22282 (eval $ac_compile) 2>conftest.er1
22283 ac_status=$?
22284 grep -v '^ *+' conftest.er1 >conftest.err
22285 rm -f conftest.er1
22286 cat conftest.err >&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } &&
5ff751d6 22289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
22290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22291 (eval $ac_try) 2>&5
22292 ac_status=$?
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); }; } &&
22295 { ac_try='test -s conftest.$ac_objext'
22296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22297 (eval $ac_try) 2>&5
22298 ac_status=$?
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); }; }; then
22301 ac_cv_cxx_reinterpret_cast=yes
22302else
22303 echo "$as_me: failed program was:" >&5
22304sed 's/^/| /' conftest.$ac_ext >&5
22305
22306ac_cv_cxx_reinterpret_cast=no
22307fi
22308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22309 ac_ext=c
22310ac_cpp='$CPP $CPPFLAGS'
22311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22313ac_compiler_gnu=$ac_cv_c_compiler_gnu
22314
22315
22316fi
22317echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22318echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22319if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22320
22321cat >>confdefs.h <<\_ACEOF
22322#define HAVE_REINTERPRET_CAST
22323_ACEOF
22324
22325fi
22326
a848cd7e
SC
22327echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22328echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22329if test "${ac_cv_cxx_static_cast+set}" = set; then
22330 echo $ECHO_N "(cached) $ECHO_C" >&6
22331else
22332
22333
22334 ac_ext=cc
22335ac_cpp='$CXXCPP $CPPFLAGS'
22336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22339
22340 cat >conftest.$ac_ext <<_ACEOF
22341/* confdefs.h. */
22342_ACEOF
22343cat confdefs.h >>conftest.$ac_ext
22344cat >>conftest.$ac_ext <<_ACEOF
22345/* end confdefs.h. */
22346#include <typeinfo>
22347class Base { public : Base () {} virtual void f () = 0; };
22348class Derived : public Base { public : Derived () {} virtual void f () {} };
22349int g (Derived&) { return 0; }
22350int
22351main ()
22352{
22353
22354Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22355 ;
22356 return 0;
22357}
22358_ACEOF
22359rm -f conftest.$ac_objext
22360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22361 (eval $ac_compile) 2>conftest.er1
a848cd7e 22362 ac_status=$?
ac1cb8d3
VS
22363 grep -v '^ *+' conftest.er1 >conftest.err
22364 rm -f conftest.er1
22365 cat conftest.err >&5
a848cd7e
SC
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } &&
5ff751d6 22368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370 (eval $ac_try) 2>&5
22371 ac_status=$?
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); }; } &&
22374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380 ac_cv_cxx_static_cast=yes
22381else
22382 echo "$as_me: failed program was:" >&5
22383sed 's/^/| /' conftest.$ac_ext >&5
22384
22385ac_cv_cxx_static_cast=no
22386fi
ac1cb8d3 22387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22388 ac_ext=c
22389ac_cpp='$CPP $CPPFLAGS'
22390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22392ac_compiler_gnu=$ac_cv_c_compiler_gnu
22393
22394
22395fi
22396echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22397echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22398if test "$ac_cv_cxx_static_cast" = yes; then
22399
22400cat >>confdefs.h <<\_ACEOF
22401#define HAVE_STATIC_CAST
22402_ACEOF
22403
22404fi
22405
22406
3c28b7cb
MW
22407if test "x$SUNCXX" = xyes; then
22408 CXXFLAGS="$CXXFLAGS -features=tmplife"
22409fi
22410
9122d155
VZ
22411if test "x$SUNCC" = xyes; then
22412 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
22413fi
22414
0ad5d837
VZ
22415if test "x$SGICC" = "xyes"; then
22416 CFLAGS="$CFLAGS -woff 3970"
22417fi
22418if test "x$SGICXX" = "xyes"; then
22419 CXXFLAGS="$CXXFLAGS -woff 3970"
22420fi
22421
2eef8513
VZ
22422if test "x$HPCC" = "xyes"; then
22423 CFLAGS="$CFLAGS +W 2011,2450"
22424fi
22425if test "x$HPCXX" = "xyes"; then
22426 CXXFLAGS="$CXXFLAGS +W 2340"
22427fi
22428
22429if test "x$COMPAQCXX" = "xyes"; then
22430 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22431fi
22432
f56c22b4 22433if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22434 ac_ext=cc
22435ac_cpp='$CXXCPP $CPPFLAGS'
22436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22439
22440
f56c22b4
MW
22441 if test "$wxUSE_UNICODE" = "yes"; then
22442 std_string="std::wstring"
22443 char_type="wchar_t"
22444 else
22445 std_string="std::string"
22446 char_type="char"
22447 fi
22448
22449 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22450echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22451 cat >conftest.$ac_ext <<_ACEOF
22452/* confdefs.h. */
22453_ACEOF
22454cat confdefs.h >>conftest.$ac_ext
22455cat >>conftest.$ac_ext <<_ACEOF
22456/* end confdefs.h. */
22457#include <string>
a848cd7e
SC
22458int
22459main ()
22460{
f56c22b4 22461$std_string foo;
a848cd7e
SC
22462 ;
22463 return 0;
22464}
22465_ACEOF
22466rm -f conftest.$ac_objext
22467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22468 (eval $ac_compile) 2>conftest.er1
a848cd7e 22469 ac_status=$?
ac1cb8d3
VS
22470 grep -v '^ *+' conftest.er1 >conftest.err
22471 rm -f conftest.er1
22472 cat conftest.err >&5
a848cd7e
SC
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } &&
5ff751d6 22475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477 (eval $ac_try) 2>&5
22478 ac_status=$?
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; } &&
22481 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22483 (eval $ac_try) 2>&5
22484 ac_status=$?
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); }; }; then
22487 echo "$as_me:$LINENO: result: yes" >&5
22488echo "${ECHO_T}yes" >&6
0a08f02a
MB
22489 cat >>confdefs.h <<\_ACEOF
22490#define HAVE_STD_WSTRING 1
22491_ACEOF
22492
a848cd7e
SC
22493else
22494 echo "$as_me: failed program was:" >&5
22495sed 's/^/| /' conftest.$ac_ext >&5
22496
22497echo "$as_me:$LINENO: result: no" >&5
22498echo "${ECHO_T}no" >&6
f56c22b4
MW
22499 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22500echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22501 cat >conftest.$ac_ext <<_ACEOF
22502/* confdefs.h. */
22503_ACEOF
22504cat confdefs.h >>conftest.$ac_ext
22505cat >>conftest.$ac_ext <<_ACEOF
22506/* end confdefs.h. */
22507
22508 #ifdef HAVE_WCHAR_H
22509 # ifdef __CYGWIN__
22510 # include <stddef.h>
22511 # endif
22512 # include <wchar.h>
22513 #endif
22514 #ifdef HAVE_STDLIB_H
22515 # include <stdlib.h>
22516 #endif
22517 #include <stdio.h>
22518 #include <string>
22519
22520int
22521main ()
22522{
f56c22b4
MW
22523std::basic_string<$char_type> foo;
22524 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22525 ;
22526 return 0;
22527}
22528_ACEOF
22529rm -f conftest.$ac_objext
22530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22531 (eval $ac_compile) 2>conftest.er1
22532 ac_status=$?
22533 grep -v '^ *+' conftest.er1 >conftest.err
22534 rm -f conftest.er1
22535 cat conftest.err >&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); } &&
5ff751d6 22538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
22539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540 (eval $ac_try) 2>&5
22541 ac_status=$?
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); }; } &&
22544 { ac_try='test -s conftest.$ac_objext'
22545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22546 (eval $ac_try) 2>&5
22547 ac_status=$?
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; }; then
22550 echo "$as_me:$LINENO: result: yes" >&5
22551echo "${ECHO_T}yes" >&6
22552else
22553 echo "$as_me: failed program was:" >&5
22554sed 's/^/| /' conftest.$ac_ext >&5
22555
22556echo "$as_me:$LINENO: result: no" >&5
22557echo "${ECHO_T}no" >&6
f56c22b4 22558 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22559 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22560echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22561 { (exit 1); exit 1; }; }
22562 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22563 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22564echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22565 { (exit 1); exit 1; }; }
f56c22b4
MW
22566 else
22567 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22568echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22569 wxUSE_STD_STRING=no
22570 fi
22571
0a08f02a 22572
a848cd7e 22573fi
ac1cb8d3 22574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22575
0a08f02a
MB
22576fi
22577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22578
22579 ac_ext=c
22580ac_cpp='$CPP $CPPFLAGS'
22581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22583ac_compiler_gnu=$ac_cv_c_compiler_gnu
22584
22585fi
22586
22587if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22588 ac_ext=cc
22589ac_cpp='$CXXCPP $CPPFLAGS'
22590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22593
22594
22595 echo "$as_me:$LINENO: checking for std::istream" >&5
22596echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22597if test "${ac_cv_type_std__istream+set}" = set; then
22598 echo $ECHO_N "(cached) $ECHO_C" >&6
22599else
22600 cat >conftest.$ac_ext <<_ACEOF
22601/* confdefs.h. */
22602_ACEOF
22603cat confdefs.h >>conftest.$ac_ext
22604cat >>conftest.$ac_ext <<_ACEOF
22605/* end confdefs.h. */
22606#include <iostream>
22607
22608int
22609main ()
22610{
22611if ((std::istream *) 0)
22612 return 0;
22613if (sizeof (std::istream))
22614 return 0;
22615 ;
22616 return 0;
22617}
22618_ACEOF
22619rm -f conftest.$ac_objext
22620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22621 (eval $ac_compile) 2>conftest.er1
22622 ac_status=$?
22623 grep -v '^ *+' conftest.er1 >conftest.err
22624 rm -f conftest.er1
22625 cat conftest.err >&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } &&
5ff751d6 22628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630 (eval $ac_try) 2>&5
22631 ac_status=$?
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; } &&
22634 { ac_try='test -s conftest.$ac_objext'
22635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636 (eval $ac_try) 2>&5
22637 ac_status=$?
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; }; then
22640 ac_cv_type_std__istream=yes
22641else
22642 echo "$as_me: failed program was:" >&5
22643sed 's/^/| /' conftest.$ac_ext >&5
22644
22645ac_cv_type_std__istream=no
22646fi
22647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22648fi
22649echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22650echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22651if test $ac_cv_type_std__istream = yes; then
22652
22653cat >>confdefs.h <<_ACEOF
22654#define HAVE_STD__ISTREAM 1
22655_ACEOF
22656
22657
22658else
22659 wxUSE_STD_IOSTREAM=no
22660fi
22661echo "$as_me:$LINENO: checking for std::ostream" >&5
22662echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22663if test "${ac_cv_type_std__ostream+set}" = set; then
22664 echo $ECHO_N "(cached) $ECHO_C" >&6
22665else
22666 cat >conftest.$ac_ext <<_ACEOF
22667/* confdefs.h. */
22668_ACEOF
22669cat confdefs.h >>conftest.$ac_ext
22670cat >>conftest.$ac_ext <<_ACEOF
22671/* end confdefs.h. */
22672#include <iostream>
22673
22674int
22675main ()
22676{
22677if ((std::ostream *) 0)
22678 return 0;
22679if (sizeof (std::ostream))
22680 return 0;
22681 ;
22682 return 0;
22683}
22684_ACEOF
22685rm -f conftest.$ac_objext
22686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22687 (eval $ac_compile) 2>conftest.er1
22688 ac_status=$?
22689 grep -v '^ *+' conftest.er1 >conftest.err
22690 rm -f conftest.er1
22691 cat conftest.err >&5
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } &&
5ff751d6 22694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22696 (eval $ac_try) 2>&5
22697 ac_status=$?
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); }; } &&
22700 { ac_try='test -s conftest.$ac_objext'
22701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22702 (eval $ac_try) 2>&5
22703 ac_status=$?
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); }; }; then
22706 ac_cv_type_std__ostream=yes
22707else
22708 echo "$as_me: failed program was:" >&5
22709sed 's/^/| /' conftest.$ac_ext >&5
22710
22711ac_cv_type_std__ostream=no
22712fi
22713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22714fi
22715echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22716echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22717if test $ac_cv_type_std__ostream = yes; then
22718
22719cat >>confdefs.h <<_ACEOF
22720#define HAVE_STD__OSTREAM 1
22721_ACEOF
22722
22723
22724else
22725 wxUSE_STD_IOSTREAM=no
22726fi
22727
22728
22729 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22730 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22731 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22732echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22733 { (exit 1); exit 1; }; }
22734 else
22735 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 22736echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 22737 fi
f56c22b4
MW
22738 fi
22739
22740 ac_ext=c
22741ac_cpp='$CPP $CPPFLAGS'
22742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
22744ac_compiler_gnu=$ac_cv_c_compiler_gnu
22745
22746fi
22747
22748if test "$wxUSE_STL" = "yes"; then
22749 ac_ext=cc
22750ac_cpp='$CXXCPP $CPPFLAGS'
22751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22754
22755
22756 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22757echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
22758 cat >conftest.$ac_ext <<_ACEOF
22759/* confdefs.h. */
22760_ACEOF
22761cat confdefs.h >>conftest.$ac_ext
22762cat >>conftest.$ac_ext <<_ACEOF
22763/* end confdefs.h. */
22764#include <string>
0a08f02a
MB
22765 #include <functional>
22766 #include <algorithm>
22767 #include <vector>
22768 #include <list>
a848cd7e
SC
22769int
22770main ()
22771{
0a08f02a
MB
22772std::vector<int> moo;
22773 std::list<int> foo;
22774 std::vector<int>::iterator it =
22775 std::find_if(moo.begin(), moo.end(),
22776 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
22777 ;
22778 return 0;
22779}
22780_ACEOF
22781rm -f conftest.$ac_objext
22782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22783 (eval $ac_compile) 2>conftest.er1
a848cd7e 22784 ac_status=$?
ac1cb8d3
VS
22785 grep -v '^ *+' conftest.er1 >conftest.err
22786 rm -f conftest.er1
22787 cat conftest.err >&5
a848cd7e
SC
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); } &&
5ff751d6 22790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22792 (eval $ac_try) 2>&5
22793 ac_status=$?
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); }; } &&
22796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22799 ac_status=$?
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; }; then
22802 echo "$as_me:$LINENO: result: yes" >&5
22803echo "${ECHO_T}yes" >&6
a848cd7e
SC
22804else
22805 echo "$as_me: failed program was:" >&5
22806sed 's/^/| /' conftest.$ac_ext >&5
22807
22808echo "$as_me:$LINENO: result: no" >&5
22809echo "${ECHO_T}no" >&6
0a08f02a
MB
22810 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22811echo "$as_me: error: Basic STL functionality missing" >&2;}
22812 { (exit 1); exit 1; }; }
a848cd7e 22813fi
ac1cb8d3 22814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22815
22816 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22817echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22818 cat >conftest.$ac_ext <<_ACEOF
22819/* confdefs.h. */
22820_ACEOF
22821cat confdefs.h >>conftest.$ac_ext
22822cat >>conftest.$ac_ext <<_ACEOF
22823/* end confdefs.h. */
22824#include <string>
22825int
22826main ()
22827{
22828std::string foo, bar;
22829 foo.compare(bar);
22830 foo.compare(1, 1, bar);
22831 foo.compare(1, 1, bar, 1, 1);
22832 foo.compare("");
22833 foo.compare(1, 1, "");
22834 foo.compare(1, 1, "", 2);
22835 ;
22836 return 0;
22837}
22838_ACEOF
22839rm -f conftest.$ac_objext
22840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22841 (eval $ac_compile) 2>conftest.er1
a848cd7e 22842 ac_status=$?
ac1cb8d3
VS
22843 grep -v '^ *+' conftest.er1 >conftest.err
22844 rm -f conftest.er1
22845 cat conftest.err >&5
a848cd7e
SC
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); } &&
5ff751d6 22848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22850 (eval $ac_try) 2>&5
22851 ac_status=$?
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); }; } &&
22854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856 (eval $ac_try) 2>&5
22857 ac_status=$?
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); }; }; then
22860 echo "$as_me:$LINENO: result: yes" >&5
22861echo "${ECHO_T}yes" >&6
22862 cat >>confdefs.h <<\_ACEOF
22863#define HAVE_STD_STRING_COMPARE 1
22864_ACEOF
22865
22866else
22867 echo "$as_me: failed program was:" >&5
22868sed 's/^/| /' conftest.$ac_ext >&5
22869
22870echo "$as_me:$LINENO: result: no" >&5
22871echo "${ECHO_T}no" >&6
22872fi
ac1cb8d3 22873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22874
22875 if test "${ac_cv_header_hash_map+set}" = set; then
22876 echo "$as_me:$LINENO: checking for hash_map" >&5
22877echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22878if test "${ac_cv_header_hash_map+set}" = set; then
22879 echo $ECHO_N "(cached) $ECHO_C" >&6
22880fi
22881echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22882echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22883else
22884 # Is the header compilable?
22885echo "$as_me:$LINENO: checking hash_map usability" >&5
22886echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22887cat >conftest.$ac_ext <<_ACEOF
22888/* confdefs.h. */
22889_ACEOF
22890cat confdefs.h >>conftest.$ac_ext
22891cat >>conftest.$ac_ext <<_ACEOF
22892/* end confdefs.h. */
22893$ac_includes_default
22894#include <hash_map>
22895_ACEOF
22896rm -f conftest.$ac_objext
22897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22898 (eval $ac_compile) 2>conftest.er1
bdcade0a 22899 ac_status=$?
ac1cb8d3
VS
22900 grep -v '^ *+' conftest.er1 >conftest.err
22901 rm -f conftest.er1
22902 cat conftest.err >&5
bdcade0a
MB
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } &&
5ff751d6 22905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22907 (eval $ac_try) 2>&5
22908 ac_status=$?
22909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); }; } &&
22911 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22913 (eval $ac_try) 2>&5
22914 ac_status=$?
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); }; }; then
22917 ac_header_compiler=yes
22918else
22919 echo "$as_me: failed program was:" >&5
22920sed 's/^/| /' conftest.$ac_ext >&5
22921
22922ac_header_compiler=no
22923fi
ac1cb8d3 22924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22925echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22926echo "${ECHO_T}$ac_header_compiler" >&6
22927
22928# Is the header present?
22929echo "$as_me:$LINENO: checking hash_map presence" >&5
22930echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
22931cat >conftest.$ac_ext <<_ACEOF
22932/* confdefs.h. */
22933_ACEOF
22934cat confdefs.h >>conftest.$ac_ext
22935cat >>conftest.$ac_ext <<_ACEOF
22936/* end confdefs.h. */
22937#include <hash_map>
22938_ACEOF
22939if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22941 ac_status=$?
22942 grep -v '^ *+' conftest.er1 >conftest.err
22943 rm -f conftest.er1
22944 cat conftest.err >&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } >/dev/null; then
22947 if test -s conftest.err; then
22948 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22949 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22950 else
22951 ac_cpp_err=
22952 fi
22953else
22954 ac_cpp_err=yes
22955fi
22956if test -z "$ac_cpp_err"; then
22957 ac_header_preproc=yes
22958else
22959 echo "$as_me: failed program was:" >&5
22960sed 's/^/| /' conftest.$ac_ext >&5
22961
22962 ac_header_preproc=no
22963fi
22964rm -f conftest.err conftest.$ac_ext
22965echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22966echo "${ECHO_T}$ac_header_preproc" >&6
22967
22968# So? What about this header?
ac1cb8d3
VS
22969case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22970 yes:no: )
bdcade0a
MB
22971 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22972echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22973 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
22974echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
22975 ac_header_preproc=yes
bdcade0a 22976 ;;
ac1cb8d3 22977 no:yes:* )
bdcade0a
MB
22978 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
22979echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22980 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
22981echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
22982 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
22983echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
22984 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
22985echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22986 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
22987echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22988 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
22989echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22990 (
22991 cat <<\_ASBOX
ac1cb8d3
VS
22992## ----------------------------------------- ##
22993## Report this to wx-dev@lists.wxwidgets.org ##
22994## ----------------------------------------- ##
bdcade0a
MB
22995_ASBOX
22996 ) |
22997 sed "s/^/$as_me: WARNING: /" >&2
22998 ;;
22999esac
23000echo "$as_me:$LINENO: checking for hash_map" >&5
23001echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23002if test "${ac_cv_header_hash_map+set}" = set; then
23003 echo $ECHO_N "(cached) $ECHO_C" >&6
23004else
23005 ac_cv_header_hash_map=$ac_header_preproc
23006fi
23007echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23008echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23009
23010fi
23011if test $ac_cv_header_hash_map = yes; then
23012 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23013echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23014 cat >conftest.$ac_ext <<_ACEOF
23015/* confdefs.h. */
23016_ACEOF
23017cat confdefs.h >>conftest.$ac_ext
23018cat >>conftest.$ac_ext <<_ACEOF
23019/* end confdefs.h. */
23020#include <hash_map>
23021 #include <hash_set>
23022int
23023main ()
23024{
23025std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23026 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23027 ;
23028 return 0;
23029}
23030_ACEOF
23031rm -f conftest.$ac_objext
23032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23033 (eval $ac_compile) 2>conftest.er1
bdcade0a 23034 ac_status=$?
ac1cb8d3
VS
23035 grep -v '^ *+' conftest.er1 >conftest.err
23036 rm -f conftest.er1
23037 cat conftest.err >&5
bdcade0a
MB
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); } &&
5ff751d6 23040 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23043 ac_status=$?
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; } &&
23046 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23049 ac_status=$?
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 echo "$as_me:$LINENO: result: yes" >&5
23053echo "${ECHO_T}yes" >&6
23054 cat >>confdefs.h <<\_ACEOF
23055#define HAVE_HASH_MAP 1
23056_ACEOF
23057
23058 cat >>confdefs.h <<\_ACEOF
23059#define HAVE_STD_HASH_MAP 1
23060_ACEOF
23061
23062else
23063 echo "$as_me: failed program was:" >&5
23064sed 's/^/| /' conftest.$ac_ext >&5
23065
23066echo "$as_me:$LINENO: result: no" >&5
23067echo "${ECHO_T}no" >&6
23068fi
ac1cb8d3 23069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23070
23071fi
23072
23073
23074
23075 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23076 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23077echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23078if test "${ac_cv_header_ext_hash_map+set}" = set; then
23079 echo $ECHO_N "(cached) $ECHO_C" >&6
23080fi
23081echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23082echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23083else
23084 # Is the header compilable?
23085echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23086echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23087cat >conftest.$ac_ext <<_ACEOF
23088/* confdefs.h. */
23089_ACEOF
23090cat confdefs.h >>conftest.$ac_ext
23091cat >>conftest.$ac_ext <<_ACEOF
23092/* end confdefs.h. */
23093$ac_includes_default
23094#include <ext/hash_map>
23095_ACEOF
23096rm -f conftest.$ac_objext
23097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23098 (eval $ac_compile) 2>conftest.er1
bdcade0a 23099 ac_status=$?
ac1cb8d3
VS
23100 grep -v '^ *+' conftest.er1 >conftest.err
23101 rm -f conftest.er1
23102 cat conftest.err >&5
bdcade0a
MB
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } &&
5ff751d6 23105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107 (eval $ac_try) 2>&5
23108 ac_status=$?
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); }; } &&
23111 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23113 (eval $ac_try) 2>&5
23114 ac_status=$?
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); }; }; then
23117 ac_header_compiler=yes
23118else
23119 echo "$as_me: failed program was:" >&5
23120sed 's/^/| /' conftest.$ac_ext >&5
23121
23122ac_header_compiler=no
23123fi
ac1cb8d3 23124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23125echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23126echo "${ECHO_T}$ac_header_compiler" >&6
23127
23128# Is the header present?
23129echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23130echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23131cat >conftest.$ac_ext <<_ACEOF
23132/* confdefs.h. */
23133_ACEOF
23134cat confdefs.h >>conftest.$ac_ext
23135cat >>conftest.$ac_ext <<_ACEOF
23136/* end confdefs.h. */
23137#include <ext/hash_map>
23138_ACEOF
23139if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23141 ac_status=$?
23142 grep -v '^ *+' conftest.er1 >conftest.err
23143 rm -f conftest.er1
23144 cat conftest.err >&5
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); } >/dev/null; then
23147 if test -s conftest.err; then
23148 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23149 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23150 else
23151 ac_cpp_err=
23152 fi
23153else
23154 ac_cpp_err=yes
23155fi
23156if test -z "$ac_cpp_err"; then
23157 ac_header_preproc=yes
23158else
23159 echo "$as_me: failed program was:" >&5
23160sed 's/^/| /' conftest.$ac_ext >&5
23161
23162 ac_header_preproc=no
23163fi
23164rm -f conftest.err conftest.$ac_ext
23165echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23166echo "${ECHO_T}$ac_header_preproc" >&6
23167
23168# So? What about this header?
ac1cb8d3
VS
23169case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23170 yes:no: )
bdcade0a
MB
23171 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23172echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23173 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23174echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23175 ac_header_preproc=yes
bdcade0a 23176 ;;
ac1cb8d3 23177 no:yes:* )
bdcade0a
MB
23178 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23179echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23180 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23181echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23182 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23183echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23184 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23185echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23186 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23187echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23188 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23189echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23190 (
23191 cat <<\_ASBOX
ac1cb8d3
VS
23192## ----------------------------------------- ##
23193## Report this to wx-dev@lists.wxwidgets.org ##
23194## ----------------------------------------- ##
bdcade0a
MB
23195_ASBOX
23196 ) |
23197 sed "s/^/$as_me: WARNING: /" >&2
23198 ;;
23199esac
23200echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23201echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23202if test "${ac_cv_header_ext_hash_map+set}" = set; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23204else
23205 ac_cv_header_ext_hash_map=$ac_header_preproc
23206fi
23207echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23208echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23209
23210fi
23211if test $ac_cv_header_ext_hash_map = yes; then
23212 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23213echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23214 cat >conftest.$ac_ext <<_ACEOF
23215/* confdefs.h. */
23216_ACEOF
23217cat confdefs.h >>conftest.$ac_ext
23218cat >>conftest.$ac_ext <<_ACEOF
23219/* end confdefs.h. */
23220#include <ext/hash_map>
23221 #include <ext/hash_set>
23222int
23223main ()
23224{
23225__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23226 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23227 ;
23228 return 0;
23229}
23230_ACEOF
23231rm -f conftest.$ac_objext
23232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23233 (eval $ac_compile) 2>conftest.er1
bdcade0a 23234 ac_status=$?
ac1cb8d3
VS
23235 grep -v '^ *+' conftest.er1 >conftest.err
23236 rm -f conftest.er1
23237 cat conftest.err >&5
bdcade0a
MB
23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239 (exit $ac_status); } &&
5ff751d6 23240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242 (eval $ac_try) 2>&5
23243 ac_status=$?
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); }; } &&
23246 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23248 (eval $ac_try) 2>&5
23249 ac_status=$?
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); }; }; then
23252 echo "$as_me:$LINENO: result: yes" >&5
23253echo "${ECHO_T}yes" >&6
23254 cat >>confdefs.h <<\_ACEOF
23255#define HAVE_EXT_HASH_MAP 1
23256_ACEOF
23257
23258 cat >>confdefs.h <<\_ACEOF
23259#define HAVE_GNU_CXX_HASH_MAP 1
23260_ACEOF
23261
23262else
23263 echo "$as_me: failed program was:" >&5
23264sed 's/^/| /' conftest.$ac_ext >&5
23265
23266echo "$as_me:$LINENO: result: no" >&5
23267echo "${ECHO_T}no" >&6
23268fi
ac1cb8d3 23269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23270
23271fi
23272
23273
a848cd7e
SC
23274
23275 ac_ext=c
23276ac_cpp='$CPP $CPPFLAGS'
23277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23279ac_compiler_gnu=$ac_cv_c_compiler_gnu
23280
23281fi
23282
23283
23284SEARCH_INCLUDE="\
23285 /usr/local/include \
23286 \
23287 /usr/Motif-2.1/include \
23288 /usr/Motif-1.2/include \
23289 /usr/include/Motif1.2 \
a848cd7e
SC
23290 \
23291 /usr/dt/include \
23292 /usr/openwin/include \
23293 \
23294 /usr/include/Xm \
23295 \
23296 /usr/X11R6/include \
23297 /usr/X11R6.4/include \
23298 /usr/X11R5/include \
23299 /usr/X11R4/include \
23300 \
23301 /usr/include/X11R6 \
23302 /usr/include/X11R5 \
23303 /usr/include/X11R4 \
23304 \
23305 /usr/local/X11R6/include \
23306 /usr/local/X11R5/include \
23307 /usr/local/X11R4/include \
23308 \
23309 /usr/local/include/X11R6 \
23310 /usr/local/include/X11R5 \
23311 /usr/local/include/X11R4 \
23312 \
23313 /usr/X11/include \
23314 /usr/include/X11 \
23315 /usr/local/X11/include \
23316 /usr/local/include/X11 \
23317 \
a848cd7e 23318 /usr/XFree86/include/X11 \
e051b34e
MW
23319 /usr/pkg/include \
23320 \
a848cd7e
SC
23321 /usr/openwin/share/include"
23322
6f9cf1e6 23323echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23324echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23325
23326case "${host}" in
23327 *-*-irix6* )
23328 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23329 echo $ECHO_N "(cached) $ECHO_C" >&6
23330else
23331
c687b303
VZ
23332 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23333 for e in a so sl dylib dll.a; do
23334 libc="$d/libc.$e"
23335 if test -f $libc; then
23336 save_LIBS="$LIBS"
23337 LIBS="$libc"
23338 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23339int main() { return 0; }
23340_ACEOF
23341rm -f conftest.$ac_objext conftest$ac_exeext
23342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23343 (eval $ac_link) 2>conftest.er1
23344 ac_status=$?
23345 grep -v '^ *+' conftest.er1 >conftest.err
23346 rm -f conftest.er1
23347 cat conftest.err >&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } &&
5ff751d6 23350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
23351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352 (eval $ac_try) 2>&5
23353 ac_status=$?
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); }; } &&
23356 { ac_try='test -s conftest$ac_exeext'
23357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23358 (eval $ac_try) 2>&5
23359 ac_status=$?
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; }; then
23362 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23363else
23364 echo "$as_me: failed program was:" >&5
23365sed 's/^/| /' conftest.$ac_ext >&5
23366
23367fi
23368rm -f conftest.err conftest.$ac_objext \
23369 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23370 LIBS="$save_LIBS"
23371 if test "x$wx_cv_std_libpath" != "x"; then
23372 break 2
23373 fi
23374 fi
23375 done
23376 done
23377 if test "x$wx_cv_std_libpath" = "x"; then
23378 wx_cv_std_libpath="lib"
0ad5d837 23379 fi
0ad5d837
VZ
23380
23381
23382fi
6f9cf1e6
MW
23383
23384 ;;
23385
23386 *-*-solaris2* )
23387 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23388 wx_cv_std_libpath="lib/64"
23389 else
23390 wx_cv_std_libpath="lib"
23391 fi
23392 ;;
23393
23394 *-*-linux* )
23395 if test "$ac_cv_sizeof_void_p" = 8 -a \
23396 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23397 wx_cv_std_libpath="lib64"
23398 else
23399 wx_cv_std_libpath="lib"
23400 fi
c687b303
VZ
23401 ;;
23402
23403 *)
23404 wx_cv_std_libpath="lib";
23405 ;;
23406esac
0ad5d837 23407
6f9cf1e6
MW
23408echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23409echo "${ECHO_T}$wx_cv_std_libpath" >&6
23410
23411SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23412
3eca31dc
MW
23413if test "$build" != "$host" -a "$GCC" = yes; then
23414 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23415 cross_root=`dirname $cross_root`
23416 cross_root=`dirname $cross_root`
23417
23418 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23419 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23420 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23421
23422 if test -z "$PKG_CONFIG_PATH"; then
23423 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23424 export PKG_CONFIG_PATH
23425 fi
23426
23427 if test -z "$x_includes" -o "$x_includes" = NONE; then
23428
23429ac_find_includes=
23430for ac_dir in $SEARCH_INCLUDE /usr/include;
23431 do
23432 if test -f "$ac_dir/X11/Intrinsic.h"; then
23433 ac_find_includes=$ac_dir
23434 break
23435 fi
23436 done
23437
23438 x_includes=$ac_find_includes
23439 fi
23440 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23441
0ad5d837
VZ
23442 ac_find_libraries=
23443 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23444 do
23445 for ac_extension in a so sl dylib dll.a; do
23446 if test -f "$ac_dir/libXt.$ac_extension"; then
23447 ac_find_libraries=$ac_dir
23448 break 2
23449 fi
23450 done
23451 done
23452
23453 x_libraries=$ac_find_libraries
23454 fi
23455 fi
23456fi
23457
a848cd7e
SC
23458
23459cat >confcache <<\_ACEOF
23460# This file is a shell script that caches the results of configure
23461# tests run on this system so they can be shared between configure
23462# scripts and configure runs, see configure's option --config-cache.
23463# It is not useful on other systems. If it contains results you don't
23464# want to keep, you may remove or edit it.
23465#
23466# config.status only pays attention to the cache file if you give it
23467# the --recheck option to rerun configure.
23468#
23469# `ac_cv_env_foo' variables (set or unset) will be overridden when
23470# loading this file, other *unset* `ac_cv_foo' will be assigned the
23471# following values.
23472
23473_ACEOF
23474
23475# The following way of writing the cache mishandles newlines in values,
23476# but we know of no workaround that is simple, portable, and efficient.
23477# So, don't put newlines in cache variables' values.
23478# Ultrix sh set writes to stderr and can't be redirected directly,
23479# and sets the high bit in the cache file unless we assign to the vars.
23480{
23481 (set) 2>&1 |
23482 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23483 *ac_space=\ *)
23484 # `set' does not quote correctly, so add quotes (double-quote
23485 # substitution turns \\\\ into \\, and sed turns \\ into \).
23486 sed -n \
ac1cb8d3
VS
23487 "s/'/'\\\\''/g;
23488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23489 ;;
23490 *)
23491 # `set' quotes correctly as required by POSIX, so do not add quotes.
23492 sed -n \
ac1cb8d3 23493 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23494 ;;
23495 esac;
23496} |
23497 sed '
23498 t clear
23499 : clear
23500 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23501 t end
23502 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23503 : end' >>confcache
23504if diff $cache_file confcache >/dev/null 2>&1; then :; else
23505 if test -w $cache_file; then
23506 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23507 cat confcache >$cache_file
23508 else
23509 echo "not updating unwritable cache $cache_file"
23510 fi
23511fi
23512rm -f confcache
23513
23514if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23515 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23516echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23517if test "${wx_cv_lib_glibc21+set}" = set; then
23518 echo $ECHO_N "(cached) $ECHO_C" >&6
23519else
23520
23521 cat >conftest.$ac_ext <<_ACEOF
23522/* confdefs.h. */
23523_ACEOF
23524cat confdefs.h >>conftest.$ac_ext
23525cat >>conftest.$ac_ext <<_ACEOF
23526/* end confdefs.h. */
23527#include <features.h>
23528int
23529main ()
23530{
23531
23532 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23533 not glibc 2.1
a848cd7e
SC
23534 #endif
23535
23536 ;
23537 return 0;
23538}
23539_ACEOF
23540rm -f conftest.$ac_objext
23541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23542 (eval $ac_compile) 2>conftest.er1
a848cd7e 23543 ac_status=$?
ac1cb8d3
VS
23544 grep -v '^ *+' conftest.er1 >conftest.err
23545 rm -f conftest.er1
23546 cat conftest.err >&5
a848cd7e
SC
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } &&
5ff751d6 23549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23551 (eval $ac_try) 2>&5
23552 ac_status=$?
23553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); }; } &&
23555 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23557 (eval $ac_try) 2>&5
23558 ac_status=$?
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); }; }; then
23561
23562 wx_cv_lib_glibc21=yes
23563
23564else
23565 echo "$as_me: failed program was:" >&5
23566sed 's/^/| /' conftest.$ac_ext >&5
23567
23568
23569 wx_cv_lib_glibc21=no
23570
23571
23572fi
ac1cb8d3 23573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23574
23575fi
23576echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23577echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23578 if test "$wx_cv_lib_glibc21" = "yes"; then
23579 cat >>confdefs.h <<\_ACEOF
23580#define wxHAVE_GLIBC2 1
23581_ACEOF
23582
23583 fi
23584fi
23585
23586if test "x$wx_cv_lib_glibc21" = "xyes"; then
23587 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23588 cat >>confdefs.h <<\_ACEOF
23589#define _GNU_SOURCE 1
23590_ACEOF
23591
23592 fi
23593fi
23594
23595
23596
23597if test "$wxUSE_REGEX" != "no"; then
23598 cat >>confdefs.h <<\_ACEOF
23599#define wxUSE_REGEX 1
23600_ACEOF
23601
23602
23603 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23604 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23605echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23606 wxUSE_REGEX=builtin
23607 fi
23608
23609 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23610 if test "${ac_cv_header_regex_h+set}" = set; then
23611 echo "$as_me:$LINENO: checking for regex.h" >&5
23612echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23613if test "${ac_cv_header_regex_h+set}" = set; then
23614 echo $ECHO_N "(cached) $ECHO_C" >&6
23615fi
23616echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23617echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23618else
23619 # Is the header compilable?
23620echo "$as_me:$LINENO: checking regex.h usability" >&5
23621echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23622cat >conftest.$ac_ext <<_ACEOF
23623/* confdefs.h. */
23624_ACEOF
23625cat confdefs.h >>conftest.$ac_ext
23626cat >>conftest.$ac_ext <<_ACEOF
23627/* end confdefs.h. */
23628$ac_includes_default
23629#include <regex.h>
23630_ACEOF
23631rm -f conftest.$ac_objext
23632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23633 (eval $ac_compile) 2>conftest.er1
a848cd7e 23634 ac_status=$?
ac1cb8d3
VS
23635 grep -v '^ *+' conftest.er1 >conftest.err
23636 rm -f conftest.er1
23637 cat conftest.err >&5
a848cd7e
SC
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); } &&
5ff751d6 23640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642 (eval $ac_try) 2>&5
23643 ac_status=$?
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; } &&
23646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23648 (eval $ac_try) 2>&5
23649 ac_status=$?
23650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); }; }; then
23652 ac_header_compiler=yes
23653else
23654 echo "$as_me: failed program was:" >&5
23655sed 's/^/| /' conftest.$ac_ext >&5
23656
23657ac_header_compiler=no
23658fi
ac1cb8d3 23659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23660echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23661echo "${ECHO_T}$ac_header_compiler" >&6
23662
23663# Is the header present?
23664echo "$as_me:$LINENO: checking regex.h presence" >&5
23665echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23666cat >conftest.$ac_ext <<_ACEOF
23667/* confdefs.h. */
23668_ACEOF
23669cat confdefs.h >>conftest.$ac_ext
23670cat >>conftest.$ac_ext <<_ACEOF
23671/* end confdefs.h. */
23672#include <regex.h>
23673_ACEOF
23674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23676 ac_status=$?
23677 grep -v '^ *+' conftest.er1 >conftest.err
23678 rm -f conftest.er1
23679 cat conftest.err >&5
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); } >/dev/null; then
23682 if test -s conftest.err; then
23683 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23685 else
23686 ac_cpp_err=
23687 fi
23688else
23689 ac_cpp_err=yes
23690fi
23691if test -z "$ac_cpp_err"; then
23692 ac_header_preproc=yes
23693else
23694 echo "$as_me: failed program was:" >&5
23695sed 's/^/| /' conftest.$ac_ext >&5
23696
23697 ac_header_preproc=no
23698fi
23699rm -f conftest.err conftest.$ac_ext
23700echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23701echo "${ECHO_T}$ac_header_preproc" >&6
23702
23703# So? What about this header?
ac1cb8d3
VS
23704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23705 yes:no: )
a848cd7e
SC
23706 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23707echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23708 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23709echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23710 ac_header_preproc=yes
a848cd7e 23711 ;;
ac1cb8d3 23712 no:yes:* )
a848cd7e
SC
23713 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23714echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23715 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23716echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23717 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23718echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23719 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23720echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23721 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23722echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23723 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23724echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23725 (
23726 cat <<\_ASBOX
ac1cb8d3
VS
23727## ----------------------------------------- ##
23728## Report this to wx-dev@lists.wxwidgets.org ##
23729## ----------------------------------------- ##
a848cd7e
SC
23730_ASBOX
23731 ) |
23732 sed "s/^/$as_me: WARNING: /" >&2
23733 ;;
23734esac
23735echo "$as_me:$LINENO: checking for regex.h" >&5
23736echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23737if test "${ac_cv_header_regex_h+set}" = set; then
23738 echo $ECHO_N "(cached) $ECHO_C" >&6
23739else
23740 ac_cv_header_regex_h=$ac_header_preproc
23741fi
23742echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23743echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23744
23745fi
23746if test $ac_cv_header_regex_h = yes; then
23747
ab0f0edd
MW
23748
23749for ac_func in regcomp re_search
a848cd7e
SC
23750do
23751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23752echo "$as_me:$LINENO: checking for $ac_func" >&5
23753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23754if eval "test \"\${$as_ac_var+set}\" = set"; then
23755 echo $ECHO_N "(cached) $ECHO_C" >&6
23756else
23757 cat >conftest.$ac_ext <<_ACEOF
23758/* confdefs.h. */
23759_ACEOF
23760cat confdefs.h >>conftest.$ac_ext
23761cat >>conftest.$ac_ext <<_ACEOF
23762/* end confdefs.h. */
ac1cb8d3
VS
23763/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23765#define $ac_func innocuous_$ac_func
23766
a848cd7e
SC
23767/* System header to define __stub macros and hopefully few prototypes,
23768 which can conflict with char $ac_func (); below.
23769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23770 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23771
a848cd7e
SC
23772#ifdef __STDC__
23773# include <limits.h>
23774#else
23775# include <assert.h>
23776#endif
ac1cb8d3
VS
23777
23778#undef $ac_func
23779
a848cd7e
SC
23780/* Override any gcc2 internal prototype to avoid an error. */
23781#ifdef __cplusplus
23782extern "C"
23783{
23784#endif
23785/* We use char because int might match the return type of a gcc2
23786 builtin and then its argument prototype would still apply. */
23787char $ac_func ();
23788/* The GNU C library defines this for functions which it implements
23789 to always fail with ENOSYS. Some functions are actually named
23790 something starting with __ and the normal name is an alias. */
23791#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23792choke me
23793#else
23794char (*f) () = $ac_func;
23795#endif
23796#ifdef __cplusplus
23797}
23798#endif
23799
23800int
23801main ()
23802{
23803return f != $ac_func;
23804 ;
23805 return 0;
23806}
23807_ACEOF
23808rm -f conftest.$ac_objext conftest$ac_exeext
23809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23810 (eval $ac_link) 2>conftest.er1
a848cd7e 23811 ac_status=$?
ac1cb8d3
VS
23812 grep -v '^ *+' conftest.er1 >conftest.err
23813 rm -f conftest.er1
23814 cat conftest.err >&5
a848cd7e
SC
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); } &&
5ff751d6 23817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819 (eval $ac_try) 2>&5
23820 ac_status=$?
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); }; } &&
23823 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825 (eval $ac_try) 2>&5
23826 ac_status=$?
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); }; }; then
23829 eval "$as_ac_var=yes"
23830else
23831 echo "$as_me: failed program was:" >&5
23832sed 's/^/| /' conftest.$ac_ext >&5
23833
23834eval "$as_ac_var=no"
23835fi
ac1cb8d3
VS
23836rm -f conftest.err conftest.$ac_objext \
23837 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23838fi
23839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23840echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23841if test `eval echo '${'$as_ac_var'}'` = yes; then
23842 cat >>confdefs.h <<_ACEOF
23843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23844_ACEOF
23845
23846fi
23847done
23848
23849fi
23850
23851
23852
23853 if test "x$ac_cv_func_regcomp" != "xyes"; then
23854 if test "$wxUSE_REGEX" = "sys" ; then
23855 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23856echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23857 { (exit 1); exit 1; }; }
23858 else
23859 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23860echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23861 wxUSE_REGEX=builtin
23862 fi
23863 else
23864 wxUSE_REGEX=sys
23865 cat >>confdefs.h <<\_ACEOF
23866#define WX_NO_REGEX_ADVANCED 1
23867_ACEOF
23868
23869 fi
23870 fi
23871fi
23872
23873
23874ZLIB_LINK=
23875if test "$wxUSE_ZLIB" != "no" ; then
23876 cat >>confdefs.h <<\_ACEOF
23877#define wxUSE_ZLIB 1
23878_ACEOF
23879
23880
23881 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23882 if test "$USE_DARWIN" = 1; then
23883 system_zlib_h_ok="yes"
23884 else
23885 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23886echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23887if test "${ac_cv_header_zlib_h+set}" = set; then
23888 echo $ECHO_N "(cached) $ECHO_C" >&6
23889else
23890 if test "$cross_compiling" = yes; then
23891 unset ac_cv_header_zlib_h
23892
23893else
23894 cat >conftest.$ac_ext <<_ACEOF
23895/* confdefs.h. */
23896_ACEOF
23897cat confdefs.h >>conftest.$ac_ext
23898cat >>conftest.$ac_ext <<_ACEOF
23899/* end confdefs.h. */
23900
23901 #include <zlib.h>
23902 #include <stdio.h>
23903
23904 int main()
23905 {
23906 FILE *f=fopen("conftestval", "w");
23907 if (!f) exit(1);
23908 fprintf(f, "%s",
23909 ZLIB_VERSION[0] == '1' &&
23910 (ZLIB_VERSION[2] > '1' ||
23911 (ZLIB_VERSION[2] == '1' &&
23912 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23913 exit(0);
23914 }
23915
23916_ACEOF
23917rm -f conftest$ac_exeext
23918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23919 (eval $ac_link) 2>&5
23920 ac_status=$?
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23924 (eval $ac_try) 2>&5
23925 ac_status=$?
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); }; }; then
23928 ac_cv_header_zlib_h=`cat conftestval`
23929else
23930 echo "$as_me: program exited with status $ac_status" >&5
23931echo "$as_me: failed program was:" >&5
23932sed 's/^/| /' conftest.$ac_ext >&5
23933
23934( exit $ac_status )
23935ac_cv_header_zlib_h=no
23936fi
ac1cb8d3 23937rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23938fi
23939
23940fi
23941echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23942echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23943 if test "${ac_cv_header_zlib_h+set}" = set; then
23944 echo "$as_me:$LINENO: checking for zlib.h" >&5
23945echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23946if test "${ac_cv_header_zlib_h+set}" = set; then
23947 echo $ECHO_N "(cached) $ECHO_C" >&6
23948fi
23949echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23950echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23951else
23952 # Is the header compilable?
23953echo "$as_me:$LINENO: checking zlib.h usability" >&5
23954echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
23955cat >conftest.$ac_ext <<_ACEOF
23956/* confdefs.h. */
23957_ACEOF
23958cat confdefs.h >>conftest.$ac_ext
23959cat >>conftest.$ac_ext <<_ACEOF
23960/* end confdefs.h. */
23961$ac_includes_default
23962#include <zlib.h>
23963_ACEOF
23964rm -f conftest.$ac_objext
23965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23966 (eval $ac_compile) 2>conftest.er1
a848cd7e 23967 ac_status=$?
ac1cb8d3
VS
23968 grep -v '^ *+' conftest.er1 >conftest.err
23969 rm -f conftest.er1
23970 cat conftest.err >&5
a848cd7e
SC
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); } &&
5ff751d6 23973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23975 (eval $ac_try) 2>&5
23976 ac_status=$?
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); }; } &&
23979 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23981 (eval $ac_try) 2>&5
23982 ac_status=$?
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); }; }; then
23985 ac_header_compiler=yes
23986else
23987 echo "$as_me: failed program was:" >&5
23988sed 's/^/| /' conftest.$ac_ext >&5
23989
23990ac_header_compiler=no
23991fi
ac1cb8d3 23992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23993echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23994echo "${ECHO_T}$ac_header_compiler" >&6
23995
23996# Is the header present?
23997echo "$as_me:$LINENO: checking zlib.h presence" >&5
23998echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
23999cat >conftest.$ac_ext <<_ACEOF
24000/* confdefs.h. */
24001_ACEOF
24002cat confdefs.h >>conftest.$ac_ext
24003cat >>conftest.$ac_ext <<_ACEOF
24004/* end confdefs.h. */
24005#include <zlib.h>
24006_ACEOF
24007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24009 ac_status=$?
24010 grep -v '^ *+' conftest.er1 >conftest.err
24011 rm -f conftest.er1
24012 cat conftest.err >&5
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); } >/dev/null; then
24015 if test -s conftest.err; then
24016 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24018 else
24019 ac_cpp_err=
24020 fi
24021else
24022 ac_cpp_err=yes
24023fi
24024if test -z "$ac_cpp_err"; then
24025 ac_header_preproc=yes
24026else
24027 echo "$as_me: failed program was:" >&5
24028sed 's/^/| /' conftest.$ac_ext >&5
24029
24030 ac_header_preproc=no
24031fi
24032rm -f conftest.err conftest.$ac_ext
24033echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24034echo "${ECHO_T}$ac_header_preproc" >&6
24035
24036# So? What about this header?
ac1cb8d3
VS
24037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24038 yes:no: )
a848cd7e
SC
24039 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24040echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24041 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24042echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24043 ac_header_preproc=yes
a848cd7e 24044 ;;
ac1cb8d3 24045 no:yes:* )
a848cd7e
SC
24046 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24047echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24048 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24049echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24050 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24051echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24052 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24053echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24054 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24055echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24056 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24057echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24058 (
24059 cat <<\_ASBOX
ac1cb8d3
VS
24060## ----------------------------------------- ##
24061## Report this to wx-dev@lists.wxwidgets.org ##
24062## ----------------------------------------- ##
a848cd7e
SC
24063_ASBOX
24064 ) |
24065 sed "s/^/$as_me: WARNING: /" >&2
24066 ;;
24067esac
24068echo "$as_me:$LINENO: checking for zlib.h" >&5
24069echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24070if test "${ac_cv_header_zlib_h+set}" = set; then
24071 echo $ECHO_N "(cached) $ECHO_C" >&6
24072else
24073 ac_cv_header_zlib_h=$ac_header_preproc
24074fi
24075echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24076echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24077
24078fi
24079
24080
24081
24082 system_zlib_h_ok=$ac_cv_header_zlib_h
24083 fi
24084
24085 if test "$system_zlib_h_ok" = "yes"; then
24086 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24087echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24088if test "${ac_cv_lib_z_deflate+set}" = set; then
24089 echo $ECHO_N "(cached) $ECHO_C" >&6
24090else
24091 ac_check_lib_save_LIBS=$LIBS
24092LIBS="-lz $LIBS"
24093cat >conftest.$ac_ext <<_ACEOF
24094/* confdefs.h. */
24095_ACEOF
24096cat confdefs.h >>conftest.$ac_ext
24097cat >>conftest.$ac_ext <<_ACEOF
24098/* end confdefs.h. */
24099
24100/* Override any gcc2 internal prototype to avoid an error. */
24101#ifdef __cplusplus
24102extern "C"
24103#endif
24104/* We use char because int might match the return type of a gcc2
24105 builtin and then its argument prototype would still apply. */
24106char deflate ();
24107int
24108main ()
24109{
24110deflate ();
24111 ;
24112 return 0;
24113}
24114_ACEOF
24115rm -f conftest.$ac_objext conftest$ac_exeext
24116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24117 (eval $ac_link) 2>conftest.er1
a848cd7e 24118 ac_status=$?
ac1cb8d3
VS
24119 grep -v '^ *+' conftest.er1 >conftest.err
24120 rm -f conftest.er1
24121 cat conftest.err >&5
a848cd7e
SC
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); } &&
5ff751d6 24124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
24130 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24132 (eval $ac_try) 2>&5
24133 ac_status=$?
24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); }; }; then
24136 ac_cv_lib_z_deflate=yes
24137else
24138 echo "$as_me: failed program was:" >&5
24139sed 's/^/| /' conftest.$ac_ext >&5
24140
24141ac_cv_lib_z_deflate=no
24142fi
ac1cb8d3
VS
24143rm -f conftest.err conftest.$ac_objext \
24144 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24145LIBS=$ac_check_lib_save_LIBS
24146fi
24147echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24148echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24149if test $ac_cv_lib_z_deflate = yes; then
24150 ZLIB_LINK=" -lz"
24151fi
24152
24153 fi
24154
24155 if test "x$ZLIB_LINK" = "x" ; then
24156 if test "$wxUSE_ZLIB" = "sys" ; then
24157 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24158echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24159 { (exit 1); exit 1; }; }
24160 else
24161 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24162echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24163 wxUSE_ZLIB=builtin
24164 fi
24165 else
24166 wxUSE_ZLIB=sys
24167 fi
24168 fi
24169fi
24170
24171
24172PNG_LINK=
24173if test "$wxUSE_LIBPNG" != "no" ; then
24174 cat >>confdefs.h <<\_ACEOF
24175#define wxUSE_LIBPNG 1
24176_ACEOF
24177
24178
24179 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24180 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24181echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24182 wxUSE_LIBPNG=sys
24183 fi
24184
24185 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24186 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24187echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24188 wxUSE_LIBPNG=builtin
24189 fi
24190
24191 if test "$wxUSE_MGL" != 1 ; then
24192 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24193 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24194echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24195if test "${ac_cv_header_png_h+set}" = set; then
24196 echo $ECHO_N "(cached) $ECHO_C" >&6
24197else
24198 if test "$cross_compiling" = yes; then
24199 unset ac_cv_header_png_h
24200
24201else
24202 cat >conftest.$ac_ext <<_ACEOF
24203/* confdefs.h. */
24204_ACEOF
24205cat confdefs.h >>conftest.$ac_ext
24206cat >>conftest.$ac_ext <<_ACEOF
24207/* end confdefs.h. */
24208
24209 #include <png.h>
24210 #include <stdio.h>
24211
24212 int main()
24213 {
24214 FILE *f=fopen("conftestval", "w");
24215 if (!f) exit(1);
24216 fprintf(f, "%s",
24217 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24218 exit(0);
24219 }
24220
24221_ACEOF
24222rm -f conftest$ac_exeext
24223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24224 (eval $ac_link) 2>&5
24225 ac_status=$?
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24229 (eval $ac_try) 2>&5
24230 ac_status=$?
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); }; }; then
24233 ac_cv_header_png_h=`cat conftestval`
24234else
24235 echo "$as_me: program exited with status $ac_status" >&5
24236echo "$as_me: failed program was:" >&5
24237sed 's/^/| /' conftest.$ac_ext >&5
24238
24239( exit $ac_status )
24240ac_cv_header_png_h=no
24241fi
ac1cb8d3 24242rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24243fi
24244
24245fi
24246echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24247echo "${ECHO_T}$ac_cv_header_png_h" >&6
24248 if test "${ac_cv_header_png_h+set}" = set; then
24249 echo "$as_me:$LINENO: checking for png.h" >&5
24250echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24251if test "${ac_cv_header_png_h+set}" = set; then
24252 echo $ECHO_N "(cached) $ECHO_C" >&6
24253fi
24254echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24255echo "${ECHO_T}$ac_cv_header_png_h" >&6
24256else
24257 # Is the header compilable?
24258echo "$as_me:$LINENO: checking png.h usability" >&5
24259echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24260cat >conftest.$ac_ext <<_ACEOF
24261/* confdefs.h. */
24262_ACEOF
24263cat confdefs.h >>conftest.$ac_ext
24264cat >>conftest.$ac_ext <<_ACEOF
24265/* end confdefs.h. */
24266$ac_includes_default
24267#include <png.h>
24268_ACEOF
24269rm -f conftest.$ac_objext
24270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24271 (eval $ac_compile) 2>conftest.er1
a848cd7e 24272 ac_status=$?
ac1cb8d3
VS
24273 grep -v '^ *+' conftest.er1 >conftest.err
24274 rm -f conftest.er1
24275 cat conftest.err >&5
a848cd7e
SC
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); } &&
5ff751d6 24278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24280 (eval $ac_try) 2>&5
24281 ac_status=$?
24282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); }; } &&
24284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24286 (eval $ac_try) 2>&5
24287 ac_status=$?
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); }; }; then
24290 ac_header_compiler=yes
24291else
24292 echo "$as_me: failed program was:" >&5
24293sed 's/^/| /' conftest.$ac_ext >&5
24294
24295ac_header_compiler=no
24296fi
ac1cb8d3 24297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24298echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24299echo "${ECHO_T}$ac_header_compiler" >&6
24300
24301# Is the header present?
24302echo "$as_me:$LINENO: checking png.h presence" >&5
24303echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24304cat >conftest.$ac_ext <<_ACEOF
24305/* confdefs.h. */
24306_ACEOF
24307cat confdefs.h >>conftest.$ac_ext
24308cat >>conftest.$ac_ext <<_ACEOF
24309/* end confdefs.h. */
24310#include <png.h>
24311_ACEOF
24312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24314 ac_status=$?
24315 grep -v '^ *+' conftest.er1 >conftest.err
24316 rm -f conftest.er1
24317 cat conftest.err >&5
24318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); } >/dev/null; then
24320 if test -s conftest.err; then
24321 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24323 else
24324 ac_cpp_err=
24325 fi
24326else
24327 ac_cpp_err=yes
24328fi
24329if test -z "$ac_cpp_err"; then
24330 ac_header_preproc=yes
24331else
24332 echo "$as_me: failed program was:" >&5
24333sed 's/^/| /' conftest.$ac_ext >&5
24334
24335 ac_header_preproc=no
24336fi
24337rm -f conftest.err conftest.$ac_ext
24338echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24339echo "${ECHO_T}$ac_header_preproc" >&6
24340
24341# So? What about this header?
ac1cb8d3
VS
24342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24343 yes:no: )
a848cd7e
SC
24344 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24345echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24346 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24347echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24348 ac_header_preproc=yes
a848cd7e 24349 ;;
ac1cb8d3 24350 no:yes:* )
a848cd7e
SC
24351 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24352echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24353 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24354echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24355 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24356echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24357 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24358echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24359 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24360echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24361 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24362echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24363 (
24364 cat <<\_ASBOX
ac1cb8d3
VS
24365## ----------------------------------------- ##
24366## Report this to wx-dev@lists.wxwidgets.org ##
24367## ----------------------------------------- ##
a848cd7e
SC
24368_ASBOX
24369 ) |
24370 sed "s/^/$as_me: WARNING: /" >&2
24371 ;;
24372esac
24373echo "$as_me:$LINENO: checking for png.h" >&5
24374echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24375if test "${ac_cv_header_png_h+set}" = set; then
24376 echo $ECHO_N "(cached) $ECHO_C" >&6
24377else
24378 ac_cv_header_png_h=$ac_header_preproc
24379fi
24380echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24381echo "${ECHO_T}$ac_cv_header_png_h" >&6
24382
24383fi
24384
24385
24386
24387 if test "$ac_cv_header_png_h" = "yes"; then
24388 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24389echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24390if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24391 echo $ECHO_N "(cached) $ECHO_C" >&6
24392else
24393 ac_check_lib_save_LIBS=$LIBS
24394LIBS="-lpng -lz -lm $LIBS"
24395cat >conftest.$ac_ext <<_ACEOF
24396/* confdefs.h. */
24397_ACEOF
24398cat confdefs.h >>conftest.$ac_ext
24399cat >>conftest.$ac_ext <<_ACEOF
24400/* end confdefs.h. */
24401
24402/* Override any gcc2 internal prototype to avoid an error. */
24403#ifdef __cplusplus
24404extern "C"
24405#endif
24406/* We use char because int might match the return type of a gcc2
24407 builtin and then its argument prototype would still apply. */
24408char png_check_sig ();
24409int
24410main ()
24411{
24412png_check_sig ();
24413 ;
24414 return 0;
24415}
24416_ACEOF
24417rm -f conftest.$ac_objext conftest$ac_exeext
24418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24419 (eval $ac_link) 2>conftest.er1
a848cd7e 24420 ac_status=$?
ac1cb8d3
VS
24421 grep -v '^ *+' conftest.er1 >conftest.err
24422 rm -f conftest.er1
24423 cat conftest.err >&5
a848cd7e
SC
24424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425 (exit $ac_status); } &&
5ff751d6 24426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428 (eval $ac_try) 2>&5
24429 ac_status=$?
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); }; } &&
24432 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24434 (eval $ac_try) 2>&5
24435 ac_status=$?
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); }; }; then
24438 ac_cv_lib_png_png_check_sig=yes
24439else
24440 echo "$as_me: failed program was:" >&5
24441sed 's/^/| /' conftest.$ac_ext >&5
24442
24443ac_cv_lib_png_png_check_sig=no
24444fi
ac1cb8d3
VS
24445rm -f conftest.err conftest.$ac_objext \
24446 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24447LIBS=$ac_check_lib_save_LIBS
24448fi
24449echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24450echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24451if test $ac_cv_lib_png_png_check_sig = yes; then
24452 PNG_LINK=" -lpng -lz"
24453fi
24454
24455 fi
24456
24457 if test "x$PNG_LINK" = "x" ; then
24458 if test "$wxUSE_LIBPNG" = "sys" ; then
24459 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24460echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24461 { (exit 1); exit 1; }; }
24462 else
24463 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24464echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24465 wxUSE_LIBPNG=builtin
24466 fi
24467 else
24468 wxUSE_LIBPNG=sys
24469 fi
24470 fi
24471 fi
24472
24473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24474fi
24475
24476
24477JPEG_LINK=
24478if test "$wxUSE_LIBJPEG" != "no" ; then
24479 cat >>confdefs.h <<\_ACEOF
24480#define wxUSE_LIBJPEG 1
24481_ACEOF
24482
24483
24484 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24485 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24486echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24487 wxUSE_LIBJPEG=sys
24488 fi
24489
24490 if test "$wxUSE_MGL" != 1 ; then
24491 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24492 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24493echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24494 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24495 echo $ECHO_N "(cached) $ECHO_C" >&6
24496else
24497 cat >conftest.$ac_ext <<_ACEOF
24498/* confdefs.h. */
24499_ACEOF
24500cat confdefs.h >>conftest.$ac_ext
24501cat >>conftest.$ac_ext <<_ACEOF
24502/* end confdefs.h. */
24503
24504 #undef HAVE_STDLIB_H
24505 #include <stdio.h>
24506 #include <jpeglib.h>
24507
24508int
24509main ()
24510{
24511
24512
24513 ;
24514 return 0;
24515}
24516_ACEOF
24517rm -f conftest.$ac_objext
24518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24519 (eval $ac_compile) 2>conftest.er1
a848cd7e 24520 ac_status=$?
ac1cb8d3
VS
24521 grep -v '^ *+' conftest.er1 >conftest.err
24522 rm -f conftest.er1
24523 cat conftest.err >&5
a848cd7e
SC
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); } &&
5ff751d6 24526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24528 (eval $ac_try) 2>&5
24529 ac_status=$?
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); }; } &&
24532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24534 (eval $ac_try) 2>&5
24535 ac_status=$?
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); }; }; then
24538 ac_cv_header_jpeglib_h=yes
24539else
24540 echo "$as_me: failed program was:" >&5
24541sed 's/^/| /' conftest.$ac_ext >&5
24542
24543ac_cv_header_jpeglib_h=no
24544
24545fi
ac1cb8d3 24546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24547
24548fi
24549
24550 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24551echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24552
24553 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24554 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24555echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24556if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24557 echo $ECHO_N "(cached) $ECHO_C" >&6
24558else
24559 ac_check_lib_save_LIBS=$LIBS
24560LIBS="-ljpeg $LIBS"
24561cat >conftest.$ac_ext <<_ACEOF
24562/* confdefs.h. */
24563_ACEOF
24564cat confdefs.h >>conftest.$ac_ext
24565cat >>conftest.$ac_ext <<_ACEOF
24566/* end confdefs.h. */
24567
24568/* Override any gcc2 internal prototype to avoid an error. */
24569#ifdef __cplusplus
24570extern "C"
24571#endif
24572/* We use char because int might match the return type of a gcc2
24573 builtin and then its argument prototype would still apply. */
24574char jpeg_read_header ();
24575int
24576main ()
24577{
24578jpeg_read_header ();
24579 ;
24580 return 0;
24581}
24582_ACEOF
24583rm -f conftest.$ac_objext conftest$ac_exeext
24584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24585 (eval $ac_link) 2>conftest.er1
a848cd7e 24586 ac_status=$?
ac1cb8d3
VS
24587 grep -v '^ *+' conftest.er1 >conftest.err
24588 rm -f conftest.er1
24589 cat conftest.err >&5
a848cd7e
SC
24590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); } &&
5ff751d6 24592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24594 (eval $ac_try) 2>&5
24595 ac_status=$?
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); }; } &&
24598 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24600 (eval $ac_try) 2>&5
24601 ac_status=$?
24602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603 (exit $ac_status); }; }; then
24604 ac_cv_lib_jpeg_jpeg_read_header=yes
24605else
24606 echo "$as_me: failed program was:" >&5
24607sed 's/^/| /' conftest.$ac_ext >&5
24608
24609ac_cv_lib_jpeg_jpeg_read_header=no
24610fi
ac1cb8d3
VS
24611rm -f conftest.err conftest.$ac_objext \
24612 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24613LIBS=$ac_check_lib_save_LIBS
24614fi
24615echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24616echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24617if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24618 JPEG_LINK=" -ljpeg"
24619fi
24620
24621 fi
24622
24623 if test "x$JPEG_LINK" = "x" ; then
24624 if test "$wxUSE_LIBJPEG" = "sys" ; then
24625 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24626echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24627 { (exit 1); exit 1; }; }
24628 else
24629 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24630echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24631 wxUSE_LIBJPEG=builtin
24632 fi
24633 else
24634 wxUSE_LIBJPEG=sys
24635 fi
24636 fi
24637 fi
24638fi
24639
24640
24641TIFF_LINK=
24642TIFF_PREREQ_LINKS=-lm
24643if test "$wxUSE_LIBTIFF" != "no" ; then
24644 cat >>confdefs.h <<\_ACEOF
24645#define wxUSE_LIBTIFF 1
24646_ACEOF
24647
24648
24649 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24650 if test "$wxUSE_LIBJPEG" = "sys"; then
24651 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24652 fi
24653 if test "$wxUSE_ZLIB" = "sys"; then
24654 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24655 fi
24656 if test "${ac_cv_header_tiffio_h+set}" = set; then
24657 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24658echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24659if test "${ac_cv_header_tiffio_h+set}" = set; then
24660 echo $ECHO_N "(cached) $ECHO_C" >&6
24661fi
24662echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24663echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24664else
24665 # Is the header compilable?
24666echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24667echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24668cat >conftest.$ac_ext <<_ACEOF
24669/* confdefs.h. */
24670_ACEOF
24671cat confdefs.h >>conftest.$ac_ext
24672cat >>conftest.$ac_ext <<_ACEOF
24673/* end confdefs.h. */
24674$ac_includes_default
24675#include <tiffio.h>
24676_ACEOF
24677rm -f conftest.$ac_objext
24678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24679 (eval $ac_compile) 2>conftest.er1
a848cd7e 24680 ac_status=$?
ac1cb8d3
VS
24681 grep -v '^ *+' conftest.er1 >conftest.err
24682 rm -f conftest.er1
24683 cat conftest.err >&5
a848cd7e
SC
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } &&
5ff751d6 24686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688 (eval $ac_try) 2>&5
24689 ac_status=$?
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); }; } &&
24692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24694 (eval $ac_try) 2>&5
24695 ac_status=$?
24696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697 (exit $ac_status); }; }; then
24698 ac_header_compiler=yes
24699else
24700 echo "$as_me: failed program was:" >&5
24701sed 's/^/| /' conftest.$ac_ext >&5
24702
24703ac_header_compiler=no
24704fi
ac1cb8d3 24705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24707echo "${ECHO_T}$ac_header_compiler" >&6
24708
24709# Is the header present?
24710echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24711echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24712cat >conftest.$ac_ext <<_ACEOF
24713/* confdefs.h. */
24714_ACEOF
24715cat confdefs.h >>conftest.$ac_ext
24716cat >>conftest.$ac_ext <<_ACEOF
24717/* end confdefs.h. */
24718#include <tiffio.h>
24719_ACEOF
24720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24722 ac_status=$?
24723 grep -v '^ *+' conftest.er1 >conftest.err
24724 rm -f conftest.er1
24725 cat conftest.err >&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } >/dev/null; then
24728 if test -s conftest.err; then
24729 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24731 else
24732 ac_cpp_err=
24733 fi
24734else
24735 ac_cpp_err=yes
24736fi
24737if test -z "$ac_cpp_err"; then
24738 ac_header_preproc=yes
24739else
24740 echo "$as_me: failed program was:" >&5
24741sed 's/^/| /' conftest.$ac_ext >&5
24742
24743 ac_header_preproc=no
24744fi
24745rm -f conftest.err conftest.$ac_ext
24746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24747echo "${ECHO_T}$ac_header_preproc" >&6
24748
24749# So? What about this header?
ac1cb8d3
VS
24750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24751 yes:no: )
a848cd7e
SC
24752 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24753echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24754 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24755echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24756 ac_header_preproc=yes
a848cd7e 24757 ;;
ac1cb8d3 24758 no:yes:* )
a848cd7e
SC
24759 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
24760echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24761 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
24762echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
24763 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
24764echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
24765 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
24766echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24767 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
24768echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24769 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
24770echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24771 (
24772 cat <<\_ASBOX
ac1cb8d3
VS
24773## ----------------------------------------- ##
24774## Report this to wx-dev@lists.wxwidgets.org ##
24775## ----------------------------------------- ##
a848cd7e
SC
24776_ASBOX
24777 ) |
24778 sed "s/^/$as_me: WARNING: /" >&2
24779 ;;
24780esac
24781echo "$as_me:$LINENO: checking for tiffio.h" >&5
24782echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24783if test "${ac_cv_header_tiffio_h+set}" = set; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24785else
24786 ac_cv_header_tiffio_h=$ac_header_preproc
24787fi
24788echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24789echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24790
24791fi
24792if test $ac_cv_header_tiffio_h = yes; then
24793
24794 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24795echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24796if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24797 echo $ECHO_N "(cached) $ECHO_C" >&6
24798else
24799 ac_check_lib_save_LIBS=$LIBS
24800LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24801cat >conftest.$ac_ext <<_ACEOF
24802/* confdefs.h. */
24803_ACEOF
24804cat confdefs.h >>conftest.$ac_ext
24805cat >>conftest.$ac_ext <<_ACEOF
24806/* end confdefs.h. */
24807
24808/* Override any gcc2 internal prototype to avoid an error. */
24809#ifdef __cplusplus
24810extern "C"
24811#endif
24812/* We use char because int might match the return type of a gcc2
24813 builtin and then its argument prototype would still apply. */
24814char TIFFError ();
24815int
24816main ()
24817{
24818TIFFError ();
24819 ;
24820 return 0;
24821}
24822_ACEOF
24823rm -f conftest.$ac_objext conftest$ac_exeext
24824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24825 (eval $ac_link) 2>conftest.er1
a848cd7e 24826 ac_status=$?
ac1cb8d3
VS
24827 grep -v '^ *+' conftest.er1 >conftest.err
24828 rm -f conftest.er1
24829 cat conftest.err >&5
a848cd7e
SC
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } &&
5ff751d6 24832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24834 (eval $ac_try) 2>&5
24835 ac_status=$?
24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); }; } &&
24838 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840 (eval $ac_try) 2>&5
24841 ac_status=$?
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); }; }; then
24844 ac_cv_lib_tiff_TIFFError=yes
24845else
24846 echo "$as_me: failed program was:" >&5
24847sed 's/^/| /' conftest.$ac_ext >&5
24848
24849ac_cv_lib_tiff_TIFFError=no
24850fi
ac1cb8d3
VS
24851rm -f conftest.err conftest.$ac_objext \
24852 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24853LIBS=$ac_check_lib_save_LIBS
24854fi
24855echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24856echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24857if test $ac_cv_lib_tiff_TIFFError = yes; then
24858 TIFF_LINK=" -ltiff"
24859fi
24860
24861
24862
24863fi
24864
24865
24866
24867 if test "x$TIFF_LINK" = "x" ; then
24868 if test "$wxUSE_LIBTIFF" = "sys" ; then
24869 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24870echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24871 { (exit 1); exit 1; }; }
24872 else
24873 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24874echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24875 wxUSE_LIBTIFF=builtin
24876 fi
24877 else
24878 wxUSE_LIBTIFF=sys
24879 fi
24880 fi
24881fi
24882
24883
47a7e797
MW
24884if test "$wxUSE_WCHAR_T" != "yes"; then
24885 if test "$wxUSE_EXPAT" != "no"; then
24886 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24887echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24888 wxUSE_EXPAT=no
24889 fi
24890 if test "$wxUSE_XML" != "no"; then
24891 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24892echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24893 wxUSE_XML=no
24894 fi
24895fi
24896
a848cd7e
SC
24897if test "$wxUSE_EXPAT" != "no"; then
24898 wxUSE_XML=yes
24899 cat >>confdefs.h <<\_ACEOF
24900#define wxUSE_EXPAT 1
24901_ACEOF
24902
24903 cat >>confdefs.h <<\_ACEOF
24904#define wxUSE_XML 1
24905_ACEOF
24906
24907
24908 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24909 if test "${ac_cv_header_expat_h+set}" = set; then
24910 echo "$as_me:$LINENO: checking for expat.h" >&5
24911echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24912if test "${ac_cv_header_expat_h+set}" = set; then
24913 echo $ECHO_N "(cached) $ECHO_C" >&6
24914fi
24915echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24916echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24917else
24918 # Is the header compilable?
24919echo "$as_me:$LINENO: checking expat.h usability" >&5
24920echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
24921cat >conftest.$ac_ext <<_ACEOF
24922/* confdefs.h. */
24923_ACEOF
24924cat confdefs.h >>conftest.$ac_ext
24925cat >>conftest.$ac_ext <<_ACEOF
24926/* end confdefs.h. */
24927$ac_includes_default
24928#include <expat.h>
24929_ACEOF
24930rm -f conftest.$ac_objext
24931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24932 (eval $ac_compile) 2>conftest.er1
a848cd7e 24933 ac_status=$?
ac1cb8d3
VS
24934 grep -v '^ *+' conftest.er1 >conftest.err
24935 rm -f conftest.er1
24936 cat conftest.err >&5
a848cd7e
SC
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); } &&
5ff751d6 24939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941 (eval $ac_try) 2>&5
24942 ac_status=$?
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; } &&
24945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947 (eval $ac_try) 2>&5
24948 ac_status=$?
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); }; }; then
24951 ac_header_compiler=yes
24952else
24953 echo "$as_me: failed program was:" >&5
24954sed 's/^/| /' conftest.$ac_ext >&5
24955
24956ac_header_compiler=no
24957fi
ac1cb8d3 24958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24959echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24960echo "${ECHO_T}$ac_header_compiler" >&6
24961
24962# Is the header present?
24963echo "$as_me:$LINENO: checking expat.h presence" >&5
24964echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
24965cat >conftest.$ac_ext <<_ACEOF
24966/* confdefs.h. */
24967_ACEOF
24968cat confdefs.h >>conftest.$ac_ext
24969cat >>conftest.$ac_ext <<_ACEOF
24970/* end confdefs.h. */
24971#include <expat.h>
24972_ACEOF
24973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24975 ac_status=$?
24976 grep -v '^ *+' conftest.er1 >conftest.err
24977 rm -f conftest.er1
24978 cat conftest.err >&5
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); } >/dev/null; then
24981 if test -s conftest.err; then
24982 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24984 else
24985 ac_cpp_err=
24986 fi
24987else
24988 ac_cpp_err=yes
24989fi
24990if test -z "$ac_cpp_err"; then
24991 ac_header_preproc=yes
24992else
24993 echo "$as_me: failed program was:" >&5
24994sed 's/^/| /' conftest.$ac_ext >&5
24995
24996 ac_header_preproc=no
24997fi
24998rm -f conftest.err conftest.$ac_ext
24999echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25000echo "${ECHO_T}$ac_header_preproc" >&6
25001
25002# So? What about this header?
ac1cb8d3
VS
25003case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25004 yes:no: )
a848cd7e
SC
25005 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25006echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25007 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25008echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25009 ac_header_preproc=yes
a848cd7e 25010 ;;
ac1cb8d3 25011 no:yes:* )
a848cd7e
SC
25012 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25013echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25014 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25015echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25016 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25017echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25018 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25019echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25020 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25021echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25022 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25023echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25024 (
25025 cat <<\_ASBOX
ac1cb8d3
VS
25026## ----------------------------------------- ##
25027## Report this to wx-dev@lists.wxwidgets.org ##
25028## ----------------------------------------- ##
a848cd7e
SC
25029_ASBOX
25030 ) |
25031 sed "s/^/$as_me: WARNING: /" >&2
25032 ;;
25033esac
25034echo "$as_me:$LINENO: checking for expat.h" >&5
25035echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25036if test "${ac_cv_header_expat_h+set}" = set; then
25037 echo $ECHO_N "(cached) $ECHO_C" >&6
25038else
25039 ac_cv_header_expat_h=$ac_header_preproc
25040fi
25041echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25042echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25043
25044fi
25045if test $ac_cv_header_expat_h = yes; then
25046 found_expat_h=1
25047fi
25048
25049
25050 if test "x$found_expat_h" = "x1"; then
25051 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25052echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25053if test "${wx_cv_expat_is_not_broken+set}" = set; then
25054 echo $ECHO_N "(cached) $ECHO_C" >&6
25055else
25056
25057
25058
25059 ac_ext=cc
25060ac_cpp='$CXXCPP $CPPFLAGS'
25061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25064
25065 cat >conftest.$ac_ext <<_ACEOF
25066/* confdefs.h. */
25067_ACEOF
25068cat confdefs.h >>conftest.$ac_ext
25069cat >>conftest.$ac_ext <<_ACEOF
25070/* end confdefs.h. */
25071#include <expat.h>
25072int
25073main ()
25074{
25075
25076 ;
25077 return 0;
25078}
25079_ACEOF
25080rm -f conftest.$ac_objext
25081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25082 (eval $ac_compile) 2>conftest.er1
a848cd7e 25083 ac_status=$?
ac1cb8d3
VS
25084 grep -v '^ *+' conftest.er1 >conftest.err
25085 rm -f conftest.er1
25086 cat conftest.err >&5
a848cd7e
SC
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } &&
5ff751d6 25089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25091 (eval $ac_try) 2>&5
25092 ac_status=$?
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); }; } &&
25095 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25097 (eval $ac_try) 2>&5
25098 ac_status=$?
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); }; }; then
25101 wx_cv_expat_is_not_broken=yes
25102else
25103 echo "$as_me: failed program was:" >&5
25104sed 's/^/| /' conftest.$ac_ext >&5
25105
25106wx_cv_expat_is_not_broken=no
25107
25108fi
ac1cb8d3 25109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25110 ac_ext=c
25111ac_cpp='$CPP $CPPFLAGS'
25112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25114ac_compiler_gnu=$ac_cv_c_compiler_gnu
25115
25116
25117
25118fi
25119echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25120echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25121 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25122 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25123echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25124if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25125 echo $ECHO_N "(cached) $ECHO_C" >&6
25126else
25127 ac_check_lib_save_LIBS=$LIBS
25128LIBS="-lexpat $LIBS"
25129cat >conftest.$ac_ext <<_ACEOF
25130/* confdefs.h. */
25131_ACEOF
25132cat confdefs.h >>conftest.$ac_ext
25133cat >>conftest.$ac_ext <<_ACEOF
25134/* end confdefs.h. */
25135
25136/* Override any gcc2 internal prototype to avoid an error. */
25137#ifdef __cplusplus
25138extern "C"
25139#endif
25140/* We use char because int might match the return type of a gcc2
25141 builtin and then its argument prototype would still apply. */
25142char XML_ParserCreate ();
25143int
25144main ()
25145{
25146XML_ParserCreate ();
25147 ;
25148 return 0;
25149}
25150_ACEOF
25151rm -f conftest.$ac_objext conftest$ac_exeext
25152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25153 (eval $ac_link) 2>conftest.er1
a848cd7e 25154 ac_status=$?
ac1cb8d3
VS
25155 grep -v '^ *+' conftest.er1 >conftest.err
25156 rm -f conftest.er1
25157 cat conftest.err >&5
a848cd7e
SC
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } &&
5ff751d6 25160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25162 (eval $ac_try) 2>&5
25163 ac_status=$?
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); }; } &&
25166 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25168 (eval $ac_try) 2>&5
25169 ac_status=$?
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); }; }; then
25172 ac_cv_lib_expat_XML_ParserCreate=yes
25173else
25174 echo "$as_me: failed program was:" >&5
25175sed 's/^/| /' conftest.$ac_ext >&5
25176
25177ac_cv_lib_expat_XML_ParserCreate=no
25178fi
ac1cb8d3
VS
25179rm -f conftest.err conftest.$ac_objext \
25180 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25181LIBS=$ac_check_lib_save_LIBS
25182fi
25183echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25184echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25185if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25186 EXPAT_LINK=" -lexpat"
25187fi
25188
25189 fi
25190 fi
25191 if test "x$EXPAT_LINK" = "x" ; then
25192 if test "$wxUSE_EXPAT" = "sys" ; then
25193 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25194echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25195 { (exit 1); exit 1; }; }
25196 else
25197 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25198echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25199 wxUSE_EXPAT=builtin
25200 fi
25201 else
25202 wxUSE_EXPAT=sys
25203 fi
25204 fi
25205 if test "$wxUSE_EXPAT" = "builtin" ; then
25206
25207
25208subdirs="$subdirs src/expat"
25209
25210 fi
25211fi
25212
25213
25214
25215if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25216 if test "${ac_cv_header_mspack_h+set}" = set; then
25217 echo "$as_me:$LINENO: checking for mspack.h" >&5
25218echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25219if test "${ac_cv_header_mspack_h+set}" = set; then
25220 echo $ECHO_N "(cached) $ECHO_C" >&6
25221fi
25222echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25223echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25224else
25225 # Is the header compilable?
25226echo "$as_me:$LINENO: checking mspack.h usability" >&5
25227echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25228cat >conftest.$ac_ext <<_ACEOF
25229/* confdefs.h. */
25230_ACEOF
25231cat confdefs.h >>conftest.$ac_ext
25232cat >>conftest.$ac_ext <<_ACEOF
25233/* end confdefs.h. */
25234$ac_includes_default
25235#include <mspack.h>
25236_ACEOF
25237rm -f conftest.$ac_objext
25238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25239 (eval $ac_compile) 2>conftest.er1
a848cd7e 25240 ac_status=$?
ac1cb8d3
VS
25241 grep -v '^ *+' conftest.er1 >conftest.err
25242 rm -f conftest.er1
25243 cat conftest.err >&5
a848cd7e
SC
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); } &&
5ff751d6 25246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25248 (eval $ac_try) 2>&5
25249 ac_status=$?
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); }; } &&
25252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25254 (eval $ac_try) 2>&5
25255 ac_status=$?
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); }; }; then
25258 ac_header_compiler=yes
25259else
25260 echo "$as_me: failed program was:" >&5
25261sed 's/^/| /' conftest.$ac_ext >&5
25262
25263ac_header_compiler=no
25264fi
ac1cb8d3 25265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25266echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25267echo "${ECHO_T}$ac_header_compiler" >&6
25268
25269# Is the header present?
25270echo "$as_me:$LINENO: checking mspack.h presence" >&5
25271echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25272cat >conftest.$ac_ext <<_ACEOF
25273/* confdefs.h. */
25274_ACEOF
25275cat confdefs.h >>conftest.$ac_ext
25276cat >>conftest.$ac_ext <<_ACEOF
25277/* end confdefs.h. */
25278#include <mspack.h>
25279_ACEOF
25280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25282 ac_status=$?
25283 grep -v '^ *+' conftest.er1 >conftest.err
25284 rm -f conftest.er1
25285 cat conftest.err >&5
25286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287 (exit $ac_status); } >/dev/null; then
25288 if test -s conftest.err; then
25289 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25291 else
25292 ac_cpp_err=
25293 fi
25294else
25295 ac_cpp_err=yes
25296fi
25297if test -z "$ac_cpp_err"; then
25298 ac_header_preproc=yes
25299else
25300 echo "$as_me: failed program was:" >&5
25301sed 's/^/| /' conftest.$ac_ext >&5
25302
25303 ac_header_preproc=no
25304fi
25305rm -f conftest.err conftest.$ac_ext
25306echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25307echo "${ECHO_T}$ac_header_preproc" >&6
25308
25309# So? What about this header?
ac1cb8d3
VS
25310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25311 yes:no: )
a848cd7e
SC
25312 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25313echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25314 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25315echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25316 ac_header_preproc=yes
a848cd7e 25317 ;;
ac1cb8d3 25318 no:yes:* )
a848cd7e
SC
25319 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25320echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25321 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25322echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25323 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25324echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25325 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25326echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25327 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25328echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25329 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25330echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25331 (
25332 cat <<\_ASBOX
ac1cb8d3
VS
25333## ----------------------------------------- ##
25334## Report this to wx-dev@lists.wxwidgets.org ##
25335## ----------------------------------------- ##
a848cd7e
SC
25336_ASBOX
25337 ) |
25338 sed "s/^/$as_me: WARNING: /" >&2
25339 ;;
25340esac
25341echo "$as_me:$LINENO: checking for mspack.h" >&5
25342echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25343if test "${ac_cv_header_mspack_h+set}" = set; then
25344 echo $ECHO_N "(cached) $ECHO_C" >&6
25345else
25346 ac_cv_header_mspack_h=$ac_header_preproc
25347fi
25348echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25349echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25350
25351fi
25352if test $ac_cv_header_mspack_h = yes; then
25353 found_mspack_h=1
25354fi
25355
25356
25357 if test "x$found_mspack_h" = "x1"; then
25358 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25359echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25360if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25361 echo $ECHO_N "(cached) $ECHO_C" >&6
25362else
25363 ac_check_lib_save_LIBS=$LIBS
25364LIBS="-lmspack $LIBS"
25365cat >conftest.$ac_ext <<_ACEOF
25366/* confdefs.h. */
25367_ACEOF
25368cat confdefs.h >>conftest.$ac_ext
25369cat >>conftest.$ac_ext <<_ACEOF
25370/* end confdefs.h. */
25371
25372/* Override any gcc2 internal prototype to avoid an error. */
25373#ifdef __cplusplus
25374extern "C"
25375#endif
25376/* We use char because int might match the return type of a gcc2
25377 builtin and then its argument prototype would still apply. */
25378char mspack_create_chm_decompressor ();
25379int
25380main ()
25381{
25382mspack_create_chm_decompressor ();
25383 ;
25384 return 0;
25385}
25386_ACEOF
25387rm -f conftest.$ac_objext conftest$ac_exeext
25388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25389 (eval $ac_link) 2>conftest.er1
a848cd7e 25390 ac_status=$?
ac1cb8d3
VS
25391 grep -v '^ *+' conftest.er1 >conftest.err
25392 rm -f conftest.er1
25393 cat conftest.err >&5
a848cd7e
SC
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); } &&
5ff751d6 25396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25398 (eval $ac_try) 2>&5
25399 ac_status=$?
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); }; } &&
25402 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25404 (eval $ac_try) 2>&5
25405 ac_status=$?
25406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407 (exit $ac_status); }; }; then
25408 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25409else
25410 echo "$as_me: failed program was:" >&5
25411sed 's/^/| /' conftest.$ac_ext >&5
25412
25413ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25414fi
ac1cb8d3
VS
25415rm -f conftest.err conftest.$ac_objext \
25416 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25417LIBS=$ac_check_lib_save_LIBS
25418fi
25419echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25420echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25421if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25422 MSPACK_LINK=" -lmspack"
25423fi
25424
25425 fi
25426 if test "x$MSPACK_LINK" = "x" ; then
25427 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25428 fi
25429fi
25430
25431if test "$wxUSE_LIBMSPACK" != "no"; then
25432 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25433#define wxUSE_LIBMSPACK 1
25434_ACEOF
25435
a848cd7e
SC
25436fi
25437
25438
25439
25440AFMINSTALL=
25441WIN32INSTALL=
25442
25443TOOLKIT=
25444TOOLKIT_INCLUDE=
25445WIDGET_SET=
25446
25447if test "$USE_WIN32" = 1 ; then
25448
25449for ac_header in w32api.h
25450do
25451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25452if eval "test \"\${$as_ac_Header+set}\" = set"; then
25453 echo "$as_me:$LINENO: checking for $ac_header" >&5
25454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25455if eval "test \"\${$as_ac_Header+set}\" = set"; then
25456 echo $ECHO_N "(cached) $ECHO_C" >&6
25457fi
25458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25460else
25461 # Is the header compilable?
25462echo "$as_me:$LINENO: checking $ac_header usability" >&5
25463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25464cat >conftest.$ac_ext <<_ACEOF
25465/* confdefs.h. */
25466_ACEOF
25467cat confdefs.h >>conftest.$ac_ext
25468cat >>conftest.$ac_ext <<_ACEOF
25469/* end confdefs.h. */
25470$ac_includes_default
25471#include <$ac_header>
25472_ACEOF
25473rm -f conftest.$ac_objext
25474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25475 (eval $ac_compile) 2>conftest.er1
a848cd7e 25476 ac_status=$?
ac1cb8d3
VS
25477 grep -v '^ *+' conftest.er1 >conftest.err
25478 rm -f conftest.er1
25479 cat conftest.err >&5
a848cd7e
SC
25480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); } &&
5ff751d6 25482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25484 (eval $ac_try) 2>&5
25485 ac_status=$?
25486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487 (exit $ac_status); }; } &&
25488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25490 (eval $ac_try) 2>&5
25491 ac_status=$?
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); }; }; then
25494 ac_header_compiler=yes
25495else
25496 echo "$as_me: failed program was:" >&5
25497sed 's/^/| /' conftest.$ac_ext >&5
25498
25499ac_header_compiler=no
25500fi
ac1cb8d3 25501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25503echo "${ECHO_T}$ac_header_compiler" >&6
25504
25505# Is the header present?
25506echo "$as_me:$LINENO: checking $ac_header presence" >&5
25507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25508cat >conftest.$ac_ext <<_ACEOF
25509/* confdefs.h. */
25510_ACEOF
25511cat confdefs.h >>conftest.$ac_ext
25512cat >>conftest.$ac_ext <<_ACEOF
25513/* end confdefs.h. */
25514#include <$ac_header>
25515_ACEOF
25516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25518 ac_status=$?
25519 grep -v '^ *+' conftest.er1 >conftest.err
25520 rm -f conftest.er1
25521 cat conftest.err >&5
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); } >/dev/null; then
25524 if test -s conftest.err; then
25525 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25527 else
25528 ac_cpp_err=
25529 fi
25530else
25531 ac_cpp_err=yes
25532fi
25533if test -z "$ac_cpp_err"; then
25534 ac_header_preproc=yes
25535else
25536 echo "$as_me: failed program was:" >&5
25537sed 's/^/| /' conftest.$ac_ext >&5
25538
25539 ac_header_preproc=no
25540fi
25541rm -f conftest.err conftest.$ac_ext
25542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25543echo "${ECHO_T}$ac_header_preproc" >&6
25544
25545# So? What about this header?
ac1cb8d3
VS
25546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25547 yes:no: )
a848cd7e
SC
25548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25552 ac_header_preproc=yes
a848cd7e 25553 ;;
ac1cb8d3 25554 no:yes:* )
a848cd7e
SC
25555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25567 (
25568 cat <<\_ASBOX
ac1cb8d3
VS
25569## ----------------------------------------- ##
25570## Report this to wx-dev@lists.wxwidgets.org ##
25571## ----------------------------------------- ##
a848cd7e
SC
25572_ASBOX
25573 ) |
25574 sed "s/^/$as_me: WARNING: /" >&2
25575 ;;
25576esac
25577echo "$as_me:$LINENO: checking for $ac_header" >&5
25578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25579if eval "test \"\${$as_ac_Header+set}\" = set"; then
25580 echo $ECHO_N "(cached) $ECHO_C" >&6
25581else
ac1cb8d3 25582 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25583fi
25584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25586
25587fi
25588if test `eval echo '${'$as_ac_Header'}'` = yes; then
25589 cat >>confdefs.h <<_ACEOF
25590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25591_ACEOF
25592
25593fi
25594
25595done
25596
25597 if test "${ac_cv_header_windows_h+set}" = set; then
25598 echo "$as_me:$LINENO: checking for windows.h" >&5
25599echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25600if test "${ac_cv_header_windows_h+set}" = set; then
25601 echo $ECHO_N "(cached) $ECHO_C" >&6
25602fi
25603echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25604echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25605else
25606 # Is the header compilable?
25607echo "$as_me:$LINENO: checking windows.h usability" >&5
25608echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25609cat >conftest.$ac_ext <<_ACEOF
25610/* confdefs.h. */
25611_ACEOF
25612cat confdefs.h >>conftest.$ac_ext
25613cat >>conftest.$ac_ext <<_ACEOF
25614/* end confdefs.h. */
25615$ac_includes_default
25616#include <windows.h>
25617_ACEOF
25618rm -f conftest.$ac_objext
25619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25620 (eval $ac_compile) 2>conftest.er1
a848cd7e 25621 ac_status=$?
ac1cb8d3
VS
25622 grep -v '^ *+' conftest.er1 >conftest.err
25623 rm -f conftest.er1
25624 cat conftest.err >&5
a848cd7e
SC
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } &&
5ff751d6 25627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25629 (eval $ac_try) 2>&5
25630 ac_status=$?
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); }; } &&
25633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25635 (eval $ac_try) 2>&5
25636 ac_status=$?
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }; }; then
25639 ac_header_compiler=yes
25640else
25641 echo "$as_me: failed program was:" >&5
25642sed 's/^/| /' conftest.$ac_ext >&5
25643
25644ac_header_compiler=no
25645fi
ac1cb8d3 25646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25647echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25648echo "${ECHO_T}$ac_header_compiler" >&6
25649
25650# Is the header present?
25651echo "$as_me:$LINENO: checking windows.h presence" >&5
25652echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25653cat >conftest.$ac_ext <<_ACEOF
25654/* confdefs.h. */
25655_ACEOF
25656cat confdefs.h >>conftest.$ac_ext
25657cat >>conftest.$ac_ext <<_ACEOF
25658/* end confdefs.h. */
25659#include <windows.h>
25660_ACEOF
25661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25663 ac_status=$?
25664 grep -v '^ *+' conftest.er1 >conftest.err
25665 rm -f conftest.er1
25666 cat conftest.err >&5
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); } >/dev/null; then
25669 if test -s conftest.err; then
25670 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25672 else
25673 ac_cpp_err=
25674 fi
25675else
25676 ac_cpp_err=yes
25677fi
25678if test -z "$ac_cpp_err"; then
25679 ac_header_preproc=yes
25680else
25681 echo "$as_me: failed program was:" >&5
25682sed 's/^/| /' conftest.$ac_ext >&5
25683
25684 ac_header_preproc=no
25685fi
25686rm -f conftest.err conftest.$ac_ext
25687echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25688echo "${ECHO_T}$ac_header_preproc" >&6
25689
25690# So? What about this header?
ac1cb8d3
VS
25691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25692 yes:no: )
a848cd7e
SC
25693 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25694echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25695 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25696echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25697 ac_header_preproc=yes
a848cd7e 25698 ;;
ac1cb8d3 25699 no:yes:* )
a848cd7e
SC
25700 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25701echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25702 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25703echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25704 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25705echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25706 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25707echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25708 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25709echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25710 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25711echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25712 (
25713 cat <<\_ASBOX
ac1cb8d3
VS
25714## ----------------------------------------- ##
25715## Report this to wx-dev@lists.wxwidgets.org ##
25716## ----------------------------------------- ##
a848cd7e
SC
25717_ASBOX
25718 ) |
25719 sed "s/^/$as_me: WARNING: /" >&2
25720 ;;
25721esac
25722echo "$as_me:$LINENO: checking for windows.h" >&5
25723echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25724if test "${ac_cv_header_windows_h+set}" = set; then
25725 echo $ECHO_N "(cached) $ECHO_C" >&6
25726else
25727 ac_cv_header_windows_h=$ac_header_preproc
25728fi
25729echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25730echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25731
25732fi
25733if test $ac_cv_header_windows_h = yes; then
25734 :
25735else
25736
25737 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25738echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25739 { (exit 1); exit 1; }; }
25740
25741fi
25742
25743
25744
25745 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25746
25747 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25748 LIBS="$LIBS -loleacc"
25749 fi
25750
25751 case "${host}" in
25752 *-*-cygwin* )
25753 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
25754 esac
25755
25756 if test "$wxUSE_ODBC" = "sys" ; then
25757 wxUSE_ODBC = "yes"
25758 fi
25759 if test "$wxUSE_ODBC" = "yes" ; then
25760 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
25761 cat >>confdefs.h <<\_ACEOF
25762#define wxUSE_ODBC 1
25763_ACEOF
25764
25765 fi
25766
370d2fd7 25767 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
25768 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
25769
370d2fd7
RL
25770 WXCONFIG_RESFLAGS="--include-dir \$includedir --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
25771
a848cd7e
SC
25772 WIN32INSTALL=win32install
25773fi
25774
25775if test "$wxUSE_GUI" = "yes"; then
25776 USE_GUI=1
25777
25778 GUI_TK_LIBRARY=
25779
25780 WXGTK12=
25781 WXGTK127=
25782 WXGTK20=
25783 WXGPE=
25784
207bc66c
RN
25785 if test "$wxUSE_COCOA" = 1 ; then
25786 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
25787 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
25788echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
25789 wxUSE_PRINTING_ARCHITECTURE=no
25790 fi
25791 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
25792 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25793echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25794 wxUSE_DRAG_AND_DROP=no
25795 fi
25796 if test "$wxUSE_DRAGIMAGE" = "yes"; then
25797 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25798echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25799 wxUSE_DRAGIMAGE=no
25800 fi
25801 fi
25802
a848cd7e
SC
25803 if test "$wxUSE_MSW" = 1 ; then
25804 TOOLKIT=MSW
25805 GUIDIST=MSW_DIST
25806
ceec2216 25807 case "${host}" in
a848cd7e
SC
25808 *-*-mingw32* )
25809 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25810 esac
25811 fi
25812
25813 if test "$wxUSE_GTK" = 1; then
25814 echo "$as_me:$LINENO: checking for GTK+ version" >&5
25815echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25816
25817 gtk_version_cached=1
25818 if test "${wx_cv_lib_gtk+set}" = set; then
25819 echo $ECHO_N "(cached) $ECHO_C" >&6
25820else
25821
25822 gtk_version_cached=0
25823 echo "$as_me:$LINENO: result: " >&5
25824echo "${ECHO_T}" >&6
25825
25826 GTK_MODULES=
25827 if test "$wxUSE_THREADS" = "yes"; then
25828 GTK_MODULES=gthread
25829 fi
25830
f597b41c 25831 wx_cv_lib_gtk=
5001df0d
MW
25832 if test "x$wxGTK_VERSION" != "x1"
25833 then
25834 case "${host}" in
25835 *-*-solaris2* )
25836 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 25837 enable_gtktest=no
5001df0d
MW
25838 fi
25839 esac
25840
a848cd7e
SC
25841 # Check whether --enable-gtktest or --disable-gtktest was given.
25842if test "${enable_gtktest+set}" = set; then
25843 enableval="$enable_gtktest"
25844
25845else
25846 enable_gtktest=yes
25847fi;
25848
25849 pkg_config_args=gtk+-2.0
25850 for module in . $GTK_MODULES
25851 do
25852 case "$module" in
25853 gthread)
25854 pkg_config_args="$pkg_config_args gthread-2.0"
25855 ;;
25856 esac
25857 done
25858
25859 no_gtk=""
25860
25861 # Extract the first word of "pkg-config", so it can be a program name with args.
25862set dummy pkg-config; ac_word=$2
25863echo "$as_me:$LINENO: checking for $ac_word" >&5
25864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25865if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25866 echo $ECHO_N "(cached) $ECHO_C" >&6
25867else
25868 case $PKG_CONFIG in
25869 [\\/]* | ?:[\\/]*)
25870 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25871 ;;
25872 *)
25873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25874for as_dir in $PATH
25875do
25876 IFS=$as_save_IFS
25877 test -z "$as_dir" && as_dir=.
25878 for ac_exec_ext in '' $ac_executable_extensions; do
25879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25880 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25882 break 2
25883 fi
25884done
25885done
25886
25887 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25888 ;;
25889esac
25890fi
25891PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25892
25893if test -n "$PKG_CONFIG"; then
25894 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25895echo "${ECHO_T}$PKG_CONFIG" >&6
25896else
25897 echo "$as_me:$LINENO: result: no" >&5
25898echo "${ECHO_T}no" >&6
25899fi
25900
25901
25902 if test x$PKG_CONFIG != xno ; then
25903 if pkg-config --atleast-pkgconfig-version 0.7 ; then
25904 :
25905 else
c2218763 25906 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
25907 no_gtk=yes
25908 PKG_CONFIG=no
25909 fi
25910 else
25911 no_gtk=yes
25912 fi
25913
25914 min_gtk_version=2.0.0
25915 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25916echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25917
25918 if test x$PKG_CONFIG != xno ; then
25919 ## don't try to run the test against uninstalled libtool libs
25920 if $PKG_CONFIG --uninstalled $pkg_config_args; then
25921 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
25922 enable_gtktest=no
25923 fi
25924
25925 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
25926 :
25927 else
25928 no_gtk=yes
25929 fi
25930 fi
25931
25932 if test x"$no_gtk" = x ; then
25933 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
25934 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
25935 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25936 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25937 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25938 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25939 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25940 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25941 if test "x$enable_gtktest" = "xyes" ; then
25942 ac_save_CFLAGS="$CFLAGS"
25943 ac_save_LIBS="$LIBS"
25944 CFLAGS="$CFLAGS $GTK_CFLAGS"
25945 LIBS="$GTK_LIBS $LIBS"
25946 rm -f conf.gtktest
25947 if test "$cross_compiling" = yes; then
25948 echo $ac_n "cross compiling; assumed OK... $ac_c"
25949else
25950 cat >conftest.$ac_ext <<_ACEOF
25951/* confdefs.h. */
25952_ACEOF
25953cat confdefs.h >>conftest.$ac_ext
25954cat >>conftest.$ac_ext <<_ACEOF
25955/* end confdefs.h. */
25956
25957#include <gtk/gtk.h>
25958#include <stdio.h>
25959#include <stdlib.h>
25960
25961int
25962main ()
25963{
25964 int major, minor, micro;
25965 char *tmp_version;
25966
25967 system ("touch conf.gtktest");
25968
25969 /* HP/UX 9 (%@#!) writes to sscanf strings */
25970 tmp_version = g_strdup("$min_gtk_version");
25971 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25972 printf("%s, bad version string\n", "$min_gtk_version");
25973 exit(1);
25974 }
25975
25976 if ((gtk_major_version != $gtk_config_major_version) ||
25977 (gtk_minor_version != $gtk_config_minor_version) ||
25978 (gtk_micro_version != $gtk_config_micro_version))
25979 {
25980 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25981 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25982 gtk_major_version, gtk_minor_version, gtk_micro_version);
25983 printf ("*** was found! If pkg-config was correct, then it is best\n");
25984 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25985 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25986 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25987 printf("*** required on your system.\n");
25988 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
25989 printf("*** to point to the correct configuration files\n");
25990 }
25991 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25992 (gtk_minor_version != GTK_MINOR_VERSION) ||
25993 (gtk_micro_version != GTK_MICRO_VERSION))
25994 {
25995 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25996 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25997 printf("*** library (version %d.%d.%d)\n",
25998 gtk_major_version, gtk_minor_version, gtk_micro_version);
25999 }
26000 else
26001 {
26002 if ((gtk_major_version > major) ||
26003 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26004 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26005 {
26006 return 0;
26007 }
26008 else
26009 {
26010 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26011 gtk_major_version, gtk_minor_version, gtk_micro_version);
26012 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26013 major, minor, micro);
26014 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26015 printf("***\n");
26016 printf("*** If you have already installed a sufficiently new version, this error\n");
26017 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26018 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26019 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26020 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26021 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26022 printf("*** so that the correct libraries are found at run-time))\n");
26023 }
26024 }
26025 return 1;
26026}
26027
26028_ACEOF
26029rm -f conftest$ac_exeext
26030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26031 (eval $ac_link) 2>&5
26032 ac_status=$?
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036 (eval $ac_try) 2>&5
26037 ac_status=$?
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); }; }; then
26040 :
26041else
26042 echo "$as_me: program exited with status $ac_status" >&5
26043echo "$as_me: failed program was:" >&5
26044sed 's/^/| /' conftest.$ac_ext >&5
26045
26046( exit $ac_status )
26047no_gtk=yes
26048fi
ac1cb8d3 26049rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26050fi
26051 CFLAGS="$ac_save_CFLAGS"
26052 LIBS="$ac_save_LIBS"
26053 fi
26054 fi
26055 if test "x$no_gtk" = x ; then
26056 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26057echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26058 wx_cv_lib_gtk=2.0
26059 else
26060 echo "$as_me:$LINENO: result: no" >&5
26061echo "${ECHO_T}no" >&6
26062 if test "$PKG_CONFIG" = "no" ; then
26063 echo "*** A new enough version of pkg-config was not found."
26064 echo "*** See http://pkgconfig.sourceforge.net"
26065 else
26066 if test -f conf.gtktest ; then
26067 :
26068 else
26069 echo "*** Could not run GTK+ test program, checking why..."
26070 ac_save_CFLAGS="$CFLAGS"
26071 ac_save_LIBS="$LIBS"
26072 CFLAGS="$CFLAGS $GTK_CFLAGS"
26073 LIBS="$LIBS $GTK_LIBS"
26074 cat >conftest.$ac_ext <<_ACEOF
26075/* confdefs.h. */
26076_ACEOF
26077cat confdefs.h >>conftest.$ac_ext
26078cat >>conftest.$ac_ext <<_ACEOF
26079/* end confdefs.h. */
26080
26081#include <gtk/gtk.h>
26082#include <stdio.h>
26083
26084int
26085main ()
26086{
26087 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26088 ;
26089 return 0;
26090}
26091_ACEOF
26092rm -f conftest.$ac_objext conftest$ac_exeext
26093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26094 (eval $ac_link) 2>conftest.er1
a848cd7e 26095 ac_status=$?
ac1cb8d3
VS
26096 grep -v '^ *+' conftest.er1 >conftest.err
26097 rm -f conftest.er1
26098 cat conftest.err >&5
a848cd7e
SC
26099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100 (exit $ac_status); } &&
5ff751d6 26101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26103 (eval $ac_try) 2>&5
26104 ac_status=$?
26105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106 (exit $ac_status); }; } &&
26107 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109 (eval $ac_try) 2>&5
26110 ac_status=$?
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); }; }; then
26113 echo "*** The test program compiled, but did not run. This usually means"
26114 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26115 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26116 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26117 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26118 echo "*** is required on your system"
26119 echo "***"
26120 echo "*** If you have an old version installed, it is best to remove it, although"
26121 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26122else
26123 echo "$as_me: failed program was:" >&5
26124sed 's/^/| /' conftest.$ac_ext >&5
26125
26126 echo "*** The test program failed to compile or link. See the file config.log for the"
26127 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26128fi
ac1cb8d3
VS
26129rm -f conftest.err conftest.$ac_objext \
26130 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26131 CFLAGS="$ac_save_CFLAGS"
26132 LIBS="$ac_save_LIBS"
26133 fi
26134 fi
26135 GTK_CFLAGS=""
26136 GTK_LIBS=""
26137 :
26138 fi
26139
26140
26141 rm -f conf.gtktest
26142
5001df0d
MW
26143
26144 case "${host}" in
26145 *-*-solaris2* )
26146 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26147 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26148 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26149 fi
26150 if test "$wxUSE_SHARED" != "yes"; then
26151 GTK_LIBS="$GTK_LIBS -lX11"
26152 fi
26153 esac
f597b41c
MW
26154 fi
26155
f34ca037
MW
26156 if test -z "$wx_cv_lib_gtk"; then
26157 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26158
26159# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26160if test "${with_gtk_prefix+set}" = set; then
26161 withval="$with_gtk_prefix"
26162 gtk_config_prefix="$withval"
26163else
26164 gtk_config_prefix=""
26165fi;
26166
26167# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26168if test "${with_gtk_exec_prefix+set}" = set; then
26169 withval="$with_gtk_exec_prefix"
26170 gtk_config_exec_prefix="$withval"
26171else
26172 gtk_config_exec_prefix=""
26173fi;
26174# Check whether --enable-gtktest or --disable-gtktest was given.
26175if test "${enable_gtktest+set}" = set; then
26176 enableval="$enable_gtktest"
26177
26178else
26179 enable_gtktest=yes
26180fi;
26181
26182 for module in . $GTK_MODULES
26183 do
26184 case "$module" in
26185 gthread)
26186 gtk_config_args="$gtk_config_args gthread"
26187 ;;
26188 esac
26189 done
26190
26191 if test x$gtk_config_exec_prefix != x ; then
26192 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26193 if test x${GTK_CONFIG+set} != xset ; then
26194 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26195 fi
26196 fi
26197 if test x$gtk_config_prefix != x ; then
26198 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26199 if test x${GTK_CONFIG+set} != xset ; then
26200 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26201 fi
26202 fi
26203
26204 # Extract the first word of "gtk-config", so it can be a program name with args.
26205set dummy gtk-config; ac_word=$2
26206echo "$as_me:$LINENO: checking for $ac_word" >&5
26207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26208if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26209 echo $ECHO_N "(cached) $ECHO_C" >&6
26210else
26211 case $GTK_CONFIG in
26212 [\\/]* | ?:[\\/]*)
26213 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26214 ;;
26215 *)
26216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26217for as_dir in $PATH
26218do
26219 IFS=$as_save_IFS
26220 test -z "$as_dir" && as_dir=.
26221 for ac_exec_ext in '' $ac_executable_extensions; do
26222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26223 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26225 break 2
26226 fi
26227done
26228done
26229
26230 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26231 ;;
26232esac
26233fi
26234GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26235
26236if test -n "$GTK_CONFIG"; then
26237 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26238echo "${ECHO_T}$GTK_CONFIG" >&6
26239else
26240 echo "$as_me:$LINENO: result: no" >&5
26241echo "${ECHO_T}no" >&6
26242fi
26243
26244 min_gtk_version=1.2.7
26245 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26246echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26247 no_gtk=""
26248 if test "$GTK_CONFIG" = "no" ; then
26249 no_gtk=yes
26250 else
26251 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26252 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26253 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26254 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26255 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26256 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26257 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26258 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26259 if test "x$enable_gtktest" = "xyes" ; then
26260 ac_save_CFLAGS="$CFLAGS"
26261 ac_save_LIBS="$LIBS"
26262 CFLAGS="$CFLAGS $GTK_CFLAGS"
26263 LIBS="$GTK_LIBS $LIBS"
26264 rm -f conf.gtktest
26265 if test "$cross_compiling" = yes; then
26266 echo $ac_n "cross compiling; assumed OK... $ac_c"
26267else
26268 cat >conftest.$ac_ext <<_ACEOF
26269/* confdefs.h. */
26270_ACEOF
26271cat confdefs.h >>conftest.$ac_ext
26272cat >>conftest.$ac_ext <<_ACEOF
26273/* end confdefs.h. */
26274
26275#include <gtk/gtk.h>
26276#include <stdio.h>
26277#include <stdlib.h>
26278
26279int
26280main ()
26281{
26282 int major, minor, micro;
26283 char *tmp_version;
26284
26285 system ("touch conf.gtktest");
26286
26287 /* HP/UX 9 (%@#!) writes to sscanf strings */
26288 tmp_version = g_strdup("$min_gtk_version");
26289 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26290 printf("%s, bad version string\n", "$min_gtk_version");
26291 exit(1);
26292 }
26293
26294 if ((gtk_major_version != $gtk_config_major_version) ||
26295 (gtk_minor_version != $gtk_config_minor_version) ||
26296 (gtk_micro_version != $gtk_config_micro_version))
26297 {
26298 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26299 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26300 gtk_major_version, gtk_minor_version, gtk_micro_version);
26301 printf ("*** was found! If gtk-config was correct, then it is best\n");
26302 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26303 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26304 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26305 printf("*** required on your system.\n");
26306 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26307 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26308 printf("*** before re-running configure\n");
26309 }
26310#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26311 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26312 (gtk_minor_version != GTK_MINOR_VERSION) ||
26313 (gtk_micro_version != GTK_MICRO_VERSION))
26314 {
26315 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26316 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26317 printf("*** library (version %d.%d.%d)\n",
26318 gtk_major_version, gtk_minor_version, gtk_micro_version);
26319 }
26320#endif /* defined (GTK_MAJOR_VERSION) ... */
26321 else
26322 {
26323 if ((gtk_major_version > major) ||
26324 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26325 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26326 {
26327 return 0;
26328 }
26329 else
26330 {
26331 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26332 gtk_major_version, gtk_minor_version, gtk_micro_version);
26333 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26334 major, minor, micro);
26335 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26336 printf("***\n");
26337 printf("*** If you have already installed a sufficiently new version, this error\n");
26338 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26339 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26340 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26341 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26342 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26343 printf("*** so that the correct libraries are found at run-time))\n");
26344 }
26345 }
26346 return 1;
26347}
26348
26349_ACEOF
26350rm -f conftest$ac_exeext
26351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26352 (eval $ac_link) 2>&5
26353 ac_status=$?
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26357 (eval $ac_try) 2>&5
26358 ac_status=$?
26359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); }; }; then
26361 :
26362else
26363 echo "$as_me: program exited with status $ac_status" >&5
26364echo "$as_me: failed program was:" >&5
26365sed 's/^/| /' conftest.$ac_ext >&5
26366
26367( exit $ac_status )
26368no_gtk=yes
26369fi
ac1cb8d3 26370rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26371fi
26372 CFLAGS="$ac_save_CFLAGS"
26373 LIBS="$ac_save_LIBS"
26374 fi
26375 fi
26376 if test "x$no_gtk" = x ; then
26377 echo "$as_me:$LINENO: result: yes" >&5
26378echo "${ECHO_T}yes" >&6
26379 wx_cv_lib_gtk=1.2.7
26380 else
26381 echo "$as_me:$LINENO: result: no" >&5
26382echo "${ECHO_T}no" >&6
26383 if test "$GTK_CONFIG" = "no" ; then
26384 echo "*** The gtk-config script installed by GTK could not be found"
26385 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26386 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26387 echo "*** full path to gtk-config."
26388 else
26389 if test -f conf.gtktest ; then
26390 :
26391 else
26392 echo "*** Could not run GTK test program, checking why..."
26393 CFLAGS="$CFLAGS $GTK_CFLAGS"
26394 LIBS="$LIBS $GTK_LIBS"
26395 cat >conftest.$ac_ext <<_ACEOF
26396/* confdefs.h. */
26397_ACEOF
26398cat confdefs.h >>conftest.$ac_ext
26399cat >>conftest.$ac_ext <<_ACEOF
26400/* end confdefs.h. */
26401
26402#include <gtk/gtk.h>
26403#include <stdio.h>
26404
26405int
26406main ()
26407{
26408 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26409 ;
26410 return 0;
26411}
26412_ACEOF
26413rm -f conftest.$ac_objext conftest$ac_exeext
26414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26415 (eval $ac_link) 2>conftest.er1
a848cd7e 26416 ac_status=$?
ac1cb8d3
VS
26417 grep -v '^ *+' conftest.er1 >conftest.err
26418 rm -f conftest.er1
26419 cat conftest.err >&5
a848cd7e
SC
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } &&
5ff751d6 26422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26424 (eval $ac_try) 2>&5
26425 ac_status=$?
26426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427 (exit $ac_status); }; } &&
26428 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26430 (eval $ac_try) 2>&5
26431 ac_status=$?
26432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); }; }; then
26434 echo "*** The test program compiled, but did not run. This usually means"
26435 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26436 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26437 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26438 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26439 echo "*** is required on your system"
26440 echo "***"
26441 echo "*** If you have an old version installed, it is best to remove it, although"
26442 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26443 echo "***"
26444 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26445 echo "*** came with the system with the command"
26446 echo "***"
26447 echo "*** rpm --erase --nodeps gtk gtk-devel"
26448else
26449 echo "$as_me: failed program was:" >&5
26450sed 's/^/| /' conftest.$ac_ext >&5
26451
26452 echo "*** The test program failed to compile or link. See the file config.log for the"
26453 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26454 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26455 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26456fi
ac1cb8d3
VS
26457rm -f conftest.err conftest.$ac_objext \
26458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26459 CFLAGS="$ac_save_CFLAGS"
26460 LIBS="$ac_save_LIBS"
26461 fi
26462 fi
26463 GTK_CFLAGS=""
26464 GTK_LIBS=""
26465 :
26466 fi
26467
26468
26469 rm -f conf.gtktest
26470
26471
f34ca037 26472 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26473
26474# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26475if test "${with_gtk_prefix+set}" = set; then
26476 withval="$with_gtk_prefix"
26477 gtk_config_prefix="$withval"
26478else
26479 gtk_config_prefix=""
26480fi;
26481
26482# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26483if test "${with_gtk_exec_prefix+set}" = set; then
26484 withval="$with_gtk_exec_prefix"
26485 gtk_config_exec_prefix="$withval"
26486else
26487 gtk_config_exec_prefix=""
26488fi;
26489# Check whether --enable-gtktest or --disable-gtktest was given.
26490if test "${enable_gtktest+set}" = set; then
26491 enableval="$enable_gtktest"
26492
26493else
26494 enable_gtktest=yes
26495fi;
26496
26497 for module in . $GTK_MODULES
26498 do
26499 case "$module" in
26500 gthread)
26501 gtk_config_args="$gtk_config_args gthread"
26502 ;;
26503 esac
26504 done
26505
26506 if test x$gtk_config_exec_prefix != x ; then
26507 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26508 if test x${GTK_CONFIG+set} != xset ; then
26509 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26510 fi
26511 fi
26512 if test x$gtk_config_prefix != x ; then
26513 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26514 if test x${GTK_CONFIG+set} != xset ; then
26515 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26516 fi
26517 fi
26518
26519 # Extract the first word of "gtk-config", so it can be a program name with args.
26520set dummy gtk-config; ac_word=$2
26521echo "$as_me:$LINENO: checking for $ac_word" >&5
26522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26523if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26524 echo $ECHO_N "(cached) $ECHO_C" >&6
26525else
26526 case $GTK_CONFIG in
26527 [\\/]* | ?:[\\/]*)
26528 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26529 ;;
26530 *)
26531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26532for as_dir in $PATH
26533do
26534 IFS=$as_save_IFS
26535 test -z "$as_dir" && as_dir=.
26536 for ac_exec_ext in '' $ac_executable_extensions; do
26537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26538 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26540 break 2
26541 fi
26542done
26543done
26544
26545 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26546 ;;
26547esac
26548fi
26549GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26550
26551if test -n "$GTK_CONFIG"; then
26552 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26553echo "${ECHO_T}$GTK_CONFIG" >&6
26554else
26555 echo "$as_me:$LINENO: result: no" >&5
26556echo "${ECHO_T}no" >&6
26557fi
26558
26559 min_gtk_version=1.2.3
26560 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26561echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26562 no_gtk=""
26563 if test "$GTK_CONFIG" = "no" ; then
26564 no_gtk=yes
26565 else
26566 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26567 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26568 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26569 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26570 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26571 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26572 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26573 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26574 if test "x$enable_gtktest" = "xyes" ; then
26575 ac_save_CFLAGS="$CFLAGS"
26576 ac_save_LIBS="$LIBS"
26577 CFLAGS="$CFLAGS $GTK_CFLAGS"
26578 LIBS="$GTK_LIBS $LIBS"
26579 rm -f conf.gtktest
26580 if test "$cross_compiling" = yes; then
26581 echo $ac_n "cross compiling; assumed OK... $ac_c"
26582else
26583 cat >conftest.$ac_ext <<_ACEOF
26584/* confdefs.h. */
26585_ACEOF
26586cat confdefs.h >>conftest.$ac_ext
26587cat >>conftest.$ac_ext <<_ACEOF
26588/* end confdefs.h. */
26589
26590#include <gtk/gtk.h>
26591#include <stdio.h>
26592#include <stdlib.h>
26593
26594int
26595main ()
26596{
26597 int major, minor, micro;
26598 char *tmp_version;
26599
26600 system ("touch conf.gtktest");
26601
26602 /* HP/UX 9 (%@#!) writes to sscanf strings */
26603 tmp_version = g_strdup("$min_gtk_version");
26604 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26605 printf("%s, bad version string\n", "$min_gtk_version");
26606 exit(1);
26607 }
26608
26609 if ((gtk_major_version != $gtk_config_major_version) ||
26610 (gtk_minor_version != $gtk_config_minor_version) ||
26611 (gtk_micro_version != $gtk_config_micro_version))
26612 {
26613 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26614 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26615 gtk_major_version, gtk_minor_version, gtk_micro_version);
26616 printf ("*** was found! If gtk-config was correct, then it is best\n");
26617 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26618 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26619 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26620 printf("*** required on your system.\n");
26621 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26622 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26623 printf("*** before re-running configure\n");
26624 }
26625#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26626 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26627 (gtk_minor_version != GTK_MINOR_VERSION) ||
26628 (gtk_micro_version != GTK_MICRO_VERSION))
26629 {
26630 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26631 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26632 printf("*** library (version %d.%d.%d)\n",
26633 gtk_major_version, gtk_minor_version, gtk_micro_version);
26634 }
26635#endif /* defined (GTK_MAJOR_VERSION) ... */
26636 else
26637 {
26638 if ((gtk_major_version > major) ||
26639 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26640 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26641 {
26642 return 0;
26643 }
26644 else
26645 {
26646 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26647 gtk_major_version, gtk_minor_version, gtk_micro_version);
26648 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26649 major, minor, micro);
26650 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26651 printf("***\n");
26652 printf("*** If you have already installed a sufficiently new version, this error\n");
26653 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26654 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26655 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26656 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26657 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26658 printf("*** so that the correct libraries are found at run-time))\n");
26659 }
26660 }
26661 return 1;
26662}
26663
26664_ACEOF
26665rm -f conftest$ac_exeext
26666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26667 (eval $ac_link) 2>&5
26668 ac_status=$?
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672 (eval $ac_try) 2>&5
26673 ac_status=$?
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); }; }; then
26676 :
26677else
26678 echo "$as_me: program exited with status $ac_status" >&5
26679echo "$as_me: failed program was:" >&5
26680sed 's/^/| /' conftest.$ac_ext >&5
26681
26682( exit $ac_status )
26683no_gtk=yes
26684fi
ac1cb8d3 26685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26686fi
26687 CFLAGS="$ac_save_CFLAGS"
26688 LIBS="$ac_save_LIBS"
26689 fi
26690 fi
26691 if test "x$no_gtk" = x ; then
26692 echo "$as_me:$LINENO: result: yes" >&5
26693echo "${ECHO_T}yes" >&6
26694 wx_cv_lib_gtk=1.2.3
26695 else
26696 echo "$as_me:$LINENO: result: no" >&5
26697echo "${ECHO_T}no" >&6
26698 if test "$GTK_CONFIG" = "no" ; then
26699 echo "*** The gtk-config script installed by GTK could not be found"
26700 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26701 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26702 echo "*** full path to gtk-config."
26703 else
26704 if test -f conf.gtktest ; then
26705 :
26706 else
26707 echo "*** Could not run GTK test program, checking why..."
26708 CFLAGS="$CFLAGS $GTK_CFLAGS"
26709 LIBS="$LIBS $GTK_LIBS"
26710 cat >conftest.$ac_ext <<_ACEOF
26711/* confdefs.h. */
26712_ACEOF
26713cat confdefs.h >>conftest.$ac_ext
26714cat >>conftest.$ac_ext <<_ACEOF
26715/* end confdefs.h. */
26716
26717#include <gtk/gtk.h>
26718#include <stdio.h>
26719
26720int
26721main ()
26722{
26723 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26724 ;
26725 return 0;
26726}
26727_ACEOF
26728rm -f conftest.$ac_objext conftest$ac_exeext
26729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26730 (eval $ac_link) 2>conftest.er1
a848cd7e 26731 ac_status=$?
ac1cb8d3
VS
26732 grep -v '^ *+' conftest.er1 >conftest.err
26733 rm -f conftest.er1
26734 cat conftest.err >&5
a848cd7e
SC
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); } &&
5ff751d6 26737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26739 (eval $ac_try) 2>&5
26740 ac_status=$?
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); }; } &&
26743 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26745 (eval $ac_try) 2>&5
26746 ac_status=$?
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); }; }; then
26749 echo "*** The test program compiled, but did not run. This usually means"
26750 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26751 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26752 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26753 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26754 echo "*** is required on your system"
26755 echo "***"
26756 echo "*** If you have an old version installed, it is best to remove it, although"
26757 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26758 echo "***"
26759 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26760 echo "*** came with the system with the command"
26761 echo "***"
26762 echo "*** rpm --erase --nodeps gtk gtk-devel"
26763else
26764 echo "$as_me: failed program was:" >&5
26765sed 's/^/| /' conftest.$ac_ext >&5
26766
26767 echo "*** The test program failed to compile or link. See the file config.log for the"
26768 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26769 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26770 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26771fi
ac1cb8d3
VS
26772rm -f conftest.err conftest.$ac_objext \
26773 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26774 CFLAGS="$ac_save_CFLAGS"
26775 LIBS="$ac_save_LIBS"
26776 fi
26777 fi
26778 GTK_CFLAGS=""
26779 GTK_LIBS=""
26780 :
26781 fi
26782
26783
26784 rm -f conf.gtktest
26785
f34ca037 26786 fi
a848cd7e
SC
26787 fi
26788 fi
26789
26790 if test -z "$wx_cv_lib_gtk"; then
26791 wx_cv_lib_gtk=none
26792 else
26793 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 26794 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
26795 fi
26796
26797
26798fi
26799
26800
26801 if test "$gtk_version_cached" = 1; then
26802 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
26803echo "${ECHO_T}$wx_cv_lib_gtk" >&6
26804 fi
26805
26806 case "$wx_cv_lib_gtk" in
26807 2.0) WXGTK20=1
26808 TOOLKIT_VERSION=2
26809 ;;
26810 1.2.7) WXGTK127=1
26811 WXGTK12=1
26812 ;;
26813 1.2.3) WXGTK12=1
26814 ;;
26815 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
26816The development files for GTK+ were not found. For GTK+ 2, please
26817ensure that pkg-config is in the path and that gtk+-2.0.pc is
26818installed. For GTK+ 1.2 please check that gtk-config is in the path,
26819and that the version is 1.2.3 or above. Also check that the
26820libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26821--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26822 " >&5
26823echo "$as_me: error:
f597b41c
MW
26824The development files for GTK+ were not found. For GTK+ 2, please
26825ensure that pkg-config is in the path and that gtk+-2.0.pc is
26826installed. For GTK+ 1.2 please check that gtk-config is in the path,
26827and that the version is 1.2.3 or above. Also check that the
26828libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26829--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26830 " >&2;}
26831 { (exit 1); exit 1; }; }
26832 ;;
26833 esac
26834
26835 if test "$WXGTK20" = 1; then
304205f1
VS
26836 save_CFLAGS="$CFLAGS"
26837 save_LIBS="$LIBS"
9d271838 26838 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 26839 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 26840
d12aef51
VZ
26841 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26842echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26843 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
26844/* confdefs.h. */
26845_ACEOF
26846cat confdefs.h >>conftest.$ac_ext
26847cat >>conftest.$ac_ext <<_ACEOF
26848/* end confdefs.h. */
304205f1 26849
d12aef51 26850 #include <gtk/gtk.h>
304205f1 26851
d12aef51
VZ
26852int
26853main ()
26854{
304205f1 26855
d12aef51 26856 void *f = gtk_icon_size_lookup;
abc736fd
MW
26857
26858 ;
26859 return 0;
26860}
26861_ACEOF
26862rm -f conftest.$ac_objext
26863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26864 (eval $ac_compile) 2>conftest.er1
26865 ac_status=$?
26866 grep -v '^ *+' conftest.er1 >conftest.err
26867 rm -f conftest.er1
26868 cat conftest.err >&5
26869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870 (exit $ac_status); } &&
5ff751d6 26871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
26872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26873 (eval $ac_try) 2>&5
26874 ac_status=$?
26875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876 (exit $ac_status); }; } &&
26877 { ac_try='test -s conftest.$ac_objext'
26878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26879 (eval $ac_try) 2>&5
26880 ac_status=$?
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); }; }; then
26883
26884 echo "$as_me:$LINENO: result: no" >&5
26885echo "${ECHO_T}no" >&6
26886
26887else
26888 echo "$as_me: failed program was:" >&5
26889sed 's/^/| /' conftest.$ac_ext >&5
26890
26891
26892 cat >>confdefs.h <<\_ACEOF
26893#define NEED_GTK_ICON_SIZE_LOOKUP 1
26894_ACEOF
26895
26896 echo "$as_me:$LINENO: result: yes" >&5
26897echo "${ECHO_T}yes" >&6
26898
26899fi
26900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26901
9755e73b
VS
26902 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26903echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26904 cat >conftest.$ac_ext <<_ACEOF
26905/* confdefs.h. */
26906_ACEOF
26907cat confdefs.h >>conftest.$ac_ext
26908cat >>conftest.$ac_ext <<_ACEOF
26909/* end confdefs.h. */
26910
26911 #include <gtk/gtk.h>
26912
26913int
26914main ()
26915{
26916
26917 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 26918 Not GTK+ 2.4
9755e73b
VS
26919 #endif
26920
26921 ;
26922 return 0;
26923}
26924_ACEOF
26925rm -f conftest.$ac_objext
26926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26927 (eval $ac_compile) 2>conftest.er1
26928 ac_status=$?
26929 grep -v '^ *+' conftest.er1 >conftest.err
26930 rm -f conftest.er1
26931 cat conftest.err >&5
26932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933 (exit $ac_status); } &&
5ff751d6 26934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
26935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26936 (eval $ac_try) 2>&5
26937 ac_status=$?
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); }; } &&
26940 { ac_try='test -s conftest.$ac_objext'
26941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26942 (eval $ac_try) 2>&5
26943 ac_status=$?
26944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945 (exit $ac_status); }; }; then
26946
26947 cat >>confdefs.h <<\_ACEOF
26948#define __WXGTK24__ 1
26949_ACEOF
26950
26951 echo "$as_me:$LINENO: result: yes" >&5
26952echo "${ECHO_T}yes" >&6
26953
26954else
26955 echo "$as_me: failed program was:" >&5
26956sed 's/^/| /' conftest.$ac_ext >&5
26957
26958
26959 echo "$as_me:$LINENO: result: no" >&5
26960echo "${ECHO_T}no" >&6
26961
26962fi
26963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26964
304205f1
VS
26965 CFLAGS="$save_CFLAGS"
26966 LIBS="$save_LIBS"
a848cd7e
SC
26967 else
26968 if test "$wxUSE_UNICODE" = "yes"; then
26969 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
26970echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
26971 wxUSE_UNICODE=no
26972 fi
26973 fi
26974
26975 if test "$USE_DARWIN" != 1; then
26976
26977for ac_func in poll
26978do
26979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26980echo "$as_me:$LINENO: checking for $ac_func" >&5
26981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26982if eval "test \"\${$as_ac_var+set}\" = set"; then
26983 echo $ECHO_N "(cached) $ECHO_C" >&6
26984else
26985 cat >conftest.$ac_ext <<_ACEOF
26986/* confdefs.h. */
26987_ACEOF
26988cat confdefs.h >>conftest.$ac_ext
26989cat >>conftest.$ac_ext <<_ACEOF
26990/* end confdefs.h. */
ac1cb8d3
VS
26991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26993#define $ac_func innocuous_$ac_func
26994
a848cd7e
SC
26995/* System header to define __stub macros and hopefully few prototypes,
26996 which can conflict with char $ac_func (); below.
26997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26998 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26999
a848cd7e
SC
27000#ifdef __STDC__
27001# include <limits.h>
27002#else
27003# include <assert.h>
27004#endif
ac1cb8d3
VS
27005
27006#undef $ac_func
27007
a848cd7e
SC
27008/* Override any gcc2 internal prototype to avoid an error. */
27009#ifdef __cplusplus
27010extern "C"
27011{
27012#endif
27013/* We use char because int might match the return type of a gcc2
27014 builtin and then its argument prototype would still apply. */
27015char $ac_func ();
27016/* The GNU C library defines this for functions which it implements
27017 to always fail with ENOSYS. Some functions are actually named
27018 something starting with __ and the normal name is an alias. */
27019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27020choke me
27021#else
27022char (*f) () = $ac_func;
27023#endif
27024#ifdef __cplusplus
27025}
27026#endif
27027
27028int
27029main ()
27030{
27031return f != $ac_func;
27032 ;
27033 return 0;
27034}
27035_ACEOF
27036rm -f conftest.$ac_objext conftest$ac_exeext
27037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27038 (eval $ac_link) 2>conftest.er1
a848cd7e 27039 ac_status=$?
ac1cb8d3
VS
27040 grep -v '^ *+' conftest.er1 >conftest.err
27041 rm -f conftest.er1
27042 cat conftest.err >&5
a848cd7e
SC
27043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044 (exit $ac_status); } &&
5ff751d6 27045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27047 (eval $ac_try) 2>&5
27048 ac_status=$?
27049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27050 (exit $ac_status); }; } &&
27051 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27053 (eval $ac_try) 2>&5
27054 ac_status=$?
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); }; }; then
27057 eval "$as_ac_var=yes"
27058else
27059 echo "$as_me: failed program was:" >&5
27060sed 's/^/| /' conftest.$ac_ext >&5
27061
27062eval "$as_ac_var=no"
27063fi
ac1cb8d3
VS
27064rm -f conftest.err conftest.$ac_objext \
27065 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27066fi
27067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27068echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27069if test `eval echo '${'$as_ac_var'}'` = yes; then
27070 cat >>confdefs.h <<_ACEOF
27071#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27072_ACEOF
27073
27074fi
27075done
27076
27077 fi
27078
27079 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27080 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27081
27082 AFMINSTALL=afminstall
27083 TOOLKIT=GTK
27084 GUIDIST=GTK_DIST
27085
27086 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27087echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27088if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27089 echo $ECHO_N "(cached) $ECHO_C" >&6
27090else
27091 ac_check_lib_save_LIBS=$LIBS
27092LIBS="-lgdk $LIBS"
27093cat >conftest.$ac_ext <<_ACEOF
27094/* confdefs.h. */
27095_ACEOF
27096cat confdefs.h >>conftest.$ac_ext
27097cat >>conftest.$ac_ext <<_ACEOF
27098/* end confdefs.h. */
27099
27100/* Override any gcc2 internal prototype to avoid an error. */
27101#ifdef __cplusplus
27102extern "C"
27103#endif
27104/* We use char because int might match the return type of a gcc2
27105 builtin and then its argument prototype would still apply. */
27106char gdk_im_open ();
27107int
27108main ()
27109{
27110gdk_im_open ();
27111 ;
27112 return 0;
27113}
27114_ACEOF
27115rm -f conftest.$ac_objext conftest$ac_exeext
27116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27117 (eval $ac_link) 2>conftest.er1
a848cd7e 27118 ac_status=$?
ac1cb8d3
VS
27119 grep -v '^ *+' conftest.er1 >conftest.err
27120 rm -f conftest.er1
27121 cat conftest.err >&5
a848cd7e
SC
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } &&
5ff751d6 27124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126 (eval $ac_try) 2>&5
27127 ac_status=$?
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); }; } &&
27130 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132 (eval $ac_try) 2>&5
27133 ac_status=$?
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); }; }; then
27136 ac_cv_lib_gdk_gdk_im_open=yes
27137else
27138 echo "$as_me: failed program was:" >&5
27139sed 's/^/| /' conftest.$ac_ext >&5
27140
27141ac_cv_lib_gdk_gdk_im_open=no
27142fi
ac1cb8d3
VS
27143rm -f conftest.err conftest.$ac_objext \
27144 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27145LIBS=$ac_check_lib_save_LIBS
27146fi
27147echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27148echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27149if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27150 cat >>confdefs.h <<\_ACEOF
27151#define HAVE_XIM 1
27152_ACEOF
27153
27154fi
27155
27156
27157
27158 if test "$wxUSE_GPE" = "yes"; then
27159 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27160echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27161
0ad5d837
VZ
27162 ac_find_libraries=
27163 for ac_dir in $SEARCH_LIB;
a848cd7e 27164 do
3eca31dc 27165 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27166 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27167 ac_find_libraries=$ac_dir
27168 break 2
27169 fi
27170 done
27171 done
27172
27173 if test "$ac_find_libraries" != "" ; then
27174
0ad5d837 27175 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27176 ac_path_to_link=""
27177 else
0ad5d837
VZ
27178 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27179 result=$?
27180 if test $result = 0; then
27181 ac_path_to_link=""
27182 else
27183 ac_path_to_link=" -L$ac_find_libraries"
27184 fi
a848cd7e
SC
27185 fi
27186
27187 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27188 WXGPE=1
0ad5d837
VZ
27189 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27190echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27191 else
27192 echo "$as_me:$LINENO: result: not found" >&5
27193echo "${ECHO_T}not found" >&6
27194 fi
27195
27196 fi
27197 fi
27198
27199 if test "$wxUSE_MGL" = 1; then
27200 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27201echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27202 if test "x$MGL_ROOT" = x ; then
27203 echo "$as_me:$LINENO: result: not found" >&5
27204echo "${ECHO_T}not found" >&6
27205 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27206echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27207 { (exit 1); exit 1; }; }
27208 else
27209 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27210echo "${ECHO_T}$MGL_ROOT" >&6
27211 fi
27212
27213 echo "$as_me:$LINENO: checking for libmgl location" >&5
27214echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27215 case "${host}" in
27216 *-*-linux* )
27217 if test "x$wxUSE_SHARED" = xyes ; then
27218 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27219 else
27220 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27221 fi
27222 ;;
27223 *-pc-msdosdjgpp )
27224 mgl_os_candidates="dos32/dj2"
27225 ;;
27226 *)
27227 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27228echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27229 { (exit 1); exit 1; }; }
27230 esac
27231
27232 mgl_lib_type=""
27233 mgl_os=""
27234
27235 for mgl_os_i in $mgl_os_candidates ; do
27236 if test "x$mgl_os" = x ; then
27237 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27238 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27239 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27240 mgl_lib_type=debug
27241 mgl_os=$mgl_os_i
27242 fi
27243 fi
27244 if test "x$mgl_lib_type" = x ; then
27245 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27246 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27247 mgl_lib_type=release
27248 mgl_os=$mgl_os_i
27249 fi
27250 fi
27251 fi
27252 done
27253
27254 if test "x$mgl_os" = x ; then
27255 echo "$as_me:$LINENO: result: not found" >&5
27256echo "${ECHO_T}not found" >&6
27257 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27258echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27259 { (exit 1); exit 1; }; }
27260 fi
27261 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27262echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27263
27264 wxUSE_UNIVERSAL="yes"
27265
27266 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27267 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27268
27269 AFMINSTALL=afminstall
27270 TOOLKIT=MGL
27271 GUIDIST=MGL_DIST
27272 fi
27273
27274 if test "$wxUSE_MICROWIN" = 1; then
27275 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27276echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27277 if test "x$MICROWINDOWS" = x ; then
27278 echo "$as_me:$LINENO: result: not found" >&5
27279echo "${ECHO_T}not found" >&6
27280 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27281echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27282 { (exit 1); exit 1; }; }
27283 else
27284 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27285echo "${ECHO_T}$MICROWINDOWS" >&6
27286 fi
27287
27288 if test -f $MICROWINDOWS/lib/libmwin.a; then
27289 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27290echo "${ECHO_T}MicroWindows' libraries found." >&6
27291 else
27292 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27293echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27294 { (exit 1); exit 1; }; }
27295 fi
27296
27297 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27298 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27299
27300 wxUSE_UNIVERSAL="yes"
27301
27302 AFMINSTALL=afminstall
27303 TOOLKIT=MICROWIN
27304 GUIDIST=MICROWIN_DIST
27305
27306 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27307 fi
27308
74b84332 27309 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
5ff751d6
VZ
27310
27311if test "x$ac_path_x_has_been_run" != xyes; then
27312 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27313echo $ECHO_N "checking for X... $ECHO_C" >&6
27314
5ff751d6 27315ac_path_x_has_been_run=yes
a848cd7e
SC
27316
27317# Check whether --with-x or --without-x was given.
27318if test "${with_x+set}" = set; then
27319 withval="$with_x"
27320
27321fi;
27322# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27323if test "x$with_x" = xno; then
27324 # The user explicitly disabled X.
27325 have_x=disabled
27326else
27327 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27328 # Both variables are already set.
27329 have_x=yes
27330 else
27331 if test "${ac_cv_have_x+set}" = set; then
27332 echo $ECHO_N "(cached) $ECHO_C" >&6
27333else
27334 # One or both of the vars are not set, and there is no cached value.
27335ac_x_includes=no ac_x_libraries=no
27336rm -fr conftest.dir
27337if mkdir conftest.dir; then
27338 cd conftest.dir
27339 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27340 cat >Imakefile <<'_ACEOF'
27341acfindx:
27342 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27343_ACEOF
27344 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27345 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27346 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27347 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27348 for ac_extension in a so sl; do
27349 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27350 test -f $ac_im_libdir/libX11.$ac_extension; then
27351 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27352 fi
27353 done
27354 # Screen out bogus values from the imake configuration. They are
27355 # bogus both because they are the default anyway, and because
27356 # using them would break gcc on systems where it needs fixed includes.
27357 case $ac_im_incroot in
27358 /usr/include) ;;
27359 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27360 esac
27361 case $ac_im_usrlibdir in
27362 /usr/lib | /lib) ;;
27363 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27364 esac
27365 fi
27366 cd ..
27367 rm -fr conftest.dir
27368fi
27369
27370# Standard set of common directories for X headers.
27371# Check X11 before X11Rn because it is often a symlink to the current release.
27372ac_x_header_dirs='
27373/usr/X11/include
27374/usr/X11R6/include
27375/usr/X11R5/include
27376/usr/X11R4/include
27377
27378/usr/include/X11
27379/usr/include/X11R6
27380/usr/include/X11R5
27381/usr/include/X11R4
27382
27383/usr/local/X11/include
27384/usr/local/X11R6/include
27385/usr/local/X11R5/include
27386/usr/local/X11R4/include
27387
27388/usr/local/include/X11
27389/usr/local/include/X11R6
27390/usr/local/include/X11R5
27391/usr/local/include/X11R4
27392
27393/usr/X386/include
27394/usr/x386/include
27395/usr/XFree86/include/X11
27396
27397/usr/include
27398/usr/local/include
27399/usr/unsupported/include
27400/usr/athena/include
27401/usr/local/x11r5/include
27402/usr/lpp/Xamples/include
27403
27404/usr/openwin/include
27405/usr/openwin/share/include'
27406
27407if test "$ac_x_includes" = no; then
5ff751d6 27408 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
27409 # First, try using that file with no special directory specified.
27410 cat >conftest.$ac_ext <<_ACEOF
27411/* confdefs.h. */
27412_ACEOF
27413cat confdefs.h >>conftest.$ac_ext
27414cat >>conftest.$ac_ext <<_ACEOF
27415/* end confdefs.h. */
8aeeb05c 27416#include <X11/Xlib.h>
a848cd7e
SC
27417_ACEOF
27418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27420 ac_status=$?
27421 grep -v '^ *+' conftest.er1 >conftest.err
27422 rm -f conftest.er1
27423 cat conftest.err >&5
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); } >/dev/null; then
27426 if test -s conftest.err; then
27427 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27429 else
27430 ac_cpp_err=
27431 fi
27432else
27433 ac_cpp_err=yes
27434fi
27435if test -z "$ac_cpp_err"; then
27436 # We can compile using X headers with no special include directory.
27437ac_x_includes=
27438else
27439 echo "$as_me: failed program was:" >&5
27440sed 's/^/| /' conftest.$ac_ext >&5
27441
27442 for ac_dir in $ac_x_header_dirs; do
8aeeb05c 27443 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
27444 ac_x_includes=$ac_dir
27445 break
27446 fi
27447done
27448fi
27449rm -f conftest.err conftest.$ac_ext
27450fi # $ac_x_includes = no
27451
27452if test "$ac_x_libraries" = no; then
27453 # Check for the libraries.
27454 # See if we find them without any special options.
27455 # Don't add to $LIBS permanently.
27456 ac_save_LIBS=$LIBS
8aeeb05c 27457 LIBS="-lX11 $LIBS"
a848cd7e
SC
27458 cat >conftest.$ac_ext <<_ACEOF
27459/* confdefs.h. */
27460_ACEOF
27461cat confdefs.h >>conftest.$ac_ext
27462cat >>conftest.$ac_ext <<_ACEOF
27463/* end confdefs.h. */
8aeeb05c 27464#include <X11/Xlib.h>
a848cd7e
SC
27465int
27466main ()
27467{
8aeeb05c 27468XrmInitialize ()
a848cd7e
SC
27469 ;
27470 return 0;
27471}
27472_ACEOF
27473rm -f conftest.$ac_objext conftest$ac_exeext
27474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27475 (eval $ac_link) 2>conftest.er1
a848cd7e 27476 ac_status=$?
ac1cb8d3
VS
27477 grep -v '^ *+' conftest.er1 >conftest.err
27478 rm -f conftest.er1
27479 cat conftest.err >&5
a848cd7e
SC
27480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); } &&
5ff751d6 27482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27484 (eval $ac_try) 2>&5
27485 ac_status=$?
27486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487 (exit $ac_status); }; } &&
27488 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27490 (eval $ac_try) 2>&5
27491 ac_status=$?
27492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); }; }; then
27494 LIBS=$ac_save_LIBS
27495# We can link X programs with no special library path.
27496ac_x_libraries=
27497else
27498 echo "$as_me: failed program was:" >&5
27499sed 's/^/| /' conftest.$ac_ext >&5
27500
27501LIBS=$ac_save_LIBS
27502for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27503do
27504 # Don't even attempt the hair of trying to link an X program!
27505 for ac_extension in a so sl; do
8aeeb05c 27506 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
27507 ac_x_libraries=$ac_dir
27508 break 2
27509 fi
27510 done
27511done
27512fi
ac1cb8d3
VS
27513rm -f conftest.err conftest.$ac_objext \
27514 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27515fi # $ac_x_libraries = no
27516
27517if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27518 # Didn't find X anywhere. Cache the known absence of X.
27519 ac_cv_have_x="have_x=no"
27520else
27521 # Record where we found X for the cache.
27522 ac_cv_have_x="have_x=yes \
ac1cb8d3 27523 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27524fi
27525fi
27526
27527 fi
27528 eval "$ac_cv_have_x"
27529fi # $with_x != no
27530
27531if test "$have_x" != yes; then
27532 echo "$as_me:$LINENO: result: $have_x" >&5
27533echo "${ECHO_T}$have_x" >&6
27534 no_x=yes
27535else
27536 # If each of the values was on the command line, it overrides each guess.
27537 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27538 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27539 # Update the cache value to reflect the command line values.
27540 ac_cv_have_x="have_x=yes \
27541 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5ff751d6
VZ
27542 # It might be that x_includes is empty (headers are found in the
27543 # standard search path. Then output the corresponding message
27544 ac_out_x_includes=$x_includes
27545 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
27546 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
27547echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
27548fi
27549
5ff751d6 27550fi
a848cd7e
SC
27551if test "$no_x" = yes; then
27552 # Not all programs may use this symbol, but it does not hurt to define it.
27553
27554cat >>confdefs.h <<\_ACEOF
27555#define X_DISPLAY_MISSING 1
27556_ACEOF
27557
27558 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27559else
27560 if test -n "$x_includes"; then
27561 X_CFLAGS="$X_CFLAGS -I$x_includes"
27562 fi
27563
27564 # It would also be nice to do this for all -L options, not just this one.
27565 if test -n "$x_libraries"; then
27566 X_LIBS="$X_LIBS -L$x_libraries"
27567 # For Solaris; some versions of Sun CC require a space after -R and
27568 # others require no space. Words are not sufficient . . . .
27569 case `(uname -sr) 2>/dev/null` in
27570 "SunOS 5"*)
27571 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27572echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27573 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27574 cat >conftest.$ac_ext <<_ACEOF
27575/* confdefs.h. */
27576_ACEOF
27577cat confdefs.h >>conftest.$ac_ext
27578cat >>conftest.$ac_ext <<_ACEOF
27579/* end confdefs.h. */
27580
27581int
27582main ()
27583{
27584
27585 ;
27586 return 0;
27587}
27588_ACEOF
27589rm -f conftest.$ac_objext conftest$ac_exeext
27590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27591 (eval $ac_link) 2>conftest.er1
a848cd7e 27592 ac_status=$?
ac1cb8d3
VS
27593 grep -v '^ *+' conftest.er1 >conftest.err
27594 rm -f conftest.er1
27595 cat conftest.err >&5
a848cd7e
SC
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); } &&
5ff751d6 27598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27600 (eval $ac_try) 2>&5
27601 ac_status=$?
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); }; } &&
27604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27606 (eval $ac_try) 2>&5
27607 ac_status=$?
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); }; }; then
27610 ac_R_nospace=yes
27611else
27612 echo "$as_me: failed program was:" >&5
27613sed 's/^/| /' conftest.$ac_ext >&5
27614
27615ac_R_nospace=no
27616fi
ac1cb8d3
VS
27617rm -f conftest.err conftest.$ac_objext \
27618 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27619 if test $ac_R_nospace = yes; then
27620 echo "$as_me:$LINENO: result: no" >&5
27621echo "${ECHO_T}no" >&6
27622 X_LIBS="$X_LIBS -R$x_libraries"
27623 else
27624 LIBS="$ac_xsave_LIBS -R $x_libraries"
27625 cat >conftest.$ac_ext <<_ACEOF
27626/* confdefs.h. */
27627_ACEOF
27628cat confdefs.h >>conftest.$ac_ext
27629cat >>conftest.$ac_ext <<_ACEOF
27630/* end confdefs.h. */
27631
27632int
27633main ()
27634{
27635
27636 ;
27637 return 0;
27638}
27639_ACEOF
27640rm -f conftest.$ac_objext conftest$ac_exeext
27641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27642 (eval $ac_link) 2>conftest.er1
a848cd7e 27643 ac_status=$?
ac1cb8d3
VS
27644 grep -v '^ *+' conftest.er1 >conftest.err
27645 rm -f conftest.er1
27646 cat conftest.err >&5
a848cd7e
SC
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); } &&
5ff751d6 27649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27651 (eval $ac_try) 2>&5
27652 ac_status=$?
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); }; } &&
27655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27657 (eval $ac_try) 2>&5
27658 ac_status=$?
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); }; }; then
27661 ac_R_space=yes
27662else
27663 echo "$as_me: failed program was:" >&5
27664sed 's/^/| /' conftest.$ac_ext >&5
27665
27666ac_R_space=no
27667fi
ac1cb8d3
VS
27668rm -f conftest.err conftest.$ac_objext \
27669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27670 if test $ac_R_space = yes; then
27671 echo "$as_me:$LINENO: result: yes" >&5
27672echo "${ECHO_T}yes" >&6
27673 X_LIBS="$X_LIBS -R $x_libraries"
27674 else
27675 echo "$as_me:$LINENO: result: neither works" >&5
27676echo "${ECHO_T}neither works" >&6
27677 fi
27678 fi
27679 LIBS=$ac_xsave_LIBS
27680 esac
27681 fi
27682
27683 # Check for system-dependent libraries X programs must link with.
27684 # Do this before checking for the system-independent R6 libraries
27685 # (-lICE), since we may need -lsocket or whatever for X linking.
27686
27687 if test "$ISC" = yes; then
27688 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27689 else
27690 # Martyn Johnson says this is needed for Ultrix, if the X
27691 # libraries were built with DECnet support. And Karl Berry says
27692 # the Alpha needs dnet_stub (dnet does not exist).
27693 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27694 cat >conftest.$ac_ext <<_ACEOF
27695/* confdefs.h. */
27696_ACEOF
27697cat confdefs.h >>conftest.$ac_ext
27698cat >>conftest.$ac_ext <<_ACEOF
27699/* end confdefs.h. */
27700
27701/* Override any gcc2 internal prototype to avoid an error. */
27702#ifdef __cplusplus
27703extern "C"
27704#endif
27705/* We use char because int might match the return type of a gcc2
27706 builtin and then its argument prototype would still apply. */
27707char XOpenDisplay ();
27708int
27709main ()
27710{
27711XOpenDisplay ();
27712 ;
27713 return 0;
27714}
27715_ACEOF
27716rm -f conftest.$ac_objext conftest$ac_exeext
27717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27718 (eval $ac_link) 2>conftest.er1
a848cd7e 27719 ac_status=$?
ac1cb8d3
VS
27720 grep -v '^ *+' conftest.er1 >conftest.err
27721 rm -f conftest.er1
27722 cat conftest.err >&5
a848cd7e
SC
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); } &&
5ff751d6 27725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27727 (eval $ac_try) 2>&5
27728 ac_status=$?
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); }; } &&
27731 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27733 (eval $ac_try) 2>&5
27734 ac_status=$?
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); }; }; then
27737 :
27738else
27739 echo "$as_me: failed program was:" >&5
27740sed 's/^/| /' conftest.$ac_ext >&5
27741
27742echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27743echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27744if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27745 echo $ECHO_N "(cached) $ECHO_C" >&6
27746else
27747 ac_check_lib_save_LIBS=$LIBS
27748LIBS="-ldnet $LIBS"
27749cat >conftest.$ac_ext <<_ACEOF
27750/* confdefs.h. */
27751_ACEOF
27752cat confdefs.h >>conftest.$ac_ext
27753cat >>conftest.$ac_ext <<_ACEOF
27754/* end confdefs.h. */
27755
27756/* Override any gcc2 internal prototype to avoid an error. */
27757#ifdef __cplusplus
27758extern "C"
27759#endif
27760/* We use char because int might match the return type of a gcc2
27761 builtin and then its argument prototype would still apply. */
27762char dnet_ntoa ();
27763int
27764main ()
27765{
27766dnet_ntoa ();
27767 ;
27768 return 0;
27769}
27770_ACEOF
27771rm -f conftest.$ac_objext conftest$ac_exeext
27772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27773 (eval $ac_link) 2>conftest.er1
a848cd7e 27774 ac_status=$?
ac1cb8d3
VS
27775 grep -v '^ *+' conftest.er1 >conftest.err
27776 rm -f conftest.er1
27777 cat conftest.err >&5
a848cd7e
SC
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); } &&
5ff751d6 27780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27782 (eval $ac_try) 2>&5
27783 ac_status=$?
27784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785 (exit $ac_status); }; } &&
27786 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27788 (eval $ac_try) 2>&5
27789 ac_status=$?
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; }; then
27792 ac_cv_lib_dnet_dnet_ntoa=yes
27793else
27794 echo "$as_me: failed program was:" >&5
27795sed 's/^/| /' conftest.$ac_ext >&5
27796
27797ac_cv_lib_dnet_dnet_ntoa=no
27798fi
ac1cb8d3
VS
27799rm -f conftest.err conftest.$ac_objext \
27800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27801LIBS=$ac_check_lib_save_LIBS
27802fi
27803echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27804echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27805if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27806 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27807fi
27808
27809 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27810 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27811echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27812if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27813 echo $ECHO_N "(cached) $ECHO_C" >&6
27814else
27815 ac_check_lib_save_LIBS=$LIBS
27816LIBS="-ldnet_stub $LIBS"
27817cat >conftest.$ac_ext <<_ACEOF
27818/* confdefs.h. */
27819_ACEOF
27820cat confdefs.h >>conftest.$ac_ext
27821cat >>conftest.$ac_ext <<_ACEOF
27822/* end confdefs.h. */
27823
27824/* Override any gcc2 internal prototype to avoid an error. */
27825#ifdef __cplusplus
27826extern "C"
27827#endif
27828/* We use char because int might match the return type of a gcc2
27829 builtin and then its argument prototype would still apply. */
27830char dnet_ntoa ();
27831int
27832main ()
27833{
27834dnet_ntoa ();
27835 ;
27836 return 0;
27837}
27838_ACEOF
27839rm -f conftest.$ac_objext conftest$ac_exeext
27840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27841 (eval $ac_link) 2>conftest.er1
a848cd7e 27842 ac_status=$?
ac1cb8d3
VS
27843 grep -v '^ *+' conftest.er1 >conftest.err
27844 rm -f conftest.er1
27845 cat conftest.err >&5
a848cd7e
SC
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); } &&
5ff751d6 27848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27850 (eval $ac_try) 2>&5
27851 ac_status=$?
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); }; } &&
27854 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27856 (eval $ac_try) 2>&5
27857 ac_status=$?
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; }; then
27860 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27861else
27862 echo "$as_me: failed program was:" >&5
27863sed 's/^/| /' conftest.$ac_ext >&5
27864
27865ac_cv_lib_dnet_stub_dnet_ntoa=no
27866fi
ac1cb8d3
VS
27867rm -f conftest.err conftest.$ac_objext \
27868 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27869LIBS=$ac_check_lib_save_LIBS
27870fi
27871echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27872echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27873if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27874 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27875fi
27876
27877 fi
27878fi
ac1cb8d3
VS
27879rm -f conftest.err conftest.$ac_objext \
27880 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27881 LIBS="$ac_xsave_LIBS"
27882
27883 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27884 # to get the SysV transport functions.
27885 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27886 # needs -lnsl.
27887 # The nsl library prevents programs from opening the X display
27888 # on Irix 5.2, according to T.E. Dickey.
27889 # The functions gethostbyname, getservbyname, and inet_addr are
27890 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27891 echo "$as_me:$LINENO: checking for gethostbyname" >&5
27892echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27893if test "${ac_cv_func_gethostbyname+set}" = set; then
27894 echo $ECHO_N "(cached) $ECHO_C" >&6
27895else
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. */
ac1cb8d3
VS
27902/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27904#define gethostbyname innocuous_gethostbyname
27905
a848cd7e
SC
27906/* System header to define __stub macros and hopefully few prototypes,
27907 which can conflict with char gethostbyname (); below.
27908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27909 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27910
a848cd7e
SC
27911#ifdef __STDC__
27912# include <limits.h>
27913#else
27914# include <assert.h>
27915#endif
ac1cb8d3
VS
27916
27917#undef gethostbyname
27918
a848cd7e
SC
27919/* Override any gcc2 internal prototype to avoid an error. */
27920#ifdef __cplusplus
27921extern "C"
27922{
27923#endif
27924/* We use char because int might match the return type of a gcc2
27925 builtin and then its argument prototype would still apply. */
27926char gethostbyname ();
27927/* The GNU C library defines this for functions which it implements
27928 to always fail with ENOSYS. Some functions are actually named
27929 something starting with __ and the normal name is an alias. */
27930#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
27931choke me
27932#else
27933char (*f) () = gethostbyname;
27934#endif
27935#ifdef __cplusplus
27936}
27937#endif
27938
27939int
27940main ()
27941{
27942return f != gethostbyname;
27943 ;
27944 return 0;
27945}
27946_ACEOF
27947rm -f conftest.$ac_objext conftest$ac_exeext
27948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27949 (eval $ac_link) 2>conftest.er1
a848cd7e 27950 ac_status=$?
ac1cb8d3
VS
27951 grep -v '^ *+' conftest.er1 >conftest.err
27952 rm -f conftest.er1
27953 cat conftest.err >&5
a848cd7e
SC
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); } &&
5ff751d6 27956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27958 (eval $ac_try) 2>&5
27959 ac_status=$?
27960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); }; } &&
27962 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964 (eval $ac_try) 2>&5
27965 ac_status=$?
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; }; then
27968 ac_cv_func_gethostbyname=yes
27969else
27970 echo "$as_me: failed program was:" >&5
27971sed 's/^/| /' conftest.$ac_ext >&5
27972
27973ac_cv_func_gethostbyname=no
27974fi
ac1cb8d3
VS
27975rm -f conftest.err conftest.$ac_objext \
27976 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27977fi
27978echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27979echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
27980
27981 if test $ac_cv_func_gethostbyname = no; then
27982 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27983echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
27984if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27985 echo $ECHO_N "(cached) $ECHO_C" >&6
27986else
27987 ac_check_lib_save_LIBS=$LIBS
27988LIBS="-lnsl $LIBS"
27989cat >conftest.$ac_ext <<_ACEOF
27990/* confdefs.h. */
27991_ACEOF
27992cat confdefs.h >>conftest.$ac_ext
27993cat >>conftest.$ac_ext <<_ACEOF
27994/* end confdefs.h. */
27995
27996/* Override any gcc2 internal prototype to avoid an error. */
27997#ifdef __cplusplus
27998extern "C"
27999#endif
28000/* We use char because int might match the return type of a gcc2
28001 builtin and then its argument prototype would still apply. */
28002char gethostbyname ();
28003int
28004main ()
28005{
28006gethostbyname ();
28007 ;
28008 return 0;
28009}
28010_ACEOF
28011rm -f conftest.$ac_objext conftest$ac_exeext
28012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28013 (eval $ac_link) 2>conftest.er1
28014 ac_status=$?
28015 grep -v '^ *+' conftest.er1 >conftest.err
28016 rm -f conftest.er1
28017 cat conftest.err >&5
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019 (exit $ac_status); } &&
5ff751d6 28020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28022 (eval $ac_try) 2>&5
28023 ac_status=$?
28024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025 (exit $ac_status); }; } &&
28026 { ac_try='test -s conftest$ac_exeext'
28027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28028 (eval $ac_try) 2>&5
28029 ac_status=$?
28030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031 (exit $ac_status); }; }; then
28032 ac_cv_lib_nsl_gethostbyname=yes
28033else
28034 echo "$as_me: failed program was:" >&5
28035sed 's/^/| /' conftest.$ac_ext >&5
28036
28037ac_cv_lib_nsl_gethostbyname=no
28038fi
28039rm -f conftest.err conftest.$ac_objext \
28040 conftest$ac_exeext conftest.$ac_ext
28041LIBS=$ac_check_lib_save_LIBS
28042fi
28043echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28044echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28045if test $ac_cv_lib_nsl_gethostbyname = yes; then
28046 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28047fi
28048
28049 if test $ac_cv_lib_nsl_gethostbyname = no; then
28050 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28051echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28052if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28053 echo $ECHO_N "(cached) $ECHO_C" >&6
28054else
28055 ac_check_lib_save_LIBS=$LIBS
28056LIBS="-lbsd $LIBS"
28057cat >conftest.$ac_ext <<_ACEOF
28058/* confdefs.h. */
28059_ACEOF
28060cat confdefs.h >>conftest.$ac_ext
28061cat >>conftest.$ac_ext <<_ACEOF
28062/* end confdefs.h. */
28063
28064/* Override any gcc2 internal prototype to avoid an error. */
28065#ifdef __cplusplus
28066extern "C"
28067#endif
28068/* We use char because int might match the return type of a gcc2
28069 builtin and then its argument prototype would still apply. */
28070char gethostbyname ();
28071int
28072main ()
28073{
28074gethostbyname ();
28075 ;
28076 return 0;
28077}
28078_ACEOF
28079rm -f conftest.$ac_objext conftest$ac_exeext
28080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28081 (eval $ac_link) 2>conftest.er1
a848cd7e 28082 ac_status=$?
ac1cb8d3
VS
28083 grep -v '^ *+' conftest.er1 >conftest.err
28084 rm -f conftest.er1
28085 cat conftest.err >&5
a848cd7e
SC
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); } &&
5ff751d6 28088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28090 (eval $ac_try) 2>&5
28091 ac_status=$?
28092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28093 (exit $ac_status); }; } &&
28094 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28096 (eval $ac_try) 2>&5
28097 ac_status=$?
28098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28099 (exit $ac_status); }; }; then
28100 ac_cv_lib_bsd_gethostbyname=yes
28101else
28102 echo "$as_me: failed program was:" >&5
28103sed 's/^/| /' conftest.$ac_ext >&5
28104
28105ac_cv_lib_bsd_gethostbyname=no
28106fi
ac1cb8d3
VS
28107rm -f conftest.err conftest.$ac_objext \
28108 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28109LIBS=$ac_check_lib_save_LIBS
28110fi
28111echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28112echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28113if test $ac_cv_lib_bsd_gethostbyname = yes; then
28114 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28115fi
28116
28117 fi
28118 fi
28119
28120 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28121 # socket/setsockopt and other routines are undefined under SCO ODT
28122 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28123 # on later versions), says Simon Leinen: it contains gethostby*
28124 # variants that don't use the name server (or something). -lsocket
28125 # must be given before -lnsl if both are needed. We assume that
28126 # if connect needs -lnsl, so does gethostbyname.
28127 echo "$as_me:$LINENO: checking for connect" >&5
28128echo $ECHO_N "checking for connect... $ECHO_C" >&6
28129if test "${ac_cv_func_connect+set}" = set; then
28130 echo $ECHO_N "(cached) $ECHO_C" >&6
28131else
28132 cat >conftest.$ac_ext <<_ACEOF
28133/* confdefs.h. */
28134_ACEOF
28135cat confdefs.h >>conftest.$ac_ext
28136cat >>conftest.$ac_ext <<_ACEOF
28137/* end confdefs.h. */
ac1cb8d3
VS
28138/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28140#define connect innocuous_connect
28141
a848cd7e
SC
28142/* System header to define __stub macros and hopefully few prototypes,
28143 which can conflict with char connect (); below.
28144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28145 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28146
a848cd7e
SC
28147#ifdef __STDC__
28148# include <limits.h>
28149#else
28150# include <assert.h>
28151#endif
ac1cb8d3
VS
28152
28153#undef connect
28154
a848cd7e
SC
28155/* Override any gcc2 internal prototype to avoid an error. */
28156#ifdef __cplusplus
28157extern "C"
28158{
28159#endif
28160/* We use char because int might match the return type of a gcc2
28161 builtin and then its argument prototype would still apply. */
28162char connect ();
28163/* The GNU C library defines this for functions which it implements
28164 to always fail with ENOSYS. Some functions are actually named
28165 something starting with __ and the normal name is an alias. */
28166#if defined (__stub_connect) || defined (__stub___connect)
28167choke me
28168#else
28169char (*f) () = connect;
28170#endif
28171#ifdef __cplusplus
28172}
28173#endif
28174
28175int
28176main ()
28177{
28178return f != connect;
28179 ;
28180 return 0;
28181}
28182_ACEOF
28183rm -f conftest.$ac_objext conftest$ac_exeext
28184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28185 (eval $ac_link) 2>conftest.er1
a848cd7e 28186 ac_status=$?
ac1cb8d3
VS
28187 grep -v '^ *+' conftest.er1 >conftest.err
28188 rm -f conftest.er1
28189 cat conftest.err >&5
a848cd7e
SC
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); } &&
5ff751d6 28192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28194 (eval $ac_try) 2>&5
28195 ac_status=$?
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); }; } &&
28198 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28200 (eval $ac_try) 2>&5
28201 ac_status=$?
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); }; }; then
28204 ac_cv_func_connect=yes
28205else
28206 echo "$as_me: failed program was:" >&5
28207sed 's/^/| /' conftest.$ac_ext >&5
28208
28209ac_cv_func_connect=no
28210fi
ac1cb8d3
VS
28211rm -f conftest.err conftest.$ac_objext \
28212 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28213fi
28214echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28215echo "${ECHO_T}$ac_cv_func_connect" >&6
28216
28217 if test $ac_cv_func_connect = no; then
28218 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28219echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28220if test "${ac_cv_lib_socket_connect+set}" = set; then
28221 echo $ECHO_N "(cached) $ECHO_C" >&6
28222else
28223 ac_check_lib_save_LIBS=$LIBS
28224LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28225cat >conftest.$ac_ext <<_ACEOF
28226/* confdefs.h. */
28227_ACEOF
28228cat confdefs.h >>conftest.$ac_ext
28229cat >>conftest.$ac_ext <<_ACEOF
28230/* end confdefs.h. */
28231
28232/* Override any gcc2 internal prototype to avoid an error. */
28233#ifdef __cplusplus
28234extern "C"
28235#endif
28236/* We use char because int might match the return type of a gcc2
28237 builtin and then its argument prototype would still apply. */
28238char connect ();
28239int
28240main ()
28241{
28242connect ();
28243 ;
28244 return 0;
28245}
28246_ACEOF
28247rm -f conftest.$ac_objext conftest$ac_exeext
28248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28249 (eval $ac_link) 2>conftest.er1
a848cd7e 28250 ac_status=$?
ac1cb8d3
VS
28251 grep -v '^ *+' conftest.er1 >conftest.err
28252 rm -f conftest.er1
28253 cat conftest.err >&5
a848cd7e
SC
28254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255 (exit $ac_status); } &&
5ff751d6 28256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28258 (eval $ac_try) 2>&5
28259 ac_status=$?
28260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261 (exit $ac_status); }; } &&
28262 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28264 (eval $ac_try) 2>&5
28265 ac_status=$?
28266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267 (exit $ac_status); }; }; then
28268 ac_cv_lib_socket_connect=yes
28269else
28270 echo "$as_me: failed program was:" >&5
28271sed 's/^/| /' conftest.$ac_ext >&5
28272
28273ac_cv_lib_socket_connect=no
28274fi
ac1cb8d3
VS
28275rm -f conftest.err conftest.$ac_objext \
28276 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28277LIBS=$ac_check_lib_save_LIBS
28278fi
28279echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28280echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28281if test $ac_cv_lib_socket_connect = yes; then
28282 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28283fi
28284
28285 fi
28286
28287 # Guillermo Gomez says -lposix is necessary on A/UX.
28288 echo "$as_me:$LINENO: checking for remove" >&5
28289echo $ECHO_N "checking for remove... $ECHO_C" >&6
28290if test "${ac_cv_func_remove+set}" = set; then
28291 echo $ECHO_N "(cached) $ECHO_C" >&6
28292else
28293 cat >conftest.$ac_ext <<_ACEOF
28294/* confdefs.h. */
28295_ACEOF
28296cat confdefs.h >>conftest.$ac_ext
28297cat >>conftest.$ac_ext <<_ACEOF
28298/* end confdefs.h. */
ac1cb8d3
VS
28299/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28301#define remove innocuous_remove
28302
a848cd7e
SC
28303/* System header to define __stub macros and hopefully few prototypes,
28304 which can conflict with char remove (); below.
28305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28306 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28307
a848cd7e
SC
28308#ifdef __STDC__
28309# include <limits.h>
28310#else
28311# include <assert.h>
28312#endif
ac1cb8d3
VS
28313
28314#undef remove
28315
a848cd7e
SC
28316/* Override any gcc2 internal prototype to avoid an error. */
28317#ifdef __cplusplus
28318extern "C"
28319{
28320#endif
28321/* We use char because int might match the return type of a gcc2
28322 builtin and then its argument prototype would still apply. */
28323char remove ();
28324/* The GNU C library defines this for functions which it implements
28325 to always fail with ENOSYS. Some functions are actually named
28326 something starting with __ and the normal name is an alias. */
28327#if defined (__stub_remove) || defined (__stub___remove)
28328choke me
28329#else
28330char (*f) () = remove;
28331#endif
28332#ifdef __cplusplus
28333}
28334#endif
28335
28336int
28337main ()
28338{
28339return f != remove;
28340 ;
28341 return 0;
28342}
28343_ACEOF
28344rm -f conftest.$ac_objext conftest$ac_exeext
28345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28346 (eval $ac_link) 2>conftest.er1
a848cd7e 28347 ac_status=$?
ac1cb8d3
VS
28348 grep -v '^ *+' conftest.er1 >conftest.err
28349 rm -f conftest.er1
28350 cat conftest.err >&5
a848cd7e
SC
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); } &&
5ff751d6 28353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28355 (eval $ac_try) 2>&5
28356 ac_status=$?
28357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 (exit $ac_status); }; } &&
28359 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28361 (eval $ac_try) 2>&5
28362 ac_status=$?
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); }; }; then
28365 ac_cv_func_remove=yes
28366else
28367 echo "$as_me: failed program was:" >&5
28368sed 's/^/| /' conftest.$ac_ext >&5
28369
28370ac_cv_func_remove=no
28371fi
ac1cb8d3
VS
28372rm -f conftest.err conftest.$ac_objext \
28373 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28374fi
28375echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28376echo "${ECHO_T}$ac_cv_func_remove" >&6
28377
28378 if test $ac_cv_func_remove = no; then
28379 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28380echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28381if test "${ac_cv_lib_posix_remove+set}" = set; then
28382 echo $ECHO_N "(cached) $ECHO_C" >&6
28383else
28384 ac_check_lib_save_LIBS=$LIBS
28385LIBS="-lposix $LIBS"
28386cat >conftest.$ac_ext <<_ACEOF
28387/* confdefs.h. */
28388_ACEOF
28389cat confdefs.h >>conftest.$ac_ext
28390cat >>conftest.$ac_ext <<_ACEOF
28391/* end confdefs.h. */
28392
28393/* Override any gcc2 internal prototype to avoid an error. */
28394#ifdef __cplusplus
28395extern "C"
28396#endif
28397/* We use char because int might match the return type of a gcc2
28398 builtin and then its argument prototype would still apply. */
28399char remove ();
28400int
28401main ()
28402{
28403remove ();
28404 ;
28405 return 0;
28406}
28407_ACEOF
28408rm -f conftest.$ac_objext conftest$ac_exeext
28409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28410 (eval $ac_link) 2>conftest.er1
a848cd7e 28411 ac_status=$?
ac1cb8d3
VS
28412 grep -v '^ *+' conftest.er1 >conftest.err
28413 rm -f conftest.er1
28414 cat conftest.err >&5
a848cd7e
SC
28415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416 (exit $ac_status); } &&
5ff751d6 28417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28419 (eval $ac_try) 2>&5
28420 ac_status=$?
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); }; } &&
28423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28425 (eval $ac_try) 2>&5
28426 ac_status=$?
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
28429 ac_cv_lib_posix_remove=yes
28430else
28431 echo "$as_me: failed program was:" >&5
28432sed 's/^/| /' conftest.$ac_ext >&5
28433
28434ac_cv_lib_posix_remove=no
28435fi
ac1cb8d3
VS
28436rm -f conftest.err conftest.$ac_objext \
28437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28438LIBS=$ac_check_lib_save_LIBS
28439fi
28440echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28441echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28442if test $ac_cv_lib_posix_remove = yes; then
28443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28444fi
28445
28446 fi
28447
28448 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28449 echo "$as_me:$LINENO: checking for shmat" >&5
28450echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28451if test "${ac_cv_func_shmat+set}" = set; then
28452 echo $ECHO_N "(cached) $ECHO_C" >&6
28453else
28454 cat >conftest.$ac_ext <<_ACEOF
28455/* confdefs.h. */
28456_ACEOF
28457cat confdefs.h >>conftest.$ac_ext
28458cat >>conftest.$ac_ext <<_ACEOF
28459/* end confdefs.h. */
ac1cb8d3
VS
28460/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28462#define shmat innocuous_shmat
28463
a848cd7e
SC
28464/* System header to define __stub macros and hopefully few prototypes,
28465 which can conflict with char shmat (); below.
28466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28467 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28468
a848cd7e
SC
28469#ifdef __STDC__
28470# include <limits.h>
28471#else
28472# include <assert.h>
28473#endif
ac1cb8d3
VS
28474
28475#undef shmat
28476
a848cd7e
SC
28477/* Override any gcc2 internal prototype to avoid an error. */
28478#ifdef __cplusplus
28479extern "C"
28480{
28481#endif
28482/* We use char because int might match the return type of a gcc2
28483 builtin and then its argument prototype would still apply. */
28484char shmat ();
28485/* The GNU C library defines this for functions which it implements
28486 to always fail with ENOSYS. Some functions are actually named
28487 something starting with __ and the normal name is an alias. */
28488#if defined (__stub_shmat) || defined (__stub___shmat)
28489choke me
28490#else
28491char (*f) () = shmat;
28492#endif
28493#ifdef __cplusplus
28494}
28495#endif
28496
28497int
28498main ()
28499{
28500return f != shmat;
28501 ;
28502 return 0;
28503}
28504_ACEOF
28505rm -f conftest.$ac_objext conftest$ac_exeext
28506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28507 (eval $ac_link) 2>conftest.er1
a848cd7e 28508 ac_status=$?
ac1cb8d3
VS
28509 grep -v '^ *+' conftest.er1 >conftest.err
28510 rm -f conftest.er1
28511 cat conftest.err >&5
a848cd7e
SC
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); } &&
5ff751d6 28514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28516 (eval $ac_try) 2>&5
28517 ac_status=$?
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); }; } &&
28520 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28522 (eval $ac_try) 2>&5
28523 ac_status=$?
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); }; }; then
28526 ac_cv_func_shmat=yes
28527else
28528 echo "$as_me: failed program was:" >&5
28529sed 's/^/| /' conftest.$ac_ext >&5
28530
28531ac_cv_func_shmat=no
28532fi
ac1cb8d3
VS
28533rm -f conftest.err conftest.$ac_objext \
28534 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28535fi
28536echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28537echo "${ECHO_T}$ac_cv_func_shmat" >&6
28538
28539 if test $ac_cv_func_shmat = no; then
28540 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28541echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28542if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28543 echo $ECHO_N "(cached) $ECHO_C" >&6
28544else
28545 ac_check_lib_save_LIBS=$LIBS
28546LIBS="-lipc $LIBS"
28547cat >conftest.$ac_ext <<_ACEOF
28548/* confdefs.h. */
28549_ACEOF
28550cat confdefs.h >>conftest.$ac_ext
28551cat >>conftest.$ac_ext <<_ACEOF
28552/* end confdefs.h. */
28553
28554/* Override any gcc2 internal prototype to avoid an error. */
28555#ifdef __cplusplus
28556extern "C"
28557#endif
28558/* We use char because int might match the return type of a gcc2
28559 builtin and then its argument prototype would still apply. */
28560char shmat ();
28561int
28562main ()
28563{
28564shmat ();
28565 ;
28566 return 0;
28567}
28568_ACEOF
28569rm -f conftest.$ac_objext conftest$ac_exeext
28570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28571 (eval $ac_link) 2>conftest.er1
a848cd7e 28572 ac_status=$?
ac1cb8d3
VS
28573 grep -v '^ *+' conftest.er1 >conftest.err
28574 rm -f conftest.er1
28575 cat conftest.err >&5
a848cd7e
SC
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); } &&
5ff751d6 28578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28580 (eval $ac_try) 2>&5
28581 ac_status=$?
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); }; } &&
28584 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28586 (eval $ac_try) 2>&5
28587 ac_status=$?
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); }; }; then
28590 ac_cv_lib_ipc_shmat=yes
28591else
28592 echo "$as_me: failed program was:" >&5
28593sed 's/^/| /' conftest.$ac_ext >&5
28594
28595ac_cv_lib_ipc_shmat=no
28596fi
ac1cb8d3
VS
28597rm -f conftest.err conftest.$ac_objext \
28598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28599LIBS=$ac_check_lib_save_LIBS
28600fi
28601echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28602echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28603if test $ac_cv_lib_ipc_shmat = yes; then
28604 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28605fi
28606
28607 fi
28608 fi
28609
28610 # Check for libraries that X11R6 Xt/Xaw programs need.
28611 ac_save_LDFLAGS=$LDFLAGS
28612 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28613 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28614 # check for ICE first), but we must link in the order -lSM -lICE or
28615 # we get undefined symbols. So assume we have SM if we have ICE.
28616 # These have to be linked with before -lX11, unlike the other
28617 # libraries we check for below, so use a different variable.
28618 # John Interrante, Karl Berry
28619 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28620echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28621if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28622 echo $ECHO_N "(cached) $ECHO_C" >&6
28623else
28624 ac_check_lib_save_LIBS=$LIBS
28625LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28626cat >conftest.$ac_ext <<_ACEOF
28627/* confdefs.h. */
28628_ACEOF
28629cat confdefs.h >>conftest.$ac_ext
28630cat >>conftest.$ac_ext <<_ACEOF
28631/* end confdefs.h. */
28632
28633/* Override any gcc2 internal prototype to avoid an error. */
28634#ifdef __cplusplus
28635extern "C"
28636#endif
28637/* We use char because int might match the return type of a gcc2
28638 builtin and then its argument prototype would still apply. */
28639char IceConnectionNumber ();
28640int
28641main ()
28642{
28643IceConnectionNumber ();
28644 ;
28645 return 0;
28646}
28647_ACEOF
28648rm -f conftest.$ac_objext conftest$ac_exeext
28649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28650 (eval $ac_link) 2>conftest.er1
a848cd7e 28651 ac_status=$?
ac1cb8d3
VS
28652 grep -v '^ *+' conftest.er1 >conftest.err
28653 rm -f conftest.er1
28654 cat conftest.err >&5
a848cd7e
SC
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); } &&
5ff751d6 28657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28659 (eval $ac_try) 2>&5
28660 ac_status=$?
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); }; } &&
28663 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28665 (eval $ac_try) 2>&5
28666 ac_status=$?
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); }; }; then
28669 ac_cv_lib_ICE_IceConnectionNumber=yes
28670else
28671 echo "$as_me: failed program was:" >&5
28672sed 's/^/| /' conftest.$ac_ext >&5
28673
28674ac_cv_lib_ICE_IceConnectionNumber=no
28675fi
ac1cb8d3
VS
28676rm -f conftest.err conftest.$ac_objext \
28677 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28678LIBS=$ac_check_lib_save_LIBS
28679fi
28680echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28681echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28682if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28683 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28684fi
28685
28686 LDFLAGS=$ac_save_LDFLAGS
28687
28688fi
28689
28690
28691 if test "$no_x" = "yes"; then
89d90d6d
VZ
28692 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
28693echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
28694 { (exit 1); exit 1; }; }
a848cd7e
SC
28695 fi
28696
74b84332
VS
28697 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28698 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
28699 AFMINSTALL=afminstall
28700 COMPILED_X_PROGRAM=0
28701
74b84332
VS
28702 fi
28703
28704 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
28705 if test "$wxUSE_NANOX" = "yes"; then
28706 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28707echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28708 if test "x$MICROWIN" = x ; then
28709 echo "$as_me:$LINENO: result: not found" >&5
28710echo "${ECHO_T}not found" >&6
28711 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28712echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28713 { (exit 1); exit 1; }; }
28714 else
28715 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28716echo "${ECHO_T}$MICROWIN" >&6
28717 cat >>confdefs.h <<\_ACEOF
28718#define wxUSE_NANOX 1
28719_ACEOF
28720
28721 fi
28722 fi
28723
28724 if test "$wxUSE_UNICODE" = "yes"; then
28725
28726 succeeded=no
28727
28728 if test -z "$PKG_CONFIG"; then
28729 # Extract the first word of "pkg-config", so it can be a program name with args.
28730set dummy pkg-config; ac_word=$2
28731echo "$as_me:$LINENO: checking for $ac_word" >&5
28732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28733if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28734 echo $ECHO_N "(cached) $ECHO_C" >&6
28735else
28736 case $PKG_CONFIG in
28737 [\\/]* | ?:[\\/]*)
28738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28739 ;;
28740 *)
28741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28742for as_dir in $PATH
28743do
28744 IFS=$as_save_IFS
28745 test -z "$as_dir" && as_dir=.
28746 for ac_exec_ext in '' $ac_executable_extensions; do
28747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28750 break 2
28751 fi
28752done
28753done
28754
28755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28756 ;;
28757esac
28758fi
28759PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28760
28761if test -n "$PKG_CONFIG"; then
28762 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28763echo "${ECHO_T}$PKG_CONFIG" >&6
28764else
28765 echo "$as_me:$LINENO: result: no" >&5
28766echo "${ECHO_T}no" >&6
28767fi
28768
28769 fi
28770
28771 if test "$PKG_CONFIG" = "no" ; then
28772 echo "*** The pkg-config script could not be found. Make sure it is"
28773 echo "*** in your path, or set the PKG_CONFIG environment variable"
28774 echo "*** to the full path to pkg-config."
28775 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28776 else
28777 PKG_CONFIG_MIN_VERSION=0.9.0
28778 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28779 echo "$as_me:$LINENO: checking for pangox" >&5
28780echo $ECHO_N "checking for pangox... $ECHO_C" >&6
28781
28782 if $PKG_CONFIG --exists "pangox" ; then
28783 echo "$as_me:$LINENO: result: yes" >&5
28784echo "${ECHO_T}yes" >&6
28785 succeeded=yes
28786
28787 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
28788echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
28789 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
28790 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
28791echo "${ECHO_T}$PANGOX_CFLAGS" >&6
28792
28793 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28794echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28795 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28796 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28797echo "${ECHO_T}$PANGOX_LIBS" >&6
28798 else
28799 PANGOX_CFLAGS=""
28800 PANGOX_LIBS=""
28801 ## If we have a custom action on failure, don't print errors, but
28802 ## do set a variable so people can do so.
28803 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28804
28805 fi
28806
28807
28808
28809 else
28810 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28811 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28812 fi
28813 fi
28814
28815 if test $succeeded = yes; then
28816
28817 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
28818 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28819
28820 else
28821
28822 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28823echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28824 { (exit 1); exit 1; }; }
28825
28826
28827 fi
28828
28829
28830 succeeded=no
28831
28832 if test -z "$PKG_CONFIG"; then
28833 # Extract the first word of "pkg-config", so it can be a program name with args.
28834set dummy pkg-config; ac_word=$2
28835echo "$as_me:$LINENO: checking for $ac_word" >&5
28836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28837if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28838 echo $ECHO_N "(cached) $ECHO_C" >&6
28839else
28840 case $PKG_CONFIG in
28841 [\\/]* | ?:[\\/]*)
28842 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28843 ;;
28844 *)
28845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28846for as_dir in $PATH
28847do
28848 IFS=$as_save_IFS
28849 test -z "$as_dir" && as_dir=.
28850 for ac_exec_ext in '' $ac_executable_extensions; do
28851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28852 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28854 break 2
28855 fi
28856done
28857done
28858
28859 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28860 ;;
28861esac
28862fi
28863PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28864
28865if test -n "$PKG_CONFIG"; then
28866 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28867echo "${ECHO_T}$PKG_CONFIG" >&6
28868else
28869 echo "$as_me:$LINENO: result: no" >&5
28870echo "${ECHO_T}no" >&6
28871fi
28872
28873 fi
28874
28875 if test "$PKG_CONFIG" = "no" ; then
28876 echo "*** The pkg-config script could not be found. Make sure it is"
28877 echo "*** in your path, or set the PKG_CONFIG environment variable"
28878 echo "*** to the full path to pkg-config."
28879 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28880 else
28881 PKG_CONFIG_MIN_VERSION=0.9.0
28882 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28883 echo "$as_me:$LINENO: checking for pangoft2" >&5
28884echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28885
28886 if $PKG_CONFIG --exists "pangoft2" ; then
28887 echo "$as_me:$LINENO: result: yes" >&5
28888echo "${ECHO_T}yes" >&6
28889 succeeded=yes
28890
28891 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28892echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28893 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28894 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28895echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28896
28897 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28898echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28899 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28900 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28901echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28902 else
28903 PANGOFT2_CFLAGS=""
28904 PANGOFT2_LIBS=""
28905 ## If we have a custom action on failure, don't print errors, but
28906 ## do set a variable so people can do so.
28907 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28908
28909 fi
28910
28911
28912
28913 else
28914 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28915 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28916 fi
28917 fi
28918
28919 if test $succeeded = yes; then
28920
28921 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28922 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
28923
28924 else
28925
28926 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
28927echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
28928 wxUSE_PRINTING_ARCHITECTURE="no"
28929
28930
28931 fi
28932
28933
28934 succeeded=no
28935
28936 if test -z "$PKG_CONFIG"; then
28937 # Extract the first word of "pkg-config", so it can be a program name with args.
28938set dummy pkg-config; ac_word=$2
28939echo "$as_me:$LINENO: checking for $ac_word" >&5
28940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28941if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28942 echo $ECHO_N "(cached) $ECHO_C" >&6
28943else
28944 case $PKG_CONFIG in
28945 [\\/]* | ?:[\\/]*)
28946 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28947 ;;
28948 *)
28949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28950for as_dir in $PATH
28951do
28952 IFS=$as_save_IFS
28953 test -z "$as_dir" && as_dir=.
28954 for ac_exec_ext in '' $ac_executable_extensions; do
28955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28956 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28958 break 2
28959 fi
28960done
28961done
28962
28963 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28964 ;;
28965esac
28966fi
28967PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28968
28969if test -n "$PKG_CONFIG"; then
28970 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28971echo "${ECHO_T}$PKG_CONFIG" >&6
28972else
28973 echo "$as_me:$LINENO: result: no" >&5
28974echo "${ECHO_T}no" >&6
28975fi
28976
28977 fi
28978
28979 if test "$PKG_CONFIG" = "no" ; then
28980 echo "*** The pkg-config script could not be found. Make sure it is"
28981 echo "*** in your path, or set the PKG_CONFIG environment variable"
28982 echo "*** to the full path to pkg-config."
28983 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28984 else
28985 PKG_CONFIG_MIN_VERSION=0.9.0
28986 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28987 echo "$as_me:$LINENO: checking for pangoxft" >&5
28988echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
28989
28990 if $PKG_CONFIG --exists "pangoxft" ; then
28991 echo "$as_me:$LINENO: result: yes" >&5
28992echo "${ECHO_T}yes" >&6
28993 succeeded=yes
28994
28995 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
28996echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
28997 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
28998 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
28999echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29000
29001 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29002echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29003 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29004 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29005echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29006 else
29007 PANGOXFT_CFLAGS=""
29008 PANGOXFT_LIBS=""
29009 ## If we have a custom action on failure, don't print errors, but
29010 ## do set a variable so people can do so.
29011 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29012
29013 fi
29014
29015
29016
29017 else
29018 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29019 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29020 fi
29021 fi
29022
29023 if test $succeeded = yes; then
29024
4ae1af05
MB
29025 cat >>confdefs.h <<\_ACEOF
29026#define HAVE_PANGO_XFT 1
29027_ACEOF
29028
a848cd7e
SC
29029 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
29030 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29031
29032 else
29033
29034 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29035echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29036
29037
29038 fi
29039
304205f1
VS
29040 save_CFLAGS="$CFLAGS"
29041 save_LIBS="$LIBS"
29042 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
29043 LIBS="$LIBS $PANGOX_LIBS"
29044
29045for ac_func in pango_font_family_is_monospace
29046do
29047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29048echo "$as_me:$LINENO: checking for $ac_func" >&5
29049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29050if eval "test \"\${$as_ac_var+set}\" = set"; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29052else
29053 cat >conftest.$ac_ext <<_ACEOF
29054/* confdefs.h. */
29055_ACEOF
29056cat confdefs.h >>conftest.$ac_ext
29057cat >>conftest.$ac_ext <<_ACEOF
29058/* end confdefs.h. */
29059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29061#define $ac_func innocuous_$ac_func
29062
29063/* System header to define __stub macros and hopefully few prototypes,
29064 which can conflict with char $ac_func (); below.
29065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29066 <limits.h> exists even on freestanding compilers. */
29067
29068#ifdef __STDC__
29069# include <limits.h>
29070#else
29071# include <assert.h>
29072#endif
29073
29074#undef $ac_func
29075
29076/* Override any gcc2 internal prototype to avoid an error. */
29077#ifdef __cplusplus
29078extern "C"
29079{
29080#endif
29081/* We use char because int might match the return type of a gcc2
29082 builtin and then its argument prototype would still apply. */
29083char $ac_func ();
29084/* The GNU C library defines this for functions which it implements
29085 to always fail with ENOSYS. Some functions are actually named
29086 something starting with __ and the normal name is an alias. */
29087#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29088choke me
29089#else
29090char (*f) () = $ac_func;
29091#endif
29092#ifdef __cplusplus
29093}
29094#endif
29095
29096int
29097main ()
29098{
29099return f != $ac_func;
29100 ;
29101 return 0;
29102}
29103_ACEOF
29104rm -f conftest.$ac_objext conftest$ac_exeext
29105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29106 (eval $ac_link) 2>conftest.er1
29107 ac_status=$?
29108 grep -v '^ *+' conftest.er1 >conftest.err
29109 rm -f conftest.er1
29110 cat conftest.err >&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); } &&
5ff751d6 29113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
29114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29115 (eval $ac_try) 2>&5
29116 ac_status=$?
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); }; } &&
29119 { ac_try='test -s conftest$ac_exeext'
29120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29121 (eval $ac_try) 2>&5
29122 ac_status=$?
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); }; }; then
29125 eval "$as_ac_var=yes"
29126else
29127 echo "$as_me: failed program was:" >&5
29128sed 's/^/| /' conftest.$ac_ext >&5
29129
29130eval "$as_ac_var=no"
29131fi
29132rm -f conftest.err conftest.$ac_objext \
29133 conftest$ac_exeext conftest.$ac_ext
29134fi
29135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29136echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29137if test `eval echo '${'$as_ac_var'}'` = yes; then
29138 cat >>confdefs.h <<_ACEOF
29139#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29140_ACEOF
29141
29142fi
29143done
29144
29145 CFLAGS="$save_CFLAGS"
29146 LIBS="$save_LIBS"
a848cd7e
SC
29147 fi
29148
29149 wxUSE_UNIVERSAL="yes"
29150
29151 if test "$wxUSE_NANOX" = "yes"; then
29152 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29153 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"
29154 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29155 else
29156 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29157 fi
29158
a848cd7e
SC
29159 TOOLKIT=X11
29160 GUIDIST=X11_DIST
29161 fi
29162
29163 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29164 if test "$wxUSE_UNICODE" = "yes"; then
29165 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29166echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29167 { (exit 1); exit 1; }; }
29168 fi
29169
74b84332
VS
29170 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29171echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29172
74b84332
VS
29173ac_find_includes=
29174for ac_dir in $SEARCH_INCLUDE /usr/include;
29175 do
29176 if test -f "$ac_dir/Xm/Xm.h"; then
29177 ac_find_includes=$ac_dir
29178 break
29179 fi
29180 done
a848cd7e 29181
74b84332
VS
29182 if test "$ac_find_includes" != "" ; then
29183 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29184echo "${ECHO_T}found in $ac_find_includes" >&6
29185
29186 if test "x$ac_find_includes" = "x/usr/include"; then
29187 ac_path_to_include=""
29188 else
29189 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29190 result=$?
29191 if test $result = 0; then
29192 ac_path_to_include=""
29193 else
29194 ac_path_to_include=" -I$ac_find_includes"
29195 fi
a848cd7e
SC
29196 fi
29197
74b84332
VS
29198 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29199 else
e051b34e
MW
29200 save_CFLAGS=$CFLAGS
29201 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29202
74b84332 29203 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29204/* confdefs.h. */
29205_ACEOF
29206cat confdefs.h >>conftest.$ac_ext
29207cat >>conftest.$ac_ext <<_ACEOF
29208/* end confdefs.h. */
29209
74b84332
VS
29210 #include <Xm/Xm.h>
29211
a848cd7e
SC
29212int
29213main ()
29214{
29215
74b84332
VS
29216 int version;
29217 version = xmUseVersion;
29218
a848cd7e
SC
29219 ;
29220 return 0;
29221}
29222_ACEOF
74b84332
VS
29223rm -f conftest.$ac_objext
29224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29225 (eval $ac_compile) 2>conftest.er1
a848cd7e 29226 ac_status=$?
ac1cb8d3
VS
29227 grep -v '^ *+' conftest.er1 >conftest.err
29228 rm -f conftest.er1
29229 cat conftest.err >&5
a848cd7e
SC
29230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231 (exit $ac_status); } &&
5ff751d6 29232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29234 (eval $ac_try) 2>&5
29235 ac_status=$?
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); }; } &&
74b84332 29238 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29240 (eval $ac_try) 2>&5
29241 ac_status=$?
29242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243 (exit $ac_status); }; }; then
74b84332
VS
29244
29245 echo "$as_me:$LINENO: result: found in default search path" >&5
29246echo "${ECHO_T}found in default search path" >&6
29247 COMPILED_X_PROGRAM=1
29248
a848cd7e
SC
29249else
29250 echo "$as_me: failed program was:" >&5
29251sed 's/^/| /' conftest.$ac_ext >&5
29252
a848cd7e 29253
74b84332
VS
29254 echo "$as_me:$LINENO: result: no" >&5
29255echo "${ECHO_T}no" >&6
e051b34e
MW
29256 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29257echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29258 { (exit 1); exit 1; }; }
a848cd7e 29259
a848cd7e 29260
a848cd7e 29261fi
74b84332 29262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29263
29264 CFLAGS=$save_CFLAGS
74b84332
VS
29265 fi
29266
0ad5d837
VZ
29267
29268 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29269echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29270
0ad5d837
VZ
29271 ac_find_libraries=
29272 for ac_dir in $SEARCH_LIB;
74b84332 29273 do
3eca31dc 29274 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29275 if test -f "$ac_dir/libXm.$ac_extension"; then
29276 ac_find_libraries=$ac_dir
29277 break 2
a848cd7e 29278 fi
74b84332
VS
29279 done
29280 done
a848cd7e 29281
0ad5d837
VZ
29282
29283 if test "x$ac_find_libraries" != "x" ; then
29284 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29285echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29286
74b84332 29287
0ad5d837 29288 if test "$ac_find_libraries" = "default location"; then
74b84332 29289 ac_path_to_link=""
a848cd7e 29290 else
0ad5d837
VZ
29291 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29292 result=$?
29293 if test $result = 0; then
29294 ac_path_to_link=""
29295 else
29296 ac_path_to_link=" -L$ac_find_libraries"
29297 fi
74b84332
VS
29298 fi
29299
0ad5d837
VZ
29300 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29301 else
29302 save_CFLAGS=$CFLAGS
29303 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
6f9cf1e6
MW
29304 save_LIBS="$LIBS"
29305 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29306
0ad5d837 29307 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29308/* confdefs.h. */
29309_ACEOF
29310cat confdefs.h >>conftest.$ac_ext
29311cat >>conftest.$ac_ext <<_ACEOF
29312/* end confdefs.h. */
29313
0ad5d837 29314 #include <Xm/Xm.h>
74b84332 29315
a848cd7e
SC
29316int
29317main ()
29318{
74b84332 29319
0ad5d837
VZ
29320 int version;
29321 version = xmUseVersion;
74b84332 29322
a848cd7e
SC
29323 ;
29324 return 0;
29325}
29326_ACEOF
0ad5d837
VZ
29327rm -f conftest.$ac_objext conftest$ac_exeext
29328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29329 (eval $ac_link) 2>conftest.er1
a848cd7e 29330 ac_status=$?
ac1cb8d3
VS
29331 grep -v '^ *+' conftest.er1 >conftest.err
29332 rm -f conftest.er1
29333 cat conftest.err >&5
a848cd7e
SC
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); } &&
5ff751d6 29336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29338 (eval $ac_try) 2>&5
29339 ac_status=$?
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; } &&
0ad5d837 29342 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344 (eval $ac_try) 2>&5
29345 ac_status=$?
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; }; then
74b84332 29348
0ad5d837 29349 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29350echo "${ECHO_T}found in default search path" >&6
0ad5d837 29351 COMPILED_X_PROGRAM=1
74b84332 29352
a848cd7e
SC
29353else
29354 echo "$as_me: failed program was:" >&5
29355sed 's/^/| /' conftest.$ac_ext >&5
29356
74b84332 29357
6f9cf1e6 29358 echo "$as_me:$LINENO: result: no" >&5
74b84332 29359echo "${ECHO_T}no" >&6
6f9cf1e6 29360 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29361echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29362 { (exit 1); exit 1; }; }
29363
29364
29365fi
0ad5d837
VZ
29366rm -f conftest.err conftest.$ac_objext \
29367 conftest$ac_exeext conftest.$ac_ext
74b84332 29368
0ad5d837 29369 CFLAGS=$save_CFLAGS
6f9cf1e6 29370 LIBS="$save_LIBS"
74b84332
VS
29371 fi
29372
29373 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29374echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29375 libp_link=""
29376 libsm_ice_link=""
29377 libs_found=0
29378 for libp in "" " -lXp"; do
29379 if test "$libs_found" = "0"; then
29380 for libsm_ice in "" " -lSM -lICE"; do
29381 if test "$libs_found" = "0"; then
29382 save_LIBS="$LIBS"
29383 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29384 save_CFLAGS=$CFLAGS
29385 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29386
29387 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29388/* confdefs.h. */
29389_ACEOF
29390cat confdefs.h >>conftest.$ac_ext
29391cat >>conftest.$ac_ext <<_ACEOF
29392/* end confdefs.h. */
29393
74b84332
VS
29394 #include <Xm/Xm.h>
29395 #include <Xm/List.h>
29396
a848cd7e
SC
29397int
29398main ()
29399{
74b84332
VS
29400
29401 XmString string = NULL;
29402 Widget w = NULL;
29403 int position = 0;
29404 XmListAddItem(w, string, position);
29405
a848cd7e
SC
29406 ;
29407 return 0;
29408}
29409_ACEOF
29410rm -f conftest.$ac_objext conftest$ac_exeext
29411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29412 (eval $ac_link) 2>conftest.er1
a848cd7e 29413 ac_status=$?
ac1cb8d3
VS
29414 grep -v '^ *+' conftest.er1 >conftest.err
29415 rm -f conftest.er1
29416 cat conftest.err >&5
a848cd7e
SC
29417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418 (exit $ac_status); } &&
5ff751d6 29419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29421 (eval $ac_try) 2>&5
29422 ac_status=$?
29423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424 (exit $ac_status); }; } &&
29425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29427 (eval $ac_try) 2>&5
29428 ac_status=$?
29429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430 (exit $ac_status); }; }; then
29431
29432 libp_link="$libp"
29433 libsm_ice_link="$libsm_ice"
29434 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29435echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29436 libs_found=1
29437
29438else
29439 echo "$as_me: failed program was:" >&5
29440sed 's/^/| /' conftest.$ac_ext >&5
29441
29442
29443
29444fi
ac1cb8d3
VS
29445rm -f conftest.err conftest.$ac_objext \
29446 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29447
29448 LIBS="$save_LIBS"
29449 CFLAGS=$save_CFLAGS
29450 fi
29451 done
29452 fi
29453 done
29454
29455 if test "$libs_found" = "0"; then
29456 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29457echo "${ECHO_T}can't find the right libraries" >&6
29458 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29459echo "$as_me: error: can't link a simple motif program" >&2;}
29460 { (exit 1); exit 1; }; }
29461 fi
29462
62fa8b3a
MW
29463 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29464echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29465if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29466 echo $ECHO_N "(cached) $ECHO_C" >&6
29467else
29468 ac_check_lib_save_LIBS=$LIBS
29469LIBS="-lSgm $LIBS"
29470cat >conftest.$ac_ext <<_ACEOF
29471/* confdefs.h. */
29472_ACEOF
29473cat confdefs.h >>conftest.$ac_ext
29474cat >>conftest.$ac_ext <<_ACEOF
29475/* end confdefs.h. */
29476
29477/* Override any gcc2 internal prototype to avoid an error. */
29478#ifdef __cplusplus
29479extern "C"
29480#endif
29481/* We use char because int might match the return type of a gcc2
29482 builtin and then its argument prototype would still apply. */
29483char SgCreateList ();
29484int
29485main ()
29486{
29487SgCreateList ();
29488 ;
29489 return 0;
29490}
29491_ACEOF
29492rm -f conftest.$ac_objext conftest$ac_exeext
29493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29494 (eval $ac_link) 2>conftest.er1
29495 ac_status=$?
29496 grep -v '^ *+' conftest.er1 >conftest.err
29497 rm -f conftest.er1
29498 cat conftest.err >&5
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); } &&
5ff751d6 29501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
29502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29503 (eval $ac_try) 2>&5
29504 ac_status=$?
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); }; } &&
29507 { ac_try='test -s conftest$ac_exeext'
29508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509 (eval $ac_try) 2>&5
29510 ac_status=$?
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; }; then
29513 ac_cv_lib_Sgm_SgCreateList=yes
29514else
29515 echo "$as_me: failed program was:" >&5
29516sed 's/^/| /' conftest.$ac_ext >&5
29517
29518ac_cv_lib_Sgm_SgCreateList=no
29519fi
29520rm -f conftest.err conftest.$ac_objext \
29521 conftest$ac_exeext conftest.$ac_ext
29522LIBS=$ac_check_lib_save_LIBS
29523fi
29524echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29525echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29526if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29527 libsgm_link=" -lSgm"
29528fi
29529
29530
a848cd7e
SC
29531 save_CFLAGS=$CFLAGS
29532 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
0ad5d837 29533
a848cd7e
SC
29534 echo "$as_me:$LINENO: checking for Motif 2" >&5
29535echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29536if test "${wx_cv_lib_motif2+set}" = set; then
29537 echo $ECHO_N "(cached) $ECHO_C" >&6
29538else
29539 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29540/* confdefs.h. */
29541_ACEOF
29542cat confdefs.h >>conftest.$ac_ext
29543cat >>conftest.$ac_ext <<_ACEOF
29544/* end confdefs.h. */
29545
0ad5d837 29546 #include <Xm/Xm.h>
a848cd7e
SC
29547
29548int
29549main ()
29550{
29551
0ad5d837
VZ
29552 #if XmVersion < 2000
29553 Not Motif 2
29554 #endif
a848cd7e
SC
29555
29556 ;
29557 return 0;
29558}
29559_ACEOF
29560rm -f conftest.$ac_objext
29561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29562 (eval $ac_compile) 2>conftest.er1
a848cd7e 29563 ac_status=$?
ac1cb8d3
VS
29564 grep -v '^ *+' conftest.er1 >conftest.err
29565 rm -f conftest.er1
29566 cat conftest.err >&5
a848cd7e
SC
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } &&
5ff751d6 29569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29571 (eval $ac_try) 2>&5
29572 ac_status=$?
29573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574 (exit $ac_status); }; } &&
29575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29577 (eval $ac_try) 2>&5
29578 ac_status=$?
29579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580 (exit $ac_status); }; }; then
0ad5d837 29581 wx_cv_lib_motif2="yes"
a848cd7e
SC
29582else
29583 echo "$as_me: failed program was:" >&5
29584sed 's/^/| /' conftest.$ac_ext >&5
29585
0ad5d837
VZ
29586wx_cv_lib_motif2="no"
29587fi
29588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29589fi
29590echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29591echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29592 if test "$wx_cv_lib_motif2" = "yes"; then
29593 cat >>confdefs.h <<\_ACEOF
29594#define __WXMOTIF20__ 1
29595_ACEOF
a848cd7e 29596
0ad5d837
VZ
29597 else
29598 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29599#define __WXMOTIF20__ 0
29600_ACEOF
29601
0ad5d837 29602 fi
2113bc77
MW
29603
29604 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29605echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29606if test "${wx_cv_lib_lesstif+set}" = set; then
29607 echo $ECHO_N "(cached) $ECHO_C" >&6
29608else
29609 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29610/* confdefs.h. */
29611_ACEOF
29612cat confdefs.h >>conftest.$ac_ext
29613cat >>conftest.$ac_ext <<_ACEOF
29614/* end confdefs.h. */
29615
0ad5d837 29616 #include <Xm/Xm.h>
2113bc77
MW
29617
29618int
29619main ()
29620{
29621
0ad5d837
VZ
29622 #if !defined(LesstifVersion) || LesstifVersion <= 0
29623 Not Lesstif
29624 #endif
2113bc77
MW
29625
29626 ;
29627 return 0;
29628}
29629_ACEOF
29630rm -f conftest.$ac_objext
29631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29632 (eval $ac_compile) 2>conftest.er1
29633 ac_status=$?
29634 grep -v '^ *+' conftest.er1 >conftest.err
29635 rm -f conftest.er1
29636 cat conftest.err >&5
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); } &&
5ff751d6 29639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
29640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29641 (eval $ac_try) 2>&5
29642 ac_status=$?
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; } &&
29645 { ac_try='test -s conftest.$ac_objext'
29646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647 (eval $ac_try) 2>&5
29648 ac_status=$?
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); }; }; then
0ad5d837 29651 wx_cv_lib_lesstif="yes"
2113bc77
MW
29652else
29653 echo "$as_me: failed program was:" >&5
29654sed 's/^/| /' conftest.$ac_ext >&5
29655
0ad5d837
VZ
29656wx_cv_lib_lesstif="no"
29657fi
29658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 29659
0ad5d837
VZ
29660fi
29661echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29662echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29663 if test "$wx_cv_lib_lesstif" = "yes"; then
29664 cat >>confdefs.h <<\_ACEOF
29665#define __WXLESSTIF__ 1
29666_ACEOF
29667
29668 else
29669 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
29670#define __WXLESSTIF__ 0
29671_ACEOF
29672
0ad5d837 29673 fi
2113bc77 29674
a848cd7e
SC
29675 CFLAGS=$save_CFLAGS
29676
62fa8b3a 29677 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
29678 TOOLKIT=MOTIF
29679 GUIDIST=MOTIF_DIST
29680 fi
29681
74b84332 29682 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
29683 if test "$wxUSE_LIBXPM" = "sys"; then
29684 echo "$as_me:$LINENO: checking for Xpm library" >&5
29685echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29686
0ad5d837
VZ
29687 ac_find_libraries=
29688 for ac_dir in $SEARCH_LIB;
a848cd7e 29689 do
3eca31dc 29690 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29691 if test -f "$ac_dir/libXpm.$ac_extension"; then
29692 ac_find_libraries=$ac_dir
29693 break 2
29694 fi
29695 done
29696 done
29697
29698 if test "$ac_find_libraries" != "" ; then
29699
0ad5d837 29700 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29701 ac_path_to_link=""
29702 else
0ad5d837
VZ
29703 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29704 result=$?
29705 if test $result = 0; then
29706 ac_path_to_link=""
29707 else
29708 ac_path_to_link=" -L$ac_find_libraries"
29709 fi
a848cd7e
SC
29710 fi
29711
29712 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
29713 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29714echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29715
29716 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29717echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29718if test "${wx_cv_x11_xpm_h+set}" = set; then
29719 echo $ECHO_N "(cached) $ECHO_C" >&6
29720else
29721
29722 save_CFLAGS=$CFLAGS
29723 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29724
29725 cat >conftest.$ac_ext <<_ACEOF
29726/* confdefs.h. */
29727_ACEOF
29728cat confdefs.h >>conftest.$ac_ext
29729cat >>conftest.$ac_ext <<_ACEOF
29730/* end confdefs.h. */
29731
29732 #include <X11/xpm.h>
29733
29734int
29735main ()
29736{
29737
29738 int version;
29739 version = XpmLibraryVersion();
29740
29741 ;
29742 return 0;
29743}
29744_ACEOF
29745rm -f conftest.$ac_objext
29746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29747 (eval $ac_compile) 2>conftest.er1
a848cd7e 29748 ac_status=$?
ac1cb8d3
VS
29749 grep -v '^ *+' conftest.er1 >conftest.err
29750 rm -f conftest.er1
29751 cat conftest.err >&5
a848cd7e
SC
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); } &&
5ff751d6 29754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29756 (eval $ac_try) 2>&5
29757 ac_status=$?
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; } &&
29760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29762 (eval $ac_try) 2>&5
29763 ac_status=$?
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); }; }; then
29766 wx_cv_x11_xpm_h=yes
29767else
29768 echo "$as_me: failed program was:" >&5
29769sed 's/^/| /' conftest.$ac_ext >&5
29770
29771wx_cv_x11_xpm_h=no
29772
29773fi
ac1cb8d3 29774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29775
29776 CFLAGS=$save_CFLAGS
29777
29778
29779fi
29780echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29781echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29782
29783 if test $wx_cv_x11_xpm_h = "yes"; then
29784 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29785 cat >>confdefs.h <<\_ACEOF
29786#define wxHAVE_LIB_XPM 1
29787_ACEOF
29788
29789 else
29790 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29791echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29792 fi
29793 fi
29794
29795 fi
29796
29797 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29798echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29799if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29800 echo $ECHO_N "(cached) $ECHO_C" >&6
29801else
29802 ac_check_lib_save_LIBS=$LIBS
29803LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29804cat >conftest.$ac_ext <<_ACEOF
29805/* confdefs.h. */
29806_ACEOF
29807cat confdefs.h >>conftest.$ac_ext
29808cat >>conftest.$ac_ext <<_ACEOF
29809/* end confdefs.h. */
29810
29811/* Override any gcc2 internal prototype to avoid an error. */
29812#ifdef __cplusplus
29813extern "C"
29814#endif
29815/* We use char because int might match the return type of a gcc2
29816 builtin and then its argument prototype would still apply. */
29817char XShapeQueryExtension ();
29818int
29819main ()
29820{
29821XShapeQueryExtension ();
29822 ;
29823 return 0;
29824}
29825_ACEOF
29826rm -f conftest.$ac_objext conftest$ac_exeext
29827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29828 (eval $ac_link) 2>conftest.er1
a848cd7e 29829 ac_status=$?
ac1cb8d3
VS
29830 grep -v '^ *+' conftest.er1 >conftest.err
29831 rm -f conftest.er1
29832 cat conftest.err >&5
a848cd7e
SC
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); } &&
5ff751d6 29835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837 (eval $ac_try) 2>&5
29838 ac_status=$?
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); }; } &&
29841 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29843 (eval $ac_try) 2>&5
29844 ac_status=$?
29845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846 (exit $ac_status); }; }; then
29847 ac_cv_lib_Xext_XShapeQueryExtension=yes
29848else
29849 echo "$as_me: failed program was:" >&5
29850sed 's/^/| /' conftest.$ac_ext >&5
29851
29852ac_cv_lib_Xext_XShapeQueryExtension=no
29853fi
ac1cb8d3
VS
29854rm -f conftest.err conftest.$ac_objext \
29855 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29856LIBS=$ac_check_lib_save_LIBS
29857fi
29858echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29859echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29860if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29861
29862 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29863 wxHAVE_XEXT_LIB=1
29864
29865fi
29866
29867
29868 if test "$wxHAVE_XEXT_LIB" = 1; then
29869 save_CFLAGS="$CFLAGS"
29870 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29871
29872 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29873echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29874 cat >conftest.$ac_ext <<_ACEOF
29875/* confdefs.h. */
29876_ACEOF
29877cat confdefs.h >>conftest.$ac_ext
29878cat >>conftest.$ac_ext <<_ACEOF
29879/* end confdefs.h. */
29880
29881 #include <X11/Xlib.h>
29882 #include <X11/extensions/shape.h>
29883
29884int
29885main ()
29886{
29887
29888 int dummy1, dummy2;
29889 XShapeQueryExtension((Display*)NULL,
29890 (int*)NULL, (int*)NULL);
29891
29892 ;
29893 return 0;
29894}
29895_ACEOF
29896rm -f conftest.$ac_objext
29897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29898 (eval $ac_compile) 2>conftest.er1
a848cd7e 29899 ac_status=$?
ac1cb8d3
VS
29900 grep -v '^ *+' conftest.er1 >conftest.err
29901 rm -f conftest.er1
29902 cat conftest.err >&5
a848cd7e
SC
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); } &&
5ff751d6 29905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29907 (eval $ac_try) 2>&5
29908 ac_status=$?
29909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910 (exit $ac_status); }; } &&
29911 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29913 (eval $ac_try) 2>&5
29914 ac_status=$?
29915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916 (exit $ac_status); }; }; then
29917
29918 cat >>confdefs.h <<\_ACEOF
29919#define HAVE_XSHAPE 1
29920_ACEOF
29921
29922 echo "$as_me:$LINENO: result: found" >&5
29923echo "${ECHO_T}found" >&6
29924
29925else
29926 echo "$as_me: failed program was:" >&5
29927sed 's/^/| /' conftest.$ac_ext >&5
29928
29929
29930 echo "$as_me:$LINENO: result: not found" >&5
29931echo "${ECHO_T}not found" >&6
29932
29933fi
ac1cb8d3 29934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29935 CFLAGS="$save_CFLAGS"
29936
29937 fi
29938 fi
29939
29940 if test "$wxUSE_MAC" = 1; then
29941 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
29942echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
29943 if test "$GCC" = yes; then
29944 echo "$as_me:$LINENO: result: gcc" >&5
29945echo "${ECHO_T}gcc" >&6
29946 CPPFLAGS_PASCAL="-fpascal-strings"
29947 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
29948 echo "$as_me:$LINENO: result: xlc" >&5
29949echo "${ECHO_T}xlc" >&6
29950 CPPFLAGS_PASCAL="-qmacpstr"
29951 else
29952 echo "$as_me:$LINENO: result: none" >&5
29953echo "${ECHO_T}none" >&6
29954 fi
29955
1e9e8aba
DE
29956 if test "x$wxUSE_UNIX" = "xyes"; then
29957 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
29958 else
29959 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
29960 fi
a848cd7e 29961
a848cd7e
SC
29962 TOOLKIT=MAC
29963 GUIDIST=MACX_DIST
dd21ced8 29964 WXBASEPORT="_carbon"
a848cd7e
SC
29965 fi
29966
29967 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
29968 TOOLKIT=COCOA
29969 GUIDIST=COCOA_DIST
29970 fi
29971
29972 if test "$wxUSE_PM" = 1; then
29973 TOOLKIT=PM
de59c161
RD
29974 GUIDIST=PM_DIST
29975 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
29976echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
29977if test "${wx_cv_spbcdata+set}" = set; then
29978 echo $ECHO_N "(cached) $ECHO_C" >&6
29979else
29980
29981 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
29982/* confdefs.h. */
29983_ACEOF
29984cat confdefs.h >>conftest.$ac_ext
29985cat >>conftest.$ac_ext <<_ACEOF
29986/* end confdefs.h. */
29987
29988 #define INCL_PM
29989 #include <os2.h>
29990
29991int
29992main ()
29993{
29994
29995 SPBCDATA test;
29996
29997 ;
29998 return 0;
29999}
30000_ACEOF
30001rm -f conftest.$ac_objext
30002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30003 (eval $ac_compile) 2>conftest.er1
de59c161 30004 ac_status=$?
ac1cb8d3
VS
30005 grep -v '^ *+' conftest.er1 >conftest.err
30006 rm -f conftest.er1
30007 cat conftest.err >&5
de59c161
RD
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } &&
5ff751d6 30010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012 (eval $ac_try) 2>&5
30013 ac_status=$?
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); }; } &&
30016 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018 (eval $ac_try) 2>&5
30019 ac_status=$?
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); }; }; then
30022 wx_cv_spbcdata=yes
30023else
30024 echo "$as_me: failed program was:" >&5
30025sed 's/^/| /' conftest.$ac_ext >&5
30026
30027wx_cv_spbcdata=no
30028
30029fi
ac1cb8d3 30030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30031
30032
30033fi
30034echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30035echo "${ECHO_T}$wx_cv_spbcdata" >&6
30036
30037 if test $wx_cv_spbcdata = "yes"; then
30038 cat >>confdefs.h <<\_ACEOF
30039#define HAVE_SPBCDATA 1
30040_ACEOF
30041
30042 fi
a848cd7e
SC
30043 fi
30044
30045 if test "$TOOLKIT" = "PM" ; then
30046 TOOLKIT_DIR="os2"
30047 else
30048 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30049 fi
30050
a848cd7e 30051 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30052 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30053 WIDGET_SET=univ
a848cd7e
SC
30054 fi
30055
30056 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30057 DISTDIR="wx\$(TOOLKIT)"
30058else
30059 USE_GUI=0
30060
30061 TOOLKIT_DIR="base"
30062
30063 if test "$USE_WIN32" = 1 ; then
a848cd7e 30064 TOOLKIT="MSW"
a848cd7e
SC
30065 fi
30066
a848cd7e
SC
30067 GUIDIST="BASE_DIST"
30068 DISTDIR="wxBase"
30069fi
30070
30071
d12aef51
VZ
30072if test "$wxUSE_GUI" = "yes"; then
30073 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30074
30075for ac_header in X11/Xlib.h
30076do
30077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30078if eval "test \"\${$as_ac_Header+set}\" = set"; then
30079 echo "$as_me:$LINENO: checking for $ac_header" >&5
30080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30081if eval "test \"\${$as_ac_Header+set}\" = set"; then
30082 echo $ECHO_N "(cached) $ECHO_C" >&6
30083fi
30084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30086else
30087 # Is the header compilable?
30088echo "$as_me:$LINENO: checking $ac_header usability" >&5
30089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30090cat >conftest.$ac_ext <<_ACEOF
30091/* confdefs.h. */
30092_ACEOF
30093cat confdefs.h >>conftest.$ac_ext
30094cat >>conftest.$ac_ext <<_ACEOF
30095/* end confdefs.h. */
30096$ac_includes_default
30097#include <$ac_header>
30098_ACEOF
30099rm -f conftest.$ac_objext
30100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30101 (eval $ac_compile) 2>conftest.er1
30102 ac_status=$?
30103 grep -v '^ *+' conftest.er1 >conftest.err
30104 rm -f conftest.er1
30105 cat conftest.err >&5
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107 (exit $ac_status); } &&
5ff751d6 30108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30110 (eval $ac_try) 2>&5
30111 ac_status=$?
30112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113 (exit $ac_status); }; } &&
30114 { ac_try='test -s conftest.$ac_objext'
30115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30116 (eval $ac_try) 2>&5
30117 ac_status=$?
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; }; then
30120 ac_header_compiler=yes
30121else
30122 echo "$as_me: failed program was:" >&5
30123sed 's/^/| /' conftest.$ac_ext >&5
30124
30125ac_header_compiler=no
30126fi
30127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30128echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30129echo "${ECHO_T}$ac_header_compiler" >&6
30130
30131# Is the header present?
30132echo "$as_me:$LINENO: checking $ac_header presence" >&5
30133echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30134cat >conftest.$ac_ext <<_ACEOF
30135/* confdefs.h. */
30136_ACEOF
30137cat confdefs.h >>conftest.$ac_ext
30138cat >>conftest.$ac_ext <<_ACEOF
30139/* end confdefs.h. */
30140#include <$ac_header>
30141_ACEOF
30142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30144 ac_status=$?
30145 grep -v '^ *+' conftest.er1 >conftest.err
30146 rm -f conftest.er1
30147 cat conftest.err >&5
30148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30149 (exit $ac_status); } >/dev/null; then
30150 if test -s conftest.err; then
30151 ac_cpp_err=$ac_c_preproc_warn_flag
30152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30153 else
30154 ac_cpp_err=
30155 fi
30156else
30157 ac_cpp_err=yes
30158fi
30159if test -z "$ac_cpp_err"; then
30160 ac_header_preproc=yes
30161else
30162 echo "$as_me: failed program was:" >&5
30163sed 's/^/| /' conftest.$ac_ext >&5
30164
30165 ac_header_preproc=no
30166fi
30167rm -f conftest.err conftest.$ac_ext
30168echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30169echo "${ECHO_T}$ac_header_preproc" >&6
30170
30171# So? What about this header?
30172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30173 yes:no: )
30174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30175echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30177echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30178 ac_header_preproc=yes
30179 ;;
30180 no:yes:* )
30181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30182echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30184echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30186echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30188echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30190echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30192echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30193 (
30194 cat <<\_ASBOX
30195## ----------------------------------------- ##
30196## Report this to wx-dev@lists.wxwidgets.org ##
30197## ----------------------------------------- ##
30198_ASBOX
30199 ) |
30200 sed "s/^/$as_me: WARNING: /" >&2
30201 ;;
30202esac
30203echo "$as_me:$LINENO: checking for $ac_header" >&5
30204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30205if eval "test \"\${$as_ac_Header+set}\" = set"; then
30206 echo $ECHO_N "(cached) $ECHO_C" >&6
30207else
30208 eval "$as_ac_Header=\$ac_header_preproc"
30209fi
30210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30212
30213fi
30214if test `eval echo '${'$as_ac_Header'}'` = yes; then
30215 cat >>confdefs.h <<_ACEOF
30216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30217_ACEOF
30218
30219fi
30220
30221done
30222
30223
30224for ac_header in X11/XKBlib.h
30225do
30226as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30227echo "$as_me:$LINENO: checking for $ac_header" >&5
30228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30229if eval "test \"\${$as_ac_Header+set}\" = set"; then
30230 echo $ECHO_N "(cached) $ECHO_C" >&6
30231else
30232 cat >conftest.$ac_ext <<_ACEOF
30233/* confdefs.h. */
30234_ACEOF
30235cat confdefs.h >>conftest.$ac_ext
30236cat >>conftest.$ac_ext <<_ACEOF
30237/* end confdefs.h. */
30238
30239 #if HAVE_X11_XLIB_H
30240 #include <X11/Xlib.h>
30241 #endif
30242
30243
30244#include <$ac_header>
30245_ACEOF
30246rm -f conftest.$ac_objext
30247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30248 (eval $ac_compile) 2>conftest.er1
30249 ac_status=$?
30250 grep -v '^ *+' conftest.er1 >conftest.err
30251 rm -f conftest.er1
30252 cat conftest.err >&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); } &&
5ff751d6 30255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30257 (eval $ac_try) 2>&5
30258 ac_status=$?
30259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); }; } &&
30261 { ac_try='test -s conftest.$ac_objext'
30262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30263 (eval $ac_try) 2>&5
30264 ac_status=$?
30265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30266 (exit $ac_status); }; }; then
30267 eval "$as_ac_Header=yes"
30268else
30269 echo "$as_me: failed program was:" >&5
30270sed 's/^/| /' conftest.$ac_ext >&5
30271
30272eval "$as_ac_Header=no"
30273fi
30274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30275fi
30276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30278if test `eval echo '${'$as_ac_Header'}'` = yes; then
30279 cat >>confdefs.h <<_ACEOF
30280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30281_ACEOF
30282
30283fi
30284
30285done
30286
30287 fi
30288fi
30289
a848cd7e
SC
30290
30291
30292IODBC_C_SRC=""
30293
30294
30295if test "$TOOLKIT" != "MSW" ; then
30296
30297 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30298
30299 if test "${ac_cv_header_sql_h+set}" = set; then
30300 echo "$as_me:$LINENO: checking for sql.h" >&5
30301echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30302if test "${ac_cv_header_sql_h+set}" = set; then
30303 echo $ECHO_N "(cached) $ECHO_C" >&6
30304fi
30305echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30306echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30307else
30308 # Is the header compilable?
30309echo "$as_me:$LINENO: checking sql.h usability" >&5
30310echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30311cat >conftest.$ac_ext <<_ACEOF
30312/* confdefs.h. */
30313_ACEOF
30314cat confdefs.h >>conftest.$ac_ext
30315cat >>conftest.$ac_ext <<_ACEOF
30316/* end confdefs.h. */
30317$ac_includes_default
30318#include <sql.h>
30319_ACEOF
30320rm -f conftest.$ac_objext
30321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30322 (eval $ac_compile) 2>conftest.er1
a848cd7e 30323 ac_status=$?
ac1cb8d3
VS
30324 grep -v '^ *+' conftest.er1 >conftest.err
30325 rm -f conftest.er1
30326 cat conftest.err >&5
a848cd7e
SC
30327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328 (exit $ac_status); } &&
5ff751d6 30329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30331 (eval $ac_try) 2>&5
30332 ac_status=$?
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); }; } &&
30335 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30337 (eval $ac_try) 2>&5
30338 ac_status=$?
30339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340 (exit $ac_status); }; }; then
30341 ac_header_compiler=yes
30342else
30343 echo "$as_me: failed program was:" >&5
30344sed 's/^/| /' conftest.$ac_ext >&5
30345
30346ac_header_compiler=no
30347fi
ac1cb8d3 30348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30349echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30350echo "${ECHO_T}$ac_header_compiler" >&6
30351
30352# Is the header present?
30353echo "$as_me:$LINENO: checking sql.h presence" >&5
30354echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30355cat >conftest.$ac_ext <<_ACEOF
30356/* confdefs.h. */
30357_ACEOF
30358cat confdefs.h >>conftest.$ac_ext
30359cat >>conftest.$ac_ext <<_ACEOF
30360/* end confdefs.h. */
30361#include <sql.h>
30362_ACEOF
30363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30365 ac_status=$?
30366 grep -v '^ *+' conftest.er1 >conftest.err
30367 rm -f conftest.er1
30368 cat conftest.err >&5
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); } >/dev/null; then
30371 if test -s conftest.err; then
30372 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30374 else
30375 ac_cpp_err=
30376 fi
30377else
30378 ac_cpp_err=yes
30379fi
30380if test -z "$ac_cpp_err"; then
30381 ac_header_preproc=yes
30382else
30383 echo "$as_me: failed program was:" >&5
30384sed 's/^/| /' conftest.$ac_ext >&5
30385
30386 ac_header_preproc=no
30387fi
30388rm -f conftest.err conftest.$ac_ext
30389echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30390echo "${ECHO_T}$ac_header_preproc" >&6
30391
30392# So? What about this header?
ac1cb8d3
VS
30393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30394 yes:no: )
a848cd7e
SC
30395 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30396echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30397 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30398echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30399 ac_header_preproc=yes
a848cd7e 30400 ;;
ac1cb8d3 30401 no:yes:* )
a848cd7e
SC
30402 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30403echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30404 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30405echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30406 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30407echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30408 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30409echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30410 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30411echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30412 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30413echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30414 (
30415 cat <<\_ASBOX
ac1cb8d3
VS
30416## ----------------------------------------- ##
30417## Report this to wx-dev@lists.wxwidgets.org ##
30418## ----------------------------------------- ##
a848cd7e
SC
30419_ASBOX
30420 ) |
30421 sed "s/^/$as_me: WARNING: /" >&2
30422 ;;
30423esac
30424echo "$as_me:$LINENO: checking for sql.h" >&5
30425echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30426if test "${ac_cv_header_sql_h+set}" = set; then
30427 echo $ECHO_N "(cached) $ECHO_C" >&6
30428else
30429 ac_cv_header_sql_h=$ac_header_preproc
30430fi
30431echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30432echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30433
30434fi
30435if test $ac_cv_header_sql_h = yes; then
30436 found_sql_h=1
30437fi
30438
30439
30440 if test "x$found_sql_h" = "x1" ; then
30441 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30442echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30443if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30444 echo $ECHO_N "(cached) $ECHO_C" >&6
30445else
30446 ac_check_lib_save_LIBS=$LIBS
30447LIBS="-liodbc $LIBS"
30448cat >conftest.$ac_ext <<_ACEOF
30449/* confdefs.h. */
30450_ACEOF
30451cat confdefs.h >>conftest.$ac_ext
30452cat >>conftest.$ac_ext <<_ACEOF
30453/* end confdefs.h. */
30454
30455/* Override any gcc2 internal prototype to avoid an error. */
30456#ifdef __cplusplus
30457extern "C"
30458#endif
30459/* We use char because int might match the return type of a gcc2
30460 builtin and then its argument prototype would still apply. */
30461char SQLAllocEnv ();
30462int
30463main ()
30464{
30465SQLAllocEnv ();
30466 ;
30467 return 0;
30468}
30469_ACEOF
30470rm -f conftest.$ac_objext conftest$ac_exeext
30471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30472 (eval $ac_link) 2>conftest.er1
a848cd7e 30473 ac_status=$?
ac1cb8d3
VS
30474 grep -v '^ *+' conftest.er1 >conftest.err
30475 rm -f conftest.er1
30476 cat conftest.err >&5
a848cd7e
SC
30477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478 (exit $ac_status); } &&
5ff751d6 30479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30481 (eval $ac_try) 2>&5
30482 ac_status=$?
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); }; } &&
30485 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30487 (eval $ac_try) 2>&5
30488 ac_status=$?
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); }; }; then
30491 ac_cv_lib_iodbc_SQLAllocEnv=yes
30492else
30493 echo "$as_me: failed program was:" >&5
30494sed 's/^/| /' conftest.$ac_ext >&5
30495
30496ac_cv_lib_iodbc_SQLAllocEnv=no
30497fi
ac1cb8d3
VS
30498rm -f conftest.err conftest.$ac_objext \
30499 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30500LIBS=$ac_check_lib_save_LIBS
30501fi
30502echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30503echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30504if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30505 ODBC_LINK=" -liodbc"
30506else
30507
30508 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30509echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30510if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30511 echo $ECHO_N "(cached) $ECHO_C" >&6
30512else
30513 ac_check_lib_save_LIBS=$LIBS
30514LIBS="-lunixodbc $LIBS"
30515cat >conftest.$ac_ext <<_ACEOF
30516/* confdefs.h. */
30517_ACEOF
30518cat confdefs.h >>conftest.$ac_ext
30519cat >>conftest.$ac_ext <<_ACEOF
30520/* end confdefs.h. */
30521
30522/* Override any gcc2 internal prototype to avoid an error. */
30523#ifdef __cplusplus
30524extern "C"
30525#endif
30526/* We use char because int might match the return type of a gcc2
30527 builtin and then its argument prototype would still apply. */
30528char SQLAllocEnv ();
30529int
30530main ()
30531{
30532SQLAllocEnv ();
30533 ;
30534 return 0;
30535}
30536_ACEOF
30537rm -f conftest.$ac_objext conftest$ac_exeext
30538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30539 (eval $ac_link) 2>conftest.er1
a848cd7e 30540 ac_status=$?
ac1cb8d3
VS
30541 grep -v '^ *+' conftest.er1 >conftest.err
30542 rm -f conftest.er1
30543 cat conftest.err >&5
a848cd7e
SC
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); } &&
5ff751d6 30546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30548 (eval $ac_try) 2>&5
30549 ac_status=$?
30550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551 (exit $ac_status); }; } &&
30552 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30554 (eval $ac_try) 2>&5
30555 ac_status=$?
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); }; }; then
30558 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30559else
30560 echo "$as_me: failed program was:" >&5
30561sed 's/^/| /' conftest.$ac_ext >&5
30562
30563ac_cv_lib_unixodbc_SQLAllocEnv=no
30564fi
ac1cb8d3
VS
30565rm -f conftest.err conftest.$ac_objext \
30566 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30567LIBS=$ac_check_lib_save_LIBS
30568fi
30569echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30570echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30571if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30572 ODBC_LINK=" -lunixodbc"
30573else
30574
30575 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30576echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30577if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30578 echo $ECHO_N "(cached) $ECHO_C" >&6
30579else
30580 ac_check_lib_save_LIBS=$LIBS
30581LIBS="-lodbc $LIBS"
30582cat >conftest.$ac_ext <<_ACEOF
30583/* confdefs.h. */
30584_ACEOF
30585cat confdefs.h >>conftest.$ac_ext
30586cat >>conftest.$ac_ext <<_ACEOF
30587/* end confdefs.h. */
30588
30589/* Override any gcc2 internal prototype to avoid an error. */
30590#ifdef __cplusplus
30591extern "C"
30592#endif
30593/* We use char because int might match the return type of a gcc2
30594 builtin and then its argument prototype would still apply. */
30595char SQLAllocEnv ();
30596int
30597main ()
30598{
30599SQLAllocEnv ();
30600 ;
30601 return 0;
30602}
30603_ACEOF
30604rm -f conftest.$ac_objext conftest$ac_exeext
30605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30606 (eval $ac_link) 2>conftest.er1
a848cd7e 30607 ac_status=$?
ac1cb8d3
VS
30608 grep -v '^ *+' conftest.er1 >conftest.err
30609 rm -f conftest.er1
30610 cat conftest.err >&5
a848cd7e
SC
30611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612 (exit $ac_status); } &&
5ff751d6 30613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30615 (eval $ac_try) 2>&5
30616 ac_status=$?
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); }; } &&
30619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30621 (eval $ac_try) 2>&5
30622 ac_status=$?
30623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624 (exit $ac_status); }; }; then
30625 ac_cv_lib_odbc_SQLAllocEnv=yes
30626else
30627 echo "$as_me: failed program was:" >&5
30628sed 's/^/| /' conftest.$ac_ext >&5
30629
30630ac_cv_lib_odbc_SQLAllocEnv=no
30631fi
ac1cb8d3
VS
30632rm -f conftest.err conftest.$ac_objext \
30633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30634LIBS=$ac_check_lib_save_LIBS
30635fi
30636echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30637echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30638if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30639 ODBC_LINK=" -lodbc"
30640fi
30641
30642
30643fi
30644
30645
30646fi
30647
30648 fi
30649 if test "x$ODBC_LINK" = "x" ; then
30650 if test "$wxUSE_ODBC" = "sys" ; then
30651 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30652echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30653 { (exit 1); exit 1; }; }
30654 else
30655 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30656echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30657 wxUSE_ODBC=builtin
30658 fi
30659 else
30660 wxUSE_ODBC=sys
30661 fi
30662 fi
a848cd7e 30663
2da0c077
RD
30664 if test "$wxUSE_ODBC" = "builtin" ; then
30665 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30666#define wxUSE_BUILTIN_IODBC 1
30667_ACEOF
30668
a848cd7e
SC
30669 fi
30670fi
30671
2da0c077
RD
30672if test "$wxUSE_ODBC" != "no" ; then
30673 cat >>confdefs.h <<\_ACEOF
30674#define wxUSE_ODBC 1
30675_ACEOF
30676
30677 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30678
5ff751d6 30679 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 30680fi
a848cd7e 30681
01cb68df 30682
a848cd7e 30683if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 30684 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
30685 echo "$as_me:$LINENO: checking for Xinerama" >&5
30686echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30687
0ad5d837
VZ
30688 ac_find_libraries=
30689 for ac_dir in $SEARCH_LIB;
30690 do
30691 for ac_extension in a so sl dylib dll.a; do
30692 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30693 ac_find_libraries=$ac_dir
30694 break 2
30695 fi
30696 done
30697 done
30698
a848cd7e
SC
30699 if test "$ac_find_libraries" != "" ; then
30700
0ad5d837 30701 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30702 ac_path_to_link=""
30703 else
0ad5d837
VZ
30704 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30705 result=$?
30706 if test $result = 0; then
30707 ac_path_to_link=""
30708 else
30709 ac_path_to_link=" -L$ac_find_libraries"
30710 fi
a848cd7e
SC
30711 fi
30712
30713 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30714 LDFLAGS="$LDFLAGS $ac_path_to_link"
30715 fi
30716 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30717 echo "$as_me:$LINENO: result: yes" >&5
30718echo "${ECHO_T}yes" >&6
30719
30720 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30721echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30722
0ad5d837
VZ
30723 ac_find_libraries=
30724 for ac_dir in $SEARCH_LIB;
a848cd7e 30725 do
3eca31dc 30726 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30727 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30728 ac_find_libraries=$ac_dir
30729 break 2
30730 fi
30731 done
30732 done
30733
30734 if test "$ac_find_libraries" != "" ; then
30735 echo "$as_me:$LINENO: result: yes" >&5
30736echo "${ECHO_T}yes" >&6
30737
30738for ac_header in X11/extensions/xf86vmode.h
30739do
30740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30741echo "$as_me:$LINENO: checking for $ac_header" >&5
30742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30743if eval "test \"\${$as_ac_Header+set}\" = set"; then
30744 echo $ECHO_N "(cached) $ECHO_C" >&6
30745else
30746 cat >conftest.$ac_ext <<_ACEOF
30747/* confdefs.h. */
30748_ACEOF
30749cat confdefs.h >>conftest.$ac_ext
30750cat >>conftest.$ac_ext <<_ACEOF
30751/* end confdefs.h. */
30752
30753 #if HAVE_X11_XLIB_H
30754 #include <X11/Xlib.h>
30755 #endif
30756
30757
30758#include <$ac_header>
30759_ACEOF
30760rm -f conftest.$ac_objext
30761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30762 (eval $ac_compile) 2>conftest.er1
a848cd7e 30763 ac_status=$?
ac1cb8d3
VS
30764 grep -v '^ *+' conftest.er1 >conftest.err
30765 rm -f conftest.er1
30766 cat conftest.err >&5
a848cd7e
SC
30767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768 (exit $ac_status); } &&
5ff751d6 30769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30771 (eval $ac_try) 2>&5
30772 ac_status=$?
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); }; } &&
30775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30777 (eval $ac_try) 2>&5
30778 ac_status=$?
30779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780 (exit $ac_status); }; }; then
30781 eval "$as_ac_Header=yes"
30782else
30783 echo "$as_me: failed program was:" >&5
30784sed 's/^/| /' conftest.$ac_ext >&5
30785
30786eval "$as_ac_Header=no"
30787fi
ac1cb8d3 30788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30789fi
30790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30792if test `eval echo '${'$as_ac_Header'}'` = yes; then
30793 cat >>confdefs.h <<_ACEOF
30794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30795_ACEOF
30796
30797 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30798
30799fi
30800
30801done
30802
30803 else
30804 echo "$as_me:$LINENO: result: no" >&5
30805echo "${ECHO_T}no" >&6
30806 fi
30807
30808 else
30809 echo "$as_me:$LINENO: result: no" >&5
30810echo "${ECHO_T}no" >&6
dcc1b6ad
VS
30811 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30812echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
30813 wxUSE_DISPLAY="no"
30814 fi
01cb68df
RG
30815 elif test "$wxUSE_MSW" = 1; then
30816
30817
30818for ac_header in multimon.h ddraw.h
30819do
30820as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 30821echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
30822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30823if eval "test \"\${$as_ac_Header+set}\" = set"; then
30824 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 30825else
5294a27e 30826 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
30827/* confdefs.h. */
30828_ACEOF
30829cat confdefs.h >>conftest.$ac_ext
30830cat >>conftest.$ac_ext <<_ACEOF
30831/* end confdefs.h. */
5294a27e
VZ
30832#include <windows.h>
30833
01cb68df
RG
30834#include <$ac_header>
30835_ACEOF
30836rm -f conftest.$ac_objext
30837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30838 (eval $ac_compile) 2>conftest.er1
01cb68df 30839 ac_status=$?
ac1cb8d3
VS
30840 grep -v '^ *+' conftest.er1 >conftest.err
30841 rm -f conftest.er1
30842 cat conftest.err >&5
01cb68df
RG
30843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); } &&
5ff751d6 30845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30847 (eval $ac_try) 2>&5
30848 ac_status=$?
30849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); }; } &&
30851 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
30852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30853 (eval $ac_try) 2>&5
30854 ac_status=$?
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); }; }; then
5294a27e 30857 eval "$as_ac_Header=yes"
01cb68df
RG
30858else
30859 echo "$as_me: failed program was:" >&5
30860sed 's/^/| /' conftest.$ac_ext >&5
30861
5294a27e 30862eval "$as_ac_Header=no"
01cb68df 30863fi
ac1cb8d3 30864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
30865fi
30866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
30868if test `eval echo '${'$as_ac_Header'}'` = yes; then
30869 cat >>confdefs.h <<_ACEOF
30870#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30871_ACEOF
30872
30873else
30874
5294a27e
VZ
30875 wxUSE_DISPLAY="no"
30876 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 30877echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
30878
30879fi
30880
30881done
30882
a848cd7e
SC
30883 fi
30884fi
30885
30886
30887USE_OPENGL=0
30888if test "$wxUSE_OPENGL" = "yes"; then
30889 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30890 OPENGL_LIBS="-framework OpenGL -framework AGL"
30891 elif test "$wxUSE_MSW" = 1; then
30892 OPENGL_LIBS="-lopengl32 -lglu32"
30893 else
30894
30895
30896ac_find_includes=
30897for ac_dir in $SEARCH_INCLUDE /usr/include;
30898 do
30899 if test -f "$ac_dir/GL/gl.h"; then
30900 ac_find_includes=$ac_dir
30901 break
30902 fi
30903 done
30904
30905 if test "$ac_find_includes" != "" ; then
30906 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30907echo "${ECHO_T}found in $ac_find_includes" >&6
30908
30909 if test "x$ac_find_includes" = "x/usr/include"; then
30910 ac_path_to_include=""
30911 else
30912 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30913 result=$?
30914 if test $result = 0; then
30915 ac_path_to_include=""
30916 else
30917 ac_path_to_include=" -I$ac_find_includes"
30918 fi
30919 fi
30920
30921 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
30922 fi
30923
30924 if test "${ac_cv_header_GL_gl_h+set}" = set; then
30925 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30926echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30927if test "${ac_cv_header_GL_gl_h+set}" = set; then
30928 echo $ECHO_N "(cached) $ECHO_C" >&6
30929fi
30930echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30931echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30932else
30933 # Is the header compilable?
30934echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
30935echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
30936cat >conftest.$ac_ext <<_ACEOF
30937/* confdefs.h. */
30938_ACEOF
30939cat confdefs.h >>conftest.$ac_ext
30940cat >>conftest.$ac_ext <<_ACEOF
30941/* end confdefs.h. */
30942$ac_includes_default
30943#include <GL/gl.h>
30944_ACEOF
30945rm -f conftest.$ac_objext
30946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30947 (eval $ac_compile) 2>conftest.er1
a848cd7e 30948 ac_status=$?
ac1cb8d3
VS
30949 grep -v '^ *+' conftest.er1 >conftest.err
30950 rm -f conftest.er1
30951 cat conftest.err >&5
a848cd7e
SC
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); } &&
5ff751d6 30954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30956 (eval $ac_try) 2>&5
30957 ac_status=$?
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; } &&
30960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30962 (eval $ac_try) 2>&5
30963 ac_status=$?
30964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965 (exit $ac_status); }; }; then
30966 ac_header_compiler=yes
30967else
30968 echo "$as_me: failed program was:" >&5
30969sed 's/^/| /' conftest.$ac_ext >&5
30970
30971ac_header_compiler=no
30972fi
ac1cb8d3 30973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30975echo "${ECHO_T}$ac_header_compiler" >&6
30976
30977# Is the header present?
30978echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
30979echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
30980cat >conftest.$ac_ext <<_ACEOF
30981/* confdefs.h. */
30982_ACEOF
30983cat confdefs.h >>conftest.$ac_ext
30984cat >>conftest.$ac_ext <<_ACEOF
30985/* end confdefs.h. */
30986#include <GL/gl.h>
30987_ACEOF
30988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30990 ac_status=$?
30991 grep -v '^ *+' conftest.er1 >conftest.err
30992 rm -f conftest.er1
30993 cat conftest.err >&5
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); } >/dev/null; then
30996 if test -s conftest.err; then
30997 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30999 else
31000 ac_cpp_err=
31001 fi
31002else
31003 ac_cpp_err=yes
31004fi
31005if test -z "$ac_cpp_err"; then
31006 ac_header_preproc=yes
31007else
31008 echo "$as_me: failed program was:" >&5
31009sed 's/^/| /' conftest.$ac_ext >&5
31010
31011 ac_header_preproc=no
31012fi
31013rm -f conftest.err conftest.$ac_ext
31014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31015echo "${ECHO_T}$ac_header_preproc" >&6
31016
31017# So? What about this header?
ac1cb8d3
VS
31018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31019 yes:no: )
a848cd7e
SC
31020 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31021echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31022 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31023echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31024 ac_header_preproc=yes
a848cd7e 31025 ;;
ac1cb8d3 31026 no:yes:* )
a848cd7e
SC
31027 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31028echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31029 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31030echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31031 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31032echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31033 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31034echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31035 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31036echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31037 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31038echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31039 (
31040 cat <<\_ASBOX
ac1cb8d3
VS
31041## ----------------------------------------- ##
31042## Report this to wx-dev@lists.wxwidgets.org ##
31043## ----------------------------------------- ##
a848cd7e
SC
31044_ASBOX
31045 ) |
31046 sed "s/^/$as_me: WARNING: /" >&2
31047 ;;
31048esac
31049echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31050echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31051if test "${ac_cv_header_GL_gl_h+set}" = set; then
31052 echo $ECHO_N "(cached) $ECHO_C" >&6
31053else
31054 ac_cv_header_GL_gl_h=$ac_header_preproc
31055fi
31056echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31057echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31058
31059fi
31060if test $ac_cv_header_GL_gl_h = yes; then
31061
31062 found_gl=0
31063
31064 echo "$as_me:$LINENO: checking for -lGL" >&5
31065echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31066
0ad5d837
VZ
31067 ac_find_libraries=
31068 for ac_dir in $SEARCH_LIB;
a848cd7e 31069 do
3eca31dc 31070 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31071 if test -f "$ac_dir/libGL.$ac_extension"; then
31072 ac_find_libraries=$ac_dir
31073 break 2
31074 fi
31075 done
31076 done
31077
31078 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31079 echo "$as_me:$LINENO: result: yes" >&5
31080echo "${ECHO_T}yes" >&6
31081
a848cd7e 31082
0ad5d837 31083 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31084 ac_path_to_link=""
31085 else
0ad5d837
VZ
31086 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31087 result=$?
31088 if test $result = 0; then
31089 ac_path_to_link=""
31090 else
31091 ac_path_to_link=" -L$ac_find_libraries"
31092 fi
a848cd7e
SC
31093 fi
31094
31095 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31096 LDFLAGS_GL="$ac_path_to_link"
31097 fi
31098
69120ee4
VZ
31099 echo "$as_me:$LINENO: checking for -lGLU" >&5
31100echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31101
0ad5d837
VZ
31102 ac_find_libraries=
31103 for ac_dir in $SEARCH_LIB;
31104 do
31105 for ac_extension in a so sl dylib dll.a; do
31106 if test -f "$ac_dir/libGLU.$ac_extension"; then
31107 ac_find_libraries=$ac_dir
31108 break 2
31109 fi
31110 done
31111 done
31112
a848cd7e
SC
31113 if test "$ac_find_libraries" != "" ; then
31114
0ad5d837 31115 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31116 ac_path_to_link=""
31117 else
0ad5d837
VZ
31118 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31119 result=$?
31120 if test $result = 0; then
31121 ac_path_to_link=""
31122 else
31123 ac_path_to_link=" -L$ac_find_libraries"
31124 fi
a848cd7e
SC
31125 fi
31126
31127 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31128 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31129 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31130 fi
31131
31132 found_gl=1
31133 OPENGL_LIBS="-lGL -lGLU"
31134 echo "$as_me:$LINENO: result: yes" >&5
31135echo "${ECHO_T}yes" >&6
69120ee4
VZ
31136 else
31137 echo "$as_me:$LINENO: result: no" >&5
31138echo "${ECHO_T}no" >&6
a848cd7e 31139 fi
69120ee4
VZ
31140 else
31141 echo "$as_me:$LINENO: result: no" >&5
31142echo "${ECHO_T}no" >&6
a848cd7e
SC
31143 fi
31144
31145 if test "$found_gl" != 1; then
a848cd7e
SC
31146 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31147echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31148
0ad5d837
VZ
31149 ac_find_libraries=
31150 for ac_dir in $SEARCH_LIB;
a848cd7e 31151 do
3eca31dc 31152 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31153 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31154 ac_find_libraries=$ac_dir
31155 break 2
31156 fi
31157 done
31158 done
31159
31160 if test "$ac_find_libraries" != "" ; then
31161
0ad5d837 31162 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31163 ac_path_to_link=""
31164 else
0ad5d837
VZ
31165 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31166 result=$?
31167 if test $result = 0; then
31168 ac_path_to_link=""
31169 else
31170 ac_path_to_link=" -L$ac_find_libraries"
31171 fi
a848cd7e
SC
31172 fi
31173
31174 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31175 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31176 echo "$as_me:$LINENO: result: yes" >&5
31177echo "${ECHO_T}yes" >&6
31178 else
31179 echo "$as_me:$LINENO: result: no" >&5
31180echo "${ECHO_T}no" >&6
31181 fi
31182 fi
31183
31184fi
31185
31186
31187
31188 if test "x$OPENGL_LIBS" = "x"; then
31189 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31190echo "$as_me: error: OpenGL libraries not available" >&2;}
31191 { (exit 1); exit 1; }; }
31192 fi
31193 fi
31194
31195 if test "$wxUSE_OPENGL" = "yes"; then
31196 USE_OPENGL=1
31197 cat >>confdefs.h <<\_ACEOF
31198#define wxUSE_OPENGL 1
31199_ACEOF
31200
31201 cat >>confdefs.h <<\_ACEOF
31202#define wxUSE_GLCANVAS 1
31203_ACEOF
31204
31205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31206 fi
31207fi
31208
a848cd7e
SC
31209
31210if test -n "$TOOLKIT" ; then
31211 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31212fi
31213
a848cd7e
SC
31214
31215
31216if test "$wxUSE_SHARED" = "yes"; then
31217 case "${host}" in
31218 *-pc-msdosdjgpp )
31219 wxUSE_SHARED=no
31220 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31221echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31222 ;;
31223 esac
31224fi
31225
a848cd7e 31226if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31227
31228
31229 found_versioning=no
31230
31231
31232 if test $found_versioning = no ; then
31233 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31234echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31235if test "${wx_cv_version_script+set}" = set; then
31236 echo $ECHO_N "(cached) $ECHO_C" >&6
31237else
31238
31239 echo "VER_1 { *; };" >conftest.sym
31240 echo "int main() { return 0; }" >conftest.cpp
31241
31242 if { ac_try='
31243 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31244 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31246 (eval $ac_try) 2>&5
31247 ac_status=$?
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); }; } ; then
31250 if test -s conftest.stderr ; then
31251 wx_cv_version_script=no
31252 else
31253 wx_cv_version_script=yes
31254 fi
31255 else
31256 wx_cv_version_script=no
31257 fi
e5d4b470
MW
31258
31259 if test $wx_cv_version_script = yes
31260 then
31261 echo "struct B { virtual ~B() { } }; \
31262 struct D : public B { }; \
31263 void F() { D d; }" > conftest.cpp
31264
31265 if { ac_try='
31266 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31267 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31269 (eval $ac_try) 2>&5
31270 ac_status=$?
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; } &&
31273 { ac_try='
31274 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31275 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31277 (eval $ac_try) 2>&5
31278 ac_status=$?
31279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280 (exit $ac_status); }; }
31281 then
31282 if { ac_try='
31283 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31284 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31286 (eval $ac_try) 2>&5
31287 ac_status=$?
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; }
31290 then
31291 wx_cv_version_script=yes
31292 else
31293 wx_cv_version_script=no
31294 fi
31295 fi
31296 fi
31297
a848cd7e 31298 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31299 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31300
31301fi
31302echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31303echo "${ECHO_T}$wx_cv_version_script" >&6
31304 if test $wx_cv_version_script = yes ; then
31305 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31306 fi
31307 fi
31308
31309
31310 case "${host}" in
31311 *-*-linux* | *-*-gnu* )
31312 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31313 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31314 ;;
a848cd7e
SC
31315
31316 *-*-solaris2* )
31317 if test "$GCC" = yes ; then
31318 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
31319
31320 saveLdflags="$LDFLAGS"
31321 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31322 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31323echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31324 cat >conftest.$ac_ext <<_ACEOF
31325/* confdefs.h. */
31326_ACEOF
31327cat confdefs.h >>conftest.$ac_ext
31328cat >>conftest.$ac_ext <<_ACEOF
31329/* end confdefs.h. */
31330
31331int
31332main ()
31333{
31334
31335 ;
31336 return 0;
31337}
31338_ACEOF
31339rm -f conftest.$ac_objext conftest$ac_exeext
31340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31341 (eval $ac_link) 2>conftest.er1
a848cd7e 31342 ac_status=$?
ac1cb8d3
VS
31343 grep -v '^ *+' conftest.er1 >conftest.err
31344 rm -f conftest.er1
31345 cat conftest.err >&5
a848cd7e
SC
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); } &&
5ff751d6 31348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31350 (eval $ac_try) 2>&5
31351 ac_status=$?
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); }; } &&
31354 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31356 (eval $ac_try) 2>&5
31357 ac_status=$?
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); }; }; then
31360
31361 echo "$as_me:$LINENO: result: yes" >&5
31362echo "${ECHO_T}yes" >&6
31363 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31364 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31365
31366else
31367 echo "$as_me: failed program was:" >&5
31368sed 's/^/| /' conftest.$ac_ext >&5
31369
31370
31371 echo "$as_me:$LINENO: result: no" >&5
31372echo "${ECHO_T}no" >&6
31373 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31374echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31375 LDFLAGS="$saveLdflags -Wl,-R,/"
31376 cat >conftest.$ac_ext <<_ACEOF
31377/* confdefs.h. */
31378_ACEOF
31379cat confdefs.h >>conftest.$ac_ext
31380cat >>conftest.$ac_ext <<_ACEOF
31381/* end confdefs.h. */
31382
31383int
31384main ()
31385{
31386
31387 ;
31388 return 0;
31389}
31390_ACEOF
31391rm -f conftest.$ac_objext conftest$ac_exeext
31392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31393 (eval $ac_link) 2>conftest.er1
a848cd7e 31394 ac_status=$?
ac1cb8d3
VS
31395 grep -v '^ *+' conftest.er1 >conftest.err
31396 rm -f conftest.er1
31397 cat conftest.err >&5
a848cd7e
SC
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); } &&
5ff751d6 31400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31402 (eval $ac_try) 2>&5
31403 ac_status=$?
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405 (exit $ac_status); }; } &&
31406 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31408 (eval $ac_try) 2>&5
31409 ac_status=$?
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); }; }; then
31412
ffa0583f 31413 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31414echo "${ECHO_T}yes" >&6
ffa0583f
RL
31415 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31416 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31417
a848cd7e
SC
31418else
31419 echo "$as_me: failed program was:" >&5
31420sed 's/^/| /' conftest.$ac_ext >&5
31421
31422
31423 echo "$as_me:$LINENO: result: no" >&5
31424echo "${ECHO_T}no" >&6
31425
31426fi
ac1cb8d3
VS
31427rm -f conftest.err conftest.$ac_objext \
31428 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31429
31430fi
ac1cb8d3
VS
31431rm -f conftest.err conftest.$ac_objext \
31432 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31433 LDFLAGS="$saveLdflags"
31434 else
a848cd7e 31435 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31436 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31437 fi
31438 ;;
31439
cfda0ea8 31440 *-*-darwin* )
0caebc27
MW
31441 install_name_tool=`which install_name_tool`
31442 if test "$install_name_tool" -a -x "$install_name_tool"; then
31443 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31444 cat <<EOF >change-install-names
a848cd7e
SC
31445#!/bin/sh
31446libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31447inst_cmd="install_name_tool "
31448for i in \${libnames} ; do
31449 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31450done
31451\${inst_cmd} \${3}
31452EOF
0caebc27
MW
31453 chmod +x change-install-names
31454 fi
a848cd7e
SC
31455 ;;
31456
31457 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
31458 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
31459 ;;
a848cd7e 31460
81f90336
MW
31461 *-*-hpux* )
31462 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31463 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 31464 ;;
81f90336 31465
a848cd7e 31466 esac
ceec2216 31467
ffa0583f
RL
31468 if test $wxUSE_RPATH = "no"; then
31469 SAMPLES_RPATH_FLAG=''
31470 SAMPLES_RPATH_POSTLINK=''
31471 WXCONFIG_RPATH=''
31472 fi
31473
31474 SHARED=1
31475
31476else
31477
ceec2216
RL
31478 config_linkage_component="-static"
31479 SHARED=0
ffa0583f 31480
ceec2216 31481fi
a848cd7e 31482
a848cd7e 31483
ceec2216
RL
31484UNICODE=0
31485lib_unicode_suffix=
31486WX_CHARTYPE="ansi"
31487if test "$wxUSE_UNICODE" = "yes"; then
31488 lib_unicode_suffix=u
31489 WX_CHARTYPE="unicode"
31490 UNICODE=1
a848cd7e
SC
31491fi
31492
ceec2216
RL
31493lib_debug_suffix=
31494WX_DEBUGTYPE="release"
31495DEBUG_FLAG=0
31496if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31497 lib_debug_suffix=d
31498 WX_DEBUGTYPE="debug"
31499 DEBUG_FLAG=1
31500fi
a848cd7e 31501
ceec2216
RL
31502WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31503WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31504
ceec2216
RL
31505DEBUG_INFO=0
31506if test "$wxUSE_DEBUG_INFO" = "yes"; then
31507 DEBUG_INFO=1
31508fi
a848cd7e 31509
ceec2216 31510WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31511
ceec2216 31512TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31513
ceec2216 31514TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31515
ceec2216
RL
31516if test "$cross_compiling" = "yes"; then
31517 HOST_SUFFIX="-$host_alias"
31518 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31519 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31520fi
31521
dd21ced8 31522WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31523if test "${TOOLKIT_DIR}" = "os2"; then
31524 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31525else
31526 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31527fi
ceec2216
RL
31528
31529
31530
1d1af5ea
DE
31531if test "$wxUSE_COCOA" = 1; then
31532
31533
31534 ac_ext=c
31535ac_cpp='$CPP $CPPFLAGS'
31536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31538ac_compiler_gnu=$ac_cv_c_compiler_gnu
31539
31540ac_ext=m
31541
31542 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31543echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31544 cat >conftest.$ac_ext <<_ACEOF
31545/* confdefs.h. */
31546_ACEOF
31547cat confdefs.h >>conftest.$ac_ext
31548cat >>conftest.$ac_ext <<_ACEOF
31549/* end confdefs.h. */
31550#include <AppKit/NSEvent.h>
31551#include <CoreFoundation/CoreFoundation.h>
31552
31553int
31554main ()
31555{
31556
31557 ;
31558 return 0;
31559}
31560_ACEOF
31561rm -f conftest.$ac_objext
31562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31563 (eval $ac_compile) 2>conftest.er1
31564 ac_status=$?
31565 grep -v '^ *+' conftest.er1 >conftest.err
31566 rm -f conftest.er1
31567 cat conftest.err >&5
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); } &&
5ff751d6 31570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31572 (eval $ac_try) 2>&5
31573 ac_status=$?
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; } &&
31576 { ac_try='test -s conftest.$ac_objext'
31577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31578 (eval $ac_try) 2>&5
31579 ac_status=$?
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 (exit $ac_status); }; }; then
31582 echo "$as_me:$LINENO: result: no" >&5
31583echo "${ECHO_T}no" >&6
31584else
31585 echo "$as_me: failed program was:" >&5
31586sed 's/^/| /' conftest.$ac_ext >&5
31587
31588echo "$as_me:$LINENO: result: yes" >&5
31589echo "${ECHO_T}yes" >&6
31590 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31591echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31592 cat >conftest.$ac_ext <<_ACEOF
31593/* confdefs.h. */
31594_ACEOF
31595cat confdefs.h >>conftest.$ac_ext
31596cat >>conftest.$ac_ext <<_ACEOF
31597/* end confdefs.h. */
31598#define __Point__ 1
31599#include <AppKit/NSEvent.h>
31600#include <CoreFoundation/CoreFoundation.h>
31601
31602int
31603main ()
31604{
31605
31606 ;
31607 return 0;
31608}
31609_ACEOF
31610rm -f conftest.$ac_objext
31611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31612 (eval $ac_compile) 2>conftest.er1
31613 ac_status=$?
31614 grep -v '^ *+' conftest.er1 >conftest.err
31615 rm -f conftest.er1
31616 cat conftest.err >&5
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); } &&
5ff751d6 31619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31621 (eval $ac_try) 2>&5
31622 ac_status=$?
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); }; } &&
31625 { ac_try='test -s conftest.$ac_objext'
31626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31627 (eval $ac_try) 2>&5
31628 ac_status=$?
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); }; }; then
31631 echo "$as_me:$LINENO: result: yes" >&5
31632echo "${ECHO_T}yes" >&6
31633 cat >>confdefs.h <<\_ACEOF
31634#define __Point__ 1
31635_ACEOF
31636
31637
31638else
31639 echo "$as_me: failed program was:" >&5
31640sed 's/^/| /' conftest.$ac_ext >&5
31641
31642{ { echo "$as_me:$LINENO: error: no
31643See \`config.log' for more details." >&5
31644echo "$as_me: error: no
31645See \`config.log' for more details." >&2;}
31646 { (exit 1); exit 1; }; }
31647
31648fi
31649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31650
31651fi
31652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31653 ac_ext=c
31654ac_cpp='$CPP $CPPFLAGS'
31655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31657ac_compiler_gnu=$ac_cv_c_compiler_gnu
31658
31659fi
31660
a848cd7e 31661if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
31662 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31663 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31664
a848cd7e 31665 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31666
31667 # Extract the first word of "Rez", so it can be a program name with args.
31668set dummy Rez; ac_word=$2
31669echo "$as_me:$LINENO: checking for $ac_word" >&5
31670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 31671if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
31672 echo $ECHO_N "(cached) $ECHO_C" >&6
31673else
8ced02f6
DE
31674 if test -n "$REZ"; then
31675 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
31676else
31677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31678for as_dir in $PATH
31679do
31680 IFS=$as_save_IFS
31681 test -z "$as_dir" && as_dir=.
31682 for ac_exec_ext in '' $ac_executable_extensions; do
31683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 31684 ac_cv_prog_REZ="Rez"
a848cd7e
SC
31685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31686 break 2
31687 fi
31688done
31689done
31690
8ced02f6 31691 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
31692fi
31693fi
8ced02f6
DE
31694REZ=$ac_cv_prog_REZ
31695if test -n "$REZ"; then
31696 echo "$as_me:$LINENO: result: $REZ" >&5
31697echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
31698else
31699 echo "$as_me:$LINENO: result: no" >&5
31700echo "${ECHO_T}no" >&6
31701fi
31702
31703 # Extract the first word of "DeRez", so it can be a program name with args.
31704set dummy DeRez; ac_word=$2
31705echo "$as_me:$LINENO: checking for $ac_word" >&5
31706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31707if test "${ac_cv_prog_DEREZ+set}" = set; then
31708 echo $ECHO_N "(cached) $ECHO_C" >&6
31709else
31710 if test -n "$DEREZ"; then
31711 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31712else
31713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31714for as_dir in $PATH
31715do
31716 IFS=$as_save_IFS
31717 test -z "$as_dir" && as_dir=.
31718 for ac_exec_ext in '' $ac_executable_extensions; do
31719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31720 ac_cv_prog_DEREZ="DeRez"
31721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31722 break 2
31723 fi
31724done
31725done
31726
31727 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31728fi
31729fi
31730DEREZ=$ac_cv_prog_DEREZ
31731if test -n "$DEREZ"; then
31732 echo "$as_me:$LINENO: result: $DEREZ" >&5
31733echo "${ECHO_T}$DEREZ" >&6
31734else
31735 echo "$as_me:$LINENO: result: no" >&5
31736echo "${ECHO_T}no" >&6
31737fi
31738
31739 # Extract the first word of "SetFile", so it can be a program name with args.
31740set dummy SetFile; ac_word=$2
31741echo "$as_me:$LINENO: checking for $ac_word" >&5
31742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31743if test "${ac_cv_prog_SETFILE+set}" = set; then
31744 echo $ECHO_N "(cached) $ECHO_C" >&6
31745else
31746 if test -n "$SETFILE"; then
31747 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31748else
31749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31750for as_dir in $PATH
31751do
31752 IFS=$as_save_IFS
31753 test -z "$as_dir" && as_dir=.
31754 for ac_exec_ext in '' $ac_executable_extensions; do
31755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31756 ac_cv_prog_SETFILE="SetFile"
31757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31758 break 2
31759 fi
31760done
31761done
31762
31763 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31764fi
31765fi
31766SETFILE=$ac_cv_prog_SETFILE
31767if test -n "$SETFILE"; then
31768 echo "$as_me:$LINENO: result: $SETFILE" >&5
31769echo "${ECHO_T}$SETFILE" >&6
31770else
31771 echo "$as_me:$LINENO: result: no" >&5
31772echo "${ECHO_T}no" >&6
31773fi
31774
31775
31776 MACSETFILE="\$(SETFILE)"
31777
31778 if test "$wxUSE_MAC" = 1; then
8ced02f6 31779 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 31780
8ced02f6 31781 WXCONFIG_POSTLINK_COMMAND="${REZ} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 31782 else
8ced02f6
DE
31783 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
31784 WXCONFIG_POSTLINK_COMMAND="echo -n \\\| ${REZ} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
a848cd7e
SC
31785 fi
31786else
ffa0583f 31787 MACSETFILE="@true"
8ced02f6 31788 WXCONFIG_POSTLINK_COMMAND="@true"
a848cd7e 31789
8ced02f6
DE
31790 if test "$wxUSE_PM" = 1; then
31791 POSTLINK_COMMAND="emxbind -ep"
a848cd7e 31792 else
8ced02f6 31793 POSTLINK_COMMAND="@true"
a848cd7e
SC
31794 fi
31795fi
31796
31797
31798
31799echo "$as_me:$LINENO: checking for mode_t" >&5
31800echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31801if test "${ac_cv_type_mode_t+set}" = set; then
31802 echo $ECHO_N "(cached) $ECHO_C" >&6
31803else
31804 cat >conftest.$ac_ext <<_ACEOF
31805/* confdefs.h. */
31806_ACEOF
31807cat confdefs.h >>conftest.$ac_ext
31808cat >>conftest.$ac_ext <<_ACEOF
31809/* end confdefs.h. */
31810$ac_includes_default
31811int
31812main ()
31813{
31814if ((mode_t *) 0)
31815 return 0;
31816if (sizeof (mode_t))
31817 return 0;
31818 ;
31819 return 0;
31820}
31821_ACEOF
31822rm -f conftest.$ac_objext
31823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31824 (eval $ac_compile) 2>conftest.er1
a848cd7e 31825 ac_status=$?
ac1cb8d3
VS
31826 grep -v '^ *+' conftest.er1 >conftest.err
31827 rm -f conftest.er1
31828 cat conftest.err >&5
a848cd7e
SC
31829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830 (exit $ac_status); } &&
5ff751d6 31831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31833 (eval $ac_try) 2>&5
31834 ac_status=$?
31835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836 (exit $ac_status); }; } &&
31837 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31839 (eval $ac_try) 2>&5
31840 ac_status=$?
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); }; }; then
31843 ac_cv_type_mode_t=yes
31844else
31845 echo "$as_me: failed program was:" >&5
31846sed 's/^/| /' conftest.$ac_ext >&5
31847
31848ac_cv_type_mode_t=no
31849fi
ac1cb8d3 31850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31851fi
31852echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31853echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31854if test $ac_cv_type_mode_t = yes; then
31855 :
31856else
31857
31858cat >>confdefs.h <<_ACEOF
31859#define mode_t int
31860_ACEOF
31861
31862fi
31863
31864echo "$as_me:$LINENO: checking for off_t" >&5
31865echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31866if test "${ac_cv_type_off_t+set}" = set; then
31867 echo $ECHO_N "(cached) $ECHO_C" >&6
31868else
31869 cat >conftest.$ac_ext <<_ACEOF
31870/* confdefs.h. */
31871_ACEOF
31872cat confdefs.h >>conftest.$ac_ext
31873cat >>conftest.$ac_ext <<_ACEOF
31874/* end confdefs.h. */
31875$ac_includes_default
31876int
31877main ()
31878{
31879if ((off_t *) 0)
31880 return 0;
31881if (sizeof (off_t))
31882 return 0;
31883 ;
31884 return 0;
31885}
31886_ACEOF
31887rm -f conftest.$ac_objext
31888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31889 (eval $ac_compile) 2>conftest.er1
a848cd7e 31890 ac_status=$?
ac1cb8d3
VS
31891 grep -v '^ *+' conftest.er1 >conftest.err
31892 rm -f conftest.er1
31893 cat conftest.err >&5
a848cd7e
SC
31894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31895 (exit $ac_status); } &&
5ff751d6 31896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31898 (eval $ac_try) 2>&5
31899 ac_status=$?
31900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901 (exit $ac_status); }; } &&
31902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31904 (eval $ac_try) 2>&5
31905 ac_status=$?
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); }; }; then
31908 ac_cv_type_off_t=yes
31909else
31910 echo "$as_me: failed program was:" >&5
31911sed 's/^/| /' conftest.$ac_ext >&5
31912
31913ac_cv_type_off_t=no
31914fi
ac1cb8d3 31915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31916fi
31917echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31918echo "${ECHO_T}$ac_cv_type_off_t" >&6
31919if test $ac_cv_type_off_t = yes; then
31920 :
31921else
31922
31923cat >>confdefs.h <<_ACEOF
31924#define off_t long
31925_ACEOF
31926
31927fi
31928
31929echo "$as_me:$LINENO: checking for pid_t" >&5
31930echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31931if test "${ac_cv_type_pid_t+set}" = set; then
31932 echo $ECHO_N "(cached) $ECHO_C" >&6
31933else
31934 cat >conftest.$ac_ext <<_ACEOF
31935/* confdefs.h. */
31936_ACEOF
31937cat confdefs.h >>conftest.$ac_ext
31938cat >>conftest.$ac_ext <<_ACEOF
31939/* end confdefs.h. */
31940$ac_includes_default
31941int
31942main ()
31943{
31944if ((pid_t *) 0)
31945 return 0;
31946if (sizeof (pid_t))
31947 return 0;
31948 ;
31949 return 0;
31950}
31951_ACEOF
31952rm -f conftest.$ac_objext
31953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31954 (eval $ac_compile) 2>conftest.er1
a848cd7e 31955 ac_status=$?
ac1cb8d3
VS
31956 grep -v '^ *+' conftest.er1 >conftest.err
31957 rm -f conftest.er1
31958 cat conftest.err >&5
a848cd7e
SC
31959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960 (exit $ac_status); } &&
5ff751d6 31961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31963 (eval $ac_try) 2>&5
31964 ac_status=$?
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); }; } &&
31967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31969 (eval $ac_try) 2>&5
31970 ac_status=$?
31971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); }; }; then
31973 ac_cv_type_pid_t=yes
31974else
31975 echo "$as_me: failed program was:" >&5
31976sed 's/^/| /' conftest.$ac_ext >&5
31977
31978ac_cv_type_pid_t=no
31979fi
ac1cb8d3 31980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31981fi
31982echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31983echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31984if test $ac_cv_type_pid_t = yes; then
31985 :
31986else
31987
31988cat >>confdefs.h <<_ACEOF
31989#define pid_t int
31990_ACEOF
31991
31992fi
31993
31994echo "$as_me:$LINENO: checking for size_t" >&5
31995echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31996if test "${ac_cv_type_size_t+set}" = set; then
31997 echo $ECHO_N "(cached) $ECHO_C" >&6
31998else
31999 cat >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
32006int
32007main ()
32008{
32009if ((size_t *) 0)
32010 return 0;
32011if (sizeof (size_t))
32012 return 0;
32013 ;
32014 return 0;
32015}
32016_ACEOF
32017rm -f conftest.$ac_objext
32018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32019 (eval $ac_compile) 2>conftest.er1
a848cd7e 32020 ac_status=$?
ac1cb8d3
VS
32021 grep -v '^ *+' conftest.er1 >conftest.err
32022 rm -f conftest.er1
32023 cat conftest.err >&5
a848cd7e
SC
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); } &&
5ff751d6 32026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32028 (eval $ac_try) 2>&5
32029 ac_status=$?
32030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031 (exit $ac_status); }; } &&
32032 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32034 (eval $ac_try) 2>&5
32035 ac_status=$?
32036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32037 (exit $ac_status); }; }; then
32038 ac_cv_type_size_t=yes
32039else
32040 echo "$as_me: failed program was:" >&5
32041sed 's/^/| /' conftest.$ac_ext >&5
32042
32043ac_cv_type_size_t=no
32044fi
ac1cb8d3 32045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32046fi
32047echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32048echo "${ECHO_T}$ac_cv_type_size_t" >&6
32049if test $ac_cv_type_size_t = yes; then
32050 :
32051else
32052
32053cat >>confdefs.h <<_ACEOF
32054#define size_t unsigned
32055_ACEOF
32056
32057fi
32058
32059echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32060echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32061if test "${ac_cv_type_uid_t+set}" = set; then
32062 echo $ECHO_N "(cached) $ECHO_C" >&6
32063else
32064 cat >conftest.$ac_ext <<_ACEOF
32065/* confdefs.h. */
32066_ACEOF
32067cat confdefs.h >>conftest.$ac_ext
32068cat >>conftest.$ac_ext <<_ACEOF
32069/* end confdefs.h. */
32070#include <sys/types.h>
32071
32072_ACEOF
32073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32074 $EGREP "uid_t" >/dev/null 2>&1; then
32075 ac_cv_type_uid_t=yes
32076else
32077 ac_cv_type_uid_t=no
32078fi
32079rm -f conftest*
32080
32081fi
32082echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32083echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32084if test $ac_cv_type_uid_t = no; then
32085
32086cat >>confdefs.h <<\_ACEOF
32087#define uid_t int
32088_ACEOF
32089
32090
32091cat >>confdefs.h <<\_ACEOF
32092#define gid_t int
32093_ACEOF
32094
32095fi
32096
32097
d51253e8
RL
32098echo "$as_me:$LINENO: checking for ssize_t" >&5
32099echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32100if test "${ac_cv_type_ssize_t+set}" = set; then
32101 echo $ECHO_N "(cached) $ECHO_C" >&6
32102else
32103 cat >conftest.$ac_ext <<_ACEOF
32104/* confdefs.h. */
32105_ACEOF
32106cat confdefs.h >>conftest.$ac_ext
32107cat >>conftest.$ac_ext <<_ACEOF
32108/* end confdefs.h. */
32109$ac_includes_default
32110int
32111main ()
32112{
32113if ((ssize_t *) 0)
32114 return 0;
32115if (sizeof (ssize_t))
32116 return 0;
32117 ;
32118 return 0;
32119}
32120_ACEOF
32121rm -f conftest.$ac_objext
32122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32123 (eval $ac_compile) 2>conftest.er1
32124 ac_status=$?
32125 grep -v '^ *+' conftest.er1 >conftest.err
32126 rm -f conftest.er1
32127 cat conftest.err >&5
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); } &&
5ff751d6 32130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
32131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32132 (eval $ac_try) 2>&5
32133 ac_status=$?
32134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135 (exit $ac_status); }; } &&
32136 { ac_try='test -s conftest.$ac_objext'
32137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32138 (eval $ac_try) 2>&5
32139 ac_status=$?
32140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141 (exit $ac_status); }; }; then
32142 ac_cv_type_ssize_t=yes
32143else
32144 echo "$as_me: failed program was:" >&5
32145sed 's/^/| /' conftest.$ac_ext >&5
32146
32147ac_cv_type_ssize_t=no
32148fi
32149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32150fi
32151echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32152echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32153if test $ac_cv_type_ssize_t = yes; then
32154
32155cat >>confdefs.h <<_ACEOF
32156#define HAVE_SSIZE_T 1
32157_ACEOF
32158
32159
32160fi
32161
32162
a848cd7e
SC
32163
32164
32165ac_ext=cc
32166ac_cpp='$CXXCPP $CPPFLAGS'
32167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32170
32171echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32172echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32173if test "${wx_cv_size_t_is_uint+set}" = set; then
32174 echo $ECHO_N "(cached) $ECHO_C" >&6
32175else
32176
32177 cat >conftest.$ac_ext <<_ACEOF
32178/* confdefs.h. */
32179_ACEOF
32180cat confdefs.h >>conftest.$ac_ext
32181cat >>conftest.$ac_ext <<_ACEOF
32182/* end confdefs.h. */
32183#include <stddef.h>
32184int
32185main ()
32186{
32187
32188 return 0; }
32189
32190 struct Foo { void foo(size_t); void foo(unsigned int); };
32191
32192 int bar() {
32193
32194 ;
32195 return 0;
32196}
32197_ACEOF
32198rm -f conftest.$ac_objext
32199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32200 (eval $ac_compile) 2>conftest.er1
a848cd7e 32201 ac_status=$?
ac1cb8d3
VS
32202 grep -v '^ *+' conftest.er1 >conftest.err
32203 rm -f conftest.er1
32204 cat conftest.err >&5
a848cd7e
SC
32205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206 (exit $ac_status); } &&
5ff751d6 32207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32209 (eval $ac_try) 2>&5
32210 ac_status=$?
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212 (exit $ac_status); }; } &&
32213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32215 (eval $ac_try) 2>&5
32216 ac_status=$?
32217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218 (exit $ac_status); }; }; then
32219 wx_cv_size_t_is_uint=no
32220else
32221 echo "$as_me: failed program was:" >&5
32222sed 's/^/| /' conftest.$ac_ext >&5
32223
32224wx_cv_size_t_is_uint=yes
32225
32226fi
ac1cb8d3 32227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32228
32229
32230fi
32231echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32232echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32233
32234if test "$wx_cv_size_t_is_uint" = "yes"; then
32235 cat >>confdefs.h <<\_ACEOF
32236#define wxSIZE_T_IS_UINT 1
32237_ACEOF
32238
32239else
32240 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32241echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32242if test "${wx_cv_size_t_is_ulong+set}" = set; then
32243 echo $ECHO_N "(cached) $ECHO_C" >&6
32244else
32245 cat >conftest.$ac_ext <<_ACEOF
32246/* confdefs.h. */
32247_ACEOF
32248cat confdefs.h >>conftest.$ac_ext
32249cat >>conftest.$ac_ext <<_ACEOF
32250/* end confdefs.h. */
32251#include <stddef.h>
32252int
32253main ()
32254{
32255
32256 return 0; }
32257
32258 struct Foo { void foo(size_t); void foo(unsigned long); };
32259
32260 int bar() {
32261
32262 ;
32263 return 0;
32264}
32265_ACEOF
32266rm -f conftest.$ac_objext
32267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32268 (eval $ac_compile) 2>conftest.er1
a848cd7e 32269 ac_status=$?
ac1cb8d3
VS
32270 grep -v '^ *+' conftest.er1 >conftest.err
32271 rm -f conftest.er1
32272 cat conftest.err >&5
a848cd7e
SC
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); } &&
5ff751d6 32275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32277 (eval $ac_try) 2>&5
32278 ac_status=$?
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); }; } &&
32281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32283 (eval $ac_try) 2>&5
32284 ac_status=$?
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); }; }; then
32287 wx_cv_size_t_is_ulong=no
32288else
32289 echo "$as_me: failed program was:" >&5
32290sed 's/^/| /' conftest.$ac_ext >&5
32291
32292wx_cv_size_t_is_ulong=yes
32293
32294fi
ac1cb8d3 32295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32296
32297fi
32298echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32299echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32300
32301 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32302 cat >>confdefs.h <<\_ACEOF
32303#define wxSIZE_T_IS_ULONG 1
32304_ACEOF
32305
32306 fi
32307fi
32308
32309ac_ext=c
32310ac_cpp='$CPP $CPPFLAGS'
32311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32313ac_compiler_gnu=$ac_cv_c_compiler_gnu
32314
32315
32316
32317echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32318echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32319if test "${wx_cv_struct_pw_gecos+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
32321else
32322
32323 cat >conftest.$ac_ext <<_ACEOF
32324/* confdefs.h. */
32325_ACEOF
32326cat confdefs.h >>conftest.$ac_ext
32327cat >>conftest.$ac_ext <<_ACEOF
32328/* end confdefs.h. */
32329#include <pwd.h>
32330int
32331main ()
32332{
32333
32334 char *p;
32335 struct passwd *pw;
32336 p = pw->pw_gecos;
32337
32338 ;
32339 return 0;
32340}
32341_ACEOF
32342rm -f conftest.$ac_objext
32343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32344 (eval $ac_compile) 2>conftest.er1
a848cd7e 32345 ac_status=$?
ac1cb8d3
VS
32346 grep -v '^ *+' conftest.er1 >conftest.err
32347 rm -f conftest.er1
32348 cat conftest.err >&5
a848cd7e
SC
32349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350 (exit $ac_status); } &&
5ff751d6 32351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32353 (eval $ac_try) 2>&5
32354 ac_status=$?
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); }; } &&
32357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32359 (eval $ac_try) 2>&5
32360 ac_status=$?
32361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362 (exit $ac_status); }; }; then
32363
32364 wx_cv_struct_pw_gecos=yes
32365
32366else
32367 echo "$as_me: failed program was:" >&5
32368sed 's/^/| /' conftest.$ac_ext >&5
32369
32370
32371 wx_cv_struct_pw_gecos=no
32372
32373
32374fi
ac1cb8d3 32375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32376
32377
32378fi
32379echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32380echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32381
32382if test "$wx_cv_struct_pw_gecos" = "yes"; then
32383 cat >>confdefs.h <<\_ACEOF
32384#define HAVE_PW_GECOS 1
32385_ACEOF
32386
32387fi
32388
32389
47a7e797 32390if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32391 cat >>confdefs.h <<\_ACEOF
32392#define wxUSE_WCHAR_T 1
32393_ACEOF
32394
32395
32396 WCSLEN_FOUND=0
32397 WCHAR_LINK=
32398
32399for ac_func in wcslen
32400do
32401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32402echo "$as_me:$LINENO: checking for $ac_func" >&5
32403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32404if eval "test \"\${$as_ac_var+set}\" = set"; then
32405 echo $ECHO_N "(cached) $ECHO_C" >&6
32406else
32407 cat >conftest.$ac_ext <<_ACEOF
32408/* confdefs.h. */
32409_ACEOF
32410cat confdefs.h >>conftest.$ac_ext
32411cat >>conftest.$ac_ext <<_ACEOF
32412/* end confdefs.h. */
ac1cb8d3
VS
32413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32415#define $ac_func innocuous_$ac_func
32416
a848cd7e
SC
32417/* System header to define __stub macros and hopefully few prototypes,
32418 which can conflict with char $ac_func (); below.
32419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32420 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32421
a848cd7e
SC
32422#ifdef __STDC__
32423# include <limits.h>
32424#else
32425# include <assert.h>
32426#endif
ac1cb8d3
VS
32427
32428#undef $ac_func
32429
a848cd7e
SC
32430/* Override any gcc2 internal prototype to avoid an error. */
32431#ifdef __cplusplus
32432extern "C"
32433{
32434#endif
32435/* We use char because int might match the return type of a gcc2
32436 builtin and then its argument prototype would still apply. */
32437char $ac_func ();
32438/* The GNU C library defines this for functions which it implements
32439 to always fail with ENOSYS. Some functions are actually named
32440 something starting with __ and the normal name is an alias. */
32441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32442choke me
32443#else
32444char (*f) () = $ac_func;
32445#endif
32446#ifdef __cplusplus
32447}
32448#endif
32449
32450int
32451main ()
32452{
32453return f != $ac_func;
32454 ;
32455 return 0;
32456}
32457_ACEOF
32458rm -f conftest.$ac_objext conftest$ac_exeext
32459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32460 (eval $ac_link) 2>conftest.er1
a848cd7e 32461 ac_status=$?
ac1cb8d3
VS
32462 grep -v '^ *+' conftest.er1 >conftest.err
32463 rm -f conftest.er1
32464 cat conftest.err >&5
a848cd7e
SC
32465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466 (exit $ac_status); } &&
5ff751d6 32467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32469 (eval $ac_try) 2>&5
32470 ac_status=$?
32471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 (exit $ac_status); }; } &&
32473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32475 (eval $ac_try) 2>&5
32476 ac_status=$?
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); }; }; then
32479 eval "$as_ac_var=yes"
32480else
32481 echo "$as_me: failed program was:" >&5
32482sed 's/^/| /' conftest.$ac_ext >&5
32483
32484eval "$as_ac_var=no"
32485fi
ac1cb8d3
VS
32486rm -f conftest.err conftest.$ac_objext \
32487 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32488fi
32489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32490echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32491if test `eval echo '${'$as_ac_var'}'` = yes; then
32492 cat >>confdefs.h <<_ACEOF
32493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32494_ACEOF
32495 WCSLEN_FOUND=1
32496fi
32497done
32498
32499
32500 if test "$WCSLEN_FOUND" = 0; then
32501 if test "$TOOLKIT" = "MSW"; then
32502 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32503echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32504if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32505 echo $ECHO_N "(cached) $ECHO_C" >&6
32506else
32507 ac_check_lib_save_LIBS=$LIBS
32508LIBS="-lmsvcrt $LIBS"
32509cat >conftest.$ac_ext <<_ACEOF
32510/* confdefs.h. */
32511_ACEOF
32512cat confdefs.h >>conftest.$ac_ext
32513cat >>conftest.$ac_ext <<_ACEOF
32514/* end confdefs.h. */
32515
32516/* Override any gcc2 internal prototype to avoid an error. */
32517#ifdef __cplusplus
32518extern "C"
32519#endif
32520/* We use char because int might match the return type of a gcc2
32521 builtin and then its argument prototype would still apply. */
32522char wcslen ();
32523int
32524main ()
32525{
32526wcslen ();
32527 ;
32528 return 0;
32529}
32530_ACEOF
32531rm -f conftest.$ac_objext conftest$ac_exeext
32532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32533 (eval $ac_link) 2>conftest.er1
a848cd7e 32534 ac_status=$?
ac1cb8d3
VS
32535 grep -v '^ *+' conftest.er1 >conftest.err
32536 rm -f conftest.er1
32537 cat conftest.err >&5
a848cd7e
SC
32538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539 (exit $ac_status); } &&
5ff751d6 32540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32542 (eval $ac_try) 2>&5
32543 ac_status=$?
32544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); }; } &&
32546 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32548 (eval $ac_try) 2>&5
32549 ac_status=$?
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); }; }; then
32552 ac_cv_lib_msvcrt_wcslen=yes
32553else
32554 echo "$as_me: failed program was:" >&5
32555sed 's/^/| /' conftest.$ac_ext >&5
32556
32557ac_cv_lib_msvcrt_wcslen=no
32558fi
ac1cb8d3
VS
32559rm -f conftest.err conftest.$ac_objext \
32560 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32561LIBS=$ac_check_lib_save_LIBS
32562fi
32563echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32564echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32565if test $ac_cv_lib_msvcrt_wcslen = yes; then
32566 WCHAR_OK=1
32567fi
32568
32569 else
32570 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32571echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32572if test "${ac_cv_lib_w_wcslen+set}" = set; then
32573 echo $ECHO_N "(cached) $ECHO_C" >&6
32574else
32575 ac_check_lib_save_LIBS=$LIBS
32576LIBS="-lw $LIBS"
32577cat >conftest.$ac_ext <<_ACEOF
32578/* confdefs.h. */
32579_ACEOF
32580cat confdefs.h >>conftest.$ac_ext
32581cat >>conftest.$ac_ext <<_ACEOF
32582/* end confdefs.h. */
32583
32584/* Override any gcc2 internal prototype to avoid an error. */
32585#ifdef __cplusplus
32586extern "C"
32587#endif
32588/* We use char because int might match the return type of a gcc2
32589 builtin and then its argument prototype would still apply. */
32590char wcslen ();
32591int
32592main ()
32593{
32594wcslen ();
32595 ;
32596 return 0;
32597}
32598_ACEOF
32599rm -f conftest.$ac_objext conftest$ac_exeext
32600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32601 (eval $ac_link) 2>conftest.er1
a848cd7e 32602 ac_status=$?
ac1cb8d3
VS
32603 grep -v '^ *+' conftest.er1 >conftest.err
32604 rm -f conftest.er1
32605 cat conftest.err >&5
a848cd7e
SC
32606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607 (exit $ac_status); } &&
5ff751d6 32608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32610 (eval $ac_try) 2>&5
32611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; } &&
32614 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32616 (eval $ac_try) 2>&5
32617 ac_status=$?
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); }; }; then
32620 ac_cv_lib_w_wcslen=yes
32621else
32622 echo "$as_me: failed program was:" >&5
32623sed 's/^/| /' conftest.$ac_ext >&5
32624
32625ac_cv_lib_w_wcslen=no
32626fi
ac1cb8d3
VS
32627rm -f conftest.err conftest.$ac_objext \
32628 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32629LIBS=$ac_check_lib_save_LIBS
32630fi
32631echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32632echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32633if test $ac_cv_lib_w_wcslen = yes; then
32634
32635 WCHAR_LINK=" -lw"
32636 WCSLEN_FOUND=1
32637
32638fi
32639
32640 fi
32641 fi
32642
32643 if test "$WCSLEN_FOUND" = 1; then
32644 cat >>confdefs.h <<\_ACEOF
32645#define HAVE_WCSLEN 1
32646_ACEOF
32647
32648 fi
32649
efdf6afe 32650 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
32651 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
32652 fi
32653
efdf6afe
VZ
32654 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32655echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32656if test "${ac_cv_type_mbstate_t+set}" = set; then
32657 echo $ECHO_N "(cached) $ECHO_C" >&6
32658else
32659 cat >conftest.$ac_ext <<_ACEOF
32660/* confdefs.h. */
32661_ACEOF
32662cat confdefs.h >>conftest.$ac_ext
32663cat >>conftest.$ac_ext <<_ACEOF
32664/* end confdefs.h. */
32665#include <wchar.h>
32666
32667int
32668main ()
32669{
32670if ((mbstate_t *) 0)
32671 return 0;
32672if (sizeof (mbstate_t))
32673 return 0;
32674 ;
32675 return 0;
32676}
32677_ACEOF
32678rm -f conftest.$ac_objext
32679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32680 (eval $ac_compile) 2>conftest.er1
32681 ac_status=$?
32682 grep -v '^ *+' conftest.er1 >conftest.err
32683 rm -f conftest.er1
32684 cat conftest.err >&5
32685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686 (exit $ac_status); } &&
5ff751d6 32687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
32688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32689 (eval $ac_try) 2>&5
32690 ac_status=$?
32691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692 (exit $ac_status); }; } &&
32693 { ac_try='test -s conftest.$ac_objext'
32694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32695 (eval $ac_try) 2>&5
32696 ac_status=$?
32697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698 (exit $ac_status); }; }; then
32699 ac_cv_type_mbstate_t=yes
32700else
32701 echo "$as_me: failed program was:" >&5
32702sed 's/^/| /' conftest.$ac_ext >&5
32703
32704ac_cv_type_mbstate_t=no
32705fi
32706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32707fi
32708echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32709echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32710if test $ac_cv_type_mbstate_t = yes; then
32711
32712cat >>confdefs.h <<_ACEOF
32713#define HAVE_MBSTATE_T 1
32714_ACEOF
32715
a848cd7e
SC
32716
32717for ac_func in wcsrtombs
32718do
32719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32720echo "$as_me:$LINENO: checking for $ac_func" >&5
32721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32722if eval "test \"\${$as_ac_var+set}\" = set"; then
32723 echo $ECHO_N "(cached) $ECHO_C" >&6
32724else
32725 cat >conftest.$ac_ext <<_ACEOF
32726/* confdefs.h. */
32727_ACEOF
32728cat confdefs.h >>conftest.$ac_ext
32729cat >>conftest.$ac_ext <<_ACEOF
32730/* end confdefs.h. */
ac1cb8d3
VS
32731/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32733#define $ac_func innocuous_$ac_func
32734
a848cd7e
SC
32735/* System header to define __stub macros and hopefully few prototypes,
32736 which can conflict with char $ac_func (); below.
32737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32738 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32739
a848cd7e
SC
32740#ifdef __STDC__
32741# include <limits.h>
32742#else
32743# include <assert.h>
32744#endif
ac1cb8d3
VS
32745
32746#undef $ac_func
32747
a848cd7e
SC
32748/* Override any gcc2 internal prototype to avoid an error. */
32749#ifdef __cplusplus
32750extern "C"
32751{
32752#endif
32753/* We use char because int might match the return type of a gcc2
32754 builtin and then its argument prototype would still apply. */
32755char $ac_func ();
32756/* The GNU C library defines this for functions which it implements
32757 to always fail with ENOSYS. Some functions are actually named
32758 something starting with __ and the normal name is an alias. */
32759#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32760choke me
32761#else
32762char (*f) () = $ac_func;
32763#endif
32764#ifdef __cplusplus
32765}
32766#endif
32767
32768int
32769main ()
32770{
32771return f != $ac_func;
32772 ;
32773 return 0;
32774}
32775_ACEOF
32776rm -f conftest.$ac_objext conftest$ac_exeext
32777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32778 (eval $ac_link) 2>conftest.er1
a848cd7e 32779 ac_status=$?
ac1cb8d3
VS
32780 grep -v '^ *+' conftest.er1 >conftest.err
32781 rm -f conftest.er1
32782 cat conftest.err >&5
a848cd7e
SC
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); } &&
5ff751d6 32785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32787 (eval $ac_try) 2>&5
32788 ac_status=$?
32789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790 (exit $ac_status); }; } &&
32791 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32793 (eval $ac_try) 2>&5
32794 ac_status=$?
32795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796 (exit $ac_status); }; }; then
32797 eval "$as_ac_var=yes"
32798else
32799 echo "$as_me: failed program was:" >&5
32800sed 's/^/| /' conftest.$ac_ext >&5
32801
32802eval "$as_ac_var=no"
32803fi
ac1cb8d3
VS
32804rm -f conftest.err conftest.$ac_objext \
32805 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32806fi
32807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32808echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32809if test `eval echo '${'$as_ac_var'}'` = yes; then
32810 cat >>confdefs.h <<_ACEOF
32811#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32812_ACEOF
32813
32814fi
32815done
32816
efdf6afe
VZ
32817fi
32818
a848cd7e
SC
32819else
32820 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32821echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32822fi
32823
32824
32825
32826ac_ext=cc
32827ac_cpp='$CXXCPP $CPPFLAGS'
32828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32831
32832
32833
4a767dd5
VZ
32834
32835for ac_func in snprintf vsnprintf
a848cd7e
SC
32836do
32837as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32838echo "$as_me:$LINENO: checking for $ac_func" >&5
32839echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32840if eval "test \"\${$as_ac_var+set}\" = set"; then
32841 echo $ECHO_N "(cached) $ECHO_C" >&6
32842else
32843 cat >conftest.$ac_ext <<_ACEOF
32844/* confdefs.h. */
32845_ACEOF
32846cat confdefs.h >>conftest.$ac_ext
32847cat >>conftest.$ac_ext <<_ACEOF
32848/* end confdefs.h. */
ac1cb8d3
VS
32849/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32851#define $ac_func innocuous_$ac_func
32852
a848cd7e
SC
32853/* System header to define __stub macros and hopefully few prototypes,
32854 which can conflict with char $ac_func (); below.
32855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32856 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32857
a848cd7e
SC
32858#ifdef __STDC__
32859# include <limits.h>
32860#else
32861# include <assert.h>
32862#endif
ac1cb8d3
VS
32863
32864#undef $ac_func
32865
a848cd7e
SC
32866/* Override any gcc2 internal prototype to avoid an error. */
32867#ifdef __cplusplus
32868extern "C"
32869{
32870#endif
32871/* We use char because int might match the return type of a gcc2
32872 builtin and then its argument prototype would still apply. */
32873char $ac_func ();
32874/* The GNU C library defines this for functions which it implements
32875 to always fail with ENOSYS. Some functions are actually named
32876 something starting with __ and the normal name is an alias. */
32877#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32878choke me
32879#else
32880char (*f) () = $ac_func;
32881#endif
32882#ifdef __cplusplus
32883}
32884#endif
32885
32886int
32887main ()
32888{
32889return f != $ac_func;
32890 ;
32891 return 0;
32892}
32893_ACEOF
32894rm -f conftest.$ac_objext conftest$ac_exeext
32895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32896 (eval $ac_link) 2>conftest.er1
a848cd7e 32897 ac_status=$?
ac1cb8d3
VS
32898 grep -v '^ *+' conftest.er1 >conftest.err
32899 rm -f conftest.er1
32900 cat conftest.err >&5
a848cd7e
SC
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); } &&
5ff751d6 32903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32905 (eval $ac_try) 2>&5
32906 ac_status=$?
32907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908 (exit $ac_status); }; } &&
32909 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32911 (eval $ac_try) 2>&5
32912 ac_status=$?
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); }; }; then
32915 eval "$as_ac_var=yes"
32916else
32917 echo "$as_me: failed program was:" >&5
32918sed 's/^/| /' conftest.$ac_ext >&5
32919
32920eval "$as_ac_var=no"
32921fi
ac1cb8d3
VS
32922rm -f conftest.err conftest.$ac_objext \
32923 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32924fi
32925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32926echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32927if test `eval echo '${'$as_ac_var'}'` = yes; then
32928 cat >>confdefs.h <<_ACEOF
32929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32930_ACEOF
32931
32932fi
32933done
32934
32935
32936if test "$ac_cv_func_vsnprintf" = "yes"; then
32937 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
32938echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
32939if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
32940 echo $ECHO_N "(cached) $ECHO_C" >&6
32941else
32942
efdf6afe 32943 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32944/* confdefs.h. */
32945_ACEOF
32946cat confdefs.h >>conftest.$ac_ext
32947cat >>conftest.$ac_ext <<_ACEOF
32948/* end confdefs.h. */
32949
32950 #include <stdio.h>
32951 #include <stdarg.h>
efdf6afe
VZ
32952 #ifdef __MSL__
32953 #if __MSL__ >= 0x6000
32954 namespace std {}
32955 using namespace std;
32956 #endif
32957 #endif
a848cd7e
SC
32958
32959int
32960main ()
32961{
32962
32963 char *buf;
32964 va_list ap;
62fa8b3a 32965 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
32966
32967 ;
32968 return 0;
32969}
32970_ACEOF
32971rm -f conftest.$ac_objext
32972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32973 (eval $ac_compile) 2>conftest.er1
32974 ac_status=$?
32975 grep -v '^ *+' conftest.er1 >conftest.err
32976 rm -f conftest.er1
32977 cat conftest.err >&5
32978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979 (exit $ac_status); } &&
5ff751d6 32980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
32981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32982 (eval $ac_try) 2>&5
32983 ac_status=$?
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); }; } &&
32986 { ac_try='test -s conftest.$ac_objext'
32987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32988 (eval $ac_try) 2>&5
32989 ac_status=$?
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; }; then
32992 wx_cv_func_vsnprintf_decl=yes
32993else
32994 echo "$as_me: failed program was:" >&5
32995sed 's/^/| /' conftest.$ac_ext >&5
32996
a848cd7e
SC
32997wx_cv_func_vsnprintf_decl=no
32998
32999fi
ac1cb8d3 33000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33001
33002
33003fi
33004echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33005echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33006
33007 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33008 cat >>confdefs.h <<\_ACEOF
33009#define HAVE_VSNPRINTF_DECL 1
33010_ACEOF
33011
62fa8b3a
MW
33012
33013 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33014echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33015if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33016 echo $ECHO_N "(cached) $ECHO_C" >&6
33017else
33018
33019 cat >conftest.$ac_ext <<_ACEOF
33020/* confdefs.h. */
33021_ACEOF
33022cat confdefs.h >>conftest.$ac_ext
33023cat >>conftest.$ac_ext <<_ACEOF
33024/* end confdefs.h. */
33025
33026 #include <stdio.h>
33027 #include <stdarg.h>
33028 #ifdef __MSL__
33029 #if __MSL__ >= 0x6000
33030 namespace std {}
33031 using namespace std;
33032 #endif
33033 #endif
33034
33035int
33036main ()
33037{
33038
33039 char *buf;
33040 va_list ap;
33041 const char *fmt = "%s";
33042 vsnprintf(buf, 10u, fmt, ap);
33043
33044 ;
33045 return 0;
33046}
33047_ACEOF
33048rm -f conftest.$ac_objext
33049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33050 (eval $ac_compile) 2>conftest.er1
33051 ac_status=$?
33052 grep -v '^ *+' conftest.er1 >conftest.err
33053 rm -f conftest.er1
33054 cat conftest.err >&5
33055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); } &&
5ff751d6 33057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33059 (eval $ac_try) 2>&5
33060 ac_status=$?
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); }; } &&
33063 { ac_try='test -s conftest.$ac_objext'
33064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33065 (eval $ac_try) 2>&5
33066 ac_status=$?
33067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068 (exit $ac_status); }; }; then
33069 wx_cv_func_broken_vsnprintf_decl=no
33070else
33071 echo "$as_me: failed program was:" >&5
33072sed 's/^/| /' conftest.$ac_ext >&5
33073
33074wx_cv_func_broken_vsnprintf_decl=yes
33075
33076fi
33077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33078
33079
33080fi
33081echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33082echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33083
33084 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33085 cat >>confdefs.h <<\_ACEOF
33086#define HAVE_BROKEN_VSNPRINTF_DECL 1
33087_ACEOF
33088
33089 fi
a848cd7e
SC
33090 fi
33091fi
33092
4a767dd5
VZ
33093if test "$ac_cv_func_snprintf" = "yes"; then
33094 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33095echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33096if test "${wx_cv_func_snprintf_decl+set}" = set; then
33097 echo $ECHO_N "(cached) $ECHO_C" >&6
33098else
33099
33100 cat >conftest.$ac_ext <<_ACEOF
33101/* confdefs.h. */
33102_ACEOF
33103cat confdefs.h >>conftest.$ac_ext
33104cat >>conftest.$ac_ext <<_ACEOF
33105/* end confdefs.h. */
33106
33107 #include <stdio.h>
33108 #include <stdarg.h>
33109 #ifdef __MSL__
33110 #if __MSL__ >= 0x6000
33111 namespace std {}
33112 using namespace std;
33113 #endif
33114 #endif
33115
33116int
33117main ()
33118{
33119
33120 char *buf;
62fa8b3a 33121 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33122
33123 ;
33124 return 0;
33125}
33126_ACEOF
33127rm -f conftest.$ac_objext
33128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33129 (eval $ac_compile) 2>conftest.er1
33130 ac_status=$?
33131 grep -v '^ *+' conftest.er1 >conftest.err
33132 rm -f conftest.er1
33133 cat conftest.err >&5
33134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135 (exit $ac_status); } &&
5ff751d6 33136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
33137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33138 (eval $ac_try) 2>&5
33139 ac_status=$?
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); }; } &&
33142 { ac_try='test -s conftest.$ac_objext'
33143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33144 (eval $ac_try) 2>&5
33145 ac_status=$?
33146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147 (exit $ac_status); }; }; then
33148 wx_cv_func_snprintf_decl=yes
33149else
33150 echo "$as_me: failed program was:" >&5
33151sed 's/^/| /' conftest.$ac_ext >&5
33152
33153wx_cv_func_snprintf_decl=no
33154
33155fi
33156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33157
33158
33159fi
33160echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33161echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33162
33163 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33164 cat >>confdefs.h <<\_ACEOF
33165#define HAVE_SNPRINTF_DECL 1
33166_ACEOF
33167
62fa8b3a
MW
33168
33169 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33170echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33171if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33172 echo $ECHO_N "(cached) $ECHO_C" >&6
33173else
33174
33175 cat >conftest.$ac_ext <<_ACEOF
33176/* confdefs.h. */
33177_ACEOF
33178cat confdefs.h >>conftest.$ac_ext
33179cat >>conftest.$ac_ext <<_ACEOF
33180/* end confdefs.h. */
33181
33182 #include <stdio.h>
33183 #include <stdarg.h>
33184 #ifdef __MSL__
33185 #if __MSL__ >= 0x6000
33186 namespace std {}
33187 using namespace std;
33188 #endif
33189 #endif
33190
33191int
33192main ()
33193{
33194
33195 char *buf;
33196 const char *fmt = "%s";
33197 snprintf(buf, 10u, fmt, "wx");
33198
33199 ;
33200 return 0;
33201}
33202_ACEOF
33203rm -f conftest.$ac_objext
33204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33205 (eval $ac_compile) 2>conftest.er1
33206 ac_status=$?
33207 grep -v '^ *+' conftest.er1 >conftest.err
33208 rm -f conftest.er1
33209 cat conftest.err >&5
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); } &&
5ff751d6 33212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33214 (eval $ac_try) 2>&5
33215 ac_status=$?
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); }; } &&
33218 { ac_try='test -s conftest.$ac_objext'
33219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220 (eval $ac_try) 2>&5
33221 ac_status=$?
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); }; }; then
33224 wx_cv_func_broken_snprintf_decl=no
33225else
33226 echo "$as_me: failed program was:" >&5
33227sed 's/^/| /' conftest.$ac_ext >&5
33228
33229wx_cv_func_broken_snprintf_decl=yes
33230
33231fi
33232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33233
33234
33235fi
33236echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33237echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33238
33239 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33240 cat >>confdefs.h <<\_ACEOF
33241#define HAVE_BROKEN_SNPRINTF_DECL 1
33242_ACEOF
33243
33244 fi
4a767dd5
VZ
33245 fi
33246fi
33247
a848cd7e
SC
33248if test "$wxUSE_UNICODE" = yes; then
33249
33250
33251
fbe47c7b
VS
33252
33253
33254
33255for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33256do
33257as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33258echo "$as_me:$LINENO: checking for $ac_func" >&5
33259echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33260if eval "test \"\${$as_ac_var+set}\" = set"; then
33261 echo $ECHO_N "(cached) $ECHO_C" >&6
33262else
33263 cat >conftest.$ac_ext <<_ACEOF
33264/* confdefs.h. */
33265_ACEOF
33266cat confdefs.h >>conftest.$ac_ext
33267cat >>conftest.$ac_ext <<_ACEOF
33268/* end confdefs.h. */
ac1cb8d3
VS
33269/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33271#define $ac_func innocuous_$ac_func
33272
a848cd7e
SC
33273/* System header to define __stub macros and hopefully few prototypes,
33274 which can conflict with char $ac_func (); below.
33275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33276 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33277
a848cd7e
SC
33278#ifdef __STDC__
33279# include <limits.h>
33280#else
33281# include <assert.h>
33282#endif
ac1cb8d3
VS
33283
33284#undef $ac_func
33285
a848cd7e
SC
33286/* Override any gcc2 internal prototype to avoid an error. */
33287#ifdef __cplusplus
33288extern "C"
33289{
33290#endif
33291/* We use char because int might match the return type of a gcc2
33292 builtin and then its argument prototype would still apply. */
33293char $ac_func ();
33294/* The GNU C library defines this for functions which it implements
33295 to always fail with ENOSYS. Some functions are actually named
33296 something starting with __ and the normal name is an alias. */
33297#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33298choke me
33299#else
33300char (*f) () = $ac_func;
33301#endif
33302#ifdef __cplusplus
33303}
33304#endif
33305
33306int
33307main ()
33308{
33309return f != $ac_func;
33310 ;
33311 return 0;
33312}
33313_ACEOF
33314rm -f conftest.$ac_objext conftest$ac_exeext
33315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33316 (eval $ac_link) 2>conftest.er1
a848cd7e 33317 ac_status=$?
ac1cb8d3
VS
33318 grep -v '^ *+' conftest.er1 >conftest.err
33319 rm -f conftest.er1
33320 cat conftest.err >&5
a848cd7e
SC
33321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322 (exit $ac_status); } &&
5ff751d6 33323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33325 (eval $ac_try) 2>&5
33326 ac_status=$?
33327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33328 (exit $ac_status); }; } &&
33329 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33331 (eval $ac_try) 2>&5
33332 ac_status=$?
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); }; }; then
33335 eval "$as_ac_var=yes"
33336else
33337 echo "$as_me: failed program was:" >&5
33338sed 's/^/| /' conftest.$ac_ext >&5
33339
33340eval "$as_ac_var=no"
33341fi
ac1cb8d3
VS
33342rm -f conftest.err conftest.$ac_objext \
33343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33344fi
33345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33346echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33347if test `eval echo '${'$as_ac_var'}'` = yes; then
33348 cat >>confdefs.h <<_ACEOF
33349#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33350_ACEOF
33351
33352fi
33353done
33354
33355
33356 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33357echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33358 cat >conftest.$ac_ext <<_ACEOF
33359/* confdefs.h. */
33360_ACEOF
33361cat confdefs.h >>conftest.$ac_ext
33362cat >>conftest.$ac_ext <<_ACEOF
33363/* end confdefs.h. */
33364#include <wchar.h>
33365int
33366main ()
33367{
33368&_vsnwprintf;
33369 ;
33370 return 0;
33371}
33372_ACEOF
33373rm -f conftest.$ac_objext
33374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33375 (eval $ac_compile) 2>conftest.er1
a848cd7e 33376 ac_status=$?
ac1cb8d3
VS
33377 grep -v '^ *+' conftest.er1 >conftest.err
33378 rm -f conftest.er1
33379 cat conftest.err >&5
a848cd7e
SC
33380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381 (exit $ac_status); } &&
5ff751d6 33382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33384 (eval $ac_try) 2>&5
33385 ac_status=$?
33386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387 (exit $ac_status); }; } &&
33388 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33390 (eval $ac_try) 2>&5
33391 ac_status=$?
33392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393 (exit $ac_status); }; }; then
33394 echo "$as_me:$LINENO: result: yes" >&5
33395echo "${ECHO_T}yes" >&6
33396 cat >>confdefs.h <<\_ACEOF
33397#define HAVE__VSNWPRINTF 1
33398_ACEOF
33399
33400else
33401 echo "$as_me: failed program was:" >&5
33402sed 's/^/| /' conftest.$ac_ext >&5
33403
33404echo "$as_me:$LINENO: result: no" >&5
33405echo "${ECHO_T}no" >&6
33406fi
ac1cb8d3 33407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33408fi
33409
33410ac_ext=c
33411ac_cpp='$CPP $CPPFLAGS'
33412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33414ac_compiler_gnu=$ac_cv_c_compiler_gnu
33415
33416
6ebeb4c7
VZ
33417if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33418
33419for ac_func in fnmatch
33420do
33421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33422echo "$as_me:$LINENO: checking for $ac_func" >&5
33423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33424if eval "test \"\${$as_ac_var+set}\" = set"; then
33425 echo $ECHO_N "(cached) $ECHO_C" >&6
33426else
33427 cat >conftest.$ac_ext <<_ACEOF
33428/* confdefs.h. */
33429_ACEOF
33430cat confdefs.h >>conftest.$ac_ext
33431cat >>conftest.$ac_ext <<_ACEOF
33432/* end confdefs.h. */
33433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33435#define $ac_func innocuous_$ac_func
33436
33437/* System header to define __stub macros and hopefully few prototypes,
33438 which can conflict with char $ac_func (); below.
33439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33440 <limits.h> exists even on freestanding compilers. */
33441
33442#ifdef __STDC__
33443# include <limits.h>
33444#else
33445# include <assert.h>
33446#endif
33447
33448#undef $ac_func
33449
33450/* Override any gcc2 internal prototype to avoid an error. */
33451#ifdef __cplusplus
33452extern "C"
33453{
33454#endif
33455/* We use char because int might match the return type of a gcc2
33456 builtin and then its argument prototype would still apply. */
33457char $ac_func ();
33458/* The GNU C library defines this for functions which it implements
33459 to always fail with ENOSYS. Some functions are actually named
33460 something starting with __ and the normal name is an alias. */
33461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33462choke me
33463#else
33464char (*f) () = $ac_func;
33465#endif
33466#ifdef __cplusplus
33467}
33468#endif
33469
33470int
33471main ()
33472{
33473return f != $ac_func;
33474 ;
33475 return 0;
33476}
33477_ACEOF
33478rm -f conftest.$ac_objext conftest$ac_exeext
33479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33480 (eval $ac_link) 2>conftest.er1
33481 ac_status=$?
33482 grep -v '^ *+' conftest.er1 >conftest.err
33483 rm -f conftest.er1
33484 cat conftest.err >&5
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); } &&
5ff751d6 33487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
33488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33489 (eval $ac_try) 2>&5
33490 ac_status=$?
33491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 (exit $ac_status); }; } &&
33493 { ac_try='test -s conftest$ac_exeext'
33494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33495 (eval $ac_try) 2>&5
33496 ac_status=$?
33497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33498 (exit $ac_status); }; }; then
33499 eval "$as_ac_var=yes"
33500else
33501 echo "$as_me: failed program was:" >&5
33502sed 's/^/| /' conftest.$ac_ext >&5
33503
33504eval "$as_ac_var=no"
33505fi
33506rm -f conftest.err conftest.$ac_objext \
33507 conftest$ac_exeext conftest.$ac_ext
33508fi
33509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33510echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33511if test `eval echo '${'$as_ac_var'}'` = yes; then
33512 cat >>confdefs.h <<_ACEOF
33513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33514_ACEOF
33515
33516fi
33517done
33518
33519fi
33520
33521if test "$wxUSE_FILE" = "yes"; then
33522
33523for ac_func in fsync
33524do
33525as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33526echo "$as_me:$LINENO: checking for $ac_func" >&5
33527echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33528if eval "test \"\${$as_ac_var+set}\" = set"; then
33529 echo $ECHO_N "(cached) $ECHO_C" >&6
33530else
33531 cat >conftest.$ac_ext <<_ACEOF
33532/* confdefs.h. */
33533_ACEOF
33534cat confdefs.h >>conftest.$ac_ext
33535cat >>conftest.$ac_ext <<_ACEOF
33536/* end confdefs.h. */
33537/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33539#define $ac_func innocuous_$ac_func
33540
33541/* System header to define __stub macros and hopefully few prototypes,
33542 which can conflict with char $ac_func (); below.
33543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33544 <limits.h> exists even on freestanding compilers. */
33545
33546#ifdef __STDC__
33547# include <limits.h>
33548#else
33549# include <assert.h>
33550#endif
33551
33552#undef $ac_func
33553
33554/* Override any gcc2 internal prototype to avoid an error. */
33555#ifdef __cplusplus
33556extern "C"
33557{
33558#endif
33559/* We use char because int might match the return type of a gcc2
33560 builtin and then its argument prototype would still apply. */
33561char $ac_func ();
33562/* The GNU C library defines this for functions which it implements
33563 to always fail with ENOSYS. Some functions are actually named
33564 something starting with __ and the normal name is an alias. */
33565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33566choke me
33567#else
33568char (*f) () = $ac_func;
33569#endif
33570#ifdef __cplusplus
33571}
33572#endif
33573
33574int
33575main ()
33576{
33577return f != $ac_func;
33578 ;
33579 return 0;
33580}
33581_ACEOF
33582rm -f conftest.$ac_objext conftest$ac_exeext
33583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33584 (eval $ac_link) 2>conftest.er1
33585 ac_status=$?
33586 grep -v '^ *+' conftest.er1 >conftest.err
33587 rm -f conftest.er1
33588 cat conftest.err >&5
33589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590 (exit $ac_status); } &&
5ff751d6 33591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
33592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33593 (eval $ac_try) 2>&5
33594 ac_status=$?
33595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596 (exit $ac_status); }; } &&
33597 { ac_try='test -s conftest$ac_exeext'
33598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33599 (eval $ac_try) 2>&5
33600 ac_status=$?
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); }; }; then
33603 eval "$as_ac_var=yes"
33604else
33605 echo "$as_me: failed program was:" >&5
33606sed 's/^/| /' conftest.$ac_ext >&5
33607
33608eval "$as_ac_var=no"
33609fi
33610rm -f conftest.err conftest.$ac_objext \
33611 conftest$ac_exeext conftest.$ac_ext
33612fi
33613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33614echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33615if test `eval echo '${'$as_ac_var'}'` = yes; then
33616 cat >>confdefs.h <<_ACEOF
33617#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33618_ACEOF
33619
33620fi
33621done
33622
33623fi
a848cd7e
SC
33624
33625
33626if test "$TOOLKIT" != "MSW"; then
33627
33628
33629
33630
33631ac_ext=cc
33632ac_cpp='$CXXCPP $CPPFLAGS'
33633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33636
33637
33638
33639
33640# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33641if test "${with_libiconv_prefix+set}" = set; then
33642 withval="$with_libiconv_prefix"
33643
33644 for dir in `echo "$withval" | tr : ' '`; do
33645 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33646 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33647 done
33648
33649fi;
33650
33651 echo "$as_me:$LINENO: checking for iconv" >&5
33652echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33653if test "${am_cv_func_iconv+set}" = set; then
33654 echo $ECHO_N "(cached) $ECHO_C" >&6
33655else
33656
33657 am_cv_func_iconv="no, consider installing GNU libiconv"
33658 am_cv_lib_iconv=no
33659 cat >conftest.$ac_ext <<_ACEOF
33660/* confdefs.h. */
33661_ACEOF
33662cat confdefs.h >>conftest.$ac_ext
33663cat >>conftest.$ac_ext <<_ACEOF
33664/* end confdefs.h. */
33665#include <stdlib.h>
33666#include <iconv.h>
33667int
33668main ()
33669{
33670iconv_t cd = iconv_open("","");
33671 iconv(cd,NULL,NULL,NULL,NULL);
33672 iconv_close(cd);
33673 ;
33674 return 0;
33675}
33676_ACEOF
33677rm -f conftest.$ac_objext conftest$ac_exeext
33678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33679 (eval $ac_link) 2>conftest.er1
a848cd7e 33680 ac_status=$?
ac1cb8d3
VS
33681 grep -v '^ *+' conftest.er1 >conftest.err
33682 rm -f conftest.er1
33683 cat conftest.err >&5
a848cd7e
SC
33684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685 (exit $ac_status); } &&
5ff751d6 33686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33688 (eval $ac_try) 2>&5
33689 ac_status=$?
33690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691 (exit $ac_status); }; } &&
33692 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33694 (eval $ac_try) 2>&5
33695 ac_status=$?
33696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33697 (exit $ac_status); }; }; then
33698 am_cv_func_iconv=yes
33699else
33700 echo "$as_me: failed program was:" >&5
33701sed 's/^/| /' conftest.$ac_ext >&5
33702
33703fi
ac1cb8d3
VS
33704rm -f conftest.err conftest.$ac_objext \
33705 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33706 if test "$am_cv_func_iconv" != yes; then
33707 am_save_LIBS="$LIBS"
33708 LIBS="$LIBS -liconv"
33709 cat >conftest.$ac_ext <<_ACEOF
33710/* confdefs.h. */
33711_ACEOF
33712cat confdefs.h >>conftest.$ac_ext
33713cat >>conftest.$ac_ext <<_ACEOF
33714/* end confdefs.h. */
33715#include <stdlib.h>
33716#include <iconv.h>
33717int
33718main ()
33719{
33720iconv_t cd = iconv_open("","");
33721 iconv(cd,NULL,NULL,NULL,NULL);
33722 iconv_close(cd);
33723 ;
33724 return 0;
33725}
33726_ACEOF
33727rm -f conftest.$ac_objext conftest$ac_exeext
33728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33729 (eval $ac_link) 2>conftest.er1
a848cd7e 33730 ac_status=$?
ac1cb8d3
VS
33731 grep -v '^ *+' conftest.er1 >conftest.err
33732 rm -f conftest.er1
33733 cat conftest.err >&5
a848cd7e
SC
33734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735 (exit $ac_status); } &&
5ff751d6 33736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33738 (eval $ac_try) 2>&5
33739 ac_status=$?
33740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741 (exit $ac_status); }; } &&
33742 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33744 (eval $ac_try) 2>&5
33745 ac_status=$?
33746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747 (exit $ac_status); }; }; then
33748 am_cv_lib_iconv=yes
33749 am_cv_func_iconv=yes
33750else
33751 echo "$as_me: failed program was:" >&5
33752sed 's/^/| /' conftest.$ac_ext >&5
33753
33754fi
ac1cb8d3
VS
33755rm -f conftest.err conftest.$ac_objext \
33756 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33757 LIBS="$am_save_LIBS"
33758 fi
33759
33760fi
33761echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33762echo "${ECHO_T}$am_cv_func_iconv" >&6
33763 if test "$am_cv_func_iconv" = yes; then
33764
33765cat >>confdefs.h <<\_ACEOF
33766#define HAVE_ICONV 1
33767_ACEOF
33768
33769 echo "$as_me:$LINENO: checking if iconv needs const" >&5
33770echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33771if test "${wx_cv_func_iconv_const+set}" = set; then
33772 echo $ECHO_N "(cached) $ECHO_C" >&6
33773else
33774 cat >conftest.$ac_ext <<_ACEOF
33775/* confdefs.h. */
33776_ACEOF
33777cat confdefs.h >>conftest.$ac_ext
33778cat >>conftest.$ac_ext <<_ACEOF
33779/* end confdefs.h. */
33780
33781#include <stdlib.h>
33782#include <iconv.h>
33783extern
33784#ifdef __cplusplus
33785"C"
33786#endif
33787#if defined(__STDC__) || defined(__cplusplus)
33788size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33789#else
33790size_t iconv();
33791#endif
33792
33793int
33794main ()
33795{
33796
33797 ;
33798 return 0;
33799}
33800_ACEOF
33801rm -f conftest.$ac_objext
33802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33803 (eval $ac_compile) 2>conftest.er1
a848cd7e 33804 ac_status=$?
ac1cb8d3
VS
33805 grep -v '^ *+' conftest.er1 >conftest.err
33806 rm -f conftest.er1
33807 cat conftest.err >&5
a848cd7e
SC
33808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); } &&
5ff751d6 33810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33812 (eval $ac_try) 2>&5
33813 ac_status=$?
33814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815 (exit $ac_status); }; } &&
33816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33818 (eval $ac_try) 2>&5
33819 ac_status=$?
33820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821 (exit $ac_status); }; }; then
33822 wx_cv_func_iconv_const="no"
33823else
33824 echo "$as_me: failed program was:" >&5
33825sed 's/^/| /' conftest.$ac_ext >&5
33826
33827wx_cv_func_iconv_const="yes"
33828
33829fi
ac1cb8d3 33830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33831
33832fi
33833echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33834echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33835
33836 iconv_const=
33837 if test "x$wx_cv_func_iconv_const" = "xyes"; then
33838 iconv_const="const"
33839 fi
33840
33841
33842cat >>confdefs.h <<_ACEOF
33843#define ICONV_CONST $iconv_const
33844_ACEOF
33845
33846 fi
33847 LIBICONV=
33848 if test "$am_cv_lib_iconv" = yes; then
33849 LIBICONV="-liconv"
33850 fi
33851
33852
33853LIBS="$LIBICONV $LIBS"
33854ac_ext=c
33855ac_cpp='$CPP $CPPFLAGS'
33856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33858ac_compiler_gnu=$ac_cv_c_compiler_gnu
33859
33860
33861if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33862
33863for ac_func in sigaction
33864do
33865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33866echo "$as_me:$LINENO: checking for $ac_func" >&5
33867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33868if eval "test \"\${$as_ac_var+set}\" = set"; then
33869 echo $ECHO_N "(cached) $ECHO_C" >&6
33870else
33871 cat >conftest.$ac_ext <<_ACEOF
33872/* confdefs.h. */
33873_ACEOF
33874cat confdefs.h >>conftest.$ac_ext
33875cat >>conftest.$ac_ext <<_ACEOF
33876/* end confdefs.h. */
ac1cb8d3
VS
33877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33879#define $ac_func innocuous_$ac_func
33880
a848cd7e
SC
33881/* System header to define __stub macros and hopefully few prototypes,
33882 which can conflict with char $ac_func (); below.
33883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33884 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33885
a848cd7e
SC
33886#ifdef __STDC__
33887# include <limits.h>
33888#else
33889# include <assert.h>
33890#endif
ac1cb8d3
VS
33891
33892#undef $ac_func
33893
a848cd7e
SC
33894/* Override any gcc2 internal prototype to avoid an error. */
33895#ifdef __cplusplus
33896extern "C"
33897{
33898#endif
33899/* We use char because int might match the return type of a gcc2
33900 builtin and then its argument prototype would still apply. */
33901char $ac_func ();
33902/* The GNU C library defines this for functions which it implements
33903 to always fail with ENOSYS. Some functions are actually named
33904 something starting with __ and the normal name is an alias. */
33905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33906choke me
33907#else
33908char (*f) () = $ac_func;
33909#endif
33910#ifdef __cplusplus
33911}
33912#endif
33913
33914int
33915main ()
33916{
33917return f != $ac_func;
33918 ;
33919 return 0;
33920}
33921_ACEOF
33922rm -f conftest.$ac_objext conftest$ac_exeext
33923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33924 (eval $ac_link) 2>conftest.er1
a848cd7e 33925 ac_status=$?
ac1cb8d3
VS
33926 grep -v '^ *+' conftest.er1 >conftest.err
33927 rm -f conftest.er1
33928 cat conftest.err >&5
a848cd7e
SC
33929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); } &&
5ff751d6 33931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33933 (eval $ac_try) 2>&5
33934 ac_status=$?
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); }; } &&
33937 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33939 (eval $ac_try) 2>&5
33940 ac_status=$?
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); }; }; then
33943 eval "$as_ac_var=yes"
33944else
33945 echo "$as_me: failed program was:" >&5
33946sed 's/^/| /' conftest.$ac_ext >&5
33947
33948eval "$as_ac_var=no"
33949fi
ac1cb8d3
VS
33950rm -f conftest.err conftest.$ac_objext \
33951 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33952fi
33953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33954echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33955if test `eval echo '${'$as_ac_var'}'` = yes; then
33956 cat >>confdefs.h <<_ACEOF
33957#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33958_ACEOF
33959
33960fi
33961done
33962
33963
33964 if test "$ac_cv_func_sigaction" = "no"; then
33965 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
33966echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
33967 wxUSE_ON_FATAL_EXCEPTION=no
33968 fi
33969
33970 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
33971
33972
33973 ac_ext=cc
33974ac_cpp='$CXXCPP $CPPFLAGS'
33975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33978
33979
33980 echo "$as_me:$LINENO: checking for sa_handler type" >&5
33981echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
33982if test "${wx_cv_type_sa_handler+set}" = set; then
33983 echo $ECHO_N "(cached) $ECHO_C" >&6
33984else
33985
33986 cat >conftest.$ac_ext <<_ACEOF
33987/* confdefs.h. */
33988_ACEOF
33989cat confdefs.h >>conftest.$ac_ext
33990cat >>conftest.$ac_ext <<_ACEOF
33991/* end confdefs.h. */
33992#include <signal.h>
33993int
33994main ()
33995{
33996
33997 extern void testSigHandler(int);
33998
33999 struct sigaction sa;
34000 sa.sa_handler = testSigHandler;
34001
34002 ;
34003 return 0;
34004}
34005_ACEOF
34006rm -f conftest.$ac_objext
34007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34008 (eval $ac_compile) 2>conftest.er1
a848cd7e 34009 ac_status=$?
ac1cb8d3
VS
34010 grep -v '^ *+' conftest.er1 >conftest.err
34011 rm -f conftest.er1
34012 cat conftest.err >&5
a848cd7e
SC
34013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014 (exit $ac_status); } &&
5ff751d6 34015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34017 (eval $ac_try) 2>&5
34018 ac_status=$?
34019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020 (exit $ac_status); }; } &&
34021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34023 (eval $ac_try) 2>&5
34024 ac_status=$?
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); }; }; then
34027
34028 wx_cv_type_sa_handler=int
34029
34030else
34031 echo "$as_me: failed program was:" >&5
34032sed 's/^/| /' conftest.$ac_ext >&5
34033
34034
34035 wx_cv_type_sa_handler=void
34036
34037fi
ac1cb8d3 34038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34039
34040fi
34041echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34042echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34043
34044 ac_ext=c
34045ac_cpp='$CPP $CPPFLAGS'
34046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34048ac_compiler_gnu=$ac_cv_c_compiler_gnu
34049
34050
34051 cat >>confdefs.h <<_ACEOF
34052#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34053_ACEOF
34054
34055 fi
34056fi
34057
eaff0f0d
VZ
34058if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34059
34060
34061 ac_ext=cc
34062ac_cpp='$CXXCPP $CPPFLAGS'
34063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34066
34067
34068 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34069echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34070if test "${wx_cv_func_backtrace+set}" = set; then
34071 echo $ECHO_N "(cached) $ECHO_C" >&6
34072else
34073
34074 cat >conftest.$ac_ext <<_ACEOF
34075/* confdefs.h. */
34076_ACEOF
34077cat confdefs.h >>conftest.$ac_ext
34078cat >>conftest.$ac_ext <<_ACEOF
34079/* end confdefs.h. */
34080#include <execinfo.h>
34081int
34082main ()
34083{
34084
34085 void *trace[1];
34086 char **messages;
34087
34088 backtrace(trace, 1);
34089 messages = backtrace_symbols(trace, 1);
34090
34091 ;
34092 return 0;
34093}
34094_ACEOF
34095rm -f conftest.$ac_objext
34096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34097 (eval $ac_compile) 2>conftest.er1
34098 ac_status=$?
34099 grep -v '^ *+' conftest.er1 >conftest.err
34100 rm -f conftest.er1
34101 cat conftest.err >&5
34102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103 (exit $ac_status); } &&
5ff751d6 34104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34106 (eval $ac_try) 2>&5
34107 ac_status=$?
34108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109 (exit $ac_status); }; } &&
34110 { ac_try='test -s conftest.$ac_objext'
34111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34112 (eval $ac_try) 2>&5
34113 ac_status=$?
34114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34115 (exit $ac_status); }; }; then
34116 wx_cv_func_backtrace=yes
34117else
34118 echo "$as_me: failed program was:" >&5
34119sed 's/^/| /' conftest.$ac_ext >&5
34120
34121wx_cv_func_backtrace=no
34122
34123fi
34124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34125
34126
34127fi
34128echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34129echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34130
34131
34132 if test "$wx_cv_func_backtrace" = "no"; then
34133 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34134echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34135 wxUSE_STACKWALKER=no
34136 else
34137 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34138echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34139if test "${wx_cv_func_cxa_demangle+set}" = set; then
34140 echo $ECHO_N "(cached) $ECHO_C" >&6
34141else
34142
34143 cat >conftest.$ac_ext <<_ACEOF
34144/* confdefs.h. */
34145_ACEOF
34146cat confdefs.h >>conftest.$ac_ext
34147cat >>conftest.$ac_ext <<_ACEOF
34148/* end confdefs.h. */
34149#include <cxxabi.h>
34150int
34151main ()
34152{
34153
34154 int rc;
34155 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34156
34157 ;
34158 return 0;
34159}
34160_ACEOF
dfe0c803
JS
34161rm -f conftest.$ac_objext conftest$ac_exeext
34162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34163 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34164 ac_status=$?
34165 grep -v '^ *+' conftest.er1 >conftest.err
34166 rm -f conftest.er1
34167 cat conftest.err >&5
34168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169 (exit $ac_status); } &&
5ff751d6 34170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34172 (eval $ac_try) 2>&5
34173 ac_status=$?
34174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34175 (exit $ac_status); }; } &&
dfe0c803 34176 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34178 (eval $ac_try) 2>&5
34179 ac_status=$?
34180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34181 (exit $ac_status); }; }; then
34182 wx_cv_func_cxa_demangle=yes
34183else
34184 echo "$as_me: failed program was:" >&5
34185sed 's/^/| /' conftest.$ac_ext >&5
34186
34187wx_cv_func_cxa_demangle=no
34188
34189fi
dfe0c803
JS
34190rm -f conftest.err conftest.$ac_objext \
34191 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34192
34193
34194fi
34195echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34196echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34197
34198 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34199 cat >>confdefs.h <<\_ACEOF
34200#define HAVE_CXA_DEMANGLE 1
34201_ACEOF
34202
34203 fi
34204 fi
34205
34206 ac_ext=c
34207ac_cpp='$CPP $CPPFLAGS'
34208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34210ac_compiler_gnu=$ac_cv_c_compiler_gnu
34211
34212fi
34213
898beab1
DE
34214if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34215 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34216echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34217 wxUSE_STACKWALKER=no
34218fi
34219
34220
a848cd7e
SC
34221
34222
34223for ac_func in mkstemp mktemp
34224do
34225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34226echo "$as_me:$LINENO: checking for $ac_func" >&5
34227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34228if eval "test \"\${$as_ac_var+set}\" = set"; then
34229 echo $ECHO_N "(cached) $ECHO_C" >&6
34230else
34231 cat >conftest.$ac_ext <<_ACEOF
34232/* confdefs.h. */
34233_ACEOF
34234cat confdefs.h >>conftest.$ac_ext
34235cat >>conftest.$ac_ext <<_ACEOF
34236/* end confdefs.h. */
ac1cb8d3
VS
34237/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34239#define $ac_func innocuous_$ac_func
34240
a848cd7e
SC
34241/* System header to define __stub macros and hopefully few prototypes,
34242 which can conflict with char $ac_func (); below.
34243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34244 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34245
a848cd7e
SC
34246#ifdef __STDC__
34247# include <limits.h>
34248#else
34249# include <assert.h>
34250#endif
ac1cb8d3
VS
34251
34252#undef $ac_func
34253
a848cd7e
SC
34254/* Override any gcc2 internal prototype to avoid an error. */
34255#ifdef __cplusplus
34256extern "C"
34257{
34258#endif
34259/* We use char because int might match the return type of a gcc2
34260 builtin and then its argument prototype would still apply. */
34261char $ac_func ();
34262/* The GNU C library defines this for functions which it implements
34263 to always fail with ENOSYS. Some functions are actually named
34264 something starting with __ and the normal name is an alias. */
34265#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34266choke me
34267#else
34268char (*f) () = $ac_func;
34269#endif
34270#ifdef __cplusplus
34271}
34272#endif
34273
34274int
34275main ()
34276{
34277return f != $ac_func;
34278 ;
34279 return 0;
34280}
34281_ACEOF
34282rm -f conftest.$ac_objext conftest$ac_exeext
34283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34284 (eval $ac_link) 2>conftest.er1
a848cd7e 34285 ac_status=$?
ac1cb8d3
VS
34286 grep -v '^ *+' conftest.er1 >conftest.err
34287 rm -f conftest.er1
34288 cat conftest.err >&5
a848cd7e
SC
34289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34290 (exit $ac_status); } &&
5ff751d6 34291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34293 (eval $ac_try) 2>&5
34294 ac_status=$?
34295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34296 (exit $ac_status); }; } &&
34297 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34299 (eval $ac_try) 2>&5
34300 ac_status=$?
34301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); }; }; then
34303 eval "$as_ac_var=yes"
34304else
34305 echo "$as_me: failed program was:" >&5
34306sed 's/^/| /' conftest.$ac_ext >&5
34307
34308eval "$as_ac_var=no"
34309fi
ac1cb8d3
VS
34310rm -f conftest.err conftest.$ac_objext \
34311 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34312fi
34313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34314echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34315if test `eval echo '${'$as_ac_var'}'` = yes; then
34316 cat >>confdefs.h <<_ACEOF
34317#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34318_ACEOF
34319 break
34320fi
34321done
34322
34323
34324echo "$as_me:$LINENO: checking for statfs" >&5
34325echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34326if test "${wx_cv_func_statfs+set}" = set; then
34327 echo $ECHO_N "(cached) $ECHO_C" >&6
34328else
34329 cat >conftest.$ac_ext <<_ACEOF
34330/* confdefs.h. */
34331_ACEOF
34332cat confdefs.h >>conftest.$ac_ext
34333cat >>conftest.$ac_ext <<_ACEOF
34334/* end confdefs.h. */
34335
34336 #if defined(__BSD__)
84ae7ca4
VZ
34337 #include <sys/param.h>
34338 #include <sys/mount.h>
a848cd7e 34339 #else
84ae7ca4 34340 #include <sys/vfs.h>
a848cd7e
SC
34341 #endif
34342
34343int
34344main ()
34345{
34346
34347 long l;
34348 struct statfs fs;
34349 statfs("/", &fs);
34350 l = fs.f_bsize;
34351 l += fs.f_blocks;
34352 l += fs.f_bavail;
34353
34354 ;
34355 return 0;
34356}
34357_ACEOF
34358rm -f conftest.$ac_objext
34359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34360 (eval $ac_compile) 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); } &&
5ff751d6 34367 { ac_try='test -z "$ac_c_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_objext'
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
84ae7ca4 34379 wx_cv_func_statfs=yes
a848cd7e
SC
34380else
34381 echo "$as_me: failed program was:" >&5
34382sed 's/^/| /' conftest.$ac_ext >&5
34383
84ae7ca4 34384wx_cv_func_statfs=no
a848cd7e
SC
34385
34386fi
ac1cb8d3 34387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34388
34389fi
34390echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34391echo "${ECHO_T}$wx_cv_func_statfs" >&6
34392
34393if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
34394
34395
34396 ac_ext=cc
34397ac_cpp='$CXXCPP $CPPFLAGS'
34398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34401
34402 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34403echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34404if test "${wx_cv_func_statfs_decl+set}" = set; then
34405 echo $ECHO_N "(cached) $ECHO_C" >&6
34406else
0683aca6
VZ
34407 cat >conftest.$ac_ext <<_ACEOF
34408/* confdefs.h. */
34409_ACEOF
34410cat confdefs.h >>conftest.$ac_ext
34411cat >>conftest.$ac_ext <<_ACEOF
34412/* end confdefs.h. */
84ae7ca4 34413
0683aca6
VZ
34414 #if defined(__BSD__)
34415 #include <sys/param.h>
34416 #include <sys/mount.h>
34417 #else
34418 #include <sys/vfs.h>
34419 #endif
34420
34421int
34422main ()
34423{
34424
34425 struct statfs fs;
34426 statfs("", &fs);
34427
34428 ;
34429 return 0;
34430}
34431_ACEOF
34432rm -f conftest.$ac_objext
34433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34434 (eval $ac_compile) 2>conftest.er1
34435 ac_status=$?
34436 grep -v '^ *+' conftest.er1 >conftest.err
34437 rm -f conftest.er1
34438 cat conftest.err >&5
34439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440 (exit $ac_status); } &&
5ff751d6 34441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
34442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34443 (eval $ac_try) 2>&5
34444 ac_status=$?
34445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34446 (exit $ac_status); }; } &&
34447 { ac_try='test -s conftest.$ac_objext'
34448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34449 (eval $ac_try) 2>&5
34450 ac_status=$?
34451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452 (exit $ac_status); }; }; then
34453 wx_cv_func_statfs_decl=yes
34454else
34455 echo "$as_me: failed program was:" >&5
34456sed 's/^/| /' conftest.$ac_ext >&5
34457
34458wx_cv_func_statfs_decl=no
34459
34460fi
34461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34462
34463fi
34464echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34465echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34466 ac_ext=c
34467ac_cpp='$CPP $CPPFLAGS'
34468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34470ac_compiler_gnu=$ac_cv_c_compiler_gnu
34471
34472
34473 if test "$wx_cv_func_statfs_decl" = "yes"; then
34474 cat >>confdefs.h <<\_ACEOF
34475#define HAVE_STATFS_DECL 1
34476_ACEOF
34477
34478 fi
34479
a848cd7e
SC
34480 wx_cv_type_statvfs_t="struct statfs"
34481 cat >>confdefs.h <<\_ACEOF
34482#define HAVE_STATFS 1
34483_ACEOF
34484
34485else
34486 echo "$as_me:$LINENO: checking for statvfs" >&5
34487echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34488if test "${wx_cv_func_statvfs+set}" = set; then
34489 echo $ECHO_N "(cached) $ECHO_C" >&6
34490else
34491 cat >conftest.$ac_ext <<_ACEOF
34492/* confdefs.h. */
34493_ACEOF
34494cat confdefs.h >>conftest.$ac_ext
34495cat >>conftest.$ac_ext <<_ACEOF
34496/* end confdefs.h. */
34497
34498 #include <stddef.h>
34499 #include <sys/statvfs.h>
34500
34501int
34502main ()
34503{
34504
34505 statvfs("/", NULL);
34506
34507 ;
34508 return 0;
34509}
34510_ACEOF
34511rm -f conftest.$ac_objext
34512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34513 (eval $ac_compile) 2>conftest.er1
a848cd7e 34514 ac_status=$?
ac1cb8d3
VS
34515 grep -v '^ *+' conftest.er1 >conftest.err
34516 rm -f conftest.er1
34517 cat conftest.err >&5
a848cd7e
SC
34518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519 (exit $ac_status); } &&
5ff751d6 34520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34522 (eval $ac_try) 2>&5
34523 ac_status=$?
34524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 (exit $ac_status); }; } &&
34526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34528 (eval $ac_try) 2>&5
34529 ac_status=$?
34530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531 (exit $ac_status); }; }; then
34532 wx_cv_func_statvfs=yes
34533else
34534 echo "$as_me: failed program was:" >&5
34535sed 's/^/| /' conftest.$ac_ext >&5
34536
34537wx_cv_func_statvfs=no
34538
34539fi
ac1cb8d3 34540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34541
34542fi
34543echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34544echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34545
34546 if test "$wx_cv_func_statvfs" = "yes"; then
34547
34548
34549 ac_ext=cc
34550ac_cpp='$CXXCPP $CPPFLAGS'
34551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34554
34555
34556 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34557echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34558if test "${wx_cv_type_statvfs_t+set}" = set; then
34559 echo $ECHO_N "(cached) $ECHO_C" >&6
34560else
34561 cat >conftest.$ac_ext <<_ACEOF
34562/* confdefs.h. */
34563_ACEOF
34564cat confdefs.h >>conftest.$ac_ext
34565cat >>conftest.$ac_ext <<_ACEOF
34566/* end confdefs.h. */
34567
34568 #include <sys/statvfs.h>
34569
34570int
34571main ()
34572{
34573
34574 long l;
34575 statvfs_t fs;
34576 statvfs("/", &fs);
34577 l = fs.f_bsize;
34578 l += fs.f_blocks;
34579 l += fs.f_bavail;
34580
34581 ;
34582 return 0;
34583}
34584_ACEOF
34585rm -f conftest.$ac_objext
34586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34587 (eval $ac_compile) 2>conftest.er1
a848cd7e 34588 ac_status=$?
ac1cb8d3
VS
34589 grep -v '^ *+' conftest.er1 >conftest.err
34590 rm -f conftest.er1
34591 cat conftest.err >&5
a848cd7e
SC
34592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593 (exit $ac_status); } &&
5ff751d6 34594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34596 (eval $ac_try) 2>&5
34597 ac_status=$?
34598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599 (exit $ac_status); }; } &&
34600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34602 (eval $ac_try) 2>&5
34603 ac_status=$?
34604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605 (exit $ac_status); }; }; then
34606 wx_cv_type_statvfs_t=statvfs_t
34607else
34608 echo "$as_me: failed program was:" >&5
34609sed 's/^/| /' conftest.$ac_ext >&5
34610
34611
34612 cat >conftest.$ac_ext <<_ACEOF
34613/* confdefs.h. */
34614_ACEOF
34615cat confdefs.h >>conftest.$ac_ext
34616cat >>conftest.$ac_ext <<_ACEOF
34617/* end confdefs.h. */
34618
34619 #include <sys/statvfs.h>
34620
34621int
34622main ()
34623{
34624
34625 long l;
34626 struct statvfs fs;
34627 statvfs("/", &fs);
34628 l = fs.f_bsize;
34629 l += fs.f_blocks;
34630 l += fs.f_bavail;
34631
34632 ;
34633 return 0;
34634}
34635_ACEOF
34636rm -f conftest.$ac_objext
34637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34638 (eval $ac_compile) 2>conftest.er1
a848cd7e 34639 ac_status=$?
ac1cb8d3
VS
34640 grep -v '^ *+' conftest.er1 >conftest.err
34641 rm -f conftest.er1
34642 cat conftest.err >&5
a848cd7e
SC
34643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644 (exit $ac_status); } &&
5ff751d6 34645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34647 (eval $ac_try) 2>&5
34648 ac_status=$?
34649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650 (exit $ac_status); }; } &&
34651 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34653 (eval $ac_try) 2>&5
34654 ac_status=$?
34655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656 (exit $ac_status); }; }; then
34657 wx_cv_type_statvfs_t="struct statvfs"
34658else
34659 echo "$as_me: failed program was:" >&5
34660sed 's/^/| /' conftest.$ac_ext >&5
34661
34662wx_cv_type_statvfs_t="unknown"
34663
34664fi
ac1cb8d3 34665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34666
34667
34668fi
ac1cb8d3 34669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34670
34671fi
34672echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34673echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34674
34675 ac_ext=c
34676ac_cpp='$CPP $CPPFLAGS'
34677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34679ac_compiler_gnu=$ac_cv_c_compiler_gnu
34680
34681
34682 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34683 cat >>confdefs.h <<\_ACEOF
34684#define HAVE_STATVFS 1
34685_ACEOF
34686
34687 fi
34688 else
34689 wx_cv_type_statvfs_t="unknown"
34690 fi
34691fi
34692
34693if test "$wx_cv_type_statvfs_t" != "unknown"; then
34694 cat >>confdefs.h <<_ACEOF
34695#define WX_STATFS_T $wx_cv_type_statvfs_t
34696_ACEOF
34697
34698else
34699 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34700echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34701fi
34702
34703if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34704
34705
34706for ac_func in fcntl flock
34707do
34708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34709echo "$as_me:$LINENO: checking for $ac_func" >&5
34710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34711if eval "test \"\${$as_ac_var+set}\" = set"; then
34712 echo $ECHO_N "(cached) $ECHO_C" >&6
34713else
34714 cat >conftest.$ac_ext <<_ACEOF
34715/* confdefs.h. */
34716_ACEOF
34717cat confdefs.h >>conftest.$ac_ext
34718cat >>conftest.$ac_ext <<_ACEOF
34719/* end confdefs.h. */
ac1cb8d3
VS
34720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34722#define $ac_func innocuous_$ac_func
34723
a848cd7e
SC
34724/* System header to define __stub macros and hopefully few prototypes,
34725 which can conflict with char $ac_func (); below.
34726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34727 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34728
a848cd7e
SC
34729#ifdef __STDC__
34730# include <limits.h>
34731#else
34732# include <assert.h>
34733#endif
ac1cb8d3
VS
34734
34735#undef $ac_func
34736
a848cd7e
SC
34737/* Override any gcc2 internal prototype to avoid an error. */
34738#ifdef __cplusplus
34739extern "C"
34740{
34741#endif
34742/* We use char because int might match the return type of a gcc2
34743 builtin and then its argument prototype would still apply. */
34744char $ac_func ();
34745/* The GNU C library defines this for functions which it implements
34746 to always fail with ENOSYS. Some functions are actually named
34747 something starting with __ and the normal name is an alias. */
34748#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34749choke me
34750#else
34751char (*f) () = $ac_func;
34752#endif
34753#ifdef __cplusplus
34754}
34755#endif
34756
34757int
34758main ()
34759{
34760return f != $ac_func;
34761 ;
34762 return 0;
34763}
34764_ACEOF
34765rm -f conftest.$ac_objext conftest$ac_exeext
34766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34767 (eval $ac_link) 2>conftest.er1
a848cd7e 34768 ac_status=$?
ac1cb8d3
VS
34769 grep -v '^ *+' conftest.er1 >conftest.err
34770 rm -f conftest.er1
34771 cat conftest.err >&5
a848cd7e
SC
34772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773 (exit $ac_status); } &&
5ff751d6 34774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776 (eval $ac_try) 2>&5
34777 ac_status=$?
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); }; } &&
34780 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34782 (eval $ac_try) 2>&5
34783 ac_status=$?
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); }; }; then
34786 eval "$as_ac_var=yes"
34787else
34788 echo "$as_me: failed program was:" >&5
34789sed 's/^/| /' conftest.$ac_ext >&5
34790
34791eval "$as_ac_var=no"
34792fi
ac1cb8d3
VS
34793rm -f conftest.err conftest.$ac_objext \
34794 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34795fi
34796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34797echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34798if test `eval echo '${'$as_ac_var'}'` = yes; then
34799 cat >>confdefs.h <<_ACEOF
34800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34801_ACEOF
34802 break
34803fi
34804done
34805
34806
34807 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34808 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34809echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34810 wxUSE_SNGLINST_CHECKER=no
34811 fi
34812fi
34813
34814
34815for ac_func in timegm
34816do
34817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34818echo "$as_me:$LINENO: checking for $ac_func" >&5
34819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34820if eval "test \"\${$as_ac_var+set}\" = set"; then
34821 echo $ECHO_N "(cached) $ECHO_C" >&6
34822else
34823 cat >conftest.$ac_ext <<_ACEOF
34824/* confdefs.h. */
34825_ACEOF
34826cat confdefs.h >>conftest.$ac_ext
34827cat >>conftest.$ac_ext <<_ACEOF
34828/* end confdefs.h. */
ac1cb8d3
VS
34829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34831#define $ac_func innocuous_$ac_func
34832
a848cd7e
SC
34833/* System header to define __stub macros and hopefully few prototypes,
34834 which can conflict with char $ac_func (); below.
34835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34836 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34837
a848cd7e
SC
34838#ifdef __STDC__
34839# include <limits.h>
34840#else
34841# include <assert.h>
34842#endif
ac1cb8d3
VS
34843
34844#undef $ac_func
34845
a848cd7e
SC
34846/* Override any gcc2 internal prototype to avoid an error. */
34847#ifdef __cplusplus
34848extern "C"
34849{
34850#endif
34851/* We use char because int might match the return type of a gcc2
34852 builtin and then its argument prototype would still apply. */
34853char $ac_func ();
34854/* The GNU C library defines this for functions which it implements
34855 to always fail with ENOSYS. Some functions are actually named
34856 something starting with __ and the normal name is an alias. */
34857#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34858choke me
34859#else
34860char (*f) () = $ac_func;
34861#endif
34862#ifdef __cplusplus
34863}
34864#endif
34865
34866int
34867main ()
34868{
34869return f != $ac_func;
34870 ;
34871 return 0;
34872}
34873_ACEOF
34874rm -f conftest.$ac_objext conftest$ac_exeext
34875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34876 (eval $ac_link) 2>conftest.er1
a848cd7e 34877 ac_status=$?
ac1cb8d3
VS
34878 grep -v '^ *+' conftest.er1 >conftest.err
34879 rm -f conftest.er1
34880 cat conftest.err >&5
a848cd7e
SC
34881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882 (exit $ac_status); } &&
5ff751d6 34883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34885 (eval $ac_try) 2>&5
34886 ac_status=$?
34887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888 (exit $ac_status); }; } &&
34889 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34891 (eval $ac_try) 2>&5
34892 ac_status=$?
34893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34894 (exit $ac_status); }; }; then
34895 eval "$as_ac_var=yes"
34896else
34897 echo "$as_me: failed program was:" >&5
34898sed 's/^/| /' conftest.$ac_ext >&5
34899
34900eval "$as_ac_var=no"
34901fi
ac1cb8d3
VS
34902rm -f conftest.err conftest.$ac_objext \
34903 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34904fi
34905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34906echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34907if test `eval echo '${'$as_ac_var'}'` = yes; then
34908 cat >>confdefs.h <<_ACEOF
34909#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34910_ACEOF
34911
34912fi
34913done
34914
34915
34916
34917
34918for ac_func in putenv setenv
34919do
34920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34921echo "$as_me:$LINENO: checking for $ac_func" >&5
34922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34923if eval "test \"\${$as_ac_var+set}\" = set"; then
34924 echo $ECHO_N "(cached) $ECHO_C" >&6
34925else
34926 cat >conftest.$ac_ext <<_ACEOF
34927/* confdefs.h. */
34928_ACEOF
34929cat confdefs.h >>conftest.$ac_ext
34930cat >>conftest.$ac_ext <<_ACEOF
34931/* end confdefs.h. */
ac1cb8d3
VS
34932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34934#define $ac_func innocuous_$ac_func
34935
a848cd7e
SC
34936/* System header to define __stub macros and hopefully few prototypes,
34937 which can conflict with char $ac_func (); below.
34938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34939 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34940
a848cd7e
SC
34941#ifdef __STDC__
34942# include <limits.h>
34943#else
34944# include <assert.h>
34945#endif
ac1cb8d3
VS
34946
34947#undef $ac_func
34948
a848cd7e
SC
34949/* Override any gcc2 internal prototype to avoid an error. */
34950#ifdef __cplusplus
34951extern "C"
34952{
34953#endif
34954/* We use char because int might match the return type of a gcc2
34955 builtin and then its argument prototype would still apply. */
34956char $ac_func ();
34957/* The GNU C library defines this for functions which it implements
34958 to always fail with ENOSYS. Some functions are actually named
34959 something starting with __ and the normal name is an alias. */
34960#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34961choke me
34962#else
34963char (*f) () = $ac_func;
34964#endif
34965#ifdef __cplusplus
34966}
34967#endif
34968
34969int
34970main ()
34971{
34972return f != $ac_func;
34973 ;
34974 return 0;
34975}
34976_ACEOF
34977rm -f conftest.$ac_objext conftest$ac_exeext
34978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34979 (eval $ac_link) 2>conftest.er1
a848cd7e 34980 ac_status=$?
ac1cb8d3
VS
34981 grep -v '^ *+' conftest.er1 >conftest.err
34982 rm -f conftest.er1
34983 cat conftest.err >&5
a848cd7e
SC
34984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34985 (exit $ac_status); } &&
5ff751d6 34986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34988 (eval $ac_try) 2>&5
34989 ac_status=$?
34990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34991 (exit $ac_status); }; } &&
34992 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34994 (eval $ac_try) 2>&5
34995 ac_status=$?
34996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34997 (exit $ac_status); }; }; then
34998 eval "$as_ac_var=yes"
34999else
35000 echo "$as_me: failed program was:" >&5
35001sed 's/^/| /' conftest.$ac_ext >&5
35002
35003eval "$as_ac_var=no"
35004fi
ac1cb8d3
VS
35005rm -f conftest.err conftest.$ac_objext \
35006 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35007fi
35008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35009echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35010if test `eval echo '${'$as_ac_var'}'` = yes; then
35011 cat >>confdefs.h <<_ACEOF
35012#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35013_ACEOF
35014 break
35015fi
35016done
35017
35018
35019HAVE_SOME_SLEEP_FUNC=0
35020if test "$USE_BEOS" = 1; then
35021 cat >>confdefs.h <<\_ACEOF
35022#define HAVE_SLEEP 1
35023_ACEOF
35024
35025 HAVE_SOME_SLEEP_FUNC=1
35026fi
35027
35028if test "$USE_DARWIN" = 1; then
35029 cat >>confdefs.h <<\_ACEOF
35030#define HAVE_USLEEP 1
35031_ACEOF
35032
35033 HAVE_SOME_SLEEP_FUNC=1
35034fi
35035
35036if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35037 POSIX4_LINK=
35038
35039for ac_func in nanosleep
35040do
35041as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35042echo "$as_me:$LINENO: checking for $ac_func" >&5
35043echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35044if eval "test \"\${$as_ac_var+set}\" = set"; then
35045 echo $ECHO_N "(cached) $ECHO_C" >&6
35046else
35047 cat >conftest.$ac_ext <<_ACEOF
35048/* confdefs.h. */
35049_ACEOF
35050cat confdefs.h >>conftest.$ac_ext
35051cat >>conftest.$ac_ext <<_ACEOF
35052/* end confdefs.h. */
ac1cb8d3
VS
35053/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35055#define $ac_func innocuous_$ac_func
35056
a848cd7e
SC
35057/* System header to define __stub macros and hopefully few prototypes,
35058 which can conflict with char $ac_func (); below.
35059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35060 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35061
a848cd7e
SC
35062#ifdef __STDC__
35063# include <limits.h>
35064#else
35065# include <assert.h>
35066#endif
ac1cb8d3
VS
35067
35068#undef $ac_func
35069
a848cd7e
SC
35070/* Override any gcc2 internal prototype to avoid an error. */
35071#ifdef __cplusplus
35072extern "C"
35073{
35074#endif
35075/* We use char because int might match the return type of a gcc2
35076 builtin and then its argument prototype would still apply. */
35077char $ac_func ();
35078/* The GNU C library defines this for functions which it implements
35079 to always fail with ENOSYS. Some functions are actually named
35080 something starting with __ and the normal name is an alias. */
35081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35082choke me
35083#else
35084char (*f) () = $ac_func;
35085#endif
35086#ifdef __cplusplus
35087}
35088#endif
35089
35090int
35091main ()
35092{
35093return f != $ac_func;
35094 ;
35095 return 0;
35096}
35097_ACEOF
35098rm -f conftest.$ac_objext conftest$ac_exeext
35099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35100 (eval $ac_link) 2>conftest.er1
a848cd7e 35101 ac_status=$?
ac1cb8d3
VS
35102 grep -v '^ *+' conftest.er1 >conftest.err
35103 rm -f conftest.er1
35104 cat conftest.err >&5
a848cd7e
SC
35105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35106 (exit $ac_status); } &&
5ff751d6 35107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35109 (eval $ac_try) 2>&5
35110 ac_status=$?
35111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35112 (exit $ac_status); }; } &&
35113 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35115 (eval $ac_try) 2>&5
35116 ac_status=$?
35117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118 (exit $ac_status); }; }; then
35119 eval "$as_ac_var=yes"
35120else
35121 echo "$as_me: failed program was:" >&5
35122sed 's/^/| /' conftest.$ac_ext >&5
35123
35124eval "$as_ac_var=no"
35125fi
ac1cb8d3
VS
35126rm -f conftest.err conftest.$ac_objext \
35127 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35128fi
35129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35130echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35131if test `eval echo '${'$as_ac_var'}'` = yes; then
35132 cat >>confdefs.h <<_ACEOF
35133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35134_ACEOF
35135 cat >>confdefs.h <<\_ACEOF
35136#define HAVE_NANOSLEEP 1
35137_ACEOF
35138
35139else
35140
35141 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35142echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35143if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35144 echo $ECHO_N "(cached) $ECHO_C" >&6
35145else
35146 ac_check_lib_save_LIBS=$LIBS
35147LIBS="-lposix4 $LIBS"
35148cat >conftest.$ac_ext <<_ACEOF
35149/* confdefs.h. */
35150_ACEOF
35151cat confdefs.h >>conftest.$ac_ext
35152cat >>conftest.$ac_ext <<_ACEOF
35153/* end confdefs.h. */
35154
35155/* Override any gcc2 internal prototype to avoid an error. */
35156#ifdef __cplusplus
35157extern "C"
35158#endif
35159/* We use char because int might match the return type of a gcc2
35160 builtin and then its argument prototype would still apply. */
35161char nanosleep ();
35162int
35163main ()
35164{
35165nanosleep ();
35166 ;
35167 return 0;
35168}
35169_ACEOF
35170rm -f conftest.$ac_objext conftest$ac_exeext
35171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35172 (eval $ac_link) 2>conftest.er1
a848cd7e 35173 ac_status=$?
ac1cb8d3
VS
35174 grep -v '^ *+' conftest.er1 >conftest.err
35175 rm -f conftest.er1
35176 cat conftest.err >&5
a848cd7e
SC
35177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178 (exit $ac_status); } &&
5ff751d6 35179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35181 (eval $ac_try) 2>&5
35182 ac_status=$?
35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184 (exit $ac_status); }; } &&
35185 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35187 (eval $ac_try) 2>&5
35188 ac_status=$?
35189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190 (exit $ac_status); }; }; then
35191 ac_cv_lib_posix4_nanosleep=yes
35192else
35193 echo "$as_me: failed program was:" >&5
35194sed 's/^/| /' conftest.$ac_ext >&5
35195
35196ac_cv_lib_posix4_nanosleep=no
35197fi
ac1cb8d3
VS
35198rm -f conftest.err conftest.$ac_objext \
35199 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35200LIBS=$ac_check_lib_save_LIBS
35201fi
35202echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35203echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35204if test $ac_cv_lib_posix4_nanosleep = yes; then
35205
35206 cat >>confdefs.h <<\_ACEOF
35207#define HAVE_NANOSLEEP 1
35208_ACEOF
35209
35210 POSIX4_LINK=" -lposix4"
35211
35212else
35213
35214
35215for ac_func in usleep
35216do
35217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35218echo "$as_me:$LINENO: checking for $ac_func" >&5
35219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35220if eval "test \"\${$as_ac_var+set}\" = set"; then
35221 echo $ECHO_N "(cached) $ECHO_C" >&6
35222else
35223 cat >conftest.$ac_ext <<_ACEOF
35224/* confdefs.h. */
35225_ACEOF
35226cat confdefs.h >>conftest.$ac_ext
35227cat >>conftest.$ac_ext <<_ACEOF
35228/* end confdefs.h. */
ac1cb8d3
VS
35229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35231#define $ac_func innocuous_$ac_func
35232
a848cd7e
SC
35233/* System header to define __stub macros and hopefully few prototypes,
35234 which can conflict with char $ac_func (); below.
35235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35236 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35237
a848cd7e
SC
35238#ifdef __STDC__
35239# include <limits.h>
35240#else
35241# include <assert.h>
35242#endif
ac1cb8d3
VS
35243
35244#undef $ac_func
35245
a848cd7e
SC
35246/* Override any gcc2 internal prototype to avoid an error. */
35247#ifdef __cplusplus
35248extern "C"
35249{
35250#endif
35251/* We use char because int might match the return type of a gcc2
35252 builtin and then its argument prototype would still apply. */
35253char $ac_func ();
35254/* The GNU C library defines this for functions which it implements
35255 to always fail with ENOSYS. Some functions are actually named
35256 something starting with __ and the normal name is an alias. */
35257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35258choke me
35259#else
35260char (*f) () = $ac_func;
35261#endif
35262#ifdef __cplusplus
35263}
35264#endif
35265
35266int
35267main ()
35268{
35269return f != $ac_func;
35270 ;
35271 return 0;
35272}
35273_ACEOF
35274rm -f conftest.$ac_objext conftest$ac_exeext
35275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35276 (eval $ac_link) 2>conftest.er1
a848cd7e 35277 ac_status=$?
ac1cb8d3
VS
35278 grep -v '^ *+' conftest.er1 >conftest.err
35279 rm -f conftest.er1
35280 cat conftest.err >&5
a848cd7e
SC
35281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35282 (exit $ac_status); } &&
5ff751d6 35283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35285 (eval $ac_try) 2>&5
35286 ac_status=$?
35287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35288 (exit $ac_status); }; } &&
35289 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35291 (eval $ac_try) 2>&5
35292 ac_status=$?
35293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35294 (exit $ac_status); }; }; then
35295 eval "$as_ac_var=yes"
35296else
35297 echo "$as_me: failed program was:" >&5
35298sed 's/^/| /' conftest.$ac_ext >&5
35299
35300eval "$as_ac_var=no"
35301fi
ac1cb8d3
VS
35302rm -f conftest.err conftest.$ac_objext \
35303 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35304fi
35305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35306echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35307if test `eval echo '${'$as_ac_var'}'` = yes; then
35308 cat >>confdefs.h <<_ACEOF
35309#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35310_ACEOF
35311 cat >>confdefs.h <<\_ACEOF
35312#define HAVE_USLEEP 1
35313_ACEOF
35314
35315else
35316 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35317echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35318
35319fi
35320done
35321
35322
35323
35324fi
35325
35326
35327
35328fi
35329done
35330
35331fi
35332
35333
35334
35335for ac_func in uname gethostname
35336do
35337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35338echo "$as_me:$LINENO: checking for $ac_func" >&5
35339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35340if eval "test \"\${$as_ac_var+set}\" = set"; then
35341 echo $ECHO_N "(cached) $ECHO_C" >&6
35342else
35343 cat >conftest.$ac_ext <<_ACEOF
35344/* confdefs.h. */
35345_ACEOF
35346cat confdefs.h >>conftest.$ac_ext
35347cat >>conftest.$ac_ext <<_ACEOF
35348/* end confdefs.h. */
ac1cb8d3
VS
35349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35351#define $ac_func innocuous_$ac_func
35352
a848cd7e
SC
35353/* System header to define __stub macros and hopefully few prototypes,
35354 which can conflict with char $ac_func (); below.
35355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35356 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35357
a848cd7e
SC
35358#ifdef __STDC__
35359# include <limits.h>
35360#else
35361# include <assert.h>
35362#endif
ac1cb8d3
VS
35363
35364#undef $ac_func
35365
a848cd7e
SC
35366/* Override any gcc2 internal prototype to avoid an error. */
35367#ifdef __cplusplus
35368extern "C"
35369{
35370#endif
35371/* We use char because int might match the return type of a gcc2
35372 builtin and then its argument prototype would still apply. */
35373char $ac_func ();
35374/* The GNU C library defines this for functions which it implements
35375 to always fail with ENOSYS. Some functions are actually named
35376 something starting with __ and the normal name is an alias. */
35377#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35378choke me
35379#else
35380char (*f) () = $ac_func;
35381#endif
35382#ifdef __cplusplus
35383}
35384#endif
35385
35386int
35387main ()
35388{
35389return f != $ac_func;
35390 ;
35391 return 0;
35392}
35393_ACEOF
35394rm -f conftest.$ac_objext conftest$ac_exeext
35395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35396 (eval $ac_link) 2>conftest.er1
a848cd7e 35397 ac_status=$?
ac1cb8d3
VS
35398 grep -v '^ *+' conftest.er1 >conftest.err
35399 rm -f conftest.er1
35400 cat conftest.err >&5
a848cd7e
SC
35401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402 (exit $ac_status); } &&
5ff751d6 35403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405 (eval $ac_try) 2>&5
35406 ac_status=$?
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); }; } &&
35409 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35411 (eval $ac_try) 2>&5
35412 ac_status=$?
35413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414 (exit $ac_status); }; }; then
35415 eval "$as_ac_var=yes"
35416else
35417 echo "$as_me: failed program was:" >&5
35418sed 's/^/| /' conftest.$ac_ext >&5
35419
35420eval "$as_ac_var=no"
35421fi
ac1cb8d3
VS
35422rm -f conftest.err conftest.$ac_objext \
35423 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35424fi
35425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35426echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35427if test `eval echo '${'$as_ac_var'}'` = yes; then
35428 cat >>confdefs.h <<_ACEOF
35429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35430_ACEOF
35431 break
35432fi
35433done
35434
35435
35436
35437
35438ac_ext=cc
35439ac_cpp='$CXXCPP $CPPFLAGS'
35440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35443
35444
35445
35446for ac_func in strtok_r
35447do
35448as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35449echo "$as_me:$LINENO: checking for $ac_func" >&5
35450echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35451if eval "test \"\${$as_ac_var+set}\" = set"; then
35452 echo $ECHO_N "(cached) $ECHO_C" >&6
35453else
35454 cat >conftest.$ac_ext <<_ACEOF
35455/* confdefs.h. */
35456_ACEOF
35457cat confdefs.h >>conftest.$ac_ext
35458cat >>conftest.$ac_ext <<_ACEOF
35459/* end confdefs.h. */
ac1cb8d3
VS
35460/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35462#define $ac_func innocuous_$ac_func
35463
a848cd7e
SC
35464/* System header to define __stub macros and hopefully few prototypes,
35465 which can conflict with char $ac_func (); below.
35466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35467 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35468
a848cd7e
SC
35469#ifdef __STDC__
35470# include <limits.h>
35471#else
35472# include <assert.h>
35473#endif
ac1cb8d3
VS
35474
35475#undef $ac_func
35476
a848cd7e
SC
35477/* Override any gcc2 internal prototype to avoid an error. */
35478#ifdef __cplusplus
35479extern "C"
35480{
35481#endif
35482/* We use char because int might match the return type of a gcc2
35483 builtin and then its argument prototype would still apply. */
35484char $ac_func ();
35485/* The GNU C library defines this for functions which it implements
35486 to always fail with ENOSYS. Some functions are actually named
35487 something starting with __ and the normal name is an alias. */
35488#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35489choke me
35490#else
35491char (*f) () = $ac_func;
35492#endif
35493#ifdef __cplusplus
35494}
35495#endif
35496
35497int
35498main ()
35499{
35500return f != $ac_func;
35501 ;
35502 return 0;
35503}
35504_ACEOF
35505rm -f conftest.$ac_objext conftest$ac_exeext
35506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35507 (eval $ac_link) 2>conftest.er1
a848cd7e 35508 ac_status=$?
ac1cb8d3
VS
35509 grep -v '^ *+' conftest.er1 >conftest.err
35510 rm -f conftest.er1
35511 cat conftest.err >&5
a848cd7e
SC
35512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35513 (exit $ac_status); } &&
5ff751d6 35514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35516 (eval $ac_try) 2>&5
35517 ac_status=$?
35518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35519 (exit $ac_status); }; } &&
35520 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35522 (eval $ac_try) 2>&5
35523 ac_status=$?
35524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35525 (exit $ac_status); }; }; then
35526 eval "$as_ac_var=yes"
35527else
35528 echo "$as_me: failed program was:" >&5
35529sed 's/^/| /' conftest.$ac_ext >&5
35530
35531eval "$as_ac_var=no"
35532fi
ac1cb8d3
VS
35533rm -f conftest.err conftest.$ac_objext \
35534 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35535fi
35536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35537echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35538if test `eval echo '${'$as_ac_var'}'` = yes; then
35539 cat >>confdefs.h <<_ACEOF
35540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35541_ACEOF
35542
35543fi
35544done
35545
35546
35547ac_ext=c
35548ac_cpp='$CPP $CPPFLAGS'
35549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35551ac_compiler_gnu=$ac_cv_c_compiler_gnu
35552
35553
35554INET_LINK=
35555
35556for ac_func in inet_addr
35557do
35558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35559echo "$as_me:$LINENO: checking for $ac_func" >&5
35560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35561if eval "test \"\${$as_ac_var+set}\" = set"; then
35562 echo $ECHO_N "(cached) $ECHO_C" >&6
35563else
35564 cat >conftest.$ac_ext <<_ACEOF
35565/* confdefs.h. */
35566_ACEOF
35567cat confdefs.h >>conftest.$ac_ext
35568cat >>conftest.$ac_ext <<_ACEOF
35569/* end confdefs.h. */
ac1cb8d3
VS
35570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35572#define $ac_func innocuous_$ac_func
35573
a848cd7e
SC
35574/* System header to define __stub macros and hopefully few prototypes,
35575 which can conflict with char $ac_func (); below.
35576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35577 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35578
a848cd7e
SC
35579#ifdef __STDC__
35580# include <limits.h>
35581#else
35582# include <assert.h>
35583#endif
ac1cb8d3
VS
35584
35585#undef $ac_func
35586
a848cd7e
SC
35587/* Override any gcc2 internal prototype to avoid an error. */
35588#ifdef __cplusplus
35589extern "C"
35590{
35591#endif
35592/* We use char because int might match the return type of a gcc2
35593 builtin and then its argument prototype would still apply. */
35594char $ac_func ();
35595/* The GNU C library defines this for functions which it implements
35596 to always fail with ENOSYS. Some functions are actually named
35597 something starting with __ and the normal name is an alias. */
35598#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35599choke me
35600#else
35601char (*f) () = $ac_func;
35602#endif
35603#ifdef __cplusplus
35604}
35605#endif
35606
35607int
35608main ()
35609{
35610return f != $ac_func;
35611 ;
35612 return 0;
35613}
35614_ACEOF
35615rm -f conftest.$ac_objext conftest$ac_exeext
35616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35617 (eval $ac_link) 2>conftest.er1
a848cd7e 35618 ac_status=$?
ac1cb8d3
VS
35619 grep -v '^ *+' conftest.er1 >conftest.err
35620 rm -f conftest.er1
35621 cat conftest.err >&5
a848cd7e
SC
35622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623 (exit $ac_status); } &&
5ff751d6 35624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35626 (eval $ac_try) 2>&5
35627 ac_status=$?
35628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35629 (exit $ac_status); }; } &&
35630 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35632 (eval $ac_try) 2>&5
35633 ac_status=$?
35634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35635 (exit $ac_status); }; }; then
35636 eval "$as_ac_var=yes"
35637else
35638 echo "$as_me: failed program was:" >&5
35639sed 's/^/| /' conftest.$ac_ext >&5
35640
35641eval "$as_ac_var=no"
35642fi
ac1cb8d3
VS
35643rm -f conftest.err conftest.$ac_objext \
35644 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35645fi
35646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35647echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35648if test `eval echo '${'$as_ac_var'}'` = yes; then
35649 cat >>confdefs.h <<_ACEOF
35650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35651_ACEOF
35652 cat >>confdefs.h <<\_ACEOF
35653#define HAVE_INET_ADDR 1
35654_ACEOF
35655
35656else
35657
35658 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35659echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35660if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35661 echo $ECHO_N "(cached) $ECHO_C" >&6
35662else
35663 ac_check_lib_save_LIBS=$LIBS
35664LIBS="-lnsl $LIBS"
35665cat >conftest.$ac_ext <<_ACEOF
35666/* confdefs.h. */
35667_ACEOF
35668cat confdefs.h >>conftest.$ac_ext
35669cat >>conftest.$ac_ext <<_ACEOF
35670/* end confdefs.h. */
35671
35672/* Override any gcc2 internal prototype to avoid an error. */
35673#ifdef __cplusplus
35674extern "C"
35675#endif
35676/* We use char because int might match the return type of a gcc2
35677 builtin and then its argument prototype would still apply. */
35678char inet_addr ();
35679int
35680main ()
35681{
35682inet_addr ();
35683 ;
35684 return 0;
35685}
35686_ACEOF
35687rm -f conftest.$ac_objext conftest$ac_exeext
35688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35689 (eval $ac_link) 2>conftest.er1
a848cd7e 35690 ac_status=$?
ac1cb8d3
VS
35691 grep -v '^ *+' conftest.er1 >conftest.err
35692 rm -f conftest.er1
35693 cat conftest.err >&5
a848cd7e
SC
35694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695 (exit $ac_status); } &&
5ff751d6 35696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35698 (eval $ac_try) 2>&5
35699 ac_status=$?
35700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35701 (exit $ac_status); }; } &&
35702 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35704 (eval $ac_try) 2>&5
35705 ac_status=$?
35706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35707 (exit $ac_status); }; }; then
35708 ac_cv_lib_nsl_inet_addr=yes
35709else
35710 echo "$as_me: failed program was:" >&5
35711sed 's/^/| /' conftest.$ac_ext >&5
35712
35713ac_cv_lib_nsl_inet_addr=no
35714fi
ac1cb8d3
VS
35715rm -f conftest.err conftest.$ac_objext \
35716 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35717LIBS=$ac_check_lib_save_LIBS
35718fi
35719echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35720echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35721if test $ac_cv_lib_nsl_inet_addr = yes; then
35722 INET_LINK="nsl"
35723else
35724
35725 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35726echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35727if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35728 echo $ECHO_N "(cached) $ECHO_C" >&6
35729else
35730 ac_check_lib_save_LIBS=$LIBS
35731LIBS="-lresolv $LIBS"
35732cat >conftest.$ac_ext <<_ACEOF
35733/* confdefs.h. */
35734_ACEOF
35735cat confdefs.h >>conftest.$ac_ext
35736cat >>conftest.$ac_ext <<_ACEOF
35737/* end confdefs.h. */
35738
35739/* Override any gcc2 internal prototype to avoid an error. */
35740#ifdef __cplusplus
35741extern "C"
35742#endif
35743/* We use char because int might match the return type of a gcc2
35744 builtin and then its argument prototype would still apply. */
35745char inet_addr ();
35746int
35747main ()
35748{
35749inet_addr ();
35750 ;
35751 return 0;
35752}
35753_ACEOF
35754rm -f conftest.$ac_objext conftest$ac_exeext
35755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35756 (eval $ac_link) 2>conftest.er1
a848cd7e 35757 ac_status=$?
ac1cb8d3
VS
35758 grep -v '^ *+' conftest.er1 >conftest.err
35759 rm -f conftest.er1
35760 cat conftest.err >&5
a848cd7e
SC
35761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762 (exit $ac_status); } &&
5ff751d6 35763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35765 (eval $ac_try) 2>&5
35766 ac_status=$?
35767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35768 (exit $ac_status); }; } &&
35769 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35771 (eval $ac_try) 2>&5
35772 ac_status=$?
35773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774 (exit $ac_status); }; }; then
35775 ac_cv_lib_resolv_inet_addr=yes
35776else
35777 echo "$as_me: failed program was:" >&5
35778sed 's/^/| /' conftest.$ac_ext >&5
35779
35780ac_cv_lib_resolv_inet_addr=no
35781fi
ac1cb8d3
VS
35782rm -f conftest.err conftest.$ac_objext \
35783 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35784LIBS=$ac_check_lib_save_LIBS
35785fi
35786echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35787echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35788if test $ac_cv_lib_resolv_inet_addr = yes; then
35789 INET_LINK="resolv"
35790else
35791
35792 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35793echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35794if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35795 echo $ECHO_N "(cached) $ECHO_C" >&6
35796else
35797 ac_check_lib_save_LIBS=$LIBS
35798LIBS="-lsocket $LIBS"
35799cat >conftest.$ac_ext <<_ACEOF
35800/* confdefs.h. */
35801_ACEOF
35802cat confdefs.h >>conftest.$ac_ext
35803cat >>conftest.$ac_ext <<_ACEOF
35804/* end confdefs.h. */
35805
35806/* Override any gcc2 internal prototype to avoid an error. */
35807#ifdef __cplusplus
35808extern "C"
35809#endif
35810/* We use char because int might match the return type of a gcc2
35811 builtin and then its argument prototype would still apply. */
35812char inet_addr ();
35813int
35814main ()
35815{
35816inet_addr ();
35817 ;
35818 return 0;
35819}
35820_ACEOF
35821rm -f conftest.$ac_objext conftest$ac_exeext
35822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35823 (eval $ac_link) 2>conftest.er1
a848cd7e 35824 ac_status=$?
ac1cb8d3
VS
35825 grep -v '^ *+' conftest.er1 >conftest.err
35826 rm -f conftest.er1
35827 cat conftest.err >&5
a848cd7e
SC
35828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35829 (exit $ac_status); } &&
5ff751d6 35830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35832 (eval $ac_try) 2>&5
35833 ac_status=$?
35834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35835 (exit $ac_status); }; } &&
35836 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35838 (eval $ac_try) 2>&5
35839 ac_status=$?
35840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35841 (exit $ac_status); }; }; then
35842 ac_cv_lib_socket_inet_addr=yes
35843else
35844 echo "$as_me: failed program was:" >&5
35845sed 's/^/| /' conftest.$ac_ext >&5
35846
35847ac_cv_lib_socket_inet_addr=no
35848fi
ac1cb8d3
VS
35849rm -f conftest.err conftest.$ac_objext \
35850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35851LIBS=$ac_check_lib_save_LIBS
35852fi
35853echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35854echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35855if test $ac_cv_lib_socket_inet_addr = yes; then
35856 INET_LINK="socket"
35857
35858fi
35859
35860
35861
35862fi
35863
35864
35865
35866fi
35867
35868
35869
35870fi
35871done
35872
35873
35874
35875for ac_func in inet_aton
35876do
35877as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35878echo "$as_me:$LINENO: checking for $ac_func" >&5
35879echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35880if eval "test \"\${$as_ac_var+set}\" = set"; then
35881 echo $ECHO_N "(cached) $ECHO_C" >&6
35882else
35883 cat >conftest.$ac_ext <<_ACEOF
35884/* confdefs.h. */
35885_ACEOF
35886cat confdefs.h >>conftest.$ac_ext
35887cat >>conftest.$ac_ext <<_ACEOF
35888/* end confdefs.h. */
ac1cb8d3
VS
35889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35891#define $ac_func innocuous_$ac_func
35892
a848cd7e
SC
35893/* System header to define __stub macros and hopefully few prototypes,
35894 which can conflict with char $ac_func (); below.
35895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35896 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35897
a848cd7e
SC
35898#ifdef __STDC__
35899# include <limits.h>
35900#else
35901# include <assert.h>
35902#endif
ac1cb8d3
VS
35903
35904#undef $ac_func
35905
a848cd7e
SC
35906/* Override any gcc2 internal prototype to avoid an error. */
35907#ifdef __cplusplus
35908extern "C"
35909{
35910#endif
35911/* We use char because int might match the return type of a gcc2
35912 builtin and then its argument prototype would still apply. */
35913char $ac_func ();
35914/* The GNU C library defines this for functions which it implements
35915 to always fail with ENOSYS. Some functions are actually named
35916 something starting with __ and the normal name is an alias. */
35917#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35918choke me
35919#else
35920char (*f) () = $ac_func;
35921#endif
35922#ifdef __cplusplus
35923}
35924#endif
35925
35926int
35927main ()
35928{
35929return f != $ac_func;
35930 ;
35931 return 0;
35932}
35933_ACEOF
35934rm -f conftest.$ac_objext conftest$ac_exeext
35935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35936 (eval $ac_link) 2>conftest.er1
a848cd7e 35937 ac_status=$?
ac1cb8d3
VS
35938 grep -v '^ *+' conftest.er1 >conftest.err
35939 rm -f conftest.er1
35940 cat conftest.err >&5
a848cd7e
SC
35941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942 (exit $ac_status); } &&
5ff751d6 35943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35945 (eval $ac_try) 2>&5
35946 ac_status=$?
35947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35948 (exit $ac_status); }; } &&
35949 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35951 (eval $ac_try) 2>&5
35952 ac_status=$?
35953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954 (exit $ac_status); }; }; then
35955 eval "$as_ac_var=yes"
35956else
35957 echo "$as_me: failed program was:" >&5
35958sed 's/^/| /' conftest.$ac_ext >&5
35959
35960eval "$as_ac_var=no"
35961fi
ac1cb8d3
VS
35962rm -f conftest.err conftest.$ac_objext \
35963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35964fi
35965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35966echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35967if test `eval echo '${'$as_ac_var'}'` = yes; then
35968 cat >>confdefs.h <<_ACEOF
35969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35970_ACEOF
35971 cat >>confdefs.h <<\_ACEOF
35972#define HAVE_INET_ATON 1
35973_ACEOF
35974
35975else
35976
35977 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
35978echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
35979echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
35980if eval "test \"\${$as_ac_Lib+set}\" = set"; then
35981 echo $ECHO_N "(cached) $ECHO_C" >&6
35982else
35983 ac_check_lib_save_LIBS=$LIBS
35984LIBS="-l$INET_LINK $LIBS"
35985cat >conftest.$ac_ext <<_ACEOF
35986/* confdefs.h. */
35987_ACEOF
35988cat confdefs.h >>conftest.$ac_ext
35989cat >>conftest.$ac_ext <<_ACEOF
35990/* end confdefs.h. */
35991
35992/* Override any gcc2 internal prototype to avoid an error. */
35993#ifdef __cplusplus
35994extern "C"
35995#endif
35996/* We use char because int might match the return type of a gcc2
35997 builtin and then its argument prototype would still apply. */
35998char inet_aton ();
35999int
36000main ()
36001{
36002inet_aton ();
36003 ;
36004 return 0;
36005}
36006_ACEOF
36007rm -f conftest.$ac_objext conftest$ac_exeext
36008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36009 (eval $ac_link) 2>conftest.er1
a848cd7e 36010 ac_status=$?
ac1cb8d3
VS
36011 grep -v '^ *+' conftest.er1 >conftest.err
36012 rm -f conftest.er1
36013 cat conftest.err >&5
a848cd7e
SC
36014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015 (exit $ac_status); } &&
5ff751d6 36016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36018 (eval $ac_try) 2>&5
36019 ac_status=$?
36020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021 (exit $ac_status); }; } &&
36022 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36024 (eval $ac_try) 2>&5
36025 ac_status=$?
36026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027 (exit $ac_status); }; }; then
36028 eval "$as_ac_Lib=yes"
36029else
36030 echo "$as_me: failed program was:" >&5
36031sed 's/^/| /' conftest.$ac_ext >&5
36032
36033eval "$as_ac_Lib=no"
36034fi
ac1cb8d3
VS
36035rm -f conftest.err conftest.$ac_objext \
36036 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36037LIBS=$ac_check_lib_save_LIBS
36038fi
36039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36040echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36041if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36042 cat >>confdefs.h <<\_ACEOF
36043#define HAVE_INET_ATON 1
36044_ACEOF
36045
36046fi
36047
36048
36049fi
36050done
36051
36052
36053if test "x$INET_LINK" != "x"; then
36054 cat >>confdefs.h <<\_ACEOF
36055#define HAVE_INET_ADDR 1
36056_ACEOF
36057
36058 INET_LINK=" -l$INET_LINK"
36059fi
36060
36061fi
36062
36063
36064
36065EXTRALIBS_ESD=
36066echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36067echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36068if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36069 echo $ECHO_N "(cached) $ECHO_C" >&6
36070else
36071 ac_check_lib_save_LIBS=$LIBS
36072LIBS="-lesd $LIBS"
36073cat >conftest.$ac_ext <<_ACEOF
36074/* confdefs.h. */
36075_ACEOF
36076cat confdefs.h >>conftest.$ac_ext
36077cat >>conftest.$ac_ext <<_ACEOF
36078/* end confdefs.h. */
36079
36080/* Override any gcc2 internal prototype to avoid an error. */
36081#ifdef __cplusplus
36082extern "C"
36083#endif
36084/* We use char because int might match the return type of a gcc2
36085 builtin and then its argument prototype would still apply. */
36086char esd_close ();
36087int
36088main ()
36089{
36090esd_close ();
36091 ;
36092 return 0;
36093}
36094_ACEOF
36095rm -f conftest.$ac_objext conftest$ac_exeext
36096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36097 (eval $ac_link) 2>conftest.er1
a848cd7e 36098 ac_status=$?
ac1cb8d3
VS
36099 grep -v '^ *+' conftest.er1 >conftest.err
36100 rm -f conftest.er1
36101 cat conftest.err >&5
a848cd7e
SC
36102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36103 (exit $ac_status); } &&
5ff751d6 36104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36106 (eval $ac_try) 2>&5
36107 ac_status=$?
36108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36109 (exit $ac_status); }; } &&
36110 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36112 (eval $ac_try) 2>&5
36113 ac_status=$?
36114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36115 (exit $ac_status); }; }; then
36116 ac_cv_lib_esd_esd_close=yes
36117else
36118 echo "$as_me: failed program was:" >&5
36119sed 's/^/| /' conftest.$ac_ext >&5
36120
36121ac_cv_lib_esd_esd_close=no
36122fi
ac1cb8d3
VS
36123rm -f conftest.err conftest.$ac_objext \
36124 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36125LIBS=$ac_check_lib_save_LIBS
36126fi
36127echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36128echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36129if test $ac_cv_lib_esd_esd_close = yes; then
36130
36131
36132for ac_header in esd.h
36133do
36134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36135if eval "test \"\${$as_ac_Header+set}\" = set"; then
36136 echo "$as_me:$LINENO: checking for $ac_header" >&5
36137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36138if eval "test \"\${$as_ac_Header+set}\" = set"; then
36139 echo $ECHO_N "(cached) $ECHO_C" >&6
36140fi
36141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36143else
36144 # Is the header compilable?
36145echo "$as_me:$LINENO: checking $ac_header usability" >&5
36146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36147cat >conftest.$ac_ext <<_ACEOF
36148/* confdefs.h. */
36149_ACEOF
36150cat confdefs.h >>conftest.$ac_ext
36151cat >>conftest.$ac_ext <<_ACEOF
36152/* end confdefs.h. */
36153$ac_includes_default
36154#include <$ac_header>
36155_ACEOF
36156rm -f conftest.$ac_objext
36157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36158 (eval $ac_compile) 2>conftest.er1
a848cd7e 36159 ac_status=$?
ac1cb8d3
VS
36160 grep -v '^ *+' conftest.er1 >conftest.err
36161 rm -f conftest.er1
36162 cat conftest.err >&5
a848cd7e
SC
36163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36164 (exit $ac_status); } &&
5ff751d6 36165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36167 (eval $ac_try) 2>&5
36168 ac_status=$?
36169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36170 (exit $ac_status); }; } &&
36171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36173 (eval $ac_try) 2>&5
36174 ac_status=$?
36175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176 (exit $ac_status); }; }; then
36177 ac_header_compiler=yes
36178else
36179 echo "$as_me: failed program was:" >&5
36180sed 's/^/| /' conftest.$ac_ext >&5
36181
36182ac_header_compiler=no
36183fi
ac1cb8d3 36184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36185echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36186echo "${ECHO_T}$ac_header_compiler" >&6
36187
36188# Is the header present?
36189echo "$as_me:$LINENO: checking $ac_header presence" >&5
36190echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36191cat >conftest.$ac_ext <<_ACEOF
36192/* confdefs.h. */
36193_ACEOF
36194cat confdefs.h >>conftest.$ac_ext
36195cat >>conftest.$ac_ext <<_ACEOF
36196/* end confdefs.h. */
36197#include <$ac_header>
36198_ACEOF
36199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36201 ac_status=$?
36202 grep -v '^ *+' conftest.er1 >conftest.err
36203 rm -f conftest.er1
36204 cat conftest.err >&5
36205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206 (exit $ac_status); } >/dev/null; then
36207 if test -s conftest.err; then
36208 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36210 else
36211 ac_cpp_err=
36212 fi
36213else
36214 ac_cpp_err=yes
36215fi
36216if test -z "$ac_cpp_err"; then
36217 ac_header_preproc=yes
36218else
36219 echo "$as_me: failed program was:" >&5
36220sed 's/^/| /' conftest.$ac_ext >&5
36221
36222 ac_header_preproc=no
36223fi
36224rm -f conftest.err conftest.$ac_ext
36225echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36226echo "${ECHO_T}$ac_header_preproc" >&6
36227
36228# So? What about this header?
ac1cb8d3
VS
36229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36230 yes:no: )
a848cd7e
SC
36231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36232echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36234echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36235 ac_header_preproc=yes
a848cd7e 36236 ;;
ac1cb8d3 36237 no:yes:* )
a848cd7e
SC
36238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36239echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36241echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36243echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36245echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36247echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36249echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36250 (
36251 cat <<\_ASBOX
ac1cb8d3
VS
36252## ----------------------------------------- ##
36253## Report this to wx-dev@lists.wxwidgets.org ##
36254## ----------------------------------------- ##
a848cd7e
SC
36255_ASBOX
36256 ) |
36257 sed "s/^/$as_me: WARNING: /" >&2
36258 ;;
36259esac
36260echo "$as_me:$LINENO: checking for $ac_header" >&5
36261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36262if eval "test \"\${$as_ac_Header+set}\" = set"; then
36263 echo $ECHO_N "(cached) $ECHO_C" >&6
36264else
ac1cb8d3 36265 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36266fi
36267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36269
36270fi
36271if test `eval echo '${'$as_ac_Header'}'` = yes; then
36272 cat >>confdefs.h <<_ACEOF
36273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36274_ACEOF
36275
36276 EXTRALIBS_ESD="-lesd"
36277
36278fi
36279
36280done
36281
36282
36283fi
36284
36285
36286
36287echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36288echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36289cat >conftest.$ac_ext <<_ACEOF
36290/* confdefs.h. */
36291_ACEOF
36292cat confdefs.h >>conftest.$ac_ext
36293cat >>conftest.$ac_ext <<_ACEOF
36294/* end confdefs.h. */
36295#ifdef __linux__
36296 #include <linux/cdrom.h>
36297 #else
36298 /* For Solaris */
36299 #include <sys/cdio.h>
36300 #endif
36301
36302int
36303main ()
36304{
36305struct cdrom_tocentry entry, old_entry;
36306 ;
36307 return 0;
36308}
36309_ACEOF
36310rm -f conftest.$ac_objext
36311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36312 (eval $ac_compile) 2>conftest.er1
a848cd7e 36313 ac_status=$?
ac1cb8d3
VS
36314 grep -v '^ *+' conftest.er1 >conftest.err
36315 rm -f conftest.er1
36316 cat conftest.err >&5
a848cd7e
SC
36317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318 (exit $ac_status); } &&
5ff751d6 36319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36321 (eval $ac_try) 2>&5
36322 ac_status=$?
36323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36324 (exit $ac_status); }; } &&
36325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36327 (eval $ac_try) 2>&5
36328 ac_status=$?
36329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330 (exit $ac_status); }; }; then
36331 echo "$as_me:$LINENO: result: yes" >&5
36332echo "${ECHO_T}yes" >&6
36333 cat >>confdefs.h <<\_ACEOF
36334#define HAVE_KNOWN_CDROM_INTERFACE 1
36335_ACEOF
36336
36337else
36338 echo "$as_me: failed program was:" >&5
36339sed 's/^/| /' conftest.$ac_ext >&5
36340
36341echo "$as_me:$LINENO: result: no" >&5
36342echo "${ECHO_T}no" >&6
36343fi
ac1cb8d3 36344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36345
36346
36347cat >confcache <<\_ACEOF
36348# This file is a shell script that caches the results of configure
36349# tests run on this system so they can be shared between configure
36350# scripts and configure runs, see configure's option --config-cache.
36351# It is not useful on other systems. If it contains results you don't
36352# want to keep, you may remove or edit it.
36353#
36354# config.status only pays attention to the cache file if you give it
36355# the --recheck option to rerun configure.
36356#
36357# `ac_cv_env_foo' variables (set or unset) will be overridden when
36358# loading this file, other *unset* `ac_cv_foo' will be assigned the
36359# following values.
36360
36361_ACEOF
36362
36363# The following way of writing the cache mishandles newlines in values,
36364# but we know of no workaround that is simple, portable, and efficient.
36365# So, don't put newlines in cache variables' values.
36366# Ultrix sh set writes to stderr and can't be redirected directly,
36367# and sets the high bit in the cache file unless we assign to the vars.
36368{
36369 (set) 2>&1 |
36370 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36371 *ac_space=\ *)
36372 # `set' does not quote correctly, so add quotes (double-quote
36373 # substitution turns \\\\ into \\, and sed turns \\ into \).
36374 sed -n \
ac1cb8d3
VS
36375 "s/'/'\\\\''/g;
36376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36377 ;;
36378 *)
36379 # `set' quotes correctly as required by POSIX, so do not add quotes.
36380 sed -n \
ac1cb8d3 36381 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36382 ;;
36383 esac;
36384} |
36385 sed '
36386 t clear
36387 : clear
36388 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36389 t end
36390 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36391 : end' >>confcache
36392if diff $cache_file confcache >/dev/null 2>&1; then :; else
36393 if test -w $cache_file; then
36394 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36395 cat confcache >$cache_file
36396 else
36397 echo "not updating unwritable cache $cache_file"
36398 fi
36399fi
36400rm -f confcache
36401
36402
a848cd7e
SC
36403if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36404
36405
36406 THREADS_LINK=
36407 THREADS_CFLAGS=
36408
36409 if test "$wxUSE_THREADS" = "yes" ; then
36410 if test "$USE_BEOS" = 1; then
36411 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36412echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36413 wxUSE_THREADS="no"
36414 fi
36415 fi
36416
36417 if test "$wxUSE_THREADS" = "yes" ; then
36418
36419
36420 THREAD_OPTS="-pthread"
36421 case "${host}" in
36422 *-*-solaris2* | *-*-sunos4* )
36423 if test "x$GCC" = "xyes"; then
36424 THREAD_OPTS="-pthreads $THREAD_OPTS"
36425 else
36426 THREAD_OPTS="-mt $THREAD_OPTS"
36427 fi
36428 ;;
36429 *-*-freebsd*)
36430 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36431 ;;
36432 *-*-darwin* | *-*-cygwin* )
36433 THREAD_OPTS=""
36434 ;;
36435 *-*-aix*)
36436 THREAD_OPTS="pthreads"
36437 ;;
36438 *-hp-hpux* )
00421666
MW
36439 if test "x$GCC" = "xyes"; then
36440 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36441 THREAD_OPTS=""
36442 else
0093c2fc 36443 THREAD_OPTS="-mt"
a848cd7e
SC
36444 fi
36445 ;;
36446
36447 *-*-irix* )
36448 if test "x$GCC" = "xyes"; then
36449 THREAD_OPTS=""
36450 fi
36451 ;;
36452
36453 *-*-*UnixWare*)
36454 if test "x$GCC" != "xyes"; then
36455 THREAD_OPTS="-Ethread"
36456 fi
36457 ;;
36458 esac
36459
36460 THREAD_OPTS="$THREAD_OPTS pthread none"
36461
36462 THREADS_OK=no
36463 for flag in $THREAD_OPTS; do
36464 case $flag in
36465 none)
36466 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36467echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36468 ;;
36469
36470 -*)
36471 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36472echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36473 THREADS_CFLAGS="$flag"
36474 ;;
36475
36476 *)
36477 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36478echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36479 THREADS_LINK="-l$flag"
36480 ;;
36481 esac
36482
36483 save_LIBS="$LIBS"
36484 save_CFLAGS="$CFLAGS"
36485 LIBS="$THREADS_LINK $LIBS"
36486 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36487
36488 cat >conftest.$ac_ext <<_ACEOF
36489/* confdefs.h. */
36490_ACEOF
36491cat confdefs.h >>conftest.$ac_ext
36492cat >>conftest.$ac_ext <<_ACEOF
36493/* end confdefs.h. */
36494#include <pthread.h>
36495int
36496main ()
36497{
36498pthread_create(0,0,0,0);
36499 ;
36500 return 0;
36501}
36502_ACEOF
36503rm -f conftest.$ac_objext conftest$ac_exeext
36504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36505 (eval $ac_link) 2>conftest.er1
a848cd7e 36506 ac_status=$?
ac1cb8d3
VS
36507 grep -v '^ *+' conftest.er1 >conftest.err
36508 rm -f conftest.er1
36509 cat conftest.err >&5
a848cd7e
SC
36510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36511 (exit $ac_status); } &&
5ff751d6 36512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36514 (eval $ac_try) 2>&5
36515 ac_status=$?
36516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36517 (exit $ac_status); }; } &&
36518 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36520 (eval $ac_try) 2>&5
36521 ac_status=$?
36522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36523 (exit $ac_status); }; }; then
36524 THREADS_OK=yes
36525else
36526 echo "$as_me: failed program was:" >&5
36527sed 's/^/| /' conftest.$ac_ext >&5
36528
36529fi
ac1cb8d3
VS
36530rm -f conftest.err conftest.$ac_objext \
36531 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36532
36533 LIBS="$save_LIBS"
36534 CFLAGS="$save_CFLAGS"
36535
36536 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36537echo "${ECHO_T}$THREADS_OK" >&6
36538 if test "x$THREADS_OK" = "xyes"; then
36539 break;
36540 fi
36541
36542 THREADS_LINK=""
36543 THREADS_CFLAGS=""
36544 done
36545
36546 if test "x$THREADS_OK" != "xyes"; then
36547 wxUSE_THREADS=no
36548 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36549echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36550 else
36551 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36552 LIBS="$THREADS_LINK $LIBS"
36553
36554 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36555echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36556 flag=no
36557 case "${host}" in
36558 *-aix*)
36559 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
36560 flag="-D_THREAD_SAFE"
36561 ;;
36562 *-freebsd*)
36563 flag="-D_THREAD_SAFE"
36564 ;;
36565 *-hp-hpux* )
36566 flag="-D_REENTRANT"
36567 if test "x$GCC" != "xyes"; then
36568 flag="$flag -D_RWSTD_MULTI_THREAD"
36569 fi
36570 ;;
36571 *solaris* | alpha*-osf*)
36572 flag="-D_REENTRANT"
36573 ;;
36574 esac
36575 echo "$as_me:$LINENO: result: ${flag}" >&5
36576echo "${ECHO_T}${flag}" >&6
36577 if test "x$flag" != xno; then
36578 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
36579 fi
36580
5ff751d6 36581 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
36582 fi
36583 fi
36584
36585 if test "$wxUSE_THREADS" = "yes" ; then
36586
36587for ac_func in thr_setconcurrency
36588do
36589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36590echo "$as_me:$LINENO: checking for $ac_func" >&5
36591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36592if eval "test \"\${$as_ac_var+set}\" = set"; then
36593 echo $ECHO_N "(cached) $ECHO_C" >&6
36594else
36595 cat >conftest.$ac_ext <<_ACEOF
36596/* confdefs.h. */
36597_ACEOF
36598cat confdefs.h >>conftest.$ac_ext
36599cat >>conftest.$ac_ext <<_ACEOF
36600/* end confdefs.h. */
ac1cb8d3
VS
36601/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36603#define $ac_func innocuous_$ac_func
36604
a848cd7e
SC
36605/* System header to define __stub macros and hopefully few prototypes,
36606 which can conflict with char $ac_func (); below.
36607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36608 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36609
a848cd7e
SC
36610#ifdef __STDC__
36611# include <limits.h>
36612#else
36613# include <assert.h>
36614#endif
ac1cb8d3
VS
36615
36616#undef $ac_func
36617
a848cd7e
SC
36618/* Override any gcc2 internal prototype to avoid an error. */
36619#ifdef __cplusplus
36620extern "C"
36621{
36622#endif
36623/* We use char because int might match the return type of a gcc2
36624 builtin and then its argument prototype would still apply. */
36625char $ac_func ();
36626/* The GNU C library defines this for functions which it implements
36627 to always fail with ENOSYS. Some functions are actually named
36628 something starting with __ and the normal name is an alias. */
36629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36630choke me
36631#else
36632char (*f) () = $ac_func;
36633#endif
36634#ifdef __cplusplus
36635}
36636#endif
36637
36638int
36639main ()
36640{
36641return f != $ac_func;
36642 ;
36643 return 0;
36644}
36645_ACEOF
36646rm -f conftest.$ac_objext conftest$ac_exeext
36647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36648 (eval $ac_link) 2>conftest.er1
a848cd7e 36649 ac_status=$?
ac1cb8d3
VS
36650 grep -v '^ *+' conftest.er1 >conftest.err
36651 rm -f conftest.er1
36652 cat conftest.err >&5
a848cd7e
SC
36653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654 (exit $ac_status); } &&
5ff751d6 36655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36657 (eval $ac_try) 2>&5
36658 ac_status=$?
36659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36660 (exit $ac_status); }; } &&
36661 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36663 (eval $ac_try) 2>&5
36664 ac_status=$?
36665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36666 (exit $ac_status); }; }; then
36667 eval "$as_ac_var=yes"
36668else
36669 echo "$as_me: failed program was:" >&5
36670sed 's/^/| /' conftest.$ac_ext >&5
36671
36672eval "$as_ac_var=no"
36673fi
ac1cb8d3
VS
36674rm -f conftest.err conftest.$ac_objext \
36675 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36676fi
36677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36678echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36679if test `eval echo '${'$as_ac_var'}'` = yes; then
36680 cat >>confdefs.h <<_ACEOF
36681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36682_ACEOF
36683
36684fi
36685done
36686
36687
6ebeb4c7
VZ
36688 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36689echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36690if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36691 echo $ECHO_N "(cached) $ECHO_C" >&6
36692else
36693
36694 cat >conftest.$ac_ext <<_ACEOF
36695/* confdefs.h. */
36696_ACEOF
36697cat confdefs.h >>conftest.$ac_ext
36698cat >>conftest.$ac_ext <<_ACEOF
36699/* end confdefs.h. */
36700#include <pthread.h>
36701 void ThreadCleanupFunc(void *p);
36702
36703int
36704main ()
36705{
36706
36707 void *p;
36708 pthread_cleanup_push(ThreadCleanupFunc, p);
36709 pthread_cleanup_pop(0);
36710
36711 ;
36712 return 0;
36713}
36714_ACEOF
36715rm -f conftest.$ac_objext
36716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36717 (eval $ac_compile) 2>conftest.er1
36718 ac_status=$?
36719 grep -v '^ *+' conftest.er1 >conftest.err
36720 rm -f conftest.er1
36721 cat conftest.err >&5
36722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36723 (exit $ac_status); } &&
5ff751d6 36724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36726 (eval $ac_try) 2>&5
36727 ac_status=$?
36728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36729 (exit $ac_status); }; } &&
36730 { ac_try='test -s conftest.$ac_objext'
36731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36732 (eval $ac_try) 2>&5
36733 ac_status=$?
36734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735 (exit $ac_status); }; }; then
36736
36737 wx_cv_func_pthread_cleanup=yes
36738
36739else
36740 echo "$as_me: failed program was:" >&5
36741sed 's/^/| /' conftest.$ac_ext >&5
36742
36743
36744 wx_cv_func_pthread_cleanup=no
36745
36746
36747fi
36748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36749
36750fi
36751echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36752echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36753 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36754 cat >>confdefs.h <<\_ACEOF
36755#define wxHAVE_PTHREAD_CLEANUP 1
36756_ACEOF
36757
36758 fi
36759
a848cd7e
SC
36760
36761for ac_header in sched.h
36762do
36763as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36764if eval "test \"\${$as_ac_Header+set}\" = set"; then
36765 echo "$as_me:$LINENO: checking for $ac_header" >&5
36766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36767if eval "test \"\${$as_ac_Header+set}\" = set"; then
36768 echo $ECHO_N "(cached) $ECHO_C" >&6
36769fi
36770echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36771echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36772else
36773 # Is the header compilable?
36774echo "$as_me:$LINENO: checking $ac_header usability" >&5
36775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36776cat >conftest.$ac_ext <<_ACEOF
36777/* confdefs.h. */
36778_ACEOF
36779cat confdefs.h >>conftest.$ac_ext
36780cat >>conftest.$ac_ext <<_ACEOF
36781/* end confdefs.h. */
36782$ac_includes_default
36783#include <$ac_header>
36784_ACEOF
36785rm -f conftest.$ac_objext
36786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36787 (eval $ac_compile) 2>conftest.er1
a848cd7e 36788 ac_status=$?
ac1cb8d3
VS
36789 grep -v '^ *+' conftest.er1 >conftest.err
36790 rm -f conftest.er1
36791 cat conftest.err >&5
a848cd7e
SC
36792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36793 (exit $ac_status); } &&
5ff751d6 36794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36796 (eval $ac_try) 2>&5
36797 ac_status=$?
36798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36799 (exit $ac_status); }; } &&
36800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36802 (eval $ac_try) 2>&5
36803 ac_status=$?
36804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805 (exit $ac_status); }; }; then
36806 ac_header_compiler=yes
36807else
36808 echo "$as_me: failed program was:" >&5
36809sed 's/^/| /' conftest.$ac_ext >&5
36810
36811ac_header_compiler=no
36812fi
ac1cb8d3 36813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36814echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36815echo "${ECHO_T}$ac_header_compiler" >&6
36816
36817# Is the header present?
36818echo "$as_me:$LINENO: checking $ac_header presence" >&5
36819echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36820cat >conftest.$ac_ext <<_ACEOF
36821/* confdefs.h. */
36822_ACEOF
36823cat confdefs.h >>conftest.$ac_ext
36824cat >>conftest.$ac_ext <<_ACEOF
36825/* end confdefs.h. */
36826#include <$ac_header>
36827_ACEOF
36828if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36830 ac_status=$?
36831 grep -v '^ *+' conftest.er1 >conftest.err
36832 rm -f conftest.er1
36833 cat conftest.err >&5
36834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36835 (exit $ac_status); } >/dev/null; then
36836 if test -s conftest.err; then
36837 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36839 else
36840 ac_cpp_err=
36841 fi
36842else
36843 ac_cpp_err=yes
36844fi
36845if test -z "$ac_cpp_err"; then
36846 ac_header_preproc=yes
36847else
36848 echo "$as_me: failed program was:" >&5
36849sed 's/^/| /' conftest.$ac_ext >&5
36850
36851 ac_header_preproc=no
36852fi
36853rm -f conftest.err conftest.$ac_ext
36854echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36855echo "${ECHO_T}$ac_header_preproc" >&6
36856
36857# So? What about this header?
ac1cb8d3
VS
36858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36859 yes:no: )
a848cd7e
SC
36860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36861echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36863echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36864 ac_header_preproc=yes
a848cd7e 36865 ;;
ac1cb8d3 36866 no:yes:* )
a848cd7e
SC
36867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36868echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36870echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36872echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36874echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36876echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36878echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36879 (
36880 cat <<\_ASBOX
ac1cb8d3
VS
36881## ----------------------------------------- ##
36882## Report this to wx-dev@lists.wxwidgets.org ##
36883## ----------------------------------------- ##
a848cd7e
SC
36884_ASBOX
36885 ) |
36886 sed "s/^/$as_me: WARNING: /" >&2
36887 ;;
36888esac
36889echo "$as_me:$LINENO: checking for $ac_header" >&5
36890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36891if eval "test \"\${$as_ac_Header+set}\" = set"; then
36892 echo $ECHO_N "(cached) $ECHO_C" >&6
36893else
ac1cb8d3 36894 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36895fi
36896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36898
36899fi
36900if test `eval echo '${'$as_ac_Header'}'` = yes; then
36901 cat >>confdefs.h <<_ACEOF
36902#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36903_ACEOF
36904
36905fi
36906
36907done
36908
36909 if test "$ac_cv_header_sched_h" = "yes"; then
36910 echo "$as_me:$LINENO: checking for sched_yield" >&5
36911echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36912if test "${ac_cv_func_sched_yield+set}" = set; then
36913 echo $ECHO_N "(cached) $ECHO_C" >&6
36914else
36915 cat >conftest.$ac_ext <<_ACEOF
36916/* confdefs.h. */
36917_ACEOF
36918cat confdefs.h >>conftest.$ac_ext
36919cat >>conftest.$ac_ext <<_ACEOF
36920/* end confdefs.h. */
ac1cb8d3
VS
36921/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
36922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36923#define sched_yield innocuous_sched_yield
36924
a848cd7e
SC
36925/* System header to define __stub macros and hopefully few prototypes,
36926 which can conflict with char sched_yield (); below.
36927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36928 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36929
a848cd7e
SC
36930#ifdef __STDC__
36931# include <limits.h>
36932#else
36933# include <assert.h>
36934#endif
ac1cb8d3
VS
36935
36936#undef sched_yield
36937
a848cd7e
SC
36938/* Override any gcc2 internal prototype to avoid an error. */
36939#ifdef __cplusplus
36940extern "C"
36941{
36942#endif
36943/* We use char because int might match the return type of a gcc2
36944 builtin and then its argument prototype would still apply. */
36945char sched_yield ();
36946/* The GNU C library defines this for functions which it implements
36947 to always fail with ENOSYS. Some functions are actually named
36948 something starting with __ and the normal name is an alias. */
36949#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
36950choke me
36951#else
36952char (*f) () = sched_yield;
36953#endif
36954#ifdef __cplusplus
36955}
36956#endif
36957
36958int
36959main ()
36960{
36961return f != sched_yield;
36962 ;
36963 return 0;
36964}
36965_ACEOF
36966rm -f conftest.$ac_objext conftest$ac_exeext
36967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36968 (eval $ac_link) 2>conftest.er1
a848cd7e 36969 ac_status=$?
ac1cb8d3
VS
36970 grep -v '^ *+' conftest.er1 >conftest.err
36971 rm -f conftest.er1
36972 cat conftest.err >&5
a848cd7e
SC
36973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36974 (exit $ac_status); } &&
5ff751d6 36975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36977 (eval $ac_try) 2>&5
36978 ac_status=$?
36979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36980 (exit $ac_status); }; } &&
36981 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36983 (eval $ac_try) 2>&5
36984 ac_status=$?
36985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36986 (exit $ac_status); }; }; then
36987 ac_cv_func_sched_yield=yes
36988else
36989 echo "$as_me: failed program was:" >&5
36990sed 's/^/| /' conftest.$ac_ext >&5
36991
36992ac_cv_func_sched_yield=no
36993fi
ac1cb8d3
VS
36994rm -f conftest.err conftest.$ac_objext \
36995 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36996fi
36997echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
36998echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
36999if test $ac_cv_func_sched_yield = yes; then
37000 cat >>confdefs.h <<\_ACEOF
37001#define HAVE_SCHED_YIELD 1
37002_ACEOF
37003
37004else
37005
37006 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37007echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37008if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37009 echo $ECHO_N "(cached) $ECHO_C" >&6
37010else
37011 ac_check_lib_save_LIBS=$LIBS
37012LIBS="-lposix4 $LIBS"
37013cat >conftest.$ac_ext <<_ACEOF
37014/* confdefs.h. */
37015_ACEOF
37016cat confdefs.h >>conftest.$ac_ext
37017cat >>conftest.$ac_ext <<_ACEOF
37018/* end confdefs.h. */
37019
37020/* Override any gcc2 internal prototype to avoid an error. */
37021#ifdef __cplusplus
37022extern "C"
37023#endif
37024/* We use char because int might match the return type of a gcc2
37025 builtin and then its argument prototype would still apply. */
37026char sched_yield ();
37027int
37028main ()
37029{
37030sched_yield ();
37031 ;
37032 return 0;
37033}
37034_ACEOF
37035rm -f conftest.$ac_objext conftest$ac_exeext
37036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37037 (eval $ac_link) 2>conftest.er1
a848cd7e 37038 ac_status=$?
ac1cb8d3
VS
37039 grep -v '^ *+' conftest.er1 >conftest.err
37040 rm -f conftest.er1
37041 cat conftest.err >&5
a848cd7e
SC
37042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); } &&
5ff751d6 37044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37046 (eval $ac_try) 2>&5
37047 ac_status=$?
37048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049 (exit $ac_status); }; } &&
37050 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37052 (eval $ac_try) 2>&5
37053 ac_status=$?
37054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37055 (exit $ac_status); }; }; then
37056 ac_cv_lib_posix4_sched_yield=yes
37057else
37058 echo "$as_me: failed program was:" >&5
37059sed 's/^/| /' conftest.$ac_ext >&5
37060
37061ac_cv_lib_posix4_sched_yield=no
37062fi
ac1cb8d3
VS
37063rm -f conftest.err conftest.$ac_objext \
37064 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37065LIBS=$ac_check_lib_save_LIBS
37066fi
37067echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37068echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37069if test $ac_cv_lib_posix4_sched_yield = yes; then
37070 cat >>confdefs.h <<\_ACEOF
37071#define HAVE_SCHED_YIELD 1
37072_ACEOF
37073 POSIX4_LINK=" -lposix4"
37074else
37075 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37076echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37077
37078fi
37079
37080
37081
37082fi
37083
37084 fi
37085
37086 HAVE_PRIOR_FUNCS=0
37087 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37088echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37089if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37090 echo $ECHO_N "(cached) $ECHO_C" >&6
37091else
37092 cat >conftest.$ac_ext <<_ACEOF
37093/* confdefs.h. */
37094_ACEOF
37095cat confdefs.h >>conftest.$ac_ext
37096cat >>conftest.$ac_ext <<_ACEOF
37097/* end confdefs.h. */
ac1cb8d3
VS
37098/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37100#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37101
a848cd7e
SC
37102/* System header to define __stub macros and hopefully few prototypes,
37103 which can conflict with char pthread_attr_getschedpolicy (); below.
37104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37105 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37106
a848cd7e
SC
37107#ifdef __STDC__
37108# include <limits.h>
37109#else
37110# include <assert.h>
37111#endif
ac1cb8d3
VS
37112
37113#undef pthread_attr_getschedpolicy
37114
a848cd7e
SC
37115/* Override any gcc2 internal prototype to avoid an error. */
37116#ifdef __cplusplus
37117extern "C"
37118{
37119#endif
37120/* We use char because int might match the return type of a gcc2
37121 builtin and then its argument prototype would still apply. */
37122char pthread_attr_getschedpolicy ();
37123/* The GNU C library defines this for functions which it implements
37124 to always fail with ENOSYS. Some functions are actually named
37125 something starting with __ and the normal name is an alias. */
37126#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37127choke me
37128#else
37129char (*f) () = pthread_attr_getschedpolicy;
37130#endif
37131#ifdef __cplusplus
37132}
37133#endif
37134
37135int
37136main ()
37137{
37138return f != pthread_attr_getschedpolicy;
37139 ;
37140 return 0;
37141}
37142_ACEOF
37143rm -f conftest.$ac_objext conftest$ac_exeext
37144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37145 (eval $ac_link) 2>conftest.er1
a848cd7e 37146 ac_status=$?
ac1cb8d3
VS
37147 grep -v '^ *+' conftest.er1 >conftest.err
37148 rm -f conftest.er1
37149 cat conftest.err >&5
a848cd7e
SC
37150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151 (exit $ac_status); } &&
5ff751d6 37152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37154 (eval $ac_try) 2>&5
37155 ac_status=$?
37156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157 (exit $ac_status); }; } &&
37158 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37160 (eval $ac_try) 2>&5
37161 ac_status=$?
37162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37163 (exit $ac_status); }; }; then
37164 ac_cv_func_pthread_attr_getschedpolicy=yes
37165else
37166 echo "$as_me: failed program was:" >&5
37167sed 's/^/| /' conftest.$ac_ext >&5
37168
37169ac_cv_func_pthread_attr_getschedpolicy=no
37170fi
ac1cb8d3
VS
37171rm -f conftest.err conftest.$ac_objext \
37172 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37173fi
37174echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37175echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37176if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37177 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37178echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37179if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37180 echo $ECHO_N "(cached) $ECHO_C" >&6
37181else
37182 cat >conftest.$ac_ext <<_ACEOF
37183/* confdefs.h. */
37184_ACEOF
37185cat confdefs.h >>conftest.$ac_ext
37186cat >>conftest.$ac_ext <<_ACEOF
37187/* end confdefs.h. */
ac1cb8d3
VS
37188/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37190#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37191
a848cd7e
SC
37192/* System header to define __stub macros and hopefully few prototypes,
37193 which can conflict with char pthread_attr_setschedparam (); below.
37194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37195 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37196
a848cd7e
SC
37197#ifdef __STDC__
37198# include <limits.h>
37199#else
37200# include <assert.h>
37201#endif
ac1cb8d3
VS
37202
37203#undef pthread_attr_setschedparam
37204
a848cd7e
SC
37205/* Override any gcc2 internal prototype to avoid an error. */
37206#ifdef __cplusplus
37207extern "C"
37208{
37209#endif
37210/* We use char because int might match the return type of a gcc2
37211 builtin and then its argument prototype would still apply. */
37212char pthread_attr_setschedparam ();
37213/* The GNU C library defines this for functions which it implements
37214 to always fail with ENOSYS. Some functions are actually named
37215 something starting with __ and the normal name is an alias. */
37216#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37217choke me
37218#else
37219char (*f) () = pthread_attr_setschedparam;
37220#endif
37221#ifdef __cplusplus
37222}
37223#endif
37224
37225int
37226main ()
37227{
37228return f != pthread_attr_setschedparam;
37229 ;
37230 return 0;
37231}
37232_ACEOF
37233rm -f conftest.$ac_objext conftest$ac_exeext
37234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37235 (eval $ac_link) 2>conftest.er1
a848cd7e 37236 ac_status=$?
ac1cb8d3
VS
37237 grep -v '^ *+' conftest.er1 >conftest.err
37238 rm -f conftest.er1
37239 cat conftest.err >&5
a848cd7e
SC
37240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241 (exit $ac_status); } &&
5ff751d6 37242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244 (eval $ac_try) 2>&5
37245 ac_status=$?
37246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247 (exit $ac_status); }; } &&
37248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37250 (eval $ac_try) 2>&5
37251 ac_status=$?
37252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37253 (exit $ac_status); }; }; then
37254 ac_cv_func_pthread_attr_setschedparam=yes
37255else
37256 echo "$as_me: failed program was:" >&5
37257sed 's/^/| /' conftest.$ac_ext >&5
37258
37259ac_cv_func_pthread_attr_setschedparam=no
37260fi
ac1cb8d3
VS
37261rm -f conftest.err conftest.$ac_objext \
37262 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37263fi
37264echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37265echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37266if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37267 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37268echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37269if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37270 echo $ECHO_N "(cached) $ECHO_C" >&6
37271else
37272 cat >conftest.$ac_ext <<_ACEOF
37273/* confdefs.h. */
37274_ACEOF
37275cat confdefs.h >>conftest.$ac_ext
37276cat >>conftest.$ac_ext <<_ACEOF
37277/* end confdefs.h. */
ac1cb8d3
VS
37278/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37280#define sched_get_priority_max innocuous_sched_get_priority_max
37281
a848cd7e
SC
37282/* System header to define __stub macros and hopefully few prototypes,
37283 which can conflict with char sched_get_priority_max (); below.
37284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37285 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37286
a848cd7e
SC
37287#ifdef __STDC__
37288# include <limits.h>
37289#else
37290# include <assert.h>
37291#endif
ac1cb8d3
VS
37292
37293#undef sched_get_priority_max
37294
a848cd7e
SC
37295/* Override any gcc2 internal prototype to avoid an error. */
37296#ifdef __cplusplus
37297extern "C"
37298{
37299#endif
37300/* We use char because int might match the return type of a gcc2
37301 builtin and then its argument prototype would still apply. */
37302char sched_get_priority_max ();
37303/* The GNU C library defines this for functions which it implements
37304 to always fail with ENOSYS. Some functions are actually named
37305 something starting with __ and the normal name is an alias. */
37306#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37307choke me
37308#else
37309char (*f) () = sched_get_priority_max;
37310#endif
37311#ifdef __cplusplus
37312}
37313#endif
37314
37315int
37316main ()
37317{
37318return f != sched_get_priority_max;
37319 ;
37320 return 0;
37321}
37322_ACEOF
37323rm -f conftest.$ac_objext conftest$ac_exeext
37324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37325 (eval $ac_link) 2>conftest.er1
a848cd7e 37326 ac_status=$?
ac1cb8d3
VS
37327 grep -v '^ *+' conftest.er1 >conftest.err
37328 rm -f conftest.er1
37329 cat conftest.err >&5
a848cd7e
SC
37330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37331 (exit $ac_status); } &&
5ff751d6 37332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37334 (eval $ac_try) 2>&5
37335 ac_status=$?
37336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37337 (exit $ac_status); }; } &&
37338 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37340 (eval $ac_try) 2>&5
37341 ac_status=$?
37342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343 (exit $ac_status); }; }; then
37344 ac_cv_func_sched_get_priority_max=yes
37345else
37346 echo "$as_me: failed program was:" >&5
37347sed 's/^/| /' conftest.$ac_ext >&5
37348
37349ac_cv_func_sched_get_priority_max=no
37350fi
ac1cb8d3
VS
37351rm -f conftest.err conftest.$ac_objext \
37352 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37353fi
37354echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37355echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37356if test $ac_cv_func_sched_get_priority_max = yes; then
37357 HAVE_PRIOR_FUNCS=1
37358else
37359 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37360echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37361if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37362 echo $ECHO_N "(cached) $ECHO_C" >&6
37363else
37364 ac_check_lib_save_LIBS=$LIBS
37365LIBS="-lposix4 $LIBS"
37366cat >conftest.$ac_ext <<_ACEOF
37367/* confdefs.h. */
37368_ACEOF
37369cat confdefs.h >>conftest.$ac_ext
37370cat >>conftest.$ac_ext <<_ACEOF
37371/* end confdefs.h. */
37372
37373/* Override any gcc2 internal prototype to avoid an error. */
37374#ifdef __cplusplus
37375extern "C"
37376#endif
37377/* We use char because int might match the return type of a gcc2
37378 builtin and then its argument prototype would still apply. */
37379char sched_get_priority_max ();
37380int
37381main ()
37382{
37383sched_get_priority_max ();
37384 ;
37385 return 0;
37386}
37387_ACEOF
37388rm -f conftest.$ac_objext conftest$ac_exeext
37389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37390 (eval $ac_link) 2>conftest.er1
a848cd7e 37391 ac_status=$?
ac1cb8d3
VS
37392 grep -v '^ *+' conftest.er1 >conftest.err
37393 rm -f conftest.er1
37394 cat conftest.err >&5
a848cd7e
SC
37395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37396 (exit $ac_status); } &&
5ff751d6 37397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37399 (eval $ac_try) 2>&5
37400 ac_status=$?
37401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37402 (exit $ac_status); }; } &&
37403 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37405 (eval $ac_try) 2>&5
37406 ac_status=$?
37407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37408 (exit $ac_status); }; }; then
37409 ac_cv_lib_posix4_sched_get_priority_max=yes
37410else
37411 echo "$as_me: failed program was:" >&5
37412sed 's/^/| /' conftest.$ac_ext >&5
37413
37414ac_cv_lib_posix4_sched_get_priority_max=no
37415fi
ac1cb8d3
VS
37416rm -f conftest.err conftest.$ac_objext \
37417 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37418LIBS=$ac_check_lib_save_LIBS
37419fi
37420echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37421echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37422if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37423
37424 HAVE_PRIOR_FUNCS=1
37425 POSIX4_LINK=" -lposix4"
37426
37427fi
37428
37429
37430fi
37431
37432
37433fi
37434
37435
37436fi
37437
37438
37439 if test "$HAVE_PRIOR_FUNCS" = 1; then
37440 cat >>confdefs.h <<\_ACEOF
37441#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37442_ACEOF
37443
37444 else
37445 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37446echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37447 fi
37448
37449 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37450echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37451if test "${ac_cv_func_pthread_cancel+set}" = set; then
37452 echo $ECHO_N "(cached) $ECHO_C" >&6
37453else
37454 cat >conftest.$ac_ext <<_ACEOF
37455/* confdefs.h. */
37456_ACEOF
37457cat confdefs.h >>conftest.$ac_ext
37458cat >>conftest.$ac_ext <<_ACEOF
37459/* end confdefs.h. */
ac1cb8d3
VS
37460/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37462#define pthread_cancel innocuous_pthread_cancel
37463
a848cd7e
SC
37464/* System header to define __stub macros and hopefully few prototypes,
37465 which can conflict with char pthread_cancel (); below.
37466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37467 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37468
a848cd7e
SC
37469#ifdef __STDC__
37470# include <limits.h>
37471#else
37472# include <assert.h>
37473#endif
ac1cb8d3
VS
37474
37475#undef pthread_cancel
37476
a848cd7e
SC
37477/* Override any gcc2 internal prototype to avoid an error. */
37478#ifdef __cplusplus
37479extern "C"
37480{
37481#endif
37482/* We use char because int might match the return type of a gcc2
37483 builtin and then its argument prototype would still apply. */
37484char pthread_cancel ();
37485/* The GNU C library defines this for functions which it implements
37486 to always fail with ENOSYS. Some functions are actually named
37487 something starting with __ and the normal name is an alias. */
37488#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37489choke me
37490#else
37491char (*f) () = pthread_cancel;
37492#endif
37493#ifdef __cplusplus
37494}
37495#endif
37496
37497int
37498main ()
37499{
37500return f != pthread_cancel;
37501 ;
37502 return 0;
37503}
37504_ACEOF
37505rm -f conftest.$ac_objext conftest$ac_exeext
37506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37507 (eval $ac_link) 2>conftest.er1
a848cd7e 37508 ac_status=$?
ac1cb8d3
VS
37509 grep -v '^ *+' conftest.er1 >conftest.err
37510 rm -f conftest.er1
37511 cat conftest.err >&5
a848cd7e
SC
37512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513 (exit $ac_status); } &&
5ff751d6 37514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37516 (eval $ac_try) 2>&5
37517 ac_status=$?
37518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37519 (exit $ac_status); }; } &&
37520 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37522 (eval $ac_try) 2>&5
37523 ac_status=$?
37524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37525 (exit $ac_status); }; }; then
37526 ac_cv_func_pthread_cancel=yes
37527else
37528 echo "$as_me: failed program was:" >&5
37529sed 's/^/| /' conftest.$ac_ext >&5
37530
37531ac_cv_func_pthread_cancel=no
37532fi
ac1cb8d3
VS
37533rm -f conftest.err conftest.$ac_objext \
37534 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37535fi
37536echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37537echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37538if test $ac_cv_func_pthread_cancel = yes; then
37539 cat >>confdefs.h <<\_ACEOF
37540#define HAVE_PTHREAD_CANCEL 1
37541_ACEOF
37542
37543else
37544 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37545echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37546fi
37547
37548
abc736fd
MW
37549 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
37550echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
37551if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
37552 echo $ECHO_N "(cached) $ECHO_C" >&6
37553else
37554 cat >conftest.$ac_ext <<_ACEOF
37555/* confdefs.h. */
37556_ACEOF
37557cat confdefs.h >>conftest.$ac_ext
37558cat >>conftest.$ac_ext <<_ACEOF
37559/* end confdefs.h. */
37560/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
37561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37562#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
37563
37564/* System header to define __stub macros and hopefully few prototypes,
37565 which can conflict with char pthread_attr_setstacksize (); below.
37566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37567 <limits.h> exists even on freestanding compilers. */
37568
37569#ifdef __STDC__
37570# include <limits.h>
37571#else
37572# include <assert.h>
37573#endif
37574
37575#undef pthread_attr_setstacksize
37576
37577/* Override any gcc2 internal prototype to avoid an error. */
37578#ifdef __cplusplus
37579extern "C"
37580{
37581#endif
37582/* We use char because int might match the return type of a gcc2
37583 builtin and then its argument prototype would still apply. */
37584char pthread_attr_setstacksize ();
37585/* The GNU C library defines this for functions which it implements
37586 to always fail with ENOSYS. Some functions are actually named
37587 something starting with __ and the normal name is an alias. */
37588#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
37589choke me
37590#else
37591char (*f) () = pthread_attr_setstacksize;
37592#endif
37593#ifdef __cplusplus
37594}
37595#endif
37596
37597int
37598main ()
37599{
37600return f != pthread_attr_setstacksize;
37601 ;
37602 return 0;
37603}
37604_ACEOF
37605rm -f conftest.$ac_objext conftest$ac_exeext
37606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37607 (eval $ac_link) 2>conftest.er1
37608 ac_status=$?
37609 grep -v '^ *+' conftest.er1 >conftest.err
37610 rm -f conftest.er1
37611 cat conftest.err >&5
37612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613 (exit $ac_status); } &&
5ff751d6 37614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
37615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37616 (eval $ac_try) 2>&5
37617 ac_status=$?
37618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619 (exit $ac_status); }; } &&
37620 { ac_try='test -s conftest$ac_exeext'
37621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37622 (eval $ac_try) 2>&5
37623 ac_status=$?
37624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37625 (exit $ac_status); }; }; then
37626 ac_cv_func_pthread_attr_setstacksize=yes
37627else
37628 echo "$as_me: failed program was:" >&5
37629sed 's/^/| /' conftest.$ac_ext >&5
37630
37631ac_cv_func_pthread_attr_setstacksize=no
37632fi
37633rm -f conftest.err conftest.$ac_objext \
37634 conftest$ac_exeext conftest.$ac_ext
37635fi
37636echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37637echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37638if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37639 cat >>confdefs.h <<\_ACEOF
37640#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37641_ACEOF
37642
37643fi
37644
a848cd7e
SC
37645
37646
37647 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37648echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37649if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37650 echo $ECHO_N "(cached) $ECHO_C" >&6
37651else
37652
37653 cat >conftest.$ac_ext <<_ACEOF
37654/* confdefs.h. */
37655_ACEOF
37656cat confdefs.h >>conftest.$ac_ext
37657cat >>conftest.$ac_ext <<_ACEOF
37658/* end confdefs.h. */
37659#include <pthread.h>
37660int
37661main ()
37662{
37663
37664 pthread_mutexattr_t attr;
37665 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37666
37667 ;
37668 return 0;
37669}
37670_ACEOF
37671rm -f conftest.$ac_objext
37672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37673 (eval $ac_compile) 2>conftest.er1
a848cd7e 37674 ac_status=$?
ac1cb8d3
VS
37675 grep -v '^ *+' conftest.er1 >conftest.err
37676 rm -f conftest.er1
37677 cat conftest.err >&5
a848cd7e
SC
37678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37679 (exit $ac_status); } &&
5ff751d6 37680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37682 (eval $ac_try) 2>&5
37683 ac_status=$?
37684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685 (exit $ac_status); }; } &&
37686 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37688 (eval $ac_try) 2>&5
37689 ac_status=$?
37690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691 (exit $ac_status); }; }; then
123dca7d 37692 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
37693else
37694 echo "$as_me: failed program was:" >&5
37695sed 's/^/| /' conftest.$ac_ext >&5
37696
123dca7d 37697wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
37698
37699fi
ac1cb8d3 37700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37701
37702fi
37703echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37704echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37705
37706 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37707 cat >>confdefs.h <<\_ACEOF
37708#define HAVE_PTHREAD_MUTEXATTR_T 1
37709_ACEOF
37710
123dca7d
VZ
37711
37712 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
37713echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
37714if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
37715 echo $ECHO_N "(cached) $ECHO_C" >&6
37716else
37717
37718 cat >conftest.$ac_ext <<_ACEOF
37719/* confdefs.h. */
37720_ACEOF
37721cat confdefs.h >>conftest.$ac_ext
37722cat >>conftest.$ac_ext <<_ACEOF
37723/* end confdefs.h. */
37724#include <pthread.h>
37725int
37726main ()
37727{
37728
37729 pthread_mutexattr_t attr;
37730 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37731
37732 ;
37733 return 0;
37734}
37735_ACEOF
37736rm -f conftest.$ac_objext
37737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37738 (eval $ac_compile) 2>conftest.er1
37739 ac_status=$?
37740 grep -v '^ *+' conftest.er1 >conftest.err
37741 rm -f conftest.er1
37742 cat conftest.err >&5
37743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); } &&
5ff751d6 37745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
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); }; } &&
37751 { ac_try='test -s conftest.$ac_objext'
37752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37753 (eval $ac_try) 2>&5
37754 ac_status=$?
37755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756 (exit $ac_status); }; }; then
37757 wx_cv_func_pthread_mutexattr_settype_decl=yes
37758else
37759 echo "$as_me: failed program was:" >&5
37760sed 's/^/| /' conftest.$ac_ext >&5
37761
37762wx_cv_func_pthread_mutexattr_settype_decl=no
37763
37764fi
37765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37766
37767fi
37768echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
37769echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
37770 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
37771 cat >>confdefs.h <<\_ACEOF
37772#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
37773_ACEOF
37774
37775 fi
a848cd7e
SC
37776 else
37777 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37778echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37779if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37780 echo $ECHO_N "(cached) $ECHO_C" >&6
37781else
37782
37783 cat >conftest.$ac_ext <<_ACEOF
37784/* confdefs.h. */
37785_ACEOF
37786cat confdefs.h >>conftest.$ac_ext
37787cat >>conftest.$ac_ext <<_ACEOF
37788/* end confdefs.h. */
37789#include <pthread.h>
37790int
37791main ()
37792{
37793
37794 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37795
37796 ;
37797 return 0;
37798}
37799_ACEOF
37800rm -f conftest.$ac_objext
37801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37802 (eval $ac_compile) 2>conftest.er1
a848cd7e 37803 ac_status=$?
ac1cb8d3
VS
37804 grep -v '^ *+' conftest.er1 >conftest.err
37805 rm -f conftest.er1
37806 cat conftest.err >&5
a848cd7e
SC
37807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37808 (exit $ac_status); } &&
5ff751d6 37809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37811 (eval $ac_try) 2>&5
37812 ac_status=$?
37813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814 (exit $ac_status); }; } &&
37815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37817 (eval $ac_try) 2>&5
37818 ac_status=$?
37819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820 (exit $ac_status); }; }; then
37821
37822 wx_cv_type_pthread_rec_mutex_init=yes
37823
37824else
37825 echo "$as_me: failed program was:" >&5
37826sed 's/^/| /' conftest.$ac_ext >&5
37827
37828
37829 wx_cv_type_pthread_rec_mutex_init=no
37830
37831
37832fi
ac1cb8d3 37833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37834
37835fi
37836echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37837echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37838 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37839 cat >>confdefs.h <<\_ACEOF
37840#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37841_ACEOF
37842
37843 else
37844 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37845echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37846 fi
37847 fi
37848 fi
37849
37850else
37851 if test "$wxUSE_THREADS" = "yes" ; then
37852 case "${host}" in
37853 *-*-mingw32* )
37854 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37855echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37856if test "${wx_cv_cflags_mthread+set}" = set; then
37857 echo $ECHO_N "(cached) $ECHO_C" >&6
37858else
37859
37860 CFLAGS_OLD="$CFLAGS"
37861 CFLAGS="$CFLAGS -mthreads"
37862 cat >conftest.$ac_ext <<_ACEOF
37863/* confdefs.h. */
37864_ACEOF
37865cat confdefs.h >>conftest.$ac_ext
37866cat >>conftest.$ac_ext <<_ACEOF
37867/* end confdefs.h. */
37868
37869int
37870main ()
37871{
37872
37873 ;
37874 return 0;
37875}
37876_ACEOF
37877rm -f conftest.$ac_objext
37878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37879 (eval $ac_compile) 2>conftest.er1
a848cd7e 37880 ac_status=$?
ac1cb8d3
VS
37881 grep -v '^ *+' conftest.er1 >conftest.err
37882 rm -f conftest.er1
37883 cat conftest.err >&5
a848cd7e
SC
37884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37885 (exit $ac_status); } &&
5ff751d6 37886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37888 (eval $ac_try) 2>&5
37889 ac_status=$?
37890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37891 (exit $ac_status); }; } &&
37892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37894 (eval $ac_try) 2>&5
37895 ac_status=$?
37896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37897 (exit $ac_status); }; }; then
37898 wx_cv_cflags_mthread=yes
37899else
37900 echo "$as_me: failed program was:" >&5
37901sed 's/^/| /' conftest.$ac_ext >&5
37902
37903wx_cv_cflags_mthread=no
37904
37905fi
ac1cb8d3 37906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37907
37908
37909fi
37910echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37911echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37912
37913 if test "$wx_cv_cflags_mthread" = "yes"; then
5ff751d6 37914 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
37915 LDFLAGS="$LDFLAGS -mthreads"
37916 else
37917 CFLAGS="$CFLAGS_OLD"
37918 fi
37919 ;;
37920 *-pc-os2*emx )
5ff751d6
VZ
37921 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
37922 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
37923 LDFLAGS="$LDFLAGS -Zmt"
37924 ;;
37925 esac
37926 fi
37927fi
37928
37929if test "$wxUSE_THREADS" = "yes"; then
37930 cat >>confdefs.h <<\_ACEOF
37931#define wxUSE_THREADS 1
37932_ACEOF
37933
37934
37935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
37936else
37937 if test "$ac_cv_func_strtok_r" = "yes"; then
37938 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
37939echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
37940 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
5ff751d6 37941 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
a848cd7e
SC
37942 echo "$as_me:$LINENO: result: yes" >&5
37943echo "${ECHO_T}yes" >&6
37944 else
37945 echo "$as_me:$LINENO: result: no" >&5
37946echo "${ECHO_T}no" >&6
37947 fi
37948 fi
37949fi
37950
37951if test "$WXGTK20" = 1 ; then
37952 cat >>confdefs.h <<_ACEOF
37953#define __WXGTK20__ $WXGTK20
37954_ACEOF
37955
37956 WXGTK12=1
37957fi
37958
37959if test "$WXGTK12" = 1 ; then
37960 cat >>confdefs.h <<_ACEOF
37961#define __WXGTK12__ $WXGTK12
37962_ACEOF
37963
37964fi
37965
37966if test "$WXGTK127" = 1 ; then
37967 cat >>confdefs.h <<_ACEOF
37968#define __WXGTK127__ $WXGTK127
37969_ACEOF
37970
37971fi
37972
37973if test "$WXGPE" = 1 ; then
37974 cat >>confdefs.h <<_ACEOF
37975#define __WXGPE__ $WXGPE
37976_ACEOF
37977
37978fi
37979
8aeeb05c 37980DEBUG_CFLAGS=
a848cd7e 37981if test "$wxUSE_DEBUG_INFO" = "yes" ; then
8aeeb05c 37982 DEBUG_CFLAGS="-g"
a848cd7e
SC
37983 wxUSE_OPTIMISE=no
37984fi
37985
37986if test "$wxUSE_DEBUG_GDB" = "yes" ; then
37987 wxUSE_DEBUG_INFO=yes
18228ab4 37988 if test "$GCC" = yes; then
8aeeb05c 37989 DEBUG_CFLAGS="-ggdb"
18228ab4 37990 fi
a848cd7e
SC
37991fi
37992
37993if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
37994 cat >>confdefs.h <<\_ACEOF
37995#define WXDEBUG 1
37996_ACEOF
37997
5ff751d6 37998 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
a848cd7e
SC
37999else
38000 if test "$wxUSE_GTK" = 1 ; then
5ff751d6 38001 CPPFLAGS="$CPPFLAGS -DGTK_NO_CHECK_CASTS"
a848cd7e
SC
38002 fi
38003fi
38004
38005if test "$wxUSE_MEM_TRACING" = "yes" ; then
38006 cat >>confdefs.h <<\_ACEOF
38007#define wxUSE_MEMORY_TRACING 1
38008_ACEOF
38009
38010 cat >>confdefs.h <<\_ACEOF
38011#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
38012_ACEOF
38013
38014 cat >>confdefs.h <<\_ACEOF
38015#define wxUSE_DEBUG_NEW_ALWAYS 1
38016_ACEOF
38017
38018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
38019fi
38020
38021if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 38022 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
38023fi
38024
8aeeb05c 38025PROFILE_FLAGS=
a848cd7e 38026if test "$wxUSE_PROFILE" = "yes" ; then
8aeeb05c 38027 PROFILE_FLAGS=" -pg"
a848cd7e
SC
38028fi
38029
a848cd7e
SC
38030if test "$GCC" = "yes" ; then
38031 if test "$wxUSE_NO_RTTI" = "yes" ; then
5ff751d6 38032 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
a848cd7e
SC
38033 fi
38034 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
5ff751d6 38035 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
a848cd7e
SC
38036 fi
38037 if test "$wxUSE_PERMISSIVE" = "yes" ; then
5ff751d6 38038 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
a848cd7e
SC
38039 fi
38040
38041 case "${host}" in
38042 powerpc*-*-aix* )
5ff751d6 38043 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
a848cd7e
SC
38044 ;;
38045 *-hppa* )
5ff751d6 38046 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
a848cd7e
SC
38047 ;;
38048 esac
38049fi
38050
8aeeb05c 38051OPTIMISE_CFLAGS=
a848cd7e
SC
38052if test "$wxUSE_OPTIMISE" = "no" ; then
38053 if test "$GCC" = yes ; then
8aeeb05c 38054 OPTIMISE_CFLAGS="-O0"
a848cd7e
SC
38055 fi
38056else
38057 if test "$GCC" = yes ; then
8aeeb05c 38058 OPTIMISE_CFLAGS="-O2"
a848cd7e 38059 else
8aeeb05c 38060 OPTIMISE_CFLAGS="-O"
a848cd7e
SC
38061 fi
38062fi
38063
38064
dee1a63f 38065if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
a848cd7e 38066 cat >>confdefs.h <<\_ACEOF
dee1a63f 38067#define WXWIN_COMPATIBILITY_2_4 1
a848cd7e
SC
38068_ACEOF
38069
38070
dee1a63f 38071 WXWIN_COMPATIBILITY_2_6="yes"
a848cd7e
SC
38072fi
38073
dee1a63f 38074if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
a848cd7e 38075 cat >>confdefs.h <<\_ACEOF
dee1a63f 38076#define WXWIN_COMPATIBILITY_2_6 1
a848cd7e
SC
38077_ACEOF
38078
38079fi
38080
38081
38082if test "$wxUSE_GUI" = "yes"; then
881bfcd6 38083 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38084#define wxUSE_GUI 1
38085_ACEOF
38086
38087
370fd4c2 38088 fi
a848cd7e
SC
38089
38090
38091if test "$wxUSE_UNIX" = "yes"; then
38092 cat >>confdefs.h <<\_ACEOF
38093#define wxUSE_UNIX 1
38094_ACEOF
38095
38096fi
38097
38098
38099if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38100
38101 HAVE_DL_FUNCS=0
38102 HAVE_SHL_FUNCS=0
38103 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38104 if test "$USE_DARWIN" = 1; then
38105 HAVE_DL_FUNCS=1
47a7e797
MW
38106 elif test "$USE_DOS" = 1; then
38107 HAVE_DL_FUNCS=0
a848cd7e
SC
38108 else
38109
38110for ac_func in dlopen
38111do
38112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38113echo "$as_me:$LINENO: checking for $ac_func" >&5
38114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38115if eval "test \"\${$as_ac_var+set}\" = set"; then
38116 echo $ECHO_N "(cached) $ECHO_C" >&6
38117else
38118 cat >conftest.$ac_ext <<_ACEOF
38119/* confdefs.h. */
38120_ACEOF
38121cat confdefs.h >>conftest.$ac_ext
38122cat >>conftest.$ac_ext <<_ACEOF
38123/* end confdefs.h. */
ac1cb8d3
VS
38124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38126#define $ac_func innocuous_$ac_func
38127
a848cd7e
SC
38128/* System header to define __stub macros and hopefully few prototypes,
38129 which can conflict with char $ac_func (); below.
38130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38131 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38132
a848cd7e
SC
38133#ifdef __STDC__
38134# include <limits.h>
38135#else
38136# include <assert.h>
38137#endif
ac1cb8d3
VS
38138
38139#undef $ac_func
38140
a848cd7e
SC
38141/* Override any gcc2 internal prototype to avoid an error. */
38142#ifdef __cplusplus
38143extern "C"
38144{
38145#endif
38146/* We use char because int might match the return type of a gcc2
38147 builtin and then its argument prototype would still apply. */
38148char $ac_func ();
38149/* The GNU C library defines this for functions which it implements
38150 to always fail with ENOSYS. Some functions are actually named
38151 something starting with __ and the normal name is an alias. */
38152#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38153choke me
38154#else
38155char (*f) () = $ac_func;
38156#endif
38157#ifdef __cplusplus
38158}
38159#endif
38160
38161int
38162main ()
38163{
38164return f != $ac_func;
38165 ;
38166 return 0;
38167}
38168_ACEOF
38169rm -f conftest.$ac_objext conftest$ac_exeext
38170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38171 (eval $ac_link) 2>conftest.er1
a848cd7e 38172 ac_status=$?
ac1cb8d3
VS
38173 grep -v '^ *+' conftest.er1 >conftest.err
38174 rm -f conftest.er1
38175 cat conftest.err >&5
a848cd7e
SC
38176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177 (exit $ac_status); } &&
5ff751d6 38178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38180 (eval $ac_try) 2>&5
38181 ac_status=$?
38182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38183 (exit $ac_status); }; } &&
38184 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38186 (eval $ac_try) 2>&5
38187 ac_status=$?
38188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38189 (exit $ac_status); }; }; then
38190 eval "$as_ac_var=yes"
38191else
38192 echo "$as_me: failed program was:" >&5
38193sed 's/^/| /' conftest.$ac_ext >&5
38194
38195eval "$as_ac_var=no"
38196fi
ac1cb8d3
VS
38197rm -f conftest.err conftest.$ac_objext \
38198 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38199fi
38200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38201echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38202if test `eval echo '${'$as_ac_var'}'` = yes; then
38203 cat >>confdefs.h <<_ACEOF
38204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38205_ACEOF
38206
38207 cat >>confdefs.h <<\_ACEOF
38208#define HAVE_DLOPEN 1
38209_ACEOF
38210
38211 HAVE_DL_FUNCS=1
38212
38213else
38214
38215 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
38216echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
38217if test "${ac_cv_lib_dl_dlopen+set}" = set; then
38218 echo $ECHO_N "(cached) $ECHO_C" >&6
38219else
38220 ac_check_lib_save_LIBS=$LIBS
38221LIBS="-ldl $LIBS"
38222cat >conftest.$ac_ext <<_ACEOF
38223/* confdefs.h. */
38224_ACEOF
38225cat confdefs.h >>conftest.$ac_ext
38226cat >>conftest.$ac_ext <<_ACEOF
38227/* end confdefs.h. */
38228
38229/* Override any gcc2 internal prototype to avoid an error. */
38230#ifdef __cplusplus
38231extern "C"
38232#endif
38233/* We use char because int might match the return type of a gcc2
38234 builtin and then its argument prototype would still apply. */
38235char dlopen ();
38236int
38237main ()
38238{
38239dlopen ();
38240 ;
38241 return 0;
38242}
38243_ACEOF
38244rm -f conftest.$ac_objext conftest$ac_exeext
38245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38246 (eval $ac_link) 2>conftest.er1
a848cd7e 38247 ac_status=$?
ac1cb8d3
VS
38248 grep -v '^ *+' conftest.er1 >conftest.err
38249 rm -f conftest.er1
38250 cat conftest.err >&5
a848cd7e
SC
38251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38252 (exit $ac_status); } &&
5ff751d6 38253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38255 (eval $ac_try) 2>&5
38256 ac_status=$?
38257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38258 (exit $ac_status); }; } &&
38259 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38261 (eval $ac_try) 2>&5
38262 ac_status=$?
38263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38264 (exit $ac_status); }; }; then
38265 ac_cv_lib_dl_dlopen=yes
38266else
38267 echo "$as_me: failed program was:" >&5
38268sed 's/^/| /' conftest.$ac_ext >&5
38269
38270ac_cv_lib_dl_dlopen=no
38271fi
ac1cb8d3
VS
38272rm -f conftest.err conftest.$ac_objext \
38273 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38274LIBS=$ac_check_lib_save_LIBS
38275fi
38276echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
38277echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
38278if test $ac_cv_lib_dl_dlopen = yes; then
38279
38280 cat >>confdefs.h <<\_ACEOF
38281#define HAVE_DLOPEN 1
38282_ACEOF
38283
38284 HAVE_DL_FUNCS=1
38285 DL_LINK=" -ldl$DL_LINK"
38286
38287else
38288
38289
38290for ac_func in shl_load
38291do
38292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38293echo "$as_me:$LINENO: checking for $ac_func" >&5
38294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38295if eval "test \"\${$as_ac_var+set}\" = set"; then
38296 echo $ECHO_N "(cached) $ECHO_C" >&6
38297else
38298 cat >conftest.$ac_ext <<_ACEOF
38299/* confdefs.h. */
38300_ACEOF
38301cat confdefs.h >>conftest.$ac_ext
38302cat >>conftest.$ac_ext <<_ACEOF
38303/* end confdefs.h. */
ac1cb8d3
VS
38304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38306#define $ac_func innocuous_$ac_func
38307
a848cd7e
SC
38308/* System header to define __stub macros and hopefully few prototypes,
38309 which can conflict with char $ac_func (); below.
38310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38311 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38312
a848cd7e
SC
38313#ifdef __STDC__
38314# include <limits.h>
38315#else
38316# include <assert.h>
38317#endif
ac1cb8d3
VS
38318
38319#undef $ac_func
38320
a848cd7e
SC
38321/* Override any gcc2 internal prototype to avoid an error. */
38322#ifdef __cplusplus
38323extern "C"
38324{
38325#endif
38326/* We use char because int might match the return type of a gcc2
38327 builtin and then its argument prototype would still apply. */
38328char $ac_func ();
38329/* The GNU C library defines this for functions which it implements
38330 to always fail with ENOSYS. Some functions are actually named
38331 something starting with __ and the normal name is an alias. */
38332#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38333choke me
38334#else
38335char (*f) () = $ac_func;
38336#endif
38337#ifdef __cplusplus
38338}
38339#endif
38340
38341int
38342main ()
38343{
38344return f != $ac_func;
38345 ;
38346 return 0;
38347}
38348_ACEOF
38349rm -f conftest.$ac_objext conftest$ac_exeext
38350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38351 (eval $ac_link) 2>conftest.er1
a848cd7e 38352 ac_status=$?
ac1cb8d3
VS
38353 grep -v '^ *+' conftest.er1 >conftest.err
38354 rm -f conftest.er1
38355 cat conftest.err >&5
a848cd7e
SC
38356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38357 (exit $ac_status); } &&
5ff751d6 38358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38360 (eval $ac_try) 2>&5
38361 ac_status=$?
38362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38363 (exit $ac_status); }; } &&
38364 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38366 (eval $ac_try) 2>&5
38367 ac_status=$?
38368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38369 (exit $ac_status); }; }; then
38370 eval "$as_ac_var=yes"
38371else
38372 echo "$as_me: failed program was:" >&5
38373sed 's/^/| /' conftest.$ac_ext >&5
38374
38375eval "$as_ac_var=no"
38376fi
ac1cb8d3
VS
38377rm -f conftest.err conftest.$ac_objext \
38378 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38379fi
38380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38381echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38382if test `eval echo '${'$as_ac_var'}'` = yes; then
38383 cat >>confdefs.h <<_ACEOF
38384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38385_ACEOF
38386
38387 cat >>confdefs.h <<\_ACEOF
38388#define HAVE_SHL_LOAD 1
38389_ACEOF
38390
38391 HAVE_SHL_FUNCS=1
38392
38393else
38394
38395 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
38396echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
38397if test "${ac_cv_lib_shl_load_dld+set}" = set; then
38398 echo $ECHO_N "(cached) $ECHO_C" >&6
38399else
38400 ac_check_lib_save_LIBS=$LIBS
38401LIBS="-lshl_load $LIBS"
38402cat >conftest.$ac_ext <<_ACEOF
38403/* confdefs.h. */
38404_ACEOF
38405cat confdefs.h >>conftest.$ac_ext
38406cat >>conftest.$ac_ext <<_ACEOF
38407/* end confdefs.h. */
38408
38409/* Override any gcc2 internal prototype to avoid an error. */
38410#ifdef __cplusplus
38411extern "C"
38412#endif
38413/* We use char because int might match the return type of a gcc2
38414 builtin and then its argument prototype would still apply. */
38415char dld ();
38416int
38417main ()
38418{
38419dld ();
38420 ;
38421 return 0;
38422}
38423_ACEOF
38424rm -f conftest.$ac_objext conftest$ac_exeext
38425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38426 (eval $ac_link) 2>conftest.er1
a848cd7e 38427 ac_status=$?
ac1cb8d3
VS
38428 grep -v '^ *+' conftest.er1 >conftest.err
38429 rm -f conftest.er1
38430 cat conftest.err >&5
a848cd7e
SC
38431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38432 (exit $ac_status); } &&
5ff751d6 38433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38435 (eval $ac_try) 2>&5
38436 ac_status=$?
38437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38438 (exit $ac_status); }; } &&
38439 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38441 (eval $ac_try) 2>&5
38442 ac_status=$?
38443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38444 (exit $ac_status); }; }; then
38445 ac_cv_lib_shl_load_dld=yes
38446else
38447 echo "$as_me: failed program was:" >&5
38448sed 's/^/| /' conftest.$ac_ext >&5
38449
38450ac_cv_lib_shl_load_dld=no
38451fi
ac1cb8d3
VS
38452rm -f conftest.err conftest.$ac_objext \
38453 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38454LIBS=$ac_check_lib_save_LIBS
38455fi
38456echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
38457echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
38458if test $ac_cv_lib_shl_load_dld = yes; then
38459
38460 HAVE_SHL_FUNCS=1
38461 DL_LINK=" -ldld$DL_LINK"
38462
38463fi
38464
38465
38466fi
38467done
38468
38469
38470fi
38471
38472
38473fi
38474done
38475
38476
38477 if test "$HAVE_DL_FUNCS" = 1; then
38478
38479for ac_func in dlerror
38480do
38481as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38482echo "$as_me:$LINENO: checking for $ac_func" >&5
38483echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38484if eval "test \"\${$as_ac_var+set}\" = set"; then
38485 echo $ECHO_N "(cached) $ECHO_C" >&6
38486else
38487 cat >conftest.$ac_ext <<_ACEOF
38488/* confdefs.h. */
38489_ACEOF
38490cat confdefs.h >>conftest.$ac_ext
38491cat >>conftest.$ac_ext <<_ACEOF
38492/* end confdefs.h. */
ac1cb8d3
VS
38493/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38495#define $ac_func innocuous_$ac_func
38496
a848cd7e
SC
38497/* System header to define __stub macros and hopefully few prototypes,
38498 which can conflict with char $ac_func (); below.
38499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38500 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38501
a848cd7e
SC
38502#ifdef __STDC__
38503# include <limits.h>
38504#else
38505# include <assert.h>
38506#endif
ac1cb8d3
VS
38507
38508#undef $ac_func
38509
a848cd7e
SC
38510/* Override any gcc2 internal prototype to avoid an error. */
38511#ifdef __cplusplus
38512extern "C"
38513{
38514#endif
38515/* We use char because int might match the return type of a gcc2
38516 builtin and then its argument prototype would still apply. */
38517char $ac_func ();
38518/* The GNU C library defines this for functions which it implements
38519 to always fail with ENOSYS. Some functions are actually named
38520 something starting with __ and the normal name is an alias. */
38521#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38522choke me
38523#else
38524char (*f) () = $ac_func;
38525#endif
38526#ifdef __cplusplus
38527}
38528#endif
38529
38530int
38531main ()
38532{
38533return f != $ac_func;
38534 ;
38535 return 0;
38536}
38537_ACEOF
38538rm -f conftest.$ac_objext conftest$ac_exeext
38539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38540 (eval $ac_link) 2>conftest.er1
a848cd7e 38541 ac_status=$?
ac1cb8d3
VS
38542 grep -v '^ *+' conftest.er1 >conftest.err
38543 rm -f conftest.er1
38544 cat conftest.err >&5
a848cd7e
SC
38545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38546 (exit $ac_status); } &&
5ff751d6 38547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38549 (eval $ac_try) 2>&5
38550 ac_status=$?
38551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38552 (exit $ac_status); }; } &&
38553 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38555 (eval $ac_try) 2>&5
38556 ac_status=$?
38557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38558 (exit $ac_status); }; }; then
38559 eval "$as_ac_var=yes"
38560else
38561 echo "$as_me: failed program was:" >&5
38562sed 's/^/| /' conftest.$ac_ext >&5
38563
38564eval "$as_ac_var=no"
38565fi
ac1cb8d3
VS
38566rm -f conftest.err conftest.$ac_objext \
38567 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38568fi
38569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38570echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38571if test `eval echo '${'$as_ac_var'}'` = yes; then
38572 cat >>confdefs.h <<_ACEOF
38573#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38574_ACEOF
38575 cat >>confdefs.h <<\_ACEOF
38576#define HAVE_DLERROR 1
38577_ACEOF
38578
38579else
38580
38581 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
38582echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
38583if test "${ac_cv_lib_dl_dlerror+set}" = set; then
38584 echo $ECHO_N "(cached) $ECHO_C" >&6
38585else
38586 ac_check_lib_save_LIBS=$LIBS
38587LIBS="-ldl $LIBS"
38588cat >conftest.$ac_ext <<_ACEOF
38589/* confdefs.h. */
38590_ACEOF
38591cat confdefs.h >>conftest.$ac_ext
38592cat >>conftest.$ac_ext <<_ACEOF
38593/* end confdefs.h. */
38594
38595/* Override any gcc2 internal prototype to avoid an error. */
38596#ifdef __cplusplus
38597extern "C"
38598#endif
38599/* We use char because int might match the return type of a gcc2
38600 builtin and then its argument prototype would still apply. */
38601char dlerror ();
38602int
38603main ()
38604{
38605dlerror ();
38606 ;
38607 return 0;
38608}
38609_ACEOF
38610rm -f conftest.$ac_objext conftest$ac_exeext
38611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38612 (eval $ac_link) 2>conftest.er1
a848cd7e 38613 ac_status=$?
ac1cb8d3
VS
38614 grep -v '^ *+' conftest.er1 >conftest.err
38615 rm -f conftest.er1
38616 cat conftest.err >&5
a848cd7e
SC
38617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38618 (exit $ac_status); } &&
5ff751d6 38619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38621 (eval $ac_try) 2>&5
38622 ac_status=$?
38623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624 (exit $ac_status); }; } &&
38625 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
38631 ac_cv_lib_dl_dlerror=yes
38632else
38633 echo "$as_me: failed program was:" >&5
38634sed 's/^/| /' conftest.$ac_ext >&5
38635
38636ac_cv_lib_dl_dlerror=no
38637fi
ac1cb8d3
VS
38638rm -f conftest.err conftest.$ac_objext \
38639 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38640LIBS=$ac_check_lib_save_LIBS
38641fi
38642echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
38643echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
38644if test $ac_cv_lib_dl_dlerror = yes; then
38645 cat >>confdefs.h <<\_ACEOF
38646#define HAVE_DLERROR 1
38647_ACEOF
38648
38649fi
38650
38651
38652
38653fi
38654done
38655
38656 fi
38657 fi
38658
38659 if test "$HAVE_DL_FUNCS" = 0; then
38660 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 38661 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
38662 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
38663echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
38664 wxUSE_DYNAMIC_LOADER=no
38665 wxUSE_DYNLIB_CLASS=no
38666 else
38667 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
38668echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
38669 fi
38670 fi
38671 fi
38672 fi
38673fi
38674
38675if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
38676 cat >>confdefs.h <<\_ACEOF
38677#define wxUSE_DYNAMIC_LOADER 1
38678_ACEOF
38679
38680fi
38681if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38682 cat >>confdefs.h <<\_ACEOF
38683#define wxUSE_DYNLIB_CLASS 1
38684_ACEOF
38685
38686fi
38687
38688
38689
38690if test "$wxUSE_PLUGINS" = "yes" ; then
38691 if test "$wxUSE_SHARED" = "no" ; then
38692 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
38693echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
38694 wxUSE_PLUGINS=no
38695 fi
38696 if test "$wxUSE_MONOLITHIC" = "yes" ; then
38697 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
38698echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
38699 wxUSE_PLUGINS=no
38700 fi
38701 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
38702 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
38703echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
38704 wxUSE_PLUGINS=no
38705 fi
38706 if test "$wxUSE_PLUGINS" = "yes" ; then
38707 cat >>confdefs.h <<\_ACEOF
38708#define wxUSE_PLUGINS 1
38709_ACEOF
38710
38711 fi
38712fi
38713
38714
38715if test "$wxUSE_STL" = "yes"; then
38716 cat >>confdefs.h <<\_ACEOF
38717#define wxUSE_STL 1
38718_ACEOF
38719
38720fi
38721
38722if test "$wxUSE_APPLE_IEEE" = "yes"; then
38723 cat >>confdefs.h <<\_ACEOF
38724#define wxUSE_APPLE_IEEE 1
38725_ACEOF
38726
38727fi
38728
38729if test "$wxUSE_TIMER" = "yes"; then
38730 cat >>confdefs.h <<\_ACEOF
38731#define wxUSE_TIMER 1
38732_ACEOF
38733
38734fi
38735
9c112555 38736if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
38737 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
38738echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
38739if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 38740 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38741else
d12aef51
VZ
38742
38743 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38744/* confdefs.h. */
38745_ACEOF
38746cat confdefs.h >>conftest.$ac_ext
38747cat >>conftest.$ac_ext <<_ACEOF
38748/* end confdefs.h. */
d12aef51
VZ
38749
38750 #include <sys/soundcard.h>
38751
38752int
38753main ()
38754{
38755
38756 ioctl(0, SNDCTL_DSP_SYNC, 0);
38757
38758 ;
38759 return 0;
38760}
a848cd7e 38761_ACEOF
d12aef51
VZ
38762rm -f conftest.$ac_objext conftest$ac_exeext
38763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38764 (eval $ac_link) 2>conftest.er1
a848cd7e 38765 ac_status=$?
ac1cb8d3
VS
38766 grep -v '^ *+' conftest.er1 >conftest.err
38767 rm -f conftest.er1
38768 cat conftest.err >&5
a848cd7e
SC
38769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38770 (exit $ac_status); } &&
5ff751d6 38771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38773 (eval $ac_try) 2>&5
38774 ac_status=$?
38775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38776 (exit $ac_status); }; } &&
d12aef51 38777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38779 (eval $ac_try) 2>&5
38780 ac_status=$?
38781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782 (exit $ac_status); }; }; then
d12aef51 38783 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38784else
38785 echo "$as_me: failed program was:" >&5
38786sed 's/^/| /' conftest.$ac_ext >&5
38787
a848cd7e 38788
d12aef51
VZ
38789 saveLibs="$LIBS"
38790 LIBS="$saveLibs -lossaudio"
38791 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38792/* confdefs.h. */
38793_ACEOF
38794cat confdefs.h >>conftest.$ac_ext
38795cat >>conftest.$ac_ext <<_ACEOF
38796/* end confdefs.h. */
d12aef51
VZ
38797
38798 #include <sys/soundcard.h>
38799
38800int
38801main ()
38802{
38803
38804 ioctl(0, SNDCTL_DSP_SYNC, 0);
38805
38806 ;
38807 return 0;
38808}
a848cd7e 38809_ACEOF
d12aef51
VZ
38810rm -f conftest.$ac_objext conftest$ac_exeext
38811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38812 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
38813 ac_status=$?
38814 grep -v '^ *+' conftest.er1 >conftest.err
38815 rm -f conftest.er1
38816 cat conftest.err >&5
38817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 38818 (exit $ac_status); } &&
5ff751d6 38819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
38820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38821 (eval $ac_try) 2>&5
38822 ac_status=$?
38823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38824 (exit $ac_status); }; } &&
38825 { ac_try='test -s conftest$ac_exeext'
38826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38827 (eval $ac_try) 2>&5
38828 ac_status=$?
38829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38830 (exit $ac_status); }; }; then
38831 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38832else
38833 echo "$as_me: failed program was:" >&5
38834sed 's/^/| /' conftest.$ac_ext >&5
38835
a848cd7e 38836
d12aef51
VZ
38837 LIBS="$saveLibs"
38838 ac_cv_header_sys_soundcard=no
38839
38840
a848cd7e 38841fi
d12aef51
VZ
38842rm -f conftest.err conftest.$ac_objext \
38843 conftest$ac_exeext conftest.$ac_ext
38844
a848cd7e
SC
38845
38846fi
d12aef51
VZ
38847rm -f conftest.err conftest.$ac_objext \
38848 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38849
38850fi
d12aef51
VZ
38851echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
38852echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 38853
d12aef51
VZ
38854 if test "$ac_cv_header_sys_soundcard" = "yes"; then
38855 cat >>confdefs.h <<\_ACEOF
38856#define HAVE_SYS_SOUNDCARD_H 1
38857_ACEOF
a848cd7e 38858
d12aef51
VZ
38859 else
38860 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
38861 fi
9c112555
MW
38862fi
38863WITH_PLUGIN_SDL=0
38864if test "$wxUSE_SOUND" = "yes"; then
38865 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
38866 if test "$wxUSE_LIBSDL" != "no"; then
38867
38868# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
38869if test "${with_sdl_prefix+set}" = set; then
38870 withval="$with_sdl_prefix"
38871 sdl_prefix="$withval"
38872else
38873 sdl_prefix=""
38874fi;
38875
38876# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
38877if test "${with_sdl_exec_prefix+set}" = set; then
38878 withval="$with_sdl_exec_prefix"
38879 sdl_exec_prefix="$withval"
38880else
38881 sdl_exec_prefix=""
38882fi;
38883# Check whether --enable-sdltest or --disable-sdltest was given.
38884if test "${enable_sdltest+set}" = set; then
38885 enableval="$enable_sdltest"
38886
38887else
38888 enable_sdltest=yes
38889fi;
38890
38891 if test x$sdl_exec_prefix != x ; then
38892 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
38893 if test x${SDL_CONFIG+set} != xset ; then
38894 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
38895 fi
38896 fi
38897 if test x$sdl_prefix != x ; then
38898 sdl_args="$sdl_args --prefix=$sdl_prefix"
38899 if test x${SDL_CONFIG+set} != xset ; then
38900 SDL_CONFIG=$sdl_prefix/bin/sdl-config
38901 fi
38902 fi
38903
38904
38905 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
38906 # Extract the first word of "sdl-config", so it can be a program name with args.
38907set dummy sdl-config; ac_word=$2
38908echo "$as_me:$LINENO: checking for $ac_word" >&5
38909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38910if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
38911 echo $ECHO_N "(cached) $ECHO_C" >&6
38912else
38913 case $SDL_CONFIG in
38914 [\\/]* | ?:[\\/]*)
38915 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
38916 ;;
38917 *)
38918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38919for as_dir in $PATH
38920do
38921 IFS=$as_save_IFS
38922 test -z "$as_dir" && as_dir=.
38923 for ac_exec_ext in '' $ac_executable_extensions; do
38924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38925 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38927 break 2
38928 fi
38929done
38930done
38931
38932 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
38933 ;;
38934esac
38935fi
38936SDL_CONFIG=$ac_cv_path_SDL_CONFIG
38937
38938if test -n "$SDL_CONFIG"; then
38939 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
38940echo "${ECHO_T}$SDL_CONFIG" >&6
38941else
38942 echo "$as_me:$LINENO: result: no" >&5
38943echo "${ECHO_T}no" >&6
38944fi
38945
38946 min_sdl_version=1.2.0
38947 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
38948echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
38949 no_sdl=""
38950 if test "$SDL_CONFIG" = "no" ; then
38951 no_sdl=yes
38952 else
38953 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
38954 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
38955
38956 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
38957 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38958 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
38959 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38960 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
38961 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38962 if test "x$enable_sdltest" = "xyes" ; then
38963 ac_save_CFLAGS="$CFLAGS"
94acd38e 38964 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
38965 ac_save_LIBS="$LIBS"
38966 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38967 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38968 LIBS="$LIBS $SDL_LIBS"
38969 rm -f conf.sdltest
38970 if test "$cross_compiling" = yes; then
38971 echo $ac_n "cross compiling; assumed OK... $ac_c"
38972else
38973 cat >conftest.$ac_ext <<_ACEOF
38974/* confdefs.h. */
38975_ACEOF
38976cat confdefs.h >>conftest.$ac_ext
38977cat >>conftest.$ac_ext <<_ACEOF
38978/* end confdefs.h. */
38979
38980#include <stdio.h>
38981#include <stdlib.h>
38982#include <string.h>
38983#include "SDL.h"
38984
38985char*
38986my_strdup (char *str)
38987{
38988 char *new_str;
38989
38990 if (str)
38991 {
38992 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
38993 strcpy (new_str, str);
38994 }
38995 else
38996 new_str = NULL;
38997
38998 return new_str;
38999}
39000
39001int main (int argc, char *argv[])
39002{
39003 int major, minor, micro;
39004 char *tmp_version;
39005
39006 /* This hangs on some systems (?)
39007 system ("touch conf.sdltest");
39008 */
39009 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
39010
39011 /* HP/UX 9 (%@#!) writes to sscanf strings */
39012 tmp_version = my_strdup("$min_sdl_version");
39013 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
39014 printf("%s, bad version string\n", "$min_sdl_version");
39015 exit(1);
39016 }
39017
39018 if (($sdl_major_version > major) ||
39019 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
39020 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
39021 {
39022 return 0;
39023 }
39024 else
39025 {
39026 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
39027 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
39028 printf("*** best to upgrade to the required version.\n");
39029 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
39030 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
39031 printf("*** config.cache before re-running configure\n");
39032 return 1;
39033 }
39034}
39035
39036
39037_ACEOF
39038rm -f conftest$ac_exeext
39039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39040 (eval $ac_link) 2>&5
39041 ac_status=$?
39042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39045 (eval $ac_try) 2>&5
39046 ac_status=$?
39047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39048 (exit $ac_status); }; }; then
39049 :
39050else
39051 echo "$as_me: program exited with status $ac_status" >&5
39052echo "$as_me: failed program was:" >&5
39053sed 's/^/| /' conftest.$ac_ext >&5
39054
39055( exit $ac_status )
39056no_sdl=yes
39057fi
ac1cb8d3 39058rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39059fi
39060 CFLAGS="$ac_save_CFLAGS"
94acd38e 39061 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
39062 LIBS="$ac_save_LIBS"
39063 fi
39064 fi
39065 if test "x$no_sdl" = x ; then
39066 echo "$as_me:$LINENO: result: yes" >&5
39067echo "${ECHO_T}yes" >&6
39068
39069 EXTRALIBS_SDL="$SDL_LIBS"
39070 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
39071 cat >>confdefs.h <<\_ACEOF
39072#define wxUSE_LIBSDL 1
39073_ACEOF
39074
39075
39076 else
39077 echo "$as_me:$LINENO: result: no" >&5
39078echo "${ECHO_T}no" >&6
39079 if test "$SDL_CONFIG" = "no" ; then
39080 echo "*** The sdl-config script installed by SDL could not be found"
39081 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
39082 echo "*** your path, or set the SDL_CONFIG environment variable to the"
39083 echo "*** full path to sdl-config."
39084 else
39085 if test -f conf.sdltest ; then
39086 :
39087 else
39088 echo "*** Could not run SDL test program, checking why..."
39089 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 39090 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
39091 LIBS="$LIBS $SDL_LIBS"
39092 cat >conftest.$ac_ext <<_ACEOF
39093/* confdefs.h. */
39094_ACEOF
39095cat confdefs.h >>conftest.$ac_ext
39096cat >>conftest.$ac_ext <<_ACEOF
39097/* end confdefs.h. */
39098
39099#include <stdio.h>
39100#include "SDL.h"
39101
39102int main(int argc, char *argv[])
39103{ return 0; }
39104#undef main
39105#define main K_and_R_C_main
39106
39107int
39108main ()
39109{
39110 return 0;
39111 ;
39112 return 0;
39113}
39114_ACEOF
39115rm -f conftest.$ac_objext conftest$ac_exeext
39116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39117 (eval $ac_link) 2>conftest.er1
a848cd7e 39118 ac_status=$?
ac1cb8d3
VS
39119 grep -v '^ *+' conftest.er1 >conftest.err
39120 rm -f conftest.er1
39121 cat conftest.err >&5
a848cd7e
SC
39122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39123 (exit $ac_status); } &&
5ff751d6 39124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39126 (eval $ac_try) 2>&5
39127 ac_status=$?
39128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39129 (exit $ac_status); }; } &&
39130 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39132 (eval $ac_try) 2>&5
39133 ac_status=$?
39134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39135 (exit $ac_status); }; }; then
39136 echo "*** The test program compiled, but did not run. This usually means"
39137 echo "*** that the run-time linker is not finding SDL or finding the wrong"
39138 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
39139 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
39140 echo "*** to the installed location Also, make sure you have run ldconfig if that"
39141 echo "*** is required on your system"
39142 echo "***"
39143 echo "*** If you have an old version installed, it is best to remove it, although"
39144 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
39145else
39146 echo "$as_me: failed program was:" >&5
39147sed 's/^/| /' conftest.$ac_ext >&5
39148
39149 echo "*** The test program failed to compile or link. See the file config.log for the"
39150 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
39151 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
39152 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
39153fi
ac1cb8d3
VS
39154rm -f conftest.err conftest.$ac_objext \
39155 conftest$ac_exeext conftest.$ac_ext
a848cd7e 39156 CFLAGS="$ac_save_CFLAGS"
94acd38e 39157 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
39158 LIBS="$ac_save_LIBS"
39159 fi
39160 fi
39161 SDL_CFLAGS=""
39162 SDL_LIBS=""
39163 wxUSE_LIBSDL="no"
39164 fi
39165
39166
39167 rm -f conf.sdltest
39168
39169 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
39170 WITH_PLUGIN_SDL=1
39171 fi
39172 fi
39173 fi
39174
39175 cat >>confdefs.h <<\_ACEOF
39176#define wxUSE_SOUND 1
39177_ACEOF
39178
39179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
39180fi
39181
d1c38808
VZ
39182if test "$WXGTK20" = 1; then
39183 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39184 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
39185
39186
39187 succeeded=no
39188
39189 if test -z "$PKG_CONFIG"; then
39190 # Extract the first word of "pkg-config", so it can be a program name with args.
39191set dummy pkg-config; ac_word=$2
39192echo "$as_me:$LINENO: checking for $ac_word" >&5
39193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39194if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39195 echo $ECHO_N "(cached) $ECHO_C" >&6
39196else
39197 case $PKG_CONFIG in
39198 [\\/]* | ?:[\\/]*)
39199 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39200 ;;
39201 *)
39202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39203for as_dir in $PATH
39204do
39205 IFS=$as_save_IFS
39206 test -z "$as_dir" && as_dir=.
39207 for ac_exec_ext in '' $ac_executable_extensions; do
39208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39209 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39211 break 2
39212 fi
39213done
39214done
39215
39216 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39217 ;;
39218esac
39219fi
39220PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39221
39222if test -n "$PKG_CONFIG"; then
39223 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39224echo "${ECHO_T}$PKG_CONFIG" >&6
39225else
39226 echo "$as_me:$LINENO: result: no" >&5
39227echo "${ECHO_T}no" >&6
39228fi
39229
39230 fi
39231
39232 if test "$PKG_CONFIG" = "no" ; then
39233 echo "*** The pkg-config script could not be found. Make sure it is"
39234 echo "*** in your path, or set the PKG_CONFIG environment variable"
39235 echo "*** to the full path to pkg-config."
39236 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39237 else
39238 PKG_CONFIG_MIN_VERSION=0.9.0
39239 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
39240 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
39241echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 39242
ffa762ff 39243 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
39244 echo "$as_me:$LINENO: result: yes" >&5
39245echo "${ECHO_T}yes" >&6
39246 succeeded=yes
39247
39248 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
39249echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 39250 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39251 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
39252echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
39253
39254 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
39255echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 39256 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39257 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
39258echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
39259 else
39260 LIBGNOMEPRINTUI_CFLAGS=""
39261 LIBGNOMEPRINTUI_LIBS=""
39262 ## If we have a custom action on failure, don't print errors, but
39263 ## do set a variable so people can do so.
ffa762ff 39264 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39265
39266 fi
39267
39268
39269
39270 else
39271 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39272 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39273 fi
39274 fi
39275
39276 if test $succeeded = yes; then
39277
d1c38808
VZ
39278 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
39279 cat >>confdefs.h <<\_ACEOF
39280#define wxUSE_LIBGNOMEPRINT 1
39281_ACEOF
39282
39283
39284 else
39285
39286 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
39287echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
39288 wxUSE_LIBGNOMEPRINT="no"
39289
39290
39291 fi
39292
39293 fi
39294 fi
39295fi
39296
39297
a848cd7e
SC
39298if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
39299 cat >>confdefs.h <<\_ACEOF
39300#define wxUSE_CMDLINE_PARSER 1
39301_ACEOF
39302
39303fi
39304
39305if test "$wxUSE_STOPWATCH" = "yes"; then
39306 cat >>confdefs.h <<\_ACEOF
39307#define wxUSE_STOPWATCH 1
39308_ACEOF
39309
39310fi
39311
39312if test "$wxUSE_DATETIME" = "yes"; then
39313 cat >>confdefs.h <<\_ACEOF
39314#define wxUSE_DATETIME 1
39315_ACEOF
39316
39317fi
39318
39319if test "$wxUSE_FILE" = "yes"; then
39320 cat >>confdefs.h <<\_ACEOF
39321#define wxUSE_FILE 1
39322_ACEOF
39323
39324fi
39325
39326if test "$wxUSE_FFILE" = "yes"; then
39327 cat >>confdefs.h <<\_ACEOF
39328#define wxUSE_FFILE 1
39329_ACEOF
39330
39331fi
39332
39333if test "$wxUSE_FILESYSTEM" = "yes"; then
39334 cat >>confdefs.h <<\_ACEOF
39335#define wxUSE_FILESYSTEM 1
39336_ACEOF
39337
39338fi
39339
39340if test "$wxUSE_FS_ZIP" = "yes"; then
39341 cat >>confdefs.h <<\_ACEOF
39342#define wxUSE_FS_ZIP 1
39343_ACEOF
39344
39345fi
39346
9e8e867f 39347if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 39348 cat >>confdefs.h <<\_ACEOF
9e8e867f 39349#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
39350_ACEOF
39351
39352fi
39353
39354if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 39355 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
39356 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
39357echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
39358 elif test "$wxUSE_ZLIB" = "no"; then
39359 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
39360echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
39361 else
39362 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39363#define wxUSE_ZIPSTREAM 1
39364_ACEOF
39365
81f90336 39366 fi
a848cd7e
SC
39367fi
39368
a848cd7e 39369if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
39370 if test "$USE_UNIX" != 1; then
39371 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
39372echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
39373 wxUSE_ON_FATAL_EXCEPTION=no
39374 else
39375 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39376#define wxUSE_ON_FATAL_EXCEPTION 1
39377_ACEOF
39378
18228ab4 39379 fi
a848cd7e
SC
39380fi
39381
eaff0f0d
VZ
39382if test "$wxUSE_STACKWALKER" = "yes"; then
39383 cat >>confdefs.h <<\_ACEOF
39384#define wxUSE_STACKWALKER 1
39385_ACEOF
39386
39387fi
39388
36b6448c 39389if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
39390 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
39391 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
39392echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
39393 wxUSE_DEBUGREPORT=no
39394 else
39395 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
39396#define wxUSE_DEBUGREPORT 1
39397_ACEOF
39398
21dfc162
MW
39399 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39400 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
39401 fi
dfe0c803 39402 fi
36b6448c
VZ
39403fi
39404
a848cd7e
SC
39405if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39406 cat >>confdefs.h <<\_ACEOF
39407#define wxUSE_SNGLINST_CHECKER 1
39408_ACEOF
39409
39410fi
39411
39412if test "$wxUSE_BUSYINFO" = "yes"; then
39413 cat >>confdefs.h <<\_ACEOF
39414#define wxUSE_BUSYINFO 1
39415_ACEOF
39416
39417fi
39418
39419if test "$wxUSE_STD_IOSTREAM" = "yes"; then
39420 cat >>confdefs.h <<\_ACEOF
39421#define wxUSE_STD_IOSTREAM 1
39422_ACEOF
39423
39424fi
39425
59746b65
MW
39426if test "$wxUSE_STD_STRING" = "yes"; then
39427 cat >>confdefs.h <<\_ACEOF
39428#define wxUSE_STD_STRING 1
39429_ACEOF
39430
39431fi
39432
07158944
VZ
39433if test "$wxUSE_STDPATHS" = "yes"; then
39434 cat >>confdefs.h <<\_ACEOF
39435#define wxUSE_STDPATHS 1
39436_ACEOF
39437
39438fi
39439
a848cd7e
SC
39440if test "$wxUSE_TEXTBUFFER" = "yes"; then
39441 cat >>confdefs.h <<\_ACEOF
39442#define wxUSE_TEXTBUFFER 1
39443_ACEOF
39444
39445fi
39446
39447if test "$wxUSE_TEXTFILE" = "yes"; then
39448 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
39449 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
39450echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
39451 else
39452 cat >>confdefs.h <<\_ACEOF
39453#define wxUSE_TEXTFILE 1
39454_ACEOF
39455
39456 fi
39457fi
39458
39459if test "$wxUSE_CONFIG" = "yes" ; then
39460 if test "$wxUSE_TEXTFILE" != "yes"; then
39461 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
39462echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
39463 else
39464 cat >>confdefs.h <<\_ACEOF
39465#define wxUSE_CONFIG 1
89be85c2
VS
39466_ACEOF
39467
39468 cat >>confdefs.h <<\_ACEOF
39469#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
39470_ACEOF
39471
39472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
39473 fi
39474fi
39475
39476if test "$wxUSE_INTL" = "yes" ; then
39477 if test "$wxUSE_FILE" != "yes"; then
39478 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
39479echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
39480 else
39481 cat >>confdefs.h <<\_ACEOF
39482#define wxUSE_INTL 1
39483_ACEOF
39484
39485 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
39486 GUIDIST="$GUIDIST INTL_DIST"
39487 fi
39488fi
39489
39490if test "$wxUSE_LOG" = "yes"; then
39491 cat >>confdefs.h <<\_ACEOF
39492#define wxUSE_LOG 1
39493_ACEOF
39494
39495
39496 if test "$wxUSE_LOGGUI" = "yes"; then
39497 cat >>confdefs.h <<\_ACEOF
39498#define wxUSE_LOGGUI 1
39499_ACEOF
39500
39501 fi
39502
39503 if test "$wxUSE_LOGWINDOW" = "yes"; then
39504 cat >>confdefs.h <<\_ACEOF
39505#define wxUSE_LOGWINDOW 1
39506_ACEOF
39507
39508 fi
39509
39510 if test "$wxUSE_LOGDIALOG" = "yes"; then
39511 cat >>confdefs.h <<\_ACEOF
39512#define wxUSE_LOG_DIALOG 1
39513_ACEOF
39514
39515 fi
0b78747f
MW
39516
39517 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
39518fi
39519
39520if test "$wxUSE_LONGLONG" = "yes"; then
39521 cat >>confdefs.h <<\_ACEOF
39522#define wxUSE_LONGLONG 1
39523_ACEOF
39524
39525fi
39526
39527if test "$wxUSE_GEOMETRY" = "yes"; then
39528 cat >>confdefs.h <<\_ACEOF
39529#define wxUSE_GEOMETRY 1
39530_ACEOF
39531
39532fi
39533
a848cd7e
SC
39534if test "$wxUSE_STREAMS" = "yes" ; then
39535 cat >>confdefs.h <<\_ACEOF
39536#define wxUSE_STREAMS 1
39537_ACEOF
39538
39539fi
39540
39541
39542if test "$wxUSE_DATETIME" = "yes"; then
39543
39544for ac_func in strptime
39545do
39546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39547echo "$as_me:$LINENO: checking for $ac_func" >&5
39548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39549if eval "test \"\${$as_ac_var+set}\" = set"; then
39550 echo $ECHO_N "(cached) $ECHO_C" >&6
39551else
39552 cat >conftest.$ac_ext <<_ACEOF
39553/* confdefs.h. */
39554_ACEOF
39555cat confdefs.h >>conftest.$ac_ext
39556cat >>conftest.$ac_ext <<_ACEOF
39557/* end confdefs.h. */
ac1cb8d3
VS
39558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39560#define $ac_func innocuous_$ac_func
39561
a848cd7e
SC
39562/* System header to define __stub macros and hopefully few prototypes,
39563 which can conflict with char $ac_func (); below.
39564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39565 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39566
a848cd7e
SC
39567#ifdef __STDC__
39568# include <limits.h>
39569#else
39570# include <assert.h>
39571#endif
ac1cb8d3
VS
39572
39573#undef $ac_func
39574
a848cd7e
SC
39575/* Override any gcc2 internal prototype to avoid an error. */
39576#ifdef __cplusplus
39577extern "C"
39578{
39579#endif
39580/* We use char because int might match the return type of a gcc2
39581 builtin and then its argument prototype would still apply. */
39582char $ac_func ();
39583/* The GNU C library defines this for functions which it implements
39584 to always fail with ENOSYS. Some functions are actually named
39585 something starting with __ and the normal name is an alias. */
39586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39587choke me
39588#else
39589char (*f) () = $ac_func;
39590#endif
39591#ifdef __cplusplus
39592}
39593#endif
39594
39595int
39596main ()
39597{
39598return f != $ac_func;
39599 ;
39600 return 0;
39601}
39602_ACEOF
39603rm -f conftest.$ac_objext conftest$ac_exeext
39604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39605 (eval $ac_link) 2>conftest.er1
a848cd7e 39606 ac_status=$?
ac1cb8d3
VS
39607 grep -v '^ *+' conftest.er1 >conftest.err
39608 rm -f conftest.er1
39609 cat conftest.err >&5
a848cd7e
SC
39610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39611 (exit $ac_status); } &&
5ff751d6 39612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39614 (eval $ac_try) 2>&5
39615 ac_status=$?
39616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39617 (exit $ac_status); }; } &&
39618 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39620 (eval $ac_try) 2>&5
39621 ac_status=$?
39622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39623 (exit $ac_status); }; }; then
39624 eval "$as_ac_var=yes"
39625else
39626 echo "$as_me: failed program was:" >&5
39627sed 's/^/| /' conftest.$ac_ext >&5
39628
39629eval "$as_ac_var=no"
39630fi
ac1cb8d3
VS
39631rm -f conftest.err conftest.$ac_objext \
39632 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39633fi
39634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39635echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39636if test `eval echo '${'$as_ac_var'}'` = yes; then
39637 cat >>confdefs.h <<_ACEOF
39638#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39639_ACEOF
39640
39641fi
39642done
39643
f536f005
VZ
39644 if test "$ac_cv_func_strptime" = "yes"; then
39645 echo "$as_me:$LINENO: checking for strptime declaration" >&5
39646echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
39647if test "${wx_cv_func_strptime_decl+set}" = set; then
39648 echo $ECHO_N "(cached) $ECHO_C" >&6
39649else
39650
39651
39652
39653 ac_ext=cc
39654ac_cpp='$CXXCPP $CPPFLAGS'
39655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39658
39659 cat >conftest.$ac_ext <<_ACEOF
39660/* confdefs.h. */
39661_ACEOF
39662cat confdefs.h >>conftest.$ac_ext
39663cat >>conftest.$ac_ext <<_ACEOF
39664/* end confdefs.h. */
39665
39666 #include <time.h>
39667
39668int
39669main ()
39670{
39671
39672 struct tm t;
39673 strptime("foo", "bar", &t);
39674
39675 ;
39676 return 0;
39677}
39678_ACEOF
39679rm -f conftest.$ac_objext
39680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39681 (eval $ac_compile) 2>conftest.er1
39682 ac_status=$?
39683 grep -v '^ *+' conftest.er1 >conftest.err
39684 rm -f conftest.er1
39685 cat conftest.err >&5
39686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39687 (exit $ac_status); } &&
5ff751d6 39688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
39689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39690 (eval $ac_try) 2>&5
39691 ac_status=$?
39692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39693 (exit $ac_status); }; } &&
39694 { ac_try='test -s conftest.$ac_objext'
39695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39696 (eval $ac_try) 2>&5
39697 ac_status=$?
39698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39699 (exit $ac_status); }; }; then
39700 wx_cv_func_strptime_decl=yes
39701else
39702 echo "$as_me: failed program was:" >&5
39703sed 's/^/| /' conftest.$ac_ext >&5
39704
39705wx_cv_func_strptime_decl=no
39706
39707fi
39708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39709 ac_ext=c
39710ac_cpp='$CPP $CPPFLAGS'
39711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39713ac_compiler_gnu=$ac_cv_c_compiler_gnu
39714
39715
39716
39717fi
39718echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
39719echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
39720 fi
39721 if test "$wx_cv_func_strptime_decl" = "yes"; then
39722 cat >>confdefs.h <<\_ACEOF
39723#define HAVE_STRPTIME_DECL 1
39724_ACEOF
39725
39726 fi
a848cd7e
SC
39727
39728 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
39729echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
39730if test "${wx_cv_var_timezone+set}" = set; then
39731 echo $ECHO_N "(cached) $ECHO_C" >&6
39732else
39733
39734 cat >conftest.$ac_ext <<_ACEOF
39735/* confdefs.h. */
39736_ACEOF
39737cat confdefs.h >>conftest.$ac_ext
39738cat >>conftest.$ac_ext <<_ACEOF
39739/* end confdefs.h. */
39740
39741 #include <time.h>
39742
39743int
39744main ()
39745{
39746
39747 int tz;
39748 tz = timezone;
39749
39750 ;
39751 return 0;
39752}
39753_ACEOF
39754rm -f conftest.$ac_objext
39755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39756 (eval $ac_compile) 2>conftest.er1
a848cd7e 39757 ac_status=$?
ac1cb8d3
VS
39758 grep -v '^ *+' conftest.er1 >conftest.err
39759 rm -f conftest.er1
39760 cat conftest.err >&5
a848cd7e
SC
39761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39762 (exit $ac_status); } &&
5ff751d6 39763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39765 (eval $ac_try) 2>&5
39766 ac_status=$?
39767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39768 (exit $ac_status); }; } &&
39769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39771 (eval $ac_try) 2>&5
39772 ac_status=$?
39773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774 (exit $ac_status); }; }; then
39775
39776 wx_cv_var_timezone=timezone
39777
39778else
39779 echo "$as_me: failed program was:" >&5
39780sed 's/^/| /' conftest.$ac_ext >&5
39781
39782
39783 cat >conftest.$ac_ext <<_ACEOF
39784/* confdefs.h. */
39785_ACEOF
39786cat confdefs.h >>conftest.$ac_ext
39787cat >>conftest.$ac_ext <<_ACEOF
39788/* end confdefs.h. */
39789
39790 #include <time.h>
39791
39792int
39793main ()
39794{
39795
39796 int tz;
39797 tz = _timezone;
39798
39799 ;
39800 return 0;
39801}
39802_ACEOF
39803rm -f conftest.$ac_objext
39804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39805 (eval $ac_compile) 2>conftest.er1
a848cd7e 39806 ac_status=$?
ac1cb8d3
VS
39807 grep -v '^ *+' conftest.er1 >conftest.err
39808 rm -f conftest.er1
39809 cat conftest.err >&5
a848cd7e
SC
39810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39811 (exit $ac_status); } &&
5ff751d6 39812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39814 (eval $ac_try) 2>&5
39815 ac_status=$?
39816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39817 (exit $ac_status); }; } &&
39818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39820 (eval $ac_try) 2>&5
39821 ac_status=$?
39822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39823 (exit $ac_status); }; }; then
39824
39825 wx_cv_var_timezone=_timezone
39826
39827else
39828 echo "$as_me: failed program was:" >&5
39829sed 's/^/| /' conftest.$ac_ext >&5
39830
39831
39832 cat >conftest.$ac_ext <<_ACEOF
39833/* confdefs.h. */
39834_ACEOF
39835cat confdefs.h >>conftest.$ac_ext
39836cat >>conftest.$ac_ext <<_ACEOF
39837/* end confdefs.h. */
39838
39839 #include <time.h>
39840
39841int
39842main ()
39843{
39844
39845 int tz;
39846 tz = __timezone;
39847
39848 ;
39849 return 0;
39850}
39851_ACEOF
39852rm -f conftest.$ac_objext
39853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39854 (eval $ac_compile) 2>conftest.er1
a848cd7e 39855 ac_status=$?
ac1cb8d3
VS
39856 grep -v '^ *+' conftest.er1 >conftest.err
39857 rm -f conftest.er1
39858 cat conftest.err >&5
a848cd7e
SC
39859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39860 (exit $ac_status); } &&
5ff751d6 39861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39863 (eval $ac_try) 2>&5
39864 ac_status=$?
39865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39866 (exit $ac_status); }; } &&
39867 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39869 (eval $ac_try) 2>&5
39870 ac_status=$?
39871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39872 (exit $ac_status); }; }; then
39873
39874 wx_cv_var_timezone=__timezone
39875
39876else
39877 echo "$as_me: failed program was:" >&5
39878sed 's/^/| /' conftest.$ac_ext >&5
39879
39880
39881 if test "$USE_DOS" = 0 ; then
39882 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
39883echo "$as_me: WARNING: no timezone variable" >&2;}
39884 fi
39885
39886
39887fi
ac1cb8d3 39888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39889
39890
39891fi
ac1cb8d3 39892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39893
39894
39895fi
ac1cb8d3 39896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39897
39898
39899fi
39900echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
39901echo "${ECHO_T}$wx_cv_var_timezone" >&6
39902
39903 if test "x$wx_cv_var_timezone" != x ; then
39904 cat >>confdefs.h <<_ACEOF
39905#define WX_TIMEZONE $wx_cv_var_timezone
39906_ACEOF
39907
39908 fi
39909
39910
39911for ac_func in localtime
39912do
39913as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39914echo "$as_me:$LINENO: checking for $ac_func" >&5
39915echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39916if eval "test \"\${$as_ac_var+set}\" = set"; then
39917 echo $ECHO_N "(cached) $ECHO_C" >&6
39918else
39919 cat >conftest.$ac_ext <<_ACEOF
39920/* confdefs.h. */
39921_ACEOF
39922cat confdefs.h >>conftest.$ac_ext
39923cat >>conftest.$ac_ext <<_ACEOF
39924/* end confdefs.h. */
ac1cb8d3
VS
39925/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39927#define $ac_func innocuous_$ac_func
39928
a848cd7e
SC
39929/* System header to define __stub macros and hopefully few prototypes,
39930 which can conflict with char $ac_func (); below.
39931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39932 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39933
a848cd7e
SC
39934#ifdef __STDC__
39935# include <limits.h>
39936#else
39937# include <assert.h>
39938#endif
ac1cb8d3
VS
39939
39940#undef $ac_func
39941
a848cd7e
SC
39942/* Override any gcc2 internal prototype to avoid an error. */
39943#ifdef __cplusplus
39944extern "C"
39945{
39946#endif
39947/* We use char because int might match the return type of a gcc2
39948 builtin and then its argument prototype would still apply. */
39949char $ac_func ();
39950/* The GNU C library defines this for functions which it implements
39951 to always fail with ENOSYS. Some functions are actually named
39952 something starting with __ and the normal name is an alias. */
39953#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39954choke me
39955#else
39956char (*f) () = $ac_func;
39957#endif
39958#ifdef __cplusplus
39959}
39960#endif
39961
39962int
39963main ()
39964{
39965return f != $ac_func;
39966 ;
39967 return 0;
39968}
39969_ACEOF
39970rm -f conftest.$ac_objext conftest$ac_exeext
39971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39972 (eval $ac_link) 2>conftest.er1
a848cd7e 39973 ac_status=$?
ac1cb8d3
VS
39974 grep -v '^ *+' conftest.er1 >conftest.err
39975 rm -f conftest.er1
39976 cat conftest.err >&5
a848cd7e
SC
39977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39978 (exit $ac_status); } &&
5ff751d6 39979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39981 (eval $ac_try) 2>&5
39982 ac_status=$?
39983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984 (exit $ac_status); }; } &&
39985 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39987 (eval $ac_try) 2>&5
39988 ac_status=$?
39989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39990 (exit $ac_status); }; }; then
39991 eval "$as_ac_var=yes"
39992else
39993 echo "$as_me: failed program was:" >&5
39994sed 's/^/| /' conftest.$ac_ext >&5
39995
39996eval "$as_ac_var=no"
39997fi
ac1cb8d3
VS
39998rm -f conftest.err conftest.$ac_objext \
39999 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40000fi
40001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40002echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40003if test `eval echo '${'$as_ac_var'}'` = yes; then
40004 cat >>confdefs.h <<_ACEOF
40005#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40006_ACEOF
40007
40008fi
40009done
40010
40011
40012 if test "$ac_cv_func_localtime" = "yes"; then
40013 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
40014echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
40015if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
40016 echo $ECHO_N "(cached) $ECHO_C" >&6
40017else
40018
40019 cat >conftest.$ac_ext <<_ACEOF
40020/* confdefs.h. */
40021_ACEOF
40022cat confdefs.h >>conftest.$ac_ext
40023cat >>conftest.$ac_ext <<_ACEOF
40024/* end confdefs.h. */
40025
40026 #include <time.h>
40027
40028int
40029main ()
40030{
40031
40032 struct tm tm;
40033 tm.tm_gmtoff++;
40034
40035 ;
40036 return 0;
40037}
40038_ACEOF
40039rm -f conftest.$ac_objext
40040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40041 (eval $ac_compile) 2>conftest.er1
a848cd7e 40042 ac_status=$?
ac1cb8d3
VS
40043 grep -v '^ *+' conftest.er1 >conftest.err
40044 rm -f conftest.er1
40045 cat conftest.err >&5
a848cd7e
SC
40046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); } &&
5ff751d6 40048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40050 (eval $ac_try) 2>&5
40051 ac_status=$?
40052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053 (exit $ac_status); }; } &&
40054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40056 (eval $ac_try) 2>&5
40057 ac_status=$?
40058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40059 (exit $ac_status); }; }; then
40060
40061 wx_cv_struct_tm_has_gmtoff=yes
40062
40063else
40064 echo "$as_me: failed program was:" >&5
40065sed 's/^/| /' conftest.$ac_ext >&5
40066
40067wx_cv_struct_tm_has_gmtoff=no
40068
40069fi
ac1cb8d3 40070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40071
40072fi
40073echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
40074echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
40075 fi
40076
40077 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
40078 cat >>confdefs.h <<\_ACEOF
40079#define WX_GMTOFF_IN_TM 1
40080_ACEOF
40081
40082 fi
40083
40084
40085
40086for ac_func in gettimeofday ftime
40087do
40088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40089echo "$as_me:$LINENO: checking for $ac_func" >&5
40090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40091if eval "test \"\${$as_ac_var+set}\" = set"; then
40092 echo $ECHO_N "(cached) $ECHO_C" >&6
40093else
40094 cat >conftest.$ac_ext <<_ACEOF
40095/* confdefs.h. */
40096_ACEOF
40097cat confdefs.h >>conftest.$ac_ext
40098cat >>conftest.$ac_ext <<_ACEOF
40099/* end confdefs.h. */
ac1cb8d3
VS
40100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40102#define $ac_func innocuous_$ac_func
40103
a848cd7e
SC
40104/* System header to define __stub macros and hopefully few prototypes,
40105 which can conflict with char $ac_func (); below.
40106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40107 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40108
a848cd7e
SC
40109#ifdef __STDC__
40110# include <limits.h>
40111#else
40112# include <assert.h>
40113#endif
ac1cb8d3
VS
40114
40115#undef $ac_func
40116
a848cd7e
SC
40117/* Override any gcc2 internal prototype to avoid an error. */
40118#ifdef __cplusplus
40119extern "C"
40120{
40121#endif
40122/* We use char because int might match the return type of a gcc2
40123 builtin and then its argument prototype would still apply. */
40124char $ac_func ();
40125/* The GNU C library defines this for functions which it implements
40126 to always fail with ENOSYS. Some functions are actually named
40127 something starting with __ and the normal name is an alias. */
40128#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40129choke me
40130#else
40131char (*f) () = $ac_func;
40132#endif
40133#ifdef __cplusplus
40134}
40135#endif
40136
40137int
40138main ()
40139{
40140return f != $ac_func;
40141 ;
40142 return 0;
40143}
40144_ACEOF
40145rm -f conftest.$ac_objext conftest$ac_exeext
40146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40147 (eval $ac_link) 2>conftest.er1
a848cd7e 40148 ac_status=$?
ac1cb8d3
VS
40149 grep -v '^ *+' conftest.er1 >conftest.err
40150 rm -f conftest.er1
40151 cat conftest.err >&5
a848cd7e
SC
40152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40153 (exit $ac_status); } &&
5ff751d6 40154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40156 (eval $ac_try) 2>&5
40157 ac_status=$?
40158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159 (exit $ac_status); }; } &&
40160 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40162 (eval $ac_try) 2>&5
40163 ac_status=$?
40164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40165 (exit $ac_status); }; }; then
40166 eval "$as_ac_var=yes"
40167else
40168 echo "$as_me: failed program was:" >&5
40169sed 's/^/| /' conftest.$ac_ext >&5
40170
40171eval "$as_ac_var=no"
40172fi
ac1cb8d3
VS
40173rm -f conftest.err conftest.$ac_objext \
40174 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40175fi
40176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40177echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40178if test `eval echo '${'$as_ac_var'}'` = yes; then
40179 cat >>confdefs.h <<_ACEOF
40180#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40181_ACEOF
40182 break
40183fi
40184done
40185
40186
40187 if test "$ac_cv_func_gettimeofday" = "yes"; then
40188 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
40189echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
40190if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
40191 echo $ECHO_N "(cached) $ECHO_C" >&6
40192else
40193
40194
40195
40196 ac_ext=cc
40197ac_cpp='$CXXCPP $CPPFLAGS'
40198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40201
40202
40203 cat >conftest.$ac_ext <<_ACEOF
40204/* confdefs.h. */
40205_ACEOF
40206cat confdefs.h >>conftest.$ac_ext
40207cat >>conftest.$ac_ext <<_ACEOF
40208/* end confdefs.h. */
40209
40210 #include <sys/time.h>
40211 #include <unistd.h>
40212
40213int
40214main ()
40215{
40216
40217 struct timeval tv;
40218 gettimeofday(&tv, NULL);
40219
40220 ;
40221 return 0;
40222}
40223_ACEOF
40224rm -f conftest.$ac_objext
40225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40226 (eval $ac_compile) 2>conftest.er1
a848cd7e 40227 ac_status=$?
ac1cb8d3
VS
40228 grep -v '^ *+' conftest.er1 >conftest.err
40229 rm -f conftest.er1
40230 cat conftest.err >&5
a848cd7e
SC
40231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40232 (exit $ac_status); } &&
5ff751d6 40233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40235 (eval $ac_try) 2>&5
40236 ac_status=$?
40237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40238 (exit $ac_status); }; } &&
40239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40241 (eval $ac_try) 2>&5
40242 ac_status=$?
40243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244 (exit $ac_status); }; }; then
40245 wx_cv_func_gettimeofday_has_2_args=yes
40246else
40247 echo "$as_me: failed program was:" >&5
40248sed 's/^/| /' conftest.$ac_ext >&5
40249
40250cat >conftest.$ac_ext <<_ACEOF
40251/* confdefs.h. */
40252_ACEOF
40253cat confdefs.h >>conftest.$ac_ext
40254cat >>conftest.$ac_ext <<_ACEOF
40255/* end confdefs.h. */
40256
40257 #include <sys/time.h>
40258 #include <unistd.h>
40259
40260int
40261main ()
40262{
40263
40264 struct timeval tv;
40265 gettimeofday(&tv);
40266
40267 ;
40268 return 0;
40269}
40270_ACEOF
40271rm -f conftest.$ac_objext
40272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40273 (eval $ac_compile) 2>conftest.er1
a848cd7e 40274 ac_status=$?
ac1cb8d3
VS
40275 grep -v '^ *+' conftest.er1 >conftest.err
40276 rm -f conftest.er1
40277 cat conftest.err >&5
a848cd7e
SC
40278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40279 (exit $ac_status); } &&
5ff751d6 40280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40282 (eval $ac_try) 2>&5
40283 ac_status=$?
40284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40285 (exit $ac_status); }; } &&
40286 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40288 (eval $ac_try) 2>&5
40289 ac_status=$?
40290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40291 (exit $ac_status); }; }; then
40292 wx_cv_func_gettimeofday_has_2_args=no
40293else
40294 echo "$as_me: failed program was:" >&5
40295sed 's/^/| /' conftest.$ac_ext >&5
40296
40297
40298 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
40299echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
40300 wx_cv_func_gettimeofday_has_2_args=unknown
40301
40302
40303fi
ac1cb8d3 40304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40305
40306fi
ac1cb8d3 40307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40308 ac_ext=c
40309ac_cpp='$CPP $CPPFLAGS'
40310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40312ac_compiler_gnu=$ac_cv_c_compiler_gnu
40313
40314
40315fi
40316echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
40317echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
40318
40319 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
40320 cat >>confdefs.h <<\_ACEOF
40321#define WX_GETTIMEOFDAY_NO_TZ 1
40322_ACEOF
40323
40324 fi
40325 fi
40326
40327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
40328fi
40329
40330
40331if test "$wxUSE_SOCKETS" = "yes"; then
40332 if test "$wxUSE_MGL" = "1"; then
40333 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
40334echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
40335 wxUSE_SOCKETS="no"
40336 fi
40337fi
40338
40339if test "$wxUSE_SOCKETS" = "yes"; then
40340 if test "$TOOLKIT" != "MSW"; then
40341 echo "$as_me:$LINENO: checking for socket" >&5
40342echo $ECHO_N "checking for socket... $ECHO_C" >&6
40343if test "${ac_cv_func_socket+set}" = set; then
40344 echo $ECHO_N "(cached) $ECHO_C" >&6
40345else
40346 cat >conftest.$ac_ext <<_ACEOF
40347/* confdefs.h. */
40348_ACEOF
40349cat confdefs.h >>conftest.$ac_ext
40350cat >>conftest.$ac_ext <<_ACEOF
40351/* end confdefs.h. */
ac1cb8d3
VS
40352/* Define socket to an innocuous variant, in case <limits.h> declares socket.
40353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40354#define socket innocuous_socket
40355
a848cd7e
SC
40356/* System header to define __stub macros and hopefully few prototypes,
40357 which can conflict with char socket (); below.
40358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40359 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40360
a848cd7e
SC
40361#ifdef __STDC__
40362# include <limits.h>
40363#else
40364# include <assert.h>
40365#endif
ac1cb8d3
VS
40366
40367#undef socket
40368
a848cd7e
SC
40369/* Override any gcc2 internal prototype to avoid an error. */
40370#ifdef __cplusplus
40371extern "C"
40372{
40373#endif
40374/* We use char because int might match the return type of a gcc2
40375 builtin and then its argument prototype would still apply. */
40376char socket ();
40377/* The GNU C library defines this for functions which it implements
40378 to always fail with ENOSYS. Some functions are actually named
40379 something starting with __ and the normal name is an alias. */
40380#if defined (__stub_socket) || defined (__stub___socket)
40381choke me
40382#else
40383char (*f) () = socket;
40384#endif
40385#ifdef __cplusplus
40386}
40387#endif
40388
40389int
40390main ()
40391{
40392return f != socket;
40393 ;
40394 return 0;
40395}
40396_ACEOF
40397rm -f conftest.$ac_objext conftest$ac_exeext
40398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40399 (eval $ac_link) 2>conftest.er1
a848cd7e 40400 ac_status=$?
ac1cb8d3
VS
40401 grep -v '^ *+' conftest.er1 >conftest.err
40402 rm -f conftest.er1
40403 cat conftest.err >&5
a848cd7e
SC
40404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40405 (exit $ac_status); } &&
5ff751d6 40406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40408 (eval $ac_try) 2>&5
40409 ac_status=$?
40410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40411 (exit $ac_status); }; } &&
40412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40414 (eval $ac_try) 2>&5
40415 ac_status=$?
40416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40417 (exit $ac_status); }; }; then
40418 ac_cv_func_socket=yes
40419else
40420 echo "$as_me: failed program was:" >&5
40421sed 's/^/| /' conftest.$ac_ext >&5
40422
40423ac_cv_func_socket=no
40424fi
ac1cb8d3
VS
40425rm -f conftest.err conftest.$ac_objext \
40426 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40427fi
40428echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
40429echo "${ECHO_T}$ac_cv_func_socket" >&6
40430if test $ac_cv_func_socket = yes; then
40431 :
40432else
40433
40434 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
40435echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
40436if test "${ac_cv_lib_socket_socket+set}" = set; then
40437 echo $ECHO_N "(cached) $ECHO_C" >&6
40438else
40439 ac_check_lib_save_LIBS=$LIBS
40440LIBS="-lsocket $LIBS"
40441cat >conftest.$ac_ext <<_ACEOF
40442/* confdefs.h. */
40443_ACEOF
40444cat confdefs.h >>conftest.$ac_ext
40445cat >>conftest.$ac_ext <<_ACEOF
40446/* end confdefs.h. */
40447
40448/* Override any gcc2 internal prototype to avoid an error. */
40449#ifdef __cplusplus
40450extern "C"
40451#endif
40452/* We use char because int might match the return type of a gcc2
40453 builtin and then its argument prototype would still apply. */
40454char socket ();
40455int
40456main ()
40457{
40458socket ();
40459 ;
40460 return 0;
40461}
40462_ACEOF
40463rm -f conftest.$ac_objext conftest$ac_exeext
40464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40465 (eval $ac_link) 2>conftest.er1
a848cd7e 40466 ac_status=$?
ac1cb8d3
VS
40467 grep -v '^ *+' conftest.er1 >conftest.err
40468 rm -f conftest.er1
40469 cat conftest.err >&5
a848cd7e
SC
40470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40471 (exit $ac_status); } &&
5ff751d6 40472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40474 (eval $ac_try) 2>&5
40475 ac_status=$?
40476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40477 (exit $ac_status); }; } &&
40478 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40480 (eval $ac_try) 2>&5
40481 ac_status=$?
40482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40483 (exit $ac_status); }; }; then
40484 ac_cv_lib_socket_socket=yes
40485else
40486 echo "$as_me: failed program was:" >&5
40487sed 's/^/| /' conftest.$ac_ext >&5
40488
40489ac_cv_lib_socket_socket=no
40490fi
ac1cb8d3
VS
40491rm -f conftest.err conftest.$ac_objext \
40492 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40493LIBS=$ac_check_lib_save_LIBS
40494fi
40495echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
40496echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
40497if test $ac_cv_lib_socket_socket = yes; then
40498 if test "$INET_LINK" != " -lsocket"; then
40499 INET_LINK="$INET_LINK -lsocket"
40500 fi
40501else
40502
40503 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
40504echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
40505 wxUSE_SOCKETS=no
40506
40507
40508fi
40509
40510
40511
40512fi
40513
40514 fi
40515fi
40516
40517if test "$wxUSE_SOCKETS" = "yes" ; then
40518 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
40519 ac_ext=cc
40520ac_cpp='$CXXCPP $CPPFLAGS'
40521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40524
40525 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
40526echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
40527if test "${wx_cv_type_getsockname3+set}" = set; then
40528 echo $ECHO_N "(cached) $ECHO_C" >&6
40529else
40530
40531 cat >conftest.$ac_ext <<_ACEOF
40532/* confdefs.h. */
40533_ACEOF
40534cat confdefs.h >>conftest.$ac_ext
40535cat >>conftest.$ac_ext <<_ACEOF
40536/* end confdefs.h. */
40537
40538 #include <sys/types.h>
40539 #include <sys/socket.h>
40540
40541int
40542main ()
40543{
40544
40545 socklen_t len;
40546 getsockname(0, 0, &len);
40547
40548 ;
40549 return 0;
40550}
40551_ACEOF
40552rm -f conftest.$ac_objext
40553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40554 (eval $ac_compile) 2>conftest.er1
a848cd7e 40555 ac_status=$?
ac1cb8d3
VS
40556 grep -v '^ *+' conftest.er1 >conftest.err
40557 rm -f conftest.er1
40558 cat conftest.err >&5
a848cd7e
SC
40559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40560 (exit $ac_status); } &&
5ff751d6 40561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40563 (eval $ac_try) 2>&5
40564 ac_status=$?
40565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40566 (exit $ac_status); }; } &&
40567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40569 (eval $ac_try) 2>&5
40570 ac_status=$?
40571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40572 (exit $ac_status); }; }; then
40573 wx_cv_type_getsockname3=socklen_t
40574else
40575 echo "$as_me: failed program was:" >&5
40576sed 's/^/| /' conftest.$ac_ext >&5
40577
40578
6459a506 40579 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 40580 if test "$GCC" = yes ; then
6459a506 40581 CXXFLAGS="$CXXFLAGS -Werror"
a848cd7e
SC
40582 fi
40583
40584 cat >conftest.$ac_ext <<_ACEOF
40585/* confdefs.h. */
40586_ACEOF
40587cat confdefs.h >>conftest.$ac_ext
40588cat >>conftest.$ac_ext <<_ACEOF
40589/* end confdefs.h. */
40590
40591 #include <sys/types.h>
40592 #include <sys/socket.h>
40593
40594int
40595main ()
40596{
40597
40598 size_t len;
40599 getsockname(0, 0, &len);
40600
40601 ;
40602 return 0;
40603}
40604_ACEOF
40605rm -f conftest.$ac_objext
40606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40607 (eval $ac_compile) 2>conftest.er1
a848cd7e 40608 ac_status=$?
ac1cb8d3
VS
40609 grep -v '^ *+' conftest.er1 >conftest.err
40610 rm -f conftest.er1
40611 cat conftest.err >&5
a848cd7e
SC
40612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40613 (exit $ac_status); } &&
5ff751d6 40614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40616 (eval $ac_try) 2>&5
40617 ac_status=$?
40618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40619 (exit $ac_status); }; } &&
40620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40622 (eval $ac_try) 2>&5
40623 ac_status=$?
40624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40625 (exit $ac_status); }; }; then
40626 wx_cv_type_getsockname3=size_t
40627else
40628 echo "$as_me: failed program was:" >&5
40629sed 's/^/| /' conftest.$ac_ext >&5
40630
40631cat >conftest.$ac_ext <<_ACEOF
40632/* confdefs.h. */
40633_ACEOF
40634cat confdefs.h >>conftest.$ac_ext
40635cat >>conftest.$ac_ext <<_ACEOF
40636/* end confdefs.h. */
40637
40638 #include <sys/types.h>
40639 #include <sys/socket.h>
40640
40641int
40642main ()
40643{
40644
40645 int len;
40646 getsockname(0, 0, &len);
40647
40648 ;
40649 return 0;
40650}
40651_ACEOF
40652rm -f conftest.$ac_objext
40653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40654 (eval $ac_compile) 2>conftest.er1
a848cd7e 40655 ac_status=$?
ac1cb8d3
VS
40656 grep -v '^ *+' conftest.er1 >conftest.err
40657 rm -f conftest.er1
40658 cat conftest.err >&5
a848cd7e
SC
40659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40660 (exit $ac_status); } &&
5ff751d6 40661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40663 (eval $ac_try) 2>&5
40664 ac_status=$?
40665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40666 (exit $ac_status); }; } &&
40667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40669 (eval $ac_try) 2>&5
40670 ac_status=$?
40671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40672 (exit $ac_status); }; }; then
40673 wx_cv_type_getsockname3=int
40674else
40675 echo "$as_me: failed program was:" >&5
40676sed 's/^/| /' conftest.$ac_ext >&5
40677
40678wx_cv_type_getsockname3=unknown
40679
40680fi
ac1cb8d3 40681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40682
40683fi
ac1cb8d3 40684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40685
6459a506 40686 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40687
40688
40689fi
ac1cb8d3 40690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40691
40692fi
40693echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
40694echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
40695
40696 if test "$wx_cv_type_getsockname3" = "unknown"; then
40697 wxUSE_SOCKETS=no
40698 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40699echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40700 else
40701 cat >>confdefs.h <<_ACEOF
9e03e02d 40702#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
40703_ACEOF
40704
40705 fi
40706 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
40707echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
40708if test "${wx_cv_type_getsockopt5+set}" = set; then
40709 echo $ECHO_N "(cached) $ECHO_C" >&6
40710else
40711
40712 cat >conftest.$ac_ext <<_ACEOF
40713/* confdefs.h. */
40714_ACEOF
40715cat confdefs.h >>conftest.$ac_ext
40716cat >>conftest.$ac_ext <<_ACEOF
40717/* end confdefs.h. */
40718
40719 #include <sys/types.h>
40720 #include <sys/socket.h>
40721
40722int
40723main ()
40724{
40725
40726 socklen_t len;
40727 getsockopt(0, 0, 0, 0, &len);
40728
40729 ;
40730 return 0;
40731}
40732_ACEOF
40733rm -f conftest.$ac_objext
40734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40735 (eval $ac_compile) 2>conftest.er1
40736 ac_status=$?
40737 grep -v '^ *+' conftest.er1 >conftest.err
40738 rm -f conftest.er1
40739 cat conftest.err >&5
40740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40741 (exit $ac_status); } &&
5ff751d6 40742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40744 (eval $ac_try) 2>&5
40745 ac_status=$?
40746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40747 (exit $ac_status); }; } &&
40748 { ac_try='test -s conftest.$ac_objext'
40749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40750 (eval $ac_try) 2>&5
40751 ac_status=$?
40752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40753 (exit $ac_status); }; }; then
40754 wx_cv_type_getsockopt5=socklen_t
40755else
40756 echo "$as_me: failed program was:" >&5
40757sed 's/^/| /' conftest.$ac_ext >&5
40758
40759
6459a506 40760 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 40761 if test "$GCC" = yes ; then
6459a506 40762 CXXFLAGS="$CXXFLAGS -Werror"
5b674b9d
DE
40763 fi
40764
40765 cat >conftest.$ac_ext <<_ACEOF
40766/* confdefs.h. */
40767_ACEOF
40768cat confdefs.h >>conftest.$ac_ext
40769cat >>conftest.$ac_ext <<_ACEOF
40770/* end confdefs.h. */
40771
40772 #include <sys/types.h>
40773 #include <sys/socket.h>
40774
40775int
40776main ()
40777{
40778
40779 size_t len;
40780 getsockopt(0, 0, 0, 0, &len);
40781
40782 ;
40783 return 0;
40784}
40785_ACEOF
40786rm -f conftest.$ac_objext
40787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40788 (eval $ac_compile) 2>conftest.er1
40789 ac_status=$?
40790 grep -v '^ *+' conftest.er1 >conftest.err
40791 rm -f conftest.er1
40792 cat conftest.err >&5
40793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40794 (exit $ac_status); } &&
5ff751d6 40795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40797 (eval $ac_try) 2>&5
40798 ac_status=$?
40799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40800 (exit $ac_status); }; } &&
40801 { ac_try='test -s conftest.$ac_objext'
40802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40803 (eval $ac_try) 2>&5
40804 ac_status=$?
40805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40806 (exit $ac_status); }; }; then
40807 wx_cv_type_getsockopt5=size_t
40808else
40809 echo "$as_me: failed program was:" >&5
40810sed 's/^/| /' conftest.$ac_ext >&5
40811
40812cat >conftest.$ac_ext <<_ACEOF
40813/* confdefs.h. */
40814_ACEOF
40815cat confdefs.h >>conftest.$ac_ext
40816cat >>conftest.$ac_ext <<_ACEOF
40817/* end confdefs.h. */
40818
40819 #include <sys/types.h>
40820 #include <sys/socket.h>
40821
40822int
40823main ()
40824{
40825
40826 int len;
40827 getsockopt(0, 0, 0, 0, &len);
40828
40829 ;
40830 return 0;
40831}
40832_ACEOF
40833rm -f conftest.$ac_objext
40834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40835 (eval $ac_compile) 2>conftest.er1
40836 ac_status=$?
40837 grep -v '^ *+' conftest.er1 >conftest.err
40838 rm -f conftest.er1
40839 cat conftest.err >&5
40840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40841 (exit $ac_status); } &&
5ff751d6 40842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40844 (eval $ac_try) 2>&5
40845 ac_status=$?
40846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40847 (exit $ac_status); }; } &&
40848 { ac_try='test -s conftest.$ac_objext'
40849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40850 (eval $ac_try) 2>&5
40851 ac_status=$?
40852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40853 (exit $ac_status); }; }; then
40854 wx_cv_type_getsockopt5=int
40855else
40856 echo "$as_me: failed program was:" >&5
40857sed 's/^/| /' conftest.$ac_ext >&5
40858
40859wx_cv_type_getsockopt5=unknown
40860
40861fi
40862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40863
40864fi
40865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40866
6459a506 40867 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
40868
40869
40870fi
40871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40872
40873fi
40874echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
40875echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
40876
40877 if test "$wx_cv_type_getsockopt5" = "unknown"; then
40878 wxUSE_SOCKETS=no
40879 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40880echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40881 else
40882 cat >>confdefs.h <<_ACEOF
40883#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
40884_ACEOF
40885
40886 fi
4d4ff94c
VZ
40887 ac_ext=c
40888ac_cpp='$CPP $CPPFLAGS'
40889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40891ac_compiler_gnu=$ac_cv_c_compiler_gnu
40892
a848cd7e
SC
40893 fi
40894fi
40895
40896if test "$wxUSE_SOCKETS" = "yes" ; then
40897 cat >>confdefs.h <<\_ACEOF
40898#define wxUSE_SOCKETS 1
40899_ACEOF
40900
40901 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
40902fi
40903
40904if test "$wxUSE_PROTOCOL" = "yes"; then
40905 if test "$wxUSE_SOCKETS" != "yes"; then
40906 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
40907echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
40908 wxUSE_PROTOCOL=no
40909 fi
40910fi
40911
40912if test "$wxUSE_PROTOCOL" = "yes"; then
40913 cat >>confdefs.h <<\_ACEOF
40914#define wxUSE_PROTOCOL 1
40915_ACEOF
40916
40917
40918 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
40919 cat >>confdefs.h <<\_ACEOF
40920#define wxUSE_PROTOCOL_HTTP 1
40921_ACEOF
40922
40923 fi
40924 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
40925 cat >>confdefs.h <<\_ACEOF
40926#define wxUSE_PROTOCOL_FTP 1
40927_ACEOF
40928
40929 fi
40930 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
40931 cat >>confdefs.h <<\_ACEOF
40932#define wxUSE_PROTOCOL_FILE 1
40933_ACEOF
40934
40935 fi
40936else
40937 if test "$wxUSE_FS_INET" = "yes"; then
40938 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
40939echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
40940 wxUSE_FS_INET="no"
40941 fi
40942fi
40943
40944if test "$wxUSE_URL" = "yes"; then
40945 if test "$wxUSE_PROTOCOL" != "yes"; then
40946 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
40947echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
40948 wxUSE_URL=no
40949 fi
40950 if test "$wxUSE_URL" = "yes"; then
40951 cat >>confdefs.h <<\_ACEOF
40952#define wxUSE_URL 1
40953_ACEOF
40954
40955 fi
40956fi
40957
40958if test "$wxUSE_FS_INET" = "yes"; then
40959 cat >>confdefs.h <<\_ACEOF
40960#define wxUSE_FS_INET 1
40961_ACEOF
40962
40963fi
40964
40965
ee45c548
MW
40966if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
40967 wxUSE_JOYSTICK=no
40968
40969 if test "$TOOLKIT" = "MSW"; then
40970 wxUSE_JOYSTICK=yes
40971
40972 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
40973 if test "$USE_DARWIN" = 1; then
40974 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
40975echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
40976 ac_ext=cc
40977ac_cpp='$CXXCPP $CPPFLAGS'
40978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40981
40982 cat >conftest.$ac_ext <<_ACEOF
40983/* confdefs.h. */
40984_ACEOF
40985cat confdefs.h >>conftest.$ac_ext
40986cat >>conftest.$ac_ext <<_ACEOF
40987/* end confdefs.h. */
40988 #include <IOKit/hid/IOHIDLib.h>
40989int
40990main ()
40991{
40992 IOHIDQueueInterface *qi = NULL;
40993 IOHIDCallbackFunction cb = NULL;
40994 qi->setEventCallout(NULL, cb, NULL, NULL);
40995 ;
40996 return 0;
40997}
40998_ACEOF
40999rm -f conftest.$ac_objext
41000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41001 (eval $ac_compile) 2>conftest.er1
41002 ac_status=$?
41003 grep -v '^ *+' conftest.er1 >conftest.err
41004 rm -f conftest.er1
41005 cat conftest.err >&5
41006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41007 (exit $ac_status); } &&
5ff751d6 41008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
41009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41010 (eval $ac_try) 2>&5
41011 ac_status=$?
41012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41013 (exit $ac_status); }; } &&
41014 { ac_try='test -s conftest.$ac_objext'
41015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41016 (eval $ac_try) 2>&5
41017 ac_status=$?
41018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41019 (exit $ac_status); }; }; then
41020 wxUSE_JOYSTICK=yes
a848cd7e 41021
ee45c548
MW
41022else
41023 echo "$as_me: failed program was:" >&5
41024sed 's/^/| /' conftest.$ac_ext >&5
41025
41026fi
41027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41028 ac_ext=c
41029ac_cpp='$CPP $CPPFLAGS'
41030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41032ac_compiler_gnu=$ac_cv_c_compiler_gnu
41033
41034 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
41035echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
41036 fi
41037
41038 else
a848cd7e
SC
41039
41040for ac_header in linux/joystick.h
41041do
41042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41043if eval "test \"\${$as_ac_Header+set}\" = set"; then
41044 echo "$as_me:$LINENO: checking for $ac_header" >&5
41045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41046if eval "test \"\${$as_ac_Header+set}\" = set"; then
41047 echo $ECHO_N "(cached) $ECHO_C" >&6
41048fi
41049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41051else
41052 # Is the header compilable?
41053echo "$as_me:$LINENO: checking $ac_header usability" >&5
41054echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41055cat >conftest.$ac_ext <<_ACEOF
41056/* confdefs.h. */
41057_ACEOF
41058cat confdefs.h >>conftest.$ac_ext
41059cat >>conftest.$ac_ext <<_ACEOF
41060/* end confdefs.h. */
41061$ac_includes_default
41062#include <$ac_header>
41063_ACEOF
41064rm -f conftest.$ac_objext
41065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41066 (eval $ac_compile) 2>conftest.er1
a848cd7e 41067 ac_status=$?
ac1cb8d3
VS
41068 grep -v '^ *+' conftest.er1 >conftest.err
41069 rm -f conftest.er1
41070 cat conftest.err >&5
a848cd7e
SC
41071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41072 (exit $ac_status); } &&
5ff751d6 41073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41075 (eval $ac_try) 2>&5
41076 ac_status=$?
41077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078 (exit $ac_status); }; } &&
41079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41081 (eval $ac_try) 2>&5
41082 ac_status=$?
41083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41084 (exit $ac_status); }; }; then
41085 ac_header_compiler=yes
41086else
41087 echo "$as_me: failed program was:" >&5
41088sed 's/^/| /' conftest.$ac_ext >&5
41089
41090ac_header_compiler=no
41091fi
ac1cb8d3 41092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41093echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41094echo "${ECHO_T}$ac_header_compiler" >&6
41095
41096# Is the header present?
41097echo "$as_me:$LINENO: checking $ac_header presence" >&5
41098echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41099cat >conftest.$ac_ext <<_ACEOF
41100/* confdefs.h. */
41101_ACEOF
41102cat confdefs.h >>conftest.$ac_ext
41103cat >>conftest.$ac_ext <<_ACEOF
41104/* end confdefs.h. */
41105#include <$ac_header>
41106_ACEOF
41107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41109 ac_status=$?
41110 grep -v '^ *+' conftest.er1 >conftest.err
41111 rm -f conftest.er1
41112 cat conftest.err >&5
41113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41114 (exit $ac_status); } >/dev/null; then
41115 if test -s conftest.err; then
41116 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41118 else
41119 ac_cpp_err=
41120 fi
41121else
41122 ac_cpp_err=yes
41123fi
41124if test -z "$ac_cpp_err"; then
41125 ac_header_preproc=yes
41126else
41127 echo "$as_me: failed program was:" >&5
41128sed 's/^/| /' conftest.$ac_ext >&5
41129
41130 ac_header_preproc=no
41131fi
41132rm -f conftest.err conftest.$ac_ext
41133echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41134echo "${ECHO_T}$ac_header_preproc" >&6
41135
41136# So? What about this header?
ac1cb8d3
VS
41137case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41138 yes:no: )
a848cd7e
SC
41139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41140echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41142echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41143 ac_header_preproc=yes
a848cd7e 41144 ;;
ac1cb8d3 41145 no:yes:* )
a848cd7e
SC
41146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41147echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41149echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41151echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41153echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41155echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41157echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41158 (
41159 cat <<\_ASBOX
ac1cb8d3
VS
41160## ----------------------------------------- ##
41161## Report this to wx-dev@lists.wxwidgets.org ##
41162## ----------------------------------------- ##
a848cd7e
SC
41163_ASBOX
41164 ) |
41165 sed "s/^/$as_me: WARNING: /" >&2
41166 ;;
41167esac
41168echo "$as_me:$LINENO: checking for $ac_header" >&5
41169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41170if eval "test \"\${$as_ac_Header+set}\" = set"; then
41171 echo $ECHO_N "(cached) $ECHO_C" >&6
41172else
ac1cb8d3 41173 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41174fi
41175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41177
41178fi
41179if test `eval echo '${'$as_ac_Header'}'` = yes; then
41180 cat >>confdefs.h <<_ACEOF
41181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41182_ACEOF
ee45c548 41183 wxUSE_JOYSTICK=yes
a848cd7e
SC
41184fi
41185
41186done
41187
ee45c548 41188 fi
4cb1d3da 41189
ee45c548
MW
41190 if test "$wxUSE_JOYSTICK" = "yes"; then
41191 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41192#define wxUSE_JOYSTICK 1
41193_ACEOF
41194
ee45c548
MW
41195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
41196 else
41197 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
41198echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
41199 fi
41200fi
41201
41202
41203
41204if test "$wxUSE_FONTMAP" = "yes" ; then
41205 cat >>confdefs.h <<\_ACEOF
41206#define wxUSE_FONTMAP 1
41207_ACEOF
41208
41209fi
41210
41211if test "$wxUSE_UNICODE" = "yes" ; then
41212 cat >>confdefs.h <<\_ACEOF
41213#define wxUSE_UNICODE 1
41214_ACEOF
41215
41216
41217 if test "$USE_WIN32" != 1; then
41218 wxUSE_UNICODE_MSLU=no
41219 fi
41220
41221 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
41222 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
41223echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
41224if test "${ac_cv_lib_unicows_main+set}" = set; then
41225 echo $ECHO_N "(cached) $ECHO_C" >&6
41226else
41227 ac_check_lib_save_LIBS=$LIBS
41228LIBS="-lunicows $LIBS"
41229cat >conftest.$ac_ext <<_ACEOF
41230/* confdefs.h. */
41231_ACEOF
41232cat confdefs.h >>conftest.$ac_ext
41233cat >>conftest.$ac_ext <<_ACEOF
41234/* end confdefs.h. */
41235
41236
41237int
41238main ()
41239{
41240main ();
41241 ;
41242 return 0;
41243}
41244_ACEOF
41245rm -f conftest.$ac_objext conftest$ac_exeext
41246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41247 (eval $ac_link) 2>conftest.er1
a848cd7e 41248 ac_status=$?
ac1cb8d3
VS
41249 grep -v '^ *+' conftest.er1 >conftest.err
41250 rm -f conftest.er1
41251 cat conftest.err >&5
a848cd7e
SC
41252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41253 (exit $ac_status); } &&
5ff751d6 41254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41256 (eval $ac_try) 2>&5
41257 ac_status=$?
41258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41259 (exit $ac_status); }; } &&
41260 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41262 (eval $ac_try) 2>&5
41263 ac_status=$?
41264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41265 (exit $ac_status); }; }; then
41266 ac_cv_lib_unicows_main=yes
41267else
41268 echo "$as_me: failed program was:" >&5
41269sed 's/^/| /' conftest.$ac_ext >&5
41270
41271ac_cv_lib_unicows_main=no
41272fi
ac1cb8d3
VS
41273rm -f conftest.err conftest.$ac_objext \
41274 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41275LIBS=$ac_check_lib_save_LIBS
41276fi
41277echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
41278echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
41279if test $ac_cv_lib_unicows_main = yes; then
41280
41281 cat >>confdefs.h <<\_ACEOF
41282#define wxUSE_UNICODE_MSLU 1
41283_ACEOF
41284
41285
41286else
41287
41288 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41289 Applications will only run on Windows NT/2000/XP!" >&5
41290echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41291 Applications will only run on Windows NT/2000/XP!" >&2;}
41292 wxUSE_UNICODE_MSLU=no
41293
41294fi
41295
41296 fi
41297fi
41298
41299if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
41300 cat >>confdefs.h <<\_ACEOF
41301#define wxUSE_EXPERIMENTAL_PRINTF 1
41302_ACEOF
41303
41304fi
41305
41306
41307if test "$wxUSE_POSTSCRIPT" = "yes" ; then
41308 cat >>confdefs.h <<\_ACEOF
41309#define wxUSE_POSTSCRIPT 1
41310_ACEOF
41311
41312fi
41313
41314cat >>confdefs.h <<\_ACEOF
41315#define wxUSE_AFM_FOR_POSTSCRIPT 1
41316_ACEOF
41317
41318
41319cat >>confdefs.h <<\_ACEOF
41320#define wxUSE_NORMALIZED_PS_FONTS 1
41321_ACEOF
41322
41323
41324
41325if test "$wxUSE_CONSTRAINTS" = "yes"; then
41326 cat >>confdefs.h <<\_ACEOF
41327#define wxUSE_CONSTRAINTS 1
41328_ACEOF
41329
41330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
41331fi
41332
8a7b1113
VZ
41333if test "$wxUSE_MDI" = "yes"; then
41334 cat >>confdefs.h <<\_ACEOF
41335#define wxUSE_MDI 1
41336_ACEOF
41337
41338
41339 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41340 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41341#define wxUSE_MDI_ARCHITECTURE 1
41342_ACEOF
41343
8a7b1113
VZ
41344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
41345 fi
a848cd7e
SC
41346fi
41347
41348if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
41349 cat >>confdefs.h <<\_ACEOF
41350#define wxUSE_DOC_VIEW_ARCHITECTURE 1
41351_ACEOF
41352
41353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
41354 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
41356 fi
41357fi
41358
41359if test "$wxUSE_HELP" = "yes"; then
41360 cat >>confdefs.h <<\_ACEOF
41361#define wxUSE_HELP 1
41362_ACEOF
41363
41364 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
41365
41366 if test "$wxUSE_MSW" = 1; then
41367 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
41368 cat >>confdefs.h <<\_ACEOF
41369#define wxUSE_MS_HTML_HELP 1
41370_ACEOF
41371
41372 fi
41373 fi
41374
41375 if test "$wxUSE_WXHTML_HELP" = "yes"; then
41376 if test "$wxUSE_HTML" = "yes"; then
41377 cat >>confdefs.h <<\_ACEOF
41378#define wxUSE_WXHTML_HELP 1
41379_ACEOF
41380
41381 else
41382 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
41383echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
41384 wxUSE_WXHTML_HELP=no
41385 fi
41386 fi
41387fi
41388
41389if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41390 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41391 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
41392echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
41393 else
41394 cat >>confdefs.h <<\_ACEOF
41395#define wxUSE_PRINTING_ARCHITECTURE 1
41396_ACEOF
41397
41398 fi
41399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
41400fi
41401
41402if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
41403 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
41404echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
41405 { (exit 1); exit 1; }; }
41406fi
41407
41408
efdf6afe
VZ
41409if test "$wxUSE_METAFILE" = "yes"; then
41410 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
41411 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
41412echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
41413 wxUSE_METAFILE=no
41414 fi
41415fi
41416
41417
a848cd7e
SC
41418if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
41419 -o "$wxUSE_CLIPBOARD" = "yes" \
41420 -o "$wxUSE_OLE" = "yes" \
41421 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
41422
41423for ac_header in ole2.h
41424do
41425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41426if eval "test \"\${$as_ac_Header+set}\" = set"; then
41427 echo "$as_me:$LINENO: checking for $ac_header" >&5
41428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41429if eval "test \"\${$as_ac_Header+set}\" = set"; then
41430 echo $ECHO_N "(cached) $ECHO_C" >&6
41431fi
41432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41433echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41434else
41435 # Is the header compilable?
41436echo "$as_me:$LINENO: checking $ac_header usability" >&5
41437echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41438cat >conftest.$ac_ext <<_ACEOF
41439/* confdefs.h. */
41440_ACEOF
41441cat confdefs.h >>conftest.$ac_ext
41442cat >>conftest.$ac_ext <<_ACEOF
41443/* end confdefs.h. */
41444$ac_includes_default
41445#include <$ac_header>
41446_ACEOF
41447rm -f conftest.$ac_objext
41448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41449 (eval $ac_compile) 2>conftest.er1
a848cd7e 41450 ac_status=$?
ac1cb8d3
VS
41451 grep -v '^ *+' conftest.er1 >conftest.err
41452 rm -f conftest.er1
41453 cat conftest.err >&5
a848cd7e
SC
41454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41455 (exit $ac_status); } &&
5ff751d6 41456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41458 (eval $ac_try) 2>&5
41459 ac_status=$?
41460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41461 (exit $ac_status); }; } &&
41462 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41464 (eval $ac_try) 2>&5
41465 ac_status=$?
41466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41467 (exit $ac_status); }; }; then
41468 ac_header_compiler=yes
41469else
41470 echo "$as_me: failed program was:" >&5
41471sed 's/^/| /' conftest.$ac_ext >&5
41472
41473ac_header_compiler=no
41474fi
ac1cb8d3 41475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41476echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41477echo "${ECHO_T}$ac_header_compiler" >&6
41478
41479# Is the header present?
41480echo "$as_me:$LINENO: checking $ac_header presence" >&5
41481echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41482cat >conftest.$ac_ext <<_ACEOF
41483/* confdefs.h. */
41484_ACEOF
41485cat confdefs.h >>conftest.$ac_ext
41486cat >>conftest.$ac_ext <<_ACEOF
41487/* end confdefs.h. */
41488#include <$ac_header>
41489_ACEOF
41490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41492 ac_status=$?
41493 grep -v '^ *+' conftest.er1 >conftest.err
41494 rm -f conftest.er1
41495 cat conftest.err >&5
41496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41497 (exit $ac_status); } >/dev/null; then
41498 if test -s conftest.err; then
41499 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41501 else
41502 ac_cpp_err=
41503 fi
41504else
41505 ac_cpp_err=yes
41506fi
41507if test -z "$ac_cpp_err"; then
41508 ac_header_preproc=yes
41509else
41510 echo "$as_me: failed program was:" >&5
41511sed 's/^/| /' conftest.$ac_ext >&5
41512
41513 ac_header_preproc=no
41514fi
41515rm -f conftest.err conftest.$ac_ext
41516echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41517echo "${ECHO_T}$ac_header_preproc" >&6
41518
41519# So? What about this header?
ac1cb8d3
VS
41520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41521 yes:no: )
a848cd7e
SC
41522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41523echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41525echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41526 ac_header_preproc=yes
a848cd7e 41527 ;;
ac1cb8d3 41528 no:yes:* )
a848cd7e
SC
41529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41530echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41532echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41534echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41536echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41538echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41540echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41541 (
41542 cat <<\_ASBOX
ac1cb8d3
VS
41543## ----------------------------------------- ##
41544## Report this to wx-dev@lists.wxwidgets.org ##
41545## ----------------------------------------- ##
a848cd7e
SC
41546_ASBOX
41547 ) |
41548 sed "s/^/$as_me: WARNING: /" >&2
41549 ;;
41550esac
41551echo "$as_me:$LINENO: checking for $ac_header" >&5
41552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41553if eval "test \"\${$as_ac_Header+set}\" = set"; then
41554 echo $ECHO_N "(cached) $ECHO_C" >&6
41555else
ac1cb8d3 41556 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41557fi
41558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41560
41561fi
41562if test `eval echo '${'$as_ac_Header'}'` = yes; then
41563 cat >>confdefs.h <<_ACEOF
41564#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41565_ACEOF
41566
41567fi
41568
41569done
41570
41571
41572 if test "$ac_cv_header_ole2_h" = "yes" ; then
41573 if test "$GCC" = yes ; then
41574
41575
41576 ac_ext=cc
41577ac_cpp='$CXXCPP $CPPFLAGS'
41578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41581
41582
41583 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
41584echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
41585 cat >conftest.$ac_ext <<_ACEOF
41586/* confdefs.h. */
41587_ACEOF
41588cat confdefs.h >>conftest.$ac_ext
41589cat >>conftest.$ac_ext <<_ACEOF
41590/* end confdefs.h. */
41591#include <windows.h>
41592 #include <ole2.h>
41593int
41594main ()
41595{
41596
41597 ;
41598 return 0;
41599}
41600_ACEOF
41601rm -f conftest.$ac_objext
41602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41603 (eval $ac_compile) 2>conftest.er1
a848cd7e 41604 ac_status=$?
ac1cb8d3
VS
41605 grep -v '^ *+' conftest.er1 >conftest.err
41606 rm -f conftest.er1
41607 cat conftest.err >&5
a848cd7e
SC
41608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41609 (exit $ac_status); } &&
5ff751d6 41610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41612 (eval $ac_try) 2>&5
41613 ac_status=$?
41614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41615 (exit $ac_status); }; } &&
41616 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41618 (eval $ac_try) 2>&5
41619 ac_status=$?
41620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41621 (exit $ac_status); }; }; then
41622 echo "$as_me:$LINENO: result: no" >&5
41623echo "${ECHO_T}no" >&6
41624else
41625 echo "$as_me: failed program was:" >&5
41626sed 's/^/| /' conftest.$ac_ext >&5
41627
41628echo "$as_me:$LINENO: result: yes" >&5
41629echo "${ECHO_T}yes" >&6
5ff751d6 41630 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 41631fi
ac1cb8d3 41632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41633 ac_ext=c
41634ac_cpp='$CPP $CPPFLAGS'
41635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41637ac_compiler_gnu=$ac_cv_c_compiler_gnu
41638
a848cd7e
SC
41639 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
41640 if test "$wxUSE_OLE" = "yes" ; then
41641 cat >>confdefs.h <<\_ACEOF
41642#define wxUSE_OLE 1
41643_ACEOF
41644
0b78747f 41645 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
41646 fi
41647 fi
41648
41649 if test "$wxUSE_DATAOBJ" = "yes" ; then
41650 cat >>confdefs.h <<\_ACEOF
41651#define wxUSE_DATAOBJ 1
41652_ACEOF
41653
41654 fi
41655 else
41656 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
41657echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
41658
41659 wxUSE_CLIPBOARD=no
41660 wxUSE_DRAG_AND_DROP=no
41661 wxUSE_DATAOBJ=no
41662 wxUSE_OLE=no
41663 fi
41664
41665 if test "$wxUSE_METAFILE" = "yes"; then
41666 cat >>confdefs.h <<\_ACEOF
41667#define wxUSE_METAFILE 1
41668_ACEOF
41669
41670
41671 cat >>confdefs.h <<\_ACEOF
41672#define wxUSE_ENH_METAFILE 1
41673_ACEOF
41674
41675 fi
41676fi
41677
41678if test "$wxUSE_IPC" = "yes"; then
0b78747f 41679 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
41680 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
41681echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 41682 wxUSE_IPC=no
a848cd7e
SC
41683 fi
41684
0b78747f
MW
41685 if test "$wxUSE_IPC" = "yes"; then
41686 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41687#define wxUSE_IPC 1
41688_ACEOF
41689
0b78747f
MW
41690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
41691 fi
a848cd7e
SC
41692fi
41693
eb730a0c 41694if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
41695 if test "$wxUSE_MGL" = 1; then
41696 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
41697echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
41698 wxUSE_DATAOBJ=no
41699 else
41700 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
41701#define wxUSE_DATAOBJ 1
41702_ACEOF
41703
2113bc77 41704 fi
eb730a0c
JS
41705else
41706 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
41707echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
41708 wxUSE_CLIPBOARD=no
41709 wxUSE_DRAG_AND_DROP=no
41710fi
41711
a848cd7e
SC
41712if test "$wxUSE_CLIPBOARD" = "yes"; then
41713 if test "$wxUSE_MGL" = 1; then
41714 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
41715echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
41716 wxUSE_CLIPBOARD=no
41717 fi
41718
41719 if test "$wxUSE_CLIPBOARD" = "yes"; then
41720 cat >>confdefs.h <<\_ACEOF
41721#define wxUSE_CLIPBOARD 1
41722_ACEOF
41723
a848cd7e
SC
41724 fi
41725fi
41726
41727if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
41728 if test "$wxUSE_GTK" = 1; then
41729 if test "$WXGTK12" != 1; then
41730 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
41731echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
41732 wxUSE_DRAG_AND_DROP=no
41733 fi
41734 fi
41735
41736 if test "$wxUSE_MOTIF" = 1; then
41737 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
41738echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
41739 wxUSE_DRAG_AND_DROP=no
41740 fi
41741
41742 if test "$wxUSE_X11" = 1; then
41743 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
41744echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
41745 wxUSE_DRAG_AND_DROP=no
41746 fi
41747
41748 if test "$wxUSE_MGL" = 1; then
41749 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
41750echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
41751 wxUSE_DRAG_AND_DROP=no
41752 fi
41753
41754 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
41755 cat >>confdefs.h <<\_ACEOF
41756#define wxUSE_DRAG_AND_DROP 1
41757_ACEOF
41758
41759 fi
41760
41761fi
41762
41763if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
41764 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
41765fi
41766
41767if test "$wxUSE_SPLINES" = "yes" ; then
41768 cat >>confdefs.h <<\_ACEOF
41769#define wxUSE_SPLINES 1
41770_ACEOF
41771
41772fi
41773
fbe2ca43
SN
41774if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
41775 cat >>confdefs.h <<\_ACEOF
41776#define wxUSE_MOUSEWHEEL 1
41777_ACEOF
41778
41779fi
41780
a848cd7e
SC
41781
41782USES_CONTROLS=0
41783if test "$wxUSE_CONTROLS" = "yes"; then
41784 USES_CONTROLS=1
41785fi
41786
41787if test "$wxUSE_ACCEL" = "yes"; then
41788 cat >>confdefs.h <<\_ACEOF
41789#define wxUSE_ACCEL 1
41790_ACEOF
41791
41792 USES_CONTROLS=1
41793fi
41794
41795if test "$wxUSE_BUTTON" = "yes"; then
41796 cat >>confdefs.h <<\_ACEOF
41797#define wxUSE_BUTTON 1
41798_ACEOF
41799
41800 USES_CONTROLS=1
41801fi
41802
41803if test "$wxUSE_BMPBUTTON" = "yes"; then
41804 cat >>confdefs.h <<\_ACEOF
41805#define wxUSE_BMPBUTTON 1
41806_ACEOF
41807
41808 USES_CONTROLS=1
41809fi
41810
41811if test "$wxUSE_CALCTRL" = "yes"; then
41812 cat >>confdefs.h <<\_ACEOF
41813#define wxUSE_CALENDARCTRL 1
41814_ACEOF
41815
41816 USES_CONTROLS=1
41817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
41818fi
41819
41820if test "$wxUSE_CARET" = "yes"; then
41821 cat >>confdefs.h <<\_ACEOF
41822#define wxUSE_CARET 1
41823_ACEOF
41824
41825 USES_CONTROLS=1
41826 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
41827fi
41828
41829if test "$wxUSE_COMBOBOX" = "yes"; then
41830 cat >>confdefs.h <<\_ACEOF
41831#define wxUSE_COMBOBOX 1
41832_ACEOF
41833
41834 USES_CONTROLS=1
41835fi
41836
41837if test "$wxUSE_CHOICE" = "yes"; then
41838 cat >>confdefs.h <<\_ACEOF
41839#define wxUSE_CHOICE 1
41840_ACEOF
41841
41842 USES_CONTROLS=1
41843fi
41844
92bbdbcd
WS
41845if test "$wxUSE_CHOICEBOOK" = "yes"; then
41846 cat >>confdefs.h <<\_ACEOF
41847#define wxUSE_CHOICEBOOK 1
41848_ACEOF
41849
41850 USES_CONTROLS=1
41851fi
41852
a848cd7e
SC
41853if test "$wxUSE_CHECKBOX" = "yes"; then
41854 cat >>confdefs.h <<\_ACEOF
41855#define wxUSE_CHECKBOX 1
41856_ACEOF
41857
41858 USES_CONTROLS=1
41859fi
41860
41861if test "$wxUSE_CHECKLST" = "yes"; then
41862 cat >>confdefs.h <<\_ACEOF
41863#define wxUSE_CHECKLISTBOX 1
41864_ACEOF
41865
41866 USES_CONTROLS=1
41867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
41868fi
41869
da98e9be
VZ
41870if test "$wxUSE_DATEPICKCTRL" = "yes"; then
41871 cat >>confdefs.h <<\_ACEOF
41872#define wxUSE_DATEPICKCTRL 1
41873_ACEOF
41874
41875 USES_CONTROLS=1
41876fi
41877
a848cd7e
SC
41878if test "$wxUSE_DISPLAY" = "yes"; then
41879 cat >>confdefs.h <<\_ACEOF
41880#define wxUSE_DISPLAY 1
41881_ACEOF
41882
0b78747f 41883 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
41884fi
41885
41886if test "$wxUSE_GAUGE" = "yes"; then
41887 cat >>confdefs.h <<\_ACEOF
41888#define wxUSE_GAUGE 1
41889_ACEOF
41890
41891 USES_CONTROLS=1
41892fi
41893
41894if test "$wxUSE_GRID" = "yes"; then
41895 cat >>confdefs.h <<\_ACEOF
41896#define wxUSE_GRID 1
41897_ACEOF
41898
41899 USES_CONTROLS=1
41900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
41901fi
41902
41903if test "$wxUSE_IMAGLIST" = "yes"; then
41904 cat >>confdefs.h <<\_ACEOF
41905#define wxUSE_IMAGLIST 1
41906_ACEOF
41907
41908fi
41909
41910if test "$wxUSE_LISTBOOK" = "yes"; then
41911 cat >>confdefs.h <<\_ACEOF
41912#define wxUSE_LISTBOOK 1
41913_ACEOF
41914
41915 USES_CONTROLS=1
41916fi
41917
41918if test "$wxUSE_LISTBOX" = "yes"; then
41919 cat >>confdefs.h <<\_ACEOF
41920#define wxUSE_LISTBOX 1
41921_ACEOF
41922
41923 USES_CONTROLS=1
0b78747f 41924 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
41925fi
41926
41927if test "$wxUSE_LISTCTRL" = "yes"; then
41928 if test "$wxUSE_IMAGLIST" = "yes"; then
41929 cat >>confdefs.h <<\_ACEOF
41930#define wxUSE_LISTCTRL 1
41931_ACEOF
41932
41933 USES_CONTROLS=1
41934 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
41935 else
41936 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
41937echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
41938 fi
41939fi
41940
41941if test "$wxUSE_NOTEBOOK" = "yes"; then
41942 cat >>confdefs.h <<\_ACEOF
41943#define wxUSE_NOTEBOOK 1
41944_ACEOF
41945
41946 USES_CONTROLS=1
41947 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
41948fi
41949
41950
41951if test "$wxUSE_RADIOBOX" = "yes"; then
41952 cat >>confdefs.h <<\_ACEOF
41953#define wxUSE_RADIOBOX 1
41954_ACEOF
41955
41956 USES_CONTROLS=1
41957fi
41958
41959if test "$wxUSE_RADIOBTN" = "yes"; then
41960 cat >>confdefs.h <<\_ACEOF
41961#define wxUSE_RADIOBTN 1
41962_ACEOF
41963
41964 USES_CONTROLS=1
41965fi
41966
41967if test "$wxUSE_SASH" = "yes"; then
41968 cat >>confdefs.h <<\_ACEOF
41969#define wxUSE_SASH 1
41970_ACEOF
41971
41972 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
41973fi
41974
41975if test "$wxUSE_SCROLLBAR" = "yes"; then
41976 cat >>confdefs.h <<\_ACEOF
41977#define wxUSE_SCROLLBAR 1
41978_ACEOF
41979
41980 USES_CONTROLS=1
41981 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
41982fi
41983
41984if test "$wxUSE_SLIDER" = "yes"; then
41985 cat >>confdefs.h <<\_ACEOF
41986#define wxUSE_SLIDER 1
41987_ACEOF
41988
41989 USES_CONTROLS=1
41990fi
41991
41992if test "$wxUSE_SPINBTN" = "yes"; then
41993 cat >>confdefs.h <<\_ACEOF
41994#define wxUSE_SPINBTN 1
41995_ACEOF
41996
41997 USES_CONTROLS=1
41998fi
41999
42000if test "$wxUSE_SPINCTRL" = "yes"; then
42001 cat >>confdefs.h <<\_ACEOF
42002#define wxUSE_SPINCTRL 1
42003_ACEOF
42004
42005 USES_CONTROLS=1
42006fi
42007
42008if test "$wxUSE_SPLITTER" = "yes"; then
42009 cat >>confdefs.h <<\_ACEOF
42010#define wxUSE_SPLITTER 1
42011_ACEOF
42012
42013 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
42014fi
42015
42016if test "$wxUSE_STATBMP" = "yes"; then
42017 cat >>confdefs.h <<\_ACEOF
42018#define wxUSE_STATBMP 1
42019_ACEOF
42020
42021 USES_CONTROLS=1
42022fi
42023
42024if test "$wxUSE_STATBOX" = "yes"; then
42025 cat >>confdefs.h <<\_ACEOF
42026#define wxUSE_STATBOX 1
42027_ACEOF
42028
42029 USES_CONTROLS=1
42030fi
42031
42032if test "$wxUSE_STATTEXT" = "yes"; then
42033 cat >>confdefs.h <<\_ACEOF
42034#define wxUSE_STATTEXT 1
42035_ACEOF
42036
42037 USES_CONTROLS=1
42038fi
42039
42040if test "$wxUSE_STATLINE" = "yes"; then
42041 cat >>confdefs.h <<\_ACEOF
42042#define wxUSE_STATLINE 1
42043_ACEOF
42044
42045 USES_CONTROLS=1
42046fi
42047
42048if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
42049 cat >>confdefs.h <<\_ACEOF
42050#define wxUSE_NATIVE_STATUSBAR 1
42051_ACEOF
42052
a848cd7e
SC
42053 cat >>confdefs.h <<\_ACEOF
42054#define wxUSE_STATUSBAR 1
42055_ACEOF
42056
42057 USES_CONTROLS=1
42058
42059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
42060fi
42061
42062if test "$wxUSE_TABDIALOG" = "yes"; then
42063 cat >>confdefs.h <<\_ACEOF
42064#define wxUSE_TAB_DIALOG 1
42065_ACEOF
42066
a848cd7e
SC
42067fi
42068
42069if test "$wxUSE_TEXTCTRL" = "yes"; then
42070 cat >>confdefs.h <<\_ACEOF
42071#define wxUSE_TEXTCTRL 1
42072_ACEOF
42073
42074 USES_CONTROLS=1
42075 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
42076fi
42077
42078if test "$wxUSE_TOGGLEBTN" = "yes"; then
42079 if test "$wxUSE_COCOA" = 1 ; then
42080 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
42081echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
42082 wxUSE_TOGGLEBTN=no
42083 fi
42084 if test "$wxUSE_UNIVERSAL" = "yes"; then
42085 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
42086echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
42087 wxUSE_TOGGLEBTN=no
42088 fi
42089
42090 if test "$wxUSE_TOGGLEBTN" = "yes"; then
42091 cat >>confdefs.h <<\_ACEOF
42092#define wxUSE_TOGGLEBTN 1
42093_ACEOF
42094
42095 USES_CONTROLS=1
42096 fi
42097fi
42098
42099if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
42100 cat >>confdefs.h <<\_ACEOF
42101#define wxUSE_TOOLBAR_SIMPLE 1
42102_ACEOF
42103
42104 wxUSE_TOOLBAR="yes"
42105 USES_CONTROLS=1
42106fi
42107
42108if test "$wxUSE_TOOLBAR" = "yes"; then
42109 cat >>confdefs.h <<\_ACEOF
42110#define wxUSE_TOOLBAR 1
42111_ACEOF
42112
42113 USES_CONTROLS=1
42114
42115 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
42116 wxUSE_TOOLBAR_NATIVE="yes"
42117 fi
42118
42119 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
42120 cat >>confdefs.h <<\_ACEOF
42121#define wxUSE_TOOLBAR_NATIVE 1
42122_ACEOF
42123
42124 USES_CONTROLS=1
42125 fi
42126
42127 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
42128fi
42129
42130if test "$wxUSE_TOOLTIPS" = "yes"; then
42131 if test "$wxUSE_MOTIF" = 1; then
42132 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
42133echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
42134 else
42135 if test "$wxUSE_UNIVERSAL" = "yes"; then
42136 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
42137echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
42138 else
42139 cat >>confdefs.h <<\_ACEOF
42140#define wxUSE_TOOLTIPS 1
42141_ACEOF
42142
42143 fi
42144 fi
42145fi
42146
0093c2fc
VZ
42147if test "$wxUSE_TREEBOOK" = "yes"; then
42148 cat >>confdefs.h <<\_ACEOF
42149#define wxUSE_TREEBOOK 1
42150_ACEOF
42151
42152 USES_CONTROLS=1
42153fi
42154
a848cd7e
SC
42155if test "$wxUSE_TREECTRL" = "yes"; then
42156 if test "$wxUSE_IMAGLIST" = "yes"; then
42157 cat >>confdefs.h <<\_ACEOF
42158#define wxUSE_TREECTRL 1
42159_ACEOF
42160
42161 USES_CONTROLS=1
42162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
42163 else
42164 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
42165echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
42166 fi
42167fi
42168
42169if test "$wxUSE_POPUPWIN" = "yes"; then
42170 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42171 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
42172echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
42173 else
42174 if test "$wxUSE_PM" = 1; then
42175 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
42176echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
42177 else
42178 cat >>confdefs.h <<\_ACEOF
42179#define wxUSE_POPUPWIN 1
42180_ACEOF
42181
0b78747f 42182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
42183
42184 USES_CONTROLS=1
42185 fi
42186 fi
42187fi
42188
0dcd06dd 42189if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
42190 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42191 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
42192echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
42193 else
42194 cat >>confdefs.h <<\_ACEOF
42195#define wxUSE_DIALUP_MANAGER 1
42196_ACEOF
42197
42198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
42199 fi
42200fi
42201
a848cd7e
SC
42202if test "$wxUSE_TIPWINDOW" = "yes"; then
42203 if test "$wxUSE_PM" = 1; then
42204 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
42205echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
42206 else
42207 cat >>confdefs.h <<\_ACEOF
42208#define wxUSE_TIPWINDOW 1
42209_ACEOF
42210
42211 fi
42212fi
42213
42214if test "$USES_CONTROLS" = 1; then
42215 cat >>confdefs.h <<\_ACEOF
42216#define wxUSE_CONTROLS 1
42217_ACEOF
42218
42219fi
42220
42221
42222if test "$wxUSE_ACCESSIBILITY" = "yes"; then
42223 cat >>confdefs.h <<\_ACEOF
42224#define wxUSE_ACCESSIBILITY 1
42225_ACEOF
42226
42227 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
42228fi
42229
38b4a946
VZ
42230if test "$wxUSE_DC_CACHEING" = "yes"; then
42231 cat >>confdefs.h <<\_ACEOF
42232#define wxUSE_DC_CACHEING 1
42233_ACEOF
42234
42235fi
42236
a848cd7e
SC
42237if test "$wxUSE_DRAGIMAGE" = "yes"; then
42238 cat >>confdefs.h <<\_ACEOF
42239#define wxUSE_DRAGIMAGE 1
42240_ACEOF
42241
42242 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
42243fi
42244
42245if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
42246 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42247 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
42248echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
42249 else
42250 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42251#define wxUSE_EXCEPTIONS 1
42252_ACEOF
42253
07bea8f0
VS
42254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
42255 fi
a848cd7e
SC
42256fi
42257
42258USE_HTML=0
42259if test "$wxUSE_HTML" = "yes"; then
42260 cat >>confdefs.h <<\_ACEOF
42261#define wxUSE_HTML 1
42262_ACEOF
42263
42264 USE_HTML=1
42265 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
42266 if test "$wxUSE_MAC" = 1; then
42267 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
42268 fi
a848cd7e 42269fi
646b6ec1 42270if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 42271 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
42272 old_CPPFLAGS="$CPPFLAGS"
42273 CPPFLAGS="$CPPFLAGS -x objective-c++"
42274 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
42275echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
42276if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
42277 echo $ECHO_N "(cached) $ECHO_C" >&6
42278else
42279 cat >conftest.$ac_ext <<_ACEOF
42280/* confdefs.h. */
42281_ACEOF
42282cat confdefs.h >>conftest.$ac_ext
42283cat >>conftest.$ac_ext <<_ACEOF
42284/* end confdefs.h. */
42285#include <Carbon/Carbon.h>
42286
42287#include <WebKit/HIWebView.h>
42288_ACEOF
42289rm -f conftest.$ac_objext
42290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42291 (eval $ac_compile) 2>conftest.er1
42292 ac_status=$?
42293 grep -v '^ *+' conftest.er1 >conftest.err
42294 rm -f conftest.er1
42295 cat conftest.err >&5
42296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42297 (exit $ac_status); } &&
5ff751d6 42298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
42299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42300 (eval $ac_try) 2>&5
42301 ac_status=$?
42302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42303 (exit $ac_status); }; } &&
42304 { ac_try='test -s conftest.$ac_objext'
42305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42306 (eval $ac_try) 2>&5
42307 ac_status=$?
42308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42309 (exit $ac_status); }; }; then
42310 ac_cv_header_WebKit_HIWebView_h=yes
42311else
42312 echo "$as_me: failed program was:" >&5
42313sed 's/^/| /' conftest.$ac_ext >&5
42314
42315ac_cv_header_WebKit_HIWebView_h=no
42316fi
42317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42318fi
42319echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
42320echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
42321if test $ac_cv_header_WebKit_HIWebView_h = yes; then
42322
42323 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
42324#define wxUSE_WEBKIT 1
42325_ACEOF
42326
07bea8f0
VS
42327 WEBKIT_LINK="-framework WebKit"
42328
42329else
42330
42331 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
42332echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
42333 wxUSE_WEBKIT=no
42334
646b6ec1
VS
42335fi
42336
07bea8f0
VS
42337
42338 CPPFLAGS="$old_CPPFLAGS"
42339 elif test "$wxUSE_COCOA" = 1; then
42340 cat >>confdefs.h <<\_ACEOF
42341#define wxUSE_WEBKIT 1
42342_ACEOF
42343
42344 else
42345 wxUSE_WEBKIT=no
42346 fi
42347fi
42348
9a8f0513
VS
42349USE_XRC=0
42350if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
42351 if test "$wxUSE_XML" != "yes"; then
42352 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
42353echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
42354 wxUSE_XRC=no
42355 else
42356 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
42357#define wxUSE_XRC 1
42358_ACEOF
42359
d2ebf0b7
VS
42360 USE_XRC=1
42361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
42362 fi
9a8f0513 42363fi
07bea8f0 42364
a848cd7e
SC
42365if test "$wxUSE_MENUS" = "yes"; then
42366 cat >>confdefs.h <<\_ACEOF
42367#define wxUSE_MENUS 1
42368_ACEOF
42369
42370 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
42371fi
42372
42373if test "$wxUSE_METAFILE" = "yes"; then
42374 cat >>confdefs.h <<\_ACEOF
42375#define wxUSE_METAFILE 1
42376_ACEOF
42377
42378fi
42379
42380if test "$wxUSE_MIMETYPE" = "yes"; then
42381 cat >>confdefs.h <<\_ACEOF
42382#define wxUSE_MIMETYPE 1
42383_ACEOF
42384
42385fi
42386
42387if test "$wxUSE_MINIFRAME" = "yes"; then
42388 cat >>confdefs.h <<\_ACEOF
42389#define wxUSE_MINIFRAME 1
42390_ACEOF
42391
42392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
42393fi
42394
42395if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
42396 cat >>confdefs.h <<\_ACEOF
42397#define wxUSE_SYSTEM_OPTIONS 1
42398_ACEOF
42399
42400 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 42401 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
42402 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
42403 fi
42404fi
42405
42406
42407if test "$wxUSE_VALIDATORS" = "yes"; then
42408 cat >>confdefs.h <<\_ACEOF
42409#define wxUSE_VALIDATORS 1
42410_ACEOF
42411
42412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
42413fi
42414
42415if test "$wxUSE_PALETTE" = "yes" ; then
42416 cat >>confdefs.h <<\_ACEOF
42417#define wxUSE_PALETTE 1
42418_ACEOF
42419
42420fi
42421
42422if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
42423 LIBS=" -lunicows $LIBS"
42424fi
42425
91dea314
MW
42426USE_RICHTEXT=0
42427if test "$wxUSE_RICHTEXT" = "yes"; then
42428 cat >>confdefs.h <<\_ACEOF
42429#define wxUSE_RICHTEXT 1
42430_ACEOF
42431
42432 USE_RICHTEXT=1
42433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
42434fi
42435
a848cd7e
SC
42436
42437if test "$wxUSE_IMAGE" = "yes" ; then
42438 cat >>confdefs.h <<\_ACEOF
42439#define wxUSE_IMAGE 1
42440_ACEOF
42441
42442
42443 if test "$wxUSE_GIF" = "yes" ; then
42444 cat >>confdefs.h <<\_ACEOF
42445#define wxUSE_GIF 1
42446_ACEOF
42447
42448 fi
42449
42450 if test "$wxUSE_PCX" = "yes" ; then
42451 cat >>confdefs.h <<\_ACEOF
42452#define wxUSE_PCX 1
42453_ACEOF
42454
42455 fi
42456
42457 if test "$wxUSE_IFF" = "yes" ; then
42458 cat >>confdefs.h <<\_ACEOF
42459#define wxUSE_IFF 1
42460_ACEOF
42461
42462 fi
42463
42464 if test "$wxUSE_PNM" = "yes" ; then
42465 cat >>confdefs.h <<\_ACEOF
42466#define wxUSE_PNM 1
42467_ACEOF
42468
42469 fi
42470
42471 if test "$wxUSE_XPM" = "yes" ; then
42472 cat >>confdefs.h <<\_ACEOF
42473#define wxUSE_XPM 1
42474_ACEOF
42475
42476 fi
42477
42478 if test "$wxUSE_ICO_CUR" = "yes" ; then
42479 cat >>confdefs.h <<\_ACEOF
42480#define wxUSE_ICO_CUR 1
42481_ACEOF
42482
42483 fi
42484fi
42485
42486
42487if test "$wxUSE_CHOICEDLG" = "yes"; then
42488 cat >>confdefs.h <<\_ACEOF
42489#define wxUSE_CHOICEDLG 1
42490_ACEOF
42491
42492fi
42493
42494if test "$wxUSE_COLOURDLG" = "yes"; then
42495 cat >>confdefs.h <<\_ACEOF
42496#define wxUSE_COLOURDLG 1
42497_ACEOF
42498
42499fi
42500
42501if test "$wxUSE_FILEDLG" = "yes"; then
42502 cat >>confdefs.h <<\_ACEOF
42503#define wxUSE_FILEDLG 1
42504_ACEOF
42505
42506fi
42507
42508if test "$wxUSE_FINDREPLDLG" = "yes"; then
42509 cat >>confdefs.h <<\_ACEOF
42510#define wxUSE_FINDREPLDLG 1
42511_ACEOF
42512
42513fi
42514
42515if test "$wxUSE_FONTDLG" = "yes"; then
42516 cat >>confdefs.h <<\_ACEOF
42517#define wxUSE_FONTDLG 1
42518_ACEOF
42519
42520fi
42521
42522if test "$wxUSE_DIRDLG" = "yes"; then
42523 if test "$wxUSE_TREECTRL" != "yes"; then
42524 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
42525echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
42526 else
42527 cat >>confdefs.h <<\_ACEOF
42528#define wxUSE_DIRDLG 1
42529_ACEOF
42530
42531 fi
42532fi
42533
42534if test "$wxUSE_MSGDLG" = "yes"; then
42535 cat >>confdefs.h <<\_ACEOF
42536#define wxUSE_MSGDLG 1
42537_ACEOF
42538
42539fi
42540
42541if test "$wxUSE_NUMBERDLG" = "yes"; then
42542 cat >>confdefs.h <<\_ACEOF
42543#define wxUSE_NUMBERDLG 1
42544_ACEOF
42545
42546fi
42547
42548if test "$wxUSE_PROGRESSDLG" = "yes"; then
42549 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42550 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
42551echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
42552 else
42553 cat >>confdefs.h <<\_ACEOF
42554#define wxUSE_PROGRESSDLG 1
42555_ACEOF
42556
42557 fi
42558fi
42559
42560if test "$wxUSE_SPLASH" = "yes"; then
42561 cat >>confdefs.h <<\_ACEOF
42562#define wxUSE_SPLASH 1
42563_ACEOF
42564
2057db16 42565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
42566fi
42567
42568if test "$wxUSE_STARTUP_TIPS" = "yes"; then
42569 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42570 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
42571echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
42572 else
42573 cat >>confdefs.h <<\_ACEOF
42574#define wxUSE_STARTUP_TIPS 1
42575_ACEOF
42576
42577 fi
42578fi
42579
42580if test "$wxUSE_TEXTDLG" = "yes"; then
42581 cat >>confdefs.h <<\_ACEOF
42582#define wxUSE_TEXTDLG 1
42583_ACEOF
42584
42585fi
42586
42587if test "$wxUSE_WIZARDDLG" = "yes"; then
42588 cat >>confdefs.h <<\_ACEOF
42589#define wxUSE_WIZARDDLG 1
42590_ACEOF
42591
42592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
42593fi
42594
42595
ce756cb0 42596if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
42597 if test "$wxUSE_GTK" = 1; then
42598 wxUSE_GSTREAMER="yes"
42599
ce756cb0 42600
dae87f93 42601 succeeded=no
ce756cb0 42602
dae87f93
RN
42603 if test -z "$PKG_CONFIG"; then
42604 # Extract the first word of "pkg-config", so it can be a program name with args.
42605set dummy pkg-config; ac_word=$2
42606echo "$as_me:$LINENO: checking for $ac_word" >&5
42607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42608if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42609 echo $ECHO_N "(cached) $ECHO_C" >&6
42610else
42611 case $PKG_CONFIG in
42612 [\\/]* | ?:[\\/]*)
42613 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42614 ;;
42615 *)
42616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42617for as_dir in $PATH
42618do
42619 IFS=$as_save_IFS
42620 test -z "$as_dir" && as_dir=.
42621 for ac_exec_ext in '' $ac_executable_extensions; do
42622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42623 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42625 break 2
42626 fi
42627done
42628done
42629
42630 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
42631 ;;
42632esac
42633fi
42634PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42635
42636if test -n "$PKG_CONFIG"; then
42637 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42638echo "${ECHO_T}$PKG_CONFIG" >&6
42639else
42640 echo "$as_me:$LINENO: result: no" >&5
42641echo "${ECHO_T}no" >&6
42642fi
42643
42644 fi
42645
42646 if test "$PKG_CONFIG" = "no" ; then
42647 echo "*** The pkg-config script could not be found. Make sure it is"
42648 echo "*** in your path, or set the PKG_CONFIG environment variable"
42649 echo "*** to the full path to pkg-config."
42650 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
42651 else
42652 PKG_CONFIG_MIN_VERSION=0.9.0
42653 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
42654 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
42655echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
42656
42657 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
42658 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42659echo "${ECHO_T}yes" >&6
dae87f93 42660 succeeded=yes
ce756cb0 42661
dae87f93
RN
42662 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
42663echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
42664 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
42665 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
42666echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
42667
42668 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
42669echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
42670 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
42671 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
42672echo "${ECHO_T}$GSTREAMER_LIBS" >&6
42673 else
42674 GSTREAMER_CFLAGS=""
42675 GSTREAMER_LIBS=""
42676 ## If we have a custom action on failure, don't print errors, but
42677 ## do set a variable so people can do so.
42678 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 42679
dae87f93
RN
42680 fi
42681
42682
42683
42684 else
42685 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
42686 echo "*** See http://www.freedesktop.org/software/pkgconfig"
42687 fi
42688 fi
42689
42690 if test $succeeded = yes; then
42691
42692 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
42693 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 42694
ce756cb0 42695 else
dae87f93
RN
42696
42697 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
42698echo "$as_me: WARNING: GStreamer installation not found" >&2;}
42699 wxUSE_GSTREAMER="no"
42700
42701 fi
42702
42703
42704
42705
42706
42707 if test "x$GST_INSPECT" == "x"; then
42708 # Extract the first word of "gst-inspect", so it can be a program name with args.
42709set dummy gst-inspect; ac_word=$2
42710echo "$as_me:$LINENO: checking for $ac_word" >&5
42711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42712if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
42713 echo $ECHO_N "(cached) $ECHO_C" >&6
42714else
42715 if test -n "$GST_INSPECT"; then
42716 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
42717else
42718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42719for as_dir in $PATH
42720do
42721 IFS=$as_save_IFS
42722 test -z "$as_dir" && as_dir=.
42723 for ac_exec_ext in '' $ac_executable_extensions; do
42724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42725 ac_cv_prog_GST_INSPECT="gst-inspect"
42726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42727 break 2
ce756cb0 42728 fi
dae87f93
RN
42729done
42730done
42731
42732fi
42733fi
42734GST_INSPECT=$ac_cv_prog_GST_INSPECT
42735if test -n "$GST_INSPECT"; then
42736 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
42737echo "${ECHO_T}$GST_INSPECT" >&6
42738else
42739 echo "$as_me:$LINENO: result: no" >&5
42740echo "${ECHO_T}no" >&6
42741fi
42742
42743 fi
42744
42745 if test "x$GST_INSPECT" != "x"; then
42746 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
42747echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
42748 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
42749 echo "$as_me:$LINENO: result: found." >&5
42750echo "${ECHO_T}found." >&6
ce756cb0 42751
ce756cb0 42752 else
dae87f93
RN
42753 echo "$as_me:$LINENO: result: not found." >&5
42754echo "${ECHO_T}not found." >&6
42755
42756 wxUSE_GSTREAMER="no"
42757 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
42758echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
42759
42760 fi
42761 fi
42762
42763
42764 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
42765echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
42766if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
42767 echo $ECHO_N "(cached) $ECHO_C" >&6
42768else
42769 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
42770/* confdefs.h. */
42771_ACEOF
42772cat confdefs.h >>conftest.$ac_ext
42773cat >>conftest.$ac_ext <<_ACEOF
42774/* end confdefs.h. */
dae87f93 42775#include <gst/gst.h>
ce756cb0 42776
dae87f93 42777#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
42778_ACEOF
42779rm -f conftest.$ac_objext
42780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42781 (eval $ac_compile) 2>conftest.er1
42782 ac_status=$?
42783 grep -v '^ *+' conftest.er1 >conftest.err
42784 rm -f conftest.er1
42785 cat conftest.err >&5
42786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42787 (exit $ac_status); } &&
5ff751d6 42788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
42789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42790 (eval $ac_try) 2>&5
42791 ac_status=$?
42792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42793 (exit $ac_status); }; } &&
42794 { ac_try='test -s conftest.$ac_objext'
42795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42796 (eval $ac_try) 2>&5
42797 ac_status=$?
42798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42799 (exit $ac_status); }; }; then
dae87f93 42800 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
42801else
42802 echo "$as_me: failed program was:" >&5
42803sed 's/^/| /' conftest.$ac_ext >&5
42804
dae87f93 42805ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
42806fi
42807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
42808fi
42809echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
42810echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
42811if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
42812 :
42813else
ce756cb0 42814
dae87f93
RN
42815 wxUSE_GSTREAMER="no"
42816 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
42817echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 42818
dae87f93 42819fi
ce756cb0 42820
dae87f93
RN
42821
42822
42823 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
42824echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
42825
0ad5d837
VZ
42826 ac_find_libraries=
42827 for ac_dir in $SEARCH_LIB;
ce756cb0 42828 do
3eca31dc 42829 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
42830 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42831 ac_find_libraries=$ac_dir
42832 break 2
42833 fi
42834 done
42835 done
42836
ce756cb0 42837
dae87f93
RN
42838 if test "$ac_find_libraries" = "" ; then
42839 echo "$as_me:$LINENO: result: no" >&5
42840echo "${ECHO_T}no" >&6
42841 wxUSE_GSTREAMER="no"
42842 else
42843 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42844echo "${ECHO_T}yes" >&6
dae87f93 42845 fi
ce756cb0 42846
dae87f93
RN
42847 if test "$wxUSE_GSTREAMER" = "yes"; then
42848 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
42849#define wxUSE_GSTREAMER 1
42850_ACEOF
42851
dae87f93
RN
42852 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
42853echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
42854 fi
42855 fi
42856 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
42857 cat >>confdefs.h <<\_ACEOF
42858#define wxUSE_MEDIACTRL 1
42859_ACEOF
42860
42861fi
42862
42863
a848cd7e
SC
42864if test "$cross_compiling" = "yes"; then
42865 OSINFO="\"$host\""
42866else
42867 OSINFO=`uname -s -r -m`
42868 OSINFO="\"$OSINFO\""
42869fi
42870
42871cat >>confdefs.h <<_ACEOF
42872#define WXWIN_OS_DESCRIPTION $OSINFO
42873_ACEOF
42874
42875
42876
42877if test "x$prefix" != "xNONE"; then
42878 wxPREFIX=$prefix
42879else
42880 wxPREFIX=$ac_default_prefix
42881fi
42882
42883cat >>confdefs.h <<_ACEOF
42884#define wxINSTALL_PREFIX "$wxPREFIX"
42885_ACEOF
42886
42887
a848cd7e
SC
42888
42889
42890CORE_BASE_LIBS="net base"
42891CORE_GUI_LIBS="adv core"
42892
42893if test "$wxUSE_XML" = "yes" ; then
42894 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
42895fi
42896if test "$wxUSE_ODBC" != "no" ; then
42897 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
42898 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
42899fi
42900if test "$wxUSE_HTML" = "yes" ; then
42901 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
42902fi
61639efb
VZ
42903if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42904 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
42905fi
9a8f0513
VS
42906if test "$wxUSE_XRC" = "yes" ; then
42907 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
42908fi
a848cd7e
SC
42909
42910if test "$wxUSE_GUI" != "yes"; then
42911 CORE_GUI_LIBS=""
42912fi
42913
42914
42915
42916
42917
42918
42919
42920
42921if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 42922 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
42923 if test "$USE_DARWIN" = 1; then
42924 LDFLAGS="$LDFLAGS -framework QuickTime"
42925 else
42926 LDFLAGS="$LDFLAGS -lQuickTimeLib"
42927 fi
07bea8f0 42928 fi
5dcf30a0 42929 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
42930 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
42931 else
42932 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 42933 fi
a848cd7e
SC
42934fi
42935if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 42936 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
42937 if test "$wxUSE_MEDIACTRL" = "yes"; then
42938 LDFLAGS="$LDFLAGS -framework QuickTime"
42939 fi
a848cd7e 42940fi
19b27e78
MW
42941if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
42942 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
42943fi
a848cd7e
SC
42944
42945
42946LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
42947
42948have_cos=0
42949have_floor=0
42950
42951for ac_func in cos
42952do
42953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42954echo "$as_me:$LINENO: checking for $ac_func" >&5
42955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42956if eval "test \"\${$as_ac_var+set}\" = set"; then
42957 echo $ECHO_N "(cached) $ECHO_C" >&6
42958else
42959 cat >conftest.$ac_ext <<_ACEOF
42960/* confdefs.h. */
42961_ACEOF
42962cat confdefs.h >>conftest.$ac_ext
42963cat >>conftest.$ac_ext <<_ACEOF
42964/* end confdefs.h. */
ac1cb8d3
VS
42965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42967#define $ac_func innocuous_$ac_func
42968
a848cd7e
SC
42969/* System header to define __stub macros and hopefully few prototypes,
42970 which can conflict with char $ac_func (); below.
42971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42972 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42973
a848cd7e
SC
42974#ifdef __STDC__
42975# include <limits.h>
42976#else
42977# include <assert.h>
42978#endif
ac1cb8d3
VS
42979
42980#undef $ac_func
42981
a848cd7e
SC
42982/* Override any gcc2 internal prototype to avoid an error. */
42983#ifdef __cplusplus
42984extern "C"
42985{
42986#endif
42987/* We use char because int might match the return type of a gcc2
42988 builtin and then its argument prototype would still apply. */
42989char $ac_func ();
42990/* The GNU C library defines this for functions which it implements
42991 to always fail with ENOSYS. Some functions are actually named
42992 something starting with __ and the normal name is an alias. */
42993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42994choke me
42995#else
42996char (*f) () = $ac_func;
42997#endif
42998#ifdef __cplusplus
42999}
43000#endif
43001
43002int
43003main ()
43004{
43005return f != $ac_func;
43006 ;
43007 return 0;
43008}
43009_ACEOF
43010rm -f conftest.$ac_objext conftest$ac_exeext
43011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43012 (eval $ac_link) 2>conftest.er1
a848cd7e 43013 ac_status=$?
ac1cb8d3
VS
43014 grep -v '^ *+' conftest.er1 >conftest.err
43015 rm -f conftest.er1
43016 cat conftest.err >&5
a848cd7e
SC
43017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43018 (exit $ac_status); } &&
5ff751d6 43019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
43025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43027 (eval $ac_try) 2>&5
43028 ac_status=$?
43029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43030 (exit $ac_status); }; }; then
43031 eval "$as_ac_var=yes"
43032else
43033 echo "$as_me: failed program was:" >&5
43034sed 's/^/| /' conftest.$ac_ext >&5
43035
43036eval "$as_ac_var=no"
43037fi
ac1cb8d3
VS
43038rm -f conftest.err conftest.$ac_objext \
43039 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43040fi
43041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43042echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43043if test `eval echo '${'$as_ac_var'}'` = yes; then
43044 cat >>confdefs.h <<_ACEOF
43045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43046_ACEOF
43047 have_cos=1
43048fi
43049done
43050
43051
43052for ac_func in floor
43053do
43054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43055echo "$as_me:$LINENO: checking for $ac_func" >&5
43056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43057if eval "test \"\${$as_ac_var+set}\" = set"; then
43058 echo $ECHO_N "(cached) $ECHO_C" >&6
43059else
43060 cat >conftest.$ac_ext <<_ACEOF
43061/* confdefs.h. */
43062_ACEOF
43063cat confdefs.h >>conftest.$ac_ext
43064cat >>conftest.$ac_ext <<_ACEOF
43065/* end confdefs.h. */
ac1cb8d3
VS
43066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43068#define $ac_func innocuous_$ac_func
43069
a848cd7e
SC
43070/* System header to define __stub macros and hopefully few prototypes,
43071 which can conflict with char $ac_func (); below.
43072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43073 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43074
a848cd7e
SC
43075#ifdef __STDC__
43076# include <limits.h>
43077#else
43078# include <assert.h>
43079#endif
ac1cb8d3
VS
43080
43081#undef $ac_func
43082
a848cd7e
SC
43083/* Override any gcc2 internal prototype to avoid an error. */
43084#ifdef __cplusplus
43085extern "C"
43086{
43087#endif
43088/* We use char because int might match the return type of a gcc2
43089 builtin and then its argument prototype would still apply. */
43090char $ac_func ();
43091/* The GNU C library defines this for functions which it implements
43092 to always fail with ENOSYS. Some functions are actually named
43093 something starting with __ and the normal name is an alias. */
43094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43095choke me
43096#else
43097char (*f) () = $ac_func;
43098#endif
43099#ifdef __cplusplus
43100}
43101#endif
43102
43103int
43104main ()
43105{
43106return f != $ac_func;
43107 ;
43108 return 0;
43109}
43110_ACEOF
43111rm -f conftest.$ac_objext conftest$ac_exeext
43112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43113 (eval $ac_link) 2>conftest.er1
a848cd7e 43114 ac_status=$?
ac1cb8d3
VS
43115 grep -v '^ *+' conftest.er1 >conftest.err
43116 rm -f conftest.er1
43117 cat conftest.err >&5
a848cd7e
SC
43118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43119 (exit $ac_status); } &&
5ff751d6 43120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43122 (eval $ac_try) 2>&5
43123 ac_status=$?
43124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43125 (exit $ac_status); }; } &&
43126 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43128 (eval $ac_try) 2>&5
43129 ac_status=$?
43130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43131 (exit $ac_status); }; }; then
43132 eval "$as_ac_var=yes"
43133else
43134 echo "$as_me: failed program was:" >&5
43135sed 's/^/| /' conftest.$ac_ext >&5
43136
43137eval "$as_ac_var=no"
43138fi
ac1cb8d3
VS
43139rm -f conftest.err conftest.$ac_objext \
43140 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43141fi
43142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43143echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43144if test `eval echo '${'$as_ac_var'}'` = yes; then
43145 cat >>confdefs.h <<_ACEOF
43146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43147_ACEOF
43148 have_floor=1
43149fi
43150done
43151
43152echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
43153echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
43154if test "$have_cos" = 1 -a "$have_floor" = 1; then
43155 echo "$as_me:$LINENO: result: yes" >&5
43156echo "${ECHO_T}yes" >&6
43157else
43158 echo "$as_me:$LINENO: result: no" >&5
43159echo "${ECHO_T}no" >&6
43160 LIBS="$LIBS -lm"
43161 # use different functions to avoid configure caching
43162 have_sin=0
43163 have_ceil=0
43164
43165for ac_func in sin
43166do
43167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43168echo "$as_me:$LINENO: checking for $ac_func" >&5
43169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43170if eval "test \"\${$as_ac_var+set}\" = set"; then
43171 echo $ECHO_N "(cached) $ECHO_C" >&6
43172else
43173 cat >conftest.$ac_ext <<_ACEOF
43174/* confdefs.h. */
43175_ACEOF
43176cat confdefs.h >>conftest.$ac_ext
43177cat >>conftest.$ac_ext <<_ACEOF
43178/* end confdefs.h. */
ac1cb8d3
VS
43179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43181#define $ac_func innocuous_$ac_func
43182
a848cd7e
SC
43183/* System header to define __stub macros and hopefully few prototypes,
43184 which can conflict with char $ac_func (); below.
43185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43186 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43187
a848cd7e
SC
43188#ifdef __STDC__
43189# include <limits.h>
43190#else
43191# include <assert.h>
43192#endif
ac1cb8d3
VS
43193
43194#undef $ac_func
43195
a848cd7e
SC
43196/* Override any gcc2 internal prototype to avoid an error. */
43197#ifdef __cplusplus
43198extern "C"
43199{
43200#endif
43201/* We use char because int might match the return type of a gcc2
43202 builtin and then its argument prototype would still apply. */
43203char $ac_func ();
43204/* The GNU C library defines this for functions which it implements
43205 to always fail with ENOSYS. Some functions are actually named
43206 something starting with __ and the normal name is an alias. */
43207#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43208choke me
43209#else
43210char (*f) () = $ac_func;
43211#endif
43212#ifdef __cplusplus
43213}
43214#endif
43215
43216int
43217main ()
43218{
43219return f != $ac_func;
43220 ;
43221 return 0;
43222}
43223_ACEOF
43224rm -f conftest.$ac_objext conftest$ac_exeext
43225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43226 (eval $ac_link) 2>conftest.er1
a848cd7e 43227 ac_status=$?
ac1cb8d3
VS
43228 grep -v '^ *+' conftest.er1 >conftest.err
43229 rm -f conftest.er1
43230 cat conftest.err >&5
a848cd7e
SC
43231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43232 (exit $ac_status); } &&
5ff751d6 43233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43235 (eval $ac_try) 2>&5
43236 ac_status=$?
43237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43238 (exit $ac_status); }; } &&
43239 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43241 (eval $ac_try) 2>&5
43242 ac_status=$?
43243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43244 (exit $ac_status); }; }; then
43245 eval "$as_ac_var=yes"
43246else
43247 echo "$as_me: failed program was:" >&5
43248sed 's/^/| /' conftest.$ac_ext >&5
43249
43250eval "$as_ac_var=no"
43251fi
ac1cb8d3
VS
43252rm -f conftest.err conftest.$ac_objext \
43253 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43254fi
43255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43256echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43257if test `eval echo '${'$as_ac_var'}'` = yes; then
43258 cat >>confdefs.h <<_ACEOF
43259#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43260_ACEOF
43261 have_sin=1
43262fi
43263done
43264
43265
43266for ac_func in ceil
43267do
43268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43269echo "$as_me:$LINENO: checking for $ac_func" >&5
43270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43271if eval "test \"\${$as_ac_var+set}\" = set"; then
43272 echo $ECHO_N "(cached) $ECHO_C" >&6
43273else
43274 cat >conftest.$ac_ext <<_ACEOF
43275/* confdefs.h. */
43276_ACEOF
43277cat confdefs.h >>conftest.$ac_ext
43278cat >>conftest.$ac_ext <<_ACEOF
43279/* end confdefs.h. */
ac1cb8d3
VS
43280/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43282#define $ac_func innocuous_$ac_func
43283
a848cd7e
SC
43284/* System header to define __stub macros and hopefully few prototypes,
43285 which can conflict with char $ac_func (); below.
43286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43287 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43288
a848cd7e
SC
43289#ifdef __STDC__
43290# include <limits.h>
43291#else
43292# include <assert.h>
43293#endif
ac1cb8d3
VS
43294
43295#undef $ac_func
43296
a848cd7e
SC
43297/* Override any gcc2 internal prototype to avoid an error. */
43298#ifdef __cplusplus
43299extern "C"
43300{
43301#endif
43302/* We use char because int might match the return type of a gcc2
43303 builtin and then its argument prototype would still apply. */
43304char $ac_func ();
43305/* The GNU C library defines this for functions which it implements
43306 to always fail with ENOSYS. Some functions are actually named
43307 something starting with __ and the normal name is an alias. */
43308#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43309choke me
43310#else
43311char (*f) () = $ac_func;
43312#endif
43313#ifdef __cplusplus
43314}
43315#endif
43316
43317int
43318main ()
43319{
43320return f != $ac_func;
43321 ;
43322 return 0;
43323}
43324_ACEOF
43325rm -f conftest.$ac_objext conftest$ac_exeext
43326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43327 (eval $ac_link) 2>conftest.er1
a848cd7e 43328 ac_status=$?
ac1cb8d3
VS
43329 grep -v '^ *+' conftest.er1 >conftest.err
43330 rm -f conftest.er1
43331 cat conftest.err >&5
a848cd7e
SC
43332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43333 (exit $ac_status); } &&
5ff751d6 43334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43336 (eval $ac_try) 2>&5
43337 ac_status=$?
43338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43339 (exit $ac_status); }; } &&
43340 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43342 (eval $ac_try) 2>&5
43343 ac_status=$?
43344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43345 (exit $ac_status); }; }; then
43346 eval "$as_ac_var=yes"
43347else
43348 echo "$as_me: failed program was:" >&5
43349sed 's/^/| /' conftest.$ac_ext >&5
43350
43351eval "$as_ac_var=no"
43352fi
ac1cb8d3
VS
43353rm -f conftest.err conftest.$ac_objext \
43354 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43355fi
43356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43357echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43358if test `eval echo '${'$as_ac_var'}'` = yes; then
43359 cat >>confdefs.h <<_ACEOF
43360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43361_ACEOF
43362 have_ceil=1
43363fi
43364done
43365
43366 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
43367echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
43368 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
43369 echo "$as_me:$LINENO: result: yes" >&5
43370echo "${ECHO_T}yes" >&6
43371 else
43372 echo "$as_me:$LINENO: result: no" >&5
43373echo "${ECHO_T}no" >&6
43374 # not sure we should warn the user, crash, etc.
43375 fi
43376fi
43377
43378if test "$wxUSE_GUI" = "yes"; then
43379
43380
8bce5cda
MW
43381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
43382 dynamic erase event exec font image minimal mobile \
43383 mobile/wxedit mobile/styles propsize render \
43384 richedit rotate shaped vscroll widgets"
a848cd7e
SC
43385
43386 if test "$wxUSE_MONOLITHIC" != "yes"; then
43387 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
43388 fi
0b78747f 43389 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
43390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
43391 if test "$wxUSE_UNIVERSAL" != "yes"; then
43392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
43393 fi
43394 fi
43395 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
43396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 43397 fi
a848cd7e
SC
43398else
43399 SAMPLES_SUBDIRS="console"
43400fi
43401
43402
48f625bc 43403if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
43404 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
43405elif test "$GCC" = yes ; then
43406 CWARNINGS="-Wall -Wundef"
43407fi
43408
48f625bc 43409if test "x$INTELCXX" = "xyes" ; then
7f47faf4 43410 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
43411elif test "$GXX" = yes ; then
43412 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 43413fi
a848cd7e 43414
a848cd7e 43415
5ff751d6
VZ
43416WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
43417WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
43418
43419
43420CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $CPPFLAGS \
bc6ee4ae
VZ
43421 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
43422 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE`
5ff751d6 43423
8aeeb05c 43424C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
5ff751d6
VZ
43425CFLAGS=`echo $WXCONFIG_CFLAGS $CFLAGS $CWARNINGS $C_AND_CXX_FLAGS`
43426CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXFLAGS $C_AND_CXX_FLAGS`
43427
43428WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
43429
a848cd7e 43430
95986553
DE
43431if test "x$MWCC" = "xyes"; then
43432
43433 CC="$CC -cwd source -I-"
43434 CXX="$CXX -cwd source -I-"
43435fi
43436
a848cd7e 43437
0c3c69fc 43438LIBS=`echo $LIBS`
a848cd7e
SC
43439EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
43440EXTRALIBS_XML="$EXPAT_LINK"
43441EXTRALIBS_HTML="$MSPACK_LINK"
43442EXTRALIBS_ODBC="$ODBC_LINK"
43443if test "$wxUSE_GUI" = "yes"; then
2e350179 43444 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
43445fi
43446if test "$wxUSE_OPENGL" = "yes"; then
43447 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
43448fi
43449
8aeeb05c 43450LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 43451
5ff751d6 43452WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
43453
43454if test "$wxUSE_REGEX" = "builtin" ; then
74802184 43455 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
43456fi
43457if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 43458 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
43459fi
43460if test "$wxUSE_ODBC" = "builtin" ; then
74802184 43461 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
43462fi
43463if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 43464 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
43465fi
43466if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 43467 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
43468fi
43469if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 43470 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
43471fi
43472if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 43473 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
43474fi
43475
43476for i in $wxconfig_3rdparty ; do
5ff751d6 43477 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
43478done
43479
43480
43481if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
43482 WXUNIV=1
43483else
43484 WXUNIV=0
43485fi
43486
43487
43488
43489
43490
43491
43492
43493
43494
43495if test $wxUSE_MONOLITHIC = "yes" ; then
43496 MONOLITHIC=1
43497else
43498 MONOLITHIC=0
43499fi
43500
43501if test $wxUSE_PLUGINS = "yes" ; then
43502 USE_PLUGINS=1
43503else
43504 USE_PLUGINS=0
43505fi
43506
43507if test $wxUSE_ODBC != "no" ; then
43508 USE_ODBC=1
43509else
43510 USE_ODBC=0
43511fi
43512
16358932
VZ
43513if test "$wxUSE_DEBUGREPORT" = "yes" ; then
43514 USE_QA=1
43515else
43516 USE_QA=0
43517fi
43518
a848cd7e
SC
43519if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
43520 OFFICIAL_BUILD=1
43521else
43522 OFFICIAL_BUILD=0
43523fi
43524
43525
43526
43527
43528
43529
43530
43531
43532
43533
43534
43535
43536
43537
43538
43539
43540
43541
43542
ceec2216 43543
d1c38808 43544
a848cd7e
SC
43545
43546
43547TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
43548
43549
43550
43551
43552
43553
43554
43555
4d4ff94c
VZ
43556case "$TOOLKIT" in
43557 GTK)
43558 TOOLKIT_USER="GTK+"
43559 if test "$WXGTK20" = 1; then
43560 TOOLKIT_USER="$TOOLKIT_USER 2"
43561 fi
9a8f0513 43562 ;;
4d4ff94c
VZ
43563
43564 *)
43565 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 43566 ;;
4d4ff94c 43567esac
a848cd7e 43568
fb00f58d
JS
43569if test "$wxUSE_WINE" = "yes"; then
43570 BAKEFILE_FORCE_PLATFORM=win32
43571fi
43572
9a8f0513 43573
1e9e8aba
DE
43574
43575
a848cd7e
SC
43576 if test "x$BAKEFILE_HOST" = "x"; then
43577 BAKEFILE_HOST="${host}"
43578 fi
43579
43580 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
43581
43582 if test -n "$ac_tool_prefix"; then
43583 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
43584set dummy ${ac_tool_prefix}ranlib; ac_word=$2
43585echo "$as_me:$LINENO: checking for $ac_word" >&5
43586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43587if test "${ac_cv_prog_RANLIB+set}" = set; then
43588 echo $ECHO_N "(cached) $ECHO_C" >&6
43589else
43590 if test -n "$RANLIB"; then
43591 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
43592else
43593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43594for as_dir in $PATH
43595do
43596 IFS=$as_save_IFS
43597 test -z "$as_dir" && as_dir=.
43598 for ac_exec_ext in '' $ac_executable_extensions; do
43599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43600 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
43601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43602 break 2
43603 fi
43604done
43605done
43606
43607fi
43608fi
43609RANLIB=$ac_cv_prog_RANLIB
43610if test -n "$RANLIB"; then
43611 echo "$as_me:$LINENO: result: $RANLIB" >&5
43612echo "${ECHO_T}$RANLIB" >&6
43613else
43614 echo "$as_me:$LINENO: result: no" >&5
43615echo "${ECHO_T}no" >&6
43616fi
43617
43618fi
43619if test -z "$ac_cv_prog_RANLIB"; then
43620 ac_ct_RANLIB=$RANLIB
43621 # Extract the first word of "ranlib", so it can be a program name with args.
43622set dummy ranlib; ac_word=$2
43623echo "$as_me:$LINENO: checking for $ac_word" >&5
43624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43625if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
43626 echo $ECHO_N "(cached) $ECHO_C" >&6
43627else
43628 if test -n "$ac_ct_RANLIB"; then
43629 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
43630else
43631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43632for as_dir in $PATH
43633do
43634 IFS=$as_save_IFS
43635 test -z "$as_dir" && as_dir=.
43636 for ac_exec_ext in '' $ac_executable_extensions; do
43637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43638 ac_cv_prog_ac_ct_RANLIB="ranlib"
43639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43640 break 2
43641 fi
43642done
43643done
43644
43645 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
43646fi
43647fi
43648ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
43649if test -n "$ac_ct_RANLIB"; then
43650 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
43651echo "${ECHO_T}$ac_ct_RANLIB" >&6
43652else
43653 echo "$as_me:$LINENO: result: no" >&5
43654echo "${ECHO_T}no" >&6
43655fi
43656
43657 RANLIB=$ac_ct_RANLIB
43658else
43659 RANLIB="$ac_cv_prog_RANLIB"
43660fi
43661
43662 # Find a good install program. We prefer a C program (faster),
43663# so one script is as good as another. But avoid the broken or
43664# incompatible versions:
43665# SysV /etc/install, /usr/sbin/install
43666# SunOS /usr/etc/install
43667# IRIX /sbin/install
43668# AIX /bin/install
43669# AmigaOS /C/install, which installs bootblocks on floppy discs
43670# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
43671# AFS /usr/afsws/bin/install, which mishandles nonexistent args
43672# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 43673# OS/2's system install, which has a completely different semantic
a848cd7e
SC
43674# ./install, which can be erroneously created by make from ./install.sh.
43675echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
43676echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
43677if test -z "$INSTALL"; then
43678if test "${ac_cv_path_install+set}" = set; then
43679 echo $ECHO_N "(cached) $ECHO_C" >&6
43680else
43681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43682for as_dir in $PATH
43683do
43684 IFS=$as_save_IFS
43685 test -z "$as_dir" && as_dir=.
43686 # Account for people who put trailing slashes in PATH elements.
43687case $as_dir/ in
43688 ./ | .// | /cC/* | \
43689 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 43690 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
43691 /usr/ucb/* ) ;;
43692 *)
43693 # OSF1 and SCO ODT 3.0 have their own names for install.
43694 # Don't use installbsd from OSF since it installs stuff as root
43695 # by default.
43696 for ac_prog in ginstall scoinst install; do
43697 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
43698 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
43699 if test $ac_prog = install &&
43700 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43701 # AIX install. It has an incompatible calling convention.
43702 :
43703 elif test $ac_prog = install &&
43704 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43705 # program-specific install script used by HP pwplus--don't use.
43706 :
43707 else
43708 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
43709 break 3
43710 fi
43711 fi
a848cd7e
SC
43712 done
43713 done
43714 ;;
43715esac
43716done
43717
43718
43719fi
43720 if test "${ac_cv_path_install+set}" = set; then
43721 INSTALL=$ac_cv_path_install
43722 else
43723 # As a last resort, use the slow shell script. We don't cache a
43724 # path for INSTALL within a source directory, because that will
43725 # break other packages using the cache if that directory is
43726 # removed, or if the path is relative.
43727 INSTALL=$ac_install_sh
43728 fi
43729fi
43730echo "$as_me:$LINENO: result: $INSTALL" >&5
43731echo "${ECHO_T}$INSTALL" >&6
43732
43733# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
43734# It thinks the first close brace ends the variable substitution.
43735test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
43736
43737test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
43738
43739test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
43740
43741 echo "$as_me:$LINENO: checking whether ln -s works" >&5
43742echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
43743LN_S=$as_ln_s
43744if test "$LN_S" = "ln -s"; then
43745 echo "$as_me:$LINENO: result: yes" >&5
43746echo "${ECHO_T}yes" >&6
43747else
43748 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
43749echo "${ECHO_T}no, using $LN_S" >&6
43750fi
43751
43752
43753 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43754echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43755set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43756if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43757 echo $ECHO_N "(cached) $ECHO_C" >&6
43758else
43759 cat >conftest.make <<\_ACEOF
43760all:
43761 @echo 'ac_maketemp="$(MAKE)"'
43762_ACEOF
43763# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43764eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43765if test -n "$ac_maketemp"; then
43766 eval ac_cv_prog_make_${ac_make}_set=yes
43767else
43768 eval ac_cv_prog_make_${ac_make}_set=no
43769fi
43770rm -f conftest.make
43771fi
43772if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43773 echo "$as_me:$LINENO: result: yes" >&5
43774echo "${ECHO_T}yes" >&6
43775 SET_MAKE=
43776else
43777 echo "$as_me:$LINENO: result: no" >&5
43778echo "${ECHO_T}no" >&6
43779 SET_MAKE="MAKE=${MAKE-make}"
43780fi
43781
43782
43783
43784 if test -n "$ac_tool_prefix"; then
43785 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
43786set dummy ${ac_tool_prefix}ar; ac_word=$2
43787echo "$as_me:$LINENO: checking for $ac_word" >&5
43788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43789if test "${ac_cv_prog_AR+set}" = set; then
43790 echo $ECHO_N "(cached) $ECHO_C" >&6
43791else
43792 if test -n "$AR"; then
43793 ac_cv_prog_AR="$AR" # Let the user override the test.
43794else
43795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43796for as_dir in $PATH
43797do
43798 IFS=$as_save_IFS
43799 test -z "$as_dir" && as_dir=.
43800 for ac_exec_ext in '' $ac_executable_extensions; do
43801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43802 ac_cv_prog_AR="${ac_tool_prefix}ar"
43803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43804 break 2
43805 fi
43806done
43807done
43808
43809fi
43810fi
43811AR=$ac_cv_prog_AR
43812if test -n "$AR"; then
43813 echo "$as_me:$LINENO: result: $AR" >&5
43814echo "${ECHO_T}$AR" >&6
43815else
43816 echo "$as_me:$LINENO: result: no" >&5
43817echo "${ECHO_T}no" >&6
43818fi
43819
43820fi
43821if test -z "$ac_cv_prog_AR"; then
43822 ac_ct_AR=$AR
43823 # Extract the first word of "ar", so it can be a program name with args.
43824set dummy ar; ac_word=$2
43825echo "$as_me:$LINENO: checking for $ac_word" >&5
43826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43827if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43828 echo $ECHO_N "(cached) $ECHO_C" >&6
43829else
43830 if test -n "$ac_ct_AR"; then
43831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43832else
43833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43834for as_dir in $PATH
43835do
43836 IFS=$as_save_IFS
43837 test -z "$as_dir" && as_dir=.
43838 for ac_exec_ext in '' $ac_executable_extensions; do
43839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43840 ac_cv_prog_ac_ct_AR="ar"
43841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43842 break 2
43843 fi
43844done
43845done
43846
43847 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
43848fi
43849fi
43850ac_ct_AR=$ac_cv_prog_ac_ct_AR
43851if test -n "$ac_ct_AR"; then
43852 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43853echo "${ECHO_T}$ac_ct_AR" >&6
43854else
43855 echo "$as_me:$LINENO: result: no" >&5
43856echo "${ECHO_T}no" >&6
43857fi
43858
43859 AR=$ac_ct_AR
43860else
43861 AR="$ac_cv_prog_AR"
43862fi
43863
43864 if test -n "$ac_tool_prefix"; then
43865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43866set dummy ${ac_tool_prefix}strip; ac_word=$2
43867echo "$as_me:$LINENO: checking for $ac_word" >&5
43868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43869if test "${ac_cv_prog_STRIP+set}" = set; then
43870 echo $ECHO_N "(cached) $ECHO_C" >&6
43871else
43872 if test -n "$STRIP"; then
43873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43874else
43875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43876for as_dir in $PATH
43877do
43878 IFS=$as_save_IFS
43879 test -z "$as_dir" && as_dir=.
43880 for ac_exec_ext in '' $ac_executable_extensions; do
43881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43884 break 2
43885 fi
43886done
43887done
43888
43889fi
43890fi
43891STRIP=$ac_cv_prog_STRIP
43892if test -n "$STRIP"; then
43893 echo "$as_me:$LINENO: result: $STRIP" >&5
43894echo "${ECHO_T}$STRIP" >&6
43895else
43896 echo "$as_me:$LINENO: result: no" >&5
43897echo "${ECHO_T}no" >&6
43898fi
43899
43900fi
43901if test -z "$ac_cv_prog_STRIP"; then
43902 ac_ct_STRIP=$STRIP
43903 # Extract the first word of "strip", so it can be a program name with args.
43904set dummy strip; ac_word=$2
43905echo "$as_me:$LINENO: checking for $ac_word" >&5
43906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43907if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43908 echo $ECHO_N "(cached) $ECHO_C" >&6
43909else
43910 if test -n "$ac_ct_STRIP"; then
43911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43912else
43913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43914for as_dir in $PATH
43915do
43916 IFS=$as_save_IFS
43917 test -z "$as_dir" && as_dir=.
43918 for ac_exec_ext in '' $ac_executable_extensions; do
43919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43920 ac_cv_prog_ac_ct_STRIP="strip"
43921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43922 break 2
43923 fi
43924done
43925done
43926
43927 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
43928fi
43929fi
43930ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
43931if test -n "$ac_ct_STRIP"; then
43932 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
43933echo "${ECHO_T}$ac_ct_STRIP" >&6
43934else
43935 echo "$as_me:$LINENO: result: no" >&5
43936echo "${ECHO_T}no" >&6
43937fi
43938
43939 STRIP=$ac_ct_STRIP
43940else
43941 STRIP="$ac_cv_prog_STRIP"
43942fi
43943
43944 if test -n "$ac_tool_prefix"; then
43945 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
43946set dummy ${ac_tool_prefix}nm; ac_word=$2
43947echo "$as_me:$LINENO: checking for $ac_word" >&5
43948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43949if test "${ac_cv_prog_NM+set}" = set; then
43950 echo $ECHO_N "(cached) $ECHO_C" >&6
43951else
43952 if test -n "$NM"; then
43953 ac_cv_prog_NM="$NM" # Let the user override the test.
43954else
43955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43956for as_dir in $PATH
43957do
43958 IFS=$as_save_IFS
43959 test -z "$as_dir" && as_dir=.
43960 for ac_exec_ext in '' $ac_executable_extensions; do
43961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43962 ac_cv_prog_NM="${ac_tool_prefix}nm"
43963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43964 break 2
43965 fi
43966done
43967done
43968
43969fi
43970fi
43971NM=$ac_cv_prog_NM
43972if test -n "$NM"; then
43973 echo "$as_me:$LINENO: result: $NM" >&5
43974echo "${ECHO_T}$NM" >&6
43975else
43976 echo "$as_me:$LINENO: result: no" >&5
43977echo "${ECHO_T}no" >&6
43978fi
43979
43980fi
43981if test -z "$ac_cv_prog_NM"; then
43982 ac_ct_NM=$NM
43983 # Extract the first word of "nm", so it can be a program name with args.
43984set dummy nm; ac_word=$2
43985echo "$as_me:$LINENO: checking for $ac_word" >&5
43986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43987if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
43988 echo $ECHO_N "(cached) $ECHO_C" >&6
43989else
43990 if test -n "$ac_ct_NM"; then
43991 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
43992else
43993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43994for as_dir in $PATH
43995do
43996 IFS=$as_save_IFS
43997 test -z "$as_dir" && as_dir=.
43998 for ac_exec_ext in '' $ac_executable_extensions; do
43999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44000 ac_cv_prog_ac_ct_NM="nm"
44001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44002 break 2
44003 fi
44004done
44005done
44006
44007 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
44008fi
44009fi
44010ac_ct_NM=$ac_cv_prog_ac_ct_NM
44011if test -n "$ac_ct_NM"; then
44012 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
44013echo "${ECHO_T}$ac_ct_NM" >&6
44014else
44015 echo "$as_me:$LINENO: result: no" >&5
44016echo "${ECHO_T}no" >&6
44017fi
44018
44019 NM=$ac_ct_NM
44020else
44021 NM="$ac_cv_prog_NM"
44022fi
44023
44024
44025 case ${BAKEFILE_HOST} in
44026 *-hp-hpux* )
1e9e8aba 44027 INSTALL_DIR="mkdir -p"
a848cd7e
SC
44028 ;;
44029 *) INSTALL_DIR="$INSTALL -d"
44030 ;;
44031 esac
44032
44033
44034 LDFLAGS_GUI=
44035 case ${BAKEFILE_HOST} in
44036 *-*-cygwin* | *-*-mingw32* )
44037 LDFLAGS_GUI="-mwindows"
44038 esac
44039
44040
44041 fi
44042
44043 echo "$as_me:$LINENO: checking if make is GNU make" >&5
44044echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
44045if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
44046 echo $ECHO_N "(cached) $ECHO_C" >&6
44047else
44048
44049 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
44050 egrep -s GNU > /dev/null); then
44051 bakefile_cv_prog_makeisgnu="yes"
44052 else
44053 bakefile_cv_prog_makeisgnu="no"
44054 fi
44055
44056fi
44057echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
44058echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
44059
44060 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
44061 IF_GNU_MAKE=""
44062 else
44063 IF_GNU_MAKE="#"
44064 fi
44065
44066
44067
44068 PLATFORM_UNIX=0
44069 PLATFORM_WIN32=0
44070 PLATFORM_MSDOS=0
44071 PLATFORM_MAC=0
1e9e8aba 44072 PLATFORM_MACOS=0
a848cd7e
SC
44073 PLATFORM_MACOSX=0
44074 PLATFORM_OS2=0
1e9e8aba 44075 PLATFORM_BEOS=0
a848cd7e
SC
44076
44077 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
44078 case "${BAKEFILE_HOST}" in
810b94f0 44079 *-*-mingw32* )
a848cd7e
SC
44080 PLATFORM_WIN32=1
44081 ;;
44082 *-pc-msdosdjgpp )
44083 PLATFORM_MSDOS=1
44084 ;;
44085 *-pc-os2_emx | *-pc-os2-emx )
44086 PLATFORM_OS2=1
44087 ;;
47bd5406 44088 *-*-darwin* )
a848cd7e
SC
44089 PLATFORM_MAC=1
44090 PLATFORM_MACOSX=1
44091 ;;
1e9e8aba
DE
44092 *-*-beos* )
44093 PLATFORM_BEOS=1
44094 ;;
44095 powerpc-apple-macos* )
44096 PLATFORM_MAC=1
44097 PLATFORM_MACOS=1
44098 ;;
a848cd7e
SC
44099 * )
44100 PLATFORM_UNIX=1
44101 ;;
44102 esac
44103 else
44104 case "$BAKEFILE_FORCE_PLATFORM" in
44105 win32 )
44106 PLATFORM_WIN32=1
44107 ;;
44108 msdos )
44109 PLATFORM_MSDOS=1
44110 ;;
44111 os2 )
44112 PLATFORM_OS2=1
44113 ;;
44114 darwin )
44115 PLATFORM_MAC=1
44116 PLATFORM_MACOSX=1
44117 ;;
44118 unix )
44119 PLATFORM_UNIX=1
44120 ;;
1e9e8aba
DE
44121 beos )
44122 PLATFORM_BEOS=1
44123 ;;
a848cd7e
SC
44124 * )
44125 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
44126echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
44127 { (exit 1); exit 1; }; }
44128 ;;
44129 esac
44130 fi
44131
44132
44133
44134
44135
44136
44137
44138
44139
1e9e8aba
DE
44140
44141
a848cd7e
SC
44142 # Check whether --enable-omf or --disable-omf was given.
44143if test "${enable_omf+set}" = set; then
44144 enableval="$enable_omf"
44145 bk_os2_use_omf="$enableval"
44146fi;
44147
44148 case "${BAKEFILE_HOST}" in
44149 *-*-darwin* )
47bd5406
VZ
44150 if test "x$GCC" = "xyes"; then
44151 CFLAGS="$CFLAGS -fno-common"
44152 CXXFLAGS="$CXXFLAGS -fno-common"
44153 fi
44154 if test "x$XLCC" = "xyes"; then
44155 CFLAGS="$CFLAGS -qnocommon"
44156 CXXFLAGS="$CXXFLAGS -qnocommon"
44157 fi
a848cd7e
SC
44158 ;;
44159
44160 *-pc-os2_emx | *-pc-os2-emx )
44161 if test "x$bk_os2_use_omf" = "xyes" ; then
44162 AR=emxomfar
44163 RANLIB=:
44164 LDFLAGS="-Zomf $LDFLAGS"
44165 CFLAGS="-Zomf $CFLAGS"
44166 CXXFLAGS="-Zomf $CXXFLAGS"
44167 OS2_LIBEXT="lib"
44168 else
44169 OS2_LIBEXT="a"
44170 fi
44171 ;;
1e9e8aba
DE
44172
44173 i*86-*-beos* )
44174 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
44175 ;;
a848cd7e
SC
44176 esac
44177
44178
44179 SO_SUFFIX="so"
44180 SO_SUFFIX_MODULE="so"
44181 EXEEXT=""
44182 LIBPREFIX="lib"
44183 LIBEXT=".a"
44184 DLLPREFIX="lib"
44185 DLLPREFIX_MODULE=""
44186 DLLIMP_SUFFIX=""
810b94f0 44187 dlldir="$libdir"
a848cd7e
SC
44188
44189 case "${BAKEFILE_HOST}" in
44190 *-hp-hpux* )
44191 SO_SUFFIX="sl"
44192 SO_SUFFIX_MODULE="sl"
44193 ;;
44194 *-*-aix* )
44195 SO_SUFFIX="a"
44196 SO_SUFFIX_MODULE="a"
44197 ;;
810b94f0
MW
44198 *-*-cygwin* )
44199 SO_SUFFIX="dll"
44200 SO_SUFFIX_MODULE="dll"
44201 DLLIMP_SUFFIX="dll.a"
44202 EXEEXT=".exe"
44203 DLLPREFIX="cyg"
44204 dlldir="$bindir"
44205 ;;
44206 *-*-mingw32* )
a848cd7e
SC
44207 SO_SUFFIX="dll"
44208 SO_SUFFIX_MODULE="dll"
44209 DLLIMP_SUFFIX="dll.a"
44210 EXEEXT=".exe"
44211 DLLPREFIX=""
810b94f0 44212 dlldir="$bindir"
a848cd7e
SC
44213 ;;
44214 *-pc-msdosdjgpp )
44215 EXEEXT=".exe"
44216 DLLPREFIX=""
810b94f0 44217 dlldir="$bindir"
a848cd7e
SC
44218 ;;
44219 *-pc-os2_emx | *-pc-os2-emx )
44220 SO_SUFFIX="dll"
44221 SO_SUFFIX_MODULE="dll"
44222 DLLIMP_SUFFIX=$OS2_LIBEXT
44223 EXEEXT=".exe"
44224 DLLPREFIX=""
44225 LIBPREFIX=""
44226 LIBEXT=".$OS2_LIBEXT"
810b94f0 44227 dlldir="$bindir"
a848cd7e 44228 ;;
47bd5406 44229 *-*-darwin* )
a848cd7e
SC
44230 SO_SUFFIX="dylib"
44231 SO_SUFFIX_MODULE="bundle"
44232 ;;
44233 esac
44234
44235 if test "x$DLLIMP_SUFFIX" = "x" ; then
44236 DLLIMP_SUFFIX="$SO_SUFFIX"
44237 fi
44238
44239
44240
44241
44242
44243
44244
44245
44246
44247
44248
810b94f0 44249
1e9e8aba
DE
44250 PIC_FLAG=""
44251 if test "x$GCC" = "xyes"; then
a848cd7e
SC
44252 PIC_FLAG="-fPIC"
44253 fi
44254
1e9e8aba
DE
44255 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
44256 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 44257 WINDOWS_IMPLIB=0
1e9e8aba 44258
a848cd7e
SC
44259 case "${BAKEFILE_HOST}" in
44260 *-hp-hpux* )
1e9e8aba 44261 if test "x$GCC" != "xyes"; then
a848cd7e
SC
44262 LDFLAGS="$LDFLAGS -L/usr/lib"
44263
44264 SHARED_LD_CC="${CC} -b -o"
44265 SHARED_LD_CXX="${CXX} -b -o"
44266 PIC_FLAG="+Z"
44267 fi
44268 ;;
44269
44270 *-*-linux* )
44271 if test "x$GCC" != "xyes"; then
44272 echo "$as_me:$LINENO: checking for Intel compiler" >&5
44273echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
44274if test "${bakefile_cv_prog_icc+set}" = set; then
44275 echo $ECHO_N "(cached) $ECHO_C" >&6
44276else
44277
44278 cat >conftest.$ac_ext <<_ACEOF
44279/* confdefs.h. */
44280_ACEOF
44281cat confdefs.h >>conftest.$ac_ext
44282cat >>conftest.$ac_ext <<_ACEOF
44283/* end confdefs.h. */
44284
44285int
44286main ()
44287{
44288
44289 #ifndef __INTEL_COMPILER
44290 #error Not icc
44291 #endif
44292
44293 ;
44294 return 0;
44295}
44296_ACEOF
44297rm -f conftest.$ac_objext
44298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44299 (eval $ac_compile) 2>conftest.er1
a848cd7e 44300 ac_status=$?
ac1cb8d3
VS
44301 grep -v '^ *+' conftest.er1 >conftest.err
44302 rm -f conftest.er1
44303 cat conftest.err >&5
a848cd7e
SC
44304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44305 (exit $ac_status); } &&
5ff751d6 44306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44308 (eval $ac_try) 2>&5
44309 ac_status=$?
44310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44311 (exit $ac_status); }; } &&
44312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44314 (eval $ac_try) 2>&5
44315 ac_status=$?
44316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44317 (exit $ac_status); }; }; then
44318 bakefile_cv_prog_icc=yes
44319else
44320 echo "$as_me: failed program was:" >&5
44321sed 's/^/| /' conftest.$ac_ext >&5
44322
44323bakefile_cv_prog_icc=no
44324
44325fi
ac1cb8d3 44326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44327
44328fi
44329echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
44330echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
44331 if test "$bakefile_cv_prog_icc" = "yes"; then
44332 PIC_FLAG="-KPIC"
44333 fi
44334 fi
44335 ;;
44336
44337 *-*-solaris2* )
44338 if test "x$GCC" != xyes ; then
44339 SHARED_LD_CC="${CC} -G -o"
44340 SHARED_LD_CXX="${CXX} -G -o"
44341 PIC_FLAG="-KPIC"
44342 fi
44343 ;;
44344
44345 *-*-darwin* )
44346
473276a9
VS
44347D='$'
44348cat <<EOF >shared-ld-sh
a848cd7e
SC
44349#!/bin/sh
44350#-----------------------------------------------------------------------------
44351#-- Name: distrib/mac/shared-ld-sh
44352#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
44353#-- Author: Gilles Depeyrot
44354#-- Copyright: (c) 2002 Gilles Depeyrot
44355#-- Licence: any use permitted
44356#-----------------------------------------------------------------------------
44357
44358verbose=0
44359args=""
44360objects=""
44361linking_flag="-dynamiclib"
810b94f0 44362ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 44363
473276a9
VS
44364while test ${D}# -gt 0; do
44365 case ${D}1 in
a848cd7e
SC
44366
44367 -v)
44368 verbose=1
44369 ;;
44370
44371 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
44372 # collect these options and values
473276a9 44373 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
44374 shift
44375 ;;
44376
810b94f0
MW
44377 -s|-Wl,*)
44378 # collect these load args
44379 ldargs="${D}{ldargs} ${D}1"
2113bc77 44380 ;;
810b94f0
MW
44381
44382 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 44383 # collect these options
473276a9 44384 args="${D}{args} ${D}1"
a848cd7e
SC
44385 ;;
44386
44387 -dynamiclib|-bundle)
473276a9 44388 linking_flag="${D}1"
a848cd7e
SC
44389 ;;
44390
44391 -*)
473276a9 44392 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
44393 exit 1
44394 ;;
44395
44396 *.o | *.a | *.dylib)
44397 # collect object files
473276a9 44398 objects="${D}{objects} ${D}1"
a848cd7e
SC
44399 ;;
44400
44401 *)
473276a9 44402 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
44403 exit 1
44404 ;;
44405
44406 esac
44407 shift
44408done
44409
810b94f0
MW
44410status=0
44411
a848cd7e
SC
44412#
44413# Link one module containing all the others
44414#
473276a9 44415if test ${D}{verbose} = 1; then
810b94f0 44416 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 44417fi
810b94f0 44418c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 44419status=${D}?
a848cd7e
SC
44420
44421#
810b94f0
MW
44422# Link the shared library from the single module created, but only if the
44423# previous command didn't fail:
a848cd7e 44424#
810b94f0
MW
44425if test ${D}{status} = 0; then
44426 if test ${D}{verbose} = 1; then
44427 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
44428 fi
44429 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
44430 status=${D}?
a848cd7e
SC
44431fi
44432
44433#
44434# Remove intermediate module
44435#
473276a9 44436rm -f master.${D}${D}.o
a848cd7e 44437
810b94f0 44438exit ${D}status
a848cd7e 44439EOF
473276a9 44440
583d6b4b
VZ
44441 chmod +x shared-ld-sh
44442
44443 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
44444 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
44445
44446
44447 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
44448echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
44449if test "${bakefile_cv_gcc31+set}" = set; then
44450 echo $ECHO_N "(cached) $ECHO_C" >&6
44451else
44452
44453 cat >conftest.$ac_ext <<_ACEOF
44454/* confdefs.h. */
44455_ACEOF
44456cat confdefs.h >>conftest.$ac_ext
44457cat >>conftest.$ac_ext <<_ACEOF
44458/* end confdefs.h. */
44459
44460int
44461main ()
44462{
44463
44464 #if (__GNUC__ < 3) || \
44465 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
44466 #error old gcc
44467 #endif
a848cd7e 44468
583d6b4b
VZ
44469 ;
44470 return 0;
44471}
44472_ACEOF
44473rm -f conftest.$ac_objext
44474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44475 (eval $ac_compile) 2>conftest.er1
44476 ac_status=$?
44477 grep -v '^ *+' conftest.er1 >conftest.err
44478 rm -f conftest.er1
44479 cat conftest.err >&5
44480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44481 (exit $ac_status); } &&
5ff751d6 44482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
44483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44484 (eval $ac_try) 2>&5
44485 ac_status=$?
44486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44487 (exit $ac_status); }; } &&
44488 { ac_try='test -s conftest.$ac_objext'
44489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44490 (eval $ac_try) 2>&5
44491 ac_status=$?
44492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44493 (exit $ac_status); }; }; then
44494
44495 bakefile_cv_gcc31=yes
44496
44497else
44498 echo "$as_me: failed program was:" >&5
44499sed 's/^/| /' conftest.$ac_ext >&5
44500
44501
44502 bakefile_cv_gcc31=no
44503
44504
44505fi
44506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44507
44508fi
44509echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
44510echo "${ECHO_T}$bakefile_cv_gcc31" >&6
44511 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 44512 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 44513 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
44514 else
44515 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 44516 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
44517 fi
44518
47bd5406
VZ
44519 if test "x$GCC" == "xyes"; then
44520 PIC_FLAG="-dynamic -fPIC"
44521 fi
44522 if test "x$XLCC" = "xyes"; then
44523 PIC_FLAG="-dynamic -DPIC"
44524 fi
a848cd7e
SC
44525 ;;
44526
44527 *-*-aix* )
f6b50c59 44528 if test "x$GCC" = "xyes"; then
583d6b4b 44529 PIC_FLAG=""
f6b50c59 44530
583d6b4b
VZ
44531 case "${BAKEFILE_HOST}" in
44532 *-*-aix5* )
44533 LD_EXPFULL="-Wl,-bexpfull"
44534 ;;
44535 esac
f6b50c59 44536
583d6b4b
VZ
44537 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
44538 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
44539 else
44540 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
44541set dummy makeC++SharedLib; ac_word=$2
44542echo "$as_me:$LINENO: checking for $ac_word" >&5
44543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44544if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
44545 echo $ECHO_N "(cached) $ECHO_C" >&6
44546else
44547 if test -n "$AIX_CXX_LD"; then
44548 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
44549else
44550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44551for as_dir in $PATH
44552do
44553 IFS=$as_save_IFS
44554 test -z "$as_dir" && as_dir=.
44555 for ac_exec_ext in '' $ac_executable_extensions; do
44556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44557 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
44558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44559 break 2
44560 fi
44561done
44562done
44563
44564 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
44565fi
44566fi
44567AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
44568if test -n "$AIX_CXX_LD"; then
44569 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
44570echo "${ECHO_T}$AIX_CXX_LD" >&6
44571else
44572 echo "$as_me:$LINENO: result: no" >&5
44573echo "${ECHO_T}no" >&6
44574fi
44575
f6b50c59 44576 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
44577 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
44578 fi
44579 ;;
44580
44581 *-*-beos* )
1e9e8aba
DE
44582 SHARED_LD_CC="${LD} -nostart -o"
44583 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
44584 ;;
44585
44586 *-*-irix* )
44587 if test "x$GCC" != "xyes"; then
44588 PIC_FLAG="-KPIC"
44589 fi
44590 ;;
44591
44592 *-*-cygwin* | *-*-mingw32* )
44593 PIC_FLAG=""
1e9e8aba
DE
44594 SHARED_LD_CC="\$(CC) -shared -o"
44595 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 44596 WINDOWS_IMPLIB=1
a848cd7e
SC
44597 ;;
44598
44599 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
44600 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44601 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 44602 PIC_FLAG=""
473276a9
VS
44603
44604D='$'
44605cat <<EOF >dllar.sh
44606#!/bin/sh
44607#
44608# dllar - a tool to build both a .dll and an .a file
44609# from a set of object (.o) files for EMX/OS2.
44610#
44611# Written by Andrew Zabolotny, bit@freya.etu.ru
44612# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
44613#
44614# This script will accept a set of files on the command line.
44615# All the public symbols from the .o files will be exported into
44616# a .DEF file, then linker will be run (through gcc) against them to
44617# build a shared library consisting of all given .o files. All libraries
44618# (.a) will be first decompressed into component .o files then act as
44619# described above. You can optionally give a description (-d "description")
44620# which will be put into .DLL. To see the list of accepted options (as well
44621# as command-line format) simply run this program without options. The .DLL
44622# is built to be imported by name (there is no guarantee that new versions
44623# of the library you build will have same ordinals for same symbols).
44624#
44625# dllar is free software; you can redistribute it and/or modify
44626# it under the terms of the GNU General Public License as published by
44627# the Free Software Foundation; either version 2, or (at your option)
44628# any later version.
44629#
44630# dllar is distributed in the hope that it will be useful,
44631# but WITHOUT ANY WARRANTY; without even the implied warranty of
44632# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44633# GNU General Public License for more details.
44634#
44635# You should have received a copy of the GNU General Public License
44636# along with dllar; see the file COPYING. If not, write to the Free
44637# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
44638# 02111-1307, USA.
44639
44640# To successfuly run this program you will need:
44641# - Current drive should have LFN support (HPFS, ext2, network, etc)
44642# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
44643# - gcc
44644# (used to build the .dll)
44645# - emxexp
44646# (used to create .def file from .o files)
44647# - emximp
44648# (used to create .a file from .def file)
44649# - GNU text utilites (cat, sort, uniq)
44650# used to process emxexp output
44651# - GNU file utilities (mv, rm)
44652# - GNU sed
44653# - lxlite (optional, see flag below)
44654# (used for general .dll cleanup)
44655#
44656
44657flag_USE_LXLITE=1;
44658
44659#
44660# helper functions
44661# basnam, variant of basename, which does _not_ remove the path, _iff_
44662# second argument (suffix to remove) is given
44663basnam(){
44664 case ${D}# in
44665 1)
1e9e8aba 44666 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
44667 ;;
44668 2)
44669 echo ${D}1 | sed 's/'${D}2'${D}//'
44670 ;;
44671 *)
44672 echo "error in basnam ${D}*"
44673 exit 8
44674 ;;
44675 esac
44676}
44677
44678# Cleanup temporary files and output
44679CleanUp() {
44680 cd ${D}curDir
44681 for i in ${D}inputFiles ; do
44682 case ${D}i in
44683 *!)
44684 rm -rf \`basnam ${D}i !\`
44685 ;;
44686 *)
44687 ;;
44688 esac
44689 done
44690
44691 # Kill result in case of failure as there is just to many stupid make/nmake
44692 # things out there which doesn't do this.
1e9e8aba 44693 if [ ${D}# -eq 0 ]; then
473276a9
VS
44694 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
44695 fi
44696}
44697
44698# Print usage and exit script with rc=1.
44699PrintHelp() {
b1d22ded
DE
44700 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
44701 echo ' [-name-mangler-script script.sh]'
44702 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
44703 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
44704 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 44705 echo ' [*.o] [*.a]'
473276a9
VS
44706 echo '*> "output_file" should have no extension.'
44707 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
44708 echo ' The import library name is derived from this and is set to "name".a,'
44709 echo ' unless overridden by -import'
44710 echo '*> "importlib_name" should have no extension.'
44711 echo ' If it has the .o, or .a extension, it is automatically removed.'
44712 echo ' This name is used as the import library name and may be longer and'
44713 echo ' more descriptive than the DLL name which has to follow the old '
44714 echo ' 8.3 convention of FAT.'
b1d22ded
DE
44715 echo '*> "script.sh may be given to override the output_file name by a'
44716 echo ' different name. It is mainly useful if the regular make process'
44717 echo ' of some package does not take into account OS/2 restriction of'
44718 echo ' DLL name lengths. It takes the importlib name as input and is'
44719 echo ' supposed to procude a shorter name as output. The script should'
44720 echo ' expect to get importlib_name without extension and should produce'
44721 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
44722 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
44723 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
44724 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
44725 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
44726 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
44727 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
44728 echo ' If the last character of a symbol is "*", all symbols beginning'
44729 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 44730 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 44731 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 44732 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 44733 echo ' C runtime DLLs.'
b1d22ded 44734 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
44735 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
44736 echo ' unchanged to GCC at the end of command line.'
44737 echo '*> If you create a DLL from a library and you do not specify -o,'
44738 echo ' the basename for DLL and import library will be set to library name,'
44739 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
44740 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
44741 echo ' library will be renamed into gcc_s.a.'
44742 echo '--------'
44743 echo 'Example:'
44744 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
44745 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
44746 CleanUp
44747 exit 1
44748}
44749
44750# Execute a command.
44751# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
44752# @Uses Whatever CleanUp() uses.
44753doCommand() {
44754 echo "${D}*"
44755 eval ${D}*
44756 rcCmd=${D}?
44757
1e9e8aba 44758 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
44759 echo "command failed, exit code="${D}rcCmd
44760 CleanUp
44761 exit ${D}rcCmd
44762 fi
44763}
44764
44765# main routine
44766# setup globals
44767cmdLine=${D}*
44768outFile=""
44769outimpFile=""
44770inputFiles=""
b1d22ded 44771renameScript=""
473276a9
VS
44772description=""
44773CC=gcc.exe
44774CFLAGS="-s -Zcrtdll"
44775EXTRA_CFLAGS=""
44776EXPORT_BY_ORDINALS=0
44777exclude_symbols=""
44778library_flags=""
44779curDir=\`pwd\`
44780curDirS=curDir
44781case ${D}curDirS in
44782*/)
44783 ;;
44784*)
44785 curDirS=${D}{curDirS}"/"
44786 ;;
44787esac
44788# Parse commandline
44789libsToLink=0
b1d22ded 44790omfLinking=0
1e9e8aba 44791while [ ${D}1 ]; do
473276a9
VS
44792 case ${D}1 in
44793 -ord*)
44794 EXPORT_BY_ORDINALS=1;
44795 ;;
44796 -o*)
44797 shift
44798 outFile=${D}1
44799 ;;
44800 -i*)
44801 shift
44802 outimpFile=${D}1
44803 ;;
b1d22ded
DE
44804 -name-mangler-script)
44805 shift
44806 renameScript=${D}1
44807 ;;
473276a9
VS
44808 -d*)
44809 shift
44810 description=${D}1
44811 ;;
44812 -f*)
44813 shift
44814 CFLAGS=${D}1
44815 ;;
44816 -c*)
44817 shift
44818 CC=${D}1
44819 ;;
44820 -h*)
44821 PrintHelp
44822 ;;
44823 -ex*)
44824 shift
44825 exclude_symbols=${D}{exclude_symbols}${D}1" "
44826 ;;
44827 -libf*)
44828 shift
44829 library_flags=${D}{library_flags}${D}1" "
44830 ;;
44831 -nocrt*)
44832 CFLAGS="-s"
44833 ;;
44834 -nolxl*)
44835 flag_USE_LXLITE=0
44836 ;;
44837 -* | /*)
44838 case ${D}1 in
44839 -L* | -l*)
44840 libsToLink=1
44841 ;;
b1d22ded
DE
44842 -Zomf)
44843 omfLinking=1
44844 ;;
473276a9
VS
44845 *)
44846 ;;
44847 esac
44848 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44849 ;;
b1d22ded
DE
44850 *.dll)
44851 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
44852 if [ ${D}omfLinking -eq 1 ]; then
44853 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
44854 else
44855 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
44856 fi
44857 ;;
473276a9
VS
44858 *)
44859 found=0;
1e9e8aba 44860 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
44861 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44862 else
44863 for file in ${D}1 ; do
1e9e8aba 44864 if [ -f ${D}file ]; then
473276a9
VS
44865 inputFiles="${D}{inputFiles} ${D}file"
44866 found=1
44867 fi
44868 done
1e9e8aba 44869 if [ ${D}found -eq 0 ]; then
473276a9
VS
44870 echo "ERROR: No file(s) found: "${D}1
44871 exit 8
44872 fi
44873 fi
44874 ;;
44875 esac
44876 shift
44877done # iterate cmdline words
44878
44879#
1e9e8aba 44880if [ -z "${D}inputFiles" ]; then
473276a9
VS
44881 echo "dllar: no input files"
44882 PrintHelp
44883fi
44884
44885# Now extract all .o files from .a files
44886newInputFiles=""
44887for file in ${D}inputFiles ; do
44888 case ${D}file in
44889 *.a | *.lib)
44890 case ${D}file in
44891 *.a)
44892 suffix=".a"
44893 AR="ar"
44894 ;;
44895 *.lib)
44896 suffix=".lib"
44897 AR="emxomfar"
44898 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
44899 ;;
44900 *)
44901 ;;
44902 esac
44903 dirname=\`basnam ${D}file ${D}suffix\`"_%"
44904 mkdir ${D}dirname
1e9e8aba 44905 if [ ${D}? -ne 0 ]; then
473276a9
VS
44906 echo "Failed to create subdirectory ./${D}dirname"
44907 CleanUp
44908 exit 8;
44909 fi
44910 # Append '!' to indicate archive
44911 newInputFiles="${D}newInputFiles ${D}{dirname}!"
44912 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
44913 cd ${D}curDir
44914 found=0;
44915 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 44916 if [ -f ${D}subfile ]; then
473276a9 44917 found=1
1e9e8aba 44918 if [ -s ${D}subfile ]; then
473276a9
VS
44919 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
44920 newInputFiles="${D}newInputFiles ${D}subfile"
44921 fi
44922 fi
44923 done
1e9e8aba
DE
44924 if [ ${D}found -eq 0 ]; then
44925 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
44926 fi
44927 ;;
44928 *)
44929 newInputFiles="${D}{newInputFiles} ${D}file"
44930 ;;
44931 esac
44932done
44933inputFiles="${D}newInputFiles"
44934
44935# Output filename(s).
44936do_backup=0;
1e9e8aba 44937if [ -z ${D}outFile ]; then
473276a9
VS
44938 do_backup=1;
44939 set outFile ${D}inputFiles; outFile=${D}2
44940fi
44941
44942# If it is an archive, remove the '!' and the '_%' suffixes
44943case ${D}outFile in
44944*_%!)
44945 outFile=\`basnam ${D}outFile _%!\`
44946 ;;
44947*)
44948 ;;
44949esac
44950case ${D}outFile in
44951*.dll)
44952 outFile=\`basnam ${D}outFile .dll\`
44953 ;;
44954*.DLL)
44955 outFile=\`basnam ${D}outFile .DLL\`
44956 ;;
44957*.o)
44958 outFile=\`basnam ${D}outFile .o\`
44959 ;;
44960*.obj)
44961 outFile=\`basnam ${D}outFile .obj\`
44962 ;;
44963*.a)
44964 outFile=\`basnam ${D}outFile .a\`
44965 ;;
44966*.lib)
44967 outFile=\`basnam ${D}outFile .lib\`
44968 ;;
44969*)
44970 ;;
44971esac
44972case ${D}outimpFile in
44973*.a)
44974 outimpFile=\`basnam ${D}outimpFile .a\`
44975 ;;
44976*.lib)
44977 outimpFile=\`basnam ${D}outimpFile .lib\`
44978 ;;
44979*)
44980 ;;
44981esac
1e9e8aba 44982if [ -z ${D}outimpFile ]; then
473276a9
VS
44983 outimpFile=${D}outFile
44984fi
44985defFile="${D}{outFile}.def"
44986arcFile="${D}{outimpFile}.a"
44987arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
44988
44989#create ${D}dllFile as something matching 8.3 restrictions,
44990if [ -z ${D}renameScript ] ; then
44991 dllFile="${D}outFile"
44992else
44993 dllFile=\`${D}renameScript ${D}outimpFile\`
44994fi
473276a9 44995
1e9e8aba
DE
44996if [ ${D}do_backup -ne 0 ] ; then
44997 if [ -f ${D}arcFile ] ; then
473276a9
VS
44998 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
44999 fi
1e9e8aba 45000 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
45001 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
45002 fi
45003fi
45004
45005# Extract public symbols from all the object files.
45006tmpdefFile=${D}{defFile}_%
45007rm -f ${D}tmpdefFile
45008for file in ${D}inputFiles ; do
45009 case ${D}file in
45010 *!)
45011 ;;
45012 *)
45013 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
45014 ;;
45015 esac
45016done
45017
45018# Create the def file.
45019rm -f ${D}defFile
45020echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
45021dllFile="${D}{dllFile}.dll"
45022if [ ! -z ${D}description ]; then
1e9e8aba 45023 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
45024fi
45025echo "EXPORTS" >> ${D}defFile
45026
45027doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
45028grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
45029
45030# Checks if the export is ok or not.
45031for word in ${D}exclude_symbols; do
45032 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
45033 mv ${D}{tmpdefFile}% ${D}tmpdefFile
45034done
45035
45036
1e9e8aba
DE
45037if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
45038 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
45039 sed '
45040 N
45041 : loop
1e9e8aba 45042 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
45043 t loop
45044 ' > ${D}{tmpdefFile}%
45045 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
45046else
45047 rm -f ${D}{tmpdefFile}%
45048fi
45049cat ${D}tmpdefFile >> ${D}defFile
45050rm -f ${D}tmpdefFile
45051
45052# Do linking, create implib, and apply lxlite.
45053gccCmdl="";
45054for file in ${D}inputFiles ; do
45055 case ${D}file in
45056 *!)
45057 ;;
45058 *)
45059 gccCmdl="${D}gccCmdl ${D}file"
45060 ;;
45061 esac
45062done
45063doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
45064touch "${D}{outFile}.dll"
45065
45066doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 45067if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 45068 add_flags="";
1e9e8aba 45069 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
45070 add_flags="-ynd"
45071 fi
45072 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
45073fi
45074doCommand "emxomf -s -l ${D}arcFile"
45075
45076# Successful exit.
45077CleanUp 1
45078exit 0
45079EOF
45080
45081 chmod +x dllar.sh
a848cd7e
SC
45082 ;;
45083
1e9e8aba 45084 powerpc-apple-macos* | \
0ad5d837 45085 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
45086 *-*-sunos4* | \
45087 *-*-osf* | \
45088 *-*-dgux5* | \
47a7e797
MW
45089 *-*-sysv5* | \
45090 *-pc-msdosdjgpp )
a848cd7e
SC
45091 ;;
45092
45093 *)
45094 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
45095echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
45096 { (exit 1); exit 1; }; }
45097 esac
45098
2057db16
VS
45099 if test "x$PIC_FLAG" != "x" ; then
45100 PIC_FLAG="$PIC_FLAG -DPIC"
45101 fi
45102
a848cd7e
SC
45103 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
45104 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
45105 fi
45106 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
45107 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
45108 fi
45109
45110
45111
45112
45113
45114
45115
45116
810b94f0 45117
a848cd7e
SC
45118 USE_SOVERSION=0
45119 USE_SOVERLINUX=0
45120 USE_SOVERSOLARIS=0
810b94f0 45121 USE_SOVERCYGWIN=0
a848cd7e
SC
45122 USE_SOSYMLINKS=0
45123 USE_MACVERSION=0
45124 SONAME_FLAG=
45125
45126 case "${BAKEFILE_HOST}" in
0ad5d837 45127 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
45128 SONAME_FLAG="-Wl,-soname,"
45129 USE_SOVERSION=1
45130 USE_SOVERLINUX=1
45131 USE_SOSYMLINKS=1
45132 ;;
45133
a848cd7e
SC
45134 *-*-solaris2* )
45135 SONAME_FLAG="-h "
45136 USE_SOVERSION=1
45137 USE_SOVERSOLARIS=1
45138 USE_SOSYMLINKS=1
45139 ;;
45140
45141 *-*-darwin* )
45142 USE_MACVERSION=1
45143 USE_SOVERSION=1
45144 USE_SOSYMLINKS=1
45145 ;;
810b94f0
MW
45146
45147 *-*-cygwin* )
45148 USE_SOVERSION=1
45149 USE_SOVERCYGWIN=1
45150 ;;
a848cd7e
SC
45151 esac
45152
45153
45154
45155
45156
45157
45158
45159
45160
810b94f0 45161
a848cd7e
SC
45162 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
45163echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 45164 DEPS_TRACKING=1
a848cd7e
SC
45165
45166 if test "x$GCC" = "xyes"; then
45167 DEPSMODE=gcc
a848cd7e 45168 case "${BAKEFILE_HOST}" in
47bd5406 45169 *-*-darwin* )
0ad5d837 45170 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
45171 ;;
45172 * )
0ad5d837 45173 DEPSFLAG="-MMD"
a848cd7e
SC
45174 ;;
45175 esac
45176 echo "$as_me:$LINENO: result: gcc" >&5
45177echo "${ECHO_T}gcc" >&6
b1d22ded 45178 elif test "x$MWCC" = "xyes"; then
81f90336 45179 DEPSMODE=mwcc
0ad5d837 45180 DEPSFLAG="-MM"
b1d22ded
DE
45181 echo "$as_me:$LINENO: result: mwcc" >&5
45182echo "${ECHO_T}mwcc" >&6
a9e5b1f0 45183 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
45184 DEPSMODE=unixcc
45185 DEPSFLAG="-xM1"
45186 echo "$as_me:$LINENO: result: Sun cc" >&5
45187echo "${ECHO_T}Sun cc" >&6
45188 elif test "x$SGICC" = "xyes"; then
45189 DEPSMODE=unixcc
45190 DEPSFLAG="-M"
45191 echo "$as_me:$LINENO: result: SGI cc" >&5
45192echo "${ECHO_T}SGI cc" >&6
3006edc0
VZ
45193 elif test "x$HPCC" = "xyes"; then
45194 DEPSMODE=unixcc
45195 DEPSFLAG="+make"
45196 echo "$as_me:$LINENO: result: HP cc" >&5
45197echo "${ECHO_T}HP cc" >&6
a1aa0349
VZ
45198 elif test "x$COMPAQCC" = "xyes"; then
45199 DEPSMODE=gcc
45200 DEPSFLAG="-MD"
45201 echo "$as_me:$LINENO: result: Compaq cc" >&5
45202echo "${ECHO_T}Compaq cc" >&6
a848cd7e 45203 else
3006edc0 45204 DEPS_TRACKING=0
a848cd7e
SC
45205 echo "$as_me:$LINENO: result: none" >&5
45206echo "${ECHO_T}none" >&6
45207 fi
45208
45209 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
45210
45211D='$'
45212cat <<EOF >bk-deps
a848cd7e
SC
45213#!/bin/sh
45214
45215# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45216# script. It is used to track C/C++ files dependencies in portable way.
45217#
45218# Permission is given to use this file in any way.
45219
473276a9 45220DEPSMODE=${DEPSMODE}
a848cd7e 45221DEPSDIR=.deps
0ad5d837 45222DEPSFLAG="${DEPSFLAG}"
a848cd7e 45223
473276a9 45224mkdir -p ${D}DEPSDIR
a848cd7e 45225
473276a9 45226if test ${D}DEPSMODE = gcc ; then
0ad5d837 45227 ${D}* ${D}{DEPSFLAG}
473276a9
VS
45228 status=${D}?
45229 if test ${D}{status} != 0 ; then
45230 exit ${D}{status}
a848cd7e
SC
45231 fi
45232 # move created file to the location we want it in:
473276a9
VS
45233 while test ${D}# -gt 0; do
45234 case "${D}1" in
a848cd7e
SC
45235 -o )
45236 shift
473276a9 45237 objfile=${D}1
a848cd7e
SC
45238 ;;
45239 -* )
45240 ;;
45241 * )
473276a9 45242 srcfile=${D}1
a848cd7e
SC
45243 ;;
45244 esac
45245 shift
45246 done
1e9e8aba
DE
45247 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
45248 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
45249 if test -f ${D}depfile ; then
45250 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45251 rm -f ${D}depfile
a848cd7e 45252 else
a1aa0349 45253 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 45254 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
45255 if test ! -f ${D}depfile ; then
45256 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
45257 depfile="${D}objfile.d"
45258 fi
473276a9
VS
45259 if test -f ${D}depfile ; then
45260 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45261 rm -f ${D}depfile
a848cd7e
SC
45262 fi
45263 fi
45264 exit 0
81f90336 45265elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 45266 ${D}* || exit ${D}?
81f90336
MW
45267 # Run mwcc again with -MM and redirect into the dep file we want
45268 # NOTE: We can't use shift here because we need ${D}* to be valid
45269 prevarg=
45270 for arg in ${D}* ; do
45271 if test "${D}prevarg" = "-o"; then
45272 objfile=${D}arg
45273 else
45274 case "${D}arg" in
45275 -* )
45276 ;;
45277 * )
45278 srcfile=${D}arg
45279 ;;
45280 esac
45281 fi
45282 prevarg="${D}arg"
45283 done
0ad5d837 45284 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 45285 exit 0
0ad5d837 45286elif test ${D}DEPSMODE = unixcc; then
f6b50c59 45287 ${D}* || exit ${D}?
a9e5b1f0
MW
45288 # Run compiler again with deps flag and redirect into the dep file.
45289 # It doesn't work if the '-o FILE' option is used, but without it the
45290 # dependency file will contain the wrong name for the object. So it is
45291 # removed from the command line, and the dep file is fixed with sed.
45292 cmd=""
45293 while test ${D}# -gt 0; do
45294 case "${D}1" in
45295 -o )
45296 shift
45297 objfile=${D}1
45298 ;;
45299 * )
45300 eval arg${D}#=\\${D}1
45301 cmd="${D}cmd \\${D}arg${D}#"
45302 ;;
45303 esac
45304 shift
45305 done
0ad5d837 45306 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 45307 exit 0
a848cd7e 45308else
473276a9
VS
45309 ${D}*
45310 exit ${D}?
a848cd7e
SC
45311fi
45312EOF
473276a9 45313
a848cd7e
SC
45314 chmod +x bk-deps
45315 fi
45316
45317
45318
45319
a848cd7e
SC
45320 case ${BAKEFILE_HOST} in
45321 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
45322 if test -n "$ac_tool_prefix"; then
45323 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
45324set dummy ${ac_tool_prefix}windres; ac_word=$2
45325echo "$as_me:$LINENO: checking for $ac_word" >&5
45326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45327if test "${ac_cv_prog_WINDRES+set}" = set; then
45328 echo $ECHO_N "(cached) $ECHO_C" >&6
45329else
45330 if test -n "$WINDRES"; then
45331 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
45332else
45333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45334for as_dir in $PATH
45335do
45336 IFS=$as_save_IFS
45337 test -z "$as_dir" && as_dir=.
45338 for ac_exec_ext in '' $ac_executable_extensions; do
45339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45340 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
45341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45342 break 2
45343 fi
45344done
45345done
45346
45347fi
45348fi
45349WINDRES=$ac_cv_prog_WINDRES
45350if test -n "$WINDRES"; then
45351 echo "$as_me:$LINENO: result: $WINDRES" >&5
45352echo "${ECHO_T}$WINDRES" >&6
45353else
45354 echo "$as_me:$LINENO: result: no" >&5
45355echo "${ECHO_T}no" >&6
45356fi
45357
45358fi
45359if test -z "$ac_cv_prog_WINDRES"; then
45360 ac_ct_WINDRES=$WINDRES
45361 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
45362set dummy windres; ac_word=$2
45363echo "$as_me:$LINENO: checking for $ac_word" >&5
45364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 45365if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
45366 echo $ECHO_N "(cached) $ECHO_C" >&6
45367else
8ced02f6
DE
45368 if test -n "$ac_ct_WINDRES"; then
45369 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
45370else
45371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45372for as_dir in $PATH
45373do
45374 IFS=$as_save_IFS
45375 test -z "$as_dir" && as_dir=.
45376 for ac_exec_ext in '' $ac_executable_extensions; do
45377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 45378 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
45379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45380 break 2
45381 fi
45382done
45383done
45384
a848cd7e
SC
45385fi
45386fi
8ced02f6
DE
45387ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
45388if test -n "$ac_ct_WINDRES"; then
45389 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
45390echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
45391else
45392 echo "$as_me:$LINENO: result: no" >&5
45393echo "${ECHO_T}no" >&6
45394fi
45395
8ced02f6
DE
45396 WINDRES=$ac_ct_WINDRES
45397else
45398 WINDRES="$ac_cv_prog_WINDRES"
45399fi
45400
a848cd7e
SC
45401 ;;
45402
1e9e8aba 45403 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
45404 # Extract the first word of "Rez", so it can be a program name with args.
45405set dummy Rez; ac_word=$2
45406echo "$as_me:$LINENO: checking for $ac_word" >&5
45407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 45408if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
45409 echo $ECHO_N "(cached) $ECHO_C" >&6
45410else
8ced02f6
DE
45411 if test -n "$REZ"; then
45412 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
45413else
45414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45415for as_dir in $PATH
45416do
45417 IFS=$as_save_IFS
45418 test -z "$as_dir" && as_dir=.
45419 for ac_exec_ext in '' $ac_executable_extensions; do
45420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 45421 ac_cv_prog_REZ="Rez"
a848cd7e
SC
45422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45423 break 2
45424 fi
45425done
45426done
45427
8ced02f6 45428 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
45429fi
45430fi
8ced02f6
DE
45431REZ=$ac_cv_prog_REZ
45432if test -n "$REZ"; then
45433 echo "$as_me:$LINENO: result: $REZ" >&5
45434echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
45435else
45436 echo "$as_me:$LINENO: result: no" >&5
45437echo "${ECHO_T}no" >&6
45438fi
45439
45440 # Extract the first word of "SetFile", so it can be a program name with args.
45441set dummy SetFile; ac_word=$2
45442echo "$as_me:$LINENO: checking for $ac_word" >&5
45443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45444if test "${ac_cv_prog_SETFILE+set}" = set; then
45445 echo $ECHO_N "(cached) $ECHO_C" >&6
45446else
45447 if test -n "$SETFILE"; then
45448 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
45449else
45450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45451for as_dir in $PATH
45452do
45453 IFS=$as_save_IFS
45454 test -z "$as_dir" && as_dir=.
45455 for ac_exec_ext in '' $ac_executable_extensions; do
45456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45457 ac_cv_prog_SETFILE="SetFile"
45458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45459 break 2
45460 fi
45461done
45462done
45463
45464 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
45465fi
45466fi
45467SETFILE=$ac_cv_prog_SETFILE
45468if test -n "$SETFILE"; then
45469 echo "$as_me:$LINENO: result: $SETFILE" >&5
45470echo "${ECHO_T}$SETFILE" >&6
45471else
45472 echo "$as_me:$LINENO: result: no" >&5
45473echo "${ECHO_T}no" >&6
45474fi
45475
45476 ;;
45477 esac
45478
45479
45480
45481
45482
8ced02f6 45483
c9469659 45484 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 45485
dcc1b6ad 45486
c9469659 45487BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 45488
646b6ec1 45489
74b84332 45490
a848cd7e
SC
45491 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
45492if test "${enable_precomp_headers+set}" = set; then
45493 enableval="$enable_precomp_headers"
45494 bk_use_pch="$enableval"
45495fi;
45496
45497 GCC_PCH=0
45498
5c60e845
MW
45499 case ${BAKEFILE_HOST} in
45500 *-*-cygwin* )
45501 bk_use_pch="no"
45502 ;;
45503 esac
45504
a848cd7e
SC
45505 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
45506 if test "x$GCC" = "xyes"; then
45507 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
45508echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
45509 cat >conftest.$ac_ext <<_ACEOF
45510/* confdefs.h. */
45511_ACEOF
45512cat confdefs.h >>conftest.$ac_ext
45513cat >>conftest.$ac_ext <<_ACEOF
45514/* end confdefs.h. */
45515
45516int
45517main ()
45518{
45519
45520 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
45521 #error "no pch support"
45522 #endif
45523 #if (__GNUC__ < 3)
45524 #error "no pch support"
45525 #endif
45526 #if (__GNUC__ == 3) && \
45527 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
45528 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
45529 #error "no pch support"
45530 #endif
45531
45532 ;
45533 return 0;
45534}
45535_ACEOF
45536rm -f conftest.$ac_objext
45537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45538 (eval $ac_compile) 2>conftest.er1
a848cd7e 45539 ac_status=$?
ac1cb8d3
VS
45540 grep -v '^ *+' conftest.er1 >conftest.err
45541 rm -f conftest.er1
45542 cat conftest.err >&5
a848cd7e
SC
45543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45544 (exit $ac_status); } &&
5ff751d6 45545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45547 (eval $ac_try) 2>&5
45548 ac_status=$?
45549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45550 (exit $ac_status); }; } &&
45551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45553 (eval $ac_try) 2>&5
45554 ac_status=$?
45555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45556 (exit $ac_status); }; }; then
45557
45558 echo "$as_me:$LINENO: result: yes" >&5
45559echo "${ECHO_T}yes" >&6
a848cd7e
SC
45560 GCC_PCH=1
45561
45562else
45563 echo "$as_me: failed program was:" >&5
45564sed 's/^/| /' conftest.$ac_ext >&5
45565
45566
45567 echo "$as_me:$LINENO: result: no" >&5
45568echo "${ECHO_T}no" >&6
45569
45570fi
ac1cb8d3 45571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45572 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
45573
45574D='$'
45575cat <<EOF >bk-make-pch
a848cd7e
SC
45576#!/bin/sh
45577
45578# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45579# script. It is used to generated precompiled headers.
45580#
45581# Permission is given to use this file in any way.
45582
1e9e8aba
DE
45583outfile="${D}{1}"
45584header="${D}{2}"
a848cd7e
SC
45585shift
45586shift
45587
45588compiler=
45589headerfile=
1e9e8aba
DE
45590while test ${D}{#} -gt 0; do
45591 case "${D}{1}" in
a848cd7e 45592 -I* )
1e9e8aba
DE
45593 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
45594 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
45595 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
45596 fi
45597 ;;
45598 esac
1e9e8aba 45599 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
45600 shift
45601done
45602
1e9e8aba
DE
45603if test "x${D}{headerfile}" = "x" ; then
45604 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 45605else
1e9e8aba
DE
45606 if test -f ${D}{outfile} ; then
45607 rm -f ${D}{outfile}
a848cd7e 45608 else
1e9e8aba 45609 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 45610 fi
1e9e8aba 45611 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
45612 mkdir -p .deps
45613 # can do this because gcc is >= 3.4:
1e9e8aba
DE
45614 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
45615 exit ${D}{?}
a848cd7e
SC
45616fi
45617EOF
1e9e8aba 45618
a848cd7e
SC
45619 chmod +x bk-make-pch
45620 fi
45621 fi
45622 fi
45623
45624
45625
a848cd7e
SC
45626 COND_BUILD_DEBUG="#"
45627 if test "x$BUILD" = "xdebug" ; then
45628 COND_BUILD_DEBUG=""
45629 fi
45630
45631 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
45632 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
45633 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
45634 fi
45635
45636 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
45637 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
45638 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
45639 fi
45640
45641 COND_BUILD_DEBUG_UNICODE_0="#"
45642 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
45643 COND_BUILD_DEBUG_UNICODE_0=""
45644 fi
45645
45646 COND_BUILD_DEBUG_UNICODE_1="#"
45647 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
45648 COND_BUILD_DEBUG_UNICODE_1=""
45649 fi
45650
45651 COND_BUILD_RELEASE="#"
45652 if test "x$BUILD" = "xrelease" ; then
45653 COND_BUILD_RELEASE=""
45654 fi
45655
45656 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
45657 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
45658 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
45659 fi
45660
45661 COND_BUILD_RELEASE_UNICODE_0="#"
45662 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
45663 COND_BUILD_RELEASE_UNICODE_0=""
45664 fi
45665
45666 COND_BUILD_RELEASE_UNICODE_1="#"
45667 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
45668 COND_BUILD_RELEASE_UNICODE_1=""
45669 fi
45670
45671 COND_DEBUG_FLAG_1="#"
45672 if test "x$DEBUG_FLAG" = "x1" ; then
45673 COND_DEBUG_FLAG_1=""
45674 fi
45675
45676 COND_DEBUG_INFO_0="#"
45677 if test "x$DEBUG_INFO" = "x0" ; then
45678 COND_DEBUG_INFO_0=""
45679 fi
45680
45681 COND_DEBUG_INFO_1="#"
45682 if test "x$DEBUG_INFO" = "x1" ; then
45683 COND_DEBUG_INFO_1=""
45684 fi
45685
45686 COND_DEPS_TRACKING_0="#"
45687 if test "x$DEPS_TRACKING" = "x0" ; then
45688 COND_DEPS_TRACKING_0=""
45689 fi
45690
45691 COND_DEPS_TRACKING_1="#"
45692 if test "x$DEPS_TRACKING" = "x1" ; then
45693 COND_DEPS_TRACKING_1=""
45694 fi
45695
45696 COND_GCC_PCH_1="#"
45697 if test "x$GCC_PCH" = "x1" ; then
45698 COND_GCC_PCH_1=""
45699 fi
45700
45701 COND_MONOLITHIC_0="#"
45702 if test "x$MONOLITHIC" = "x0" ; then
45703 COND_MONOLITHIC_0=""
45704 fi
45705
45706 COND_MONOLITHIC_0_SHARED_0="#"
45707 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
45708 COND_MONOLITHIC_0_SHARED_0=""
45709 fi
45710
45711 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
45712 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
45713 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
45714 fi
45715
90970d69
DE
45716 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
45717 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45718 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
45719 fi
45720
a848cd7e
SC
45721 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
45722 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45723 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
45724 fi
45725
6671c68b
VZ
45726 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
45727 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45728 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
45729 fi
45730
a848cd7e
SC
45731 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
45732 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
45733 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
45734 fi
45735
ceec2216
RL
45736 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
45737 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45738 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
45739 fi
45740
a848cd7e
SC
45741 COND_MONOLITHIC_0_SHARED_1="#"
45742 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
45743 COND_MONOLITHIC_0_SHARED_1=""
45744 fi
45745
45746 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
45747 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
45748 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
45749 fi
45750
90970d69
DE
45751 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
45752 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45753 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
45754 fi
45755
a848cd7e
SC
45756 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
45757 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45758 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
45759 fi
45760
6671c68b
VZ
45761 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
45762 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45763 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
45764 fi
45765
a848cd7e
SC
45766 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
45767 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
45768 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
45769 fi
45770
ceec2216
RL
45771 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
45772 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45773 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
45774 fi
45775
a848cd7e
SC
45776 COND_MONOLITHIC_0_USE_ODBC_1="#"
45777 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
45778 COND_MONOLITHIC_0_USE_ODBC_1=""
45779 fi
45780
45781 COND_MONOLITHIC_1="#"
45782 if test "x$MONOLITHIC" = "x1" ; then
45783 COND_MONOLITHIC_1=""
45784 fi
45785
45786 COND_MONOLITHIC_1_SHARED_0="#"
45787 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
45788 COND_MONOLITHIC_1_SHARED_0=""
45789 fi
45790
45791 COND_MONOLITHIC_1_SHARED_1="#"
45792 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
45793 COND_MONOLITHIC_1_SHARED_1=""
45794 fi
45795
45796 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
45797 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
45798 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
45799 fi
45800
45801 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
45802 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
45803 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
45804 fi
45805
eb730a0c
JS
45806 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
45807 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45808 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
45809 fi
45810
a848cd7e
SC
45811 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
45812 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45813 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
45814 fi
45815
45816 COND_PLATFORM_MACOSX_1="#"
45817 if test "x$PLATFORM_MACOSX" = "x1" ; then
45818 COND_PLATFORM_MACOSX_1=""
45819 fi
45820
a30f955f
VS
45821 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
45822 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
45823 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
45824 fi
45825
a848cd7e
SC
45826 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
45827 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
45828 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
45829 fi
45830
45831 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
45832 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
45833 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
45834 fi
45835
45836 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
45837 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
45838 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
45839 fi
45840
fc480dc1
DE
45841 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
45842 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45843 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
45844 fi
45845
1e9e8aba
DE
45846 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45847 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45848 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45849 fi
45850
ebee3cd0
VS
45851 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
45852 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
45853 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
45854 fi
45855
45856 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
45857 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
45858 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
45859 fi
45860
a848cd7e
SC
45861 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
45862 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
45863 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
45864 fi
45865
45866 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
45867 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45868 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
45869 fi
45870
b48a2016
DE
45871 COND_PLATFORM_MACOS_1="#"
45872 if test "x$PLATFORM_MACOS" = "x1" ; then
45873 COND_PLATFORM_MACOS_1=""
45874 fi
45875
083508af
MW
45876 COND_PLATFORM_MAC_1="#"
45877 if test "x$PLATFORM_MAC" = "x1" ; then
45878 COND_PLATFORM_MAC_1=""
45879 fi
45880
83d8eb47
MW
45881 COND_PLATFORM_MSDOS_1="#"
45882 if test "x$PLATFORM_MSDOS" = "x1" ; then
45883 COND_PLATFORM_MSDOS_1=""
45884 fi
45885
a848cd7e
SC
45886 COND_PLATFORM_OS2_1="#"
45887 if test "x$PLATFORM_OS2" = "x1" ; then
45888 COND_PLATFORM_OS2_1=""
45889 fi
45890
45891 COND_PLATFORM_UNIX_0="#"
45892 if test "x$PLATFORM_UNIX" = "x0" ; then
45893 COND_PLATFORM_UNIX_0=""
45894 fi
45895
45896 COND_PLATFORM_UNIX_1="#"
45897 if test "x$PLATFORM_UNIX" = "x1" ; then
45898 COND_PLATFORM_UNIX_1=""
45899 fi
45900
45901 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
45902 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
45903 COND_PLATFORM_UNIX_1_USE_GUI_1=""
45904 fi
45905
45906 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
45907 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
45908 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
45909 fi
45910
45911 COND_PLATFORM_WIN32_0="#"
45912 if test "x$PLATFORM_WIN32" = "x0" ; then
45913 COND_PLATFORM_WIN32_0=""
45914 fi
45915
45916 COND_PLATFORM_WIN32_1="#"
45917 if test "x$PLATFORM_WIN32" = "x1" ; then
45918 COND_PLATFORM_WIN32_1=""
45919 fi
45920
45921 COND_SHARED_0="#"
45922 if test "x$SHARED" = "x0" ; then
45923 COND_SHARED_0=""
45924 fi
45925
083508af
MW
45926 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
45927 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
45928 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
45929 fi
45930
45931 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
45932 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45933 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
45934 fi
45935
45936 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
45937 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
45938 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
45939 fi
45940
a848cd7e
SC
45941 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
45942 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45943 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
45944 fi
45945
45946 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45947 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45948 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45949 fi
45950
45951 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45952 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45953 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45954 fi
45955
45956 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45957 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45958 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45959 fi
45960
083508af
MW
45961 COND_SHARED_0_USE_XRC_1="#"
45962 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45963 COND_SHARED_0_USE_XRC_1=""
45964 fi
45965
a848cd7e
SC
45966 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
45967 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
45968 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
45969 fi
45970
45971 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
45972 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
45973 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
45974 fi
45975
45976 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
45977 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
45978 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
45979 fi
45980
45981 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
45982 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
45983 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
45984 fi
45985
45986 COND_SHARED_1="#"
45987 if test "x$SHARED" = "x1" ; then
45988 COND_SHARED_1=""
45989 fi
45990
45991 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
45992 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45993 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
45994 fi
45995
083508af
MW
45996 COND_SHARED_1_USE_XRC_1="#"
45997 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45998 COND_SHARED_1_USE_XRC_1=""
45999 fi
46000
a30f955f
VS
46001 COND_TOOLKIT_="#"
46002 if test "x$TOOLKIT" = "x" ; then
46003 COND_TOOLKIT_=""
46004 fi
46005
a848cd7e
SC
46006 COND_TOOLKIT_COCOA="#"
46007 if test "x$TOOLKIT" = "xCOCOA" ; then
46008 COND_TOOLKIT_COCOA=""
46009 fi
46010
a49baeab
DE
46011 COND_TOOLKIT_COCOA_USE_GUI_1="#"
46012 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
46013 COND_TOOLKIT_COCOA_USE_GUI_1=""
46014 fi
46015
a848cd7e
SC
46016 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
46017 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46018 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
46019 fi
46020
46021 COND_TOOLKIT_GTK="#"
46022 if test "x$TOOLKIT" = "xGTK" ; then
46023 COND_TOOLKIT_GTK=""
46024 fi
46025
46026 COND_TOOLKIT_GTK_USE_GUI_1="#"
46027 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
46028 COND_TOOLKIT_GTK_USE_GUI_1=""
46029 fi
46030
46031 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
46032 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46033 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
46034 fi
46035
46036 COND_TOOLKIT_MAC="#"
46037 if test "x$TOOLKIT" = "xMAC" ; then
46038 COND_TOOLKIT_MAC=""
46039 fi
46040
46041 COND_TOOLKIT_MAC_USE_GUI_1="#"
46042 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
46043 COND_TOOLKIT_MAC_USE_GUI_1=""
46044 fi
46045
46046 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
46047 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46048 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
46049 fi
46050
46051 COND_TOOLKIT_MGL="#"
46052 if test "x$TOOLKIT" = "xMGL" ; then
46053 COND_TOOLKIT_MGL=""
46054 fi
46055
46056 COND_TOOLKIT_MGL_USE_GUI_1="#"
46057 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
46058 COND_TOOLKIT_MGL_USE_GUI_1=""
46059 fi
46060
46061 COND_TOOLKIT_MOTIF="#"
46062 if test "x$TOOLKIT" = "xMOTIF" ; then
46063 COND_TOOLKIT_MOTIF=""
46064 fi
46065
46066 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
46067 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
46068 COND_TOOLKIT_MOTIF_USE_GUI_1=""
46069 fi
46070
46071 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
46072 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46073 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
46074 fi
46075
46076 COND_TOOLKIT_MSW="#"
46077 if test "x$TOOLKIT" = "xMSW" ; then
46078 COND_TOOLKIT_MSW=""
46079 fi
46080
46081 COND_TOOLKIT_MSW_USE_GUI_1="#"
46082 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
46083 COND_TOOLKIT_MSW_USE_GUI_1=""
46084 fi
46085
46086 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
46087 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46088 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
46089 fi
46090
0ee4059d
DE
46091 COND_TOOLKIT_MSW_WXUNIV_0="#"
46092 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
46093 COND_TOOLKIT_MSW_WXUNIV_0=""
46094 fi
46095
a848cd7e
SC
46096 COND_TOOLKIT_PM="#"
46097 if test "x$TOOLKIT" = "xPM" ; then
46098 COND_TOOLKIT_PM=""
46099 fi
46100
46101 COND_TOOLKIT_PM_USE_GUI_1="#"
46102 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
46103 COND_TOOLKIT_PM_USE_GUI_1=""
46104 fi
46105
46106 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
46107 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46108 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
46109 fi
46110
3fd9c298
DE
46111 COND_TOOLKIT_WINCE="#"
46112 if test "x$TOOLKIT" = "xWINCE" ; then
46113 COND_TOOLKIT_WINCE=""
46114 fi
46115
46116 COND_TOOLKIT_WINCE_USE_GUI_1="#"
46117 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
46118 COND_TOOLKIT_WINCE_USE_GUI_1=""
46119 fi
46120
46121 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
46122 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46123 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
46124 fi
46125
0ee4059d
DE
46126 COND_TOOLKIT_WINCE_WXUNIV_0="#"
46127 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
46128 COND_TOOLKIT_WINCE_WXUNIV_0=""
46129 fi
46130
a848cd7e
SC
46131 COND_TOOLKIT_X11="#"
46132 if test "x$TOOLKIT" = "xX11" ; then
46133 COND_TOOLKIT_X11=""
46134 fi
46135
46136 COND_TOOLKIT_X11_USE_GUI_1="#"
46137 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
46138 COND_TOOLKIT_X11_USE_GUI_1=""
46139 fi
46140
46141 COND_UNICODE_1="#"
46142 if test "x$UNICODE" = "x1" ; then
46143 COND_UNICODE_1=""
46144 fi
46145
46146 COND_USE_EXCEPTIONS_0="#"
46147 if test "x$USE_EXCEPTIONS" = "x0" ; then
46148 COND_USE_EXCEPTIONS_0=""
46149 fi
46150
46151 COND_USE_EXCEPTIONS_1="#"
46152 if test "x$USE_EXCEPTIONS" = "x1" ; then
46153 COND_USE_EXCEPTIONS_1=""
46154 fi
46155
46156 COND_USE_GUI_0="#"
46157 if test "x$USE_GUI" = "x0" ; then
46158 COND_USE_GUI_0=""
46159 fi
46160
46161 COND_USE_GUI_1="#"
46162 if test "x$USE_GUI" = "x1" ; then
46163 COND_USE_GUI_1=""
46164 fi
46165
46166 COND_USE_GUI_1_WXUNIV_0="#"
46167 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46168 COND_USE_GUI_1_WXUNIV_0=""
46169 fi
46170
46171 COND_USE_GUI_1_WXUNIV_1="#"
46172 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
46173 COND_USE_GUI_1_WXUNIV_1=""
46174 fi
46175
46176 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
46177 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46178 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
46179 fi
46180
46181 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
46182 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46183 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
46184 fi
46185
46186 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
46187 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46188 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
46189 fi
46190
083508af
MW
46191 COND_USE_ODBC_1="#"
46192 if test "x$USE_ODBC" = "x1" ; then
46193 COND_USE_ODBC_1=""
46194 fi
46195
46196 COND_USE_OPENGL_1="#"
46197 if test "x$USE_OPENGL" = "x1" ; then
46198 COND_USE_OPENGL_1=""
46199 fi
46200
a848cd7e
SC
46201 COND_USE_PLUGINS_0="#"
46202 if test "x$USE_PLUGINS" = "x0" ; then
46203 COND_USE_PLUGINS_0=""
46204 fi
46205
0b78747f
MW
46206 COND_USE_RTTI_0="#"
46207 if test "x$USE_RTTI" = "x0" ; then
46208 COND_USE_RTTI_0=""
46209 fi
46210
46211 COND_USE_RTTI_1="#"
46212 if test "x$USE_RTTI" = "x1" ; then
46213 COND_USE_RTTI_1=""
46214 fi
46215
a848cd7e
SC
46216 COND_USE_SOSYMLINKS_1="#"
46217 if test "x$USE_SOSYMLINKS" = "x1" ; then
46218 COND_USE_SOSYMLINKS_1=""
46219 fi
46220
eb730a0c
JS
46221 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
46222 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
46223 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
46224 fi
46225
a848cd7e
SC
46226 COND_USE_SOVERLINUX_1="#"
46227 if test "x$USE_SOVERLINUX" = "x1" ; then
46228 COND_USE_SOVERLINUX_1=""
46229 fi
46230
46231 COND_USE_SOVERSION_0="#"
46232 if test "x$USE_SOVERSION" = "x0" ; then
46233 COND_USE_SOVERSION_0=""
46234 fi
46235
46236 COND_USE_SOVERSOLARIS_1="#"
46237 if test "x$USE_SOVERSOLARIS" = "x1" ; then
46238 COND_USE_SOVERSOLARIS_1=""
46239 fi
46240
0b78747f
MW
46241 COND_USE_THREADS_0="#"
46242 if test "x$USE_THREADS" = "x0" ; then
46243 COND_USE_THREADS_0=""
46244 fi
46245
46246 COND_USE_THREADS_1="#"
46247 if test "x$USE_THREADS" = "x1" ; then
46248 COND_USE_THREADS_1=""
46249 fi
46250
a13a7f89
RL
46251 COND_USE_XRC_1="#"
46252 if test "x$USE_XRC" = "x1" ; then
46253 COND_USE_XRC_1=""
46254 fi
46255
eb730a0c
JS
46256 COND_WINDOWS_IMPLIB_1="#"
46257 if test "x$WINDOWS_IMPLIB" = "x1" ; then
46258 COND_WINDOWS_IMPLIB_1=""
46259 fi
46260
a848cd7e
SC
46261 COND_WITH_PLUGIN_SDL_1="#"
46262 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
46263 COND_WITH_PLUGIN_SDL_1=""
46264 fi
46265
1e6eb025
VZ
46266 COND_WXUNIV_0="#"
46267 if test "x$WXUNIV" = "x0" ; then
46268 COND_WXUNIV_0=""
46269 fi
46270
a848cd7e
SC
46271 COND_WXUNIV_1="#"
46272 if test "x$WXUNIV" = "x1" ; then
46273 COND_WXUNIV_1=""
46274 fi
46275
46276 COND_WXUSE_EXPAT_BUILTIN="#"
46277 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
46278 COND_WXUSE_EXPAT_BUILTIN=""
46279 fi
46280
46281 COND_WXUSE_LIBJPEG_BUILTIN="#"
46282 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46283 COND_WXUSE_LIBJPEG_BUILTIN=""
46284 fi
46285
46286 COND_WXUSE_LIBPNG_BUILTIN="#"
46287 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46288 COND_WXUSE_LIBPNG_BUILTIN=""
46289 fi
46290
46291 COND_WXUSE_LIBTIFF_BUILTIN="#"
46292 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46293 COND_WXUSE_LIBTIFF_BUILTIN=""
46294 fi
46295
46296 COND_WXUSE_ODBC_BUILTIN="#"
46297 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
46298 COND_WXUSE_ODBC_BUILTIN=""
46299 fi
46300
46301 COND_WXUSE_REGEX_BUILTIN="#"
46302 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
46303 COND_WXUSE_REGEX_BUILTIN=""
46304 fi
46305
46306 COND_WXUSE_ZLIB_BUILTIN="#"
46307 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
46308 COND_WXUSE_ZLIB_BUILTIN=""
46309 fi
46310
46311
46312
810b94f0
MW
46313 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
46314 { { 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
46315echo "$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;}
46316 { (exit 1); exit 1; }; }
46317 fi
46318
2057db16
VS
46319 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
46320 { { 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
46321echo "$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;}
46322 { (exit 1); exit 1; }; }
46323 fi
46324
a848cd7e 46325
ceec2216
RL
46326if test "$wxUSE_SHARED" = "yes"; then
46327
46328 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
46329 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
46330
5b674b9d
DE
46331 case "${host}" in
46332 *-pc-os2_emx | *-pc-os2-emx )
46333 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46334 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46335 cp -p ${srcdir}/src/os2/dllnames.sh .
46336 cp -p ${srcdir}/src/os2/dllar.sh .
46337 ;;
46338 esac
ceec2216
RL
46339else
46340
46341 EXE_LINKER="$CXX -o"
46342
46343fi
69120ee4
VZ
46344if test "$wxUSE_OMF" = "yes"; then
46345 case "${host}" in
46346 *-pc-os2_emx | *-pc-os2-emx )
46347 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
46348 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46349 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46350 ;;
46351 esac
46352fi
a848cd7e 46353
c08ebc62 46354if test $GCC_PCH = 1 ; then
254e8e29 46355 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 46356fi
a848cd7e 46357
5ff751d6 46358WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
8ced02f6 46359WXCONFIG_RESCOMP="$WINDRES $WXCONFIG_RESFLAGS"
a848cd7e
SC
46360
46361SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
46362
46363
46364
46365
46366
46367
46368
46369
46370
46371
46372
46373
46374
46375
46376
46377
46378
46379
46380
46381
46382
46383
46384
46385
46386
46387
46388
46389
46390
46391
46392
46393
46394
46395
46396
46397
46398
46399
46400
46401
46402
46403
a848cd7e
SC
46404
46405
46406
46407
46408
46409
46410
46411
46412
46413
46414
46415
a848cd7e
SC
46416
46417
ddd14b14 46418
370d2fd7 46419
8ced02f6 46420
a848cd7e
SC
46421
46422
46423echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46424echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46425set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46426if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46427 echo $ECHO_N "(cached) $ECHO_C" >&6
46428else
46429 cat >conftest.make <<\_ACEOF
46430all:
46431 @echo 'ac_maketemp="$(MAKE)"'
46432_ACEOF
46433# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46434eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46435if test -n "$ac_maketemp"; then
46436 eval ac_cv_prog_make_${ac_make}_set=yes
46437else
46438 eval ac_cv_prog_make_${ac_make}_set=no
46439fi
46440rm -f conftest.make
46441fi
46442if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46443 echo "$as_me:$LINENO: result: yes" >&5
46444echo "${ECHO_T}yes" >&6
46445 SET_MAKE=
46446else
46447 echo "$as_me:$LINENO: result: no" >&5
46448echo "${ECHO_T}no" >&6
46449 SET_MAKE="MAKE=${MAKE-make}"
46450fi
46451
46452
a848cd7e 46453
ceec2216
RL
46454 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
46455
a848cd7e 46456
5c60e845
MW
46457if test "$USE_WIN32" = 1; then
46458 ac_config_commands="$ac_config_commands
46459 rcdefs.h
46460 "
46461
46462fi
46463
ceec2216 46464 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 46465
a848cd7e 46466
ceec2216 46467 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 46468
ceec2216
RL
46469
46470 ac_config_files="$ac_config_files version-script Makefile"
46471
46472
5c60e845 46473 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
46474
46475
9103d280 46476
1c14217d 46477if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
46478if test "$wxUSE_GUI" = "yes"; then
46479 SUBDIRS="samples demos utils contrib"
46480else SUBDIRS="samples utils"
46481fi
46482
46483
46484
46485# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
46486if test "${with_cppunit_prefix+set}" = set; then
46487 withval="$with_cppunit_prefix"
46488 cppunit_config_prefix="$withval"
46489else
46490 cppunit_config_prefix=""
46491fi;
46492
46493# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
46494if test "${with_cppunit_exec_prefix+set}" = set; then
46495 withval="$with_cppunit_exec_prefix"
46496 cppunit_config_exec_prefix="$withval"
46497else
46498 cppunit_config_exec_prefix=""
46499fi;
46500
46501 if test x$cppunit_config_exec_prefix != x ; then
46502 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
46503 if test x${CPPUNIT_CONFIG+set} != xset ; then
46504 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
46505 fi
46506 fi
46507 if test x$cppunit_config_prefix != x ; then
46508 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
46509 if test x${CPPUNIT_CONFIG+set} != xset ; then
46510 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
46511 fi
46512 fi
46513
46514 # Extract the first word of "cppunit-config", so it can be a program name with args.
46515set dummy cppunit-config; ac_word=$2
46516echo "$as_me:$LINENO: checking for $ac_word" >&5
46517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46518if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
46519 echo $ECHO_N "(cached) $ECHO_C" >&6
46520else
46521 case $CPPUNIT_CONFIG in
46522 [\\/]* | ?:[\\/]*)
46523 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
46524 ;;
46525 *)
46526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46527for as_dir in $PATH
46528do
46529 IFS=$as_save_IFS
46530 test -z "$as_dir" && as_dir=.
46531 for ac_exec_ext in '' $ac_executable_extensions; do
46532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46533 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46535 break 2
46536 fi
46537done
46538done
46539
46540 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
46541 ;;
46542esac
46543fi
46544CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
46545
46546if test -n "$CPPUNIT_CONFIG"; then
46547 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
46548echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
46549else
46550 echo "$as_me:$LINENO: result: no" >&5
46551echo "${ECHO_T}no" >&6
46552fi
46553
46554 cppunit_version_min=1.8.0
46555
46556 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
46557echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
46558 no_cppunit=""
46559 if test "$CPPUNIT_CONFIG" = "no" ; then
46560 no_cppunit=yes
46561 else
46562 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
46563 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
46564 cppunit_version=`$CPPUNIT_CONFIG --version`
46565
46566 cppunit_major_version=`echo $cppunit_version | \
46567 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46568 cppunit_minor_version=`echo $cppunit_version | \
46569 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46570 cppunit_micro_version=`echo $cppunit_version | \
46571 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46572
46573 cppunit_major_min=`echo $cppunit_version_min | \
46574 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46575 cppunit_minor_min=`echo $cppunit_version_min | \
46576 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46577 cppunit_micro_min=`echo $cppunit_version_min | \
46578 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46579
46580 cppunit_version_proper=`expr \
46581 $cppunit_major_version \> $cppunit_major_min \| \
46582 $cppunit_major_version \= $cppunit_major_min \& \
46583 $cppunit_minor_version \> $cppunit_minor_min \| \
46584 $cppunit_major_version \= $cppunit_major_min \& \
46585 $cppunit_minor_version \= $cppunit_minor_min \& \
46586 $cppunit_micro_version \>= $cppunit_micro_min `
46587
46588 if test "$cppunit_version_proper" = "1" ; then
46589 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
46590echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
46591 else
46592 echo "$as_me:$LINENO: result: no" >&5
46593echo "${ECHO_T}no" >&6
46594 no_cppunit=yes
46595 fi
46596 fi
46597
46598 if test "x$no_cppunit" = x ; then
c2218763 46599 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
46600 else
46601 CPPUNIT_CFLAGS=""
46602 CPPUNIT_LIBS=""
c2218763 46603 :
a848cd7e
SC
46604 fi
46605
46606
46607
46608
46609
46610for subdir in `echo $SUBDIRS`; do
46611 if test -d ${srcdir}/${subdir} ; then
46612 if test "$wxUSE_GUI" = "yes"; then
46613 if test ${subdir} = "samples"; then
46614 makefiles="samples/Makefile.in $makefiles"
46615 for sample in `echo $SAMPLES_SUBDIRS`; do
46616 if test -d $srcdir/samples/$sample; then
46617 makefiles="samples/$sample/Makefile.in $makefiles"
46618 fi
46619 done
9c112555
MW
46620 else
46621 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
46622 eval "disabled=\$$disabled_var"
46623 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
46624 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
46625 fi
46626 else if test ${subdir} = "samples"; then
46627 makefiles="samples/Makefile.in samples/console/Makefile.in"
46628 elif test ${subdir} = "utils"; then
6537ccf8
VS
46629 makefiles=""
46630 for util in HelpGen tex2rtf ; do
46631 if test -d $srcdir/utils/$util ; then
46632 makefiles="utils/$util/Makefile.in \
46633 utils/$util/src/Makefile.in \
46634 $makefiles"
46635 fi
46636 done
a848cd7e
SC
46637 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
46638 fi
46639 fi
46640
46641 for mkin in $makefiles ; do
46642 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
46643 ac_config_files="$ac_config_files $mk"
46644
46645 done
46646 fi
46647done
1c14217d 46648fi
a848cd7e
SC
46649cat >confcache <<\_ACEOF
46650# This file is a shell script that caches the results of configure
46651# tests run on this system so they can be shared between configure
46652# scripts and configure runs, see configure's option --config-cache.
46653# It is not useful on other systems. If it contains results you don't
46654# want to keep, you may remove or edit it.
46655#
46656# config.status only pays attention to the cache file if you give it
46657# the --recheck option to rerun configure.
46658#
46659# `ac_cv_env_foo' variables (set or unset) will be overridden when
46660# loading this file, other *unset* `ac_cv_foo' will be assigned the
46661# following values.
46662
46663_ACEOF
46664
46665# The following way of writing the cache mishandles newlines in values,
46666# but we know of no workaround that is simple, portable, and efficient.
46667# So, don't put newlines in cache variables' values.
46668# Ultrix sh set writes to stderr and can't be redirected directly,
46669# and sets the high bit in the cache file unless we assign to the vars.
46670{
46671 (set) 2>&1 |
46672 case `(ac_space=' '; set | grep ac_space) 2>&1` in
46673 *ac_space=\ *)
46674 # `set' does not quote correctly, so add quotes (double-quote
46675 # substitution turns \\\\ into \\, and sed turns \\ into \).
46676 sed -n \
ac1cb8d3
VS
46677 "s/'/'\\\\''/g;
46678 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
46679 ;;
46680 *)
46681 # `set' quotes correctly as required by POSIX, so do not add quotes.
46682 sed -n \
ac1cb8d3 46683 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
46684 ;;
46685 esac;
46686} |
46687 sed '
46688 t clear
46689 : clear
46690 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46691 t end
46692 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46693 : end' >>confcache
46694if diff $cache_file confcache >/dev/null 2>&1; then :; else
46695 if test -w $cache_file; then
46696 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46697 cat confcache >$cache_file
46698 else
46699 echo "not updating unwritable cache $cache_file"
46700 fi
46701fi
46702rm -f confcache
46703
46704test "x$prefix" = xNONE && prefix=$ac_default_prefix
46705# Let make expand exec_prefix.
46706test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46707
46708# VPATH may cause trouble with some makes, so we remove $(srcdir),
46709# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46710# trailing colons and then remove the whole line if VPATH becomes empty
46711# (actually we leave an empty line to preserve line numbers).
46712if test "x$srcdir" = x.; then
ac1cb8d3 46713 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
46714s/:*\$(srcdir):*/:/;
46715s/:*\${srcdir}:*/:/;
46716s/:*@srcdir@:*/:/;
ac1cb8d3 46717s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 46718s/:*$//;
ac1cb8d3 46719s/^[^=]*=[ ]*$//;
a848cd7e
SC
46720}'
46721fi
46722
46723DEFS=-DHAVE_CONFIG_H
46724
46725ac_libobjs=
46726ac_ltlibobjs=
46727for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46728 # 1. Remove the extension, and $U if already installed.
46729 ac_i=`echo "$ac_i" |
ac1cb8d3 46730 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
46731 # 2. Add them.
46732 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46733 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46734done
46735LIBOBJS=$ac_libobjs
46736
46737LTLIBOBJS=$ac_ltlibobjs
46738
46739
46740
46741: ${CONFIG_STATUS=./config.status}
46742ac_clean_files_save=$ac_clean_files
46743ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46744{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46745echo "$as_me: creating $CONFIG_STATUS" >&6;}
46746cat >$CONFIG_STATUS <<_ACEOF
46747#! $SHELL
46748# Generated by $as_me.
46749# Run this file to recreate the current configuration.
46750# Compiler output produced by configure, useful for debugging
46751# configure, is in config.log if it exists.
46752
46753debug=false
46754ac_cs_recheck=false
46755ac_cs_silent=false
46756SHELL=\${CONFIG_SHELL-$SHELL}
46757_ACEOF
46758
46759cat >>$CONFIG_STATUS <<\_ACEOF
46760## --------------------- ##
46761## M4sh Initialization. ##
46762## --------------------- ##
46763
46764# Be Bourne compatible
46765if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46766 emulate sh
46767 NULLCMD=:
46768 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46769 # is contrary to our usage. Disable this feature.
46770 alias -g '${1+"$@"}'='"$@"'
46771elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46772 set -o posix
46773fi
ac1cb8d3 46774DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
46775
46776# Support unset when possible.
ac1cb8d3 46777if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
46778 as_unset=unset
46779else
46780 as_unset=false
46781fi
46782
46783
46784# Work around bugs in pre-3.0 UWIN ksh.
46785$as_unset ENV MAIL MAILPATH
46786PS1='$ '
46787PS2='> '
46788PS4='+ '
46789
46790# NLS nuisances.
46791for as_var in \
46792 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46793 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46794 LC_TELEPHONE LC_TIME
46795do
ac1cb8d3 46796 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
46797 eval $as_var=C; export $as_var
46798 else
46799 $as_unset $as_var
46800 fi
46801done
46802
46803# Required to use basename.
46804if expr a : '\(a\)' >/dev/null 2>&1; then
46805 as_expr=expr
46806else
46807 as_expr=false
46808fi
46809
46810if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46811 as_basename=basename
46812else
46813 as_basename=false
46814fi
46815
46816
46817# Name of the executable.
46818as_me=`$as_basename "$0" ||
46819$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46820 X"$0" : 'X\(//\)$' \| \
46821 X"$0" : 'X\(/\)$' \| \
46822 . : '\(.\)' 2>/dev/null ||
46823echo X/"$0" |
46824 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46825 /^X\/\(\/\/\)$/{ s//\1/; q; }
46826 /^X\/\(\/\).*/{ s//\1/; q; }
46827 s/.*/./; q'`
46828
46829
46830# PATH needs CR, and LINENO needs CR and PATH.
46831# Avoid depending upon Character Ranges.
46832as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46833as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46834as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46835as_cr_digits='0123456789'
46836as_cr_alnum=$as_cr_Letters$as_cr_digits
46837
46838# The user is always right.
46839if test "${PATH_SEPARATOR+set}" != set; then
46840 echo "#! /bin/sh" >conf$$.sh
46841 echo "exit 0" >>conf$$.sh
46842 chmod +x conf$$.sh
46843 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46844 PATH_SEPARATOR=';'
46845 else
46846 PATH_SEPARATOR=:
46847 fi
46848 rm -f conf$$.sh
46849fi
46850
46851
46852 as_lineno_1=$LINENO
46853 as_lineno_2=$LINENO
46854 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46855 test "x$as_lineno_1" != "x$as_lineno_2" &&
46856 test "x$as_lineno_3" = "x$as_lineno_2" || {
46857 # Find who we are. Look in the path if we contain no path at all
46858 # relative or not.
46859 case $0 in
46860 *[\\/]* ) as_myself=$0 ;;
46861 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46862for as_dir in $PATH
46863do
46864 IFS=$as_save_IFS
46865 test -z "$as_dir" && as_dir=.
46866 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46867done
46868
46869 ;;
46870 esac
46871 # We did not find ourselves, most probably we were run as `sh COMMAND'
46872 # in which case we are not to be found in the path.
46873 if test "x$as_myself" = x; then
46874 as_myself=$0
46875 fi
46876 if test ! -f "$as_myself"; then
46877 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46878echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46879 { (exit 1); exit 1; }; }
46880 fi
46881 case $CONFIG_SHELL in
46882 '')
46883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46884for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46885do
46886 IFS=$as_save_IFS
46887 test -z "$as_dir" && as_dir=.
46888 for as_base in sh bash ksh sh5; do
46889 case $as_dir in
46890 /*)
46891 if ("$as_dir/$as_base" -c '
46892 as_lineno_1=$LINENO
46893 as_lineno_2=$LINENO
46894 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46895 test "x$as_lineno_1" != "x$as_lineno_2" &&
46896 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46897 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46898 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46899 CONFIG_SHELL=$as_dir/$as_base
46900 export CONFIG_SHELL
46901 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46902 fi;;
46903 esac
46904 done
46905done
46906;;
46907 esac
46908
46909 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46910 # uniformly replaced by the line number. The first 'sed' inserts a
46911 # line-number line before each line; the second 'sed' does the real
46912 # work. The second script uses 'N' to pair each line-number line
46913 # with the numbered line, and appends trailing '-' during
46914 # substitution so that $LINENO is not a special case at line end.
46915 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46916 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46917 sed '=' <$as_myself |
46918 sed '
46919 N
46920 s,$,-,
46921 : loop
46922 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46923 t loop
46924 s,-$,,
46925 s,^['$as_cr_digits']*\n,,
46926 ' >$as_me.lineno &&
46927 chmod +x $as_me.lineno ||
46928 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46929echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46930 { (exit 1); exit 1; }; }
46931
46932 # Don't try to exec as it changes $[0], causing all sort of problems
46933 # (the dirname of $[0] is not the place where we might find the
46934 # original and so on. Autoconf is especially sensible to this).
46935 . ./$as_me.lineno
46936 # Exit status is that of the last command.
46937 exit
46938}
46939
46940
46941case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46942 *c*,-n*) ECHO_N= ECHO_C='
46943' ECHO_T=' ' ;;
46944 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46945 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46946esac
46947
46948if expr a : '\(a\)' >/dev/null 2>&1; then
46949 as_expr=expr
46950else
46951 as_expr=false
46952fi
46953
46954rm -f conf$$ conf$$.exe conf$$.file
46955echo >conf$$.file
46956if ln -s conf$$.file conf$$ 2>/dev/null; then
46957 # We could just check for DJGPP; but this test a) works b) is more generic
46958 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46959 if test -f conf$$.exe; then
46960 # Don't use ln at all; we don't have any links
46961 as_ln_s='cp -p'
46962 else
46963 as_ln_s='ln -s'
46964 fi
46965elif ln conf$$.file conf$$ 2>/dev/null; then
46966 as_ln_s=ln
46967else
46968 as_ln_s='cp -p'
46969fi
46970rm -f conf$$ conf$$.exe conf$$.file
46971
46972if mkdir -p . 2>/dev/null; then
46973 as_mkdir_p=:
46974else
ac1cb8d3 46975 test -d ./-p && rmdir ./-p
a848cd7e
SC
46976 as_mkdir_p=false
46977fi
46978
46979as_executable_p="test -f"
46980
46981# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 46982as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46983
46984# Sed expression to map a string onto a valid variable name.
ac1cb8d3 46985as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46986
46987
46988# IFS
46989# We need space, tab and new line, in precisely that order.
46990as_nl='
46991'
46992IFS=" $as_nl"
46993
46994# CDPATH.
46995$as_unset CDPATH
46996
46997exec 6>&1
46998
46999# Open the log real soon, to keep \$[0] and so on meaningful, and to
47000# report actual input values of CONFIG_FILES etc. instead of their
47001# values after options handling. Logging --version etc. is OK.
47002exec 5>>config.log
47003{
47004 echo
47005 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47006## Running $as_me. ##
47007_ASBOX
47008} >&5
47009cat >&5 <<_CSEOF
47010
dd8df4fc 47011This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 47012generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
47013
47014 CONFIG_FILES = $CONFIG_FILES
47015 CONFIG_HEADERS = $CONFIG_HEADERS
47016 CONFIG_LINKS = $CONFIG_LINKS
47017 CONFIG_COMMANDS = $CONFIG_COMMANDS
47018 $ $0 $@
47019
47020_CSEOF
47021echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
47022echo >&5
47023_ACEOF
47024
47025# Files that config.status was made for.
47026if test -n "$ac_config_files"; then
47027 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
47028fi
47029
47030if test -n "$ac_config_headers"; then
47031 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
47032fi
47033
47034if test -n "$ac_config_links"; then
47035 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
47036fi
47037
47038if test -n "$ac_config_commands"; then
47039 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
47040fi
47041
47042cat >>$CONFIG_STATUS <<\_ACEOF
47043
47044ac_cs_usage="\
47045\`$as_me' instantiates files from templates according to the
47046current configuration.
47047
47048Usage: $0 [OPTIONS] [FILE]...
47049
47050 -h, --help print this help, then exit
47051 -V, --version print version number, then exit
47052 -q, --quiet do not print progress messages
47053 -d, --debug don't remove temporary files
47054 --recheck update $as_me by reconfiguring in the same conditions
47055 --file=FILE[:TEMPLATE]
ac1cb8d3 47056 instantiate the configuration file FILE
a848cd7e 47057 --header=FILE[:TEMPLATE]
ac1cb8d3 47058 instantiate the configuration header FILE
a848cd7e
SC
47059
47060Configuration files:
47061$config_files
47062
47063Configuration headers:
47064$config_headers
47065
47066Configuration commands:
47067$config_commands
47068
47069Report bugs to <bug-autoconf@gnu.org>."
47070_ACEOF
47071
47072cat >>$CONFIG_STATUS <<_ACEOF
47073ac_cs_version="\\
dd8df4fc 47074wxWidgets config.status 2.7.0
ac1cb8d3 47075configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
47076 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
47077
ac1cb8d3 47078Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
47079This config.status script is free software; the Free Software Foundation
47080gives unlimited permission to copy, distribute and modify it."
47081srcdir=$srcdir
47082INSTALL="$INSTALL"
47083_ACEOF
47084
47085cat >>$CONFIG_STATUS <<\_ACEOF
47086# If no file are specified by the user, then we need to provide default
47087# value. By we need to know if files were specified by the user.
47088ac_need_defaults=:
47089while test $# != 0
47090do
47091 case $1 in
47092 --*=*)
47093 ac_option=`expr "x$1" : 'x\([^=]*\)='`
47094 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
47095 ac_shift=:
47096 ;;
47097 -*)
47098 ac_option=$1
47099 ac_optarg=$2
47100 ac_shift=shift
47101 ;;
47102 *) # This is not an option, so the user has probably given explicit
47103 # arguments.
47104 ac_option=$1
47105 ac_need_defaults=false;;
47106 esac
47107
47108 case $ac_option in
47109 # Handling of the options.
47110_ACEOF
47111cat >>$CONFIG_STATUS <<\_ACEOF
47112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47113 ac_cs_recheck=: ;;
47114 --version | --vers* | -V )
47115 echo "$ac_cs_version"; exit 0 ;;
47116 --he | --h)
47117 # Conflict between --help and --header
47118 { { echo "$as_me:$LINENO: error: ambiguous option: $1
47119Try \`$0 --help' for more information." >&5
47120echo "$as_me: error: ambiguous option: $1
47121Try \`$0 --help' for more information." >&2;}
47122 { (exit 1); exit 1; }; };;
47123 --help | --hel | -h )
47124 echo "$ac_cs_usage"; exit 0 ;;
47125 --debug | --d* | -d )
47126 debug=: ;;
47127 --file | --fil | --fi | --f )
47128 $ac_shift
47129 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
47130 ac_need_defaults=false;;
47131 --header | --heade | --head | --hea )
47132 $ac_shift
47133 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
47134 ac_need_defaults=false;;
47135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47136 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47137 ac_cs_silent=: ;;
47138
47139 # This is an error.
47140 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
47141Try \`$0 --help' for more information." >&5
47142echo "$as_me: error: unrecognized option: $1
47143Try \`$0 --help' for more information." >&2;}
47144 { (exit 1); exit 1; }; } ;;
47145
47146 *) ac_config_targets="$ac_config_targets $1" ;;
47147
47148 esac
47149 shift
47150done
47151
47152ac_configure_extra_args=
47153
47154if $ac_cs_silent; then
47155 exec 6>/dev/null
47156 ac_configure_extra_args="$ac_configure_extra_args --silent"
47157fi
47158
47159_ACEOF
47160cat >>$CONFIG_STATUS <<_ACEOF
47161if \$ac_cs_recheck; then
47162 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
47163 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47164fi
47165
47166_ACEOF
47167
47168cat >>$CONFIG_STATUS <<_ACEOF
47169#
47170# INIT-COMMANDS section.
47171#
47172
5c60e845
MW
47173
47174 CPP="$CPP"
47175 infile="$srcdir/include/wx/msw/genrcdefs.h"
47176 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
47177
47178
ceec2216
RL
47179 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47180 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47181 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47182 LN_S="${LN_S}"
a848cd7e
SC
47183
47184
47185_ACEOF
47186
47187
47188
47189cat >>$CONFIG_STATUS <<\_ACEOF
47190for ac_config_target in $ac_config_targets
47191do
47192 case "$ac_config_target" in
47193 # Handling of arguments.
ceec2216
RL
47194 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
47195 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
47196 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
47197 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47198 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 47199 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
47200 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
47201 "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
47202 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47203echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47204 { (exit 1); exit 1; }; };;
47205 esac
47206done
47207
47208# If the user did not use the arguments to specify the items to instantiate,
47209# then the envvar interface is used. Set only those that are not.
47210# We use the long form for the default assignment because of an extremely
47211# bizarre bug on SunOS 4.1.3.
47212if $ac_need_defaults; then
47213 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47214 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47215 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
47216fi
47217
47218# Have a temporary directory for convenience. Make it in the build tree
47219# simply because there is no reason to put it here, and in addition,
47220# creating and moving files from /tmp can sometimes cause problems.
47221# Create a temporary directory, and hook for its removal unless debugging.
47222$debug ||
47223{
47224 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
47225 trap '{ (exit 1); exit 1; }' 1 2 13 15
47226}
47227
47228# Create a (secure) tmp directory for tmp files.
47229
47230{
47231 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
47232 test -n "$tmp" && test -d "$tmp"
47233} ||
47234{
47235 tmp=./confstat$$-$RANDOM
47236 (umask 077 && mkdir $tmp)
47237} ||
47238{
47239 echo "$me: cannot create a temporary directory in ." >&2
47240 { (exit 1); exit 1; }
47241}
47242
47243_ACEOF
47244
47245cat >>$CONFIG_STATUS <<_ACEOF
47246
47247#
47248# CONFIG_FILES section.
47249#
47250
47251# No need to generate the scripts if there are no CONFIG_FILES.
47252# This happens for instance when ./config.status config.h
47253if test -n "\$CONFIG_FILES"; then
47254 # Protect against being on the right side of a sed subst in config.status.
47255 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
47256 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
47257s,@SHELL@,$SHELL,;t t
47258s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
47259s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
47260s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
47261s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
47262s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
47263s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
47264s,@exec_prefix@,$exec_prefix,;t t
47265s,@prefix@,$prefix,;t t
47266s,@program_transform_name@,$program_transform_name,;t t
47267s,@bindir@,$bindir,;t t
47268s,@sbindir@,$sbindir,;t t
47269s,@libexecdir@,$libexecdir,;t t
47270s,@datadir@,$datadir,;t t
47271s,@sysconfdir@,$sysconfdir,;t t
47272s,@sharedstatedir@,$sharedstatedir,;t t
47273s,@localstatedir@,$localstatedir,;t t
47274s,@libdir@,$libdir,;t t
47275s,@includedir@,$includedir,;t t
47276s,@oldincludedir@,$oldincludedir,;t t
47277s,@infodir@,$infodir,;t t
47278s,@mandir@,$mandir,;t t
47279s,@build_alias@,$build_alias,;t t
47280s,@host_alias@,$host_alias,;t t
47281s,@target_alias@,$target_alias,;t t
47282s,@DEFS@,$DEFS,;t t
47283s,@ECHO_C@,$ECHO_C,;t t
47284s,@ECHO_N@,$ECHO_N,;t t
47285s,@ECHO_T@,$ECHO_T,;t t
47286s,@LIBS@,$LIBS,;t t
47287s,@build@,$build,;t t
47288s,@build_cpu@,$build_cpu,;t t
47289s,@build_vendor@,$build_vendor,;t t
47290s,@build_os@,$build_os,;t t
47291s,@host@,$host,;t t
47292s,@host_cpu@,$host_cpu,;t t
47293s,@host_vendor@,$host_vendor,;t t
47294s,@host_os@,$host_os,;t t
47295s,@target@,$target,;t t
47296s,@target_cpu@,$target_cpu,;t t
47297s,@target_vendor@,$target_vendor,;t t
47298s,@target_os@,$target_os,;t t
47299s,@CC@,$CC,;t t
47300s,@CFLAGS@,$CFLAGS,;t t
47301s,@LDFLAGS@,$LDFLAGS,;t t
47302s,@CPPFLAGS@,$CPPFLAGS,;t t
47303s,@ac_ct_CC@,$ac_ct_CC,;t t
47304s,@EXEEXT@,$EXEEXT,;t t
47305s,@OBJEXT@,$OBJEXT,;t t
47306s,@CPP@,$CPP,;t t
47307s,@EGREP@,$EGREP,;t t
47308s,@CXX@,$CXX,;t t
47309s,@CXXFLAGS@,$CXXFLAGS,;t t
47310s,@ac_ct_CXX@,$ac_ct_CXX,;t t
47311s,@RANLIB@,$RANLIB,;t t
47312s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
47313s,@AR@,$AR,;t t
8c80d384 47314s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
47315s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
47316s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
47317s,@INSTALL_DATA@,$INSTALL_DATA,;t t
47318s,@STRIP@,$STRIP,;t t
8c80d384 47319s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
47320s,@WINDRES@,$WINDRES,;t t
47321s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
47322s,@DLLTOOL@,$DLLTOOL,;t t
47323s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
47324s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
47325s,@LN_S@,$LN_S,;t t
bcaab0f9 47326s,@LNDIR@,$LNDIR,;t t
a848cd7e
SC
47327s,@CXXCPP@,$CXXCPP,;t t
47328s,@subdirs@,$subdirs,;t t
47329s,@PKG_CONFIG@,$PKG_CONFIG,;t t
47330s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
47331s,@GTK_LIBS@,$GTK_LIBS,;t t
47332s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
47333s,@X_CFLAGS@,$X_CFLAGS,;t t
47334s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
47335s,@X_LIBS@,$X_LIBS,;t t
47336s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
47337s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
47338s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
47339s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
47340s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
47341s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
47342s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 47343s,@REZ@,$REZ,;t t
a848cd7e
SC
47344s,@DEREZ@,$DEREZ,;t t
47345s,@SETFILE@,$SETFILE,;t t
47346s,@LIBICONV@,$LIBICONV,;t t
47347s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
47348s,@SDL_CONFIG@,$SDL_CONFIG,;t t
47349s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
47350s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
47351s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
47352s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
47353s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
47354s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
47355s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
47356s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
47357s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
47358s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
47359s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
47360s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
47361s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
47362s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
47363s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
47364s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
47365s,@VENDOR@,$VENDOR,;t t
47366s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
47367s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
47368s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
47369s,@WXUNIV@,$WXUNIV,;t t
47370s,@MONOLITHIC@,$MONOLITHIC,;t t
47371s,@USE_PLUGINS@,$USE_PLUGINS,;t t
47372s,@EXTRALIBS@,$EXTRALIBS,;t t
47373s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
47374s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
47375s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
47376s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
47377s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
47378s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
47379s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 47380s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
47381s,@UNICODE@,$UNICODE,;t t
47382s,@BUILD@,$BUILD,;t t
47383s,@DEBUG_INFO@,$DEBUG_INFO,;t t
47384s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
47385s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
47386s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
47387s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
47388s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
47389s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
47390s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
47391s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
47392s,@SET_MAKE@,$SET_MAKE,;t t
47393s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
47394s,@NM@,$NM,;t t
47395s,@ac_ct_NM@,$ac_ct_NM,;t t
47396s,@INSTALL_DIR@,$INSTALL_DIR,;t t
47397s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
47398s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
47399s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
47400s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
47401s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 47402s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
47403s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
47404s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 47405s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
47406s,@SO_SUFFIX@,$SO_SUFFIX,;t t
47407s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
47408s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
47409s,@LIBPREFIX@,$LIBPREFIX,;t t
47410s,@LIBEXT@,$LIBEXT,;t t
47411s,@DLLPREFIX@,$DLLPREFIX,;t t
47412s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 47413s,@dlldir@,$dlldir,;t t
a848cd7e
SC
47414s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
47415s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
47416s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
47417s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
47418s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
47419s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 47420s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
47421s,@USE_SOVERSION@,$USE_SOVERSION,;t t
47422s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
47423s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 47424s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
47425s,@USE_MACVERSION@,$USE_MACVERSION,;t t
47426s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
47427s,@SONAME_FLAG@,$SONAME_FLAG,;t t
47428s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
47429s,@GCC_PCH@,$GCC_PCH,;t t
47430s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
47431s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
47432s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
47433s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
47434s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
47435s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
47436s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
47437s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
47438s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
47439s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
47440s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
47441s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
47442s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
47443s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
47444s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
47445s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
47446s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
47447s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 47448s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 47449s,@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 47450s,@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 47451s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 47452s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47453s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
47454s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 47455s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 47456s,@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 47457s,@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 47458s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 47459s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
47460s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
47461s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
47462s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
47463s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
47464s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
47465s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 47466s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
47467s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
47468s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 47469s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
47470s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
47471s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
47472s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 47473s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 47474s,@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
47475s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
47476s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
47477s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
47478s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 47479s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 47480s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 47481s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
47482s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
47483s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
47484s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
47485s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
47486s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
47487s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
47488s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
47489s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
47490s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
47491s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
47492s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
47493s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
47494s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47495s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47496s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 47497s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47498s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
47499s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
47500s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
47501s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
47502s,@COND_SHARED_1@,$COND_SHARED_1,;t t
47503s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 47504s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 47505s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 47506s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 47507s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
47508s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
47509s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
47510s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
47511s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
47512s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
47513s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
47514s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
47515s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
47516s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
47517s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
47518s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
47519s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
47520s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
47521s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
47522s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47523s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
47524s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
47525s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
47526s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
47527s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
47528s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
47529s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47530s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
47531s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
47532s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
47533s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
47534s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
47535s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
47536s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
47537s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
47538s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
47539s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
47540s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47541s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47542s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
47543s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
47544s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 47545s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
47546s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
47547s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 47548s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 47549s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
47550s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
47551s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
47552s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
47553s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
47554s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 47555s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 47556s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 47557s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 47558s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
47559s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
47560s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
47561s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
47562s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
47563s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
47564s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
47565s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
47566s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 47567s,@SHARED@,$SHARED,;t t
a848cd7e
SC
47568s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
47569s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
47570s,@USE_GUI@,$USE_GUI,;t t
47571s,@AFMINSTALL@,$AFMINSTALL,;t t
47572s,@WIN32INSTALL@,$WIN32INSTALL,;t t
47573s,@TOOLKIT@,$TOOLKIT,;t t
47574s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 47575s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 47576s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 47577s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
47578s,@WIDGET_SET@,$WIDGET_SET,;t t
47579s,@WX_RELEASE@,$WX_RELEASE,;t t
47580s,@WX_VERSION@,$WX_VERSION,;t t
47581s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
47582s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
47583s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
47584s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
47585s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
47586s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
47587s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
47588s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
47589s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
370d2fd7 47590s,@WXCONFIG_RESCOMP@,$WXCONFIG_RESCOMP,;t t
ceec2216 47591s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 47592s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
47593s,@DISTDIR@,$DISTDIR,;t t
47594s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
47595s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
47596s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
47597s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
47598s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
47599s,@RESFLAGS@,$RESFLAGS,;t t
47600s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
47601s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
47602s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
47603s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 47604s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 47605s,@MACSETFILE@,$MACSETFILE,;t t
8ced02f6 47606s,@WXCONFIG_POSTLINK_COMMAND@,$WXCONFIG_POSTLINK_COMMAND,;t t
a848cd7e 47607s,@GCC@,$GCC,;t t
a848cd7e
SC
47608s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
47609s,@LIBOBJS@,$LIBOBJS,;t t
47610s,@LTLIBOBJS@,$LTLIBOBJS,;t t
47611CEOF
47612
47613_ACEOF
47614
47615 cat >>$CONFIG_STATUS <<\_ACEOF
47616 # Split the substitutions into bite-sized pieces for seds with
47617 # small command number limits, like on Digital OSF/1 and HP-UX.
47618 ac_max_sed_lines=48
47619 ac_sed_frag=1 # Number of current file.
47620 ac_beg=1 # First line for current file.
47621 ac_end=$ac_max_sed_lines # Line after last line for current file.
47622 ac_more_lines=:
47623 ac_sed_cmds=
47624 while $ac_more_lines; do
47625 if test $ac_beg -gt 1; then
47626 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47627 else
47628 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47629 fi
47630 if test ! -s $tmp/subs.frag; then
47631 ac_more_lines=false
47632 else
47633 # The purpose of the label and of the branching condition is to
47634 # speed up the sed processing (if there are no `@' at all, there
47635 # is no need to browse any of the substitutions).
47636 # These are the two extra sed commands mentioned above.
47637 (echo ':t
47638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
47639 if test -z "$ac_sed_cmds"; then
ac1cb8d3 47640 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 47641 else
ac1cb8d3 47642 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
47643 fi
47644 ac_sed_frag=`expr $ac_sed_frag + 1`
47645 ac_beg=$ac_end
47646 ac_end=`expr $ac_end + $ac_max_sed_lines`
47647 fi
47648 done
47649 if test -z "$ac_sed_cmds"; then
47650 ac_sed_cmds=cat
47651 fi
47652fi # test -n "$CONFIG_FILES"
47653
47654_ACEOF
47655cat >>$CONFIG_STATUS <<\_ACEOF
47656for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
47657 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47658 case $ac_file in
47659 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47660 cat >$tmp/stdin
47661 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47662 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47663 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47665 * ) ac_file_in=$ac_file.in ;;
47666 esac
47667
47668 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
47669 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47670$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47671 X"$ac_file" : 'X\(//\)[^/]' \| \
47672 X"$ac_file" : 'X\(//\)$' \| \
47673 X"$ac_file" : 'X\(/\)' \| \
47674 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47675echo X"$ac_file" |
47676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47678 /^X\(\/\/\)$/{ s//\1/; q; }
47679 /^X\(\/\).*/{ s//\1/; q; }
47680 s/.*/./; q'`
47681 { if $as_mkdir_p; then
47682 mkdir -p "$ac_dir"
47683 else
47684 as_dir="$ac_dir"
47685 as_dirs=
47686 while test ! -d "$as_dir"; do
47687 as_dirs="$as_dir $as_dirs"
47688 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47689$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47690 X"$as_dir" : 'X\(//\)[^/]' \| \
47691 X"$as_dir" : 'X\(//\)$' \| \
47692 X"$as_dir" : 'X\(/\)' \| \
47693 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47694echo X"$as_dir" |
47695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47697 /^X\(\/\/\)$/{ s//\1/; q; }
47698 /^X\(\/\).*/{ s//\1/; q; }
47699 s/.*/./; q'`
47700 done
47701 test ! -n "$as_dirs" || mkdir $as_dirs
47702 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47703echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47704 { (exit 1); exit 1; }; }; }
47705
47706 ac_builddir=.
47707
47708if test "$ac_dir" != .; then
47709 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47710 # A "../" for each directory in $ac_dir_suffix.
47711 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47712else
47713 ac_dir_suffix= ac_top_builddir=
47714fi
47715
47716case $srcdir in
47717 .) # No --srcdir option. We are building in place.
47718 ac_srcdir=.
47719 if test -z "$ac_top_builddir"; then
47720 ac_top_srcdir=.
47721 else
47722 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47723 fi ;;
47724 [\\/]* | ?:[\\/]* ) # Absolute path.
47725 ac_srcdir=$srcdir$ac_dir_suffix;
47726 ac_top_srcdir=$srcdir ;;
47727 *) # Relative path.
47728 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47729 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47730esac
ac1cb8d3
VS
47731
47732# Do not use `cd foo && pwd` to compute absolute paths, because
47733# the directories may not exist.
47734case `pwd` in
47735.) ac_abs_builddir="$ac_dir";;
47736*)
47737 case "$ac_dir" in
47738 .) ac_abs_builddir=`pwd`;;
47739 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47740 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47741 esac;;
47742esac
47743case $ac_abs_builddir in
47744.) ac_abs_top_builddir=${ac_top_builddir}.;;
47745*)
47746 case ${ac_top_builddir}. in
47747 .) ac_abs_top_builddir=$ac_abs_builddir;;
47748 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47749 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47750 esac;;
47751esac
47752case $ac_abs_builddir in
47753.) ac_abs_srcdir=$ac_srcdir;;
47754*)
47755 case $ac_srcdir in
47756 .) ac_abs_srcdir=$ac_abs_builddir;;
47757 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47758 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47759 esac;;
47760esac
47761case $ac_abs_builddir in
47762.) ac_abs_top_srcdir=$ac_top_srcdir;;
47763*)
47764 case $ac_top_srcdir in
47765 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47766 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47767 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47768 esac;;
47769esac
a848cd7e
SC
47770
47771
47772 case $INSTALL in
47773 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47774 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47775 esac
47776
a848cd7e
SC
47777 # Let's still pretend it is `configure' which instantiates (i.e., don't
47778 # use $as_me), people would be surprised to read:
47779 # /* config.h. Generated by config.status. */
47780 if test x"$ac_file" = x-; then
47781 configure_input=
47782 else
47783 configure_input="$ac_file. "
47784 fi
47785 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 47786 sed 's,.*/,,'` by configure."
a848cd7e
SC
47787
47788 # First look for the input files in the build tree, otherwise in the
47789 # src tree.
47790 ac_file_inputs=`IFS=:
47791 for f in $ac_file_in; do
47792 case $f in
47793 -) echo $tmp/stdin ;;
47794 [\\/$]*)
ac1cb8d3
VS
47795 # Absolute (can't be DOS-style, as IFS=:)
47796 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47797echo "$as_me: error: cannot find input file: $f" >&2;}
47798 { (exit 1); exit 1; }; }
ac1cb8d3 47799 echo "$f";;
a848cd7e 47800 *) # Relative
ac1cb8d3
VS
47801 if test -f "$f"; then
47802 # Build tree
47803 echo "$f"
47804 elif test -f "$srcdir/$f"; then
47805 # Source tree
47806 echo "$srcdir/$f"
47807 else
47808 # /dev/null tree
47809 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47810echo "$as_me: error: cannot find input file: $f" >&2;}
47811 { (exit 1); exit 1; }; }
ac1cb8d3 47812 fi;;
a848cd7e
SC
47813 esac
47814 done` || { (exit 1); exit 1; }
5ff751d6
VZ
47815
47816 if test x"$ac_file" != x-; then
47817 { echo "$as_me:$LINENO: creating $ac_file" >&5
47818echo "$as_me: creating $ac_file" >&6;}
47819 rm -f "$ac_file"
47820 fi
a848cd7e
SC
47821_ACEOF
47822cat >>$CONFIG_STATUS <<_ACEOF
47823 sed "$ac_vpsub
47824$extrasub
47825_ACEOF
47826cat >>$CONFIG_STATUS <<\_ACEOF
47827:t
47828/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47829s,@configure_input@,$configure_input,;t t
47830s,@srcdir@,$ac_srcdir,;t t
47831s,@abs_srcdir@,$ac_abs_srcdir,;t t
47832s,@top_srcdir@,$ac_top_srcdir,;t t
47833s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47834s,@builddir@,$ac_builddir,;t t
47835s,@abs_builddir@,$ac_abs_builddir,;t t
47836s,@top_builddir@,$ac_top_builddir,;t t
47837s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47838s,@INSTALL@,$ac_INSTALL,;t t
47839" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47840 rm -f $tmp/stdin
47841 if test x"$ac_file" != x-; then
47842 mv $tmp/out $ac_file
47843 else
47844 cat $tmp/out
47845 rm -f $tmp/out
47846 fi
47847
ceec2216
RL
47848 # Run the commands associated with the file.
47849 case $ac_file in
47850 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
47851 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
47852 esac
a848cd7e
SC
47853done
47854_ACEOF
47855cat >>$CONFIG_STATUS <<\_ACEOF
47856
47857#
47858# CONFIG_HEADER section.
47859#
47860
47861# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47862# NAME is the cpp macro being defined and VALUE is the value it is being given.
47863#
47864# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
47865ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47866ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
47867ac_dC=' '
47868ac_dD=',;t'
47869# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 47870ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
47871ac_uB='$,\1#\2define\3'
47872ac_uC=' '
47873ac_uD=',;t'
47874
47875for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47876 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47877 case $ac_file in
47878 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47879 cat >$tmp/stdin
47880 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47881 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47882 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47883 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47884 * ) ac_file_in=$ac_file.in ;;
47885 esac
47886
47887 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47888echo "$as_me: creating $ac_file" >&6;}
47889
47890 # First look for the input files in the build tree, otherwise in the
47891 # src tree.
47892 ac_file_inputs=`IFS=:
47893 for f in $ac_file_in; do
47894 case $f in
47895 -) echo $tmp/stdin ;;
47896 [\\/$]*)
ac1cb8d3
VS
47897 # Absolute (can't be DOS-style, as IFS=:)
47898 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47899echo "$as_me: error: cannot find input file: $f" >&2;}
47900 { (exit 1); exit 1; }; }
ac1cb8d3
VS
47901 # Do quote $f, to prevent DOS paths from being IFS'd.
47902 echo "$f";;
a848cd7e 47903 *) # Relative
ac1cb8d3
VS
47904 if test -f "$f"; then
47905 # Build tree
47906 echo "$f"
47907 elif test -f "$srcdir/$f"; then
47908 # Source tree
47909 echo "$srcdir/$f"
47910 else
47911 # /dev/null tree
47912 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47913echo "$as_me: error: cannot find input file: $f" >&2;}
47914 { (exit 1); exit 1; }; }
ac1cb8d3 47915 fi;;
a848cd7e
SC
47916 esac
47917 done` || { (exit 1); exit 1; }
47918 # Remove the trailing spaces.
ac1cb8d3 47919 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
47920
47921_ACEOF
47922
47923# Transform confdefs.h into two sed scripts, `conftest.defines' and
47924# `conftest.undefs', that substitutes the proper values into
47925# config.h.in to produce config.h. The first handles `#define'
47926# templates, and the second `#undef' templates.
47927# And first: Protect against being on the right side of a sed subst in
47928# config.status. Protect against being in an unquoted here document
47929# in config.status.
47930rm -f conftest.defines conftest.undefs
47931# Using a here document instead of a string reduces the quoting nightmare.
47932# Putting comments in sed scripts is not portable.
47933#
47934# `end' is used to avoid that the second main sed command (meant for
47935# 0-ary CPP macros) applies to n-ary macro definitions.
47936# See the Autoconf documentation for `clear'.
47937cat >confdef2sed.sed <<\_ACEOF
47938s/[\\&,]/\\&/g
47939s,[\\$`],\\&,g
47940t clear
47941: clear
ac1cb8d3 47942s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 47943t end
ac1cb8d3 47944s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
47945: end
47946_ACEOF
47947# If some macros were called several times there might be several times
47948# the same #defines, which is useless. Nevertheless, we may not want to
47949# sort them, since we want the *last* AC-DEFINE to be honored.
47950uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47951sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47952rm -f confdef2sed.sed
47953
47954# This sed command replaces #undef with comments. This is necessary, for
47955# example, in the case of _POSIX_SOURCE, which is predefined and required
47956# on some systems where configure will not decide to define it.
47957cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 47958s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
47959_ACEOF
47960
47961# Break up conftest.defines because some shells have a limit on the size
47962# of here documents, and old seds have small limits too (100 cmds).
47963echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 47964echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
47965echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47966echo ' :' >>$CONFIG_STATUS
47967rm -f conftest.tail
47968while grep . conftest.defines >/dev/null
47969do
47970 # Write a limited-size here document to $tmp/defines.sed.
47971 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47972 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 47973 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
47974 # Work around the forget-to-reset-the-flag bug.
47975 echo 't clr' >>$CONFIG_STATUS
47976 echo ': clr' >>$CONFIG_STATUS
47977 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47978 echo 'CEOF
47979 sed -f $tmp/defines.sed $tmp/in >$tmp/out
47980 rm -f $tmp/in
47981 mv $tmp/out $tmp/in
47982' >>$CONFIG_STATUS
47983 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47984 rm -f conftest.defines
47985 mv conftest.tail conftest.defines
47986done
47987rm -f conftest.defines
47988echo ' fi # grep' >>$CONFIG_STATUS
47989echo >>$CONFIG_STATUS
47990
47991# Break up conftest.undefs because some shells have a limit on the size
47992# of here documents, and old seds have small limits too (100 cmds).
47993echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
47994rm -f conftest.tail
47995while grep . conftest.undefs >/dev/null
47996do
47997 # Write a limited-size here document to $tmp/undefs.sed.
47998 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47999 # Speed up: don't consider the non `#undef'
ac1cb8d3 48000 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
48001 # Work around the forget-to-reset-the-flag bug.
48002 echo 't clr' >>$CONFIG_STATUS
48003 echo ': clr' >>$CONFIG_STATUS
48004 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
48005 echo 'CEOF
48006 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
48007 rm -f $tmp/in
48008 mv $tmp/out $tmp/in
48009' >>$CONFIG_STATUS
48010 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
48011 rm -f conftest.undefs
48012 mv conftest.tail conftest.undefs
48013done
48014rm -f conftest.undefs
48015
48016cat >>$CONFIG_STATUS <<\_ACEOF
48017 # Let's still pretend it is `configure' which instantiates (i.e., don't
48018 # use $as_me), people would be surprised to read:
48019 # /* config.h. Generated by config.status. */
48020 if test x"$ac_file" = x-; then
48021 echo "/* Generated by configure. */" >$tmp/config.h
48022 else
48023 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
48024 fi
48025 cat $tmp/in >>$tmp/config.h
48026 rm -f $tmp/in
48027 if test x"$ac_file" != x-; then
48028 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
48029 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
48030echo "$as_me: $ac_file is unchanged" >&6;}
48031 else
48032 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
48033$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48034 X"$ac_file" : 'X\(//\)[^/]' \| \
48035 X"$ac_file" : 'X\(//\)$' \| \
48036 X"$ac_file" : 'X\(/\)' \| \
48037 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48038echo X"$ac_file" |
48039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48041 /^X\(\/\/\)$/{ s//\1/; q; }
48042 /^X\(\/\).*/{ s//\1/; q; }
48043 s/.*/./; q'`
48044 { if $as_mkdir_p; then
48045 mkdir -p "$ac_dir"
48046 else
48047 as_dir="$ac_dir"
48048 as_dirs=
48049 while test ! -d "$as_dir"; do
48050 as_dirs="$as_dir $as_dirs"
48051 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48052$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48053 X"$as_dir" : 'X\(//\)[^/]' \| \
48054 X"$as_dir" : 'X\(//\)$' \| \
48055 X"$as_dir" : 'X\(/\)' \| \
48056 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48057echo X"$as_dir" |
48058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48060 /^X\(\/\/\)$/{ s//\1/; q; }
48061 /^X\(\/\).*/{ s//\1/; q; }
48062 s/.*/./; q'`
48063 done
48064 test ! -n "$as_dirs" || mkdir $as_dirs
48065 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48066echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48067 { (exit 1); exit 1; }; }; }
48068
48069 rm -f $ac_file
48070 mv $tmp/config.h $ac_file
48071 fi
48072 else
48073 cat $tmp/config.h
48074 rm -f $tmp/config.h
48075 fi
48076done
48077_ACEOF
48078cat >>$CONFIG_STATUS <<\_ACEOF
48079
48080#
48081# CONFIG_COMMANDS section.
48082#
48083for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
48084 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
48085 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
48086 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
48087$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48088 X"$ac_dest" : 'X\(//\)[^/]' \| \
48089 X"$ac_dest" : 'X\(//\)$' \| \
48090 X"$ac_dest" : 'X\(/\)' \| \
48091 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48092echo X"$ac_dest" |
48093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48095 /^X\(\/\/\)$/{ s//\1/; q; }
48096 /^X\(\/\).*/{ s//\1/; q; }
48097 s/.*/./; q'`
ac1cb8d3
VS
48098 { if $as_mkdir_p; then
48099 mkdir -p "$ac_dir"
48100 else
48101 as_dir="$ac_dir"
48102 as_dirs=
48103 while test ! -d "$as_dir"; do
48104 as_dirs="$as_dir $as_dirs"
48105 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48106$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48107 X"$as_dir" : 'X\(//\)[^/]' \| \
48108 X"$as_dir" : 'X\(//\)$' \| \
48109 X"$as_dir" : 'X\(/\)' \| \
48110 . : '\(.\)' 2>/dev/null ||
48111echo X"$as_dir" |
48112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48114 /^X\(\/\/\)$/{ s//\1/; q; }
48115 /^X\(\/\).*/{ s//\1/; q; }
48116 s/.*/./; q'`
48117 done
48118 test ! -n "$as_dirs" || mkdir $as_dirs
48119 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48120echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48121 { (exit 1); exit 1; }; }; }
48122
a848cd7e
SC
48123 ac_builddir=.
48124
48125if test "$ac_dir" != .; then
48126 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48127 # A "../" for each directory in $ac_dir_suffix.
48128 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48129else
48130 ac_dir_suffix= ac_top_builddir=
48131fi
48132
48133case $srcdir in
48134 .) # No --srcdir option. We are building in place.
48135 ac_srcdir=.
48136 if test -z "$ac_top_builddir"; then
48137 ac_top_srcdir=.
48138 else
48139 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48140 fi ;;
48141 [\\/]* | ?:[\\/]* ) # Absolute path.
48142 ac_srcdir=$srcdir$ac_dir_suffix;
48143 ac_top_srcdir=$srcdir ;;
48144 *) # Relative path.
48145 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48146 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48147esac
ac1cb8d3
VS
48148
48149# Do not use `cd foo && pwd` to compute absolute paths, because
48150# the directories may not exist.
48151case `pwd` in
48152.) ac_abs_builddir="$ac_dir";;
48153*)
48154 case "$ac_dir" in
48155 .) ac_abs_builddir=`pwd`;;
48156 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48157 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48158 esac;;
48159esac
48160case $ac_abs_builddir in
48161.) ac_abs_top_builddir=${ac_top_builddir}.;;
48162*)
48163 case ${ac_top_builddir}. in
48164 .) ac_abs_top_builddir=$ac_abs_builddir;;
48165 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48166 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48167 esac;;
48168esac
48169case $ac_abs_builddir in
48170.) ac_abs_srcdir=$ac_srcdir;;
48171*)
48172 case $ac_srcdir in
48173 .) ac_abs_srcdir=$ac_abs_builddir;;
48174 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48175 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48176 esac;;
48177esac
48178case $ac_abs_builddir in
48179.) ac_abs_top_srcdir=$ac_top_srcdir;;
48180*)
48181 case $ac_top_srcdir in
48182 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48183 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48184 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48185 esac;;
48186esac
a848cd7e
SC
48187
48188
48189 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
48190echo "$as_me: executing $ac_dest commands" >&6;}
48191 case $ac_dest in
5c60e845
MW
48192 rcdefs.h )
48193 mkdir -p $outdir &&
48194 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
48195 ;;
ceec2216
RL
48196 wx-config ) rm -f wx-config
48197 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
48198 ;;
a848cd7e
SC
48199 esac
48200done
48201_ACEOF
48202
48203cat >>$CONFIG_STATUS <<\_ACEOF
48204
48205{ (exit 0); exit 0; }
48206_ACEOF
48207chmod +x $CONFIG_STATUS
48208ac_clean_files=$ac_clean_files_save
48209
48210
48211# configure is writing to config.log, and then calls config.status.
48212# config.status does its own redirection, appending to config.log.
48213# Unfortunately, on DOS this fails, as config.log is still kept open
48214# by configure, so config.status won't be able to write to it; its
48215# output is simply discarded. So we exec the FD to /dev/null,
48216# effectively closing config.log, so it can be properly (re)opened and
48217# appended to by config.status. When coming back to configure, we
48218# need to make the FD available again.
48219if test "$no_create" != yes; then
48220 ac_cs_success=:
48221 ac_config_status_args=
48222 test "$silent" = yes &&
48223 ac_config_status_args="$ac_config_status_args --quiet"
48224 exec 5>/dev/null
48225 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48226 exec 5>>config.log
48227 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48228 # would make configure fail if this is the last instruction.
48229 $ac_cs_success || { (exit 1); exit 1; }
48230fi
48231
48232#
48233# CONFIG_SUBDIRS section.
48234#
48235if test "$no_recursion" != yes; then
48236
48237 # Remove --cache-file and --srcdir arguments so they do not pile up.
48238 ac_sub_configure_args=
48239 ac_prev=
48240 for ac_arg in $ac_configure_args; do
48241 if test -n "$ac_prev"; then
48242 ac_prev=
48243 continue
48244 fi
48245 case $ac_arg in
48246 -cache-file | --cache-file | --cache-fil | --cache-fi \
48247 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
48248 ac_prev=cache_file ;;
48249 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
48250 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
48251 | --c=*)
48252 ;;
48253 --config-cache | -C)
48254 ;;
48255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
48256 ac_prev=srcdir ;;
48257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
48258 ;;
48259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
48260 ac_prev=prefix ;;
48261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
48262 ;;
48263 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
48264 esac
48265 done
48266
48267 # Always prepend --prefix to ensure using the same prefix
48268 # in subdir configurations.
48269 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
48270
48271 ac_popdir=`pwd`
48272 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
48273
48274 # Do not complain, so a configure script can configure whichever
48275 # parts of a large source tree are present.
48276 test -d $srcdir/$ac_dir || continue
48277
48278 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
48279echo "$as_me: configuring in $ac_dir" >&6;}
48280 { if $as_mkdir_p; then
48281 mkdir -p "$ac_dir"
48282 else
48283 as_dir="$ac_dir"
48284 as_dirs=
48285 while test ! -d "$as_dir"; do
48286 as_dirs="$as_dir $as_dirs"
48287 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48288$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48289 X"$as_dir" : 'X\(//\)[^/]' \| \
48290 X"$as_dir" : 'X\(//\)$' \| \
48291 X"$as_dir" : 'X\(/\)' \| \
48292 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48293echo X"$as_dir" |
48294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48296 /^X\(\/\/\)$/{ s//\1/; q; }
48297 /^X\(\/\).*/{ s//\1/; q; }
48298 s/.*/./; q'`
48299 done
48300 test ! -n "$as_dirs" || mkdir $as_dirs
48301 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48302echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48303 { (exit 1); exit 1; }; }; }
48304
48305 ac_builddir=.
48306
48307if test "$ac_dir" != .; then
48308 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48309 # A "../" for each directory in $ac_dir_suffix.
48310 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48311else
48312 ac_dir_suffix= ac_top_builddir=
48313fi
48314
48315case $srcdir in
48316 .) # No --srcdir option. We are building in place.
48317 ac_srcdir=.
48318 if test -z "$ac_top_builddir"; then
48319 ac_top_srcdir=.
48320 else
48321 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48322 fi ;;
48323 [\\/]* | ?:[\\/]* ) # Absolute path.
48324 ac_srcdir=$srcdir$ac_dir_suffix;
48325 ac_top_srcdir=$srcdir ;;
48326 *) # Relative path.
48327 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48328 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48329esac
ac1cb8d3
VS
48330
48331# Do not use `cd foo && pwd` to compute absolute paths, because
48332# the directories may not exist.
48333case `pwd` in
48334.) ac_abs_builddir="$ac_dir";;
48335*)
48336 case "$ac_dir" in
48337 .) ac_abs_builddir=`pwd`;;
48338 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48339 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48340 esac;;
48341esac
48342case $ac_abs_builddir in
48343.) ac_abs_top_builddir=${ac_top_builddir}.;;
48344*)
48345 case ${ac_top_builddir}. in
48346 .) ac_abs_top_builddir=$ac_abs_builddir;;
48347 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48348 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48349 esac;;
48350esac
48351case $ac_abs_builddir in
48352.) ac_abs_srcdir=$ac_srcdir;;
48353*)
48354 case $ac_srcdir in
48355 .) ac_abs_srcdir=$ac_abs_builddir;;
48356 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48357 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48358 esac;;
48359esac
48360case $ac_abs_builddir in
48361.) ac_abs_top_srcdir=$ac_top_srcdir;;
48362*)
48363 case $ac_top_srcdir in
48364 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48365 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48366 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48367 esac;;
48368esac
a848cd7e
SC
48369
48370
48371 cd $ac_dir
48372
48373 # Check for guested configure; otherwise get Cygnus style configure.
48374 if test -f $ac_srcdir/configure.gnu; then
48375 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
48376 elif test -f $ac_srcdir/configure; then
48377 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
48378 elif test -f $ac_srcdir/configure.in; then
48379 ac_sub_configure=$ac_configure
48380 else
48381 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
48382echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
48383 ac_sub_configure=
48384 fi
48385
48386 # The recursion is here.
48387 if test -n "$ac_sub_configure"; then
48388 # Make the cache file name correct relative to the subdirectory.
48389 case $cache_file in
48390 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
48391 *) # Relative path.
ac1cb8d3 48392 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
48393 esac
48394
48395 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
48396echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
48397 # The eval makes quoting arguments work.
48398 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
48399 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
48400 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
48401echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
48402 { (exit 1); exit 1; }; }
48403 fi
48404
5ff751d6 48405 cd "$ac_popdir"
a848cd7e
SC
48406 done
48407fi
48408
48409
48410echo
77ffb593 48411echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 48412echo ""
4d4ff94c 48413echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 48414echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 48415
77ffb593
JS
48416echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
48417echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
48418echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 48419
77ffb593 48420echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
48421echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
48422echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 48423
77ffb593 48424echo " Which libraries should wxWidgets use?"
a848cd7e
SC
48425echo " jpeg ${wxUSE_LIBJPEG-none}"
48426echo " png ${wxUSE_LIBPNG-none}"
48427echo " regex ${wxUSE_REGEX}"
48428echo " tiff ${wxUSE_LIBTIFF-none}"
48429if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
48430echo " xpm ${wxUSE_LIBXPM-none}"
48431fi
48432echo " zlib ${wxUSE_ZLIB}"
48433echo " odbc ${wxUSE_ODBC}"
48434echo " expat ${wxUSE_EXPAT}"
48435echo " libmspack ${wxUSE_LIBMSPACK}"
48436echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 48437echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
48438
48439echo ""
48440