]> git.saurik.com Git - wxWidgets.git/blame - configure
Don't include platform headers from public wx headers
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
f1e3914f 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.1.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
f1e3914f
RR
273PACKAGE_VERSION='2.7.1'
274PACKAGE_STRING='wxWidgets 2.7.1'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
b3c86150 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
3ecd9f92
MW
789ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790ac_env_PKG_CONFIG_value=$PKG_CONFIG
791ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
b3c86150
VS
793ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
3ecd9f92
MW
801ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846ac_env_HILDON_LIBS_value=$HILDON_LIBS
847ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
849ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
850ac_env_GST_CFLAGS_value=$GST_CFLAGS
851ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
852ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
853ac_env_GST_LIBS_set=${GST_LIBS+set}
854ac_env_GST_LIBS_value=$GST_LIBS
855ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
856ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
857
858#
859# Report the --help message.
860#
861if test "$ac_init_help" = "long"; then
862 # Omit some internal or obsolete options to make the list less imposing.
863 # This message is too long to be a string in the A/UX 3.1 sh.
864 cat <<_ACEOF
f1e3914f 865\`configure' configures wxWidgets 2.7.1 to adapt to many kinds of systems.
a848cd7e
SC
866
867Usage: $0 [OPTION]... [VAR=VALUE]...
868
869To assign environment variables (e.g., CC, CFLAGS...), specify them as
870VAR=VALUE. See below for descriptions of some of the useful variables.
871
872Defaults for the options are specified in brackets.
873
874Configuration:
875 -h, --help display this help and exit
876 --help=short display options specific to this package
877 --help=recursive display the short help of all the included packages
878 -V, --version display version information and exit
879 -q, --quiet, --silent do not print \`checking...' messages
880 --cache-file=FILE cache test results in FILE [disabled]
881 -C, --config-cache alias for \`--cache-file=config.cache'
882 -n, --no-create do not create output files
883 --srcdir=DIR find the sources in DIR [configure dir or \`..']
884
885_ACEOF
886
887 cat <<_ACEOF
888Installation directories:
889 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 890 [$ac_default_prefix]
a848cd7e 891 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 892 [PREFIX]
a848cd7e
SC
893
894By default, \`make install' will install all the files in
895\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
896an installation prefix other than \`$ac_default_prefix' using \`--prefix',
897for instance \`--prefix=\$HOME'.
898
899For better control, use the options below.
900
901Fine tuning of the installation directories:
902 --bindir=DIR user executables [EPREFIX/bin]
903 --sbindir=DIR system admin executables [EPREFIX/sbin]
904 --libexecdir=DIR program executables [EPREFIX/libexec]
905 --datadir=DIR read-only architecture-independent data [PREFIX/share]
906 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
907 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
908 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
909 --libdir=DIR object code libraries [EPREFIX/lib]
910 --includedir=DIR C header files [PREFIX/include]
911 --oldincludedir=DIR C header files for non-gcc [/usr/include]
912 --infodir=DIR info documentation [PREFIX/info]
913 --mandir=DIR man documentation [PREFIX/man]
914_ACEOF
915
916 cat <<\_ACEOF
917
918X features:
919 --x-includes=DIR X include files are in DIR
920 --x-libraries=DIR X library files are in DIR
921
922System types:
923 --build=BUILD configure for building on BUILD [guessed]
924 --host=HOST cross-compile to build programs to run on HOST [BUILD]
925 --target=TARGET configure for building compilers for TARGET [HOST]
926_ACEOF
927fi
928
929if test -n "$ac_init_help"; then
930 case $ac_init_help in
f1e3914f 931 short | recursive ) echo "Configuration of wxWidgets 2.7.1:";;
a848cd7e
SC
932 esac
933 cat <<\_ACEOF
934
935Optional Features:
936 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
937 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
938 --enable-gui use GUI classes
77ffb593
JS
939 --enable-monolithic build wxWidgets as single library
940 --enable-plugins build parts of wxWidgets as loadable components
941 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 942 --enable-nanox use NanoX
f34ca037 943 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
944 --enable-gpe use GNOME PDA Environment features if possible
945 --enable-shared create shared library code
946 --enable-optimise create optimised code
947 --enable-debug same as debug_flag and debug_info
948 --enable-stl use STL for containers
949 --enable-omf use OMF object format
950 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
951 --enable-debug_info create code with debugging information
952 --enable-debug_gdb create code with extra GDB debugging information
953 --enable-debug_cntxt use wxDebugContext
954 --enable-mem_tracing create code with memory tracing
955 --enable-profile create code with profiling information
956 --enable-no_rtti create code without RTTI information
957 --enable-no_exceptions create code without C++ exceptions handling
958 --enable-permissive compile code disregarding strict ANSI
959 --enable-no_deps create code without dependency information
95768535 960 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
961 --enable-compat24 enable wxWidgets 2.4 compatibility
962 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 963 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
964 --enable-intl use internationalization system
965 --enable-config use wxConfig (and derived) classes
966 --enable-protocols use wxProtocol and derived classes
967 --enable-ftp use wxFTP (requires wxProtocol
968 --enable-http use wxHTTP (requires wxProtocol
969 --enable-fileproto use wxFileProto class (requires wxProtocol
970 --enable-sockets use socket/network classes
971 --enable-ole use OLE classes (Win32 only)
972 --enable-dataobj use data object classes
973 --enable-ipc use interprocess communication (wxSocket etc.)
974 --enable-apple_ieee use the Apple IEEE codec
81f90336 975 --enable-arcstream use wxArchive streams
eaff0f0d 976 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 977 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
978 --enable-cmdline use wxCmdLineParser class
979 --enable-datetime use wxDateTime class
36b6448c 980 --enable-debugreport use wxDebugReport class
a848cd7e
SC
981 --enable-dialupman use dialup network classes
982 --enable-dynlib use wxLibrary class for DLL loading
983 --enable-dynamicloader use (new) wxDynamicLibrary class
984 --enable-exceptions build exception-safe library
985 --enable-ffile use wxFFile class
986 --enable-file use wxFile class
987 --enable-filesystem use virtual file systems classes
988 --enable-fontmap use font encodings conversion classes
989 --enable-fs_inet use virtual HTTP/FTP filesystems
990 --enable-fs_zip use virtual ZIP filesystems
991 --enable-geometry use geometry class
992 --enable-log use logging system
993 --enable-longlong use wxLongLong class
994 --enable-mimetype use wxMimeTypesManager
995 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
996 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 997 --enable-std_iostreams use standard C++ stream classes
59746b65 998 --enable-std_string use standard C++ string classes
07158944 999 --enable-stdpaths use wxStandardPaths class
a848cd7e 1000 --enable-stopwatch use wxStopWatch class
07158944 1001 --enable-streams use wxStream etc classes
a848cd7e
SC
1002 --enable-sysoptions use wxSystemOptions
1003 --enable-textbuf use wxTextBuffer class
1004 --enable-textfile use wxTextFile class
1005 --enable-timer use wxTimer class
1006 --enable-unicode compile wxString with Unicode support
1007 --enable-sound use wxSound class
3b57de8b 1008 --enable-mediactrl use wxMediaCtrl class
15291213 1009 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1010 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1011 --enable-zipstream use wxZip streams
a848cd7e 1012 --enable-url use wxURL class
ca5c6ac3 1013 --enable-variant use wxVariant class
a848cd7e
SC
1014 --enable-protocol use wxProtocol class
1015 --enable-protocol-http HTTP support in wxProtocol
1016 --enable-protocol-ftp FTP support in wxProtocol
1017 --enable-protocol-file FILE support in wxProtocol
1018 --enable-threads use threads
1019 --enable-docview use document view architecture
1020 --enable-help use help subsystem
1021 --enable-mshtmlhelp use MS HTML Help (win32)
1022 --enable-html use wxHTML sub-library
1023 --enable-htmlhelp use wxHTML-based help
9a8f0513 1024 --enable-xrc use XRC resources sub-library
3f60522a 1025 --enable-aui use AUI docking library
a848cd7e
SC
1026 --enable-constraints use layout-constraints system
1027 --enable-printarch use printing architecture
1028 --enable-mdi use multiple document interface architecture
8a7b1113 1029 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1030 --enable-loggui use standard GUI logger
1031 --enable-logwin use wxLogWindow
1032 --enable-logdialog use wxLogDialog
646b6ec1 1033 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1034 --enable-richtext use wxRichTextCtrl
f43426c1 1035 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e
SC
1036 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1037 --enable-prologio not available; see contrib
1038 --enable-resources not available; see contrib
1039 --enable-clipboard use wxClipboard class
1040 --enable-dnd use Drag'n'Drop classes
1041 --enable-metafile use win32 metafiles
1042 --enable-controls use all usual controls
1043 --enable-accel use accelerators
3ea50042 1044 --enable-animatectrl use wxAnimationCtrl class
a848cd7e
SC
1045 --enable-button use wxButton class
1046 --enable-bmpbutton use wxBitmapButton class
95a46303 1047 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1048 --enable-calendar use wxCalendarCtrl class
1049 --enable-caret use wxCaret class
1050 --enable-checkbox use wxCheckBox class
1051 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1052 --enable-choice use wxChoice class
92bbdbcd 1053 --enable-choicebook use wxChoicebook class
e9263684 1054 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1055 --enable-combobox use wxComboBox class
a57d600f 1056 --enable-comboctrl use wxComboCtrl class
da98e9be 1057 --enable-datepick use wxDatePickerCtrl class
e9263684 1058 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1059 --enable-display use wxDisplay class
e9263684
VZ
1060 --enable-filepicker use wxFilePickerCtrl class
1061 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1062 --enable-gauge use wxGauge class
1063 --enable-grid use wxGrid class
20e34ecc 1064 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1065 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1066 --enable-imaglist use wxImageList class
1067 --enable-listbook use wxListbook class
1068 --enable-listbox use wxListBox class
1069 --enable-listctrl use wxListCtrl class
1070 --enable-notebook use wxNotebook class
a57d600f 1071 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1072 --enable-radiobox use wxRadioBox class
1073 --enable-radiobtn use wxRadioButton class
1074 --enable-sash use wxSashWindow class
1075 --enable-scrollbar use wxScrollBar class and scrollable windows
1076 --enable-slider use wxSlider class
1077 --enable-spinbtn use wxSpinButton class
1078 --enable-spinctrl use wxSpinCtrl class
1079 --enable-splitter use wxSplitterWindow class
1080 --enable-statbmp use wxStaticBitmap class
1081 --enable-statbox use wxStaticBox class
1082 --enable-statline use wxStaticLine class
1083 --enable-stattext use wxStaticText class
1084 --enable-statusbar use wxStatusBar class
1085 --enable-tabdialog use wxTabControl class
1086 --enable-textctrl use wxTextCtrl class
1087 --enable-togglebtn use wxToggleButton class
1088 --enable-toolbar use wxToolBar class
1089 --enable-tbarnative use native wxToolBar class
0093c2fc 1090 --enable-treebook use wxTreebook class
5ec3bc43 1091 --enable-toolbook use wxToolbook class
a848cd7e
SC
1092 --enable-treectrl use wxTreeCtrl class
1093 --enable-tipwindow use wxTipWindow class
1094 --enable-popupwin use wxPopUpWindow class
1095 --enable-commondlg use all common dialogs
319c5ed4 1096 --enable-aboutdlg use wxAboutBox
a848cd7e
SC
1097 --enable-choicedlg use wxChoiceDialog
1098 --enable-coldlg use wxColourDialog
1099 --enable-filedlg use wxFileDialog
1100 --enable-finddlg use wxFindReplaceDialog
1101 --enable-fontdlg use wxFontDialog
1102 --enable-dirdlg use wxDirDialog
1103 --enable-msgdlg use wxMessageDialog
1104 --enable-numberdlg use wxNumberEntryDialog
1105 --enable-splash use wxSplashScreen
1106 --enable-textdlg use wxTextDialog
1107 --enable-tipdlg use startup tips
1108 --enable-progressdlg use wxProgressDialog
1109 --enable-wizarddlg use wxWizard
1110 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1111 --enable-miniframe use wxMiniFrame class
1112 --enable-tooltips use wxToolTip class
1113 --enable-splines use spline drawing code
fbe2ca43 1114 --enable-mousewheel use mousewheel
a848cd7e
SC
1115 --enable-validators use wxValidator and derived classes
1116 --enable-busyinfo use wxBusyInfo
4cb1d3da 1117 --enable-joystick use wxJoystick
38b4a946 1118 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1119 --enable-dragimage use wxDragImage
1120 --enable-accessibility enable accessibility support
38b4a946 1121 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1122 --enable-palette use wxPalette class
1123 --enable-image use wxImage class
1124 --enable-gif use gif images (GIF file format)
1125 --enable-pcx use pcx images (PCX file format)
1126 --enable-iff use iff images (IFF file format)
1127 --enable-pnm use pnm images (PNM file format)
1128 --enable-xpm use xpm images (XPM file format)
1129 --enable-icocur use Windows ICO and CUR formats
77ffb593 1130 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1131 --enable-vendor=VENDOR vendor name (win32 DLL only)
1132 --disable-largefile omit support for large files
1133 --disable-gtktest do not try to compile and run a test GTK+ program
1134 --disable-gtktest Do not try to compile and run a test GTK program
1135 --disable-sdltest Do not try to compile and run a test SDL program
1136 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1137 --disable-dependency-tracking
1138 don't use dependency tracking even if the compiler
1139 can
ebee3cd0
VS
1140 --disable-precomp-headers
1141 don't use precompiled headers even if compiler can
a848cd7e
SC
1142
1143Optional Packages:
1144 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1145 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1146 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1147 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1148 --with-motif use Motif/Lesstif
1149 --with-mac use Mac OS X
1150 --with-cocoa use Cocoa
1151 --with-wine use Wine
1152 --with-msw use MS-Windows
1153 --with-pm use OS/2 Presentation Manager
1154 --with-mgl use SciTech MGL
b3c86150 1155 --with-directfb use DirectFB
a848cd7e
SC
1156 --with-microwin use MicroWindows
1157 --with-x11 use X11
1158 --with-libpng use libpng (PNG image format)
1159 --with-libjpeg use libjpeg (JPEG file format)
1160 --with-libtiff use libtiff (TIFF file format)
1161 --with-libxpm use libxpm (XPM file format)
1162 --with-libmspack use libmspack (CHM help files loading)
1163 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1164 --with-gnomeprint use GNOME print for printing under GNOME
1165 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1166 --with-hildon use Hildon framework for Nokia 770
a848cd7e 1167 --with-opengl use OpenGL (or Mesa)
4353a8df 1168 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
a848cd7e
SC
1169 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1170 --with-regex enable support for wxRegEx class
1171 --with-zlib use zlib for LZW compression
1172 --with-odbc use the IODBC and wxODBC classes
1173 --with-expat enable XML support using expat parser
ceec2216 1174 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1175 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1176 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1177 --with-x use the X Window System
1178 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1179 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1180 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1181 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1182 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1183
1184Some influential environment variables:
dcc1b6ad
VS
1185 CC C compiler command
1186 CFLAGS C compiler flags
1187 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1188 nonstandard directory <lib dir>
1189 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1190 headers in a nonstandard directory <include dir>
1191 CPP C preprocessor
1192 CXX C++ compiler command
1193 CXXFLAGS C++ compiler flags
1194 CXXCPP C++ preprocessor
3ecd9f92 1195 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1196 DIRECTFB_CFLAGS
1197 C compiler flags for DIRECTFB, overriding pkg-config
1198 DIRECTFB_LIBS
1199 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1200 PANGOX_CFLAGS
1201 C compiler flags for PANGOX, overriding pkg-config
1202 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1203 PANGOFT2_CFLAGS
1204 C compiler flags for PANGOFT2, overriding pkg-config
1205 PANGOFT2_LIBS
1206 linker flags for PANGOFT2, overriding pkg-config
1207 PANGOXFT_CFLAGS
1208 C compiler flags for PANGOXFT, overriding pkg-config
1209 PANGOXFT_LIBS
1210 linker flags for PANGOXFT, overriding pkg-config
1211 LIBGNOMEPRINTUI_CFLAGS
1212 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1213 LIBGNOMEPRINTUI_LIBS
1214 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1215 GNOMEVFS_CFLAGS
1216 C compiler flags for GNOMEVFS, overriding pkg-config
1217 GNOMEVFS_LIBS
1218 linker flags for GNOMEVFS, overriding pkg-config
1219 HILDON_CFLAGS
1220 C compiler flags for HILDON, overriding pkg-config
1221 HILDON_LIBS linker flags for HILDON, overriding pkg-config
1222 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1223 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1224
1225Use these variables to override the choices made by `configure' or to help
1226it to find libraries and programs with nonstandard names/locations.
1227
77ffb593 1228Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1229_ACEOF
1230fi
1231
1232if test "$ac_init_help" = "recursive"; then
1233 # If there are subdirs, report their specific --help.
1234 ac_popdir=`pwd`
1235 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1236 test -d $ac_dir || continue
1237 ac_builddir=.
1238
1239if test "$ac_dir" != .; then
1240 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1241 # A "../" for each directory in $ac_dir_suffix.
1242 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1243else
1244 ac_dir_suffix= ac_top_builddir=
1245fi
1246
1247case $srcdir in
1248 .) # No --srcdir option. We are building in place.
1249 ac_srcdir=.
1250 if test -z "$ac_top_builddir"; then
1251 ac_top_srcdir=.
1252 else
1253 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1254 fi ;;
1255 [\\/]* | ?:[\\/]* ) # Absolute path.
1256 ac_srcdir=$srcdir$ac_dir_suffix;
1257 ac_top_srcdir=$srcdir ;;
1258 *) # Relative path.
1259 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1260 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1261esac
ac1cb8d3
VS
1262
1263# Do not use `cd foo && pwd` to compute absolute paths, because
1264# the directories may not exist.
1265case `pwd` in
1266.) ac_abs_builddir="$ac_dir";;
1267*)
1268 case "$ac_dir" in
1269 .) ac_abs_builddir=`pwd`;;
1270 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1271 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1272 esac;;
1273esac
1274case $ac_abs_builddir in
1275.) ac_abs_top_builddir=${ac_top_builddir}.;;
1276*)
1277 case ${ac_top_builddir}. in
1278 .) ac_abs_top_builddir=$ac_abs_builddir;;
1279 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1280 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1281 esac;;
1282esac
1283case $ac_abs_builddir in
1284.) ac_abs_srcdir=$ac_srcdir;;
1285*)
1286 case $ac_srcdir in
1287 .) ac_abs_srcdir=$ac_abs_builddir;;
1288 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1289 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1290 esac;;
1291esac
1292case $ac_abs_builddir in
1293.) ac_abs_top_srcdir=$ac_top_srcdir;;
1294*)
1295 case $ac_top_srcdir in
1296 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1297 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1298 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1299 esac;;
1300esac
a848cd7e
SC
1301
1302 cd $ac_dir
1303 # Check for guested configure; otherwise get Cygnus style configure.
1304 if test -f $ac_srcdir/configure.gnu; then
1305 echo
1306 $SHELL $ac_srcdir/configure.gnu --help=recursive
1307 elif test -f $ac_srcdir/configure; then
1308 echo
1309 $SHELL $ac_srcdir/configure --help=recursive
1310 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1311 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1312 echo
1313 $ac_configure --help
1314 else
1315 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1316 fi
7067783d 1317 cd $ac_popdir
a848cd7e
SC
1318 done
1319fi
1320
1321test -n "$ac_init_help" && exit 0
1322if $ac_init_version; then
1323 cat <<\_ACEOF
f1e3914f 1324wxWidgets configure 2.7.1
ac1cb8d3 1325generated by GNU Autoconf 2.59
a848cd7e 1326
ac1cb8d3 1327Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1328This configure script is free software; the Free Software Foundation
1329gives unlimited permission to copy, distribute and modify it.
1330_ACEOF
1331 exit 0
1332fi
1333exec 5>config.log
1334cat >&5 <<_ACEOF
1335This file contains any messages produced by compilers while
1336running configure, to aid debugging if configure makes a mistake.
1337
f1e3914f 1338It was created by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 1339generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1340
1341 $ $0 $@
1342
1343_ACEOF
1344{
1345cat <<_ASUNAME
1346## --------- ##
1347## Platform. ##
1348## --------- ##
1349
1350hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1351uname -m = `(uname -m) 2>/dev/null || echo unknown`
1352uname -r = `(uname -r) 2>/dev/null || echo unknown`
1353uname -s = `(uname -s) 2>/dev/null || echo unknown`
1354uname -v = `(uname -v) 2>/dev/null || echo unknown`
1355
1356/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1357/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1358
1359/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1360/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1361/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1362hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1363/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1364/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1365/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1366
1367_ASUNAME
1368
1369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370for as_dir in $PATH
1371do
1372 IFS=$as_save_IFS
1373 test -z "$as_dir" && as_dir=.
1374 echo "PATH: $as_dir"
1375done
1376
1377} >&5
1378
1379cat >&5 <<_ACEOF
1380
1381
1382## ----------- ##
1383## Core tests. ##
1384## ----------- ##
1385
1386_ACEOF
1387
1388
1389# Keep a trace of the command line.
1390# Strip out --no-create and --no-recursion so they do not pile up.
1391# Strip out --silent because we don't want to record it for future runs.
1392# Also quote any args containing shell meta-characters.
1393# Make two passes to allow for proper duplicate-argument suppression.
1394ac_configure_args=
1395ac_configure_args0=
1396ac_configure_args1=
1397ac_sep=
1398ac_must_keep_next=false
1399for ac_pass in 1 2
1400do
1401 for ac_arg
1402 do
1403 case $ac_arg in
1404 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1406 | -silent | --silent | --silen | --sile | --sil)
1407 continue ;;
1408 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1409 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1410 esac
1411 case $ac_pass in
1412 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1413 2)
1414 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1415 if test $ac_must_keep_next = true; then
ac1cb8d3 1416 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1417 else
ac1cb8d3
VS
1418 case $ac_arg in
1419 *=* | --config-cache | -C | -disable-* | --disable-* \
1420 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1421 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1422 | -with-* | --with-* | -without-* | --without-* | --x)
1423 case "$ac_configure_args0 " in
1424 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1425 esac
1426 ;;
1427 -* ) ac_must_keep_next=true ;;
1428 esac
a848cd7e
SC
1429 fi
1430 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1431 # Get rid of the leading space.
1432 ac_sep=" "
1433 ;;
1434 esac
1435 done
1436done
1437$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1438$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1439
1440# When interrupted or exit'd, cleanup temporary files, and complete
1441# config.log. We remove comments because anyway the quotes in there
1442# would cause problems or look ugly.
1443# WARNING: Be sure not to use single quotes in there, as some shells,
1444# such as our DU 5.0 friend, will then `close' the trap.
1445trap 'exit_status=$?
1446 # Save into config.log some information that might help in debugging.
1447 {
1448 echo
1449
1450 cat <<\_ASBOX
1451## ---------------- ##
1452## Cache variables. ##
1453## ---------------- ##
1454_ASBOX
1455 echo
1456 # The following way of writing the cache mishandles newlines in values,
1457{
1458 (set) 2>&1 |
1459 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1460 *ac_space=\ *)
1461 sed -n \
ac1cb8d3
VS
1462 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1464 ;;
1465 *)
1466 sed -n \
ac1cb8d3 1467 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1468 ;;
1469 esac;
1470}
1471 echo
1472
1473 cat <<\_ASBOX
1474## ----------------- ##
1475## Output variables. ##
1476## ----------------- ##
1477_ASBOX
1478 echo
1479 for ac_var in $ac_subst_vars
1480 do
1481 eval ac_val=$`echo $ac_var`
1482 echo "$ac_var='"'"'$ac_val'"'"'"
1483 done | sort
1484 echo
1485
1486 if test -n "$ac_subst_files"; then
1487 cat <<\_ASBOX
1488## ------------- ##
1489## Output files. ##
1490## ------------- ##
1491_ASBOX
1492 echo
1493 for ac_var in $ac_subst_files
1494 do
1495 eval ac_val=$`echo $ac_var`
ac1cb8d3 1496 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1497 done | sort
1498 echo
1499 fi
1500
1501 if test -s confdefs.h; then
1502 cat <<\_ASBOX
1503## ----------- ##
1504## confdefs.h. ##
1505## ----------- ##
1506_ASBOX
1507 echo
1508 sed "/^$/d" confdefs.h | sort
1509 echo
1510 fi
1511 test "$ac_signal" != 0 &&
1512 echo "$as_me: caught signal $ac_signal"
1513 echo "$as_me: exit $exit_status"
1514 } >&5
ac1cb8d3 1515 rm -f core *.core &&
a848cd7e
SC
1516 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1517 exit $exit_status
1518 ' 0
1519for ac_signal in 1 2 13 15; do
1520 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1521done
1522ac_signal=0
1523
1524# confdefs.h avoids OS command line length limits that DEFS can exceed.
1525rm -rf conftest* confdefs.h
1526# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1527echo >confdefs.h
1528
1529# Predefined preprocessor variables.
1530
1531cat >>confdefs.h <<_ACEOF
1532#define PACKAGE_NAME "$PACKAGE_NAME"
1533_ACEOF
1534
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1538_ACEOF
1539
1540
1541cat >>confdefs.h <<_ACEOF
1542#define PACKAGE_VERSION "$PACKAGE_VERSION"
1543_ACEOF
1544
1545
1546cat >>confdefs.h <<_ACEOF
1547#define PACKAGE_STRING "$PACKAGE_STRING"
1548_ACEOF
1549
1550
1551cat >>confdefs.h <<_ACEOF
1552#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1553_ACEOF
1554
1555
1556# Let the site file select an alternate cache file if it wants to.
1557# Prefer explicitly selected file to automatically selected ones.
1558if test -z "$CONFIG_SITE"; then
1559 if test "x$prefix" != xNONE; then
1560 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1561 else
1562 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1563 fi
1564fi
1565for ac_site_file in $CONFIG_SITE; do
1566 if test -r "$ac_site_file"; then
1567 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1568echo "$as_me: loading site script $ac_site_file" >&6;}
1569 sed 's/^/| /' "$ac_site_file" >&5
1570 . "$ac_site_file"
1571 fi
1572done
1573
1574if test -r "$cache_file"; then
1575 # Some versions of bash will fail to source /dev/null (special
1576 # files actually), so we avoid doing that.
1577 if test -f "$cache_file"; then
1578 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1579echo "$as_me: loading cache $cache_file" >&6;}
1580 case $cache_file in
1581 [\\/]* | ?:[\\/]* ) . $cache_file;;
1582 *) . ./$cache_file;;
1583 esac
1584 fi
1585else
1586 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1587echo "$as_me: creating cache $cache_file" >&6;}
1588 >$cache_file
1589fi
1590
1591# Check that the precious variables saved in the cache have kept the same
1592# value.
1593ac_cache_corrupted=false
1594for ac_var in `(set) 2>&1 |
ac1cb8d3 1595 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1596 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1597 eval ac_new_set=\$ac_env_${ac_var}_set
1598 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1599 eval ac_new_val="\$ac_env_${ac_var}_value"
1600 case $ac_old_set,$ac_new_set in
1601 set,)
1602 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1603echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1604 ac_cache_corrupted=: ;;
1605 ,set)
1606 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1607echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1608 ac_cache_corrupted=: ;;
1609 ,);;
1610 *)
1611 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1612 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1613echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1614 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1615echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1616 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1617echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1618 ac_cache_corrupted=:
a848cd7e
SC
1619 fi;;
1620 esac
1621 # Pass precious variables to config.status.
1622 if test "$ac_new_set" = set; then
1623 case $ac_new_val in
1624 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1625 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1626 *) ac_arg=$ac_var=$ac_new_val ;;
1627 esac
1628 case " $ac_configure_args " in
1629 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1630 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1631 esac
1632 fi
1633done
1634if $ac_cache_corrupted; then
1635 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1636echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1637 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1638echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1639 { (exit 1); exit 1; }; }
1640fi
1641
1642ac_ext=c
1643ac_cpp='$CPP $CPPFLAGS'
1644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1646ac_compiler_gnu=$ac_cv_c_compiler_gnu
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677ac_aux_dir=
1678for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1679 if test -f $ac_dir/install-sh; then
1680 ac_aux_dir=$ac_dir
1681 ac_install_sh="$ac_aux_dir/install-sh -c"
1682 break
1683 elif test -f $ac_dir/install.sh; then
1684 ac_aux_dir=$ac_dir
1685 ac_install_sh="$ac_aux_dir/install.sh -c"
1686 break
1687 elif test -f $ac_dir/shtool; then
1688 ac_aux_dir=$ac_dir
1689 ac_install_sh="$ac_aux_dir/shtool install -c"
1690 break
1691 fi
1692done
1693if test -z "$ac_aux_dir"; then
1694 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1695echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1696 { (exit 1); exit 1; }; }
1697fi
1698ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1699ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1700ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1701
1702# Make sure we can run config.sub.
1703$ac_config_sub sun4 >/dev/null 2>&1 ||
1704 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1705echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1706 { (exit 1); exit 1; }; }
1707
1708echo "$as_me:$LINENO: checking build system type" >&5
1709echo $ECHO_N "checking build system type... $ECHO_C" >&6
1710if test "${ac_cv_build+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713 ac_cv_build_alias=$build_alias
1714test -z "$ac_cv_build_alias" &&
1715 ac_cv_build_alias=`$ac_config_guess`
1716test -z "$ac_cv_build_alias" &&
1717 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1718echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1719 { (exit 1); exit 1; }; }
1720ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1721 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1722echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1723 { (exit 1); exit 1; }; }
1724
1725fi
1726echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1727echo "${ECHO_T}$ac_cv_build" >&6
1728build=$ac_cv_build
1729build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1730build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1731build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1732
1733
1734echo "$as_me:$LINENO: checking host system type" >&5
1735echo $ECHO_N "checking host system type... $ECHO_C" >&6
1736if test "${ac_cv_host+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1738else
1739 ac_cv_host_alias=$host_alias
1740test -z "$ac_cv_host_alias" &&
1741 ac_cv_host_alias=$ac_cv_build_alias
1742ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1743 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1744echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1745 { (exit 1); exit 1; }; }
1746
1747fi
1748echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1749echo "${ECHO_T}$ac_cv_host" >&6
1750host=$ac_cv_host
1751host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1752host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1753host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1754
1755
1756echo "$as_me:$LINENO: checking target system type" >&5
1757echo $ECHO_N "checking target system type... $ECHO_C" >&6
1758if test "${ac_cv_target+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1760else
1761 ac_cv_target_alias=$target_alias
1762test "x$ac_cv_target_alias" = "x" &&
1763 ac_cv_target_alias=$ac_cv_host_alias
1764ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1765 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1766echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1767 { (exit 1); exit 1; }; }
1768
1769fi
1770echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1771echo "${ECHO_T}$ac_cv_target" >&6
1772target=$ac_cv_target
1773target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1774target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1775target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1776
1777
1778# The aliases save the names the user supplied, while $host etc.
1779# will get canonicalized.
1780test -n "$target_alias" &&
1781 test "$program_prefix$program_suffix$program_transform_name" = \
1782 NONENONEs,x,x, &&
1783 program_prefix=${target_alias}-
1784
1785
1786
ceec2216 1787wx_major_version_number=2
dd8df4fc 1788wx_minor_version_number=7
f1e3914f
RR
1789wx_release_number=1
1790wx_subrelease_number=0
a848cd7e 1791
ceec2216
RL
1792WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1793WX_VERSION=$WX_RELEASE.$wx_release_number
1794WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1795
ceec2216 1796WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1797
a848cd7e
SC
1798
1799
1800
1801USE_UNIX=1
1802USE_OS2=0
1803USE_WIN32=0
1804USE_DOS=0
1805USE_BEOS=0
1806USE_MAC=0
1807
1808USE_AIX=
1809USE_BSD= USE_DARWIN= USE_FREEBSD=
1810USE_GNU= USE_HPUX=
1811USE_LINUX=
1812USE_NETBSD=
1813USE_OPENBSD=
1814USE_OSF= USE_SGI=
1815USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1816USE_ULTRIX=
1817USE_UNIXWARE=
1818
1819USE_ALPHA=
1820
1821NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1822
b3c86150 1823ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1824
1825DEFAULT_wxUSE_COCOA=0
1826DEFAULT_wxUSE_GTK=0
1827DEFAULT_wxUSE_MAC=0
1828DEFAULT_wxUSE_MGL=0
1829DEFAULT_wxUSE_MICROWIN=0
1830DEFAULT_wxUSE_MOTIF=0
1831DEFAULT_wxUSE_MSW=0
1832DEFAULT_wxUSE_PM=0
1833DEFAULT_wxUSE_X11=0
b3c86150 1834DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1835
1836DEFAULT_DEFAULT_wxUSE_COCOA=0
1837DEFAULT_DEFAULT_wxUSE_GTK=0
1838DEFAULT_DEFAULT_wxUSE_MAC=0
1839DEFAULT_DEFAULT_wxUSE_MGL=0
1840DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1841DEFAULT_DEFAULT_wxUSE_MOTIF=0
1842DEFAULT_DEFAULT_wxUSE_MSW=0
1843DEFAULT_DEFAULT_wxUSE_PM=0
1844DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1845DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1846
1847PROGRAM_EXT=
1848SO_SUFFIX=so
1849SAMPLES_RPATH_FLAG=
1850SAMPLES_RPATH_POSTLINK=
1851
a03b8b04
RD
1852DEFAULT_STD_FLAG=yes
1853
a848cd7e
SC
1854case "${host}" in
1855 *-hp-hpux* )
1856 USE_HPUX=1
1857 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1858 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1859 SO_SUFFIX=sl
1860 cat >>confdefs.h <<\_ACEOF
1861#define __HPUX__ 1
1862_ACEOF
1863
2eef8513 1864
c92ad099 1865 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1866 ;;
1867 *-*-linux* )
1868 USE_LINUX=1
1869 cat >>confdefs.h <<\_ACEOF
1870#define __LINUX__ 1
1871_ACEOF
1872
1873 TMP=`uname -m`
1874 if test "x$TMP" = "xalpha"; then
1875 USE_ALPHA=1
1876 cat >>confdefs.h <<\_ACEOF
1877#define __ALPHA__ 1
1878_ACEOF
1879
1880 fi
1881 DEFAULT_DEFAULT_wxUSE_GTK=1
1882 ;;
1883 *-*-gnu* | *-*-k*bsd*-gnu )
1884 USE_GNU=1
1885 TMP=`uname -m`
1886 if test "x$TMP" = "xalpha"; then
1887 USE_ALPHA=1
1888 cat >>confdefs.h <<\_ACEOF
1889#define __ALPHA__ 1
1890_ACEOF
1891
1892 fi
1893 DEFAULT_DEFAULT_wxUSE_GTK=1
1894 ;;
1895 *-*-irix5* | *-*-irix6* )
1896 USE_SGI=1
1897 USE_SVR4=1
1898 cat >>confdefs.h <<\_ACEOF
1899#define __SGI__ 1
1900_ACEOF
1901
1902 cat >>confdefs.h <<\_ACEOF
1903#define __SVR4__ 1
1904_ACEOF
1905
1906 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1907 ;;
1908 *-*-solaris2* )
1909 USE_SUN=1
1910 USE_SOLARIS=1
1911 USE_SVR4=1
1912 cat >>confdefs.h <<\_ACEOF
1913#define __SUN__ 1
1914_ACEOF
1915
1916 cat >>confdefs.h <<\_ACEOF
1917#define __SOLARIS__ 1
1918_ACEOF
1919
1920 cat >>confdefs.h <<\_ACEOF
1921#define __SVR4__ 1
1922_ACEOF
1923
1924 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1925 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1926 ;;
1927 *-*-sunos4* )
1928 USE_SUN=1
1929 USE_SUNOS=1
1930 USE_BSD=1
1931 cat >>confdefs.h <<\_ACEOF
1932#define __SUN__ 1
1933_ACEOF
1934
1935 cat >>confdefs.h <<\_ACEOF
1936#define __SUNOS__ 1
1937_ACEOF
1938
1939 cat >>confdefs.h <<\_ACEOF
1940#define __BSD__ 1
1941_ACEOF
1942
1943 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1944 ;;
1945 *-*-freebsd*)
1946 USE_BSD=1
1947 USE_FREEBSD=1
1948 cat >>confdefs.h <<\_ACEOF
1949#define __FREEBSD__ 1
1950_ACEOF
1951
1952 cat >>confdefs.h <<\_ACEOF
1953#define __BSD__ 1
1954_ACEOF
1955
1956 DEFAULT_DEFAULT_wxUSE_GTK=1
1957 ;;
c9a66001 1958 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1959 USE_BSD=1
1960 USE_OPENBSD=1
1961 cat >>confdefs.h <<\_ACEOF
1962#define __OPENBSD__ 1
1963_ACEOF
1964
1965 cat >>confdefs.h <<\_ACEOF
1966#define __BSD__ 1
1967_ACEOF
1968
1969 DEFAULT_DEFAULT_wxUSE_GTK=1
1970 ;;
1971 *-*-netbsd*)
1972 USE_BSD=1
1973 USE_NETBSD=1
1974 cat >>confdefs.h <<\_ACEOF
1975#define __NETBSD__ 1
1976_ACEOF
1977
1978 cat >>confdefs.h <<\_ACEOF
1979#define __BSD__ 1
1980_ACEOF
1981
1982 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1983 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1984
def7c04a 1985 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1986 ;;
1987 *-*-osf* )
1988 USE_ALPHA=1
1989 USE_OSF=1
1990 cat >>confdefs.h <<\_ACEOF
1991#define __ALPHA__ 1
1992_ACEOF
1993
1994 cat >>confdefs.h <<\_ACEOF
1995#define __OSF__ 1
1996_ACEOF
1997
1998 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1999 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2000 ;;
2001 *-*-dgux5* )
2002 USE_ALPHA=1
2003 USE_SVR4=1
2004 cat >>confdefs.h <<\_ACEOF
2005#define __ALPHA__ 1
2006_ACEOF
2007
2008 cat >>confdefs.h <<\_ACEOF
2009#define __SVR4__ 1
2010_ACEOF
2011
2012 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2013 ;;
2014 *-*-sysv5* )
2015 USE_SYSV=1
2016 USE_SVR4=1
2017 cat >>confdefs.h <<\_ACEOF
2018#define __SYSV__ 1
2019_ACEOF
2020
2021 cat >>confdefs.h <<\_ACEOF
2022#define __SVR4__ 1
2023_ACEOF
2024
2025 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2026 ;;
2027 *-*-aix* )
2028 USE_AIX=1
2029 USE_SYSV=1
2030 USE_SVR4=1
2031 SO_SUFFIX=a
2032 cat >>confdefs.h <<\_ACEOF
2033#define __AIX__ 1
2034_ACEOF
2035
2036 cat >>confdefs.h <<\_ACEOF
2037#define __SYSV__ 1
2038_ACEOF
2039
2040 cat >>confdefs.h <<\_ACEOF
2041#define __SVR4__ 1
2042_ACEOF
2043
2044 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2045 ;;
2046
2047 *-*-*UnixWare*)
2048 USE_SYSV=1
2049 USE_SVR4=1
2050 USE_UNIXWARE=1
2051 cat >>confdefs.h <<\_ACEOF
2052#define __UNIXWARE__ 1
2053_ACEOF
2054
2055 ;;
2056
2057 *-*-cygwin* | *-*-mingw32* )
2058 SO_SUFFIX=dll
2059 PROGRAM_EXT=".exe"
a848cd7e 2060 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 2061 DEFAULT_STD_FLAG=no
a848cd7e
SC
2062 ;;
2063
2064 *-pc-msdosdjgpp )
2065 USE_UNIX=0
2066 USE_DOS=1
2067 cat >>confdefs.h <<\_ACEOF
2068#define __DOS__ 1
2069_ACEOF
2070
2071 PROGRAM_EXT=".exe"
2072 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2073 ;;
2074
2075 *-pc-os2_emx | *-pc-os2-emx )
2076 cat >>confdefs.h <<\_ACEOF
2077#define __EMX__ 1
2078_ACEOF
2079
2080 USE_OS2=1
2081 cat >>confdefs.h <<\_ACEOF
2082#define __OS2__ 1
2083_ACEOF
2084
2085 PROGRAM_EXT=".exe"
2086 DEFAULT_DEFAULT_wxUSE_PM=1
2087 CXX=gcc
2088 LDFLAGS="$LDFLAGS -Zcrtdll"
2089 ac_executable_extensions=".exe"
2090 export ac_executable_extensions
2091 ac_save_IFS="$IFS"
2092 IFS='\\'
2093 ac_TEMP_PATH=
2094 for ac_dir in $PATH; do
2095 IFS=$ac_save_IFS
2096 if test -z "$ac_TEMP_PATH"; then
2097 ac_TEMP_PATH="$ac_dir"
2098 else
2099 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2100 fi
2101 done
2102 export PATH="$ac_TEMP_PATH"
2103 unset ac_TEMP_PATH
a03b8b04 2104 DEFAULT_STD_FLAG=no
a848cd7e
SC
2105 ;;
2106
cfda0ea8 2107 *-*-darwin* )
a848cd7e
SC
2108 USE_BSD=1
2109 USE_DARWIN=1
2110 SO_SUFFIX=dylib
2111 cat >>confdefs.h <<\_ACEOF
2112#define __BSD__ 1
2113_ACEOF
2114
2115 cat >>confdefs.h <<\_ACEOF
2116#define __DARWIN__ 1
a848cd7e
SC
2117_ACEOF
2118
2119 cat >>confdefs.h <<\_ACEOF
2120#define TARGET_CARBON 1
2121_ACEOF
2122
2123 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2124 DEFAULT_STD_FLAG=no
a848cd7e 2125 ;;
1e9e8aba
DE
2126 powerpc-apple-macos* )
2127 USE_UNIX=0
2128 ac_cv_c_bigendian=yes
2129 SO_SUFFIX=shlib
2130 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2131 DEFAULT_STD_FLAG=no
1e9e8aba 2132 ;;
a848cd7e
SC
2133
2134 *-*-beos* )
2135 USE_BEOS=1
2136 cat >>confdefs.h <<\_ACEOF
2137#define __BEOS__ 1
2138_ACEOF
2139
2140 ;;
2141
2142 *)
c9a66001
VZ
2143 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2144echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2145 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2146echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2147
2148 DEFAULT_DEFAULT_wxUSE_X11=1
2149 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2150esac
2151
2152
2153
2154
2155 wx_arg_cache_file="configarg.cache"
2156 echo "loading argument cache $wx_arg_cache_file"
2157 rm -f ${wx_arg_cache_file}.tmp
2158 touch ${wx_arg_cache_file}.tmp
2159 touch ${wx_arg_cache_file}
2160
2161
2162DEBUG_CONFIGURE=0
2163if test $DEBUG_CONFIGURE = 1; then
2164 DEFAULT_wxUSE_UNIVERSAL=no
2165 DEFAULT_wxUSE_STL=no
2166
2167 DEFAULT_wxUSE_NANOX=no
2168
2169 DEFAULT_wxUSE_THREADS=yes
2170
5acfd58d 2171 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2172 DEFAULT_wxUSE_OPTIMISE=no
2173 DEFAULT_wxUSE_PROFILE=no
2174 DEFAULT_wxUSE_NO_DEPS=no
2175 DEFAULT_wxUSE_NO_RTTI=no
2176 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2177 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2178 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2179 DEFAULT_wxUSE_PERMISSIVE=no
2180 DEFAULT_wxUSE_DEBUG_FLAG=yes
2181 DEFAULT_wxUSE_DEBUG_INFO=yes
2182 DEFAULT_wxUSE_DEBUG_GDB=yes
2183 DEFAULT_wxUSE_MEM_TRACING=no
2184 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2185 DEFAULT_wxUSE_DMALLOC=no
2186 DEFAULT_wxUSE_APPLE_IEEE=no
2187
2188 DEFAULT_wxUSE_EXCEPTIONS=no
2189 DEFAULT_wxUSE_LOG=yes
2190 DEFAULT_wxUSE_LOGWINDOW=no
2191 DEFAULT_wxUSE_LOGGUI=no
2192 DEFAULT_wxUSE_LOGDIALOG=no
2193
2194 DEFAULT_wxUSE_GUI=yes
2195 DEFAULT_wxUSE_CONTROLS=no
2196
2197 DEFAULT_wxUSE_REGEX=no
2198 DEFAULT_wxUSE_XML=no
2199 DEFAULT_wxUSE_EXPAT=no
2200 DEFAULT_wxUSE_ZLIB=no
2201 DEFAULT_wxUSE_LIBPNG=no
2202 DEFAULT_wxUSE_LIBJPEG=no
2203 DEFAULT_wxUSE_LIBTIFF=no
2204 DEFAULT_wxUSE_LIBXPM=no
2205 DEFAULT_wxUSE_LIBMSPACK=no
2206 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2207 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2208 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2209 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2210 DEFAULT_wxUSE_ODBC=no
2211 DEFAULT_wxUSE_OPENGL=no
2212
2213 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2214 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2215 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2216 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2217 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2218 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2219 DEFAULT_wxUSE_CMDLINE_PARSER=no
2220 DEFAULT_wxUSE_DATETIME=no
2221 DEFAULT_wxUSE_TIMER=no
2222 DEFAULT_wxUSE_STOPWATCH=no
2223 DEFAULT_wxUSE_FILE=no
2224 DEFAULT_wxUSE_FFILE=no
07158944 2225 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2226 DEFAULT_wxUSE_TEXTBUFFER=no
2227 DEFAULT_wxUSE_TEXTFILE=no
2228 DEFAULT_wxUSE_SOUND=no
3b57de8b 2229 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2230 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2231 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2232 DEFAULT_wxUSE_INTL=no
2233 DEFAULT_wxUSE_CONFIG=no
2234 DEFAULT_wxUSE_FONTMAP=no
2235 DEFAULT_wxUSE_STREAMS=no
2236 DEFAULT_wxUSE_SOCKETS=no
2237 DEFAULT_wxUSE_OLE=no
2238 DEFAULT_wxUSE_DATAOBJ=no
2239 DEFAULT_wxUSE_DIALUP_MANAGER=no
2240 DEFAULT_wxUSE_JOYSTICK=no
2241 DEFAULT_wxUSE_DYNLIB_CLASS=no
2242 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2243 DEFAULT_wxUSE_LONGLONG=no
2244 DEFAULT_wxUSE_GEOMETRY=no
2245
2246 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2247 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2248 DEFAULT_wxUSE_POSTSCRIPT=no
2249
2250 DEFAULT_wxUSE_CLIPBOARD=no
2251 DEFAULT_wxUSE_TOOLTIPS=no
2252 DEFAULT_wxUSE_DRAG_AND_DROP=no
2253 DEFAULT_wxUSE_DRAGIMAGE=no
2254 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2255 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2256
8a7b1113 2257 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2258 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2259 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2260 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2261
2262 DEFAULT_wxUSE_RESOURCES=no
2263 DEFAULT_wxUSE_CONSTRAINTS=no
2264 DEFAULT_wxUSE_IPC=no
2265 DEFAULT_wxUSE_HELP=no
2266 DEFAULT_wxUSE_MS_HTML_HELP=no
2267 DEFAULT_wxUSE_WXHTML_HELP=no
2268 DEFAULT_wxUSE_TREELAYOUT=no
2269 DEFAULT_wxUSE_METAFILE=no
2270 DEFAULT_wxUSE_MIMETYPE=no
2271 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2272 DEFAULT_wxUSE_PROTOCOL=no
2273 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2274 DEFAULT_wxUSE_PROTOCOL_FTP=no
2275 DEFAULT_wxUSE_PROTOCOL_FILE=no
2276 DEFAULT_wxUSE_URL=no
ca5c6ac3 2277 DEFAULT_wxUSE_VARIANT=no
a848cd7e 2278
319c5ed4 2279 DEFAULT_wxUSE_ABOUTDLG=no
a848cd7e
SC
2280 DEFAULT_wxUSE_COMMONDLGS=no
2281 DEFAULT_wxUSE_CHOICEDLG=no
2282 DEFAULT_wxUSE_COLOURDLG=no
2283 DEFAULT_wxUSE_DIRDLG=no
2284 DEFAULT_wxUSE_FILEDLG=no
2285 DEFAULT_wxUSE_FINDREPLDLG=no
2286 DEFAULT_wxUSE_FONTDLG=no
2287 DEFAULT_wxUSE_MSGDLG=no
2288 DEFAULT_wxUSE_NUMBERDLG=no
2289 DEFAULT_wxUSE_TEXTDLG=no
2290 DEFAULT_wxUSE_SPLASH=no
2291 DEFAULT_wxUSE_STARTUP_TIPS=no
2292 DEFAULT_wxUSE_PROGRESSDLG=no
2293 DEFAULT_wxUSE_WIZARDDLG=no
2294
2295 DEFAULT_wxUSE_MENUS=no
2296 DEFAULT_wxUSE_MINIFRAME=no
2297 DEFAULT_wxUSE_HTML=no
91dea314 2298 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2299 DEFAULT_wxUSE_XRC=no
3f60522a 2300 DEFAULT_wxUSE_AUI=no
646b6ec1 2301 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2302 DEFAULT_wxUSE_FILESYSTEM=no
2303 DEFAULT_wxUSE_FS_INET=no
2304 DEFAULT_wxUSE_FS_ZIP=no
2305 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2306 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2307 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2308 DEFAULT_wxUSE_VALIDATORS=no
2309
2310 DEFAULT_wxUSE_ACCEL=no
3ea50042 2311 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
2312 DEFAULT_wxUSE_BUTTON=no
2313 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2314 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2315 DEFAULT_wxUSE_CALCTRL=no
2316 DEFAULT_wxUSE_CARET=no
2317 DEFAULT_wxUSE_CHECKBOX=no
2318 DEFAULT_wxUSE_CHECKLST=no
2319 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2320 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2321 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2322 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2323 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2324 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2325 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2326 DEFAULT_wxUSE_DIRPICKERCTRL=no
2327 DEFAULT_wxUSE_FILEPICKERCTRL=no
2328 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e 2329 DEFAULT_wxUSE_GAUGE=no
f43426c1 2330 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
a848cd7e 2331 DEFAULT_wxUSE_GRID=no
6954625c 2332 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2333 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2334 DEFAULT_wxUSE_IMAGLIST=no
2335 DEFAULT_wxUSE_LISTBOOK=no
2336 DEFAULT_wxUSE_LISTBOX=no
2337 DEFAULT_wxUSE_LISTCTRL=no
2338 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2339 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2340 DEFAULT_wxUSE_RADIOBOX=no
2341 DEFAULT_wxUSE_RADIOBTN=no
2342 DEFAULT_wxUSE_SASH=no
2343 DEFAULT_wxUSE_SCROLLBAR=no
2344 DEFAULT_wxUSE_SLIDER=no
2345 DEFAULT_wxUSE_SPINBTN=no
2346 DEFAULT_wxUSE_SPINCTRL=no
2347 DEFAULT_wxUSE_SPLITTER=no
2348 DEFAULT_wxUSE_STATBMP=no
2349 DEFAULT_wxUSE_STATBOX=no
2350 DEFAULT_wxUSE_STATLINE=no
2351 DEFAULT_wxUSE_STATTEXT=no
2352 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2353 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2354 DEFAULT_wxUSE_TEXTCTRL=no
2355 DEFAULT_wxUSE_TOGGLEBTN=no
2356 DEFAULT_wxUSE_TOOLBAR=no
2357 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2358 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2359 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2360 DEFAULT_wxUSE_TREECTRL=no
2361 DEFAULT_wxUSE_POPUPWIN=no
2362 DEFAULT_wxUSE_TIPWINDOW=no
2363
2364 DEFAULT_wxUSE_UNICODE=no
2365 DEFAULT_wxUSE_UNICODE_MSLU=no
2366 DEFAULT_wxUSE_WCSRTOMBS=no
2367
2368 DEFAULT_wxUSE_PALETTE=no
2369 DEFAULT_wxUSE_IMAGE=no
2370 DEFAULT_wxUSE_GIF=no
2371 DEFAULT_wxUSE_PCX=no
2372 DEFAULT_wxUSE_PNM=no
2373 DEFAULT_wxUSE_IFF=no
2374 DEFAULT_wxUSE_XPM=no
2375 DEFAULT_wxUSE_ICO_CUR=no
2376 DEFAULT_wxUSE_ACCESSIBILITY=no
2377
2378 DEFAULT_wxUSE_MONOLITHIC=no
2379 DEFAULT_wxUSE_PLUGINS=no
2380 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2381else
2382 DEFAULT_wxUSE_UNIVERSAL=no
2383 DEFAULT_wxUSE_STL=no
2384
2385 DEFAULT_wxUSE_NANOX=no
2386
2387 DEFAULT_wxUSE_THREADS=yes
2388
5acfd58d 2389 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2390 DEFAULT_wxUSE_OPTIMISE=yes
2391 DEFAULT_wxUSE_PROFILE=no
2392 DEFAULT_wxUSE_NO_DEPS=no
2393 DEFAULT_wxUSE_NO_RTTI=no
2394 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2395 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2396 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2397 DEFAULT_wxUSE_PERMISSIVE=no
2398 DEFAULT_wxUSE_DEBUG_FLAG=no
2399 DEFAULT_wxUSE_DEBUG_INFO=no
2400 DEFAULT_wxUSE_DEBUG_GDB=no
2401 DEFAULT_wxUSE_MEM_TRACING=no
2402 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2403 DEFAULT_wxUSE_DMALLOC=no
2404 DEFAULT_wxUSE_APPLE_IEEE=yes
2405
2406 DEFAULT_wxUSE_EXCEPTIONS=yes
2407 DEFAULT_wxUSE_LOG=yes
2408 DEFAULT_wxUSE_LOGWINDOW=yes
2409 DEFAULT_wxUSE_LOGGUI=yes
2410 DEFAULT_wxUSE_LOGDIALOG=yes
2411
2412 DEFAULT_wxUSE_GUI=yes
2413
2414 DEFAULT_wxUSE_REGEX=yes
2415 DEFAULT_wxUSE_XML=yes
2416 DEFAULT_wxUSE_EXPAT=yes
2417 DEFAULT_wxUSE_ZLIB=yes
2418 DEFAULT_wxUSE_LIBPNG=yes
2419 DEFAULT_wxUSE_LIBJPEG=yes
2420 DEFAULT_wxUSE_LIBTIFF=yes
2421 DEFAULT_wxUSE_LIBXPM=yes
2422 DEFAULT_wxUSE_LIBMSPACK=yes
2423 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2424 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2425 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2426 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2427 DEFAULT_wxUSE_ODBC=no
52cb607e 2428 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2429
2430 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2431 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2432 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2433 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2434 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2435 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2436 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2437 DEFAULT_wxUSE_DATETIME=yes
2438 DEFAULT_wxUSE_TIMER=yes
2439 DEFAULT_wxUSE_STOPWATCH=yes
2440 DEFAULT_wxUSE_FILE=yes
2441 DEFAULT_wxUSE_FFILE=yes
07158944 2442 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2443 DEFAULT_wxUSE_TEXTBUFFER=yes
2444 DEFAULT_wxUSE_TEXTFILE=yes
2445 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2446 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2447 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2448 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2449 DEFAULT_wxUSE_INTL=yes
2450 DEFAULT_wxUSE_CONFIG=yes
2451 DEFAULT_wxUSE_FONTMAP=yes
2452 DEFAULT_wxUSE_STREAMS=yes
2453 DEFAULT_wxUSE_SOCKETS=yes
2454 DEFAULT_wxUSE_OLE=yes
2455 DEFAULT_wxUSE_DATAOBJ=yes
2456 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2457 DEFAULT_wxUSE_JOYSTICK=yes
2458 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2459 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2460 DEFAULT_wxUSE_LONGLONG=yes
2461 DEFAULT_wxUSE_GEOMETRY=yes
2462
2463 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2464 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2465 DEFAULT_wxUSE_POSTSCRIPT=yes
2466
2467 DEFAULT_wxUSE_CLIPBOARD=yes
2468 DEFAULT_wxUSE_TOOLTIPS=yes
2469 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2470 DEFAULT_wxUSE_DRAGIMAGE=yes
2471 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2472 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2473
8a7b1113 2474 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2475 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2476 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2477 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2478
2479 DEFAULT_wxUSE_RESOURCES=no
2480 DEFAULT_wxUSE_CONSTRAINTS=yes
2481 DEFAULT_wxUSE_IPC=yes
2482 DEFAULT_wxUSE_HELP=yes
2483 DEFAULT_wxUSE_MS_HTML_HELP=yes
2484 DEFAULT_wxUSE_WXHTML_HELP=yes
2485 DEFAULT_wxUSE_TREELAYOUT=yes
2486 DEFAULT_wxUSE_METAFILE=yes
2487 DEFAULT_wxUSE_MIMETYPE=yes
2488 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2489 DEFAULT_wxUSE_PROTOCOL=yes
2490 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2491 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2492 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2493 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2494 DEFAULT_wxUSE_VARIANT=yes
a848cd7e 2495
319c5ed4 2496 DEFAULT_wxUSE_ABOUTDLG=yes
a848cd7e
SC
2497 DEFAULT_wxUSE_COMMONDLGS=yes
2498 DEFAULT_wxUSE_CHOICEDLG=yes
2499 DEFAULT_wxUSE_COLOURDLG=yes
2500 DEFAULT_wxUSE_DIRDLG=yes
2501 DEFAULT_wxUSE_FILEDLG=yes
2502 DEFAULT_wxUSE_FINDREPLDLG=yes
2503 DEFAULT_wxUSE_FONTDLG=yes
2504 DEFAULT_wxUSE_MSGDLG=yes
2505 DEFAULT_wxUSE_NUMBERDLG=yes
2506 DEFAULT_wxUSE_TEXTDLG=yes
2507 DEFAULT_wxUSE_SPLASH=yes
2508 DEFAULT_wxUSE_STARTUP_TIPS=yes
2509 DEFAULT_wxUSE_PROGRESSDLG=yes
2510 DEFAULT_wxUSE_WIZARDDLG=yes
2511
2512 DEFAULT_wxUSE_MENUS=yes
2513 DEFAULT_wxUSE_MINIFRAME=yes
2514 DEFAULT_wxUSE_HTML=yes
91dea314 2515 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2516 DEFAULT_wxUSE_XRC=yes
3f60522a 2517 DEFAULT_wxUSE_AUI=yes
646b6ec1 2518 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2519 DEFAULT_wxUSE_FILESYSTEM=yes
2520 DEFAULT_wxUSE_FS_INET=yes
2521 DEFAULT_wxUSE_FS_ZIP=yes
2522 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2523 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2524 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2525 DEFAULT_wxUSE_VALIDATORS=yes
2526
2527 DEFAULT_wxUSE_ACCEL=yes
3ea50042 2528 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
2529 DEFAULT_wxUSE_BUTTON=yes
2530 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2531 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2532 DEFAULT_wxUSE_CALCTRL=yes
2533 DEFAULT_wxUSE_CARET=yes
2534 DEFAULT_wxUSE_CHECKBOX=yes
2535 DEFAULT_wxUSE_CHECKLST=yes
2536 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2537 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2538 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2539 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2540 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2541 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2542 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2543 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2544 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2545 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2546 DEFAULT_wxUSE_GAUGE=yes
2547 DEFAULT_wxUSE_GRID=yes
f43426c1 2548 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
6954625c 2549 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2550 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2551 DEFAULT_wxUSE_IMAGLIST=yes
2552 DEFAULT_wxUSE_LISTBOOK=yes
2553 DEFAULT_wxUSE_LISTBOX=yes
2554 DEFAULT_wxUSE_LISTCTRL=yes
2555 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2556 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2557 DEFAULT_wxUSE_RADIOBOX=yes
2558 DEFAULT_wxUSE_RADIOBTN=yes
2559 DEFAULT_wxUSE_SASH=yes
2560 DEFAULT_wxUSE_SCROLLBAR=yes
2561 DEFAULT_wxUSE_SLIDER=yes
2562 DEFAULT_wxUSE_SPINBTN=yes
2563 DEFAULT_wxUSE_SPINCTRL=yes
2564 DEFAULT_wxUSE_SPLITTER=yes
2565 DEFAULT_wxUSE_STATBMP=yes
2566 DEFAULT_wxUSE_STATBOX=yes
2567 DEFAULT_wxUSE_STATLINE=yes
2568 DEFAULT_wxUSE_STATTEXT=yes
2569 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2570 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2571 DEFAULT_wxUSE_TEXTCTRL=yes
2572 DEFAULT_wxUSE_TOGGLEBTN=yes
2573 DEFAULT_wxUSE_TOOLBAR=yes
2574 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2575 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2576 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2577 DEFAULT_wxUSE_TREECTRL=yes
2578 DEFAULT_wxUSE_POPUPWIN=yes
2579 DEFAULT_wxUSE_TIPWINDOW=yes
2580
78de529b 2581 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2582 DEFAULT_wxUSE_UNICODE_MSLU=yes
2583 DEFAULT_wxUSE_WCSRTOMBS=no
2584
2585 DEFAULT_wxUSE_PALETTE=yes
2586 DEFAULT_wxUSE_IMAGE=yes
2587 DEFAULT_wxUSE_GIF=yes
2588 DEFAULT_wxUSE_PCX=yes
2589 DEFAULT_wxUSE_IFF=no
2590 DEFAULT_wxUSE_PNM=yes
2591 DEFAULT_wxUSE_XPM=yes
2592 DEFAULT_wxUSE_ICO_CUR=yes
2593 DEFAULT_wxUSE_ACCESSIBILITY=no
2594
2595 DEFAULT_wxUSE_MONOLITHIC=no
2596 DEFAULT_wxUSE_PLUGINS=no
2597 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2598
f34ca037 2599 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2600fi
2601
2602
2603
f34ca037 2604
a848cd7e
SC
2605for toolkit in `echo $ALL_TOOLKITS`; do
2606 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2607 if test "x$LINE" != "x" ; then
2608 has_toolkit_in_cache=1
2609 eval "DEFAULT_$LINE"
2610 eval "CACHE_$toolkit=1"
f34ca037
MW
2611
2612 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2613 if test "x$LINE" != "x" ; then
2614 eval "DEFAULT_$LINE"
2615 fi
a848cd7e
SC
2616 fi
2617done
2618
2619
2620
2621 enablestring=
2622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2623echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2624 no_cache=0
2625 # Check whether --enable-gui or --disable-gui was given.
2626if test "${enable_gui+set}" = set; then
2627 enableval="$enable_gui"
2628
2629 if test "$enableval" = yes; then
2630 ac_cv_use_gui='wxUSE_GUI=yes'
2631 else
2632 ac_cv_use_gui='wxUSE_GUI=no'
2633 fi
2634
2635else
2636
2637 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2638 if test "x$LINE" != x ; then
2639 eval "DEFAULT_$LINE"
2640 else
2641 no_cache=1
2642 fi
2643
2644 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2645
2646fi;
2647
2648 eval "$ac_cv_use_gui"
2649 if test "$no_cache" != 1; then
2650 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2651 fi
2652
2653 if test "$wxUSE_GUI" = yes; then
2654 echo "$as_me:$LINENO: result: yes" >&5
2655echo "${ECHO_T}yes" >&6
2656 else
2657 echo "$as_me:$LINENO: result: no" >&5
2658echo "${ECHO_T}no" >&6
2659 fi
2660
2661
2662 enablestring=
2663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2664echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2665 no_cache=0
2666 # Check whether --enable-monolithic or --disable-monolithic was given.
2667if test "${enable_monolithic+set}" = set; then
2668 enableval="$enable_monolithic"
2669
2670 if test "$enableval" = yes; then
2671 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2672 else
2673 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2674 fi
2675
2676else
2677
2678 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2679 if test "x$LINE" != x ; then
2680 eval "DEFAULT_$LINE"
2681 else
2682 no_cache=1
2683 fi
2684
2685 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2686
2687fi;
2688
2689 eval "$ac_cv_use_monolithic"
2690 if test "$no_cache" != 1; then
2691 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2692 fi
2693
2694 if test "$wxUSE_MONOLITHIC" = yes; then
2695 echo "$as_me:$LINENO: result: yes" >&5
2696echo "${ECHO_T}yes" >&6
2697 else
2698 echo "$as_me:$LINENO: result: no" >&5
2699echo "${ECHO_T}no" >&6
2700 fi
2701
2702
2703 enablestring=
2704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2705echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2706 no_cache=0
2707 # Check whether --enable-plugins or --disable-plugins was given.
2708if test "${enable_plugins+set}" = set; then
2709 enableval="$enable_plugins"
2710
2711 if test "$enableval" = yes; then
2712 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2713 else
2714 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2715 fi
2716
2717else
2718
2719 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2720 if test "x$LINE" != x ; then
2721 eval "DEFAULT_$LINE"
2722 else
2723 no_cache=1
2724 fi
2725
2726 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2727
2728fi;
2729
2730 eval "$ac_cv_use_plugins"
2731 if test "$no_cache" != 1; then
2732 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2733 fi
2734
2735 if test "$wxUSE_PLUGINS" = yes; then
2736 echo "$as_me:$LINENO: result: yes" >&5
2737echo "${ECHO_T}yes" >&6
2738 else
2739 echo "$as_me:$LINENO: result: no" >&5
2740echo "${ECHO_T}no" >&6
2741 fi
2742
2743
1c14217d
VZ
2744 withstring=without
2745 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2746echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2747 no_cache=0
2748
2749# Check whether --with-subdirs or --without-subdirs was given.
2750if test "${with_subdirs+set}" = set; then
2751 withval="$with_subdirs"
2752
2753 if test "$withval" = yes; then
2754 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2755 else
2756 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2757 fi
2758
2759else
2760
2761 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2762 if test "x$LINE" != x ; then
2763 eval "DEFAULT_$LINE"
2764 else
2765 no_cache=1
2766 fi
2767
2768 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2769
2770fi;
2771
2772 eval "$ac_cv_use_subdirs"
2773 if test "$no_cache" != 1; then
2774 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2775 fi
2776
2777 if test "$wxWITH_SUBDIRS" = yes; then
2778 echo "$as_me:$LINENO: result: yes" >&5
2779echo "${ECHO_T}yes" >&6
2780 else
2781 echo "$as_me:$LINENO: result: no" >&5
2782echo "${ECHO_T}no" >&6
2783 fi
2784
2785
a848cd7e
SC
2786if test "$wxUSE_GUI" = "yes"; then
2787
2788
2789 enablestring=
2790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2791echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2792 no_cache=0
2793 # Check whether --enable-universal or --disable-universal was given.
2794if test "${enable_universal+set}" = set; then
2795 enableval="$enable_universal"
2796
2797 if test "$enableval" = yes; then
2798 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2799 else
2800 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2801 fi
2802
2803else
2804
2805 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2806 if test "x$LINE" != x ; then
2807 eval "DEFAULT_$LINE"
2808 else
2809 no_cache=1
2810 fi
2811
2812 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2813
2814fi;
2815
2816 eval "$ac_cv_use_universal"
2817 if test "$no_cache" != 1; then
2818 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2819 fi
2820
2821 if test "$wxUSE_UNIVERSAL" = yes; then
2822 echo "$as_me:$LINENO: result: yes" >&5
2823echo "${ECHO_T}yes" >&6
2824 else
2825 echo "$as_me:$LINENO: result: no" >&5
2826echo "${ECHO_T}no" >&6
2827 fi
2828
2829
2830# Check whether --with-gtk or --without-gtk was given.
2831if test "${with_gtk+set}" = set; then
2832 withval="$with_gtk"
2833 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2834fi;
2835
2836# Check whether --with-motif or --without-motif was given.
2837if test "${with_motif+set}" = set; then
2838 withval="$with_motif"
2839 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2840fi;
2841
2842# Check whether --with-mac or --without-mac was given.
2843if test "${with_mac+set}" = set; then
2844 withval="$with_mac"
c228d3a4 2845 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2846fi;
2847
2848# Check whether --with-cocoa or --without-cocoa was given.
2849if test "${with_cocoa+set}" = set; then
2850 withval="$with_cocoa"
c228d3a4 2851 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2852fi;
2853
2854# Check whether --with-wine or --without-wine was given.
2855if test "${with_wine+set}" = set; then
2856 withval="$with_wine"
2857 wxUSE_WINE="$withval" CACHE_WINE=1
2858fi;
2859
2860# Check whether --with-msw or --without-msw was given.
2861if test "${with_msw+set}" = set; then
2862 withval="$with_msw"
2863 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2864fi;
2865
2866# Check whether --with-pm or --without-pm was given.
2867if test "${with_pm+set}" = set; then
2868 withval="$with_pm"
2869 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2870fi;
2871
2872# Check whether --with-mgl or --without-mgl was given.
2873if test "${with_mgl+set}" = set; then
2874 withval="$with_mgl"
2875 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2876fi;
2877
b3c86150
VS
2878# Check whether --with-directfb or --without-directfb was given.
2879if test "${with_directfb+set}" = set; then
2880 withval="$with_directfb"
2881 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2882fi;
2883
a848cd7e
SC
2884# Check whether --with-microwin or --without-microwin was given.
2885if test "${with_microwin+set}" = set; then
2886 withval="$with_microwin"
2887 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2888fi;
2889
2890# Check whether --with-x11 or --without-x11 was given.
2891if test "${with_x11+set}" = set; then
2892 withval="$with_x11"
2893 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2894fi;
2895
2896 enablestring=
2897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2898echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2899 no_cache=0
2900 # Check whether --enable-nanox or --disable-nanox was given.
2901if test "${enable_nanox+set}" = set; then
2902 enableval="$enable_nanox"
2903
2904 if test "$enableval" = yes; then
2905 ac_cv_use_nanox='wxUSE_NANOX=yes'
2906 else
2907 ac_cv_use_nanox='wxUSE_NANOX=no'
2908 fi
2909
2910else
2911
2912 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2913 if test "x$LINE" != x ; then
2914 eval "DEFAULT_$LINE"
2915 else
2916 no_cache=1
2917 fi
2918
2919 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2920
2921fi;
2922
2923 eval "$ac_cv_use_nanox"
2924 if test "$no_cache" != 1; then
2925 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2926 fi
2927
2928 if test "$wxUSE_NANOX" = yes; then
2929 echo "$as_me:$LINENO: result: yes" >&5
2930echo "${ECHO_T}yes" >&6
2931 else
2932 echo "$as_me:$LINENO: result: no" >&5
2933echo "${ECHO_T}no" >&6
2934 fi
2935
2936
f34ca037
MW
2937# Check whether --enable-gtk2 or --disable-gtk2 was given.
2938if test "${enable_gtk2+set}" = set; then
2939 enableval="$enable_gtk2"
2940 wxUSE_GTK2="$enableval"
2941fi;
a848cd7e 2942
a848cd7e
SC
2943 enablestring=
2944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2945echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2946 no_cache=0
2947 # Check whether --enable-gpe or --disable-gpe was given.
2948if test "${enable_gpe+set}" = set; then
2949 enableval="$enable_gpe"
2950
2951 if test "$enableval" = yes; then
2952 ac_cv_use_gpe='wxUSE_GPE=yes'
2953 else
2954 ac_cv_use_gpe='wxUSE_GPE=no'
2955 fi
2956
2957else
2958
2959 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2960 if test "x$LINE" != x ; then
2961 eval "DEFAULT_$LINE"
2962 else
2963 no_cache=1
2964 fi
2965
2966 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2967
2968fi;
2969
2970 eval "$ac_cv_use_gpe"
2971 if test "$no_cache" != 1; then
2972 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2973 fi
2974
2975 if test "$wxUSE_GPE" = yes; then
2976 echo "$as_me:$LINENO: result: yes" >&5
2977echo "${ECHO_T}yes" >&6
2978 else
2979 echo "$as_me:$LINENO: result: no" >&5
2980echo "${ECHO_T}no" >&6
2981 fi
2982
2983
2984
2985 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2986echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2987 no_cache=0
2988
2989# Check whether --with-libpng or --without-libpng was given.
2990if test "${with_libpng+set}" = set; then
2991 withval="$with_libpng"
2992
2993 if test "$withval" = yes; then
2994 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2995 elif test "$withval" = no; then
2996 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2997 elif test "$withval" = sys; then
2998 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2999 elif test "$withval" = builtin; then
3000 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3001 else
3002 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3003echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3004 { (exit 1); exit 1; }; }
3005 fi
3006
3007else
3008
3009 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3010 if test "x$LINE" != x ; then
3011 eval "DEFAULT_$LINE"
3012 else
3013 no_cache=1
3014 fi
3015
3016 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3017
3018fi;
3019
3020 eval "$ac_cv_use_libpng"
3021 if test "$no_cache" != 1; then
3022 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3023 fi
3024
3025 if test "$wxUSE_LIBPNG" = yes; then
3026 echo "$as_me:$LINENO: result: yes" >&5
3027echo "${ECHO_T}yes" >&6
3028 elif test "$wxUSE_LIBPNG" = no; then
3029 echo "$as_me:$LINENO: result: no" >&5
3030echo "${ECHO_T}no" >&6
3031 elif test "$wxUSE_LIBPNG" = sys; then
3032 echo "$as_me:$LINENO: result: system version" >&5
3033echo "${ECHO_T}system version" >&6
3034 elif test "$wxUSE_LIBPNG" = builtin; then
3035 echo "$as_me:$LINENO: result: builtin version" >&5
3036echo "${ECHO_T}builtin version" >&6
3037 else
3038 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3039echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3040 { (exit 1); exit 1; }; }
3041 fi
3042
3043
3044 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3045echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3046 no_cache=0
3047
3048# Check whether --with-libjpeg or --without-libjpeg was given.
3049if test "${with_libjpeg+set}" = set; then
3050 withval="$with_libjpeg"
3051
3052 if test "$withval" = yes; then
3053 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3054 elif test "$withval" = no; then
3055 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3056 elif test "$withval" = sys; then
3057 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3058 elif test "$withval" = builtin; then
3059 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3060 else
3061 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3062echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3063 { (exit 1); exit 1; }; }
3064 fi
3065
3066else
3067
3068 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3069 if test "x$LINE" != x ; then
3070 eval "DEFAULT_$LINE"
3071 else
3072 no_cache=1
3073 fi
3074
3075 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3076
3077fi;
3078
3079 eval "$ac_cv_use_libjpeg"
3080 if test "$no_cache" != 1; then
3081 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3082 fi
3083
3084 if test "$wxUSE_LIBJPEG" = yes; then
3085 echo "$as_me:$LINENO: result: yes" >&5
3086echo "${ECHO_T}yes" >&6
3087 elif test "$wxUSE_LIBJPEG" = no; then
3088 echo "$as_me:$LINENO: result: no" >&5
3089echo "${ECHO_T}no" >&6
3090 elif test "$wxUSE_LIBJPEG" = sys; then
3091 echo "$as_me:$LINENO: result: system version" >&5
3092echo "${ECHO_T}system version" >&6
3093 elif test "$wxUSE_LIBJPEG" = builtin; then
3094 echo "$as_me:$LINENO: result: builtin version" >&5
3095echo "${ECHO_T}builtin version" >&6
3096 else
3097 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3098echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3099 { (exit 1); exit 1; }; }
3100 fi
3101
3102
3103 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3104echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3105 no_cache=0
3106
3107# Check whether --with-libtiff or --without-libtiff was given.
3108if test "${with_libtiff+set}" = set; then
3109 withval="$with_libtiff"
3110
3111 if test "$withval" = yes; then
3112 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3113 elif test "$withval" = no; then
3114 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3115 elif test "$withval" = sys; then
3116 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3117 elif test "$withval" = builtin; then
3118 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3119 else
3120 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3121echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3122 { (exit 1); exit 1; }; }
3123 fi
3124
3125else
3126
3127 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3128 if test "x$LINE" != x ; then
3129 eval "DEFAULT_$LINE"
3130 else
3131 no_cache=1
3132 fi
3133
3134 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3135
3136fi;
3137
3138 eval "$ac_cv_use_libtiff"
3139 if test "$no_cache" != 1; then
3140 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3141 fi
3142
3143 if test "$wxUSE_LIBTIFF" = yes; then
3144 echo "$as_me:$LINENO: result: yes" >&5
3145echo "${ECHO_T}yes" >&6
3146 elif test "$wxUSE_LIBTIFF" = no; then
3147 echo "$as_me:$LINENO: result: no" >&5
3148echo "${ECHO_T}no" >&6
3149 elif test "$wxUSE_LIBTIFF" = sys; then
3150 echo "$as_me:$LINENO: result: system version" >&5
3151echo "${ECHO_T}system version" >&6
3152 elif test "$wxUSE_LIBTIFF" = builtin; then
3153 echo "$as_me:$LINENO: result: builtin version" >&5
3154echo "${ECHO_T}builtin version" >&6
3155 else
3156 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3157echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3158 { (exit 1); exit 1; }; }
3159 fi
3160
3161
3162 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3163echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3164 no_cache=0
3165
3166# Check whether --with-libxpm or --without-libxpm was given.
3167if test "${with_libxpm+set}" = set; then
3168 withval="$with_libxpm"
3169
3170 if test "$withval" = yes; then
3171 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3172 elif test "$withval" = no; then
3173 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3174 elif test "$withval" = sys; then
3175 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3176 elif test "$withval" = builtin; then
3177 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3178 else
3179 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3180echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3181 { (exit 1); exit 1; }; }
3182 fi
3183
3184else
3185
3186 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3187 if test "x$LINE" != x ; then
3188 eval "DEFAULT_$LINE"
3189 else
3190 no_cache=1
3191 fi
3192
3193 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3194
3195fi;
3196
3197 eval "$ac_cv_use_libxpm"
3198 if test "$no_cache" != 1; then
3199 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3200 fi
3201
3202 if test "$wxUSE_LIBXPM" = yes; then
3203 echo "$as_me:$LINENO: result: yes" >&5
3204echo "${ECHO_T}yes" >&6
3205 elif test "$wxUSE_LIBXPM" = no; then
3206 echo "$as_me:$LINENO: result: no" >&5
3207echo "${ECHO_T}no" >&6
3208 elif test "$wxUSE_LIBXPM" = sys; then
3209 echo "$as_me:$LINENO: result: system version" >&5
3210echo "${ECHO_T}system version" >&6
3211 elif test "$wxUSE_LIBXPM" = builtin; then
3212 echo "$as_me:$LINENO: result: builtin version" >&5
3213echo "${ECHO_T}builtin version" >&6
3214 else
3215 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3216echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3217 { (exit 1); exit 1; }; }
3218 fi
3219
3220
1c14217d
VZ
3221 withstring=
3222 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3223echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3224 no_cache=0
3225
3226# Check whether --with-libmspack or --without-libmspack was given.
3227if test "${with_libmspack+set}" = set; then
3228 withval="$with_libmspack"
3229
3230 if test "$withval" = yes; then
3231 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3232 else
3233 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3234 fi
3235
3236else
3237
3238 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3239 if test "x$LINE" != x ; then
3240 eval "DEFAULT_$LINE"
3241 else
3242 no_cache=1
3243 fi
3244
3245 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3246
3247fi;
3248
3249 eval "$ac_cv_use_libmspack"
3250 if test "$no_cache" != 1; then
3251 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3252 fi
3253
3254 if test "$wxUSE_LIBMSPACK" = yes; then
3255 echo "$as_me:$LINENO: result: yes" >&5
3256echo "${ECHO_T}yes" >&6
3257 else
3258 echo "$as_me:$LINENO: result: no" >&5
3259echo "${ECHO_T}no" >&6
3260 fi
3261
3262
1c14217d
VZ
3263 withstring=
3264 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3265echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3266 no_cache=0
3267
3268# Check whether --with-sdl or --without-sdl was given.
3269if test "${with_sdl+set}" = set; then
3270 withval="$with_sdl"
3271
3272 if test "$withval" = yes; then
3273 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3274 else
3275 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3276 fi
3277
3278else
3279
3280 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3281 if test "x$LINE" != x ; then
3282 eval "DEFAULT_$LINE"
3283 else
3284 no_cache=1
3285 fi
3286
3287 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3288
3289fi;
3290
3291 eval "$ac_cv_use_sdl"
3292 if test "$no_cache" != 1; then
3293 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3294 fi
3295
3296 if test "$wxUSE_LIBSDL" = yes; then
3297 echo "$as_me:$LINENO: result: yes" >&5
3298echo "${ECHO_T}yes" >&6
3299 else
3300 echo "$as_me:$LINENO: result: no" >&5
3301echo "${ECHO_T}no" >&6
3302 fi
3303
3304
1c14217d
VZ
3305 withstring=
3306 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3307echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3308 no_cache=0
3309
3310# Check whether --with-gnomeprint or --without-gnomeprint was given.
3311if test "${with_gnomeprint+set}" = set; then
3312 withval="$with_gnomeprint"
3313
3314 if test "$withval" = yes; then
3315 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3316 else
3317 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3318 fi
3319
3320else
3321
3322 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3323 if test "x$LINE" != x ; then
3324 eval "DEFAULT_$LINE"
3325 else
3326 no_cache=1
3327 fi
3328
3329 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3330
3331fi;
3332
3333 eval "$ac_cv_use_gnomeprint"
3334 if test "$no_cache" != 1; then
3335 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3336 fi
3337
3338 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3339 echo "$as_me:$LINENO: result: yes" >&5
3340echo "${ECHO_T}yes" >&6
3341 else
3342 echo "$as_me:$LINENO: result: no" >&5
3343echo "${ECHO_T}no" >&6
3344 fi
3345
3346
2b850ae1
RR
3347 withstring=
3348 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3349echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3350 no_cache=0
3351
3352# Check whether --with-gnomevfs or --without-gnomevfs was given.
3353if test "${with_gnomevfs+set}" = set; then
3354 withval="$with_gnomevfs"
3355
3356 if test "$withval" = yes; then
3357 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3358 else
3359 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3360 fi
3361
3362else
3363
3364 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3365 if test "x$LINE" != x ; then
3366 eval "DEFAULT_$LINE"
3367 else
3368 no_cache=1
3369 fi
3370
3371 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3372
3373fi;
3374
3375 eval "$ac_cv_use_gnomevfs"
3376 if test "$no_cache" != 1; then
3377 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3378 fi
3379
3380 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3381 echo "$as_me:$LINENO: result: yes" >&5
3382echo "${ECHO_T}yes" >&6
3383 else
3384 echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
3386 fi
3387
3388
3565d135
RR
3389 withstring=
3390 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3391echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3392 no_cache=0
3393
3394# Check whether --with-hildon or --without-hildon was given.
3395if test "${with_hildon+set}" = set; then
3396 withval="$with_hildon"
3397
3398 if test "$withval" = yes; then
3399 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3400 else
3401 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3402 fi
3403
3404else
3405
3406 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3414
3415fi;
3416
3417 eval "$ac_cv_use_hildon"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_LIBHILDON" = yes; then
3423 echo "$as_me:$LINENO: result: yes" >&5
3424echo "${ECHO_T}yes" >&6
3425 else
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
3428 fi
3429
3430
1c14217d
VZ
3431 withstring=
3432 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3433echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3434 no_cache=0
3435
3436# Check whether --with-opengl or --without-opengl was given.
3437if test "${with_opengl+set}" = set; then
3438 withval="$with_opengl"
3439
3440 if test "$withval" = yes; then
3441 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3442 else
3443 ac_cv_use_opengl='wxUSE_OPENGL=no'
3444 fi
3445
3446else
3447
3448 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3456
3457fi;
3458
3459 eval "$ac_cv_use_opengl"
3460 if test "$no_cache" != 1; then
3461 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3462 fi
3463
3464 if test "$wxUSE_OPENGL" = yes; then
3465 echo "$as_me:$LINENO: result: yes" >&5
3466echo "${ECHO_T}yes" >&6
3467 else
3468 echo "$as_me:$LINENO: result: no" >&5
3469echo "${ECHO_T}no" >&6
3470 fi
3471
3472
4353a8df
VZ
3473if test "$wxUSE_UNIVERSAL" = "yes"; then
3474
3475# Check whether --with-themes or --without-themes was given.
3476if test "${with_themes+set}" = set; then
3477 withval="$with_themes"
3478 wxUNIV_THEMES="$withval"
3479fi;
3480fi
3481
a848cd7e
SC
3482fi
3483
3484
1c14217d
VZ
3485 withstring=
3486 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3487echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3488 no_cache=0
3489
3490# Check whether --with-dmalloc or --without-dmalloc was given.
3491if test "${with_dmalloc+set}" = set; then
3492 withval="$with_dmalloc"
3493
3494 if test "$withval" = yes; then
3495 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3496 else
3497 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3498 fi
3499
3500else
3501
3502 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3503 if test "x$LINE" != x ; then
3504 eval "DEFAULT_$LINE"
3505 else
3506 no_cache=1
3507 fi
3508
3509 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3510
3511fi;
3512
3513 eval "$ac_cv_use_dmalloc"
3514 if test "$no_cache" != 1; then
3515 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3516 fi
3517
3518 if test "$wxUSE_DMALLOC" = yes; then
3519 echo "$as_me:$LINENO: result: yes" >&5
3520echo "${ECHO_T}yes" >&6
3521 else
3522 echo "$as_me:$LINENO: result: no" >&5
3523echo "${ECHO_T}no" >&6
3524 fi
3525
3526
3527 echo "$as_me:$LINENO: checking for --with-regex" >&5
3528echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3529 no_cache=0
3530
3531# Check whether --with-regex or --without-regex was given.
3532if test "${with_regex+set}" = set; then
3533 withval="$with_regex"
3534
3535 if test "$withval" = yes; then
3536 ac_cv_use_regex='wxUSE_REGEX=yes'
3537 elif test "$withval" = no; then
3538 ac_cv_use_regex='wxUSE_REGEX=no'
3539 elif test "$withval" = sys; then
3540 ac_cv_use_regex='wxUSE_REGEX=sys'
3541 elif test "$withval" = builtin; then
3542 ac_cv_use_regex='wxUSE_REGEX=builtin'
3543 else
3544 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3545echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3546 { (exit 1); exit 1; }; }
3547 fi
3548
3549else
3550
3551 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3552 if test "x$LINE" != x ; then
3553 eval "DEFAULT_$LINE"
3554 else
3555 no_cache=1
3556 fi
3557
3558 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3559
3560fi;
3561
3562 eval "$ac_cv_use_regex"
3563 if test "$no_cache" != 1; then
3564 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3565 fi
3566
3567 if test "$wxUSE_REGEX" = yes; then
3568 echo "$as_me:$LINENO: result: yes" >&5
3569echo "${ECHO_T}yes" >&6
3570 elif test "$wxUSE_REGEX" = no; then
3571 echo "$as_me:$LINENO: result: no" >&5
3572echo "${ECHO_T}no" >&6
3573 elif test "$wxUSE_REGEX" = sys; then
3574 echo "$as_me:$LINENO: result: system version" >&5
3575echo "${ECHO_T}system version" >&6
3576 elif test "$wxUSE_REGEX" = builtin; then
3577 echo "$as_me:$LINENO: result: builtin version" >&5
3578echo "${ECHO_T}builtin version" >&6
3579 else
3580 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3581echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3582 { (exit 1); exit 1; }; }
3583 fi
3584
3585
3586 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3587echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3588 no_cache=0
3589
3590# Check whether --with-zlib or --without-zlib was given.
3591if test "${with_zlib+set}" = set; then
3592 withval="$with_zlib"
3593
3594 if test "$withval" = yes; then
3595 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3596 elif test "$withval" = no; then
3597 ac_cv_use_zlib='wxUSE_ZLIB=no'
3598 elif test "$withval" = sys; then
3599 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3600 elif test "$withval" = builtin; then
3601 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3602 else
3603 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3604echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3605 { (exit 1); exit 1; }; }
3606 fi
3607
3608else
3609
3610 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3611 if test "x$LINE" != x ; then
3612 eval "DEFAULT_$LINE"
3613 else
3614 no_cache=1
3615 fi
3616
3617 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3618
3619fi;
3620
3621 eval "$ac_cv_use_zlib"
3622 if test "$no_cache" != 1; then
3623 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3624 fi
3625
3626 if test "$wxUSE_ZLIB" = yes; then
3627 echo "$as_me:$LINENO: result: yes" >&5
3628echo "${ECHO_T}yes" >&6
3629 elif test "$wxUSE_ZLIB" = no; then
3630 echo "$as_me:$LINENO: result: no" >&5
3631echo "${ECHO_T}no" >&6
3632 elif test "$wxUSE_ZLIB" = sys; then
3633 echo "$as_me:$LINENO: result: system version" >&5
3634echo "${ECHO_T}system version" >&6
3635 elif test "$wxUSE_ZLIB" = builtin; then
3636 echo "$as_me:$LINENO: result: builtin version" >&5
3637echo "${ECHO_T}builtin version" >&6
3638 else
3639 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3640echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3641 { (exit 1); exit 1; }; }
3642 fi
3643
3644
3645 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3646echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3647 no_cache=0
3648
3649# Check whether --with-odbc or --without-odbc was given.
3650if test "${with_odbc+set}" = set; then
3651 withval="$with_odbc"
3652
3653 if test "$withval" = yes; then
3654 ac_cv_use_odbc='wxUSE_ODBC=yes'
3655 elif test "$withval" = no; then
3656 ac_cv_use_odbc='wxUSE_ODBC=no'
3657 elif test "$withval" = sys; then
3658 ac_cv_use_odbc='wxUSE_ODBC=sys'
3659 elif test "$withval" = builtin; then
3660 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3661 else
3662 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3663echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3664 { (exit 1); exit 1; }; }
3665 fi
3666
3667else
3668
3669 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3670 if test "x$LINE" != x ; then
3671 eval "DEFAULT_$LINE"
3672 else
3673 no_cache=1
3674 fi
3675
3676 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3677
3678fi;
3679
3680 eval "$ac_cv_use_odbc"
3681 if test "$no_cache" != 1; then
3682 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3683 fi
3684
3685 if test "$wxUSE_ODBC" = yes; then
3686 echo "$as_me:$LINENO: result: yes" >&5
3687echo "${ECHO_T}yes" >&6
3688 elif test "$wxUSE_ODBC" = no; then
3689 echo "$as_me:$LINENO: result: no" >&5
3690echo "${ECHO_T}no" >&6
3691 elif test "$wxUSE_ODBC" = sys; then
3692 echo "$as_me:$LINENO: result: system version" >&5
3693echo "${ECHO_T}system version" >&6
3694 elif test "$wxUSE_ODBC" = builtin; then
3695 echo "$as_me:$LINENO: result: builtin version" >&5
3696echo "${ECHO_T}builtin version" >&6
3697 else
3698 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3699echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3700 { (exit 1); exit 1; }; }
3701 fi
3702
3703
3704 echo "$as_me:$LINENO: checking for --with-expat" >&5
3705echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3706 no_cache=0
3707
3708# Check whether --with-expat or --without-expat was given.
3709if test "${with_expat+set}" = set; then
3710 withval="$with_expat"
3711
3712 if test "$withval" = yes; then
3713 ac_cv_use_expat='wxUSE_EXPAT=yes'
3714 elif test "$withval" = no; then
3715 ac_cv_use_expat='wxUSE_EXPAT=no'
3716 elif test "$withval" = sys; then
3717 ac_cv_use_expat='wxUSE_EXPAT=sys'
3718 elif test "$withval" = builtin; then
3719 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3720 else
3721 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3722echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3723 { (exit 1); exit 1; }; }
3724 fi
3725
3726else
3727
3728 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3729 if test "x$LINE" != x ; then
3730 eval "DEFAULT_$LINE"
3731 else
3732 no_cache=1
3733 fi
3734
3735 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3736
3737fi;
3738
3739 eval "$ac_cv_use_expat"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_EXPAT" = yes; then
3745 echo "$as_me:$LINENO: result: yes" >&5
3746echo "${ECHO_T}yes" >&6
3747 elif test "$wxUSE_EXPAT" = no; then
3748 echo "$as_me:$LINENO: result: no" >&5
3749echo "${ECHO_T}no" >&6
3750 elif test "$wxUSE_EXPAT" = sys; then
3751 echo "$as_me:$LINENO: result: system version" >&5
3752echo "${ECHO_T}system version" >&6
3753 elif test "$wxUSE_EXPAT" = builtin; then
3754 echo "$as_me:$LINENO: result: builtin version" >&5
3755echo "${ECHO_T}builtin version" >&6
3756 else
3757 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3758echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3759 { (exit 1); exit 1; }; }
3760 fi
3761
3762
3763
3764
3765 enablestring=
3766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3767echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3768 no_cache=0
3769 # Check whether --enable-shared or --disable-shared was given.
3770if test "${enable_shared+set}" = set; then
3771 enableval="$enable_shared"
3772
3773 if test "$enableval" = yes; then
3774 ac_cv_use_shared='wxUSE_SHARED=yes'
3775 else
3776 ac_cv_use_shared='wxUSE_SHARED=no'
3777 fi
3778
3779else
3780
3781 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3782 if test "x$LINE" != x ; then
3783 eval "DEFAULT_$LINE"
3784 else
3785 no_cache=1
3786 fi
3787
3788 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3789
3790fi;
3791
3792 eval "$ac_cv_use_shared"
3793 if test "$no_cache" != 1; then
3794 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3795 fi
3796
3797 if test "$wxUSE_SHARED" = yes; then
3798 echo "$as_me:$LINENO: result: yes" >&5
3799echo "${ECHO_T}yes" >&6
3800 else
3801 echo "$as_me:$LINENO: result: no" >&5
3802echo "${ECHO_T}no" >&6
3803 fi
3804
3805
3806 enablestring=
3807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3808echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3809 no_cache=0
3810 # Check whether --enable-optimise or --disable-optimise was given.
3811if test "${enable_optimise+set}" = set; then
3812 enableval="$enable_optimise"
3813
3814 if test "$enableval" = yes; then
3815 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3816 else
3817 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3818 fi
3819
3820else
3821
3822 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3823 if test "x$LINE" != x ; then
3824 eval "DEFAULT_$LINE"
3825 else
3826 no_cache=1
3827 fi
3828
3829 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3830
3831fi;
3832
3833 eval "$ac_cv_use_optimise"
3834 if test "$no_cache" != 1; then
3835 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3836 fi
3837
3838 if test "$wxUSE_OPTIMISE" = yes; then
3839 echo "$as_me:$LINENO: result: yes" >&5
3840echo "${ECHO_T}yes" >&6
3841 else
3842 echo "$as_me:$LINENO: result: no" >&5
3843echo "${ECHO_T}no" >&6
3844 fi
3845
3846
3847 enablestring=
3848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3849echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3850 no_cache=0
3851 # Check whether --enable-debug or --disable-debug was given.
3852if test "${enable_debug+set}" = set; then
3853 enableval="$enable_debug"
3854
3855 if test "$enableval" = yes; then
3856 ac_cv_use_debug='wxUSE_DEBUG=yes'
3857 else
3858 ac_cv_use_debug='wxUSE_DEBUG=no'
3859 fi
3860
3861else
3862
3863 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3864 if test "x$LINE" != x ; then
3865 eval "DEFAULT_$LINE"
3866 else
3867 no_cache=1
3868 fi
3869
3870 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3871
3872fi;
3873
3874 eval "$ac_cv_use_debug"
3875 if test "$no_cache" != 1; then
3876 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3877 fi
3878
3879 if test "$wxUSE_DEBUG" = yes; then
3880 echo "$as_me:$LINENO: result: yes" >&5
3881echo "${ECHO_T}yes" >&6
3882 else
3883 echo "$as_me:$LINENO: result: no" >&5
3884echo "${ECHO_T}no" >&6
3885 fi
3886
3887
3888 enablestring=
3889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3890echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3891 no_cache=0
3892 # Check whether --enable-stl or --disable-stl was given.
3893if test "${enable_stl+set}" = set; then
3894 enableval="$enable_stl"
3895
3896 if test "$enableval" = yes; then
3897 ac_cv_use_stl='wxUSE_STL=yes'
3898 else
3899 ac_cv_use_stl='wxUSE_STL=no'
3900 fi
3901
3902else
3903
3904 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3905 if test "x$LINE" != x ; then
3906 eval "DEFAULT_$LINE"
3907 else
3908 no_cache=1
3909 fi
3910
3911 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3912
3913fi;
3914
3915 eval "$ac_cv_use_stl"
3916 if test "$no_cache" != 1; then
3917 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3918 fi
3919
3920 if test "$wxUSE_STL" = yes; then
3921 echo "$as_me:$LINENO: result: yes" >&5
3922echo "${ECHO_T}yes" >&6
3923 else
3924 echo "$as_me:$LINENO: result: no" >&5
3925echo "${ECHO_T}no" >&6
3926 fi
3927
3928if test "$USE_OS2" = "1"; then
69120ee4 3929 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3930
3931 enablestring=
3932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3933echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3934 no_cache=0
3935 # Check whether --enable-omf or --disable-omf was given.
3936if test "${enable_omf+set}" = set; then
3937 enableval="$enable_omf"
3938
3939 if test "$enableval" = yes; then
3940 ac_cv_use_omf='wxUSE_OMF=yes'
3941 else
3942 ac_cv_use_omf='wxUSE_OMF=no'
3943 fi
3944
3945else
3946
3947 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3955
3956fi;
3957
3958 eval "$ac_cv_use_omf"
3959 if test "$no_cache" != 1; then
3960 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3961 fi
3962
3963 if test "$wxUSE_OMF" = yes; then
3964 echo "$as_me:$LINENO: result: yes" >&5
3965echo "${ECHO_T}yes" >&6
3966 else
3967 echo "$as_me:$LINENO: result: no" >&5
3968echo "${ECHO_T}no" >&6
3969 fi
3970
3971fi
3972
3973if test "$wxUSE_DEBUG" = "yes"; then
3974 DEFAULT_wxUSE_DEBUG_FLAG=yes
3975 DEFAULT_wxUSE_DEBUG_INFO=yes
3976 BUILD=debug
3977elif test "$wxUSE_DEBUG" = "no"; then
3978 DEFAULT_wxUSE_DEBUG_FLAG=no
3979 DEFAULT_wxUSE_DEBUG_INFO=no
3980 BUILD=release
3981fi
3982
3983
3984 enablestring=
3985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3986echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3987 no_cache=0
3988 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3989if test "${enable_debug_flag+set}" = set; then
3990 enableval="$enable_debug_flag"
3991
3992 if test "$enableval" = yes; then
3993 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3994 else
3995 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3996 fi
3997
3998else
3999
4000 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4001 if test "x$LINE" != x ; then
4002 eval "DEFAULT_$LINE"
4003 else
4004 no_cache=1
4005 fi
4006
4007 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4008
4009fi;
4010
4011 eval "$ac_cv_use_debug_flag"
4012 if test "$no_cache" != 1; then
4013 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4014 fi
4015
4016 if test "$wxUSE_DEBUG_FLAG" = yes; then
4017 echo "$as_me:$LINENO: result: yes" >&5
4018echo "${ECHO_T}yes" >&6
4019 else
4020 echo "$as_me:$LINENO: result: no" >&5
4021echo "${ECHO_T}no" >&6
4022 fi
4023
4024
4025 enablestring=
4026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4027echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4028 no_cache=0
4029 # Check whether --enable-debug_info or --disable-debug_info was given.
4030if test "${enable_debug_info+set}" = set; then
4031 enableval="$enable_debug_info"
4032
4033 if test "$enableval" = yes; then
4034 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4035 else
4036 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4037 fi
4038
4039else
4040
4041 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4042 if test "x$LINE" != x ; then
4043 eval "DEFAULT_$LINE"
4044 else
4045 no_cache=1
4046 fi
4047
4048 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4049
4050fi;
4051
4052 eval "$ac_cv_use_debug_info"
4053 if test "$no_cache" != 1; then
4054 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4055 fi
4056
4057 if test "$wxUSE_DEBUG_INFO" = yes; then
4058 echo "$as_me:$LINENO: result: yes" >&5
4059echo "${ECHO_T}yes" >&6
4060 else
4061 echo "$as_me:$LINENO: result: no" >&5
4062echo "${ECHO_T}no" >&6
4063 fi
4064
4065
4066 enablestring=
4067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4068echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4069 no_cache=0
4070 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4071if test "${enable_debug_gdb+set}" = set; then
4072 enableval="$enable_debug_gdb"
4073
4074 if test "$enableval" = yes; then
4075 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4076 else
4077 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4078 fi
4079
4080else
4081
4082 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4083 if test "x$LINE" != x ; then
4084 eval "DEFAULT_$LINE"
4085 else
4086 no_cache=1
4087 fi
4088
4089 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4090
4091fi;
4092
4093 eval "$ac_cv_use_debug_gdb"
4094 if test "$no_cache" != 1; then
4095 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4096 fi
4097
4098 if test "$wxUSE_DEBUG_GDB" = yes; then
4099 echo "$as_me:$LINENO: result: yes" >&5
4100echo "${ECHO_T}yes" >&6
4101 else
4102 echo "$as_me:$LINENO: result: no" >&5
4103echo "${ECHO_T}no" >&6
4104 fi
4105
4106
4107 enablestring=
4108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4109echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4110 no_cache=0
4111 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4112if test "${enable_debug_cntxt+set}" = set; then
4113 enableval="$enable_debug_cntxt"
4114
4115 if test "$enableval" = yes; then
4116 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4117 else
4118 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4119 fi
4120
4121else
4122
4123 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4124 if test "x$LINE" != x ; then
4125 eval "DEFAULT_$LINE"
4126 else
4127 no_cache=1
4128 fi
4129
4130 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4131
4132fi;
4133
4134 eval "$ac_cv_use_debug_cntxt"
4135 if test "$no_cache" != 1; then
4136 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4137 fi
4138
4139 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4140 echo "$as_me:$LINENO: result: yes" >&5
4141echo "${ECHO_T}yes" >&6
4142 else
4143 echo "$as_me:$LINENO: result: no" >&5
4144echo "${ECHO_T}no" >&6
4145 fi
4146
4147
4148 enablestring=
4149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4150echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4151 no_cache=0
4152 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4153if test "${enable_mem_tracing+set}" = set; then
4154 enableval="$enable_mem_tracing"
4155
4156 if test "$enableval" = yes; then
4157 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4158 else
4159 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4160 fi
4161
4162else
4163
4164 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4165 if test "x$LINE" != x ; then
4166 eval "DEFAULT_$LINE"
4167 else
4168 no_cache=1
4169 fi
4170
4171 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4172
4173fi;
4174
4175 eval "$ac_cv_use_mem_tracing"
4176 if test "$no_cache" != 1; then
4177 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4178 fi
4179
4180 if test "$wxUSE_MEM_TRACING" = yes; then
4181 echo "$as_me:$LINENO: result: yes" >&5
4182echo "${ECHO_T}yes" >&6
4183 else
4184 echo "$as_me:$LINENO: result: no" >&5
4185echo "${ECHO_T}no" >&6
4186 fi
4187
4188
4189 enablestring=
4190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4191echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4192 no_cache=0
4193 # Check whether --enable-profile or --disable-profile was given.
4194if test "${enable_profile+set}" = set; then
4195 enableval="$enable_profile"
4196
4197 if test "$enableval" = yes; then
4198 ac_cv_use_profile='wxUSE_PROFILE=yes'
4199 else
4200 ac_cv_use_profile='wxUSE_PROFILE=no'
4201 fi
4202
4203else
4204
4205 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4206 if test "x$LINE" != x ; then
4207 eval "DEFAULT_$LINE"
4208 else
4209 no_cache=1
4210 fi
4211
4212 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4213
4214fi;
4215
4216 eval "$ac_cv_use_profile"
4217 if test "$no_cache" != 1; then
4218 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4219 fi
4220
4221 if test "$wxUSE_PROFILE" = yes; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223echo "${ECHO_T}yes" >&6
4224 else
4225 echo "$as_me:$LINENO: result: no" >&5
4226echo "${ECHO_T}no" >&6
4227 fi
4228
4229
4230 enablestring=
4231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4232echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4233 no_cache=0
4234 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4235if test "${enable_no_rtti+set}" = set; then
4236 enableval="$enable_no_rtti"
4237
4238 if test "$enableval" = yes; then
4239 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4240 else
4241 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4242 fi
4243
4244else
4245
4246 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4247 if test "x$LINE" != x ; then
4248 eval "DEFAULT_$LINE"
4249 else
4250 no_cache=1
4251 fi
4252
4253 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4254
4255fi;
4256
4257 eval "$ac_cv_use_no_rtti"
4258 if test "$no_cache" != 1; then
4259 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4260 fi
4261
4262 if test "$wxUSE_NO_RTTI" = yes; then
4263 echo "$as_me:$LINENO: result: yes" >&5
4264echo "${ECHO_T}yes" >&6
4265 else
4266 echo "$as_me:$LINENO: result: no" >&5
4267echo "${ECHO_T}no" >&6
4268 fi
4269
4270
4271 enablestring=
4272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4273echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4274 no_cache=0
4275 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4276if test "${enable_no_exceptions+set}" = set; then
4277 enableval="$enable_no_exceptions"
4278
4279 if test "$enableval" = yes; then
4280 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4281 else
4282 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4283 fi
4284
4285else
4286
4287 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4288 if test "x$LINE" != x ; then
4289 eval "DEFAULT_$LINE"
4290 else
4291 no_cache=1
4292 fi
4293
4294 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4295
4296fi;
4297
4298 eval "$ac_cv_use_no_exceptions"
4299 if test "$no_cache" != 1; then
4300 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4301 fi
4302
4303 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4304 echo "$as_me:$LINENO: result: yes" >&5
4305echo "${ECHO_T}yes" >&6
4306 else
4307 echo "$as_me:$LINENO: result: no" >&5
4308echo "${ECHO_T}no" >&6
4309 fi
4310
4311
4312 enablestring=
4313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4314echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4315 no_cache=0
4316 # Check whether --enable-permissive or --disable-permissive was given.
4317if test "${enable_permissive+set}" = set; then
4318 enableval="$enable_permissive"
4319
4320 if test "$enableval" = yes; then
4321 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4322 else
4323 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4324 fi
4325
4326else
4327
4328 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4329 if test "x$LINE" != x ; then
4330 eval "DEFAULT_$LINE"
4331 else
4332 no_cache=1
4333 fi
4334
4335 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4336
4337fi;
4338
4339 eval "$ac_cv_use_permissive"
4340 if test "$no_cache" != 1; then
4341 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4342 fi
4343
4344 if test "$wxUSE_PERMISSIVE" = yes; then
4345 echo "$as_me:$LINENO: result: yes" >&5
4346echo "${ECHO_T}yes" >&6
4347 else
4348 echo "$as_me:$LINENO: result: no" >&5
4349echo "${ECHO_T}no" >&6
4350 fi
4351
4352
4353 enablestring=
4354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4355echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4356 no_cache=0
4357 # Check whether --enable-no_deps or --disable-no_deps was given.
4358if test "${enable_no_deps+set}" = set; then
4359 enableval="$enable_no_deps"
4360
4361 if test "$enableval" = yes; then
4362 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4363 else
4364 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4365 fi
4366
4367else
4368
4369 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4370 if test "x$LINE" != x ; then
4371 eval "DEFAULT_$LINE"
4372 else
4373 no_cache=1
4374 fi
4375
4376 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4377
4378fi;
4379
4380 eval "$ac_cv_use_no_deps"
4381 if test "$no_cache" != 1; then
4382 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4383 fi
4384
4385 if test "$wxUSE_NO_DEPS" = yes; then
4386 echo "$as_me:$LINENO: result: yes" >&5
4387echo "${ECHO_T}yes" >&6
4388 else
4389 echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6
4391 fi
4392
4393
95768535 4394 enablestring=
7afc46ab
KO
4395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4396echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4397 no_cache=0
4398 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4399if test "${enable_universal_binary+set}" = set; then
4400 enableval="$enable_universal_binary"
4401
95768535 4402 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4403
4404else
4405
4406 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4407 if test "x$LINE" != x ; then
4408 eval "DEFAULT_$LINE"
95768535 4409 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4410 else
4411 no_cache=1
95768535 4412 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4413 fi
4414
7afc46ab
KO
4415fi;
4416
95768535 4417 eval "$wx_cv_use_universal_binary"
7afc46ab 4418 if test "$no_cache" != 1; then
95768535 4419 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4420 fi
4421
95768535
MW
4422 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4423echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4424
4425
a848cd7e 4426
dee1a63f
MB
4427 enablestring=enable
4428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4429echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4430 no_cache=0
dee1a63f
MB
4431 # Check whether --enable-compat24 or --disable-compat24 was given.
4432if test "${enable_compat24+set}" = set; then
4433 enableval="$enable_compat24"
a848cd7e
SC
4434
4435 if test "$enableval" = yes; then
dee1a63f 4436 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4437 else
dee1a63f 4438 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4439 fi
4440
4441else
4442
dee1a63f 4443 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4444 if test "x$LINE" != x ; then
4445 eval "DEFAULT_$LINE"
4446 else
4447 no_cache=1
4448 fi
4449
dee1a63f 4450 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4451
4452fi;
4453
dee1a63f 4454 eval "$ac_cv_use_compat24"
a848cd7e 4455 if test "$no_cache" != 1; then
dee1a63f 4456 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4457 fi
4458
dee1a63f 4459 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4460 echo "$as_me:$LINENO: result: yes" >&5
4461echo "${ECHO_T}yes" >&6
4462 else
4463 echo "$as_me:$LINENO: result: no" >&5
4464echo "${ECHO_T}no" >&6
4465 fi
4466
4467
4468 enablestring=disable
dee1a63f
MB
4469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4470echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4471 no_cache=0
dee1a63f
MB
4472 # Check whether --enable-compat26 or --disable-compat26 was given.
4473if test "${enable_compat26+set}" = set; then
4474 enableval="$enable_compat26"
a848cd7e
SC
4475
4476 if test "$enableval" = yes; then
dee1a63f 4477 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4478 else
dee1a63f 4479 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4480 fi
4481
4482else
4483
dee1a63f 4484 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4485 if test "x$LINE" != x ; then
4486 eval "DEFAULT_$LINE"
4487 else
4488 no_cache=1
4489 fi
4490
dee1a63f 4491 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4492
4493fi;
4494
dee1a63f 4495 eval "$ac_cv_use_compat26"
a848cd7e 4496 if test "$no_cache" != 1; then
dee1a63f 4497 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4498 fi
4499
dee1a63f 4500 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4501 echo "$as_me:$LINENO: result: yes" >&5
4502echo "${ECHO_T}yes" >&6
4503 else
4504 echo "$as_me:$LINENO: result: no" >&5
4505echo "${ECHO_T}no" >&6
4506 fi
4507
4508
ffa0583f
RL
4509
4510 enablestring=
4511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4512echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4513 no_cache=0
4514 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4515if test "${enable_rpath+set}" = set; then
4516 enableval="$enable_rpath"
ffa0583f
RL
4517
4518 if test "$enableval" = yes; then
4519 ac_cv_use_rpath='wxUSE_RPATH=yes'
4520 else
4521 ac_cv_use_rpath='wxUSE_RPATH=no'
4522 fi
4523
4524else
4525
4526 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4527 if test "x$LINE" != x ; then
4528 eval "DEFAULT_$LINE"
4529 else
4530 no_cache=1
4531 fi
4532
4533 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4534
a848cd7e
SC
4535fi;
4536
ffa0583f
RL
4537 eval "$ac_cv_use_rpath"
4538 if test "$no_cache" != 1; then
4539 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4540 fi
4541
4542 if test "$wxUSE_RPATH" = yes; then
4543 echo "$as_me:$LINENO: result: yes" >&5
4544echo "${ECHO_T}yes" >&6
4545 else
4546 echo "$as_me:$LINENO: result: no" >&5
4547echo "${ECHO_T}no" >&6
4548 fi
4549
a848cd7e
SC
4550
4551
4552
4553
4554 enablestring=
4555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4556echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4557 no_cache=0
4558 # Check whether --enable-intl or --disable-intl was given.
4559if test "${enable_intl+set}" = set; then
4560 enableval="$enable_intl"
4561
4562 if test "$enableval" = yes; then
4563 ac_cv_use_intl='wxUSE_INTL=yes'
4564 else
4565 ac_cv_use_intl='wxUSE_INTL=no'
4566 fi
4567
4568else
4569
4570 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4571 if test "x$LINE" != x ; then
4572 eval "DEFAULT_$LINE"
4573 else
4574 no_cache=1
4575 fi
4576
4577 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4578
4579fi;
4580
4581 eval "$ac_cv_use_intl"
4582 if test "$no_cache" != 1; then
4583 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4584 fi
4585
4586 if test "$wxUSE_INTL" = yes; then
4587 echo "$as_me:$LINENO: result: yes" >&5
4588echo "${ECHO_T}yes" >&6
4589 else
4590 echo "$as_me:$LINENO: result: no" >&5
4591echo "${ECHO_T}no" >&6
4592 fi
4593
4594
4595 enablestring=
4596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4597echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4598 no_cache=0
4599 # Check whether --enable-config or --disable-config was given.
4600if test "${enable_config+set}" = set; then
4601 enableval="$enable_config"
4602
4603 if test "$enableval" = yes; then
4604 ac_cv_use_config='wxUSE_CONFIG=yes'
4605 else
4606 ac_cv_use_config='wxUSE_CONFIG=no'
4607 fi
4608
4609else
4610
4611 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4612 if test "x$LINE" != x ; then
4613 eval "DEFAULT_$LINE"
4614 else
4615 no_cache=1
4616 fi
4617
4618 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4619
4620fi;
4621
4622 eval "$ac_cv_use_config"
4623 if test "$no_cache" != 1; then
4624 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4625 fi
4626
4627 if test "$wxUSE_CONFIG" = yes; then
4628 echo "$as_me:$LINENO: result: yes" >&5
4629echo "${ECHO_T}yes" >&6
4630 else
4631 echo "$as_me:$LINENO: result: no" >&5
4632echo "${ECHO_T}no" >&6
4633 fi
4634
4635
4636
4637 enablestring=
4638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4639echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4640 no_cache=0
4641 # Check whether --enable-protocols or --disable-protocols was given.
4642if test "${enable_protocols+set}" = set; then
4643 enableval="$enable_protocols"
4644
4645 if test "$enableval" = yes; then
4646 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4647 else
4648 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4649 fi
4650
4651else
4652
4653 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4654 if test "x$LINE" != x ; then
4655 eval "DEFAULT_$LINE"
4656 else
4657 no_cache=1
4658 fi
4659
4660 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4661
4662fi;
4663
4664 eval "$ac_cv_use_protocols"
4665 if test "$no_cache" != 1; then
4666 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4667 fi
4668
4669 if test "$wxUSE_PROTOCOL" = yes; then
4670 echo "$as_me:$LINENO: result: yes" >&5
4671echo "${ECHO_T}yes" >&6
4672 else
4673 echo "$as_me:$LINENO: result: no" >&5
4674echo "${ECHO_T}no" >&6
4675 fi
4676
4677
4678 enablestring=
4679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4680echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4681 no_cache=0
4682 # Check whether --enable-ftp or --disable-ftp was given.
4683if test "${enable_ftp+set}" = set; then
4684 enableval="$enable_ftp"
4685
4686 if test "$enableval" = yes; then
4687 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4688 else
4689 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4690 fi
4691
4692else
4693
4694 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4695 if test "x$LINE" != x ; then
4696 eval "DEFAULT_$LINE"
4697 else
4698 no_cache=1
4699 fi
4700
4701 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4702
4703fi;
4704
4705 eval "$ac_cv_use_ftp"
4706 if test "$no_cache" != 1; then
4707 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4708 fi
4709
4710 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4711 echo "$as_me:$LINENO: result: yes" >&5
4712echo "${ECHO_T}yes" >&6
4713 else
4714 echo "$as_me:$LINENO: result: no" >&5
4715echo "${ECHO_T}no" >&6
4716 fi
4717
4718
4719 enablestring=
4720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4721echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4722 no_cache=0
4723 # Check whether --enable-http or --disable-http was given.
4724if test "${enable_http+set}" = set; then
4725 enableval="$enable_http"
4726
4727 if test "$enableval" = yes; then
4728 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4729 else
4730 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4731 fi
4732
4733else
4734
4735 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4736 if test "x$LINE" != x ; then
4737 eval "DEFAULT_$LINE"
4738 else
4739 no_cache=1
4740 fi
4741
4742 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4743
4744fi;
4745
4746 eval "$ac_cv_use_http"
4747 if test "$no_cache" != 1; then
4748 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4749 fi
4750
4751 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4752 echo "$as_me:$LINENO: result: yes" >&5
4753echo "${ECHO_T}yes" >&6
4754 else
4755 echo "$as_me:$LINENO: result: no" >&5
4756echo "${ECHO_T}no" >&6
4757 fi
4758
4759
4760 enablestring=
4761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4762echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4763 no_cache=0
4764 # Check whether --enable-fileproto or --disable-fileproto was given.
4765if test "${enable_fileproto+set}" = set; then
4766 enableval="$enable_fileproto"
4767
4768 if test "$enableval" = yes; then
4769 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4770 else
4771 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4772 fi
4773
4774else
4775
4776 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4777 if test "x$LINE" != x ; then
4778 eval "DEFAULT_$LINE"
4779 else
4780 no_cache=1
4781 fi
4782
4783 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4784
4785fi;
4786
4787 eval "$ac_cv_use_fileproto"
4788 if test "$no_cache" != 1; then
4789 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4790 fi
4791
4792 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4793 echo "$as_me:$LINENO: result: yes" >&5
4794echo "${ECHO_T}yes" >&6
4795 else
4796 echo "$as_me:$LINENO: result: no" >&5
4797echo "${ECHO_T}no" >&6
4798 fi
4799
4800
4801 enablestring=
4802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4803echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4804 no_cache=0
4805 # Check whether --enable-sockets or --disable-sockets was given.
4806if test "${enable_sockets+set}" = set; then
4807 enableval="$enable_sockets"
4808
4809 if test "$enableval" = yes; then
4810 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4811 else
4812 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4813 fi
4814
4815else
4816
4817 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4818 if test "x$LINE" != x ; then
4819 eval "DEFAULT_$LINE"
4820 else
4821 no_cache=1
4822 fi
4823
4824 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4825
4826fi;
4827
4828 eval "$ac_cv_use_sockets"
4829 if test "$no_cache" != 1; then
4830 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4831 fi
4832
4833 if test "$wxUSE_SOCKETS" = yes; then
4834 echo "$as_me:$LINENO: result: yes" >&5
4835echo "${ECHO_T}yes" >&6
4836 else
4837 echo "$as_me:$LINENO: result: no" >&5
4838echo "${ECHO_T}no" >&6
4839 fi
4840
4841
4842 enablestring=
4843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4844echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4845 no_cache=0
4846 # Check whether --enable-ole or --disable-ole was given.
4847if test "${enable_ole+set}" = set; then
4848 enableval="$enable_ole"
4849
4850 if test "$enableval" = yes; then
4851 ac_cv_use_ole='wxUSE_OLE=yes'
4852 else
4853 ac_cv_use_ole='wxUSE_OLE=no'
4854 fi
4855
4856else
4857
4858 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4859 if test "x$LINE" != x ; then
4860 eval "DEFAULT_$LINE"
4861 else
4862 no_cache=1
4863 fi
4864
4865 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4866
4867fi;
4868
4869 eval "$ac_cv_use_ole"
4870 if test "$no_cache" != 1; then
4871 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4872 fi
4873
4874 if test "$wxUSE_OLE" = yes; then
4875 echo "$as_me:$LINENO: result: yes" >&5
4876echo "${ECHO_T}yes" >&6
4877 else
4878 echo "$as_me:$LINENO: result: no" >&5
4879echo "${ECHO_T}no" >&6
4880 fi
4881
4882
4883 enablestring=
4884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4885echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4886 no_cache=0
4887 # Check whether --enable-dataobj or --disable-dataobj was given.
4888if test "${enable_dataobj+set}" = set; then
4889 enableval="$enable_dataobj"
4890
4891 if test "$enableval" = yes; then
4892 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4893 else
4894 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4895 fi
4896
4897else
4898
4899 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4900 if test "x$LINE" != x ; then
4901 eval "DEFAULT_$LINE"
4902 else
4903 no_cache=1
4904 fi
4905
4906 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4907
4908fi;
4909
4910 eval "$ac_cv_use_dataobj"
4911 if test "$no_cache" != 1; then
4912 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4913 fi
4914
4915 if test "$wxUSE_DATAOBJ" = yes; then
4916 echo "$as_me:$LINENO: result: yes" >&5
4917echo "${ECHO_T}yes" >&6
4918 else
4919 echo "$as_me:$LINENO: result: no" >&5
4920echo "${ECHO_T}no" >&6
4921 fi
4922
4923
4924
4925 enablestring=
4926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4927echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4928 no_cache=0
4929 # Check whether --enable-ipc or --disable-ipc was given.
4930if test "${enable_ipc+set}" = set; then
4931 enableval="$enable_ipc"
4932
4933 if test "$enableval" = yes; then
4934 ac_cv_use_ipc='wxUSE_IPC=yes'
4935 else
4936 ac_cv_use_ipc='wxUSE_IPC=no'
4937 fi
4938
4939else
4940
4941 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4942 if test "x$LINE" != x ; then
4943 eval "DEFAULT_$LINE"
4944 else
4945 no_cache=1
4946 fi
4947
4948 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4949
4950fi;
4951
4952 eval "$ac_cv_use_ipc"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_IPC" = yes; then
4958 echo "$as_me:$LINENO: result: yes" >&5
4959echo "${ECHO_T}yes" >&6
4960 else
4961 echo "$as_me:$LINENO: result: no" >&5
4962echo "${ECHO_T}no" >&6
4963 fi
4964
4965
4966
4967 enablestring=
4968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4969echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4970 no_cache=0
4971 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4972if test "${enable_apple_ieee+set}" = set; then
4973 enableval="$enable_apple_ieee"
4974
4975 if test "$enableval" = yes; then
4976 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4977 else
4978 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4979 fi
4980
4981else
4982
4983 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4984 if test "x$LINE" != x ; then
4985 eval "DEFAULT_$LINE"
4986 else
4987 no_cache=1
4988 fi
4989
4990 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4991
4992fi;
4993
4994 eval "$ac_cv_use_apple_ieee"
4995 if test "$no_cache" != 1; then
4996 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4997 fi
4998
4999 if test "$wxUSE_APPLE_IEEE" = yes; then
5000 echo "$as_me:$LINENO: result: yes" >&5
5001echo "${ECHO_T}yes" >&6
5002 else
5003 echo "$as_me:$LINENO: result: no" >&5
5004echo "${ECHO_T}no" >&6
5005 fi
5006
5007
81f90336
MW
5008 enablestring=
5009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5010echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5011 no_cache=0
5012 # Check whether --enable-arcstream or --disable-arcstream was given.
5013if test "${enable_arcstream+set}" = set; then
5014 enableval="$enable_arcstream"
5015
5016 if test "$enableval" = yes; then
9e8e867f 5017 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 5018 else
9e8e867f 5019 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5020 fi
5021
5022else
5023
9e8e867f 5024 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
9e8e867f 5031 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5032
5033fi;
5034
5035 eval "$ac_cv_use_arcstream"
5036 if test "$no_cache" != 1; then
5037 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5038 fi
5039
9e8e867f 5040 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5041 echo "$as_me:$LINENO: result: yes" >&5
5042echo "${ECHO_T}yes" >&6
5043 else
5044 echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6
5046 fi
5047
5048
a848cd7e 5049 enablestring=
36b6448c
VZ
5050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5051echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5052 no_cache=0
36b6448c
VZ
5053 # Check whether --enable-backtrace or --disable-backtrace was given.
5054if test "${enable_backtrace+set}" = set; then
5055 enableval="$enable_backtrace"
a848cd7e
SC
5056
5057 if test "$enableval" = yes; then
36b6448c 5058 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5059 else
36b6448c 5060 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5061 fi
5062
5063else
5064
36b6448c 5065 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5066 if test "x$LINE" != x ; then
5067 eval "DEFAULT_$LINE"
5068 else
5069 no_cache=1
5070 fi
5071
36b6448c 5072 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5073
5074fi;
5075
36b6448c 5076 eval "$ac_cv_use_backtrace"
a848cd7e 5077 if test "$no_cache" != 1; then
36b6448c 5078 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5079 fi
5080
36b6448c 5081 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5082 echo "$as_me:$LINENO: result: yes" >&5
5083echo "${ECHO_T}yes" >&6
5084 else
5085 echo "$as_me:$LINENO: result: no" >&5
5086echo "${ECHO_T}no" >&6
5087 fi
5088
5089
eaff0f0d 5090 enablestring=
36b6448c
VZ
5091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5092echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5093 no_cache=0
36b6448c
VZ
5094 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5095if test "${enable_catch_segvs+set}" = set; then
5096 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5097
5098 if test "$enableval" = yes; then
36b6448c 5099 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5100 else
36b6448c 5101 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5102 fi
5103
5104else
5105
36b6448c 5106 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5107 if test "x$LINE" != x ; then
5108 eval "DEFAULT_$LINE"
5109 else
5110 no_cache=1
5111 fi
5112
36b6448c 5113 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5114
5115fi;
5116
36b6448c 5117 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5118 if test "$no_cache" != 1; then
36b6448c 5119 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5120 fi
5121
36b6448c 5122 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5123 echo "$as_me:$LINENO: result: yes" >&5
5124echo "${ECHO_T}yes" >&6
5125 else
5126 echo "$as_me:$LINENO: result: no" >&5
5127echo "${ECHO_T}no" >&6
5128 fi
5129
5130
a848cd7e
SC
5131 enablestring=
5132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5133echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5134 no_cache=0
5135 # Check whether --enable-cmdline or --disable-cmdline was given.
5136if test "${enable_cmdline+set}" = set; then
5137 enableval="$enable_cmdline"
5138
5139 if test "$enableval" = yes; then
5140 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5141 else
5142 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5143 fi
5144
5145else
5146
5147 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5148 if test "x$LINE" != x ; then
5149 eval "DEFAULT_$LINE"
5150 else
5151 no_cache=1
5152 fi
5153
5154 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5155
5156fi;
5157
5158 eval "$ac_cv_use_cmdline"
5159 if test "$no_cache" != 1; then
5160 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5161 fi
5162
5163 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5164 echo "$as_me:$LINENO: result: yes" >&5
5165echo "${ECHO_T}yes" >&6
5166 else
5167 echo "$as_me:$LINENO: result: no" >&5
5168echo "${ECHO_T}no" >&6
5169 fi
5170
5171
5172 enablestring=
5173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5174echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5175 no_cache=0
5176 # Check whether --enable-datetime or --disable-datetime was given.
5177if test "${enable_datetime+set}" = set; then
5178 enableval="$enable_datetime"
5179
5180 if test "$enableval" = yes; then
5181 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5182 else
5183 ac_cv_use_datetime='wxUSE_DATETIME=no'
5184 fi
5185
5186else
5187
5188 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5189 if test "x$LINE" != x ; then
5190 eval "DEFAULT_$LINE"
5191 else
5192 no_cache=1
5193 fi
5194
5195 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5196
5197fi;
5198
5199 eval "$ac_cv_use_datetime"
5200 if test "$no_cache" != 1; then
5201 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5202 fi
5203
5204 if test "$wxUSE_DATETIME" = yes; then
5205 echo "$as_me:$LINENO: result: yes" >&5
5206echo "${ECHO_T}yes" >&6
5207 else
5208 echo "$as_me:$LINENO: result: no" >&5
5209echo "${ECHO_T}no" >&6
5210 fi
5211
5212
36b6448c
VZ
5213 enablestring=
5214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5215echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5216 no_cache=0
5217 # Check whether --enable-debugreport or --disable-debugreport was given.
5218if test "${enable_debugreport+set}" = set; then
5219 enableval="$enable_debugreport"
5220
5221 if test "$enableval" = yes; then
5222 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5223 else
5224 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5225 fi
5226
5227else
5228
5229 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5230 if test "x$LINE" != x ; then
5231 eval "DEFAULT_$LINE"
5232 else
5233 no_cache=1
5234 fi
5235
5236 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5237
5238fi;
5239
5240 eval "$ac_cv_use_debugreport"
5241 if test "$no_cache" != 1; then
5242 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5243 fi
5244
5245 if test "$wxUSE_DEBUGREPORT" = yes; then
5246 echo "$as_me:$LINENO: result: yes" >&5
5247echo "${ECHO_T}yes" >&6
5248 else
5249 echo "$as_me:$LINENO: result: no" >&5
5250echo "${ECHO_T}no" >&6
5251 fi
5252
5253
a848cd7e
SC
5254 enablestring=
5255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5256echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5257 no_cache=0
5258 # Check whether --enable-dialupman or --disable-dialupman was given.
5259if test "${enable_dialupman+set}" = set; then
5260 enableval="$enable_dialupman"
5261
5262 if test "$enableval" = yes; then
5263 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5264 else
5265 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5266 fi
5267
5268else
5269
5270 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5271 if test "x$LINE" != x ; then
5272 eval "DEFAULT_$LINE"
5273 else
5274 no_cache=1
5275 fi
5276
5277 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5278
5279fi;
5280
5281 eval "$ac_cv_use_dialupman"
5282 if test "$no_cache" != 1; then
5283 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5284 fi
5285
5286 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5287 echo "$as_me:$LINENO: result: yes" >&5
5288echo "${ECHO_T}yes" >&6
5289 else
5290 echo "$as_me:$LINENO: result: no" >&5
5291echo "${ECHO_T}no" >&6
5292 fi
5293
5294
5295 enablestring=
5296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5297echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5298 no_cache=0
5299 # Check whether --enable-dynlib or --disable-dynlib was given.
5300if test "${enable_dynlib+set}" = set; then
5301 enableval="$enable_dynlib"
5302
5303 if test "$enableval" = yes; then
5304 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5305 else
5306 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5307 fi
5308
5309else
5310
5311 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5312 if test "x$LINE" != x ; then
5313 eval "DEFAULT_$LINE"
5314 else
5315 no_cache=1
5316 fi
5317
5318 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5319
5320fi;
5321
5322 eval "$ac_cv_use_dynlib"
5323 if test "$no_cache" != 1; then
5324 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5325 fi
5326
5327 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5328 echo "$as_me:$LINENO: result: yes" >&5
5329echo "${ECHO_T}yes" >&6
5330 else
5331 echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6
5333 fi
5334
5335
5336 enablestring=
5337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5338echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5339 no_cache=0
5340 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5341if test "${enable_dynamicloader+set}" = set; then
5342 enableval="$enable_dynamicloader"
5343
5344 if test "$enableval" = yes; then
5345 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5346 else
5347 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5348 fi
5349
5350else
5351
5352 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5353 if test "x$LINE" != x ; then
5354 eval "DEFAULT_$LINE"
5355 else
5356 no_cache=1
5357 fi
5358
5359 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5360
5361fi;
5362
5363 eval "$ac_cv_use_dynamicloader"
5364 if test "$no_cache" != 1; then
5365 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5366 fi
5367
5368 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5369 echo "$as_me:$LINENO: result: yes" >&5
5370echo "${ECHO_T}yes" >&6
5371 else
5372 echo "$as_me:$LINENO: result: no" >&5
5373echo "${ECHO_T}no" >&6
5374 fi
5375
5376
5377 enablestring=
5378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5379echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5380 no_cache=0
5381 # Check whether --enable-exceptions or --disable-exceptions was given.
5382if test "${enable_exceptions+set}" = set; then
5383 enableval="$enable_exceptions"
5384
5385 if test "$enableval" = yes; then
5386 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5387 else
5388 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5389 fi
5390
5391else
5392
5393 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5394 if test "x$LINE" != x ; then
5395 eval "DEFAULT_$LINE"
5396 else
5397 no_cache=1
5398 fi
5399
5400 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5401
5402fi;
5403
5404 eval "$ac_cv_use_exceptions"
5405 if test "$no_cache" != 1; then
5406 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5407 fi
5408
5409 if test "$wxUSE_EXCEPTIONS" = yes; then
5410 echo "$as_me:$LINENO: result: yes" >&5
5411echo "${ECHO_T}yes" >&6
5412 else
5413 echo "$as_me:$LINENO: result: no" >&5
5414echo "${ECHO_T}no" >&6
5415 fi
5416
5417
5418 enablestring=
5419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5420echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5421 no_cache=0
5422 # Check whether --enable-ffile or --disable-ffile was given.
5423if test "${enable_ffile+set}" = set; then
5424 enableval="$enable_ffile"
5425
5426 if test "$enableval" = yes; then
5427 ac_cv_use_ffile='wxUSE_FFILE=yes'
5428 else
5429 ac_cv_use_ffile='wxUSE_FFILE=no'
5430 fi
5431
5432else
5433
5434 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5435 if test "x$LINE" != x ; then
5436 eval "DEFAULT_$LINE"
5437 else
5438 no_cache=1
5439 fi
5440
5441 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5442
5443fi;
5444
5445 eval "$ac_cv_use_ffile"
5446 if test "$no_cache" != 1; then
5447 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5448 fi
5449
5450 if test "$wxUSE_FFILE" = yes; then
5451 echo "$as_me:$LINENO: result: yes" >&5
5452echo "${ECHO_T}yes" >&6
5453 else
5454 echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
5456 fi
5457
5458
5459 enablestring=
5460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5461echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5462 no_cache=0
5463 # Check whether --enable-file or --disable-file was given.
5464if test "${enable_file+set}" = set; then
5465 enableval="$enable_file"
5466
5467 if test "$enableval" = yes; then
5468 ac_cv_use_file='wxUSE_FILE=yes'
5469 else
5470 ac_cv_use_file='wxUSE_FILE=no'
5471 fi
5472
5473else
5474
5475 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5476 if test "x$LINE" != x ; then
5477 eval "DEFAULT_$LINE"
5478 else
5479 no_cache=1
5480 fi
5481
5482 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5483
5484fi;
5485
5486 eval "$ac_cv_use_file"
5487 if test "$no_cache" != 1; then
5488 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5489 fi
5490
5491 if test "$wxUSE_FILE" = yes; then
5492 echo "$as_me:$LINENO: result: yes" >&5
5493echo "${ECHO_T}yes" >&6
5494 else
5495 echo "$as_me:$LINENO: result: no" >&5
5496echo "${ECHO_T}no" >&6
5497 fi
5498
5499
5500 enablestring=
5501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5502echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5503 no_cache=0
5504 # Check whether --enable-filesystem or --disable-filesystem was given.
5505if test "${enable_filesystem+set}" = set; then
5506 enableval="$enable_filesystem"
5507
5508 if test "$enableval" = yes; then
5509 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5510 else
5511 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5512 fi
5513
5514else
5515
5516 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5517 if test "x$LINE" != x ; then
5518 eval "DEFAULT_$LINE"
5519 else
5520 no_cache=1
5521 fi
5522
5523 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5524
5525fi;
5526
5527 eval "$ac_cv_use_filesystem"
5528 if test "$no_cache" != 1; then
5529 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5530 fi
5531
5532 if test "$wxUSE_FILESYSTEM" = yes; then
5533 echo "$as_me:$LINENO: result: yes" >&5
5534echo "${ECHO_T}yes" >&6
5535 else
5536 echo "$as_me:$LINENO: result: no" >&5
5537echo "${ECHO_T}no" >&6
5538 fi
5539
5540
5541 enablestring=
5542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5543echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5544 no_cache=0
5545 # Check whether --enable-fontmap or --disable-fontmap was given.
5546if test "${enable_fontmap+set}" = set; then
5547 enableval="$enable_fontmap"
5548
5549 if test "$enableval" = yes; then
5550 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5551 else
5552 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5553 fi
5554
5555else
5556
5557 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5558 if test "x$LINE" != x ; then
5559 eval "DEFAULT_$LINE"
5560 else
5561 no_cache=1
5562 fi
5563
5564 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5565
5566fi;
5567
5568 eval "$ac_cv_use_fontmap"
5569 if test "$no_cache" != 1; then
5570 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5571 fi
5572
5573 if test "$wxUSE_FONTMAP" = yes; then
5574 echo "$as_me:$LINENO: result: yes" >&5
5575echo "${ECHO_T}yes" >&6
5576 else
5577 echo "$as_me:$LINENO: result: no" >&5
5578echo "${ECHO_T}no" >&6
5579 fi
5580
5581
5582 enablestring=
5583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5584echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5585 no_cache=0
5586 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5587if test "${enable_fs_inet+set}" = set; then
5588 enableval="$enable_fs_inet"
5589
5590 if test "$enableval" = yes; then
5591 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5592 else
5593 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5594 fi
5595
5596else
5597
5598 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5599 if test "x$LINE" != x ; then
5600 eval "DEFAULT_$LINE"
5601 else
5602 no_cache=1
5603 fi
5604
5605 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5606
5607fi;
5608
5609 eval "$ac_cv_use_fs_inet"
5610 if test "$no_cache" != 1; then
5611 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5612 fi
5613
5614 if test "$wxUSE_FS_INET" = yes; then
5615 echo "$as_me:$LINENO: result: yes" >&5
5616echo "${ECHO_T}yes" >&6
5617 else
5618 echo "$as_me:$LINENO: result: no" >&5
5619echo "${ECHO_T}no" >&6
5620 fi
5621
5622
5623 enablestring=
5624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5625echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5626 no_cache=0
5627 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5628if test "${enable_fs_zip+set}" = set; then
5629 enableval="$enable_fs_zip"
5630
5631 if test "$enableval" = yes; then
5632 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5633 else
5634 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5635 fi
5636
5637else
5638
5639 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5640 if test "x$LINE" != x ; then
5641 eval "DEFAULT_$LINE"
5642 else
5643 no_cache=1
5644 fi
5645
5646 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5647
5648fi;
5649
5650 eval "$ac_cv_use_fs_zip"
5651 if test "$no_cache" != 1; then
5652 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5653 fi
5654
5655 if test "$wxUSE_FS_ZIP" = yes; then
5656 echo "$as_me:$LINENO: result: yes" >&5
5657echo "${ECHO_T}yes" >&6
5658 else
5659 echo "$as_me:$LINENO: result: no" >&5
5660echo "${ECHO_T}no" >&6
5661 fi
5662
5663
5664 enablestring=
5665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5666echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5667 no_cache=0
5668 # Check whether --enable-geometry or --disable-geometry was given.
5669if test "${enable_geometry+set}" = set; then
5670 enableval="$enable_geometry"
5671
5672 if test "$enableval" = yes; then
5673 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5674 else
5675 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5676 fi
5677
5678else
5679
5680 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5681 if test "x$LINE" != x ; then
5682 eval "DEFAULT_$LINE"
5683 else
5684 no_cache=1
5685 fi
5686
5687 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5688
5689fi;
5690
5691 eval "$ac_cv_use_geometry"
5692 if test "$no_cache" != 1; then
5693 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5694 fi
5695
5696 if test "$wxUSE_GEOMETRY" = yes; then
5697 echo "$as_me:$LINENO: result: yes" >&5
5698echo "${ECHO_T}yes" >&6
5699 else
5700 echo "$as_me:$LINENO: result: no" >&5
5701echo "${ECHO_T}no" >&6
5702 fi
5703
5704
5705 enablestring=
5706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5707echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5708 no_cache=0
5709 # Check whether --enable-log or --disable-log was given.
5710if test "${enable_log+set}" = set; then
5711 enableval="$enable_log"
5712
5713 if test "$enableval" = yes; then
5714 ac_cv_use_log='wxUSE_LOG=yes'
5715 else
5716 ac_cv_use_log='wxUSE_LOG=no'
5717 fi
5718
5719else
5720
5721 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5722 if test "x$LINE" != x ; then
5723 eval "DEFAULT_$LINE"
5724 else
5725 no_cache=1
5726 fi
5727
5728 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5729
5730fi;
5731
5732 eval "$ac_cv_use_log"
5733 if test "$no_cache" != 1; then
5734 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5735 fi
5736
5737 if test "$wxUSE_LOG" = yes; then
5738 echo "$as_me:$LINENO: result: yes" >&5
5739echo "${ECHO_T}yes" >&6
5740 else
5741 echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6
5743 fi
5744
5745
5746 enablestring=
5747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5748echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5749 no_cache=0
5750 # Check whether --enable-longlong or --disable-longlong was given.
5751if test "${enable_longlong+set}" = set; then
5752 enableval="$enable_longlong"
5753
5754 if test "$enableval" = yes; then
5755 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5756 else
5757 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5758 fi
5759
5760else
5761
5762 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5763 if test "x$LINE" != x ; then
5764 eval "DEFAULT_$LINE"
5765 else
5766 no_cache=1
5767 fi
5768
5769 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5770
5771fi;
5772
5773 eval "$ac_cv_use_longlong"
5774 if test "$no_cache" != 1; then
5775 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5776 fi
5777
5778 if test "$wxUSE_LONGLONG" = yes; then
5779 echo "$as_me:$LINENO: result: yes" >&5
5780echo "${ECHO_T}yes" >&6
5781 else
5782 echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6
5784 fi
5785
5786
5787 enablestring=
5788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5789echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5790 no_cache=0
5791 # Check whether --enable-mimetype or --disable-mimetype was given.
5792if test "${enable_mimetype+set}" = set; then
5793 enableval="$enable_mimetype"
5794
5795 if test "$enableval" = yes; then
5796 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5797 else
5798 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5799 fi
5800
5801else
5802
5803 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5804 if test "x$LINE" != x ; then
5805 eval "DEFAULT_$LINE"
5806 else
5807 no_cache=1
5808 fi
5809
5810 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5811
5812fi;
5813
5814 eval "$ac_cv_use_mimetype"
5815 if test "$no_cache" != 1; then
5816 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5817 fi
5818
5819 if test "$wxUSE_MIMETYPE" = yes; then
5820 echo "$as_me:$LINENO: result: yes" >&5
5821echo "${ECHO_T}yes" >&6
5822 else
5823 echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6
5825 fi
5826
5827
5828 enablestring=
5829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5830echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5831 no_cache=0
5832 # Check whether --enable-mslu or --disable-mslu was given.
5833if test "${enable_mslu+set}" = set; then
5834 enableval="$enable_mslu"
5835
5836 if test "$enableval" = yes; then
5837 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5838 else
5839 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5840 fi
5841
5842else
5843
5844 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5845 if test "x$LINE" != x ; then
5846 eval "DEFAULT_$LINE"
5847 else
5848 no_cache=1
5849 fi
5850
5851 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5852
5853fi;
5854
5855 eval "$ac_cv_use_mslu"
5856 if test "$no_cache" != 1; then
5857 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5858 fi
5859
5860 if test "$wxUSE_UNICODE_MSLU" = yes; then
5861 echo "$as_me:$LINENO: result: yes" >&5
5862echo "${ECHO_T}yes" >&6
5863 else
5864 echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6
5866 fi
5867
5868
5869 enablestring=
5870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5871echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5872 no_cache=0
5873 # Check whether --enable-snglinst or --disable-snglinst was given.
5874if test "${enable_snglinst+set}" = set; then
5875 enableval="$enable_snglinst"
5876
5877 if test "$enableval" = yes; then
5878 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5879 else
5880 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5881 fi
5882
5883else
5884
5885 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5886 if test "x$LINE" != x ; then
5887 eval "DEFAULT_$LINE"
5888 else
5889 no_cache=1
5890 fi
5891
5892 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5893
5894fi;
5895
5896 eval "$ac_cv_use_snglinst"
5897 if test "$no_cache" != 1; then
5898 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5899 fi
5900
5901 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5902 echo "$as_me:$LINENO: result: yes" >&5
5903echo "${ECHO_T}yes" >&6
5904 else
5905 echo "$as_me:$LINENO: result: no" >&5
5906echo "${ECHO_T}no" >&6
5907 fi
5908
5909
5910 enablestring=
07158944
VZ
5911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5912echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5913 no_cache=0
07158944
VZ
5914 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5915if test "${enable_std_iostreams+set}" = set; then
5916 enableval="$enable_std_iostreams"
a848cd7e
SC
5917
5918 if test "$enableval" = yes; then
07158944 5919 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5920 else
07158944 5921 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5922 fi
5923
5924else
5925
07158944 5926 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5927 if test "x$LINE" != x ; then
5928 eval "DEFAULT_$LINE"
5929 else
5930 no_cache=1
5931 fi
5932
07158944 5933 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5934
5935fi;
5936
07158944 5937 eval "$ac_cv_use_std_iostreams"
a848cd7e 5938 if test "$no_cache" != 1; then
07158944 5939 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5940 fi
5941
07158944 5942 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5943 echo "$as_me:$LINENO: result: yes" >&5
5944echo "${ECHO_T}yes" >&6
5945 else
5946 echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6
5948 fi
5949
5950
59746b65
MW
5951 enablestring=
5952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5953echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5954 no_cache=0
5955 # Check whether --enable-std_string or --disable-std_string was given.
5956if test "${enable_std_string+set}" = set; then
5957 enableval="$enable_std_string"
5958
5959 if test "$enableval" = yes; then
5960 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5961 else
5962 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5963 fi
5964
5965else
5966
5967 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5968 if test "x$LINE" != x ; then
5969 eval "DEFAULT_$LINE"
5970 else
5971 no_cache=1
5972 fi
5973
5974 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5975
5976fi;
5977
5978 eval "$ac_cv_use_std_string"
5979 if test "$no_cache" != 1; then
5980 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5981 fi
5982
5983 if test "$wxUSE_STD_STRING" = yes; then
5984 echo "$as_me:$LINENO: result: yes" >&5
5985echo "${ECHO_T}yes" >&6
5986 else
5987 echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6
5989 fi
5990
5991
a848cd7e 5992 enablestring=
07158944
VZ
5993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5994echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5995 no_cache=0
07158944
VZ
5996 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5997if test "${enable_stdpaths+set}" = set; then
5998 enableval="$enable_stdpaths"
a848cd7e
SC
5999
6000 if test "$enableval" = yes; then
07158944 6001 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 6002 else
07158944 6003 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
6004 fi
6005
6006else
6007
07158944 6008 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
6009 if test "x$LINE" != x ; then
6010 eval "DEFAULT_$LINE"
6011 else
6012 no_cache=1
6013 fi
6014
07158944 6015 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
6016
6017fi;
6018
07158944 6019 eval "$ac_cv_use_stdpaths"
a848cd7e 6020 if test "$no_cache" != 1; then
07158944 6021 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6022 fi
6023
07158944 6024 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6025 echo "$as_me:$LINENO: result: yes" >&5
6026echo "${ECHO_T}yes" >&6
6027 else
6028 echo "$as_me:$LINENO: result: no" >&5
6029echo "${ECHO_T}no" >&6
6030 fi
6031
6032
6033 enablestring=
6034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6035echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6036 no_cache=0
6037 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6038if test "${enable_stopwatch+set}" = set; then
6039 enableval="$enable_stopwatch"
6040
6041 if test "$enableval" = yes; then
6042 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6043 else
6044 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6045 fi
6046
6047else
6048
6049 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6050 if test "x$LINE" != x ; then
6051 eval "DEFAULT_$LINE"
6052 else
6053 no_cache=1
6054 fi
6055
6056 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6057
6058fi;
6059
6060 eval "$ac_cv_use_stopwatch"
6061 if test "$no_cache" != 1; then
6062 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6063 fi
6064
6065 if test "$wxUSE_STOPWATCH" = yes; then
6066 echo "$as_me:$LINENO: result: yes" >&5
6067echo "${ECHO_T}yes" >&6
6068 else
6069 echo "$as_me:$LINENO: result: no" >&5
6070echo "${ECHO_T}no" >&6
6071 fi
6072
6073
07158944
VZ
6074 enablestring=
6075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6076echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6077 no_cache=0
6078 # Check whether --enable-streams or --disable-streams was given.
6079if test "${enable_streams+set}" = set; then
6080 enableval="$enable_streams"
6081
6082 if test "$enableval" = yes; then
6083 ac_cv_use_streams='wxUSE_STREAMS=yes'
6084 else
6085 ac_cv_use_streams='wxUSE_STREAMS=no'
6086 fi
6087
6088else
6089
6090 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6091 if test "x$LINE" != x ; then
6092 eval "DEFAULT_$LINE"
6093 else
6094 no_cache=1
6095 fi
6096
6097 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6098
6099fi;
6100
6101 eval "$ac_cv_use_streams"
6102 if test "$no_cache" != 1; then
6103 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6104 fi
6105
6106 if test "$wxUSE_STREAMS" = yes; then
6107 echo "$as_me:$LINENO: result: yes" >&5
6108echo "${ECHO_T}yes" >&6
6109 else
6110 echo "$as_me:$LINENO: result: no" >&5
6111echo "${ECHO_T}no" >&6
6112 fi
6113
6114
a848cd7e
SC
6115 enablestring=
6116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6117echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6118 no_cache=0
6119 # Check whether --enable-system_options or --disable-system_options was given.
6120if test "${enable_system_options+set}" = set; then
6121 enableval="$enable_system_options"
6122
6123 if test "$enableval" = yes; then
6124 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6125 else
6126 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6127 fi
6128
6129else
6130
6131 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6132 if test "x$LINE" != x ; then
6133 eval "DEFAULT_$LINE"
6134 else
6135 no_cache=1
6136 fi
6137
6138 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6139
6140fi;
6141
6142 eval "$ac_cv_use_system_options"
6143 if test "$no_cache" != 1; then
6144 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6145 fi
6146
6147 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6148 echo "$as_me:$LINENO: result: yes" >&5
6149echo "${ECHO_T}yes" >&6
6150 else
6151 echo "$as_me:$LINENO: result: no" >&5
6152echo "${ECHO_T}no" >&6
6153 fi
6154
6155
6156 enablestring=
6157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6158echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6159 no_cache=0
6160 # Check whether --enable-textbuf or --disable-textbuf was given.
6161if test "${enable_textbuf+set}" = set; then
6162 enableval="$enable_textbuf"
6163
6164 if test "$enableval" = yes; then
6165 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6166 else
6167 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6168 fi
6169
6170else
6171
6172 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6173 if test "x$LINE" != x ; then
6174 eval "DEFAULT_$LINE"
6175 else
6176 no_cache=1
6177 fi
6178
6179 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6180
6181fi;
6182
6183 eval "$ac_cv_use_textbuf"
6184 if test "$no_cache" != 1; then
6185 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6186 fi
6187
6188 if test "$wxUSE_TEXTBUFFER" = yes; then
6189 echo "$as_me:$LINENO: result: yes" >&5
6190echo "${ECHO_T}yes" >&6
6191 else
6192 echo "$as_me:$LINENO: result: no" >&5
6193echo "${ECHO_T}no" >&6
6194 fi
6195
6196
6197 enablestring=
6198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6199echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6200 no_cache=0
6201 # Check whether --enable-textfile or --disable-textfile was given.
6202if test "${enable_textfile+set}" = set; then
6203 enableval="$enable_textfile"
6204
6205 if test "$enableval" = yes; then
6206 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6207 else
6208 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6209 fi
6210
6211else
6212
6213 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6214 if test "x$LINE" != x ; then
6215 eval "DEFAULT_$LINE"
6216 else
6217 no_cache=1
6218 fi
6219
6220 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6221
6222fi;
6223
6224 eval "$ac_cv_use_textfile"
6225 if test "$no_cache" != 1; then
6226 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6227 fi
6228
6229 if test "$wxUSE_TEXTFILE" = yes; then
6230 echo "$as_me:$LINENO: result: yes" >&5
6231echo "${ECHO_T}yes" >&6
6232 else
6233 echo "$as_me:$LINENO: result: no" >&5
6234echo "${ECHO_T}no" >&6
6235 fi
6236
6237
6238 enablestring=
6239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6240echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6241 no_cache=0
6242 # Check whether --enable-timer or --disable-timer was given.
6243if test "${enable_timer+set}" = set; then
6244 enableval="$enable_timer"
6245
6246 if test "$enableval" = yes; then
6247 ac_cv_use_timer='wxUSE_TIMER=yes'
6248 else
6249 ac_cv_use_timer='wxUSE_TIMER=no'
6250 fi
6251
6252else
6253
6254 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6255 if test "x$LINE" != x ; then
6256 eval "DEFAULT_$LINE"
6257 else
6258 no_cache=1
6259 fi
6260
6261 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6262
6263fi;
6264
6265 eval "$ac_cv_use_timer"
6266 if test "$no_cache" != 1; then
6267 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6268 fi
6269
6270 if test "$wxUSE_TIMER" = yes; then
6271 echo "$as_me:$LINENO: result: yes" >&5
6272echo "${ECHO_T}yes" >&6
6273 else
6274 echo "$as_me:$LINENO: result: no" >&5
6275echo "${ECHO_T}no" >&6
6276 fi
6277
6278
6279 enablestring=
6280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6281echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6282 no_cache=0
6283 # Check whether --enable-unicode or --disable-unicode was given.
6284if test "${enable_unicode+set}" = set; then
6285 enableval="$enable_unicode"
6286
6287 if test "$enableval" = yes; then
6288 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6289 else
6290 ac_cv_use_unicode='wxUSE_UNICODE=no'
6291 fi
6292
6293else
6294
6295 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6296 if test "x$LINE" != x ; then
6297 eval "DEFAULT_$LINE"
6298 else
6299 no_cache=1
6300 fi
6301
6302 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6303
6304fi;
6305
6306 eval "$ac_cv_use_unicode"
6307 if test "$no_cache" != 1; then
6308 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6309 fi
6310
6311 if test "$wxUSE_UNICODE" = yes; then
6312 echo "$as_me:$LINENO: result: yes" >&5
6313echo "${ECHO_T}yes" >&6
6314 else
6315 echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6
6317 fi
6318
6319
6320 enablestring=
6321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6322echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6323 no_cache=0
6324 # Check whether --enable-sound or --disable-sound was given.
6325if test "${enable_sound+set}" = set; then
6326 enableval="$enable_sound"
6327
6328 if test "$enableval" = yes; then
6329 ac_cv_use_sound='wxUSE_SOUND=yes'
6330 else
6331 ac_cv_use_sound='wxUSE_SOUND=no'
6332 fi
6333
6334else
6335
6336 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6337 if test "x$LINE" != x ; then
6338 eval "DEFAULT_$LINE"
6339 else
6340 no_cache=1
6341 fi
6342
6343 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6344
6345fi;
6346
6347 eval "$ac_cv_use_sound"
6348 if test "$no_cache" != 1; then
6349 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6350 fi
6351
6352 if test "$wxUSE_SOUND" = yes; then
6353 echo "$as_me:$LINENO: result: yes" >&5
6354echo "${ECHO_T}yes" >&6
6355 else
6356 echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6
6358 fi
6359
6360
3b57de8b
RL
6361 enablestring=
6362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6363echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6364 no_cache=0
6365 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6366if test "${enable_mediactrl+set}" = set; then
6367 enableval="$enable_mediactrl"
6368
6369 if test "$enableval" = yes; then
6370 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6371 else
6372 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6373 fi
6374
6375else
6376
6377 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6378 if test "x$LINE" != x ; then
6379 eval "DEFAULT_$LINE"
6380 else
6381 no_cache=1
6382 fi
6383
6384 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6385
6386fi;
6387
6388 eval "$ac_cv_use_mediactrl"
6389 if test "$no_cache" != 1; then
6390 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6391 fi
6392
6393 if test "$wxUSE_MEDIACTRL" = yes; then
6394 echo "$as_me:$LINENO: result: yes" >&5
6395echo "${ECHO_T}yes" >&6
6396 else
6397 echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6
6399 fi
6400
6401
f10e38c4
VZ
6402 enablestring=
6403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6404echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6405 no_cache=0
6406 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6407if test "${enable_gstreamer8+set}" = set; then
6408 enableval="$enable_gstreamer8"
6409
6410 if test "$enableval" = yes; then
6411 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6412 else
6413 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6414 fi
6415
6416else
6417
6418 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6419 if test "x$LINE" != x ; then
6420 eval "DEFAULT_$LINE"
6421 else
6422 no_cache=1
6423 fi
6424
6425 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6426
6427fi;
6428
6429 eval "$ac_cv_use_gstreamer8"
6430 if test "$no_cache" != 1; then
6431 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6432 fi
6433
6434 if test "$wxUSE_GSTREAMER8" = yes; then
6435 echo "$as_me:$LINENO: result: yes" >&5
6436echo "${ECHO_T}yes" >&6
6437 else
6438 echo "$as_me:$LINENO: result: no" >&5
6439echo "${ECHO_T}no" >&6
6440 fi
6441
6442
a848cd7e 6443 enablestring=
8b6682b9
JS
6444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6445echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6446 no_cache=0
8b6682b9
JS
6447 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6448if test "${enable_printfposparam+set}" = set; then
6449 enableval="$enable_printfposparam"
a848cd7e
SC
6450
6451 if test "$enableval" = yes; then
8b6682b9 6452 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6453 else
8b6682b9 6454 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6455 fi
6456
6457else
6458
8b6682b9 6459 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6460 if test "x$LINE" != x ; then
6461 eval "DEFAULT_$LINE"
6462 else
6463 no_cache=1
6464 fi
6465
8b6682b9 6466 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6467
6468fi;
6469
8b6682b9 6470 eval "$ac_cv_use_printfposparam"
a848cd7e 6471 if test "$no_cache" != 1; then
8b6682b9 6472 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6473 fi
6474
8b6682b9 6475 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6476 echo "$as_me:$LINENO: result: yes" >&5
6477echo "${ECHO_T}yes" >&6
6478 else
6479 echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6
6481 fi
6482
6483
6484 enablestring=
6485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6486echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6487 no_cache=0
6488 # Check whether --enable-zipstream or --disable-zipstream was given.
6489if test "${enable_zipstream+set}" = set; then
6490 enableval="$enable_zipstream"
6491
6492 if test "$enableval" = yes; then
6493 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6494 else
6495 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6496 fi
6497
6498else
6499
6500 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6501 if test "x$LINE" != x ; then
6502 eval "DEFAULT_$LINE"
6503 else
6504 no_cache=1
6505 fi
6506
6507 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6508
6509fi;
6510
6511 eval "$ac_cv_use_zipstream"
6512 if test "$no_cache" != 1; then
6513 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6514 fi
6515
6516 if test "$wxUSE_ZIPSTREAM" = yes; then
6517 echo "$as_me:$LINENO: result: yes" >&5
6518echo "${ECHO_T}yes" >&6
6519 else
6520 echo "$as_me:$LINENO: result: no" >&5
6521echo "${ECHO_T}no" >&6
6522 fi
6523
6524
a848cd7e
SC
6525
6526 enablestring=
6527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6528echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6529 no_cache=0
6530 # Check whether --enable-url or --disable-url was given.
6531if test "${enable_url+set}" = set; then
6532 enableval="$enable_url"
6533
6534 if test "$enableval" = yes; then
6535 ac_cv_use_url='wxUSE_URL=yes'
6536 else
6537 ac_cv_use_url='wxUSE_URL=no'
6538 fi
6539
6540else
6541
6542 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6543 if test "x$LINE" != x ; then
6544 eval "DEFAULT_$LINE"
6545 else
6546 no_cache=1
6547 fi
6548
6549 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6550
6551fi;
6552
6553 eval "$ac_cv_use_url"
6554 if test "$no_cache" != 1; then
6555 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6556 fi
6557
6558 if test "$wxUSE_URL" = yes; then
6559 echo "$as_me:$LINENO: result: yes" >&5
6560echo "${ECHO_T}yes" >&6
6561 else
6562 echo "$as_me:$LINENO: result: no" >&5
6563echo "${ECHO_T}no" >&6
6564 fi
6565
6566
ca5c6ac3
VZ
6567 enablestring=
6568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6569echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6570 no_cache=0
6571 # Check whether --enable-variant or --disable-variant was given.
6572if test "${enable_variant+set}" = set; then
6573 enableval="$enable_variant"
6574
6575 if test "$enableval" = yes; then
6576 ac_cv_use_variant='wxUSE_VARIANT=yes'
6577 else
6578 ac_cv_use_variant='wxUSE_VARIANT=no'
6579 fi
6580
6581else
6582
6583 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6584 if test "x$LINE" != x ; then
6585 eval "DEFAULT_$LINE"
6586 else
6587 no_cache=1
6588 fi
6589
6590 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6591
6592fi;
6593
6594 eval "$ac_cv_use_variant"
6595 if test "$no_cache" != 1; then
6596 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6597 fi
6598
6599 if test "$wxUSE_VARIANT" = yes; then
6600 echo "$as_me:$LINENO: result: yes" >&5
6601echo "${ECHO_T}yes" >&6
6602 else
6603 echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6
6605 fi
6606
6607
a848cd7e
SC
6608 enablestring=
6609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6610echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6611 no_cache=0
6612 # Check whether --enable-protocol or --disable-protocol was given.
6613if test "${enable_protocol+set}" = set; then
6614 enableval="$enable_protocol"
6615
6616 if test "$enableval" = yes; then
6617 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6618 else
6619 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6620 fi
6621
6622else
6623
6624 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6625 if test "x$LINE" != x ; then
6626 eval "DEFAULT_$LINE"
6627 else
6628 no_cache=1
6629 fi
6630
6631 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6632
6633fi;
6634
6635 eval "$ac_cv_use_protocol"
6636 if test "$no_cache" != 1; then
6637 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6638 fi
6639
6640 if test "$wxUSE_PROTOCOL" = yes; then
6641 echo "$as_me:$LINENO: result: yes" >&5
6642echo "${ECHO_T}yes" >&6
6643 else
6644 echo "$as_me:$LINENO: result: no" >&5
6645echo "${ECHO_T}no" >&6
6646 fi
6647
6648
6649 enablestring=
6650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6651echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6652 no_cache=0
6653 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6654if test "${enable_protocol_http+set}" = set; then
6655 enableval="$enable_protocol_http"
6656
6657 if test "$enableval" = yes; then
6658 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6659 else
6660 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6661 fi
6662
6663else
6664
6665 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6666 if test "x$LINE" != x ; then
6667 eval "DEFAULT_$LINE"
6668 else
6669 no_cache=1
6670 fi
6671
6672 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6673
6674fi;
6675
6676 eval "$ac_cv_use_protocol_http"
6677 if test "$no_cache" != 1; then
6678 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6679 fi
6680
6681 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6682 echo "$as_me:$LINENO: result: yes" >&5
6683echo "${ECHO_T}yes" >&6
6684 else
6685 echo "$as_me:$LINENO: result: no" >&5
6686echo "${ECHO_T}no" >&6
6687 fi
6688
6689
6690 enablestring=
6691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6692echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6693 no_cache=0
6694 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6695if test "${enable_protocol_ftp+set}" = set; then
6696 enableval="$enable_protocol_ftp"
6697
6698 if test "$enableval" = yes; then
6699 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6700 else
6701 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6702 fi
6703
6704else
6705
6706 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6707 if test "x$LINE" != x ; then
6708 eval "DEFAULT_$LINE"
6709 else
6710 no_cache=1
6711 fi
6712
6713 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6714
6715fi;
6716
6717 eval "$ac_cv_use_protocol_ftp"
6718 if test "$no_cache" != 1; then
6719 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6720 fi
6721
6722 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6723 echo "$as_me:$LINENO: result: yes" >&5
6724echo "${ECHO_T}yes" >&6
6725 else
6726 echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6
6728 fi
6729
6730
6731 enablestring=
6732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6733echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6734 no_cache=0
6735 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6736if test "${enable_protocol_file+set}" = set; then
6737 enableval="$enable_protocol_file"
6738
6739 if test "$enableval" = yes; then
6740 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6741 else
6742 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6743 fi
6744
6745else
6746
6747 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6748 if test "x$LINE" != x ; then
6749 eval "DEFAULT_$LINE"
6750 else
6751 no_cache=1
6752 fi
6753
6754 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6755
6756fi;
6757
6758 eval "$ac_cv_use_protocol_file"
6759 if test "$no_cache" != 1; then
6760 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6761 fi
6762
6763 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6764 echo "$as_me:$LINENO: result: yes" >&5
6765echo "${ECHO_T}yes" >&6
6766 else
6767 echo "$as_me:$LINENO: result: no" >&5
6768echo "${ECHO_T}no" >&6
6769 fi
6770
6771
6772
6773
6774
6775 enablestring=
6776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6777echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6778 no_cache=0
6779 # Check whether --enable-threads or --disable-threads was given.
6780if test "${enable_threads+set}" = set; then
6781 enableval="$enable_threads"
6782
6783 if test "$enableval" = yes; then
6784 ac_cv_use_threads='wxUSE_THREADS=yes'
6785 else
6786 ac_cv_use_threads='wxUSE_THREADS=no'
6787 fi
6788
6789else
6790
6791 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6792 if test "x$LINE" != x ; then
6793 eval "DEFAULT_$LINE"
6794 else
6795 no_cache=1
6796 fi
6797
6798 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6799
6800fi;
6801
6802 eval "$ac_cv_use_threads"
6803 if test "$no_cache" != 1; then
6804 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6805 fi
6806
6807 if test "$wxUSE_THREADS" = yes; then
6808 echo "$as_me:$LINENO: result: yes" >&5
6809echo "${ECHO_T}yes" >&6
6810 else
6811 echo "$as_me:$LINENO: result: no" >&5
6812echo "${ECHO_T}no" >&6
6813 fi
6814
6815
6816if test "$wxUSE_GUI" = "yes"; then
6817
6818
6819
6820 enablestring=
6821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6822echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6823 no_cache=0
6824 # Check whether --enable-docview or --disable-docview was given.
6825if test "${enable_docview+set}" = set; then
6826 enableval="$enable_docview"
6827
6828 if test "$enableval" = yes; then
6829 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6830 else
6831 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6832 fi
6833
6834else
6835
6836 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6837 if test "x$LINE" != x ; then
6838 eval "DEFAULT_$LINE"
6839 else
6840 no_cache=1
6841 fi
6842
6843 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6844
6845fi;
6846
6847 eval "$ac_cv_use_docview"
6848 if test "$no_cache" != 1; then
6849 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6850 fi
6851
6852 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6853 echo "$as_me:$LINENO: result: yes" >&5
6854echo "${ECHO_T}yes" >&6
6855 else
6856 echo "$as_me:$LINENO: result: no" >&5
6857echo "${ECHO_T}no" >&6
6858 fi
6859
6860
6861 enablestring=
6862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6863echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6864 no_cache=0
6865 # Check whether --enable-help or --disable-help was given.
6866if test "${enable_help+set}" = set; then
6867 enableval="$enable_help"
6868
6869 if test "$enableval" = yes; then
6870 ac_cv_use_help='wxUSE_HELP=yes'
6871 else
6872 ac_cv_use_help='wxUSE_HELP=no'
6873 fi
6874
6875else
6876
6877 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6878 if test "x$LINE" != x ; then
6879 eval "DEFAULT_$LINE"
6880 else
6881 no_cache=1
6882 fi
6883
6884 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6885
6886fi;
6887
6888 eval "$ac_cv_use_help"
6889 if test "$no_cache" != 1; then
6890 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6891 fi
6892
6893 if test "$wxUSE_HELP" = yes; then
6894 echo "$as_me:$LINENO: result: yes" >&5
6895echo "${ECHO_T}yes" >&6
6896 else
6897 echo "$as_me:$LINENO: result: no" >&5
6898echo "${ECHO_T}no" >&6
6899 fi
6900
6901
6902 enablestring=
6903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6904echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6905 no_cache=0
6906 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6907if test "${enable_mshtmlhelp+set}" = set; then
6908 enableval="$enable_mshtmlhelp"
6909
6910 if test "$enableval" = yes; then
6911 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6912 else
6913 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6914 fi
6915
6916else
6917
6918 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6919 if test "x$LINE" != x ; then
6920 eval "DEFAULT_$LINE"
6921 else
6922 no_cache=1
6923 fi
6924
6925 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6926
6927fi;
6928
6929 eval "$ac_cv_use_mshtmlhelp"
6930 if test "$no_cache" != 1; then
6931 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6932 fi
6933
6934 if test "$wxUSE_MS_HTML_HELP" = yes; then
6935 echo "$as_me:$LINENO: result: yes" >&5
6936echo "${ECHO_T}yes" >&6
6937 else
6938 echo "$as_me:$LINENO: result: no" >&5
6939echo "${ECHO_T}no" >&6
6940 fi
6941
6942
6943 enablestring=
6944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6945echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6946 no_cache=0
6947 # Check whether --enable-html or --disable-html was given.
6948if test "${enable_html+set}" = set; then
6949 enableval="$enable_html"
6950
6951 if test "$enableval" = yes; then
6952 ac_cv_use_html='wxUSE_HTML=yes'
6953 else
6954 ac_cv_use_html='wxUSE_HTML=no'
6955 fi
6956
6957else
6958
6959 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6960 if test "x$LINE" != x ; then
6961 eval "DEFAULT_$LINE"
6962 else
6963 no_cache=1
6964 fi
6965
6966 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6967
6968fi;
6969
6970 eval "$ac_cv_use_html"
6971 if test "$no_cache" != 1; then
6972 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6973 fi
6974
6975 if test "$wxUSE_HTML" = yes; then
6976 echo "$as_me:$LINENO: result: yes" >&5
6977echo "${ECHO_T}yes" >&6
6978 else
6979 echo "$as_me:$LINENO: result: no" >&5
6980echo "${ECHO_T}no" >&6
6981 fi
6982
6983
6984 enablestring=
6985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6986echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6987 no_cache=0
6988 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6989if test "${enable_htmlhelp+set}" = set; then
6990 enableval="$enable_htmlhelp"
6991
6992 if test "$enableval" = yes; then
6993 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6994 else
6995 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6996 fi
6997
6998else
6999
7000 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7001 if test "x$LINE" != x ; then
7002 eval "DEFAULT_$LINE"
7003 else
7004 no_cache=1
7005 fi
7006
7007 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7008
7009fi;
7010
7011 eval "$ac_cv_use_htmlhelp"
7012 if test "$no_cache" != 1; then
7013 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7014 fi
7015
7016 if test "$wxUSE_WXHTML_HELP" = yes; then
7017 echo "$as_me:$LINENO: result: yes" >&5
7018echo "${ECHO_T}yes" >&6
7019 else
7020 echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6
7022 fi
7023
7024
9a8f0513
VS
7025 enablestring=
7026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7027echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7028 no_cache=0
7029 # Check whether --enable-xrc or --disable-xrc was given.
7030if test "${enable_xrc+set}" = set; then
7031 enableval="$enable_xrc"
7032
7033 if test "$enableval" = yes; then
7034 ac_cv_use_xrc='wxUSE_XRC=yes'
7035 else
7036 ac_cv_use_xrc='wxUSE_XRC=no'
7037 fi
7038
7039else
7040
7041 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7042 if test "x$LINE" != x ; then
7043 eval "DEFAULT_$LINE"
7044 else
7045 no_cache=1
7046 fi
7047
7048 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7049
7050fi;
7051
7052 eval "$ac_cv_use_xrc"
7053 if test "$no_cache" != 1; then
7054 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7055 fi
7056
7057 if test "$wxUSE_XRC" = yes; then
7058 echo "$as_me:$LINENO: result: yes" >&5
7059echo "${ECHO_T}yes" >&6
7060 else
7061 echo "$as_me:$LINENO: result: no" >&5
7062echo "${ECHO_T}no" >&6
7063 fi
7064
7065
3f60522a
JS
7066 enablestring=
7067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7068echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7069 no_cache=0
7070 # Check whether --enable-aui or --disable-aui was given.
7071if test "${enable_aui+set}" = set; then
7072 enableval="$enable_aui"
7073
7074 if test "$enableval" = yes; then
7075 ac_cv_use_aui='wxUSE_AUI=yes'
7076 else
7077 ac_cv_use_aui='wxUSE_AUI=no'
7078 fi
7079
7080else
7081
7082 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7083 if test "x$LINE" != x ; then
7084 eval "DEFAULT_$LINE"
7085 else
7086 no_cache=1
7087 fi
7088
7089 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7090
7091fi;
7092
7093 eval "$ac_cv_use_aui"
7094 if test "$no_cache" != 1; then
7095 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7096 fi
7097
7098 if test "$wxUSE_AUI" = yes; then
7099 echo "$as_me:$LINENO: result: yes" >&5
7100echo "${ECHO_T}yes" >&6
7101 else
7102 echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6
7104 fi
7105
7106
a848cd7e
SC
7107 enablestring=
7108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7109echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7110 no_cache=0
7111 # Check whether --enable-constraints or --disable-constraints was given.
7112if test "${enable_constraints+set}" = set; then
7113 enableval="$enable_constraints"
7114
7115 if test "$enableval" = yes; then
7116 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7117 else
7118 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7119 fi
7120
7121else
7122
7123 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7124 if test "x$LINE" != x ; then
7125 eval "DEFAULT_$LINE"
7126 else
7127 no_cache=1
7128 fi
7129
7130 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7131
7132fi;
7133
7134 eval "$ac_cv_use_constraints"
7135 if test "$no_cache" != 1; then
7136 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7137 fi
7138
7139 if test "$wxUSE_CONSTRAINTS" = yes; then
7140 echo "$as_me:$LINENO: result: yes" >&5
7141echo "${ECHO_T}yes" >&6
7142 else
7143 echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6
7145 fi
7146
7147
7148 enablestring=
7149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7150echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7151 no_cache=0
7152 # Check whether --enable-printarch or --disable-printarch was given.
7153if test "${enable_printarch+set}" = set; then
7154 enableval="$enable_printarch"
7155
7156 if test "$enableval" = yes; then
7157 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7158 else
7159 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7160 fi
7161
7162else
7163
7164 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7165 if test "x$LINE" != x ; then
7166 eval "DEFAULT_$LINE"
7167 else
7168 no_cache=1
7169 fi
7170
7171 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7172
7173fi;
7174
7175 eval "$ac_cv_use_printarch"
7176 if test "$no_cache" != 1; then
7177 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7178 fi
7179
7180 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7181 echo "$as_me:$LINENO: result: yes" >&5
7182echo "${ECHO_T}yes" >&6
7183 else
7184 echo "$as_me:$LINENO: result: no" >&5
7185echo "${ECHO_T}no" >&6
7186 fi
7187
7188
7189 enablestring=
7190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7191echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7192 no_cache=0
7193 # Check whether --enable-mdi or --disable-mdi was given.
7194if test "${enable_mdi+set}" = set; then
7195 enableval="$enable_mdi"
7196
7197 if test "$enableval" = yes; then
8a7b1113 7198 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7199 else
8a7b1113 7200 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7201 fi
7202
7203else
7204
8a7b1113 7205 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7206 if test "x$LINE" != x ; then
7207 eval "DEFAULT_$LINE"
7208 else
7209 no_cache=1
7210 fi
7211
8a7b1113 7212 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7213
7214fi;
7215
7216 eval "$ac_cv_use_mdi"
7217 if test "$no_cache" != 1; then
7218 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7219 fi
7220
8a7b1113
VZ
7221 if test "$wxUSE_MDI" = yes; then
7222 echo "$as_me:$LINENO: result: yes" >&5
7223echo "${ECHO_T}yes" >&6
7224 else
7225 echo "$as_me:$LINENO: result: no" >&5
7226echo "${ECHO_T}no" >&6
7227 fi
7228
7229
7230 enablestring=
7231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7232echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7233 no_cache=0
7234 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7235if test "${enable_mdidoc+set}" = set; then
7236 enableval="$enable_mdidoc"
7237
7238 if test "$enableval" = yes; then
7239 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7240 else
7241 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7242 fi
7243
7244else
7245
7246 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7247 if test "x$LINE" != x ; then
7248 eval "DEFAULT_$LINE"
7249 else
7250 no_cache=1
7251 fi
7252
7253 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7254
7255fi;
7256
7257 eval "$ac_cv_use_mdidoc"
7258 if test "$no_cache" != 1; then
7259 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7260 fi
7261
a848cd7e
SC
7262 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7263 echo "$as_me:$LINENO: result: yes" >&5
7264echo "${ECHO_T}yes" >&6
7265 else
7266 echo "$as_me:$LINENO: result: no" >&5
7267echo "${ECHO_T}no" >&6
7268 fi
7269
7270
7271 enablestring=
7272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7273echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7274 no_cache=0
7275 # Check whether --enable-loggui or --disable-loggui was given.
7276if test "${enable_loggui+set}" = set; then
7277 enableval="$enable_loggui"
7278
7279 if test "$enableval" = yes; then
7280 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7281 else
7282 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7283 fi
7284
7285else
7286
7287 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7288 if test "x$LINE" != x ; then
7289 eval "DEFAULT_$LINE"
7290 else
7291 no_cache=1
7292 fi
7293
7294 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7295
7296fi;
7297
7298 eval "$ac_cv_use_loggui"
7299 if test "$no_cache" != 1; then
7300 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7301 fi
7302
7303 if test "$wxUSE_LOGGUI" = yes; then
7304 echo "$as_me:$LINENO: result: yes" >&5
7305echo "${ECHO_T}yes" >&6
7306 else
7307 echo "$as_me:$LINENO: result: no" >&5
7308echo "${ECHO_T}no" >&6
7309 fi
7310
7311
7312 enablestring=
7313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7314echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7315 no_cache=0
7316 # Check whether --enable-logwin or --disable-logwin was given.
7317if test "${enable_logwin+set}" = set; then
7318 enableval="$enable_logwin"
7319
7320 if test "$enableval" = yes; then
7321 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7322 else
7323 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7324 fi
7325
7326else
7327
7328 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7329 if test "x$LINE" != x ; then
7330 eval "DEFAULT_$LINE"
7331 else
7332 no_cache=1
7333 fi
7334
7335 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7336
7337fi;
7338
7339 eval "$ac_cv_use_logwin"
7340 if test "$no_cache" != 1; then
7341 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7342 fi
7343
7344 if test "$wxUSE_LOGWINDOW" = yes; then
7345 echo "$as_me:$LINENO: result: yes" >&5
7346echo "${ECHO_T}yes" >&6
7347 else
7348 echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6
7350 fi
7351
7352
7353 enablestring=
7354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7355echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7356 no_cache=0
7357 # Check whether --enable-logdialog or --disable-logdialog was given.
7358if test "${enable_logdialog+set}" = set; then
7359 enableval="$enable_logdialog"
7360
7361 if test "$enableval" = yes; then
7362 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7363 else
7364 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7365 fi
7366
7367else
7368
7369 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7370 if test "x$LINE" != x ; then
7371 eval "DEFAULT_$LINE"
7372 else
7373 no_cache=1
7374 fi
7375
7376 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7377
7378fi;
7379
7380 eval "$ac_cv_use_logdialog"
7381 if test "$no_cache" != 1; then
7382 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7383 fi
7384
7385 if test "$wxUSE_LOGDIALOG" = yes; then
7386 echo "$as_me:$LINENO: result: yes" >&5
7387echo "${ECHO_T}yes" >&6
7388 else
7389 echo "$as_me:$LINENO: result: no" >&5
7390echo "${ECHO_T}no" >&6
7391 fi
7392
7393
646b6ec1
VS
7394 enablestring=
7395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7396echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7397 no_cache=0
7398 # Check whether --enable-webkit or --disable-webkit was given.
7399if test "${enable_webkit+set}" = set; then
7400 enableval="$enable_webkit"
7401
7402 if test "$enableval" = yes; then
7403 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7404 else
7405 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7406 fi
7407
7408else
7409
7410 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7411 if test "x$LINE" != x ; then
7412 eval "DEFAULT_$LINE"
7413 else
7414 no_cache=1
7415 fi
7416
7417 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7418
7419fi;
7420
7421 eval "$ac_cv_use_webkit"
7422 if test "$no_cache" != 1; then
7423 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7424 fi
7425
7426 if test "$wxUSE_WEBKIT" = yes; then
7427 echo "$as_me:$LINENO: result: yes" >&5
7428echo "${ECHO_T}yes" >&6
7429 else
7430 echo "$as_me:$LINENO: result: no" >&5
7431echo "${ECHO_T}no" >&6
7432 fi
7433
7434
91dea314
MW
7435 enablestring=
7436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7437echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7438 no_cache=0
7439 # Check whether --enable-html or --disable-html was given.
7440if test "${enable_html+set}" = set; then
7441 enableval="$enable_html"
7442
7443 if test "$enableval" = yes; then
7444 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7445 else
7446 ac_cv_use_html='wxUSE_RICHTEXT=no'
7447 fi
7448
7449else
7450
7451 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7452 if test "x$LINE" != x ; then
7453 eval "DEFAULT_$LINE"
7454 else
7455 no_cache=1
7456 fi
7457
7458 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7459
7460fi;
7461
7462 eval "$ac_cv_use_html"
7463 if test "$no_cache" != 1; then
7464 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7465 fi
7466
7467 if test "$wxUSE_RICHTEXT" = yes; then
7468 echo "$as_me:$LINENO: result: yes" >&5
7469echo "${ECHO_T}yes" >&6
7470 else
7471 echo "$as_me:$LINENO: result: no" >&5
7472echo "${ECHO_T}no" >&6
7473 fi
7474
7475
f43426c1
RD
7476 enablestring=
7477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7478echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7479 no_cache=0
7480 # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7481if test "${enable_graphics_ctx+set}" = set; then
7482 enableval="$enable_graphics_ctx"
7483
7484 if test "$enableval" = yes; then
7485 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7486 else
7487 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7488 fi
7489
7490else
7491
7492 LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7493 if test "x$LINE" != x ; then
7494 eval "DEFAULT_$LINE"
7495 else
7496 no_cache=1
7497 fi
7498
7499 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7500
7501fi;
7502
7503 eval "$ac_cv_use_graphics_ctx"
7504 if test "$no_cache" != 1; then
7505 echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7506 fi
7507
7508 if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7509 echo "$as_me:$LINENO: result: yes" >&5
7510echo "${ECHO_T}yes" >&6
7511 else
7512 echo "$as_me:$LINENO: result: no" >&5
7513echo "${ECHO_T}no" >&6
7514 fi
7515
7516
a848cd7e
SC
7517
7518 enablestring=
7519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7520echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7521 no_cache=0
7522 # Check whether --enable-postscript or --disable-postscript was given.
7523if test "${enable_postscript+set}" = set; then
7524 enableval="$enable_postscript"
7525
7526 if test "$enableval" = yes; then
7527 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7528 else
7529 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7530 fi
7531
7532else
7533
7534 LINE=`grep "wxUSE_POSTSCRIPT" ${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_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7542
7543fi;
7544
7545 eval "$ac_cv_use_postscript"
7546 if test "$no_cache" != 1; then
7547 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7548 fi
7549
7550 if test "$wxUSE_POSTSCRIPT" = 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
7560
7561
7562 enablestring=
7563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7564echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7565 no_cache=0
7566 # Check whether --enable-prologio or --disable-prologio was given.
7567if test "${enable_prologio+set}" = set; then
7568 enableval="$enable_prologio"
7569
7570 if test "$enableval" = yes; then
7571 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7572 else
7573 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7574 fi
7575
7576else
7577
7578 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7579 if test "x$LINE" != x ; then
7580 eval "DEFAULT_$LINE"
7581 else
7582 no_cache=1
7583 fi
7584
7585 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7586
7587fi;
7588
7589 eval "$ac_cv_use_prologio"
7590 if test "$no_cache" != 1; then
7591 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7592 fi
7593
7594 if test "$wxUSE_PROLOGIO" = yes; then
7595 echo "$as_me:$LINENO: result: yes" >&5
7596echo "${ECHO_T}yes" >&6
7597 else
7598 echo "$as_me:$LINENO: result: no" >&5
7599echo "${ECHO_T}no" >&6
7600 fi
7601
7602
7603 enablestring=
7604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7605echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7606 no_cache=0
7607 # Check whether --enable-resources or --disable-resources was given.
7608if test "${enable_resources+set}" = set; then
7609 enableval="$enable_resources"
7610
7611 if test "$enableval" = yes; then
7612 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7613 else
7614 ac_cv_use_resources='wxUSE_RESOURCES=no'
7615 fi
7616
7617else
7618
7619 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7620 if test "x$LINE" != x ; then
7621 eval "DEFAULT_$LINE"
7622 else
7623 no_cache=1
7624 fi
7625
7626 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7627
7628fi;
7629
7630 eval "$ac_cv_use_resources"
7631 if test "$no_cache" != 1; then
7632 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7633 fi
7634
7635 if test "$wxUSE_RESOURCES" = yes; then
7636 echo "$as_me:$LINENO: result: yes" >&5
7637echo "${ECHO_T}yes" >&6
7638 else
7639 echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6
7641 fi
7642
7643
7644
7645
7646 enablestring=
7647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7648echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7649 no_cache=0
7650 # Check whether --enable-clipboard or --disable-clipboard was given.
7651if test "${enable_clipboard+set}" = set; then
7652 enableval="$enable_clipboard"
7653
7654 if test "$enableval" = yes; then
7655 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7656 else
7657 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7658 fi
7659
7660else
7661
7662 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7663 if test "x$LINE" != x ; then
7664 eval "DEFAULT_$LINE"
7665 else
7666 no_cache=1
7667 fi
7668
7669 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7670
7671fi;
7672
7673 eval "$ac_cv_use_clipboard"
7674 if test "$no_cache" != 1; then
7675 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7676 fi
7677
7678 if test "$wxUSE_CLIPBOARD" = yes; then
7679 echo "$as_me:$LINENO: result: yes" >&5
7680echo "${ECHO_T}yes" >&6
7681 else
7682 echo "$as_me:$LINENO: result: no" >&5
7683echo "${ECHO_T}no" >&6
7684 fi
7685
7686
7687 enablestring=
7688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7689echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7690 no_cache=0
7691 # Check whether --enable-dnd or --disable-dnd was given.
7692if test "${enable_dnd+set}" = set; then
7693 enableval="$enable_dnd"
7694
7695 if test "$enableval" = yes; then
7696 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7697 else
7698 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7699 fi
7700
7701else
7702
7703 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7704 if test "x$LINE" != x ; then
7705 eval "DEFAULT_$LINE"
7706 else
7707 no_cache=1
7708 fi
7709
7710 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7711
7712fi;
7713
7714 eval "$ac_cv_use_dnd"
7715 if test "$no_cache" != 1; then
7716 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7717 fi
7718
7719 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7720 echo "$as_me:$LINENO: result: yes" >&5
7721echo "${ECHO_T}yes" >&6
7722 else
7723 echo "$as_me:$LINENO: result: no" >&5
7724echo "${ECHO_T}no" >&6
7725 fi
7726
7727
7728 enablestring=
7729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7730echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7731 no_cache=0
7732 # Check whether --enable-metafile or --disable-metafile was given.
7733if test "${enable_metafile+set}" = set; then
7734 enableval="$enable_metafile"
7735
7736 if test "$enableval" = yes; then
7737 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7738 else
7739 ac_cv_use_metafile='wxUSE_METAFILE=no'
7740 fi
7741
7742else
7743
7744 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7745 if test "x$LINE" != x ; then
7746 eval "DEFAULT_$LINE"
7747 else
7748 no_cache=1
7749 fi
7750
7751 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7752
7753fi;
7754
7755 eval "$ac_cv_use_metafile"
7756 if test "$no_cache" != 1; then
7757 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7758 fi
7759
7760 if test "$wxUSE_METAFILE" = yes; then
7761 echo "$as_me:$LINENO: result: yes" >&5
7762echo "${ECHO_T}yes" >&6
7763 else
7764 echo "$as_me:$LINENO: result: no" >&5
7765echo "${ECHO_T}no" >&6
7766 fi
7767
7768
7769
7770
7771
7772 enablestring=
7773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7774echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7775 no_cache=0
7776 # Check whether --enable-controls or --disable-controls was given.
7777if test "${enable_controls+set}" = set; then
7778 enableval="$enable_controls"
7779
7780 if test "$enableval" = yes; then
7781 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7782 else
7783 ac_cv_use_controls='wxUSE_CONTROLS=no'
7784 fi
7785
7786else
7787
7788 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7789 if test "x$LINE" != x ; then
7790 eval "DEFAULT_$LINE"
7791 else
7792 no_cache=1
7793 fi
7794
7795 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7796
7797fi;
7798
7799 eval "$ac_cv_use_controls"
7800 if test "$no_cache" != 1; then
7801 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7802 fi
7803
7804 if test "$wxUSE_CONTROLS" = yes; then
7805 echo "$as_me:$LINENO: result: yes" >&5
7806echo "${ECHO_T}yes" >&6
7807 else
7808 echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6
7810 fi
7811
7812
7813if test "$wxUSE_CONTROLS" = "yes"; then
7814 DEFAULT_wxUSE_ACCEL=yes
3ea50042 7815 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
7816 DEFAULT_wxUSE_BMPBUTTON=yes
7817 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7818 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7819 DEFAULT_wxUSE_CARET=yes
7820 DEFAULT_wxUSE_COMBOBOX=yes
7821 DEFAULT_wxUSE_CHECKBOX=yes
7822 DEFAULT_wxUSE_CHECKLISTBOX=yes
7823 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7824 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7825 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7826 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7827 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7828 DEFAULT_wxUSE_DISPLAY=yes
7829 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7830 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7831 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7832 DEFAULT_wxUSE_GAUGE=yes
7833 DEFAULT_wxUSE_GRID=yes
6954625c 7834 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7835 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7836 DEFAULT_wxUSE_IMAGLIST=yes
7837 DEFAULT_wxUSE_LISTBOOK=yes
7838 DEFAULT_wxUSE_LISTBOX=yes
7839 DEFAULT_wxUSE_LISTCTRL=yes
7840 DEFAULT_wxUSE_NOTEBOOK=yes
7841 DEFAULT_wxUSE_RADIOBOX=yes
7842 DEFAULT_wxUSE_RADIOBTN=yes
7843 DEFAULT_wxUSE_SASH=yes
7844 DEFAULT_wxUSE_SCROLLBAR=yes
7845 DEFAULT_wxUSE_SLIDER=yes
7846 DEFAULT_wxUSE_SPINBTN=yes
7847 DEFAULT_wxUSE_SPINCTRL=yes
7848 DEFAULT_wxUSE_SPLITTER=yes
7849 DEFAULT_wxUSE_STATBMP=yes
7850 DEFAULT_wxUSE_STATBOX=yes
7851 DEFAULT_wxUSE_STATLINE=yes
7852 DEFAULT_wxUSE_STATUSBAR=yes
7853 DEFAULT_wxUSE_TAB_DIALOG=yes
7854 DEFAULT_wxUSE_TOGGLEBTN=yes
7855 DEFAULT_wxUSE_TOOLBAR=yes
7856 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7857 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7858 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7859 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7860 DEFAULT_wxUSE_TREECTRL=yes
7861 DEFAULT_wxUSE_POPUPWIN=yes
7862 DEFAULT_wxUSE_TIPWINDOW=yes
7863elif test "$wxUSE_CONTROLS" = "no"; then
7864 DEFAULT_wxUSE_ACCEL=no
3ea50042 7865 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
7866 DEFAULT_wxUSE_BMPBUTTON=no
7867 DEFAULT_wxUSE_BUTTON=no
7868 DEFAULT_wxUSE_CALCTRL=no
7869 DEFAULT_wxUSE_CARET=no
7870 DEFAULT_wxUSE_COMBOBOX=no
7871 DEFAULT_wxUSE_CHECKBOX=no
7872 DEFAULT_wxUSE_CHECKLISTBOX=no
7873 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7874 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7875 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7876 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7877 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7878 DEFAULT_wxUSE_DISPLAY=no
7879 DEFAULT_wxUSE_DIRPICKERCTRL=no
7880 DEFAULT_wxUSE_FILEPICKERCTRL=no
7881 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7882 DEFAULT_wxUSE_GAUGE=no
7883 DEFAULT_wxUSE_GRID=no
6954625c 7884 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7885 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7886 DEFAULT_wxUSE_IMAGLIST=no
7887 DEFAULT_wxUSE_LISTBOOK=no
7888 DEFAULT_wxUSE_LISTBOX=no
7889 DEFAULT_wxUSE_LISTCTRL=no
7890 DEFAULT_wxUSE_NOTEBOOK=no
7891 DEFAULT_wxUSE_RADIOBOX=no
7892 DEFAULT_wxUSE_RADIOBTN=no
7893 DEFAULT_wxUSE_SASH=no
7894 DEFAULT_wxUSE_SCROLLBAR=no
7895 DEFAULT_wxUSE_SLIDER=no
7896 DEFAULT_wxUSE_SPINBTN=no
7897 DEFAULT_wxUSE_SPINCTRL=no
7898 DEFAULT_wxUSE_SPLITTER=no
7899 DEFAULT_wxUSE_STATBMP=no
7900 DEFAULT_wxUSE_STATBOX=no
7901 DEFAULT_wxUSE_STATLINE=no
7902 DEFAULT_wxUSE_STATUSBAR=no
7903 DEFAULT_wxUSE_TAB_DIALOG=no
7904 DEFAULT_wxUSE_TOGGLEBTN=no
7905 DEFAULT_wxUSE_TOOLBAR=no
7906 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 7907 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7908 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7909 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7910 DEFAULT_wxUSE_TREECTRL=no
7911 DEFAULT_wxUSE_POPUPWIN=no
7912 DEFAULT_wxUSE_TIPWINDOW=no
7913fi
7914
a848cd7e
SC
7915
7916 enablestring=
7917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7918echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7919 no_cache=0
7920 # Check whether --enable-accel or --disable-accel was given.
7921if test "${enable_accel+set}" = set; then
7922 enableval="$enable_accel"
7923
7924 if test "$enableval" = yes; then
7925 ac_cv_use_accel='wxUSE_ACCEL=yes'
7926 else
7927 ac_cv_use_accel='wxUSE_ACCEL=no'
7928 fi
7929
7930else
7931
7932 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7933 if test "x$LINE" != x ; then
7934 eval "DEFAULT_$LINE"
7935 else
7936 no_cache=1
7937 fi
7938
7939 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7940
7941fi;
7942
7943 eval "$ac_cv_use_accel"
7944 if test "$no_cache" != 1; then
7945 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7946 fi
7947
7948 if test "$wxUSE_ACCEL" = yes; then
7949 echo "$as_me:$LINENO: result: yes" >&5
7950echo "${ECHO_T}yes" >&6
7951 else
7952 echo "$as_me:$LINENO: result: no" >&5
7953echo "${ECHO_T}no" >&6
7954 fi
7955
7956
3ea50042
VZ
7957 enablestring=
7958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
7959echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
7960 no_cache=0
7961 # Check whether --enable-animatectrl or --disable-animatectrl was given.
7962if test "${enable_animatectrl+set}" = set; then
7963 enableval="$enable_animatectrl"
7964
7965 if test "$enableval" = yes; then
7966 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
7967 else
7968 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
7969 fi
7970
7971else
7972
7973 LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
7974 if test "x$LINE" != x ; then
7975 eval "DEFAULT_$LINE"
7976 else
7977 no_cache=1
7978 fi
7979
7980 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
7981
7982fi;
7983
7984 eval "$ac_cv_use_animatectrl"
7985 if test "$no_cache" != 1; then
7986 echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
7987 fi
7988
7989 if test "$wxUSE_ANIMATIONCTRL" = yes; then
7990 echo "$as_me:$LINENO: result: yes" >&5
7991echo "${ECHO_T}yes" >&6
7992 else
7993 echo "$as_me:$LINENO: result: no" >&5
7994echo "${ECHO_T}no" >&6
7995 fi
7996
7997
a848cd7e
SC
7998 enablestring=
7999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8000echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8001 no_cache=0
8002 # Check whether --enable-button or --disable-button was given.
8003if test "${enable_button+set}" = set; then
8004 enableval="$enable_button"
8005
8006 if test "$enableval" = yes; then
8007 ac_cv_use_button='wxUSE_BUTTON=yes'
8008 else
8009 ac_cv_use_button='wxUSE_BUTTON=no'
8010 fi
8011
8012else
8013
8014 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8015 if test "x$LINE" != x ; then
8016 eval "DEFAULT_$LINE"
8017 else
8018 no_cache=1
8019 fi
8020
8021 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8022
8023fi;
8024
8025 eval "$ac_cv_use_button"
8026 if test "$no_cache" != 1; then
8027 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8028 fi
8029
8030 if test "$wxUSE_BUTTON" = yes; then
8031 echo "$as_me:$LINENO: result: yes" >&5
8032echo "${ECHO_T}yes" >&6
8033 else
8034 echo "$as_me:$LINENO: result: no" >&5
8035echo "${ECHO_T}no" >&6
8036 fi
8037
8038
8039 enablestring=
8040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8041echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8042 no_cache=0
8043 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8044if test "${enable_bmpbutton+set}" = set; then
8045 enableval="$enable_bmpbutton"
8046
8047 if test "$enableval" = yes; then
8048 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8049 else
8050 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8051 fi
8052
8053else
8054
8055 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8056 if test "x$LINE" != x ; then
8057 eval "DEFAULT_$LINE"
8058 else
8059 no_cache=1
8060 fi
8061
8062 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8063
8064fi;
8065
8066 eval "$ac_cv_use_bmpbutton"
8067 if test "$no_cache" != 1; then
8068 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8069 fi
8070
8071 if test "$wxUSE_BMPBUTTON" = yes; then
8072 echo "$as_me:$LINENO: result: yes" >&5
8073echo "${ECHO_T}yes" >&6
8074 else
8075 echo "$as_me:$LINENO: result: no" >&5
8076echo "${ECHO_T}no" >&6
8077 fi
8078
8079
95a46303
RR
8080 enablestring=
8081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8082echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8083 no_cache=0
8084 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8085if test "${enable_bmpcombobox+set}" = set; then
8086 enableval="$enable_bmpcombobox"
8087
8088 if test "$enableval" = yes; then
8089 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8090 else
8091 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8092 fi
8093
8094else
8095
8096 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8097 if test "x$LINE" != x ; then
8098 eval "DEFAULT_$LINE"
8099 else
8100 no_cache=1
8101 fi
8102
8103 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8104
8105fi;
8106
8107 eval "$ac_cv_use_bmpcombobox"
8108 if test "$no_cache" != 1; then
8109 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8110 fi
8111
8112 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8113 echo "$as_me:$LINENO: result: yes" >&5
8114echo "${ECHO_T}yes" >&6
8115 else
8116 echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6
8118 fi
8119
8120
a848cd7e
SC
8121 enablestring=
8122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8123echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8124 no_cache=0
8125 # Check whether --enable-calendar or --disable-calendar was given.
8126if test "${enable_calendar+set}" = set; then
8127 enableval="$enable_calendar"
8128
8129 if test "$enableval" = yes; then
8130 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8131 else
8132 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8133 fi
8134
8135else
8136
8137 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8138 if test "x$LINE" != x ; then
8139 eval "DEFAULT_$LINE"
8140 else
8141 no_cache=1
8142 fi
8143
8144 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8145
8146fi;
8147
8148 eval "$ac_cv_use_calendar"
8149 if test "$no_cache" != 1; then
8150 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8151 fi
8152
8153 if test "$wxUSE_CALCTRL" = yes; then
8154 echo "$as_me:$LINENO: result: yes" >&5
8155echo "${ECHO_T}yes" >&6
8156 else
8157 echo "$as_me:$LINENO: result: no" >&5
8158echo "${ECHO_T}no" >&6
8159 fi
8160
8161
8162 enablestring=
8163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8164echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8165 no_cache=0
8166 # Check whether --enable-caret or --disable-caret was given.
8167if test "${enable_caret+set}" = set; then
8168 enableval="$enable_caret"
8169
8170 if test "$enableval" = yes; then
8171 ac_cv_use_caret='wxUSE_CARET=yes'
8172 else
8173 ac_cv_use_caret='wxUSE_CARET=no'
8174 fi
8175
8176else
8177
8178 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8179 if test "x$LINE" != x ; then
8180 eval "DEFAULT_$LINE"
8181 else
8182 no_cache=1
8183 fi
8184
8185 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8186
8187fi;
8188
8189 eval "$ac_cv_use_caret"
8190 if test "$no_cache" != 1; then
8191 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8192 fi
8193
8194 if test "$wxUSE_CARET" = yes; then
8195 echo "$as_me:$LINENO: result: yes" >&5
8196echo "${ECHO_T}yes" >&6
8197 else
8198 echo "$as_me:$LINENO: result: no" >&5
8199echo "${ECHO_T}no" >&6
8200 fi
8201
8202
8203 enablestring=
8204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8205echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8206 no_cache=0
8207 # Check whether --enable-checkbox or --disable-checkbox was given.
8208if test "${enable_checkbox+set}" = set; then
8209 enableval="$enable_checkbox"
8210
8211 if test "$enableval" = yes; then
8212 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8213 else
8214 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8215 fi
8216
8217else
8218
8219 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8220 if test "x$LINE" != x ; then
8221 eval "DEFAULT_$LINE"
8222 else
8223 no_cache=1
8224 fi
8225
8226 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8227
8228fi;
8229
8230 eval "$ac_cv_use_checkbox"
8231 if test "$no_cache" != 1; then
8232 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8233 fi
8234
8235 if test "$wxUSE_CHECKBOX" = yes; then
8236 echo "$as_me:$LINENO: result: yes" >&5
8237echo "${ECHO_T}yes" >&6
8238 else
8239 echo "$as_me:$LINENO: result: no" >&5
8240echo "${ECHO_T}no" >&6
8241 fi
8242
8243
8244 enablestring=
8245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8246echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8247 no_cache=0
8248 # Check whether --enable-checklst or --disable-checklst was given.
8249if test "${enable_checklst+set}" = set; then
8250 enableval="$enable_checklst"
8251
8252 if test "$enableval" = yes; then
8253 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8254 else
8255 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8256 fi
8257
8258else
8259
8260 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8261 if test "x$LINE" != x ; then
8262 eval "DEFAULT_$LINE"
8263 else
8264 no_cache=1
8265 fi
8266
8267 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8268
8269fi;
8270
8271 eval "$ac_cv_use_checklst"
8272 if test "$no_cache" != 1; then
8273 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8274 fi
8275
8276 if test "$wxUSE_CHECKLST" = yes; then
8277 echo "$as_me:$LINENO: result: yes" >&5
8278echo "${ECHO_T}yes" >&6
8279 else
8280 echo "$as_me:$LINENO: result: no" >&5
8281echo "${ECHO_T}no" >&6
8282 fi
8283
8284
8285 enablestring=
8286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8287echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8288 no_cache=0
8289 # Check whether --enable-choice or --disable-choice was given.
8290if test "${enable_choice+set}" = set; then
8291 enableval="$enable_choice"
8292
8293 if test "$enableval" = yes; then
8294 ac_cv_use_choice='wxUSE_CHOICE=yes'
8295 else
8296 ac_cv_use_choice='wxUSE_CHOICE=no'
8297 fi
8298
8299else
8300
8301 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8302 if test "x$LINE" != x ; then
8303 eval "DEFAULT_$LINE"
8304 else
8305 no_cache=1
8306 fi
8307
8308 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8309
8310fi;
8311
8312 eval "$ac_cv_use_choice"
8313 if test "$no_cache" != 1; then
8314 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8315 fi
8316
8317 if test "$wxUSE_CHOICE" = yes; then
8318 echo "$as_me:$LINENO: result: yes" >&5
8319echo "${ECHO_T}yes" >&6
8320 else
8321 echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6
8323 fi
8324
8325
92bbdbcd
WS
8326 enablestring=
8327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8328echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8329 no_cache=0
8330 # Check whether --enable-choicebook or --disable-choicebook was given.
8331if test "${enable_choicebook+set}" = set; then
8332 enableval="$enable_choicebook"
8333
8334 if test "$enableval" = yes; then
8335 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8336 else
8337 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8338 fi
8339
8340else
8341
8342 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8343 if test "x$LINE" != x ; then
8344 eval "DEFAULT_$LINE"
8345 else
8346 no_cache=1
8347 fi
8348
8349 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8350
8351fi;
8352
8353 eval "$ac_cv_use_choicebook"
8354 if test "$no_cache" != 1; then
8355 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8356 fi
8357
8358 if test "$wxUSE_CHOICEBOOK" = yes; then
8359 echo "$as_me:$LINENO: result: yes" >&5
8360echo "${ECHO_T}yes" >&6
8361 else
8362 echo "$as_me:$LINENO: result: no" >&5
8363echo "${ECHO_T}no" >&6
8364 fi
8365
8366
e9263684
VZ
8367 enablestring=
8368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8369echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8370 no_cache=0
8371 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8372if test "${enable_colourpicker+set}" = set; then
8373 enableval="$enable_colourpicker"
8374
8375 if test "$enableval" = yes; then
8376 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8377 else
8378 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8379 fi
8380
8381else
8382
8383 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8384 if test "x$LINE" != x ; then
8385 eval "DEFAULT_$LINE"
8386 else
8387 no_cache=1
8388 fi
8389
8390 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8391
8392fi;
8393
8394 eval "$ac_cv_use_colourpicker"
8395 if test "$no_cache" != 1; then
8396 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8397 fi
8398
8399 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8400 echo "$as_me:$LINENO: result: yes" >&5
8401echo "${ECHO_T}yes" >&6
8402 else
8403 echo "$as_me:$LINENO: result: no" >&5
8404echo "${ECHO_T}no" >&6
8405 fi
8406
8407
a848cd7e
SC
8408 enablestring=
8409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8410echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8411 no_cache=0
8412 # Check whether --enable-combobox or --disable-combobox was given.
8413if test "${enable_combobox+set}" = set; then
8414 enableval="$enable_combobox"
8415
8416 if test "$enableval" = yes; then
8417 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8418 else
8419 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8420 fi
8421
8422else
8423
8424 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8425 if test "x$LINE" != x ; then
8426 eval "DEFAULT_$LINE"
8427 else
8428 no_cache=1
8429 fi
8430
8431 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8432
8433fi;
8434
8435 eval "$ac_cv_use_combobox"
8436 if test "$no_cache" != 1; then
8437 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8438 fi
8439
8440 if test "$wxUSE_COMBOBOX" = yes; then
8441 echo "$as_me:$LINENO: result: yes" >&5
8442echo "${ECHO_T}yes" >&6
8443 else
8444 echo "$as_me:$LINENO: result: no" >&5
8445echo "${ECHO_T}no" >&6
8446 fi
8447
8448
642bcba9 8449 enablestring=
a57d600f
VZ
8450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8451echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8452 no_cache=0
a57d600f
VZ
8453 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8454if test "${enable_comboctrl+set}" = set; then
8455 enableval="$enable_comboctrl"
642bcba9
VZ
8456
8457 if test "$enableval" = yes; then
a57d600f 8458 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8459 else
a57d600f 8460 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8461 fi
8462
8463else
8464
a57d600f 8465 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8466 if test "x$LINE" != x ; then
8467 eval "DEFAULT_$LINE"
8468 else
8469 no_cache=1
8470 fi
8471
a57d600f 8472 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8473
8474fi;
8475
a57d600f 8476 eval "$ac_cv_use_comboctrl"
642bcba9 8477 if test "$no_cache" != 1; then
a57d600f 8478 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8479 fi
8480
a57d600f 8481 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8482 echo "$as_me:$LINENO: result: yes" >&5
8483echo "${ECHO_T}yes" >&6
8484 else
8485 echo "$as_me:$LINENO: result: no" >&5
8486echo "${ECHO_T}no" >&6
8487 fi
8488
8489
da98e9be
VZ
8490 enablestring=
8491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8492echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8493 no_cache=0
8494 # Check whether --enable-datepick or --disable-datepick was given.
8495if test "${enable_datepick+set}" = set; then
8496 enableval="$enable_datepick"
8497
8498 if test "$enableval" = yes; then
8499 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8500 else
8501 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8502 fi
8503
8504else
8505
8506 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8507 if test "x$LINE" != x ; then
8508 eval "DEFAULT_$LINE"
8509 else
8510 no_cache=1
8511 fi
8512
8513 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8514
8515fi;
8516
8517 eval "$ac_cv_use_datepick"
8518 if test "$no_cache" != 1; then
8519 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8520 fi
8521
8522 if test "$wxUSE_DATEPICKCTRL" = yes; then
8523 echo "$as_me:$LINENO: result: yes" >&5
8524echo "${ECHO_T}yes" >&6
8525 else
8526 echo "$as_me:$LINENO: result: no" >&5
8527echo "${ECHO_T}no" >&6
8528 fi
8529
8530
e9263684
VZ
8531 enablestring=
8532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8533echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8534 no_cache=0
8535 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8536if test "${enable_dirpicker+set}" = set; then
8537 enableval="$enable_dirpicker"
8538
8539 if test "$enableval" = yes; then
8540 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8541 else
8542 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8543 fi
8544
8545else
8546
8547 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8548 if test "x$LINE" != x ; then
8549 eval "DEFAULT_$LINE"
8550 else
8551 no_cache=1
8552 fi
8553
8554 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8555
8556fi;
8557
8558 eval "$ac_cv_use_dirpicker"
8559 if test "$no_cache" != 1; then
8560 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8561 fi
8562
8563 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8564 echo "$as_me:$LINENO: result: yes" >&5
8565echo "${ECHO_T}yes" >&6
8566 else
8567 echo "$as_me:$LINENO: result: no" >&5
8568echo "${ECHO_T}no" >&6
8569 fi
8570
8571
a848cd7e
SC
8572 enablestring=
8573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8574echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8575 no_cache=0
8576 # Check whether --enable-display or --disable-display was given.
8577if test "${enable_display+set}" = set; then
8578 enableval="$enable_display"
8579
8580 if test "$enableval" = yes; then
8581 ac_cv_use_display='wxUSE_DISPLAY=yes'
8582 else
8583 ac_cv_use_display='wxUSE_DISPLAY=no'
8584 fi
8585
8586else
8587
8588 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8589 if test "x$LINE" != x ; then
8590 eval "DEFAULT_$LINE"
8591 else
8592 no_cache=1
8593 fi
8594
8595 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8596
8597fi;
8598
8599 eval "$ac_cv_use_display"
8600 if test "$no_cache" != 1; then
8601 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8602 fi
8603
8604 if test "$wxUSE_DISPLAY" = yes; then
8605 echo "$as_me:$LINENO: result: yes" >&5
8606echo "${ECHO_T}yes" >&6
8607 else
8608 echo "$as_me:$LINENO: result: no" >&5
8609echo "${ECHO_T}no" >&6
8610 fi
8611
8612
e9263684
VZ
8613 enablestring=
8614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8615echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8616 no_cache=0
8617 # Check whether --enable-filepicker or --disable-filepicker was given.
8618if test "${enable_filepicker+set}" = set; then
8619 enableval="$enable_filepicker"
8620
8621 if test "$enableval" = yes; then
8622 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8623 else
8624 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8625 fi
8626
8627else
8628
8629 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8630 if test "x$LINE" != x ; then
8631 eval "DEFAULT_$LINE"
8632 else
8633 no_cache=1
8634 fi
8635
8636 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8637
8638fi;
8639
8640 eval "$ac_cv_use_filepicker"
8641 if test "$no_cache" != 1; then
8642 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8643 fi
8644
8645 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8646 echo "$as_me:$LINENO: result: yes" >&5
8647echo "${ECHO_T}yes" >&6
8648 else
8649 echo "$as_me:$LINENO: result: no" >&5
8650echo "${ECHO_T}no" >&6
8651 fi
8652
8653
8654 enablestring=
8655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8656echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8657 no_cache=0
8658 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8659if test "${enable_fontpicker+set}" = set; then
8660 enableval="$enable_fontpicker"
8661
8662 if test "$enableval" = yes; then
8663 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8664 else
8665 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8666 fi
8667
8668else
8669
8670 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8671 if test "x$LINE" != x ; then
8672 eval "DEFAULT_$LINE"
8673 else
8674 no_cache=1
8675 fi
8676
8677 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8678
8679fi;
8680
8681 eval "$ac_cv_use_fontpicker"
8682 if test "$no_cache" != 1; then
8683 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8684 fi
8685
8686 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8687 echo "$as_me:$LINENO: result: yes" >&5
8688echo "${ECHO_T}yes" >&6
8689 else
8690 echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6
8692 fi
8693
8694
a848cd7e
SC
8695 enablestring=
8696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8697echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8698 no_cache=0
8699 # Check whether --enable-gauge or --disable-gauge was given.
8700if test "${enable_gauge+set}" = set; then
8701 enableval="$enable_gauge"
8702
8703 if test "$enableval" = yes; then
8704 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8705 else
8706 ac_cv_use_gauge='wxUSE_GAUGE=no'
8707 fi
8708
8709else
8710
8711 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8712 if test "x$LINE" != x ; then
8713 eval "DEFAULT_$LINE"
8714 else
8715 no_cache=1
8716 fi
8717
8718 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8719
8720fi;
8721
8722 eval "$ac_cv_use_gauge"
8723 if test "$no_cache" != 1; then
8724 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8725 fi
8726
8727 if test "$wxUSE_GAUGE" = yes; then
8728 echo "$as_me:$LINENO: result: yes" >&5
8729echo "${ECHO_T}yes" >&6
8730 else
8731 echo "$as_me:$LINENO: result: no" >&5
8732echo "${ECHO_T}no" >&6
8733 fi
8734
8735
8736 enablestring=
8737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8738echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8739 no_cache=0
8740 # Check whether --enable-grid or --disable-grid was given.
8741if test "${enable_grid+set}" = set; then
8742 enableval="$enable_grid"
8743
8744 if test "$enableval" = yes; then
8745 ac_cv_use_grid='wxUSE_GRID=yes'
8746 else
8747 ac_cv_use_grid='wxUSE_GRID=no'
8748 fi
8749
8750else
8751
8752 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8753 if test "x$LINE" != x ; then
8754 eval "DEFAULT_$LINE"
8755 else
8756 no_cache=1
8757 fi
8758
8759 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8760
8761fi;
8762
8763 eval "$ac_cv_use_grid"
8764 if test "$no_cache" != 1; then
8765 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8766 fi
8767
8768 if test "$wxUSE_GRID" = yes; then
8769 echo "$as_me:$LINENO: result: yes" >&5
8770echo "${ECHO_T}yes" >&6
8771 else
8772 echo "$as_me:$LINENO: result: no" >&5
8773echo "${ECHO_T}no" >&6
8774 fi
8775
8776
20e34ecc
RR
8777 enablestring=
8778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8779echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8780 no_cache=0
8781 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8782if test "${enable_dataviewctrl+set}" = set; then
8783 enableval="$enable_dataviewctrl"
8784
8785 if test "$enableval" = yes; then
8786 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8787 else
8788 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8789 fi
8790
8791else
8792
8793 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8794 if test "x$LINE" != x ; then
8795 eval "DEFAULT_$LINE"
8796 else
8797 no_cache=1
8798 fi
8799
8800 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8801
8802fi;
8803
8804 eval "$ac_cv_use_dataviewctrl"
8805 if test "$no_cache" != 1; then
8806 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8807 fi
8808
8809 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8810 echo "$as_me:$LINENO: result: yes" >&5
8811echo "${ECHO_T}yes" >&6
8812 else
8813 echo "$as_me:$LINENO: result: no" >&5
8814echo "${ECHO_T}no" >&6
8815 fi
8816
8817
6954625c
VZ
8818 enablestring=
8819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8820echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8821 no_cache=0
8822 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8823if test "${enable_hyperlink+set}" = set; then
8824 enableval="$enable_hyperlink"
8825
8826 if test "$enableval" = yes; then
8827 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8828 else
8829 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8830 fi
8831
8832else
8833
8834 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8835 if test "x$LINE" != x ; then
8836 eval "DEFAULT_$LINE"
8837 else
8838 no_cache=1
8839 fi
8840
8841 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8842
8843fi;
8844
8845 eval "$ac_cv_use_hyperlink"
8846 if test "$no_cache" != 1; then
8847 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8848 fi
8849
8850 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8851 echo "$as_me:$LINENO: result: yes" >&5
8852echo "${ECHO_T}yes" >&6
8853 else
8854 echo "$as_me:$LINENO: result: no" >&5
8855echo "${ECHO_T}no" >&6
8856 fi
8857
8858
a848cd7e
SC
8859 enablestring=
8860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8861echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8862 no_cache=0
8863 # Check whether --enable-imaglist or --disable-imaglist was given.
8864if test "${enable_imaglist+set}" = set; then
8865 enableval="$enable_imaglist"
8866
8867 if test "$enableval" = yes; then
8868 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8869 else
8870 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8871 fi
8872
8873else
8874
8875 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8876 if test "x$LINE" != x ; then
8877 eval "DEFAULT_$LINE"
8878 else
8879 no_cache=1
8880 fi
8881
8882 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8883
8884fi;
8885
8886 eval "$ac_cv_use_imaglist"
8887 if test "$no_cache" != 1; then
8888 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8889 fi
8890
8891 if test "$wxUSE_IMAGLIST" = yes; then
8892 echo "$as_me:$LINENO: result: yes" >&5
8893echo "${ECHO_T}yes" >&6
8894 else
8895 echo "$as_me:$LINENO: result: no" >&5
8896echo "${ECHO_T}no" >&6
8897 fi
8898
8899
8900 enablestring=
8901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8902echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8903 no_cache=0
8904 # Check whether --enable-listbook or --disable-listbook was given.
8905if test "${enable_listbook+set}" = set; then
8906 enableval="$enable_listbook"
8907
8908 if test "$enableval" = yes; then
8909 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8910 else
8911 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8912 fi
8913
8914else
8915
8916 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8917 if test "x$LINE" != x ; then
8918 eval "DEFAULT_$LINE"
8919 else
8920 no_cache=1
8921 fi
8922
8923 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8924
8925fi;
8926
8927 eval "$ac_cv_use_listbook"
8928 if test "$no_cache" != 1; then
8929 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8930 fi
8931
8932 if test "$wxUSE_LISTBOOK" = yes; then
8933 echo "$as_me:$LINENO: result: yes" >&5
8934echo "${ECHO_T}yes" >&6
8935 else
8936 echo "$as_me:$LINENO: result: no" >&5
8937echo "${ECHO_T}no" >&6
8938 fi
8939
8940
8941 enablestring=
8942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8943echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8944 no_cache=0
8945 # Check whether --enable-listbox or --disable-listbox was given.
8946if test "${enable_listbox+set}" = set; then
8947 enableval="$enable_listbox"
8948
8949 if test "$enableval" = yes; then
8950 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8951 else
8952 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8953 fi
8954
8955else
8956
8957 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8958 if test "x$LINE" != x ; then
8959 eval "DEFAULT_$LINE"
8960 else
8961 no_cache=1
8962 fi
8963
8964 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8965
8966fi;
8967
8968 eval "$ac_cv_use_listbox"
8969 if test "$no_cache" != 1; then
8970 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8971 fi
8972
8973 if test "$wxUSE_LISTBOX" = yes; then
8974 echo "$as_me:$LINENO: result: yes" >&5
8975echo "${ECHO_T}yes" >&6
8976 else
8977 echo "$as_me:$LINENO: result: no" >&5
8978echo "${ECHO_T}no" >&6
8979 fi
8980
8981
8982 enablestring=
8983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8984echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8985 no_cache=0
8986 # Check whether --enable-listctrl or --disable-listctrl was given.
8987if test "${enable_listctrl+set}" = set; then
8988 enableval="$enable_listctrl"
8989
8990 if test "$enableval" = yes; then
8991 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8992 else
8993 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8994 fi
8995
8996else
8997
8998 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8999 if test "x$LINE" != x ; then
9000 eval "DEFAULT_$LINE"
9001 else
9002 no_cache=1
9003 fi
9004
9005 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9006
9007fi;
9008
9009 eval "$ac_cv_use_listctrl"
9010 if test "$no_cache" != 1; then
9011 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9012 fi
9013
9014 if test "$wxUSE_LISTCTRL" = yes; then
9015 echo "$as_me:$LINENO: result: yes" >&5
9016echo "${ECHO_T}yes" >&6
9017 else
9018 echo "$as_me:$LINENO: result: no" >&5
9019echo "${ECHO_T}no" >&6
9020 fi
9021
9022
9023 enablestring=
9024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9025echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9026 no_cache=0
9027 # Check whether --enable-notebook or --disable-notebook was given.
9028if test "${enable_notebook+set}" = set; then
9029 enableval="$enable_notebook"
9030
9031 if test "$enableval" = yes; then
9032 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9033 else
9034 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9035 fi
9036
9037else
9038
9039 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9040 if test "x$LINE" != x ; then
9041 eval "DEFAULT_$LINE"
9042 else
9043 no_cache=1
9044 fi
9045
9046 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9047
9048fi;
9049
9050 eval "$ac_cv_use_notebook"
9051 if test "$no_cache" != 1; then
9052 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9053 fi
9054
9055 if test "$wxUSE_NOTEBOOK" = yes; then
9056 echo "$as_me:$LINENO: result: yes" >&5
9057echo "${ECHO_T}yes" >&6
9058 else
9059 echo "$as_me:$LINENO: result: no" >&5
9060echo "${ECHO_T}no" >&6
9061 fi
9062
9063
642bcba9 9064 enablestring=
a57d600f
VZ
9065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9066echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 9067 no_cache=0
a57d600f
VZ
9068 # Check whether --enable-odcombobox or --disable-odcombobox was given.
9069if test "${enable_odcombobox+set}" = set; then
9070 enableval="$enable_odcombobox"
642bcba9
VZ
9071
9072 if test "$enableval" = yes; then
a57d600f 9073 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 9074 else
a57d600f 9075 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
9076 fi
9077
9078else
9079
a57d600f 9080 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
9081 if test "x$LINE" != x ; then
9082 eval "DEFAULT_$LINE"
9083 else
9084 no_cache=1
9085 fi
9086
a57d600f 9087 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
9088
9089fi;
9090
a57d600f 9091 eval "$ac_cv_use_odcombobox"
642bcba9 9092 if test "$no_cache" != 1; then
a57d600f 9093 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
9094 fi
9095
a57d600f 9096 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
9097 echo "$as_me:$LINENO: result: yes" >&5
9098echo "${ECHO_T}yes" >&6
9099 else
9100 echo "$as_me:$LINENO: result: no" >&5
9101echo "${ECHO_T}no" >&6
9102 fi
9103
9104
a848cd7e
SC
9105 enablestring=
9106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9107echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9108 no_cache=0
9109 # Check whether --enable-radiobox or --disable-radiobox was given.
9110if test "${enable_radiobox+set}" = set; then
9111 enableval="$enable_radiobox"
9112
9113 if test "$enableval" = yes; then
9114 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9115 else
9116 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9117 fi
9118
9119else
9120
9121 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9122 if test "x$LINE" != x ; then
9123 eval "DEFAULT_$LINE"
9124 else
9125 no_cache=1
9126 fi
9127
9128 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9129
9130fi;
9131
9132 eval "$ac_cv_use_radiobox"
9133 if test "$no_cache" != 1; then
9134 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9135 fi
9136
9137 if test "$wxUSE_RADIOBOX" = yes; then
9138 echo "$as_me:$LINENO: result: yes" >&5
9139echo "${ECHO_T}yes" >&6
9140 else
9141 echo "$as_me:$LINENO: result: no" >&5
9142echo "${ECHO_T}no" >&6
9143 fi
9144
9145
9146 enablestring=
9147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9148echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9149 no_cache=0
9150 # Check whether --enable-radiobtn or --disable-radiobtn was given.
9151if test "${enable_radiobtn+set}" = set; then
9152 enableval="$enable_radiobtn"
9153
9154 if test "$enableval" = yes; then
9155 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9156 else
9157 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9158 fi
9159
9160else
9161
9162 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9163 if test "x$LINE" != x ; then
9164 eval "DEFAULT_$LINE"
9165 else
9166 no_cache=1
9167 fi
9168
9169 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9170
9171fi;
9172
9173 eval "$ac_cv_use_radiobtn"
9174 if test "$no_cache" != 1; then
9175 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9176 fi
9177
9178 if test "$wxUSE_RADIOBTN" = yes; then
9179 echo "$as_me:$LINENO: result: yes" >&5
9180echo "${ECHO_T}yes" >&6
9181 else
9182 echo "$as_me:$LINENO: result: no" >&5
9183echo "${ECHO_T}no" >&6
9184 fi
9185
9186
9187 enablestring=
9188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9189echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9190 no_cache=0
9191 # Check whether --enable-sash or --disable-sash was given.
9192if test "${enable_sash+set}" = set; then
9193 enableval="$enable_sash"
9194
9195 if test "$enableval" = yes; then
9196 ac_cv_use_sash='wxUSE_SASH=yes'
9197 else
9198 ac_cv_use_sash='wxUSE_SASH=no'
9199 fi
9200
9201else
9202
9203 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9204 if test "x$LINE" != x ; then
9205 eval "DEFAULT_$LINE"
9206 else
9207 no_cache=1
9208 fi
9209
9210 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9211
9212fi;
9213
9214 eval "$ac_cv_use_sash"
9215 if test "$no_cache" != 1; then
9216 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9217 fi
9218
9219 if test "$wxUSE_SASH" = yes; then
9220 echo "$as_me:$LINENO: result: yes" >&5
9221echo "${ECHO_T}yes" >&6
9222 else
9223 echo "$as_me:$LINENO: result: no" >&5
9224echo "${ECHO_T}no" >&6
9225 fi
9226
9227
9228 enablestring=
9229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9230echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9231 no_cache=0
9232 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9233if test "${enable_scrollbar+set}" = set; then
9234 enableval="$enable_scrollbar"
9235
9236 if test "$enableval" = yes; then
9237 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9238 else
9239 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9240 fi
9241
9242else
9243
9244 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9245 if test "x$LINE" != x ; then
9246 eval "DEFAULT_$LINE"
9247 else
9248 no_cache=1
9249 fi
9250
9251 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9252
9253fi;
9254
9255 eval "$ac_cv_use_scrollbar"
9256 if test "$no_cache" != 1; then
9257 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9258 fi
9259
9260 if test "$wxUSE_SCROLLBAR" = yes; then
9261 echo "$as_me:$LINENO: result: yes" >&5
9262echo "${ECHO_T}yes" >&6
9263 else
9264 echo "$as_me:$LINENO: result: no" >&5
9265echo "${ECHO_T}no" >&6
9266 fi
9267
9268
9269 enablestring=
9270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9271echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9272 no_cache=0
9273 # Check whether --enable-slider or --disable-slider was given.
9274if test "${enable_slider+set}" = set; then
9275 enableval="$enable_slider"
9276
9277 if test "$enableval" = yes; then
9278 ac_cv_use_slider='wxUSE_SLIDER=yes'
9279 else
9280 ac_cv_use_slider='wxUSE_SLIDER=no'
9281 fi
9282
9283else
9284
9285 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9286 if test "x$LINE" != x ; then
9287 eval "DEFAULT_$LINE"
9288 else
9289 no_cache=1
9290 fi
9291
9292 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9293
9294fi;
9295
9296 eval "$ac_cv_use_slider"
9297 if test "$no_cache" != 1; then
9298 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9299 fi
9300
9301 if test "$wxUSE_SLIDER" = yes; then
9302 echo "$as_me:$LINENO: result: yes" >&5
9303echo "${ECHO_T}yes" >&6
9304 else
9305 echo "$as_me:$LINENO: result: no" >&5
9306echo "${ECHO_T}no" >&6
9307 fi
9308
9309
9310 enablestring=
9311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9312echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9313 no_cache=0
9314 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9315if test "${enable_spinbtn+set}" = set; then
9316 enableval="$enable_spinbtn"
9317
9318 if test "$enableval" = yes; then
9319 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9320 else
9321 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9322 fi
9323
9324else
9325
9326 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9327 if test "x$LINE" != x ; then
9328 eval "DEFAULT_$LINE"
9329 else
9330 no_cache=1
9331 fi
9332
9333 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9334
9335fi;
9336
9337 eval "$ac_cv_use_spinbtn"
9338 if test "$no_cache" != 1; then
9339 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9340 fi
9341
9342 if test "$wxUSE_SPINBTN" = yes; then
9343 echo "$as_me:$LINENO: result: yes" >&5
9344echo "${ECHO_T}yes" >&6
9345 else
9346 echo "$as_me:$LINENO: result: no" >&5
9347echo "${ECHO_T}no" >&6
9348 fi
9349
9350
9351 enablestring=
9352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9353echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9354 no_cache=0
9355 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9356if test "${enable_spinctrl+set}" = set; then
9357 enableval="$enable_spinctrl"
9358
9359 if test "$enableval" = yes; then
9360 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9361 else
9362 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9363 fi
9364
9365else
9366
9367 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9368 if test "x$LINE" != x ; then
9369 eval "DEFAULT_$LINE"
9370 else
9371 no_cache=1
9372 fi
9373
9374 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9375
9376fi;
9377
9378 eval "$ac_cv_use_spinctrl"
9379 if test "$no_cache" != 1; then
9380 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9381 fi
9382
9383 if test "$wxUSE_SPINCTRL" = yes; then
9384 echo "$as_me:$LINENO: result: yes" >&5
9385echo "${ECHO_T}yes" >&6
9386 else
9387 echo "$as_me:$LINENO: result: no" >&5
9388echo "${ECHO_T}no" >&6
9389 fi
9390
9391
9392 enablestring=
9393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9394echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9395 no_cache=0
9396 # Check whether --enable-splitter or --disable-splitter was given.
9397if test "${enable_splitter+set}" = set; then
9398 enableval="$enable_splitter"
9399
9400 if test "$enableval" = yes; then
9401 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9402 else
9403 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9404 fi
9405
9406else
9407
9408 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9409 if test "x$LINE" != x ; then
9410 eval "DEFAULT_$LINE"
9411 else
9412 no_cache=1
9413 fi
9414
9415 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9416
9417fi;
9418
9419 eval "$ac_cv_use_splitter"
9420 if test "$no_cache" != 1; then
9421 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9422 fi
9423
9424 if test "$wxUSE_SPLITTER" = yes; then
9425 echo "$as_me:$LINENO: result: yes" >&5
9426echo "${ECHO_T}yes" >&6
9427 else
9428 echo "$as_me:$LINENO: result: no" >&5
9429echo "${ECHO_T}no" >&6
9430 fi
9431
9432
9433 enablestring=
9434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9435echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9436 no_cache=0
9437 # Check whether --enable-statbmp or --disable-statbmp was given.
9438if test "${enable_statbmp+set}" = set; then
9439 enableval="$enable_statbmp"
9440
9441 if test "$enableval" = yes; then
9442 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9443 else
9444 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9445 fi
9446
9447else
9448
9449 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9450 if test "x$LINE" != x ; then
9451 eval "DEFAULT_$LINE"
9452 else
9453 no_cache=1
9454 fi
9455
9456 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9457
9458fi;
9459
9460 eval "$ac_cv_use_statbmp"
9461 if test "$no_cache" != 1; then
9462 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9463 fi
9464
9465 if test "$wxUSE_STATBMP" = yes; then
9466 echo "$as_me:$LINENO: result: yes" >&5
9467echo "${ECHO_T}yes" >&6
9468 else
9469 echo "$as_me:$LINENO: result: no" >&5
9470echo "${ECHO_T}no" >&6
9471 fi
9472
9473
9474 enablestring=
9475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9476echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9477 no_cache=0
9478 # Check whether --enable-statbox or --disable-statbox was given.
9479if test "${enable_statbox+set}" = set; then
9480 enableval="$enable_statbox"
9481
9482 if test "$enableval" = yes; then
9483 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9484 else
9485 ac_cv_use_statbox='wxUSE_STATBOX=no'
9486 fi
9487
9488else
9489
9490 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9491 if test "x$LINE" != x ; then
9492 eval "DEFAULT_$LINE"
9493 else
9494 no_cache=1
9495 fi
9496
9497 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9498
9499fi;
9500
9501 eval "$ac_cv_use_statbox"
9502 if test "$no_cache" != 1; then
9503 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9504 fi
9505
9506 if test "$wxUSE_STATBOX" = yes; then
9507 echo "$as_me:$LINENO: result: yes" >&5
9508echo "${ECHO_T}yes" >&6
9509 else
9510 echo "$as_me:$LINENO: result: no" >&5
9511echo "${ECHO_T}no" >&6
9512 fi
9513
9514
9515 enablestring=
9516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9517echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9518 no_cache=0
9519 # Check whether --enable-statline or --disable-statline was given.
9520if test "${enable_statline+set}" = set; then
9521 enableval="$enable_statline"
9522
9523 if test "$enableval" = yes; then
9524 ac_cv_use_statline='wxUSE_STATLINE=yes'
9525 else
9526 ac_cv_use_statline='wxUSE_STATLINE=no'
9527 fi
9528
9529else
9530
9531 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9532 if test "x$LINE" != x ; then
9533 eval "DEFAULT_$LINE"
9534 else
9535 no_cache=1
9536 fi
9537
9538 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9539
9540fi;
9541
9542 eval "$ac_cv_use_statline"
9543 if test "$no_cache" != 1; then
9544 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9545 fi
9546
9547 if test "$wxUSE_STATLINE" = yes; then
9548 echo "$as_me:$LINENO: result: yes" >&5
9549echo "${ECHO_T}yes" >&6
9550 else
9551 echo "$as_me:$LINENO: result: no" >&5
9552echo "${ECHO_T}no" >&6
9553 fi
9554
9555
9556 enablestring=
9557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9558echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9559 no_cache=0
9560 # Check whether --enable-stattext or --disable-stattext was given.
9561if test "${enable_stattext+set}" = set; then
9562 enableval="$enable_stattext"
9563
9564 if test "$enableval" = yes; then
9565 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9566 else
9567 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9568 fi
9569
9570else
9571
9572 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9573 if test "x$LINE" != x ; then
9574 eval "DEFAULT_$LINE"
9575 else
9576 no_cache=1
9577 fi
9578
9579 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9580
9581fi;
9582
9583 eval "$ac_cv_use_stattext"
9584 if test "$no_cache" != 1; then
9585 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9586 fi
9587
9588 if test "$wxUSE_STATTEXT" = yes; then
9589 echo "$as_me:$LINENO: result: yes" >&5
9590echo "${ECHO_T}yes" >&6
9591 else
9592 echo "$as_me:$LINENO: result: no" >&5
9593echo "${ECHO_T}no" >&6
9594 fi
9595
9596
9597 enablestring=
9598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9599echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9600 no_cache=0
9601 # Check whether --enable-statusbar or --disable-statusbar was given.
9602if test "${enable_statusbar+set}" = set; then
9603 enableval="$enable_statusbar"
9604
9605 if test "$enableval" = yes; then
9606 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9607 else
9608 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9609 fi
9610
9611else
9612
9613 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9614 if test "x$LINE" != x ; then
9615 eval "DEFAULT_$LINE"
9616 else
9617 no_cache=1
9618 fi
9619
9620 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9621
9622fi;
9623
9624 eval "$ac_cv_use_statusbar"
9625 if test "$no_cache" != 1; then
9626 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9627 fi
9628
9629 if test "$wxUSE_STATUSBAR" = yes; then
9630 echo "$as_me:$LINENO: result: yes" >&5
9631echo "${ECHO_T}yes" >&6
9632 else
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
9635 fi
9636
9637
9638 enablestring=
9639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9640echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9641 no_cache=0
9642 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9643if test "${enable_tabdialog+set}" = set; then
9644 enableval="$enable_tabdialog"
9645
9646 if test "$enableval" = yes; then
f10e38c4 9647 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9648 else
f10e38c4 9649 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9650 fi
9651
9652else
9653
f10e38c4 9654 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9655 if test "x$LINE" != x ; then
9656 eval "DEFAULT_$LINE"
9657 else
9658 no_cache=1
9659 fi
9660
f10e38c4 9661 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9662
9663fi;
9664
9665 eval "$ac_cv_use_tabdialog"
9666 if test "$no_cache" != 1; then
9667 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9668 fi
9669
f10e38c4 9670 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9671 echo "$as_me:$LINENO: result: yes" >&5
9672echo "${ECHO_T}yes" >&6
9673 else
9674 echo "$as_me:$LINENO: result: no" >&5
9675echo "${ECHO_T}no" >&6
9676 fi
9677
9678
9679 enablestring=
9680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9681echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9682 no_cache=0
9683 # Check whether --enable-textctrl or --disable-textctrl was given.
9684if test "${enable_textctrl+set}" = set; then
9685 enableval="$enable_textctrl"
9686
9687 if test "$enableval" = yes; then
9688 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9689 else
9690 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9691 fi
9692
9693else
9694
9695 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9696 if test "x$LINE" != x ; then
9697 eval "DEFAULT_$LINE"
9698 else
9699 no_cache=1
9700 fi
9701
9702 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9703
9704fi;
9705
9706 eval "$ac_cv_use_textctrl"
9707 if test "$no_cache" != 1; then
9708 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9709 fi
9710
9711 if test "$wxUSE_TEXTCTRL" = yes; then
9712 echo "$as_me:$LINENO: result: yes" >&5
9713echo "${ECHO_T}yes" >&6
9714 else
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
9717 fi
9718
9719
9720 enablestring=
9721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9722echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9723 no_cache=0
9724 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9725if test "${enable_togglebtn+set}" = set; then
9726 enableval="$enable_togglebtn"
9727
9728 if test "$enableval" = yes; then
9729 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9730 else
9731 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9732 fi
9733
9734else
9735
9736 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9737 if test "x$LINE" != x ; then
9738 eval "DEFAULT_$LINE"
9739 else
9740 no_cache=1
9741 fi
9742
9743 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9744
9745fi;
9746
9747 eval "$ac_cv_use_togglebtn"
9748 if test "$no_cache" != 1; then
9749 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9750 fi
9751
9752 if test "$wxUSE_TOGGLEBTN" = yes; then
9753 echo "$as_me:$LINENO: result: yes" >&5
9754echo "${ECHO_T}yes" >&6
9755 else
9756 echo "$as_me:$LINENO: result: no" >&5
9757echo "${ECHO_T}no" >&6
9758 fi
9759
9760
9761 enablestring=
9762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9763echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9764 no_cache=0
9765 # Check whether --enable-toolbar or --disable-toolbar was given.
9766if test "${enable_toolbar+set}" = set; then
9767 enableval="$enable_toolbar"
9768
9769 if test "$enableval" = yes; then
9770 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9771 else
9772 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9773 fi
9774
9775else
9776
9777 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9778 if test "x$LINE" != x ; then
9779 eval "DEFAULT_$LINE"
9780 else
9781 no_cache=1
9782 fi
9783
9784 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9785
9786fi;
9787
9788 eval "$ac_cv_use_toolbar"
9789 if test "$no_cache" != 1; then
9790 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9791 fi
9792
9793 if test "$wxUSE_TOOLBAR" = yes; then
9794 echo "$as_me:$LINENO: result: yes" >&5
9795echo "${ECHO_T}yes" >&6
9796 else
9797 echo "$as_me:$LINENO: result: no" >&5
9798echo "${ECHO_T}no" >&6
9799 fi
9800
9801
9802 enablestring=
9803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9804echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9805 no_cache=0
9806 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9807if test "${enable_tbarnative+set}" = set; then
9808 enableval="$enable_tbarnative"
9809
9810 if test "$enableval" = yes; then
9811 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9812 else
9813 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9814 fi
9815
9816else
9817
9818 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9819 if test "x$LINE" != x ; then
9820 eval "DEFAULT_$LINE"
9821 else
9822 no_cache=1
9823 fi
9824
9825 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9826
9827fi;
9828
9829 eval "$ac_cv_use_tbarnative"
9830 if test "$no_cache" != 1; then
9831 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9832 fi
9833
9834 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9835 echo "$as_me:$LINENO: result: yes" >&5
9836echo "${ECHO_T}yes" >&6
9837 else
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
9840 fi
9841
9842
0093c2fc
VZ
9843 enablestring=
9844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9845echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9846 no_cache=0
9847 # Check whether --enable-treebook or --disable-treebook was given.
9848if test "${enable_treebook+set}" = set; then
9849 enableval="$enable_treebook"
9850
9851 if test "$enableval" = yes; then
9852 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9853 else
9854 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9855 fi
9856
9857else
9858
9859 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9860 if test "x$LINE" != x ; then
9861 eval "DEFAULT_$LINE"
9862 else
9863 no_cache=1
9864 fi
9865
9866 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9867
9868fi;
9869
9870 eval "$ac_cv_use_treebook"
9871 if test "$no_cache" != 1; then
9872 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9873 fi
9874
9875 if test "$wxUSE_TREEBOOK" = yes; then
9876 echo "$as_me:$LINENO: result: yes" >&5
9877echo "${ECHO_T}yes" >&6
9878 else
9879 echo "$as_me:$LINENO: result: no" >&5
9880echo "${ECHO_T}no" >&6
9881 fi
9882
9883
5ec3bc43
JS
9884 enablestring=
9885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9886echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9887 no_cache=0
9888 # Check whether --enable-toolbook or --disable-toolbook was given.
9889if test "${enable_toolbook+set}" = set; then
9890 enableval="$enable_toolbook"
9891
9892 if test "$enableval" = yes; then
9893 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9894 else
9895 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9896 fi
9897
9898else
9899
9900 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9901 if test "x$LINE" != x ; then
9902 eval "DEFAULT_$LINE"
9903 else
9904 no_cache=1
9905 fi
9906
9907 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9908
9909fi;
9910
9911 eval "$ac_cv_use_toolbook"
9912 if test "$no_cache" != 1; then
9913 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9914 fi
9915
9916 if test "$wxUSE_TOOLBOOK" = yes; then
9917 echo "$as_me:$LINENO: result: yes" >&5
9918echo "${ECHO_T}yes" >&6
9919 else
9920 echo "$as_me:$LINENO: result: no" >&5
9921echo "${ECHO_T}no" >&6
9922 fi
9923
9924
a848cd7e
SC
9925 enablestring=
9926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9927echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9928 no_cache=0
9929 # Check whether --enable-treectrl or --disable-treectrl was given.
9930if test "${enable_treectrl+set}" = set; then
9931 enableval="$enable_treectrl"
9932
9933 if test "$enableval" = yes; then
9934 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9935 else
9936 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9937 fi
9938
9939else
9940
9941 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9942 if test "x$LINE" != x ; then
9943 eval "DEFAULT_$LINE"
9944 else
9945 no_cache=1
9946 fi
9947
9948 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9949
9950fi;
9951
9952 eval "$ac_cv_use_treectrl"
9953 if test "$no_cache" != 1; then
9954 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9955 fi
9956
9957 if test "$wxUSE_TREECTRL" = yes; then
9958 echo "$as_me:$LINENO: result: yes" >&5
9959echo "${ECHO_T}yes" >&6
9960 else
9961 echo "$as_me:$LINENO: result: no" >&5
9962echo "${ECHO_T}no" >&6
9963 fi
9964
9965
9966 enablestring=
9967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9968echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9969 no_cache=0
9970 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9971if test "${enable_tipwindow+set}" = set; then
9972 enableval="$enable_tipwindow"
9973
9974 if test "$enableval" = yes; then
9975 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9976 else
9977 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9978 fi
9979
9980else
9981
9982 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9983 if test "x$LINE" != x ; then
9984 eval "DEFAULT_$LINE"
9985 else
9986 no_cache=1
9987 fi
9988
9989 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9990
9991fi;
9992
9993 eval "$ac_cv_use_tipwindow"
9994 if test "$no_cache" != 1; then
9995 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9996 fi
9997
9998 if test "$wxUSE_TIPWINDOW" = yes; then
9999 echo "$as_me:$LINENO: result: yes" >&5
10000echo "${ECHO_T}yes" >&6
10001 else
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
10004 fi
10005
10006
10007 enablestring=
10008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10009echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10010 no_cache=0
10011 # Check whether --enable-popupwin or --disable-popupwin was given.
10012if test "${enable_popupwin+set}" = set; then
10013 enableval="$enable_popupwin"
10014
10015 if test "$enableval" = yes; then
10016 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10017 else
10018 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10019 fi
10020
10021else
10022
10023 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10024 if test "x$LINE" != x ; then
10025 eval "DEFAULT_$LINE"
10026 else
10027 no_cache=1
10028 fi
10029
10030 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10031
10032fi;
10033
10034 eval "$ac_cv_use_popupwin"
10035 if test "$no_cache" != 1; then
10036 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10037 fi
10038
10039 if test "$wxUSE_POPUPWIN" = yes; then
10040 echo "$as_me:$LINENO: result: yes" >&5
10041echo "${ECHO_T}yes" >&6
10042 else
10043 echo "$as_me:$LINENO: result: no" >&5
10044echo "${ECHO_T}no" >&6
10045 fi
10046
10047
10048
10049
10050 enablestring=
10051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10052echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10053 no_cache=0
10054 # Check whether --enable-commondlg or --disable-commondlg was given.
10055if test "${enable_commondlg+set}" = set; then
10056 enableval="$enable_commondlg"
10057
10058 if test "$enableval" = yes; then
10059 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10060 else
10061 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10062 fi
10063
10064else
10065
10066 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10067 if test "x$LINE" != x ; then
10068 eval "DEFAULT_$LINE"
10069 else
10070 no_cache=1
10071 fi
10072
10073 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10074
10075fi;
10076
10077 eval "$ac_cv_use_commondlg"
10078 if test "$no_cache" != 1; then
10079 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10080 fi
10081
10082 if test "$wxUSE_COMMONDLGS" = yes; then
10083 echo "$as_me:$LINENO: result: yes" >&5
10084echo "${ECHO_T}yes" >&6
10085 else
10086 echo "$as_me:$LINENO: result: no" >&5
10087echo "${ECHO_T}no" >&6
10088 fi
10089
10090
319c5ed4
VZ
10091 enablestring=
10092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10093echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10094 no_cache=0
10095 # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10096if test "${enable_aboutdlg+set}" = set; then
10097 enableval="$enable_aboutdlg"
10098
10099 if test "$enableval" = yes; then
10100 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10101 else
10102 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10103 fi
10104
10105else
10106
10107 LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10108 if test "x$LINE" != x ; then
10109 eval "DEFAULT_$LINE"
10110 else
10111 no_cache=1
10112 fi
10113
10114 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10115
10116fi;
10117
10118 eval "$ac_cv_use_aboutdlg"
10119 if test "$no_cache" != 1; then
10120 echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10121 fi
10122
10123 if test "$wxUSE_ABOUTDLG" = yes; then
10124 echo "$as_me:$LINENO: result: yes" >&5
10125echo "${ECHO_T}yes" >&6
10126 else
10127 echo "$as_me:$LINENO: result: no" >&5
10128echo "${ECHO_T}no" >&6
10129 fi
10130
10131
a848cd7e
SC
10132 enablestring=
10133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10134echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10135 no_cache=0
10136 # Check whether --enable-choicedlg or --disable-choicedlg was given.
10137if test "${enable_choicedlg+set}" = set; then
10138 enableval="$enable_choicedlg"
10139
10140 if test "$enableval" = yes; then
10141 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10142 else
10143 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10144 fi
10145
10146else
10147
10148 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10149 if test "x$LINE" != x ; then
10150 eval "DEFAULT_$LINE"
10151 else
10152 no_cache=1
10153 fi
10154
10155 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10156
10157fi;
10158
10159 eval "$ac_cv_use_choicedlg"
10160 if test "$no_cache" != 1; then
10161 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10162 fi
10163
10164 if test "$wxUSE_CHOICEDLG" = yes; then
10165 echo "$as_me:$LINENO: result: yes" >&5
10166echo "${ECHO_T}yes" >&6
10167 else
10168 echo "$as_me:$LINENO: result: no" >&5
10169echo "${ECHO_T}no" >&6
10170 fi
10171
10172
10173 enablestring=
10174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10175echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10176 no_cache=0
10177 # Check whether --enable-coldlg or --disable-coldlg was given.
10178if test "${enable_coldlg+set}" = set; then
10179 enableval="$enable_coldlg"
10180
10181 if test "$enableval" = yes; then
10182 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10183 else
10184 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10185 fi
10186
10187else
10188
10189 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10190 if test "x$LINE" != x ; then
10191 eval "DEFAULT_$LINE"
10192 else
10193 no_cache=1
10194 fi
10195
10196 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10197
10198fi;
10199
10200 eval "$ac_cv_use_coldlg"
10201 if test "$no_cache" != 1; then
10202 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10203 fi
10204
10205 if test "$wxUSE_COLOURDLG" = yes; then
10206 echo "$as_me:$LINENO: result: yes" >&5
10207echo "${ECHO_T}yes" >&6
10208 else
10209 echo "$as_me:$LINENO: result: no" >&5
10210echo "${ECHO_T}no" >&6
10211 fi
10212
10213
10214 enablestring=
10215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10216echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10217 no_cache=0
10218 # Check whether --enable-filedlg or --disable-filedlg was given.
10219if test "${enable_filedlg+set}" = set; then
10220 enableval="$enable_filedlg"
10221
10222 if test "$enableval" = yes; then
10223 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10224 else
10225 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10226 fi
10227
10228else
10229
10230 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10231 if test "x$LINE" != x ; then
10232 eval "DEFAULT_$LINE"
10233 else
10234 no_cache=1
10235 fi
10236
10237 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10238
10239fi;
10240
10241 eval "$ac_cv_use_filedlg"
10242 if test "$no_cache" != 1; then
10243 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10244 fi
10245
10246 if test "$wxUSE_FILEDLG" = yes; then
10247 echo "$as_me:$LINENO: result: yes" >&5
10248echo "${ECHO_T}yes" >&6
10249 else
10250 echo "$as_me:$LINENO: result: no" >&5
10251echo "${ECHO_T}no" >&6
10252 fi
10253
10254
10255 enablestring=
10256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10257echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10258 no_cache=0
10259 # Check whether --enable-finddlg or --disable-finddlg was given.
10260if test "${enable_finddlg+set}" = set; then
10261 enableval="$enable_finddlg"
10262
10263 if test "$enableval" = yes; then
10264 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10265 else
10266 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10267 fi
10268
10269else
10270
10271 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10272 if test "x$LINE" != x ; then
10273 eval "DEFAULT_$LINE"
10274 else
10275 no_cache=1
10276 fi
10277
10278 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10279
10280fi;
10281
10282 eval "$ac_cv_use_finddlg"
10283 if test "$no_cache" != 1; then
10284 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10285 fi
10286
10287 if test "$wxUSE_FINDREPLDLG" = yes; then
10288 echo "$as_me:$LINENO: result: yes" >&5
10289echo "${ECHO_T}yes" >&6
10290 else
10291 echo "$as_me:$LINENO: result: no" >&5
10292echo "${ECHO_T}no" >&6
10293 fi
10294
10295
10296 enablestring=
10297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10298echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10299 no_cache=0
10300 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10301if test "${enable_fontdlg+set}" = set; then
10302 enableval="$enable_fontdlg"
10303
10304 if test "$enableval" = yes; then
10305 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10306 else
10307 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10308 fi
10309
10310else
10311
10312 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10313 if test "x$LINE" != x ; then
10314 eval "DEFAULT_$LINE"
10315 else
10316 no_cache=1
10317 fi
10318
10319 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10320
10321fi;
10322
10323 eval "$ac_cv_use_fontdlg"
10324 if test "$no_cache" != 1; then
10325 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10326 fi
10327
10328 if test "$wxUSE_FONTDLG" = yes; then
10329 echo "$as_me:$LINENO: result: yes" >&5
10330echo "${ECHO_T}yes" >&6
10331 else
10332 echo "$as_me:$LINENO: result: no" >&5
10333echo "${ECHO_T}no" >&6
10334 fi
10335
10336
10337 enablestring=
10338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10339echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10340 no_cache=0
10341 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10342if test "${enable_dirdlg+set}" = set; then
10343 enableval="$enable_dirdlg"
10344
10345 if test "$enableval" = yes; then
10346 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10347 else
10348 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10349 fi
10350
10351else
10352
10353 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10354 if test "x$LINE" != x ; then
10355 eval "DEFAULT_$LINE"
10356 else
10357 no_cache=1
10358 fi
10359
10360 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10361
10362fi;
10363
10364 eval "$ac_cv_use_dirdlg"
10365 if test "$no_cache" != 1; then
10366 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10367 fi
10368
10369 if test "$wxUSE_DIRDLG" = yes; then
10370 echo "$as_me:$LINENO: result: yes" >&5
10371echo "${ECHO_T}yes" >&6
10372 else
10373 echo "$as_me:$LINENO: result: no" >&5
10374echo "${ECHO_T}no" >&6
10375 fi
10376
10377
10378 enablestring=
10379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10380echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10381 no_cache=0
10382 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10383if test "${enable_msgdlg+set}" = set; then
10384 enableval="$enable_msgdlg"
10385
10386 if test "$enableval" = yes; then
10387 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10388 else
10389 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10390 fi
10391
10392else
10393
10394 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10395 if test "x$LINE" != x ; then
10396 eval "DEFAULT_$LINE"
10397 else
10398 no_cache=1
10399 fi
10400
10401 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10402
10403fi;
10404
10405 eval "$ac_cv_use_msgdlg"
10406 if test "$no_cache" != 1; then
10407 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10408 fi
10409
10410 if test "$wxUSE_MSGDLG" = yes; then
10411 echo "$as_me:$LINENO: result: yes" >&5
10412echo "${ECHO_T}yes" >&6
10413 else
10414 echo "$as_me:$LINENO: result: no" >&5
10415echo "${ECHO_T}no" >&6
10416 fi
10417
10418
10419 enablestring=
10420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10421echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10422 no_cache=0
10423 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10424if test "${enable_numberdlg+set}" = set; then
10425 enableval="$enable_numberdlg"
10426
10427 if test "$enableval" = yes; then
10428 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10429 else
10430 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10431 fi
10432
10433else
10434
10435 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10436 if test "x$LINE" != x ; then
10437 eval "DEFAULT_$LINE"
10438 else
10439 no_cache=1
10440 fi
10441
10442 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10443
10444fi;
10445
10446 eval "$ac_cv_use_numberdlg"
10447 if test "$no_cache" != 1; then
10448 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10449 fi
10450
10451 if test "$wxUSE_NUMBERDLG" = yes; then
10452 echo "$as_me:$LINENO: result: yes" >&5
10453echo "${ECHO_T}yes" >&6
10454 else
10455 echo "$as_me:$LINENO: result: no" >&5
10456echo "${ECHO_T}no" >&6
10457 fi
10458
10459
10460 enablestring=
10461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10462echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10463 no_cache=0
10464 # Check whether --enable-splash or --disable-splash was given.
10465if test "${enable_splash+set}" = set; then
10466 enableval="$enable_splash"
10467
10468 if test "$enableval" = yes; then
10469 ac_cv_use_splash='wxUSE_SPLASH=yes'
10470 else
10471 ac_cv_use_splash='wxUSE_SPLASH=no'
10472 fi
10473
10474else
10475
10476 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10477 if test "x$LINE" != x ; then
10478 eval "DEFAULT_$LINE"
10479 else
10480 no_cache=1
10481 fi
10482
10483 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10484
10485fi;
10486
10487 eval "$ac_cv_use_splash"
10488 if test "$no_cache" != 1; then
10489 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10490 fi
10491
10492 if test "$wxUSE_SPLASH" = yes; then
10493 echo "$as_me:$LINENO: result: yes" >&5
10494echo "${ECHO_T}yes" >&6
10495 else
10496 echo "$as_me:$LINENO: result: no" >&5
10497echo "${ECHO_T}no" >&6
10498 fi
10499
10500
10501 enablestring=
10502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10503echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10504 no_cache=0
10505 # Check whether --enable-textdlg or --disable-textdlg was given.
10506if test "${enable_textdlg+set}" = set; then
10507 enableval="$enable_textdlg"
10508
10509 if test "$enableval" = yes; then
10510 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10511 else
10512 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10513 fi
10514
10515else
10516
10517 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10518 if test "x$LINE" != x ; then
10519 eval "DEFAULT_$LINE"
10520 else
10521 no_cache=1
10522 fi
10523
10524 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10525
10526fi;
10527
10528 eval "$ac_cv_use_textdlg"
10529 if test "$no_cache" != 1; then
10530 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10531 fi
10532
10533 if test "$wxUSE_TEXTDLG" = yes; then
10534 echo "$as_me:$LINENO: result: yes" >&5
10535echo "${ECHO_T}yes" >&6
10536 else
10537 echo "$as_me:$LINENO: result: no" >&5
10538echo "${ECHO_T}no" >&6
10539 fi
10540
10541
10542 enablestring=
10543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10544echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10545 no_cache=0
10546 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10547if test "${enable_tipdlg+set}" = set; then
10548 enableval="$enable_tipdlg"
10549
10550 if test "$enableval" = yes; then
10551 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10552 else
10553 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10554 fi
10555
10556else
10557
10558 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10559 if test "x$LINE" != x ; then
10560 eval "DEFAULT_$LINE"
10561 else
10562 no_cache=1
10563 fi
10564
10565 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10566
10567fi;
10568
10569 eval "$ac_cv_use_tipdlg"
10570 if test "$no_cache" != 1; then
10571 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10572 fi
10573
10574 if test "$wxUSE_STARTUP_TIPS" = yes; then
10575 echo "$as_me:$LINENO: result: yes" >&5
10576echo "${ECHO_T}yes" >&6
10577 else
10578 echo "$as_me:$LINENO: result: no" >&5
10579echo "${ECHO_T}no" >&6
10580 fi
10581
10582
10583 enablestring=
10584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10585echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10586 no_cache=0
10587 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10588if test "${enable_progressdlg+set}" = set; then
10589 enableval="$enable_progressdlg"
10590
10591 if test "$enableval" = yes; then
10592 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10593 else
10594 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10595 fi
10596
10597else
10598
10599 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10600 if test "x$LINE" != x ; then
10601 eval "DEFAULT_$LINE"
10602 else
10603 no_cache=1
10604 fi
10605
10606 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10607
10608fi;
10609
10610 eval "$ac_cv_use_progressdlg"
10611 if test "$no_cache" != 1; then
10612 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10613 fi
10614
10615 if test "$wxUSE_PROGRESSDLG" = yes; then
10616 echo "$as_me:$LINENO: result: yes" >&5
10617echo "${ECHO_T}yes" >&6
10618 else
10619 echo "$as_me:$LINENO: result: no" >&5
10620echo "${ECHO_T}no" >&6
10621 fi
10622
10623
10624 enablestring=
10625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10626echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10627 no_cache=0
10628 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10629if test "${enable_wizarddlg+set}" = set; then
10630 enableval="$enable_wizarddlg"
10631
10632 if test "$enableval" = yes; then
10633 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10634 else
10635 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10636 fi
10637
10638else
10639
10640 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10641 if test "x$LINE" != x ; then
10642 eval "DEFAULT_$LINE"
10643 else
10644 no_cache=1
10645 fi
10646
10647 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10648
10649fi;
10650
10651 eval "$ac_cv_use_wizarddlg"
10652 if test "$no_cache" != 1; then
10653 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10654 fi
10655
10656 if test "$wxUSE_WIZARDDLG" = yes; then
10657 echo "$as_me:$LINENO: result: yes" >&5
10658echo "${ECHO_T}yes" >&6
10659 else
10660 echo "$as_me:$LINENO: result: no" >&5
10661echo "${ECHO_T}no" >&6
10662 fi
10663
10664
10665
10666
10667 enablestring=
10668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10669echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10670 no_cache=0
10671 # Check whether --enable-menus or --disable-menus was given.
10672if test "${enable_menus+set}" = set; then
10673 enableval="$enable_menus"
10674
10675 if test "$enableval" = yes; then
10676 ac_cv_use_menus='wxUSE_MENUS=yes'
10677 else
10678 ac_cv_use_menus='wxUSE_MENUS=no'
10679 fi
10680
10681else
10682
10683 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10684 if test "x$LINE" != x ; then
10685 eval "DEFAULT_$LINE"
10686 else
10687 no_cache=1
10688 fi
10689
10690 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10691
10692fi;
10693
10694 eval "$ac_cv_use_menus"
10695 if test "$no_cache" != 1; then
10696 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10697 fi
10698
10699 if test "$wxUSE_MENUS" = yes; then
10700 echo "$as_me:$LINENO: result: yes" >&5
10701echo "${ECHO_T}yes" >&6
10702 else
10703 echo "$as_me:$LINENO: result: no" >&5
10704echo "${ECHO_T}no" >&6
10705 fi
10706
10707
10708 enablestring=
10709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10710echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10711 no_cache=0
10712 # Check whether --enable-miniframe or --disable-miniframe was given.
10713if test "${enable_miniframe+set}" = set; then
10714 enableval="$enable_miniframe"
10715
10716 if test "$enableval" = yes; then
10717 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10718 else
10719 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10720 fi
10721
10722else
10723
10724 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10725 if test "x$LINE" != x ; then
10726 eval "DEFAULT_$LINE"
10727 else
10728 no_cache=1
10729 fi
10730
10731 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10732
10733fi;
10734
10735 eval "$ac_cv_use_miniframe"
10736 if test "$no_cache" != 1; then
10737 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10738 fi
10739
10740 if test "$wxUSE_MINIFRAME" = yes; then
10741 echo "$as_me:$LINENO: result: yes" >&5
10742echo "${ECHO_T}yes" >&6
10743 else
10744 echo "$as_me:$LINENO: result: no" >&5
10745echo "${ECHO_T}no" >&6
10746 fi
10747
10748
10749 enablestring=
10750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10751echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10752 no_cache=0
10753 # Check whether --enable-tooltips or --disable-tooltips was given.
10754if test "${enable_tooltips+set}" = set; then
10755 enableval="$enable_tooltips"
10756
10757 if test "$enableval" = yes; then
10758 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10759 else
10760 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10761 fi
10762
10763else
10764
10765 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10766 if test "x$LINE" != x ; then
10767 eval "DEFAULT_$LINE"
10768 else
10769 no_cache=1
10770 fi
10771
10772 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10773
10774fi;
10775
10776 eval "$ac_cv_use_tooltips"
10777 if test "$no_cache" != 1; then
10778 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10779 fi
10780
10781 if test "$wxUSE_TOOLTIPS" = yes; then
10782 echo "$as_me:$LINENO: result: yes" >&5
10783echo "${ECHO_T}yes" >&6
10784 else
10785 echo "$as_me:$LINENO: result: no" >&5
10786echo "${ECHO_T}no" >&6
10787 fi
10788
10789
10790 enablestring=
10791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10792echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10793 no_cache=0
10794 # Check whether --enable-splines or --disable-splines was given.
10795if test "${enable_splines+set}" = set; then
10796 enableval="$enable_splines"
10797
10798 if test "$enableval" = yes; then
10799 ac_cv_use_splines='wxUSE_SPLINES=yes'
10800 else
10801 ac_cv_use_splines='wxUSE_SPLINES=no'
10802 fi
10803
10804else
10805
10806 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10807 if test "x$LINE" != x ; then
10808 eval "DEFAULT_$LINE"
10809 else
10810 no_cache=1
10811 fi
10812
10813 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10814
10815fi;
10816
10817 eval "$ac_cv_use_splines"
10818 if test "$no_cache" != 1; then
10819 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10820 fi
10821
10822 if test "$wxUSE_SPLINES" = yes; then
10823 echo "$as_me:$LINENO: result: yes" >&5
10824echo "${ECHO_T}yes" >&6
10825 else
10826 echo "$as_me:$LINENO: result: no" >&5
10827echo "${ECHO_T}no" >&6
10828 fi
10829
10830
fbe2ca43
SN
10831 enablestring=
10832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10833echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10834 no_cache=0
10835 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10836if test "${enable_mousewheel+set}" = set; then
10837 enableval="$enable_mousewheel"
10838
10839 if test "$enableval" = yes; then
10840 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10841 else
10842 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10843 fi
10844
10845else
10846
10847 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10848 if test "x$LINE" != x ; then
10849 eval "DEFAULT_$LINE"
10850 else
10851 no_cache=1
10852 fi
10853
10854 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10855
10856fi;
10857
10858 eval "$ac_cv_use_mousewheel"
10859 if test "$no_cache" != 1; then
10860 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10861 fi
10862
10863 if test "$wxUSE_MOUSEWHEEL" = yes; then
10864 echo "$as_me:$LINENO: result: yes" >&5
10865echo "${ECHO_T}yes" >&6
10866 else
10867 echo "$as_me:$LINENO: result: no" >&5
10868echo "${ECHO_T}no" >&6
10869 fi
10870
10871
a848cd7e
SC
10872 enablestring=
10873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10874echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10875 no_cache=0
10876 # Check whether --enable-validators or --disable-validators was given.
10877if test "${enable_validators+set}" = set; then
10878 enableval="$enable_validators"
10879
10880 if test "$enableval" = yes; then
10881 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10882 else
10883 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10884 fi
10885
10886else
10887
10888 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10889 if test "x$LINE" != x ; then
10890 eval "DEFAULT_$LINE"
10891 else
10892 no_cache=1
10893 fi
10894
10895 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10896
10897fi;
10898
10899 eval "$ac_cv_use_validators"
10900 if test "$no_cache" != 1; then
10901 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10902 fi
10903
10904 if test "$wxUSE_VALIDATORS" = yes; then
10905 echo "$as_me:$LINENO: result: yes" >&5
10906echo "${ECHO_T}yes" >&6
10907 else
10908 echo "$as_me:$LINENO: result: no" >&5
10909echo "${ECHO_T}no" >&6
10910 fi
10911
10912
10913 enablestring=
10914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10915echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10916 no_cache=0
10917 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10918if test "${enable_busyinfo+set}" = set; then
10919 enableval="$enable_busyinfo"
10920
10921 if test "$enableval" = yes; then
10922 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10923 else
10924 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10925 fi
10926
10927else
10928
10929 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10930 if test "x$LINE" != x ; then
10931 eval "DEFAULT_$LINE"
10932 else
10933 no_cache=1
10934 fi
10935
10936 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10937
10938fi;
10939
10940 eval "$ac_cv_use_busyinfo"
10941 if test "$no_cache" != 1; then
10942 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10943 fi
10944
10945 if test "$wxUSE_BUSYINFO" = yes; then
10946 echo "$as_me:$LINENO: result: yes" >&5
10947echo "${ECHO_T}yes" >&6
10948 else
10949 echo "$as_me:$LINENO: result: no" >&5
10950echo "${ECHO_T}no" >&6
10951 fi
10952
10953
10954 enablestring=
10955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10956echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10957 no_cache=0
10958 # Check whether --enable-joystick or --disable-joystick was given.
10959if test "${enable_joystick+set}" = set; then
10960 enableval="$enable_joystick"
10961
10962 if test "$enableval" = yes; then
10963 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10964 else
10965 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10966 fi
10967
10968else
10969
10970 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10971 if test "x$LINE" != x ; then
10972 eval "DEFAULT_$LINE"
10973 else
10974 no_cache=1
10975 fi
10976
10977 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10978
10979fi;
10980
10981 eval "$ac_cv_use_joystick"
10982 if test "$no_cache" != 1; then
10983 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10984 fi
10985
10986 if test "$wxUSE_JOYSTICK" = yes; then
10987 echo "$as_me:$LINENO: result: yes" >&5
10988echo "${ECHO_T}yes" >&6
10989 else
10990 echo "$as_me:$LINENO: result: no" >&5
10991echo "${ECHO_T}no" >&6
10992 fi
10993
10994
10995 enablestring=
10996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10997echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10998 no_cache=0
10999 # Check whether --enable-metafile or --disable-metafile was given.
11000if test "${enable_metafile+set}" = set; then
11001 enableval="$enable_metafile"
11002
11003 if test "$enableval" = yes; then
11004 ac_cv_use_metafile='wxUSE_METAFILE=yes'
11005 else
11006 ac_cv_use_metafile='wxUSE_METAFILE=no'
11007 fi
11008
11009else
11010
11011 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11012 if test "x$LINE" != x ; then
11013 eval "DEFAULT_$LINE"
11014 else
11015 no_cache=1
11016 fi
11017
11018 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11019
11020fi;
11021
11022 eval "$ac_cv_use_metafile"
11023 if test "$no_cache" != 1; then
11024 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11025 fi
11026
11027 if test "$wxUSE_METAFILE" = yes; then
11028 echo "$as_me:$LINENO: result: yes" >&5
11029echo "${ECHO_T}yes" >&6
11030 else
11031 echo "$as_me:$LINENO: result: no" >&5
11032echo "${ECHO_T}no" >&6
11033 fi
11034
11035
11036 enablestring=
11037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11038echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11039 no_cache=0
11040 # Check whether --enable-dragimage or --disable-dragimage was given.
11041if test "${enable_dragimage+set}" = set; then
11042 enableval="$enable_dragimage"
11043
11044 if test "$enableval" = yes; then
11045 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11046 else
11047 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11048 fi
11049
11050else
11051
11052 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11053 if test "x$LINE" != x ; then
11054 eval "DEFAULT_$LINE"
11055 else
11056 no_cache=1
11057 fi
11058
11059 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11060
11061fi;
11062
11063 eval "$ac_cv_use_dragimage"
11064 if test "$no_cache" != 1; then
11065 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11066 fi
11067
11068 if test "$wxUSE_DRAGIMAGE" = yes; then
11069 echo "$as_me:$LINENO: result: yes" >&5
11070echo "${ECHO_T}yes" >&6
11071 else
11072 echo "$as_me:$LINENO: result: no" >&5
11073echo "${ECHO_T}no" >&6
11074 fi
11075
11076
11077 enablestring=
11078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11079echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11080 no_cache=0
11081 # Check whether --enable-accessibility or --disable-accessibility was given.
11082if test "${enable_accessibility+set}" = set; then
11083 enableval="$enable_accessibility"
11084
11085 if test "$enableval" = yes; then
11086 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11087 else
11088 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11089 fi
11090
11091else
11092
11093 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11094 if test "x$LINE" != x ; then
11095 eval "DEFAULT_$LINE"
11096 else
11097 no_cache=1
11098 fi
11099
11100 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11101
11102fi;
11103
11104 eval "$ac_cv_use_accessibility"
11105 if test "$no_cache" != 1; then
11106 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11107 fi
11108
11109 if test "$wxUSE_ACCESSIBILITY" = yes; then
11110 echo "$as_me:$LINENO: result: yes" >&5
11111echo "${ECHO_T}yes" >&6
11112 else
11113 echo "$as_me:$LINENO: result: no" >&5
11114echo "${ECHO_T}no" >&6
11115 fi
11116
11117
38b4a946
VZ
11118if test "$wxUSE_MSW" = "1"; then
11119
11120 enablestring=
11121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11122echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11123 no_cache=0
11124 # Check whether --enable-dccache or --disable-dccache was given.
11125if test "${enable_dccache+set}" = set; then
11126 enableval="$enable_dccache"
11127
11128 if test "$enableval" = yes; then
11129 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11130 else
11131 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11132 fi
11133
11134else
11135
11136 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11137 if test "x$LINE" != x ; then
11138 eval "DEFAULT_$LINE"
11139 else
11140 no_cache=1
11141 fi
11142
11143 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11144
11145fi;
11146
11147 eval "$ac_cv_use_dccache"
11148 if test "$no_cache" != 1; then
11149 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11150 fi
11151
11152 if test "$wxUSE_DC_CACHEING" = yes; then
11153 echo "$as_me:$LINENO: result: yes" >&5
11154echo "${ECHO_T}yes" >&6
11155 else
11156 echo "$as_me:$LINENO: result: no" >&5
11157echo "${ECHO_T}no" >&6
11158 fi
11159
11160fi
11161
a848cd7e
SC
11162
11163
11164 enablestring=
11165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11166echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11167 no_cache=0
11168 # Check whether --enable-palette or --disable-palette was given.
11169if test "${enable_palette+set}" = set; then
11170 enableval="$enable_palette"
11171
11172 if test "$enableval" = yes; then
11173 ac_cv_use_palette='wxUSE_PALETTE=yes'
11174 else
11175 ac_cv_use_palette='wxUSE_PALETTE=no'
11176 fi
11177
11178else
11179
11180 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11181 if test "x$LINE" != x ; then
11182 eval "DEFAULT_$LINE"
11183 else
11184 no_cache=1
11185 fi
11186
11187 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11188
11189fi;
11190
11191 eval "$ac_cv_use_palette"
11192 if test "$no_cache" != 1; then
11193 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11194 fi
11195
11196 if test "$wxUSE_PALETTE" = yes; then
11197 echo "$as_me:$LINENO: result: yes" >&5
11198echo "${ECHO_T}yes" >&6
11199 else
11200 echo "$as_me:$LINENO: result: no" >&5
11201echo "${ECHO_T}no" >&6
11202 fi
11203
11204
11205 enablestring=
11206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11207echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11208 no_cache=0
11209 # Check whether --enable-image or --disable-image was given.
11210if test "${enable_image+set}" = set; then
11211 enableval="$enable_image"
11212
11213 if test "$enableval" = yes; then
11214 ac_cv_use_image='wxUSE_IMAGE=yes'
11215 else
11216 ac_cv_use_image='wxUSE_IMAGE=no'
11217 fi
11218
11219else
11220
11221 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11222 if test "x$LINE" != x ; then
11223 eval "DEFAULT_$LINE"
11224 else
11225 no_cache=1
11226 fi
11227
11228 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11229
11230fi;
11231
11232 eval "$ac_cv_use_image"
11233 if test "$no_cache" != 1; then
11234 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11235 fi
11236
11237 if test "$wxUSE_IMAGE" = yes; then
11238 echo "$as_me:$LINENO: result: yes" >&5
11239echo "${ECHO_T}yes" >&6
11240 else
11241 echo "$as_me:$LINENO: result: no" >&5
11242echo "${ECHO_T}no" >&6
11243 fi
11244
11245
11246 enablestring=
11247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11248echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11249 no_cache=0
11250 # Check whether --enable-gif or --disable-gif was given.
11251if test "${enable_gif+set}" = set; then
11252 enableval="$enable_gif"
11253
11254 if test "$enableval" = yes; then
11255 ac_cv_use_gif='wxUSE_GIF=yes'
11256 else
11257 ac_cv_use_gif='wxUSE_GIF=no'
11258 fi
11259
11260else
11261
11262 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11263 if test "x$LINE" != x ; then
11264 eval "DEFAULT_$LINE"
11265 else
11266 no_cache=1
11267 fi
11268
11269 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11270
11271fi;
11272
11273 eval "$ac_cv_use_gif"
11274 if test "$no_cache" != 1; then
11275 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11276 fi
11277
11278 if test "$wxUSE_GIF" = yes; then
11279 echo "$as_me:$LINENO: result: yes" >&5
11280echo "${ECHO_T}yes" >&6
11281 else
11282 echo "$as_me:$LINENO: result: no" >&5
11283echo "${ECHO_T}no" >&6
11284 fi
11285
11286
11287 enablestring=
11288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11289echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11290 no_cache=0
11291 # Check whether --enable-pcx or --disable-pcx was given.
11292if test "${enable_pcx+set}" = set; then
11293 enableval="$enable_pcx"
11294
11295 if test "$enableval" = yes; then
11296 ac_cv_use_pcx='wxUSE_PCX=yes'
11297 else
11298 ac_cv_use_pcx='wxUSE_PCX=no'
11299 fi
11300
11301else
11302
11303 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11304 if test "x$LINE" != x ; then
11305 eval "DEFAULT_$LINE"
11306 else
11307 no_cache=1
11308 fi
11309
11310 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11311
11312fi;
11313
11314 eval "$ac_cv_use_pcx"
11315 if test "$no_cache" != 1; then
11316 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11317 fi
11318
11319 if test "$wxUSE_PCX" = yes; then
11320 echo "$as_me:$LINENO: result: yes" >&5
11321echo "${ECHO_T}yes" >&6
11322 else
11323 echo "$as_me:$LINENO: result: no" >&5
11324echo "${ECHO_T}no" >&6
11325 fi
11326
11327
11328 enablestring=
11329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11330echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11331 no_cache=0
11332 # Check whether --enable-iff or --disable-iff was given.
11333if test "${enable_iff+set}" = set; then
11334 enableval="$enable_iff"
11335
11336 if test "$enableval" = yes; then
11337 ac_cv_use_iff='wxUSE_IFF=yes'
11338 else
11339 ac_cv_use_iff='wxUSE_IFF=no'
11340 fi
11341
11342else
11343
11344 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11345 if test "x$LINE" != x ; then
11346 eval "DEFAULT_$LINE"
11347 else
11348 no_cache=1
11349 fi
11350
11351 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11352
11353fi;
11354
11355 eval "$ac_cv_use_iff"
11356 if test "$no_cache" != 1; then
11357 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11358 fi
11359
11360 if test "$wxUSE_IFF" = yes; then
11361 echo "$as_me:$LINENO: result: yes" >&5
11362echo "${ECHO_T}yes" >&6
11363 else
11364 echo "$as_me:$LINENO: result: no" >&5
11365echo "${ECHO_T}no" >&6
11366 fi
11367
11368
11369 enablestring=
11370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11371echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11372 no_cache=0
11373 # Check whether --enable-pnm or --disable-pnm was given.
11374if test "${enable_pnm+set}" = set; then
11375 enableval="$enable_pnm"
11376
11377 if test "$enableval" = yes; then
11378 ac_cv_use_pnm='wxUSE_PNM=yes'
11379 else
11380 ac_cv_use_pnm='wxUSE_PNM=no'
11381 fi
11382
11383else
11384
11385 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11386 if test "x$LINE" != x ; then
11387 eval "DEFAULT_$LINE"
11388 else
11389 no_cache=1
11390 fi
11391
11392 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11393
11394fi;
11395
11396 eval "$ac_cv_use_pnm"
11397 if test "$no_cache" != 1; then
11398 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11399 fi
11400
11401 if test "$wxUSE_PNM" = yes; then
11402 echo "$as_me:$LINENO: result: yes" >&5
11403echo "${ECHO_T}yes" >&6
11404 else
11405 echo "$as_me:$LINENO: result: no" >&5
11406echo "${ECHO_T}no" >&6
11407 fi
11408
11409
11410 enablestring=
11411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11412echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11413 no_cache=0
11414 # Check whether --enable-xpm or --disable-xpm was given.
11415if test "${enable_xpm+set}" = set; then
11416 enableval="$enable_xpm"
11417
11418 if test "$enableval" = yes; then
11419 ac_cv_use_xpm='wxUSE_XPM=yes'
11420 else
11421 ac_cv_use_xpm='wxUSE_XPM=no'
11422 fi
11423
11424else
11425
11426 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11427 if test "x$LINE" != x ; then
11428 eval "DEFAULT_$LINE"
11429 else
11430 no_cache=1
11431 fi
11432
11433 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11434
11435fi;
11436
11437 eval "$ac_cv_use_xpm"
11438 if test "$no_cache" != 1; then
11439 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11440 fi
11441
11442 if test "$wxUSE_XPM" = yes; then
11443 echo "$as_me:$LINENO: result: yes" >&5
11444echo "${ECHO_T}yes" >&6
11445 else
11446 echo "$as_me:$LINENO: result: no" >&5
11447echo "${ECHO_T}no" >&6
11448 fi
11449
11450
11451 enablestring=
11452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11453echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11454 no_cache=0
11455 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11456if test "${enable_ico_cur+set}" = set; then
11457 enableval="$enable_ico_cur"
11458
11459 if test "$enableval" = yes; then
11460 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11461 else
11462 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11463 fi
11464
11465else
11466
11467 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11468 if test "x$LINE" != x ; then
11469 eval "DEFAULT_$LINE"
11470 else
11471 no_cache=1
11472 fi
11473
11474 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11475
11476fi;
11477
11478 eval "$ac_cv_use_ico_cur"
11479 if test "$no_cache" != 1; then
11480 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11481 fi
11482
11483 if test "$wxUSE_ICO_CUR" = yes; then
11484 echo "$as_me:$LINENO: result: yes" >&5
11485echo "${ECHO_T}yes" >&6
11486 else
11487 echo "$as_me:$LINENO: result: no" >&5
11488echo "${ECHO_T}no" >&6
11489 fi
11490
11491
11492fi
11493
11494
11495
ceec2216
RL
11496# Check whether --with-flavour or --without-flavour was given.
11497if test "${with_flavour+set}" = set; then
11498 withval="$with_flavour"
11499 WX_FLAVOUR="$withval"
11500fi;
11501
11502
11503
a848cd7e
SC
11504 enablestring=
11505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11506echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11507 no_cache=0
11508 # Check whether --enable-official_build or --disable-official_build was given.
11509if test "${enable_official_build+set}" = set; then
11510 enableval="$enable_official_build"
11511
11512 if test "$enableval" = yes; then
11513 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11514 else
11515 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11516 fi
11517
11518else
11519
11520 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11521 if test "x$LINE" != x ; then
11522 eval "DEFAULT_$LINE"
11523 else
11524 no_cache=1
11525 fi
11526
11527 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11528
11529fi;
11530
11531 eval "$ac_cv_use_official_build"
11532 if test "$no_cache" != 1; then
11533 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11534 fi
11535
11536 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11537 echo "$as_me:$LINENO: result: yes" >&5
11538echo "${ECHO_T}yes" >&6
11539 else
11540 echo "$as_me:$LINENO: result: no" >&5
11541echo "${ECHO_T}no" >&6
11542 fi
11543
11544# Check whether --enable-vendor or --disable-vendor was given.
11545if test "${enable_vendor+set}" = set; then
11546 enableval="$enable_vendor"
11547 VENDOR="$enableval"
11548fi;
11549if test "x$VENDOR" = "x"; then
11550 VENDOR="custom"
11551fi
11552
a848cd7e
SC
11553
11554
11555
11556 echo "saving argument cache $wx_arg_cache_file"
11557 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11558
11559
11560
11561echo "$as_me:$LINENO: checking for toolkit" >&5
11562echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11563
11564# In Wine, we need to default to MSW, not GTK or MOTIF
11565if test "$wxUSE_WINE" = "yes"; then
11566 DEFAULT_DEFAULT_wxUSE_GTK=0
11567 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11568 DEFAULT_DEFAULT_wxUSE_MSW=1
11569 wxUSE_SHARED=no
11570fi
11571
f597b41c 11572
a848cd7e
SC
11573if test "$wxUSE_GUI" = "yes"; then
11574
11575 if test "$USE_BEOS" = 1; then
11576 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11577echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11578 { (exit 1); exit 1; }; }
11579 fi
11580
11581 if test "$TOOLKIT_GIVEN" = 1; then
11582 for toolkit in `echo $ALL_TOOLKITS`; do
11583 var=wxUSE_$toolkit
11584 eval "value=\$${var}"
f34ca037
MW
11585 if test "x$value" = "xno"; then
11586 eval "$var=0"
11587 elif test "x$value" != "x"; then
11588 eval "$var=1"
11589 fi
11590
11591 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11592 eval "wx${toolkit}_VERSION=$value"
11593 fi
a848cd7e
SC
11594 done
11595 else
11596 for toolkit in `echo $ALL_TOOLKITS`; do
11597 if test "$has_toolkit_in_cache" != 1; then
11598 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11599 else
11600 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11601
11602 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11603 if test "x$version" != "x"; then
11604 eval "wx${toolkit}_VERSION=$version"
11605 fi
a848cd7e
SC
11606 fi
11607 eval "wxUSE_$toolkit=\$${var}"
11608 done
11609 fi
11610
11611 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11612 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11613 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11614
11615 case "${host}" in
11616 *-pc-os2_emx | *-pc-os2-emx )
11617 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11618 esac
11619
11620 case "$NUM_TOOLKITS" in
11621 1)
11622 ;;
11623 0)
11624 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11625echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11626 { (exit 1); exit 1; }; }
11627 ;;
11628 *)
11629 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11630echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11631 { (exit 1); exit 1; }; }
11632 esac
11633
f34ca037
MW
11634 # to be removed when --disable-gtk2 isn't needed
11635 if test "x$wxUSE_GTK2" = "xyes"; then
11636 wxGTK_VERSION=2
11637 elif test "x$wxUSE_GTK2" = "xno"; then
11638 wxGTK_VERSION=1
11639 fi
11640
a848cd7e
SC
11641 for toolkit in `echo $ALL_TOOLKITS`; do
11642 var=wxUSE_$toolkit
11643 eval "value=\$${var}"
11644 if test "x$value" != x; then
11645 cache_var=CACHE_$toolkit
11646 eval "cache=\$${cache_var}"
11647 if test "$cache" = 1; then
11648 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11649 eval "version=\$wx${toolkit}_VERSION"
11650 if test "x$version" != "x"; then
11651 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11652 fi
a848cd7e
SC
11653 fi
11654 if test "$value" = 1; then
11655 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11656 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11657echo "${ECHO_T}$toolkit_echo" >&6
11658 fi
11659 fi
11660 done
11661else
11662 if test "x$host_alias" != "x"; then
11663 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11664echo "${ECHO_T}base ($host_alias hosted) only" >&6
11665 else
11666 echo "$as_me:$LINENO: result: base only" >&5
11667echo "${ECHO_T}base only" >&6
11668 fi
11669fi
11670
11671wants_win32=0
11672doesnt_want_win32=0
11673case "${host}" in
11674 *-*-cygwin*)
11675 if test "$wxUSE_MSW" = 1 ; then
11676 wants_win32=1
7275146d 11677 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11678 else
11679 doesnt_want_win32=1
11680 fi
11681 ;;
11682 *-*-mingw*)
11683 wants_win32=1
11684 ;;
11685esac
11686
11687if test "$wxUSE_WINE" = "yes"; then
11688 wants_win32=1
11689 CC=winegcc
11690 CXX=wineg++
a848cd7e
SC
11691 LDFLAGS_GUI="-mwindows"
11692fi
11693
11694if test "$wants_win32" = 1 ; then
11695 USE_UNIX=0
11696 USE_WIN32=1
11697 cat >>confdefs.h <<\_ACEOF
11698#define __WIN32__ 1
11699_ACEOF
11700
11701 cat >>confdefs.h <<\_ACEOF
11702#define __WIN95__ 1
11703_ACEOF
11704
11705 cat >>confdefs.h <<\_ACEOF
11706#define __WINDOWS__ 1
11707_ACEOF
11708
11709 cat >>confdefs.h <<\_ACEOF
11710#define __GNUWIN32__ 1
11711_ACEOF
11712
11713 cat >>confdefs.h <<\_ACEOF
11714#define STRICT 1
11715_ACEOF
11716
11717 cat >>confdefs.h <<\_ACEOF
11718#define WINVER 0x0400
11719_ACEOF
11720
11721fi
11722if test "$doesnt_want_win32" = 1 ; then
11723 USE_UNIX=1
11724 USE_WIN32=0
11725fi
11726
11727if test "$USE_UNIX" = 1 ; then
11728 wxUSE_UNIX=yes
11729 cat >>confdefs.h <<\_ACEOF
11730#define __UNIX__ 1
11731_ACEOF
11732
11733fi
11734
11735
11736cat >confcache <<\_ACEOF
11737# This file is a shell script that caches the results of configure
11738# tests run on this system so they can be shared between configure
11739# scripts and configure runs, see configure's option --config-cache.
11740# It is not useful on other systems. If it contains results you don't
11741# want to keep, you may remove or edit it.
11742#
11743# config.status only pays attention to the cache file if you give it
11744# the --recheck option to rerun configure.
11745#
11746# `ac_cv_env_foo' variables (set or unset) will be overridden when
11747# loading this file, other *unset* `ac_cv_foo' will be assigned the
11748# following values.
11749
11750_ACEOF
11751
11752# The following way of writing the cache mishandles newlines in values,
11753# but we know of no workaround that is simple, portable, and efficient.
11754# So, don't put newlines in cache variables' values.
11755# Ultrix sh set writes to stderr and can't be redirected directly,
11756# and sets the high bit in the cache file unless we assign to the vars.
11757{
11758 (set) 2>&1 |
11759 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11760 *ac_space=\ *)
11761 # `set' does not quote correctly, so add quotes (double-quote
11762 # substitution turns \\\\ into \\, and sed turns \\ into \).
11763 sed -n \
ac1cb8d3
VS
11764 "s/'/'\\\\''/g;
11765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11766 ;;
11767 *)
11768 # `set' quotes correctly as required by POSIX, so do not add quotes.
11769 sed -n \
ac1cb8d3 11770 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11771 ;;
11772 esac;
11773} |
11774 sed '
11775 t clear
11776 : clear
11777 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11778 t end
11779 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11780 : end' >>confcache
11781if diff $cache_file confcache >/dev/null 2>&1; then :; else
11782 if test -w $cache_file; then
11783 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11784 cat confcache >$cache_file
11785 else
11786 echo "not updating unwritable cache $cache_file"
11787 fi
11788fi
11789rm -f confcache
11790
a848cd7e 11791CFLAGS=${CFLAGS:=}
6dcfc289
DE
11792
11793
3006edc0 11794
6dcfc289 11795 ac_ext=c
a848cd7e
SC
11796ac_cpp='$CPP $CPPFLAGS'
11797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11799ac_compiler_gnu=$ac_cv_c_compiler_gnu
11800if test -n "$ac_tool_prefix"; then
11801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11802set dummy ${ac_tool_prefix}gcc; ac_word=$2
11803echo "$as_me:$LINENO: checking for $ac_word" >&5
11804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11805if test "${ac_cv_prog_CC+set}" = set; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11807else
11808 if test -n "$CC"; then
11809 ac_cv_prog_CC="$CC" # Let the user override the test.
11810else
11811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812for as_dir in $PATH
11813do
11814 IFS=$as_save_IFS
11815 test -z "$as_dir" && as_dir=.
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 break 2
11821 fi
11822done
11823done
11824
11825fi
11826fi
11827CC=$ac_cv_prog_CC
11828if test -n "$CC"; then
11829 echo "$as_me:$LINENO: result: $CC" >&5
11830echo "${ECHO_T}$CC" >&6
11831else
11832 echo "$as_me:$LINENO: result: no" >&5
11833echo "${ECHO_T}no" >&6
11834fi
11835
11836fi
11837if test -z "$ac_cv_prog_CC"; then
11838 ac_ct_CC=$CC
11839 # Extract the first word of "gcc", so it can be a program name with args.
11840set dummy gcc; ac_word=$2
11841echo "$as_me:$LINENO: checking for $ac_word" >&5
11842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11843if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11845else
11846 if test -n "$ac_ct_CC"; then
11847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11848else
11849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850for as_dir in $PATH
11851do
11852 IFS=$as_save_IFS
11853 test -z "$as_dir" && as_dir=.
11854 for ac_exec_ext in '' $ac_executable_extensions; do
11855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11856 ac_cv_prog_ac_ct_CC="gcc"
11857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11858 break 2
11859 fi
11860done
11861done
11862
11863fi
11864fi
11865ac_ct_CC=$ac_cv_prog_ac_ct_CC
11866if test -n "$ac_ct_CC"; then
11867 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11868echo "${ECHO_T}$ac_ct_CC" >&6
11869else
11870 echo "$as_me:$LINENO: result: no" >&5
11871echo "${ECHO_T}no" >&6
11872fi
11873
11874 CC=$ac_ct_CC
11875else
11876 CC="$ac_cv_prog_CC"
11877fi
11878
11879if test -z "$CC"; then
11880 if test -n "$ac_tool_prefix"; then
11881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11882set dummy ${ac_tool_prefix}cc; ac_word=$2
11883echo "$as_me:$LINENO: checking for $ac_word" >&5
11884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11885if test "${ac_cv_prog_CC+set}" = set; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11887else
11888 if test -n "$CC"; then
11889 ac_cv_prog_CC="$CC" # Let the user override the test.
11890else
11891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892for as_dir in $PATH
11893do
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11898 ac_cv_prog_CC="${ac_tool_prefix}cc"
11899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 break 2
11901 fi
11902done
11903done
11904
11905fi
11906fi
11907CC=$ac_cv_prog_CC
11908if test -n "$CC"; then
11909 echo "$as_me:$LINENO: result: $CC" >&5
11910echo "${ECHO_T}$CC" >&6
11911else
11912 echo "$as_me:$LINENO: result: no" >&5
11913echo "${ECHO_T}no" >&6
11914fi
11915
11916fi
11917if test -z "$ac_cv_prog_CC"; then
11918 ac_ct_CC=$CC
11919 # Extract the first word of "cc", so it can be a program name with args.
11920set dummy cc; ac_word=$2
11921echo "$as_me:$LINENO: checking for $ac_word" >&5
11922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11923if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925else
11926 if test -n "$ac_ct_CC"; then
11927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11928else
11929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930for as_dir in $PATH
11931do
11932 IFS=$as_save_IFS
11933 test -z "$as_dir" && as_dir=.
11934 for ac_exec_ext in '' $ac_executable_extensions; do
11935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936 ac_cv_prog_ac_ct_CC="cc"
11937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11938 break 2
11939 fi
11940done
11941done
11942
11943fi
11944fi
11945ac_ct_CC=$ac_cv_prog_ac_ct_CC
11946if test -n "$ac_ct_CC"; then
11947 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11948echo "${ECHO_T}$ac_ct_CC" >&6
11949else
11950 echo "$as_me:$LINENO: result: no" >&5
11951echo "${ECHO_T}no" >&6
11952fi
11953
11954 CC=$ac_ct_CC
11955else
11956 CC="$ac_cv_prog_CC"
11957fi
11958
11959fi
11960if test -z "$CC"; then
11961 # Extract the first word of "cc", so it can be a program name with args.
11962set dummy cc; ac_word=$2
11963echo "$as_me:$LINENO: checking for $ac_word" >&5
11964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11965if test "${ac_cv_prog_CC+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967else
11968 if test -n "$CC"; then
11969 ac_cv_prog_CC="$CC" # Let the user override the test.
11970else
11971 ac_prog_rejected=no
11972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973for as_dir in $PATH
11974do
11975 IFS=$as_save_IFS
11976 test -z "$as_dir" && as_dir=.
11977 for ac_exec_ext in '' $ac_executable_extensions; do
11978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11979 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11980 ac_prog_rejected=yes
11981 continue
11982 fi
11983 ac_cv_prog_CC="cc"
11984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 break 2
11986 fi
11987done
11988done
11989
11990if test $ac_prog_rejected = yes; then
11991 # We found a bogon in the path, so make sure we never use it.
11992 set dummy $ac_cv_prog_CC
11993 shift
11994 if test $# != 0; then
11995 # We chose a different compiler from the bogus one.
11996 # However, it has the same basename, so the bogon will be chosen
11997 # first if we set CC to just the basename; use the full file name.
11998 shift
11999 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12000 fi
12001fi
12002fi
12003fi
12004CC=$ac_cv_prog_CC
12005if test -n "$CC"; then
12006 echo "$as_me:$LINENO: result: $CC" >&5
12007echo "${ECHO_T}$CC" >&6
12008else
12009 echo "$as_me:$LINENO: result: no" >&5
12010echo "${ECHO_T}no" >&6
12011fi
12012
12013fi
12014if test -z "$CC"; then
12015 if test -n "$ac_tool_prefix"; then
12016 for ac_prog in cl
12017 do
12018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12019set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12020echo "$as_me:$LINENO: checking for $ac_word" >&5
12021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12022if test "${ac_cv_prog_CC+set}" = set; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12024else
12025 if test -n "$CC"; then
12026 ac_cv_prog_CC="$CC" # Let the user override the test.
12027else
12028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029for as_dir in $PATH
12030do
12031 IFS=$as_save_IFS
12032 test -z "$as_dir" && as_dir=.
12033 for ac_exec_ext in '' $ac_executable_extensions; do
12034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12037 break 2
12038 fi
12039done
12040done
12041
12042fi
12043fi
12044CC=$ac_cv_prog_CC
12045if test -n "$CC"; then
12046 echo "$as_me:$LINENO: result: $CC" >&5
12047echo "${ECHO_T}$CC" >&6
12048else
12049 echo "$as_me:$LINENO: result: no" >&5
12050echo "${ECHO_T}no" >&6
12051fi
12052
12053 test -n "$CC" && break
12054 done
12055fi
12056if test -z "$CC"; then
12057 ac_ct_CC=$CC
12058 for ac_prog in cl
12059do
12060 # Extract the first word of "$ac_prog", so it can be a program name with args.
12061set dummy $ac_prog; ac_word=$2
12062echo "$as_me:$LINENO: checking for $ac_word" >&5
12063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066else
12067 if test -n "$ac_ct_CC"; then
12068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12069else
12070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071for as_dir in $PATH
12072do
12073 IFS=$as_save_IFS
12074 test -z "$as_dir" && as_dir=.
12075 for ac_exec_ext in '' $ac_executable_extensions; do
12076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12077 ac_cv_prog_ac_ct_CC="$ac_prog"
12078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12079 break 2
12080 fi
12081done
12082done
12083
12084fi
12085fi
12086ac_ct_CC=$ac_cv_prog_ac_ct_CC
12087if test -n "$ac_ct_CC"; then
12088 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12089echo "${ECHO_T}$ac_ct_CC" >&6
12090else
12091 echo "$as_me:$LINENO: result: no" >&5
12092echo "${ECHO_T}no" >&6
12093fi
12094
12095 test -n "$ac_ct_CC" && break
12096done
12097
12098 CC=$ac_ct_CC
12099fi
12100
12101fi
12102
12103
12104test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12105See \`config.log' for more details." >&5
12106echo "$as_me: error: no acceptable C compiler found in \$PATH
12107See \`config.log' for more details." >&2;}
12108 { (exit 1); exit 1; }; }
12109
12110# Provide some information about the compiler.
12111echo "$as_me:$LINENO:" \
12112 "checking for C compiler version" >&5
12113ac_compiler=`set X $ac_compile; echo $2`
12114{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12115 (eval $ac_compiler --version </dev/null >&5) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }
12119{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12120 (eval $ac_compiler -v </dev/null >&5) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }
12124{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12125 (eval $ac_compiler -V </dev/null >&5) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }
12129
12130cat >conftest.$ac_ext <<_ACEOF
12131/* confdefs.h. */
12132_ACEOF
12133cat confdefs.h >>conftest.$ac_ext
12134cat >>conftest.$ac_ext <<_ACEOF
12135/* end confdefs.h. */
12136
12137int
12138main ()
12139{
12140
12141 ;
12142 return 0;
12143}
12144_ACEOF
12145ac_clean_files_save=$ac_clean_files
12146ac_clean_files="$ac_clean_files a.out a.exe b.out"
12147# Try to create an executable without -o first, disregard a.out.
12148# It will help us diagnose broken compilers, and finding out an intuition
12149# of exeext.
ac1cb8d3
VS
12150echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12151echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
12152ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12153if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12154 (eval $ac_link_default) 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; then
12158 # Find the output, starting from the most likely. This scheme is
12159# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12160# resort.
12161
12162# Be careful to initialize this variable, since it used to be cached.
12163# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12164ac_cv_exeext=
12165# b.out is created by i960 compilers.
12166for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12167do
12168 test -f "$ac_file" || continue
12169 case $ac_file in
12170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 12171 ;;
a848cd7e 12172 conftest.$ac_ext )
ac1cb8d3
VS
12173 # This is the source file.
12174 ;;
a848cd7e 12175 [ab].out )
ac1cb8d3
VS
12176 # We found the default executable, but exeext='' is most
12177 # certainly right.
12178 break;;
a848cd7e 12179 *.* )
ac1cb8d3
VS
12180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12181 # FIXME: I believe we export ac_cv_exeext for Libtool,
12182 # but it would be cool to find out if it's true. Does anybody
12183 # maintain Libtool? --akim.
12184 export ac_cv_exeext
12185 break;;
a848cd7e 12186 * )
ac1cb8d3 12187 break;;
a848cd7e
SC
12188 esac
12189done
12190else
12191 echo "$as_me: failed program was:" >&5
12192sed 's/^/| /' conftest.$ac_ext >&5
12193
12194{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12195See \`config.log' for more details." >&5
12196echo "$as_me: error: C compiler cannot create executables
12197See \`config.log' for more details." >&2;}
12198 { (exit 77); exit 77; }; }
12199fi
12200
12201ac_exeext=$ac_cv_exeext
12202echo "$as_me:$LINENO: result: $ac_file" >&5
12203echo "${ECHO_T}$ac_file" >&6
12204
12205# Check the compiler produces executables we can run. If not, either
12206# the compiler is broken, or we cross compile.
12207echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12208echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12209# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12210# If not cross compiling, check that we can run a simple program.
12211if test "$cross_compiling" != yes; then
12212 if { ac_try='./$ac_file'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12218 cross_compiling=no
12219 else
12220 if test "$cross_compiling" = maybe; then
12221 cross_compiling=yes
12222 else
12223 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12224If you meant to cross compile, use \`--host'.
12225See \`config.log' for more details." >&5
12226echo "$as_me: error: cannot run C compiled programs.
12227If you meant to cross compile, use \`--host'.
12228See \`config.log' for more details." >&2;}
12229 { (exit 1); exit 1; }; }
12230 fi
12231 fi
12232fi
12233echo "$as_me:$LINENO: result: yes" >&5
12234echo "${ECHO_T}yes" >&6
12235
12236rm -f a.out a.exe conftest$ac_cv_exeext b.out
12237ac_clean_files=$ac_clean_files_save
12238# Check the compiler produces executables we can run. If not, either
12239# the compiler is broken, or we cross compile.
12240echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12241echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12242echo "$as_me:$LINENO: result: $cross_compiling" >&5
12243echo "${ECHO_T}$cross_compiling" >&6
12244
12245echo "$as_me:$LINENO: checking for suffix of executables" >&5
12246echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12248 (eval $ac_link) 2>&5
12249 ac_status=$?
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; then
12252 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12253# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12254# work properly (i.e., refer to `conftest.exe'), while it won't with
12255# `rm'.
12256for ac_file in conftest.exe conftest conftest.*; do
12257 test -f "$ac_file" || continue
12258 case $ac_file in
12259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12260 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12261 export ac_cv_exeext
12262 break;;
a848cd7e
SC
12263 * ) break;;
12264 esac
12265done
12266else
12267 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12268See \`config.log' for more details." >&5
12269echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12270See \`config.log' for more details." >&2;}
12271 { (exit 1); exit 1; }; }
12272fi
12273
12274rm -f conftest$ac_cv_exeext
12275echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12276echo "${ECHO_T}$ac_cv_exeext" >&6
12277
12278rm -f conftest.$ac_ext
12279EXEEXT=$ac_cv_exeext
12280ac_exeext=$EXEEXT
12281echo "$as_me:$LINENO: checking for suffix of object files" >&5
12282echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12283if test "${ac_cv_objext+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12285else
12286 cat >conftest.$ac_ext <<_ACEOF
12287/* confdefs.h. */
12288_ACEOF
12289cat confdefs.h >>conftest.$ac_ext
12290cat >>conftest.$ac_ext <<_ACEOF
12291/* end confdefs.h. */
12292
12293int
12294main ()
12295{
12296
12297 ;
12298 return 0;
12299}
12300_ACEOF
12301rm -f conftest.o conftest.obj
12302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12303 (eval $ac_compile) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; then
12307 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12308 case $ac_file in
12309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12311 break;;
12312 esac
12313done
12314else
12315 echo "$as_me: failed program was:" >&5
12316sed 's/^/| /' conftest.$ac_ext >&5
12317
12318{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12319See \`config.log' for more details." >&5
12320echo "$as_me: error: cannot compute suffix of object files: cannot compile
12321See \`config.log' for more details." >&2;}
12322 { (exit 1); exit 1; }; }
12323fi
12324
12325rm -f conftest.$ac_cv_objext conftest.$ac_ext
12326fi
12327echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12328echo "${ECHO_T}$ac_cv_objext" >&6
12329OBJEXT=$ac_cv_objext
12330ac_objext=$OBJEXT
12331echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12332echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12333if test "${ac_cv_c_compiler_gnu+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335else
12336 cat >conftest.$ac_ext <<_ACEOF
12337/* confdefs.h. */
12338_ACEOF
12339cat confdefs.h >>conftest.$ac_ext
12340cat >>conftest.$ac_ext <<_ACEOF
12341/* end confdefs.h. */
12342
12343int
12344main ()
12345{
12346#ifndef __GNUC__
12347 choke me
12348#endif
12349
12350 ;
12351 return 0;
12352}
12353_ACEOF
12354rm -f conftest.$ac_objext
12355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12356 (eval $ac_compile) 2>conftest.er1
a848cd7e 12357 ac_status=$?
ac1cb8d3
VS
12358 grep -v '^ *+' conftest.er1 >conftest.err
12359 rm -f conftest.er1
12360 cat conftest.err >&5
a848cd7e
SC
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
7067783d
PC
12363 { ac_try='test -z "$ac_c_werror_flag"
12364 || test ! -s conftest.err'
ac1cb8d3
VS
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_compiler_gnu=yes
12377else
12378 echo "$as_me: failed program was:" >&5
12379sed 's/^/| /' conftest.$ac_ext >&5
12380
12381ac_compiler_gnu=no
12382fi
ac1cb8d3 12383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12384ac_cv_c_compiler_gnu=$ac_compiler_gnu
12385
12386fi
12387echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12388echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12389GCC=`test $ac_compiler_gnu = yes && echo yes`
12390ac_test_CFLAGS=${CFLAGS+set}
12391ac_save_CFLAGS=$CFLAGS
15291213 12392CFLAGS="-g"
a848cd7e
SC
12393echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12394echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12395if test "${ac_cv_prog_cc_g+set}" = set; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12397else
12398 cat >conftest.$ac_ext <<_ACEOF
12399/* confdefs.h. */
12400_ACEOF
12401cat confdefs.h >>conftest.$ac_ext
12402cat >>conftest.$ac_ext <<_ACEOF
12403/* end confdefs.h. */
12404
12405int
12406main ()
12407{
12408
12409 ;
12410 return 0;
12411}
12412_ACEOF
12413rm -f conftest.$ac_objext
12414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12415 (eval $ac_compile) 2>conftest.er1
a848cd7e 12416 ac_status=$?
ac1cb8d3
VS
12417 grep -v '^ *+' conftest.er1 >conftest.err
12418 rm -f conftest.er1
12419 cat conftest.err >&5
a848cd7e
SC
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
7067783d
PC
12422 { ac_try='test -z "$ac_c_werror_flag"
12423 || test ! -s conftest.err'
ac1cb8d3
VS
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; } &&
12429 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12432 ac_status=$?
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 ac_cv_prog_cc_g=yes
12436else
12437 echo "$as_me: failed program was:" >&5
12438sed 's/^/| /' conftest.$ac_ext >&5
12439
12440ac_cv_prog_cc_g=no
12441fi
ac1cb8d3 12442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12443fi
12444echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12445echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12446if test "$ac_test_CFLAGS" = set; then
12447 CFLAGS=$ac_save_CFLAGS
12448elif test $ac_cv_prog_cc_g = yes; then
12449 if test "$GCC" = yes; then
12450 CFLAGS="-g -O2"
12451 else
12452 CFLAGS="-g"
12453 fi
12454else
12455 if test "$GCC" = yes; then
12456 CFLAGS="-O2"
12457 else
12458 CFLAGS=
12459 fi
12460fi
12461echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12462echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12463if test "${ac_cv_prog_cc_stdc+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12465else
12466 ac_cv_prog_cc_stdc=no
12467ac_save_CC=$CC
12468cat >conftest.$ac_ext <<_ACEOF
12469/* confdefs.h. */
12470_ACEOF
12471cat confdefs.h >>conftest.$ac_ext
12472cat >>conftest.$ac_ext <<_ACEOF
12473/* end confdefs.h. */
12474#include <stdarg.h>
12475#include <stdio.h>
12476#include <sys/types.h>
12477#include <sys/stat.h>
12478/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12479struct buf { int x; };
12480FILE * (*rcsopen) (struct buf *, struct stat *, int);
12481static char *e (p, i)
12482 char **p;
12483 int i;
12484{
12485 return p[i];
12486}
12487static char *f (char * (*g) (char **, int), char **p, ...)
12488{
12489 char *s;
12490 va_list v;
12491 va_start (v,p);
12492 s = g (p, va_arg (v,int));
12493 va_end (v);
12494 return s;
12495}
ac1cb8d3
VS
12496
12497/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12498 function prototypes and stuff, but not '\xHH' hex character constants.
12499 These don't provoke an error unfortunately, instead are silently treated
12500 as 'x'. The following induces an error, until -std1 is added to get
12501 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12502 array size at least. It's necessary to write '\x00'==0 to get something
12503 that's true only with -std1. */
12504int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12505
a848cd7e
SC
12506int test (int i, double x);
12507struct s1 {int (*f) (int a);};
12508struct s2 {int (*f) (double a);};
12509int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12510int argc;
12511char **argv;
12512int
12513main ()
12514{
12515return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12516 ;
12517 return 0;
12518}
12519_ACEOF
12520# Don't try gcc -ansi; that turns off useful extensions and
12521# breaks some systems' header files.
12522# AIX -qlanglvl=ansi
12523# Ultrix and OSF/1 -std1
12524# HP-UX 10.20 and later -Ae
12525# HP-UX older versions -Aa -D_HPUX_SOURCE
12526# SVR4 -Xc -D__EXTENSIONS__
12527for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12528do
12529 CC="$ac_save_CC $ac_arg"
12530 rm -f conftest.$ac_objext
12531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12532 (eval $ac_compile) 2>conftest.er1
a848cd7e 12533 ac_status=$?
ac1cb8d3
VS
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
a848cd7e
SC
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
7067783d
PC
12539 { ac_try='test -z "$ac_c_werror_flag"
12540 || test ! -s conftest.err'
ac1cb8d3
VS
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_prog_cc_stdc=$ac_arg
12553break
12554else
12555 echo "$as_me: failed program was:" >&5
12556sed 's/^/| /' conftest.$ac_ext >&5
12557
12558fi
ac1cb8d3 12559rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12560done
12561rm -f conftest.$ac_ext conftest.$ac_objext
12562CC=$ac_save_CC
12563
12564fi
12565
12566case "x$ac_cv_prog_cc_stdc" in
12567 x|xno)
12568 echo "$as_me:$LINENO: result: none needed" >&5
12569echo "${ECHO_T}none needed" >&6 ;;
12570 *)
12571 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12572echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12573 CC="$CC $ac_cv_prog_cc_stdc" ;;
12574esac
12575
12576# Some people use a C++ compiler to compile C. Since we use `exit',
12577# in C++ we need to declare it. In case someone uses the same compiler
12578# for both compiling C and C++ we need to have the C++ compiler decide
12579# the declaration of exit, since it's the most demanding environment.
12580cat >conftest.$ac_ext <<_ACEOF
12581#ifndef __cplusplus
12582 choke me
12583#endif
12584_ACEOF
12585rm -f conftest.$ac_objext
12586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12587 (eval $ac_compile) 2>conftest.er1
a848cd7e 12588 ac_status=$?
ac1cb8d3
VS
12589 grep -v '^ *+' conftest.er1 >conftest.err
12590 rm -f conftest.er1
12591 cat conftest.err >&5
a848cd7e
SC
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } &&
7067783d
PC
12594 { ac_try='test -z "$ac_c_werror_flag"
12595 || test ! -s conftest.err'
ac1cb8d3
VS
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; } &&
12601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607 for ac_declaration in \
ac1cb8d3 12608 '' \
a848cd7e
SC
12609 'extern "C" void std::exit (int) throw (); using std::exit;' \
12610 'extern "C" void std::exit (int); using std::exit;' \
12611 'extern "C" void exit (int) throw ();' \
12612 'extern "C" void exit (int);' \
12613 'void exit (int);'
12614do
12615 cat >conftest.$ac_ext <<_ACEOF
12616/* confdefs.h. */
12617_ACEOF
12618cat confdefs.h >>conftest.$ac_ext
12619cat >>conftest.$ac_ext <<_ACEOF
12620/* end confdefs.h. */
de59c161 12621$ac_declaration
ac1cb8d3 12622#include <stdlib.h>
a848cd7e
SC
12623int
12624main ()
12625{
12626exit (42);
12627 ;
12628 return 0;
12629}
12630_ACEOF
12631rm -f conftest.$ac_objext
12632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12633 (eval $ac_compile) 2>conftest.er1
a848cd7e 12634 ac_status=$?
ac1cb8d3
VS
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
a848cd7e
SC
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
7067783d
PC
12640 { ac_try='test -z "$ac_c_werror_flag"
12641 || test ! -s conftest.err'
ac1cb8d3
VS
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; } &&
12647 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 :
12654else
12655 echo "$as_me: failed program was:" >&5
12656sed 's/^/| /' conftest.$ac_ext >&5
12657
12658continue
12659fi
ac1cb8d3 12660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12661 cat >conftest.$ac_ext <<_ACEOF
12662/* confdefs.h. */
12663_ACEOF
12664cat confdefs.h >>conftest.$ac_ext
12665cat >>conftest.$ac_ext <<_ACEOF
12666/* end confdefs.h. */
12667$ac_declaration
12668int
12669main ()
12670{
12671exit (42);
12672 ;
12673 return 0;
12674}
12675_ACEOF
12676rm -f conftest.$ac_objext
12677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12678 (eval $ac_compile) 2>conftest.er1
a848cd7e 12679 ac_status=$?
ac1cb8d3
VS
12680 grep -v '^ *+' conftest.er1 >conftest.err
12681 rm -f conftest.er1
12682 cat conftest.err >&5
a848cd7e
SC
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } &&
7067783d
PC
12685 { ac_try='test -z "$ac_c_werror_flag"
12686 || test ! -s conftest.err'
ac1cb8d3
VS
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; } &&
12692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 break
12699else
12700 echo "$as_me: failed program was:" >&5
12701sed 's/^/| /' conftest.$ac_ext >&5
12702
12703fi
ac1cb8d3 12704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12705done
12706rm -f conftest*
12707if test -n "$ac_declaration"; then
12708 echo '#ifdef __cplusplus' >>confdefs.h
12709 echo $ac_declaration >>confdefs.h
12710 echo '#endif' >>confdefs.h
12711fi
12712
12713else
12714 echo "$as_me: failed program was:" >&5
12715sed 's/^/| /' conftest.$ac_ext >&5
12716
12717fi
ac1cb8d3 12718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12719ac_ext=c
12720ac_cpp='$CPP $CPPFLAGS'
12721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12723ac_compiler_gnu=$ac_cv_c_compiler_gnu
12724
ab0ad5f1
VZ
12725
12726
12727 ac_ext=c
12728ac_cpp='$CPP $CPPFLAGS'
12729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12731ac_compiler_gnu=$ac_cv_c_compiler_gnu
12732
12733 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12734echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12735if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12737else
12738 cat >conftest.$ac_ext <<_ACEOF
12739/* confdefs.h. */
12740_ACEOF
12741cat confdefs.h >>conftest.$ac_ext
12742cat >>conftest.$ac_ext <<_ACEOF
12743/* end confdefs.h. */
12744
12745int
12746main ()
12747{
12748
12749 #ifndef __INTEL_COMPILER
12750 choke me
12751 #endif
12752
12753 ;
12754 return 0;
12755}
12756_ACEOF
12757rm -f conftest.$ac_objext
12758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12759 (eval $ac_compile) 2>conftest.er1
12760 ac_status=$?
12761 grep -v '^ *+' conftest.er1 >conftest.err
12762 rm -f conftest.er1
12763 cat conftest.err >&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } &&
7067783d
PC
12766 { ac_try='test -z "$ac_c_werror_flag"
12767 || test ! -s conftest.err'
ab0ad5f1
VZ
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; } &&
12773 { ac_try='test -s conftest.$ac_objext'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12776 ac_status=$?
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; }; then
12779 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12780else
12781 echo "$as_me: failed program was:" >&5
12782sed 's/^/| /' conftest.$ac_ext >&5
12783
12784bakefile_cv_c_compiler___INTEL_COMPILER=no
12785
12786fi
12787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12788
12789
12790fi
12791echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12792echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12793 ac_ext=c
12794ac_cpp='$CPP $CPPFLAGS'
12795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12797ac_compiler_gnu=$ac_cv_c_compiler_gnu
12798
12799 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12800 :; INTELCC=yes
12801 else
12802 :;
12803 fi
12804
12805
12806 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12807 if test "xCC" = "xC"; then
12808 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12809echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12810if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12812else
12813 cat >conftest.$ac_ext <<_ACEOF
12814/* confdefs.h. */
12815_ACEOF
12816cat confdefs.h >>conftest.$ac_ext
12817cat >>conftest.$ac_ext <<_ACEOF
12818/* end confdefs.h. */
12819
12820int
12821main ()
12822{
12823
12824 ;
12825 return 0;
12826}
12827_ACEOF
12828rm -f conftest.$ac_objext conftest.$ac_ext.o
12829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12830 (eval $ac_compile) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; then
12834 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12835 case $ac_file in
12836 conftest.$ac_ext.o)
0093c2fc 12837 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12838 ;;
12839 *)
12840 ;;
12841 esac
12842done
12843else
12844 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12845See \`config.log' for more details." >&5
12846echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12847See \`config.log' for more details." >&2;}
12848 { (exit 1); exit 1; }; }
12849
12850fi
12851
12852rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12853
12854fi
0093c2fc
VZ
12855echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12856echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12857if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12858 if test "c" = "c"; then
0093c2fc 12859 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12860 fi
12861 if test "c" = "cxx"; then
0093c2fc 12862 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12863 fi
12864fi
12865
0093c2fc 12866 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12867 unset ac_cv_prog_cc_g
12868 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12869ac_save_CFLAGS=$CFLAGS
15291213 12870CFLAGS="-g"
480ccd21
DE
12871echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12872echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12873if test "${ac_cv_prog_cc_g+set}" = set; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12875else
12876 cat >conftest.$ac_ext <<_ACEOF
12877/* confdefs.h. */
12878_ACEOF
12879cat confdefs.h >>conftest.$ac_ext
12880cat >>conftest.$ac_ext <<_ACEOF
12881/* end confdefs.h. */
12882
12883int
12884main ()
12885{
12886
12887 ;
12888 return 0;
12889}
12890_ACEOF
12891rm -f conftest.$ac_objext
12892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12893 (eval $ac_compile) 2>conftest.er1
12894 ac_status=$?
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
7067783d
PC
12900 { ac_try='test -z "$ac_c_werror_flag"
12901 || test ! -s conftest.err'
480ccd21
DE
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest.$ac_objext'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 ac_cv_prog_cc_g=yes
12914else
12915 echo "$as_me: failed program was:" >&5
12916sed 's/^/| /' conftest.$ac_ext >&5
12917
12918ac_cv_prog_cc_g=no
12919fi
12920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12921fi
12922echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12923echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12924if test "$ac_test_CFLAGS" = set; then
12925 CFLAGS=$ac_save_CFLAGS
12926elif test $ac_cv_prog_cc_g = yes; then
12927 if test "$GCC" = yes; then
12928 CFLAGS="-g -O2"
12929 else
12930 CFLAGS="-g"
12931 fi
12932else
12933 if test "$GCC" = yes; then
12934 CFLAGS="-O2"
12935 else
12936 CFLAGS=
12937 fi
12938fi
3006edc0 12939 fi
ab0ad5f1 12940 fi
3006edc0
VZ
12941
12942 case `uname -s` in
12943 AIX*)
12944 ac_ext=c
12945ac_cpp='$CPP $CPPFLAGS'
12946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12948ac_compiler_gnu=$ac_cv_c_compiler_gnu
12949
12950echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12951echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12952if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954else
12955 cat >conftest.$ac_ext <<_ACEOF
12956/* confdefs.h. */
12957_ACEOF
12958cat confdefs.h >>conftest.$ac_ext
12959cat >>conftest.$ac_ext <<_ACEOF
12960/* end confdefs.h. */
12961
12962int
12963main ()
12964{
12965#ifndef __xlC__
12966 choke me
12967#endif
12968
12969 ;
12970 return 0;
12971}
12972_ACEOF
12973rm -f conftest.$ac_objext
12974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12975 (eval $ac_compile) 2>conftest.er1
12976 ac_status=$?
12977 grep -v '^ *+' conftest.er1 >conftest.err
12978 rm -f conftest.er1
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } &&
7067783d
PC
12982 { ac_try='test -z "$ac_c_werror_flag"
12983 || test ! -s conftest.err'
3006edc0
VZ
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; } &&
12989 { ac_try='test -s conftest.$ac_objext'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
0093c2fc 12995 bakefile_compiler_xlc=yes
3006edc0
VZ
12996else
12997 echo "$as_me: failed program was:" >&5
12998sed 's/^/| /' conftest.$ac_ext >&5
12999
0093c2fc 13000bakefile_compiler_xlc=no
3006edc0
VZ
13001fi
13002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13003 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13004
13005fi
0093c2fc
VZ
13006echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13007echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 13008
0093c2fc 13009XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
13010ac_ext=c
13011ac_cpp='$CPP $CPPFLAGS'
13012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13014ac_compiler_gnu=$ac_cv_c_compiler_gnu
13015
13016
13017 ;;
13018
13019 Darwin)
13020 ac_ext=c
95986553
DE
13021ac_cpp='$CPP $CPPFLAGS'
13022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13024ac_compiler_gnu=$ac_cv_c_compiler_gnu
13025
13026echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13027echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13028if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13030else
13031 cat >conftest.$ac_ext <<_ACEOF
13032/* confdefs.h. */
13033_ACEOF
13034cat confdefs.h >>conftest.$ac_ext
13035cat >>conftest.$ac_ext <<_ACEOF
13036/* end confdefs.h. */
13037
13038int
13039main ()
13040{
13041#ifndef __MWERKS__
13042 choke me
13043#endif
13044
13045 ;
13046 return 0;
13047}
13048_ACEOF
13049rm -f conftest.$ac_objext
13050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
7067783d
PC
13058 { ac_try='test -z "$ac_c_werror_flag"
13059 || test ! -s conftest.err'
95986553
DE
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest.$ac_objext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 bakefile_compiler_mwerks=yes
13072else
13073 echo "$as_me: failed program was:" >&5
13074sed 's/^/| /' conftest.$ac_ext >&5
13075
13076bakefile_compiler_mwerks=no
13077fi
13078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13079 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13080
13081fi
13082echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13083echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13084
0e6fa1d9 13085MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
13086ac_ext=c
13087ac_cpp='$CPP $CPPFLAGS'
13088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13090ac_compiler_gnu=$ac_cv_c_compiler_gnu
13091
13092
3006edc0 13093 ac_ext=c
9273ffba
DE
13094ac_cpp='$CPP $CPPFLAGS'
13095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13097ac_compiler_gnu=$ac_cv_c_compiler_gnu
13098
13099echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13100echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13101if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13103else
13104 cat >conftest.$ac_ext <<_ACEOF
13105/* confdefs.h. */
13106_ACEOF
13107cat confdefs.h >>conftest.$ac_ext
13108cat >>conftest.$ac_ext <<_ACEOF
13109/* end confdefs.h. */
13110
13111int
13112main ()
13113{
13114#ifndef __xlC__
13115 choke me
13116#endif
13117
13118 ;
13119 return 0;
13120}
13121_ACEOF
13122rm -f conftest.$ac_objext
13123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124 (eval $ac_compile) 2>conftest.er1
13125 ac_status=$?
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } &&
7067783d
PC
13131 { ac_try='test -z "$ac_c_werror_flag"
13132 || test ! -s conftest.err'
9273ffba
DE
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; } &&
13138 { ac_try='test -s conftest.$ac_objext'
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
0093c2fc 13144 bakefile_compiler_xlc=yes
9273ffba
DE
13145else
13146 echo "$as_me: failed program was:" >&5
13147sed 's/^/| /' conftest.$ac_ext >&5
13148
0093c2fc 13149bakefile_compiler_xlc=no
9273ffba
DE
13150fi
13151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13152 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13153
13154fi
0093c2fc
VZ
13155echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13156echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13157
0093c2fc 13158XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13159ac_ext=c
13160ac_cpp='$CPP $CPPFLAGS'
13161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13163ac_compiler_gnu=$ac_cv_c_compiler_gnu
13164
13165
3006edc0
VZ
13166 ;;
13167
13168 IRIX*)
a848cd7e 13169
6dcfc289 13170
0ad5d837
VZ
13171 ac_ext=c
13172ac_cpp='$CPP $CPPFLAGS'
13173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13175ac_compiler_gnu=$ac_cv_c_compiler_gnu
13176
13177 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13178echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13179if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13181else
13182 cat >conftest.$ac_ext <<_ACEOF
13183/* confdefs.h. */
13184_ACEOF
13185cat confdefs.h >>conftest.$ac_ext
13186cat >>conftest.$ac_ext <<_ACEOF
13187/* end confdefs.h. */
13188
13189int
13190main ()
13191{
13192
13193 #ifndef _SGI_COMPILER_VERSION
13194 choke me
13195 #endif
13196
13197 ;
13198 return 0;
13199}
13200_ACEOF
13201rm -f conftest.$ac_objext
13202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13203 (eval $ac_compile) 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
7067783d
PC
13210 { ac_try='test -z "$ac_c_werror_flag"
13211 || test ! -s conftest.err'
0ad5d837
VZ
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try='test -s conftest.$ac_objext'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13223 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13224else
13225 echo "$as_me: failed program was:" >&5
13226sed 's/^/| /' conftest.$ac_ext >&5
13227
13228bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13229
13230fi
13231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13232
13233
13234fi
13235echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13236echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13237 ac_ext=c
13238ac_cpp='$CPP $CPPFLAGS'
13239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13241ac_compiler_gnu=$ac_cv_c_compiler_gnu
13242
13243 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13244 :; SGICC=yes
13245 else
13246 :;
13247 fi
13248
13249
3006edc0
VZ
13250 ;;
13251
0093c2fc 13252 HP-UX*)
3006edc0
VZ
13253
13254
13255 ac_ext=c
13256ac_cpp='$CPP $CPPFLAGS'
13257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13259ac_compiler_gnu=$ac_cv_c_compiler_gnu
13260
0093c2fc
VZ
13261 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13262echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13263if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13265else
13266 cat >conftest.$ac_ext <<_ACEOF
13267/* confdefs.h. */
13268_ACEOF
13269cat confdefs.h >>conftest.$ac_ext
13270cat >>conftest.$ac_ext <<_ACEOF
13271/* end confdefs.h. */
13272
13273int
13274main ()
13275{
13276
0093c2fc 13277 #ifndef __HP_cc
3006edc0
VZ
13278 choke me
13279 #endif
13280
13281 ;
13282 return 0;
13283}
13284_ACEOF
13285rm -f conftest.$ac_objext
13286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287 (eval $ac_compile) 2>conftest.er1
13288 ac_status=$?
13289 grep -v '^ *+' conftest.er1 >conftest.err
13290 rm -f conftest.er1
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
7067783d
PC
13294 { ac_try='test -z "$ac_c_werror_flag"
13295 || test ! -s conftest.err'
3006edc0
VZ
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } &&
13301 { ac_try='test -s conftest.$ac_objext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
0093c2fc 13307 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13308else
13309 echo "$as_me: failed program was:" >&5
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
0093c2fc 13312bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13313
13314fi
13315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13316
13317
13318fi
0093c2fc
VZ
13319echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13320echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13321 ac_ext=c
13322ac_cpp='$CPP $CPPFLAGS'
13323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13325ac_compiler_gnu=$ac_cv_c_compiler_gnu
13326
0093c2fc
VZ
13327 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13328 :; HPCC=yes
a1aa0349
VZ
13329 else
13330 :;
13331 fi
13332
13333
13334 ;;
13335
0093c2fc 13336 OSF1)
a1aa0349
VZ
13337
13338
13339 ac_ext=c
13340ac_cpp='$CPP $CPPFLAGS'
13341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13343ac_compiler_gnu=$ac_cv_c_compiler_gnu
13344
0093c2fc
VZ
13345 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13346echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13347if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13349else
13350 cat >conftest.$ac_ext <<_ACEOF
13351/* confdefs.h. */
13352_ACEOF
13353cat confdefs.h >>conftest.$ac_ext
13354cat >>conftest.$ac_ext <<_ACEOF
13355/* end confdefs.h. */
13356
13357int
13358main ()
13359{
13360
0093c2fc 13361 #ifndef __DECC
a1aa0349
VZ
13362 choke me
13363 #endif
13364
13365 ;
13366 return 0;
13367}
13368_ACEOF
13369rm -f conftest.$ac_objext
13370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371 (eval $ac_compile) 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
7067783d
PC
13378 { ac_try='test -z "$ac_c_werror_flag"
13379 || test ! -s conftest.err'
a1aa0349
VZ
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; } &&
13385 { ac_try='test -s conftest.$ac_objext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
0093c2fc 13391 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13392else
13393 echo "$as_me: failed program was:" >&5
13394sed 's/^/| /' conftest.$ac_ext >&5
13395
0093c2fc 13396bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13397
13398fi
13399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13400
13401
13402fi
0093c2fc
VZ
13403echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13404echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13405 ac_ext=c
13406ac_cpp='$CPP $CPPFLAGS'
13407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13409ac_compiler_gnu=$ac_cv_c_compiler_gnu
13410
0093c2fc
VZ
13411 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13412 :; COMPAQCC=yes
13413 else
13414 :;
13415 fi
13416
13417
13418 ;;
13419
13420 SunOS)
13421
13422
13423 ac_ext=c
13424ac_cpp='$CPP $CPPFLAGS'
13425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13427ac_compiler_gnu=$ac_cv_c_compiler_gnu
13428
13429 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13430echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13431if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433else
13434 cat >conftest.$ac_ext <<_ACEOF
13435/* confdefs.h. */
13436_ACEOF
13437cat confdefs.h >>conftest.$ac_ext
13438cat >>conftest.$ac_ext <<_ACEOF
13439/* end confdefs.h. */
13440
13441int
13442main ()
13443{
13444
13445 #ifndef __SUNPRO_C
13446 choke me
13447 #endif
13448
13449 ;
13450 return 0;
13451}
13452_ACEOF
13453rm -f conftest.$ac_objext
13454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13455 (eval $ac_compile) 2>conftest.er1
13456 ac_status=$?
13457 grep -v '^ *+' conftest.er1 >conftest.err
13458 rm -f conftest.er1
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
7067783d
PC
13462 { ac_try='test -z "$ac_c_werror_flag"
13463 || test ! -s conftest.err'
0093c2fc
VZ
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest.$ac_objext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 bakefile_cv_c_compiler___SUNPRO_C=yes
13476else
13477 echo "$as_me: failed program was:" >&5
13478sed 's/^/| /' conftest.$ac_ext >&5
13479
13480bakefile_cv_c_compiler___SUNPRO_C=no
13481
13482fi
13483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13484
13485
13486fi
13487echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13488echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13489 ac_ext=c
13490ac_cpp='$CPP $CPPFLAGS'
13491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13493ac_compiler_gnu=$ac_cv_c_compiler_gnu
13494
13495 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13496 :; SUNCC=yes
3006edc0
VZ
13497 else
13498 :;
13499 fi
13500
13501
13502 ;;
13503 esac
ab0ad5f1 13504 fi
a9e5b1f0
MW
13505
13506
3006edc0 13507
a848cd7e
SC
13508ac_ext=c
13509ac_cpp='$CPP $CPPFLAGS'
13510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13512ac_compiler_gnu=$ac_cv_c_compiler_gnu
13513echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13514echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13515# On Suns, sometimes $CPP names a directory.
13516if test -n "$CPP" && test -d "$CPP"; then
13517 CPP=
13518fi
13519if test -z "$CPP"; then
13520 if test "${ac_cv_prog_CPP+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13522else
13523 # Double quotes because CPP needs to be expanded
13524 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13525 do
13526 ac_preproc_ok=false
13527for ac_c_preproc_warn_flag in '' yes
13528do
13529 # Use a header file that comes with gcc, so configuring glibc
13530 # with a fresh cross-compiler works.
13531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13532 # <limits.h> exists even on freestanding compilers.
13533 # On the NeXT, cc -E runs the code through the compiler's parser,
13534 # not just through cpp. "Syntax error" is here to catch this case.
13535 cat >conftest.$ac_ext <<_ACEOF
13536/* confdefs.h. */
13537_ACEOF
13538cat confdefs.h >>conftest.$ac_ext
13539cat >>conftest.$ac_ext <<_ACEOF
13540/* end confdefs.h. */
13541#ifdef __STDC__
13542# include <limits.h>
13543#else
13544# include <assert.h>
13545#endif
ac1cb8d3 13546 Syntax error
a848cd7e
SC
13547_ACEOF
13548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13550 ac_status=$?
13551 grep -v '^ *+' conftest.er1 >conftest.err
13552 rm -f conftest.er1
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } >/dev/null; then
13556 if test -s conftest.err; then
13557 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13559 else
13560 ac_cpp_err=
13561 fi
13562else
13563 ac_cpp_err=yes
13564fi
13565if test -z "$ac_cpp_err"; then
13566 :
13567else
13568 echo "$as_me: failed program was:" >&5
13569sed 's/^/| /' conftest.$ac_ext >&5
13570
13571 # Broken: fails on valid input.
13572continue
13573fi
13574rm -f conftest.err conftest.$ac_ext
13575
13576 # OK, works on sane cases. Now check whether non-existent headers
13577 # can be detected and how.
13578 cat >conftest.$ac_ext <<_ACEOF
13579/* confdefs.h. */
13580_ACEOF
13581cat confdefs.h >>conftest.$ac_ext
13582cat >>conftest.$ac_ext <<_ACEOF
13583/* end confdefs.h. */
13584#include <ac_nonexistent.h>
13585_ACEOF
13586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13588 ac_status=$?
13589 grep -v '^ *+' conftest.er1 >conftest.err
13590 rm -f conftest.er1
13591 cat conftest.err >&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } >/dev/null; then
13594 if test -s conftest.err; then
13595 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13597 else
13598 ac_cpp_err=
13599 fi
13600else
13601 ac_cpp_err=yes
13602fi
13603if test -z "$ac_cpp_err"; then
13604 # Broken: success on invalid input.
13605continue
13606else
13607 echo "$as_me: failed program was:" >&5
13608sed 's/^/| /' conftest.$ac_ext >&5
13609
13610 # Passes both tests.
13611ac_preproc_ok=:
13612break
13613fi
13614rm -f conftest.err conftest.$ac_ext
13615
13616done
13617# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13618rm -f conftest.err conftest.$ac_ext
13619if $ac_preproc_ok; then
13620 break
13621fi
13622
13623 done
13624 ac_cv_prog_CPP=$CPP
13625
13626fi
13627 CPP=$ac_cv_prog_CPP
13628else
13629 ac_cv_prog_CPP=$CPP
13630fi
13631echo "$as_me:$LINENO: result: $CPP" >&5
13632echo "${ECHO_T}$CPP" >&6
13633ac_preproc_ok=false
13634for ac_c_preproc_warn_flag in '' yes
13635do
13636 # Use a header file that comes with gcc, so configuring glibc
13637 # with a fresh cross-compiler works.
13638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13639 # <limits.h> exists even on freestanding compilers.
13640 # On the NeXT, cc -E runs the code through the compiler's parser,
13641 # not just through cpp. "Syntax error" is here to catch this case.
13642 cat >conftest.$ac_ext <<_ACEOF
13643/* confdefs.h. */
13644_ACEOF
13645cat confdefs.h >>conftest.$ac_ext
13646cat >>conftest.$ac_ext <<_ACEOF
13647/* end confdefs.h. */
13648#ifdef __STDC__
13649# include <limits.h>
13650#else
13651# include <assert.h>
13652#endif
ac1cb8d3 13653 Syntax error
a848cd7e
SC
13654_ACEOF
13655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } >/dev/null; then
13663 if test -s conftest.err; then
13664 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13666 else
13667 ac_cpp_err=
13668 fi
13669else
13670 ac_cpp_err=yes
13671fi
13672if test -z "$ac_cpp_err"; then
13673 :
13674else
13675 echo "$as_me: failed program was:" >&5
13676sed 's/^/| /' conftest.$ac_ext >&5
13677
13678 # Broken: fails on valid input.
13679continue
13680fi
13681rm -f conftest.err conftest.$ac_ext
13682
13683 # OK, works on sane cases. Now check whether non-existent headers
13684 # can be detected and how.
13685 cat >conftest.$ac_ext <<_ACEOF
13686/* confdefs.h. */
13687_ACEOF
13688cat confdefs.h >>conftest.$ac_ext
13689cat >>conftest.$ac_ext <<_ACEOF
13690/* end confdefs.h. */
13691#include <ac_nonexistent.h>
13692_ACEOF
13693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } >/dev/null; then
13701 if test -s conftest.err; then
13702 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13704 else
13705 ac_cpp_err=
13706 fi
13707else
13708 ac_cpp_err=yes
13709fi
13710if test -z "$ac_cpp_err"; then
13711 # Broken: success on invalid input.
13712continue
13713else
13714 echo "$as_me: failed program was:" >&5
13715sed 's/^/| /' conftest.$ac_ext >&5
13716
13717 # Passes both tests.
13718ac_preproc_ok=:
13719break
13720fi
13721rm -f conftest.err conftest.$ac_ext
13722
13723done
13724# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13725rm -f conftest.err conftest.$ac_ext
13726if $ac_preproc_ok; then
13727 :
13728else
13729 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13730See \`config.log' for more details." >&5
13731echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13732See \`config.log' for more details." >&2;}
13733 { (exit 1); exit 1; }; }
13734fi
13735
13736ac_ext=c
13737ac_cpp='$CPP $CPPFLAGS'
13738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13740ac_compiler_gnu=$ac_cv_c_compiler_gnu
13741
13742
13743echo "$as_me:$LINENO: checking for egrep" >&5
13744echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13745if test "${ac_cv_prog_egrep+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13747else
13748 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13749 then ac_cv_prog_egrep='grep -E'
13750 else ac_cv_prog_egrep='egrep'
13751 fi
13752fi
13753echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13754echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13755 EGREP=$ac_cv_prog_egrep
13756
13757
13758if test $ac_cv_c_compiler_gnu = yes; then
13759 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13760echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13761if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
13763else
13764 ac_pattern="Autoconf.*'x'"
13765 cat >conftest.$ac_ext <<_ACEOF
13766/* confdefs.h. */
13767_ACEOF
13768cat confdefs.h >>conftest.$ac_ext
13769cat >>conftest.$ac_ext <<_ACEOF
13770/* end confdefs.h. */
13771#include <sgtty.h>
13772Autoconf TIOCGETP
13773_ACEOF
13774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13775 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13776 ac_cv_prog_gcc_traditional=yes
13777else
13778 ac_cv_prog_gcc_traditional=no
13779fi
13780rm -f conftest*
13781
13782
13783 if test $ac_cv_prog_gcc_traditional = no; then
13784 cat >conftest.$ac_ext <<_ACEOF
13785/* confdefs.h. */
13786_ACEOF
13787cat confdefs.h >>conftest.$ac_ext
13788cat >>conftest.$ac_ext <<_ACEOF
13789/* end confdefs.h. */
13790#include <termio.h>
13791Autoconf TCGETA
13792_ACEOF
13793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13794 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13795 ac_cv_prog_gcc_traditional=yes
13796fi
13797rm -f conftest*
13798
13799 fi
13800fi
13801echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13802echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13803 if test $ac_cv_prog_gcc_traditional = yes; then
13804 CC="$CC -traditional"
13805 fi
13806fi
13807
13808
a848cd7e
SC
13809ac_ext=cc
13810ac_cpp='$CXXCPP $CPPFLAGS'
13811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13814
13815
13816CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13817
13818
3006edc0 13819
6dcfc289 13820 ac_ext=cc
a848cd7e
SC
13821ac_cpp='$CXXCPP $CPPFLAGS'
13822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13825if test -n "$ac_tool_prefix"; then
13826 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13827 do
13828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13830echo "$as_me:$LINENO: checking for $ac_word" >&5
13831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13832if test "${ac_cv_prog_CXX+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13834else
13835 if test -n "$CXX"; then
13836 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13837else
13838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13839for as_dir in $PATH
13840do
13841 IFS=$as_save_IFS
13842 test -z "$as_dir" && as_dir=.
13843 for ac_exec_ext in '' $ac_executable_extensions; do
13844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13845 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13847 break 2
13848 fi
13849done
13850done
13851
13852fi
13853fi
13854CXX=$ac_cv_prog_CXX
13855if test -n "$CXX"; then
13856 echo "$as_me:$LINENO: result: $CXX" >&5
13857echo "${ECHO_T}$CXX" >&6
13858else
13859 echo "$as_me:$LINENO: result: no" >&5
13860echo "${ECHO_T}no" >&6
13861fi
13862
13863 test -n "$CXX" && break
13864 done
13865fi
13866if test -z "$CXX"; then
13867 ac_ct_CXX=$CXX
13868 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13869do
13870 # Extract the first word of "$ac_prog", so it can be a program name with args.
13871set dummy $ac_prog; ac_word=$2
13872echo "$as_me:$LINENO: checking for $ac_word" >&5
13873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13874if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876else
13877 if test -n "$ac_ct_CXX"; then
13878 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13879else
13880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881for as_dir in $PATH
13882do
13883 IFS=$as_save_IFS
13884 test -z "$as_dir" && as_dir=.
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13887 ac_cv_prog_ac_ct_CXX="$ac_prog"
13888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13889 break 2
13890 fi
13891done
13892done
13893
13894fi
13895fi
13896ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13897if test -n "$ac_ct_CXX"; then
13898 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13899echo "${ECHO_T}$ac_ct_CXX" >&6
13900else
13901 echo "$as_me:$LINENO: result: no" >&5
13902echo "${ECHO_T}no" >&6
13903fi
13904
13905 test -n "$ac_ct_CXX" && break
13906done
13907test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13908
13909 CXX=$ac_ct_CXX
13910fi
13911
13912
13913# Provide some information about the compiler.
13914echo "$as_me:$LINENO:" \
13915 "checking for C++ compiler version" >&5
13916ac_compiler=`set X $ac_compile; echo $2`
13917{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13918 (eval $ac_compiler --version </dev/null >&5) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }
13922{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13923 (eval $ac_compiler -v </dev/null >&5) 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }
13927{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13928 (eval $ac_compiler -V </dev/null >&5) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }
13932
13933echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13934echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13935if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13937else
13938 cat >conftest.$ac_ext <<_ACEOF
13939/* confdefs.h. */
13940_ACEOF
13941cat confdefs.h >>conftest.$ac_ext
13942cat >>conftest.$ac_ext <<_ACEOF
13943/* end confdefs.h. */
13944
13945int
13946main ()
13947{
13948#ifndef __GNUC__
13949 choke me
13950#endif
13951
13952 ;
13953 return 0;
13954}
13955_ACEOF
13956rm -f conftest.$ac_objext
13957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13958 (eval $ac_compile) 2>conftest.er1
a848cd7e 13959 ac_status=$?
ac1cb8d3
VS
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
a848cd7e
SC
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
7067783d
PC
13965 { ac_try='test -z "$ac_cxx_werror_flag"
13966 || test ! -s conftest.err'
ac1cb8d3
VS
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 ac_compiler_gnu=yes
13979else
13980 echo "$as_me: failed program was:" >&5
13981sed 's/^/| /' conftest.$ac_ext >&5
13982
13983ac_compiler_gnu=no
13984fi
ac1cb8d3 13985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13986ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13987
13988fi
13989echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13990echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13991GXX=`test $ac_compiler_gnu = yes && echo yes`
13992ac_test_CXXFLAGS=${CXXFLAGS+set}
13993ac_save_CXXFLAGS=$CXXFLAGS
13994CXXFLAGS="-g"
13995echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13996echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13997if test "${ac_cv_prog_cxx_g+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
13999else
14000 cat >conftest.$ac_ext <<_ACEOF
14001/* confdefs.h. */
14002_ACEOF
14003cat confdefs.h >>conftest.$ac_ext
14004cat >>conftest.$ac_ext <<_ACEOF
14005/* end confdefs.h. */
14006
14007int
14008main ()
14009{
14010
14011 ;
14012 return 0;
14013}
14014_ACEOF
14015rm -f conftest.$ac_objext
14016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14017 (eval $ac_compile) 2>conftest.er1
a848cd7e 14018 ac_status=$?
ac1cb8d3
VS
14019 grep -v '^ *+' conftest.er1 >conftest.err
14020 rm -f conftest.er1
14021 cat conftest.err >&5
a848cd7e
SC
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } &&
7067783d
PC
14024 { ac_try='test -z "$ac_cxx_werror_flag"
14025 || test ! -s conftest.err'
ac1cb8d3
VS
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; } &&
14031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_cv_prog_cxx_g=yes
14038else
14039 echo "$as_me: failed program was:" >&5
14040sed 's/^/| /' conftest.$ac_ext >&5
14041
14042ac_cv_prog_cxx_g=no
14043fi
ac1cb8d3 14044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14045fi
14046echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14047echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14048if test "$ac_test_CXXFLAGS" = set; then
14049 CXXFLAGS=$ac_save_CXXFLAGS
14050elif test $ac_cv_prog_cxx_g = yes; then
14051 if test "$GXX" = yes; then
15291213 14052 CXXFLAGS="-g -O2"
a848cd7e 14053 else
15291213 14054 CXXFLAGS="-g"
a848cd7e
SC
14055 fi
14056else
14057 if test "$GXX" = yes; then
14058 CXXFLAGS="-O2"
14059 else
14060 CXXFLAGS=
14061 fi
14062fi
14063for ac_declaration in \
ac1cb8d3 14064 '' \
a848cd7e
SC
14065 'extern "C" void std::exit (int) throw (); using std::exit;' \
14066 'extern "C" void std::exit (int); using std::exit;' \
14067 'extern "C" void exit (int) throw ();' \
14068 'extern "C" void exit (int);' \
14069 'void exit (int);'
14070do
14071 cat >conftest.$ac_ext <<_ACEOF
14072/* confdefs.h. */
14073_ACEOF
14074cat confdefs.h >>conftest.$ac_ext
14075cat >>conftest.$ac_ext <<_ACEOF
14076/* end confdefs.h. */
de59c161 14077$ac_declaration
ac1cb8d3 14078#include <stdlib.h>
a848cd7e
SC
14079int
14080main ()
14081{
14082exit (42);
14083 ;
14084 return 0;
14085}
14086_ACEOF
14087rm -f conftest.$ac_objext
14088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14089 (eval $ac_compile) 2>conftest.er1
a848cd7e 14090 ac_status=$?
ac1cb8d3
VS
14091 grep -v '^ *+' conftest.er1 >conftest.err
14092 rm -f conftest.er1
14093 cat conftest.err >&5
a848cd7e
SC
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
7067783d
PC
14096 { ac_try='test -z "$ac_cxx_werror_flag"
14097 || test ! -s conftest.err'
ac1cb8d3
VS
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; } &&
14103 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14109 :
14110else
14111 echo "$as_me: failed program was:" >&5
14112sed 's/^/| /' conftest.$ac_ext >&5
14113
14114continue
14115fi
ac1cb8d3 14116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14117 cat >conftest.$ac_ext <<_ACEOF
14118/* confdefs.h. */
14119_ACEOF
14120cat confdefs.h >>conftest.$ac_ext
14121cat >>conftest.$ac_ext <<_ACEOF
14122/* end confdefs.h. */
14123$ac_declaration
14124int
14125main ()
14126{
14127exit (42);
14128 ;
14129 return 0;
14130}
14131_ACEOF
14132rm -f conftest.$ac_objext
14133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14134 (eval $ac_compile) 2>conftest.er1
a848cd7e 14135 ac_status=$?
ac1cb8d3
VS
14136 grep -v '^ *+' conftest.er1 >conftest.err
14137 rm -f conftest.er1
14138 cat conftest.err >&5
a848cd7e
SC
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
7067783d
PC
14141 { ac_try='test -z "$ac_cxx_werror_flag"
14142 || test ! -s conftest.err'
ac1cb8d3
VS
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; }; then
14154 break
14155else
14156 echo "$as_me: failed program was:" >&5
14157sed 's/^/| /' conftest.$ac_ext >&5
14158
14159fi
ac1cb8d3 14160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14161done
14162rm -f conftest*
14163if test -n "$ac_declaration"; then
14164 echo '#ifdef __cplusplus' >>confdefs.h
14165 echo $ac_declaration >>confdefs.h
14166 echo '#endif' >>confdefs.h
14167fi
14168
14169ac_ext=cc
14170ac_cpp='$CXXCPP $CPPFLAGS'
14171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14174
ab0ad5f1
VZ
14175
14176
14177 ac_ext=cc
14178ac_cpp='$CXXCPP $CPPFLAGS'
14179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14182
14183 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14184echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14185if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14187else
14188 cat >conftest.$ac_ext <<_ACEOF
14189/* confdefs.h. */
14190_ACEOF
14191cat confdefs.h >>conftest.$ac_ext
14192cat >>conftest.$ac_ext <<_ACEOF
14193/* end confdefs.h. */
14194
14195int
14196main ()
14197{
14198
14199 #ifndef __INTEL_COMPILER
14200 choke me
14201 #endif
14202
14203 ;
14204 return 0;
14205}
14206_ACEOF
14207rm -f conftest.$ac_objext
14208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209 (eval $ac_compile) 2>conftest.er1
14210 ac_status=$?
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
7067783d
PC
14216 { ac_try='test -z "$ac_cxx_werror_flag"
14217 || test ! -s conftest.err'
ab0ad5f1
VZ
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; } &&
14223 { ac_try='test -s conftest.$ac_objext'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14226 ac_status=$?
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; }; then
14229 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14230else
14231 echo "$as_me: failed program was:" >&5
14232sed 's/^/| /' conftest.$ac_ext >&5
14233
14234bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14235
14236fi
14237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14238
14239
14240fi
14241echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14242echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14243 ac_ext=cc
14244ac_cpp='$CXXCPP $CPPFLAGS'
14245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14248
14249 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14250 :; INTELCXX=yes
14251 else
14252 :;
14253 fi
14254
14255
3006edc0
VZ
14256 if test "x$GCXX" != "xyes"; then
14257 if test "xCXX" = "xC"; then
14258 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14259echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14260if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262else
14263 cat >conftest.$ac_ext <<_ACEOF
14264/* confdefs.h. */
14265_ACEOF
14266cat confdefs.h >>conftest.$ac_ext
14267cat >>conftest.$ac_ext <<_ACEOF
14268/* end confdefs.h. */
14269
14270int
14271main ()
14272{
14273
14274 ;
14275 return 0;
14276}
14277_ACEOF
14278rm -f conftest.$ac_objext conftest.$ac_ext.o
14279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280 (eval $ac_compile) 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; then
14284 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14285 case $ac_file in
14286 conftest.$ac_ext.o)
0093c2fc 14287 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14288 ;;
14289 *)
14290 ;;
14291 esac
14292done
14293else
14294 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14295See \`config.log' for more details." >&5
14296echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14297See \`config.log' for more details." >&2;}
14298 { (exit 1); exit 1; }; }
14299
14300fi
14301
14302rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14303
14304fi
0093c2fc
VZ
14305echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14306echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14307if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14308 if test "cxx" = "c"; then
0093c2fc 14309 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14310 fi
14311 if test "cxx" = "cxx"; then
0093c2fc 14312 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14313 fi
14314fi
14315
0093c2fc 14316 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14317 unset ac_cv_prog_cc_g
14318 ac_test_CFLAGS=${CFLAGS+set}
14319ac_save_CFLAGS=$CFLAGS
15291213 14320CFLAGS="-g"
3006edc0
VZ
14321echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14322echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14323if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14325else
14326 cat >conftest.$ac_ext <<_ACEOF
14327/* confdefs.h. */
14328_ACEOF
14329cat confdefs.h >>conftest.$ac_ext
14330cat >>conftest.$ac_ext <<_ACEOF
14331/* end confdefs.h. */
14332
14333int
14334main ()
14335{
14336
14337 ;
14338 return 0;
14339}
14340_ACEOF
14341rm -f conftest.$ac_objext
14342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14343 (eval $ac_compile) 2>conftest.er1
14344 ac_status=$?
14345 grep -v '^ *+' conftest.er1 >conftest.err
14346 rm -f conftest.er1
14347 cat conftest.err >&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } &&
7067783d
PC
14350 { ac_try='test -z "$ac_cxx_werror_flag"
14351 || test ! -s conftest.err'
480ccd21
DE
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14354 ac_status=$?
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; } &&
14357 { ac_try='test -s conftest.$ac_objext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
3006edc0 14363 ac_cv_prog_cc_g=yes
480ccd21
DE
14364else
14365 echo "$as_me: failed program was:" >&5
14366sed 's/^/| /' conftest.$ac_ext >&5
14367
3006edc0 14368ac_cv_prog_cc_g=no
480ccd21
DE
14369fi
14370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14371fi
3006edc0
VZ
14372echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14373echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14374if test "$ac_test_CFLAGS" = set; then
14375 CFLAGS=$ac_save_CFLAGS
14376elif test $ac_cv_prog_cc_g = yes; then
14377 if test "$GCC" = yes; then
14378 CFLAGS="-g -O2"
480ccd21 14379 else
3006edc0 14380 CFLAGS="-g"
480ccd21
DE
14381 fi
14382else
3006edc0
VZ
14383 if test "$GCC" = yes; then
14384 CFLAGS="-O2"
480ccd21 14385 else
3006edc0 14386 CFLAGS=
480ccd21
DE
14387 fi
14388fi
3006edc0 14389 fi
ab0ad5f1 14390 fi
3006edc0
VZ
14391
14392 case `uname -s` in
14393 AIX*)
14394 ac_ext=cc
14395ac_cpp='$CXXCPP $CPPFLAGS'
14396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14399
14400echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14401echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14402if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14404else
14405 cat >conftest.$ac_ext <<_ACEOF
14406/* confdefs.h. */
14407_ACEOF
14408cat confdefs.h >>conftest.$ac_ext
14409cat >>conftest.$ac_ext <<_ACEOF
14410/* end confdefs.h. */
14411
14412int
14413main ()
14414{
14415#ifndef __xlC__
14416 choke me
14417#endif
14418
14419 ;
14420 return 0;
14421}
14422_ACEOF
14423rm -f conftest.$ac_objext
14424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14425 (eval $ac_compile) 2>conftest.er1
14426 ac_status=$?
14427 grep -v '^ *+' conftest.er1 >conftest.err
14428 rm -f conftest.er1
14429 cat conftest.err >&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } &&
7067783d
PC
14432 { ac_try='test -z "$ac_cxx_werror_flag"
14433 || test ! -s conftest.err'
3006edc0
VZ
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14436 ac_status=$?
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; } &&
14439 { ac_try='test -s conftest.$ac_objext'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; }; then
0093c2fc 14445 bakefile_compiler_xlc=yes
3006edc0
VZ
14446else
14447 echo "$as_me: failed program was:" >&5
14448sed 's/^/| /' conftest.$ac_ext >&5
14449
0093c2fc 14450bakefile_compiler_xlc=no
3006edc0
VZ
14451fi
14452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14453 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14454
14455fi
0093c2fc
VZ
14456echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14457echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14458
0093c2fc 14459XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14460ac_ext=cc
14461ac_cpp='$CXXCPP $CPPFLAGS'
14462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14465
14466
14467 ;;
14468
14469 Darwin)
14470 ac_ext=cc
95986553
DE
14471ac_cpp='$CXXCPP $CPPFLAGS'
14472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14475
14476echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14477echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14478if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480else
14481 cat >conftest.$ac_ext <<_ACEOF
14482/* confdefs.h. */
14483_ACEOF
14484cat confdefs.h >>conftest.$ac_ext
14485cat >>conftest.$ac_ext <<_ACEOF
14486/* end confdefs.h. */
14487
14488int
14489main ()
14490{
14491#ifndef __MWERKS__
14492 choke me
14493#endif
14494
14495 ;
14496 return 0;
14497}
14498_ACEOF
14499rm -f conftest.$ac_objext
14500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14501 (eval $ac_compile) 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
7067783d
PC
14508 { ac_try='test -z "$ac_cxx_werror_flag"
14509 || test ! -s conftest.err'
95986553
DE
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try='test -s conftest.$ac_objext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 bakefile_compiler_mwerks=yes
14522else
14523 echo "$as_me: failed program was:" >&5
14524sed 's/^/| /' conftest.$ac_ext >&5
14525
14526bakefile_compiler_mwerks=no
14527fi
14528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14529 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14530
14531fi
14532echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14533echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14534
0e6fa1d9 14535MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14536ac_ext=cc
14537ac_cpp='$CXXCPP $CPPFLAGS'
14538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14541
14542
3006edc0 14543 ac_ext=cc
9273ffba
DE
14544ac_cpp='$CXXCPP $CPPFLAGS'
14545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14548
14549echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14550echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14551if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14553else
14554 cat >conftest.$ac_ext <<_ACEOF
14555/* confdefs.h. */
14556_ACEOF
14557cat confdefs.h >>conftest.$ac_ext
14558cat >>conftest.$ac_ext <<_ACEOF
14559/* end confdefs.h. */
14560
14561int
14562main ()
14563{
14564#ifndef __xlC__
14565 choke me
14566#endif
14567
14568 ;
14569 return 0;
14570}
14571_ACEOF
14572rm -f conftest.$ac_objext
14573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14574 (eval $ac_compile) 2>conftest.er1
14575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
7067783d
PC
14581 { ac_try='test -z "$ac_cxx_werror_flag"
14582 || test ! -s conftest.err'
9273ffba
DE
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } &&
14588 { ac_try='test -s conftest.$ac_objext'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
0093c2fc 14594 bakefile_compiler_xlc=yes
9273ffba
DE
14595else
14596 echo "$as_me: failed program was:" >&5
14597sed 's/^/| /' conftest.$ac_ext >&5
14598
0093c2fc 14599bakefile_compiler_xlc=no
9273ffba
DE
14600fi
14601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14602 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14603
14604fi
0093c2fc
VZ
14605echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14606echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14607
0093c2fc 14608XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14609ac_ext=cc
14610ac_cpp='$CXXCPP $CPPFLAGS'
14611ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14612ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14613ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14614
14615
3006edc0
VZ
14616 ;;
14617
14618 IRIX*)
95986553 14619
6dcfc289 14620
0ad5d837
VZ
14621 ac_ext=cc
14622ac_cpp='$CXXCPP $CPPFLAGS'
14623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14626
14627 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14628echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14629if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14631else
14632 cat >conftest.$ac_ext <<_ACEOF
14633/* confdefs.h. */
14634_ACEOF
14635cat confdefs.h >>conftest.$ac_ext
14636cat >>conftest.$ac_ext <<_ACEOF
14637/* end confdefs.h. */
14638
14639int
14640main ()
14641{
14642
14643 #ifndef _SGI_COMPILER_VERSION
14644 choke me
14645 #endif
14646
14647 ;
14648 return 0;
14649}
14650_ACEOF
14651rm -f conftest.$ac_objext
14652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653 (eval $ac_compile) 2>conftest.er1
14654 ac_status=$?
14655 grep -v '^ *+' conftest.er1 >conftest.err
14656 rm -f conftest.er1
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
7067783d
PC
14660 { ac_try='test -z "$ac_cxx_werror_flag"
14661 || test ! -s conftest.err'
0ad5d837
VZ
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; } &&
14667 { ac_try='test -s conftest.$ac_objext'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; }; then
14673 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14674else
14675 echo "$as_me: failed program was:" >&5
14676sed 's/^/| /' conftest.$ac_ext >&5
14677
14678bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14679
14680fi
14681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14682
14683
14684fi
14685echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14686echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14687 ac_ext=cc
14688ac_cpp='$CXXCPP $CPPFLAGS'
14689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14692
14693 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14694 :; SGICXX=yes
14695 else
14696 :;
14697 fi
14698
14699
3006edc0
VZ
14700 ;;
14701
0093c2fc 14702 HP-UX*)
3006edc0
VZ
14703
14704
14705 ac_ext=cc
14706ac_cpp='$CXXCPP $CPPFLAGS'
14707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14710
0093c2fc
VZ
14711 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14712echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14713if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14715else
14716 cat >conftest.$ac_ext <<_ACEOF
14717/* confdefs.h. */
14718_ACEOF
14719cat confdefs.h >>conftest.$ac_ext
14720cat >>conftest.$ac_ext <<_ACEOF
14721/* end confdefs.h. */
14722
14723int
14724main ()
14725{
14726
0093c2fc 14727 #ifndef __HP_aCC
3006edc0
VZ
14728 choke me
14729 #endif
14730
14731 ;
14732 return 0;
14733}
14734_ACEOF
14735rm -f conftest.$ac_objext
14736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14737 (eval $ac_compile) 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
7067783d
PC
14744 { ac_try='test -z "$ac_cxx_werror_flag"
14745 || test ! -s conftest.err'
3006edc0
VZ
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; } &&
14751 { ac_try='test -s conftest.$ac_objext'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
0093c2fc 14757 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14758else
14759 echo "$as_me: failed program was:" >&5
14760sed 's/^/| /' conftest.$ac_ext >&5
14761
0093c2fc 14762bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14763
14764fi
14765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14766
14767
14768fi
0093c2fc
VZ
14769echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14770echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14771 ac_ext=cc
14772ac_cpp='$CXXCPP $CPPFLAGS'
14773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14776
0093c2fc
VZ
14777 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14778 :; HPCXX=yes
a1aa0349
VZ
14779 else
14780 :;
14781 fi
14782
14783
14784 ;;
14785
0093c2fc 14786 OSF1)
a1aa0349
VZ
14787
14788
14789 ac_ext=cc
14790ac_cpp='$CXXCPP $CPPFLAGS'
14791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14794
0093c2fc
VZ
14795 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14796echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14797if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14799else
14800 cat >conftest.$ac_ext <<_ACEOF
14801/* confdefs.h. */
14802_ACEOF
14803cat confdefs.h >>conftest.$ac_ext
14804cat >>conftest.$ac_ext <<_ACEOF
14805/* end confdefs.h. */
14806
14807int
14808main ()
14809{
14810
0093c2fc 14811 #ifndef __DECCXX
a1aa0349
VZ
14812 choke me
14813 #endif
14814
14815 ;
14816 return 0;
14817}
14818_ACEOF
14819rm -f conftest.$ac_objext
14820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14821 (eval $ac_compile) 2>conftest.er1
14822 ac_status=$?
14823 grep -v '^ *+' conftest.er1 >conftest.err
14824 rm -f conftest.er1
14825 cat conftest.err >&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
7067783d
PC
14828 { ac_try='test -z "$ac_cxx_werror_flag"
14829 || test ! -s conftest.err'
a1aa0349
VZ
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; } &&
14835 { ac_try='test -s conftest.$ac_objext'
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
0093c2fc 14841 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14842else
14843 echo "$as_me: failed program was:" >&5
14844sed 's/^/| /' conftest.$ac_ext >&5
14845
0093c2fc 14846bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14847
14848fi
14849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14850
14851
14852fi
0093c2fc
VZ
14853echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14854echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14855 ac_ext=cc
14856ac_cpp='$CXXCPP $CPPFLAGS'
14857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14860
0093c2fc
VZ
14861 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14862 :; COMPAQCXX=yes
14863 else
14864 :;
14865 fi
14866
14867
14868 ;;
14869
14870 SunOS)
14871
14872
14873 ac_ext=cc
14874ac_cpp='$CXXCPP $CPPFLAGS'
14875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14878
14879 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14880echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14881if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14882 echo $ECHO_N "(cached) $ECHO_C" >&6
14883else
14884 cat >conftest.$ac_ext <<_ACEOF
14885/* confdefs.h. */
14886_ACEOF
14887cat confdefs.h >>conftest.$ac_ext
14888cat >>conftest.$ac_ext <<_ACEOF
14889/* end confdefs.h. */
14890
14891int
14892main ()
14893{
14894
14895 #ifndef __SUNPRO_CC
14896 choke me
14897 #endif
14898
14899 ;
14900 return 0;
14901}
14902_ACEOF
14903rm -f conftest.$ac_objext
14904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14905 (eval $ac_compile) 2>conftest.er1
14906 ac_status=$?
14907 grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
7067783d
PC
14912 { ac_try='test -z "$ac_cxx_werror_flag"
14913 || test ! -s conftest.err'
0093c2fc
VZ
14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915 (eval $ac_try) 2>&5
14916 ac_status=$?
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; } &&
14919 { ac_try='test -s conftest.$ac_objext'
14920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14921 (eval $ac_try) 2>&5
14922 ac_status=$?
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; }; then
14925 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14926else
14927 echo "$as_me: failed program was:" >&5
14928sed 's/^/| /' conftest.$ac_ext >&5
14929
14930bakefile_cv_cxx_compiler___SUNPRO_CC=no
14931
14932fi
14933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14934
14935
14936fi
14937echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14938echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14939 ac_ext=cc
14940ac_cpp='$CXXCPP $CPPFLAGS'
14941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14944
14945 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14946 :; SUNCXX=yes
3006edc0
VZ
14947 else
14948 :;
ab0ad5f1 14949 fi
a9e5b1f0
MW
14950
14951
3006edc0
VZ
14952 ;;
14953 esac
14954 fi
14955
14956
14957
a848cd7e
SC
14958if test -n "$ac_tool_prefix"; then
14959 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14960set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14961echo "$as_me:$LINENO: checking for $ac_word" >&5
14962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14963if test "${ac_cv_prog_RANLIB+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14965else
14966 if test -n "$RANLIB"; then
14967 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14968else
14969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14970for as_dir in $PATH
14971do
14972 IFS=$as_save_IFS
14973 test -z "$as_dir" && as_dir=.
14974 for ac_exec_ext in '' $ac_executable_extensions; do
14975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14976 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14978 break 2
14979 fi
14980done
14981done
14982
14983fi
14984fi
14985RANLIB=$ac_cv_prog_RANLIB
14986if test -n "$RANLIB"; then
14987 echo "$as_me:$LINENO: result: $RANLIB" >&5
14988echo "${ECHO_T}$RANLIB" >&6
14989else
14990 echo "$as_me:$LINENO: result: no" >&5
14991echo "${ECHO_T}no" >&6
14992fi
14993
14994fi
14995if test -z "$ac_cv_prog_RANLIB"; then
14996 ac_ct_RANLIB=$RANLIB
14997 # Extract the first word of "ranlib", so it can be a program name with args.
14998set dummy ranlib; ac_word=$2
14999echo "$as_me:$LINENO: checking for $ac_word" >&5
15000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15001if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15002 echo $ECHO_N "(cached) $ECHO_C" >&6
15003else
15004 if test -n "$ac_ct_RANLIB"; then
15005 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15006else
15007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15008for as_dir in $PATH
15009do
15010 IFS=$as_save_IFS
15011 test -z "$as_dir" && as_dir=.
15012 for ac_exec_ext in '' $ac_executable_extensions; do
15013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15014 ac_cv_prog_ac_ct_RANLIB="ranlib"
15015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15016 break 2
15017 fi
15018done
15019done
15020
15021 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15022fi
15023fi
15024ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15025if test -n "$ac_ct_RANLIB"; then
15026 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15027echo "${ECHO_T}$ac_ct_RANLIB" >&6
15028else
15029 echo "$as_me:$LINENO: result: no" >&5
15030echo "${ECHO_T}no" >&6
15031fi
15032
15033 RANLIB=$ac_ct_RANLIB
15034else
15035 RANLIB="$ac_cv_prog_RANLIB"
15036fi
15037
15038
8c80d384
DE
15039if test -n "$ac_tool_prefix"; then
15040 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15041set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
15042echo "$as_me:$LINENO: checking for $ac_word" >&5
15043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15044if test "${ac_cv_prog_AR+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15046else
15047 if test -n "$AR"; then
15048 ac_cv_prog_AR="$AR" # Let the user override the test.
15049else
15050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15051for as_dir in $PATH
15052do
15053 IFS=$as_save_IFS
15054 test -z "$as_dir" && as_dir=.
15055 for ac_exec_ext in '' $ac_executable_extensions; do
15056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15057 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
15058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15059 break 2
15060 fi
15061done
15062done
15063
15064fi
15065fi
15066AR=$ac_cv_prog_AR
15067if test -n "$AR"; then
15068 echo "$as_me:$LINENO: result: $AR" >&5
15069echo "${ECHO_T}$AR" >&6
15070else
15071 echo "$as_me:$LINENO: result: no" >&5
15072echo "${ECHO_T}no" >&6
15073fi
15074
8c80d384
DE
15075fi
15076if test -z "$ac_cv_prog_AR"; then
15077 ac_ct_AR=$AR
15078 # Extract the first word of "ar", so it can be a program name with args.
15079set dummy ar; ac_word=$2
15080echo "$as_me:$LINENO: checking for $ac_word" >&5
15081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15082if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15084else
15085 if test -n "$ac_ct_AR"; then
15086 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15087else
15088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15089for as_dir in $PATH
15090do
15091 IFS=$as_save_IFS
15092 test -z "$as_dir" && as_dir=.
15093 for ac_exec_ext in '' $ac_executable_extensions; do
15094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15095 ac_cv_prog_ac_ct_AR="ar"
15096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15097 break 2
15098 fi
15099done
15100done
15101
15102fi
15103fi
15104ac_ct_AR=$ac_cv_prog_ac_ct_AR
15105if test -n "$ac_ct_AR"; then
15106 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15107echo "${ECHO_T}$ac_ct_AR" >&6
15108else
15109 echo "$as_me:$LINENO: result: no" >&5
15110echo "${ECHO_T}no" >&6
15111fi
15112
15113 AR=$ac_ct_AR
15114else
15115 AR="$ac_cv_prog_AR"
15116fi
15117
a848cd7e 15118if test "x$AR" = "x" ; then
77ffb593
JS
15119 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15120echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
15121 { (exit 1); exit 1; }; }
15122fi
15123
15124# Find a good install program. We prefer a C program (faster),
15125# so one script is as good as another. But avoid the broken or
15126# incompatible versions:
15127# SysV /etc/install, /usr/sbin/install
15128# SunOS /usr/etc/install
15129# IRIX /sbin/install
15130# AIX /bin/install
15131# AmigaOS /C/install, which installs bootblocks on floppy discs
15132# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15133# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15134# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 15135# OS/2's system install, which has a completely different semantic
a848cd7e
SC
15136# ./install, which can be erroneously created by make from ./install.sh.
15137echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15138echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15139if test -z "$INSTALL"; then
15140if test "${ac_cv_path_install+set}" = set; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15142else
15143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15144for as_dir in $PATH
15145do
15146 IFS=$as_save_IFS
15147 test -z "$as_dir" && as_dir=.
15148 # Account for people who put trailing slashes in PATH elements.
15149case $as_dir/ in
15150 ./ | .// | /cC/* | \
15151 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 15152 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
15153 /usr/ucb/* ) ;;
15154 *)
15155 # OSF1 and SCO ODT 3.0 have their own names for install.
15156 # Don't use installbsd from OSF since it installs stuff as root
15157 # by default.
15158 for ac_prog in ginstall scoinst install; do
15159 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
15160 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15161 if test $ac_prog = install &&
15162 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15163 # AIX install. It has an incompatible calling convention.
15164 :
15165 elif test $ac_prog = install &&
15166 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15167 # program-specific install script used by HP pwplus--don't use.
15168 :
15169 else
15170 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15171 break 3
15172 fi
15173 fi
a848cd7e
SC
15174 done
15175 done
15176 ;;
15177esac
15178done
15179
15180
15181fi
15182 if test "${ac_cv_path_install+set}" = set; then
15183 INSTALL=$ac_cv_path_install
15184 else
15185 # As a last resort, use the slow shell script. We don't cache a
15186 # path for INSTALL within a source directory, because that will
15187 # break other packages using the cache if that directory is
15188 # removed, or if the path is relative.
15189 INSTALL=$ac_install_sh
15190 fi
15191fi
15192echo "$as_me:$LINENO: result: $INSTALL" >&5
15193echo "${ECHO_T}$INSTALL" >&6
15194
15195# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15196# It thinks the first close brace ends the variable substitution.
15197test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15198
15199test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15200
15201test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15202
15203
15204case ${INSTALL} in
15205 /* ) # Absolute
15206 ;;
15207 ?:* ) # Drive letter, considered as absolute.
15208 ;;
15209 *)
15210 INSTALL=`pwd`/${INSTALL} ;;
15211esac
15212
a848cd7e
SC
15213
15214case "${host}" in
15215
cfda0ea8 15216 *-*-darwin* )
a848cd7e
SC
15217 INSTALL_PROGRAM="cp -fp"
15218 INSTALL_DATA="cp -fp"
15219 ;;
15220 *)
15221 ;;
15222esac
15223
8c80d384
DE
15224if test -n "$ac_tool_prefix"; then
15225 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15226set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
15227echo "$as_me:$LINENO: checking for $ac_word" >&5
15228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15229if test "${ac_cv_prog_STRIP+set}" = set; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15231else
15232 if test -n "$STRIP"; then
15233 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15234else
15235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15236for as_dir in $PATH
15237do
15238 IFS=$as_save_IFS
15239 test -z "$as_dir" && as_dir=.
15240 for ac_exec_ext in '' $ac_executable_extensions; do
15241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15242 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15244 break 2
15245 fi
15246done
15247done
15248
a848cd7e
SC
15249fi
15250fi
15251STRIP=$ac_cv_prog_STRIP
15252if test -n "$STRIP"; then
15253 echo "$as_me:$LINENO: result: $STRIP" >&5
15254echo "${ECHO_T}$STRIP" >&6
15255else
15256 echo "$as_me:$LINENO: result: no" >&5
15257echo "${ECHO_T}no" >&6
15258fi
15259
8c80d384
DE
15260fi
15261if test -z "$ac_cv_prog_STRIP"; then
15262 ac_ct_STRIP=$STRIP
15263 # Extract the first word of "strip", so it can be a program name with args.
15264set dummy strip; ac_word=$2
15265echo "$as_me:$LINENO: checking for $ac_word" >&5
15266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15267if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15269else
15270 if test -n "$ac_ct_STRIP"; then
15271 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15272else
15273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15274for as_dir in $PATH
15275do
15276 IFS=$as_save_IFS
15277 test -z "$as_dir" && as_dir=.
15278 for ac_exec_ext in '' $ac_executable_extensions; do
15279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15280 ac_cv_prog_ac_ct_STRIP="strip"
15281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15282 break 2
15283 fi
15284done
15285done
15286
15287 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15288fi
15289fi
15290ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15291if test -n "$ac_ct_STRIP"; then
15292 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15293echo "${ECHO_T}$ac_ct_STRIP" >&6
15294else
15295 echo "$as_me:$LINENO: result: no" >&5
15296echo "${ECHO_T}no" >&6
15297fi
15298
15299 STRIP=$ac_ct_STRIP
15300else
15301 STRIP="$ac_cv_prog_STRIP"
15302fi
15303
15304
15305if test "$wxUSE_WINE" = "yes"; then
15306 if test -n "$ac_tool_prefix"; then
15307 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15308set dummy ${ac_tool_prefix}wrc; ac_word=$2
15309echo "$as_me:$LINENO: checking for $ac_word" >&5
15310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15311if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313else
8ced02f6
DE
15314 if test -n "$WINDRES"; then
15315 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15316else
15317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15318for as_dir in $PATH
15319do
15320 IFS=$as_save_IFS
15321 test -z "$as_dir" && as_dir=.
15322 for ac_exec_ext in '' $ac_executable_extensions; do
15323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15324 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15326 break 2
15327 fi
15328done
15329done
15330
15331fi
15332fi
8ced02f6
DE
15333WINDRES=$ac_cv_prog_WINDRES
15334if test -n "$WINDRES"; then
15335 echo "$as_me:$LINENO: result: $WINDRES" >&5
15336echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15337else
15338 echo "$as_me:$LINENO: result: no" >&5
15339echo "${ECHO_T}no" >&6
15340fi
15341
15342fi
8ced02f6
DE
15343if test -z "$ac_cv_prog_WINDRES"; then
15344 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15345 # Extract the first word of "wrc", so it can be a program name with args.
15346set dummy wrc; ac_word=$2
15347echo "$as_me:$LINENO: checking for $ac_word" >&5
15348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15349if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15351else
8ced02f6
DE
15352 if test -n "$ac_ct_WINDRES"; then
15353 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15354else
15355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15356for as_dir in $PATH
15357do
15358 IFS=$as_save_IFS
15359 test -z "$as_dir" && as_dir=.
15360 for ac_exec_ext in '' $ac_executable_extensions; do
15361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15362 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15364 break 2
15365 fi
15366done
15367done
15368
15369fi
15370fi
8ced02f6
DE
15371ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15372if test -n "$ac_ct_WINDRES"; then
15373 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15374echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15375else
15376 echo "$as_me:$LINENO: result: no" >&5
15377echo "${ECHO_T}no" >&6
15378fi
15379
8ced02f6 15380 WINDRES=$ac_ct_WINDRES
8c80d384 15381else
8ced02f6 15382 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15383fi
15384
004ee6da 15385 RESCOMP="$WINDRES"
8c80d384
DE
15386else
15387 case "${host}" in
15388 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15389 if test -n "$ac_tool_prefix"; then
15390 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15391set dummy ${ac_tool_prefix}windres; ac_word=$2
15392echo "$as_me:$LINENO: checking for $ac_word" >&5
15393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15394if test "${ac_cv_prog_WINDRES+set}" = set; then
15395 echo $ECHO_N "(cached) $ECHO_C" >&6
15396else
15397 if test -n "$WINDRES"; then
15398 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15399else
15400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15401for as_dir in $PATH
15402do
15403 IFS=$as_save_IFS
15404 test -z "$as_dir" && as_dir=.
15405 for ac_exec_ext in '' $ac_executable_extensions; do
15406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15407 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15409 break 2
15410 fi
15411done
15412done
15413
15414fi
15415fi
15416WINDRES=$ac_cv_prog_WINDRES
15417if test -n "$WINDRES"; then
15418 echo "$as_me:$LINENO: result: $WINDRES" >&5
15419echo "${ECHO_T}$WINDRES" >&6
15420else
15421 echo "$as_me:$LINENO: result: no" >&5
15422echo "${ECHO_T}no" >&6
15423fi
15424
15425fi
15426if test -z "$ac_cv_prog_WINDRES"; then
15427 ac_ct_WINDRES=$WINDRES
15428 # Extract the first word of "windres", so it can be a program name with args.
15429set dummy windres; ac_word=$2
15430echo "$as_me:$LINENO: checking for $ac_word" >&5
15431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15432if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15434else
15435 if test -n "$ac_ct_WINDRES"; then
15436 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15437else
15438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15439for as_dir in $PATH
15440do
15441 IFS=$as_save_IFS
15442 test -z "$as_dir" && as_dir=.
15443 for ac_exec_ext in '' $ac_executable_extensions; do
15444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15445 ac_cv_prog_ac_ct_WINDRES="windres"
15446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15447 break 2
15448 fi
15449done
15450done
15451
15452fi
15453fi
15454ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15455if test -n "$ac_ct_WINDRES"; then
15456 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15457echo "${ECHO_T}$ac_ct_WINDRES" >&6
15458else
15459 echo "$as_me:$LINENO: result: no" >&5
15460echo "${ECHO_T}no" >&6
15461fi
15462
15463 WINDRES=$ac_ct_WINDRES
15464else
15465 WINDRES="$ac_cv_prog_WINDRES"
15466fi
15467
15468 RESCOMP="$WINDRES"
15469 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15470 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15471set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15472echo "$as_me:$LINENO: checking for $ac_word" >&5
15473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15474if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15476else
15477 if test -n "$DLLTOOL"; then
15478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15479else
15480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15481for as_dir in $PATH
15482do
15483 IFS=$as_save_IFS
15484 test -z "$as_dir" && as_dir=.
15485 for ac_exec_ext in '' $ac_executable_extensions; do
15486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15487 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15489 break 2
15490 fi
15491done
15492done
15493
15494fi
15495fi
15496DLLTOOL=$ac_cv_prog_DLLTOOL
15497if test -n "$DLLTOOL"; then
15498 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15499echo "${ECHO_T}$DLLTOOL" >&6
15500else
15501 echo "$as_me:$LINENO: result: no" >&5
15502echo "${ECHO_T}no" >&6
15503fi
15504
15505fi
15506if test -z "$ac_cv_prog_DLLTOOL"; then
15507 ac_ct_DLLTOOL=$DLLTOOL
15508 # Extract the first word of "dlltool", so it can be a program name with args.
15509set dummy dlltool; ac_word=$2
15510echo "$as_me:$LINENO: checking for $ac_word" >&5
15511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15512if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514else
15515 if test -n "$ac_ct_DLLTOOL"; then
15516 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15517else
15518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15519for as_dir in $PATH
15520do
15521 IFS=$as_save_IFS
15522 test -z "$as_dir" && as_dir=.
15523 for ac_exec_ext in '' $ac_executable_extensions; do
15524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15525 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15527 break 2
15528 fi
15529done
15530done
15531
15532fi
15533fi
15534ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15535if test -n "$ac_ct_DLLTOOL"; then
15536 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15537echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15538else
15539 echo "$as_me:$LINENO: result: no" >&5
15540echo "${ECHO_T}no" >&6
15541fi
15542
15543 DLLTOOL=$ac_ct_DLLTOOL
15544else
15545 DLLTOOL="$ac_cv_prog_DLLTOOL"
15546fi
15547
15548 ;;
15549 esac
15550fi
a848cd7e
SC
15551
15552echo "$as_me:$LINENO: checking if make is GNU make" >&5
15553echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15554if test "${wx_cv_prog_makeisgnu+set}" = set; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15556else
15557
15558 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15559 egrep -s GNU > /dev/null); then
15560 wx_cv_prog_makeisgnu="yes"
15561 else
15562 wx_cv_prog_makeisgnu="no"
15563 fi
15564
15565fi
15566echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15567echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15568
15569if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15570 IF_GNU_MAKE=""
15571else
15572 IF_GNU_MAKE="#"
15573fi
15574
15575
15576
15577if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15578echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15579echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15580if test "${wx_cv_prog_makevpath+set}" = set; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15582else
15583
15584cat - << EOF > confMake
15585check : file
15586 cp \$? \$@
15587 cp \$? final_file
15588EOF
15589
15590if test ! -d sub ; then
15591 mkdir sub
15592fi
15593echo dummy > sub/file
15594${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15595RESULT=$?
15596rm -f sub/file check final_file confMake
15597rmdir sub
15598if test "$RESULT" = 0; then
15599 wx_cv_prog_makevpath="yes"
15600else
15601 wx_cv_prog_makevpath="no"
15602fi
15603
15604fi
15605echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15606echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15607
15608if test "x$wx_cv_prog_makevpath" != "xyes"; then
15609{ { echo "$as_me:$LINENO: error:
15610You need a make-utility that is able to use the variable
15611VPATH correctly.
15612If your version of make does not support VPATH correctly,
15613please install GNU-make (possibly as gmake), and start
15614configure with the following command:
15615export MAKE=gmake; ./configure for sh-type shells
15616setenv MAKE gmake; ./configure for csh-type shells
15617Also please do remember to use gmake in this case every time
15618you are trying to compile.
15619" >&5
15620echo "$as_me: error:
15621You need a make-utility that is able to use the variable
15622VPATH correctly.
15623If your version of make does not support VPATH correctly,
15624please install GNU-make (possibly as gmake), and start
15625configure with the following command:
15626export MAKE=gmake; ./configure for sh-type shells
15627setenv MAKE gmake; ./configure for csh-type shells
15628Also please do remember to use gmake in this case every time
15629you are trying to compile.
15630" >&2;}
15631 { (exit 1); exit 1; }; }
15632fi fi
15633echo "$as_me:$LINENO: checking whether ln -s works" >&5
15634echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15635LN_S=$as_ln_s
15636if test "$LN_S" = "ln -s"; then
15637 echo "$as_me:$LINENO: result: yes" >&5
15638echo "${ECHO_T}yes" >&6
15639else
15640 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15641echo "${ECHO_T}no, using $LN_S" >&6
15642fi
15643
15644
bcaab0f9 15645
a848cd7e 15646
2113bc77 15647if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15648 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15649fi
15650
4d7ec9f1
DE
15651case "${host}" in
15652 powerpc-*-darwin* )
15653 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15654echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15655 cat >conftest.$ac_ext <<_ACEOF
15656/* confdefs.h. */
15657_ACEOF
15658cat confdefs.h >>conftest.$ac_ext
15659cat >>conftest.$ac_ext <<_ACEOF
15660/* end confdefs.h. */
15661
15662int
15663main ()
15664{
15665#ifndef __POWERPC__
15666 choke me for lack of PowerPC
15667#endif
15668
15669 ;
15670 return 0;
15671}
15672_ACEOF
15673rm -f conftest.$ac_objext
15674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675 (eval $ac_compile) 2>conftest.er1
15676 ac_status=$?
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
7067783d
PC
15682 { ac_try='test -z "$ac_cxx_werror_flag"
15683 || test ! -s conftest.err'
4d7ec9f1
DE
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; } &&
15689 { ac_try='test -s conftest.$ac_objext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 echo "$as_me:$LINENO: result: yes" >&5
15696echo "${ECHO_T}yes" >&6
15697else
15698 echo "$as_me: failed program was:" >&5
15699sed 's/^/| /' conftest.$ac_ext >&5
15700
15701echo "$as_me:$LINENO: result: no" >&5
15702echo "${ECHO_T}no" >&6
15703 cat >>confdefs.h <<\_ACEOF
15704#define __POWERPC__ 1
15705_ACEOF
15706
15707
15708fi
15709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15710 ;;
15711esac
15712
15713case "${host}" in
15714 *-*-darwin* )
4d7ec9f1
DE
15715 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15716echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15717 cat >conftest.$ac_ext <<_ACEOF
15718/* confdefs.h. */
15719_ACEOF
15720cat confdefs.h >>conftest.$ac_ext
15721cat >>conftest.$ac_ext <<_ACEOF
15722/* end confdefs.h. */
15723#include <CoreFoundation/CFBase.h>
15724
15725int
15726main ()
15727{
15728
15729 ;
15730 return 0;
15731}
15732_ACEOF
15733rm -f conftest.$ac_objext
15734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15735 (eval $ac_compile) 2>conftest.er1
15736 ac_status=$?
15737 grep -v '^ *+' conftest.er1 >conftest.err
15738 rm -f conftest.er1
15739 cat conftest.err >&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
7067783d
PC
15742 { ac_try='test -z "$ac_cxx_werror_flag"
15743 || test ! -s conftest.err'
4d7ec9f1
DE
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; } &&
15749 { ac_try='test -s conftest.$ac_objext'
15750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751 (eval $ac_try) 2>&5
15752 ac_status=$?
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; }; then
15755 echo "$as_me:$LINENO: result: yes" >&5
15756echo "${ECHO_T}yes" >&6
15757else
15758 echo "$as_me: failed program was:" >&5
15759sed 's/^/| /' conftest.$ac_ext >&5
15760
15761echo "$as_me:$LINENO: result: no" >&5
15762echo "${ECHO_T}no" >&6
15763 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15764echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15765 cat >conftest.$ac_ext <<_ACEOF
15766/* confdefs.h. */
15767_ACEOF
15768cat confdefs.h >>conftest.$ac_ext
15769cat >>conftest.$ac_ext <<_ACEOF
15770/* end confdefs.h. */
15771#define __CF_USE_FRAMEWORK_INCLUDES__
15772#include <CoreFoundation/CFBase.h>
15773
15774int
15775main ()
15776{
15777
15778 ;
15779 return 0;
15780}
15781_ACEOF
15782rm -f conftest.$ac_objext
15783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15784 (eval $ac_compile) 2>conftest.er1
15785 ac_status=$?
15786 grep -v '^ *+' conftest.er1 >conftest.err
15787 rm -f conftest.er1
15788 cat conftest.err >&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
7067783d
PC
15791 { ac_try='test -z "$ac_cxx_werror_flag"
15792 || test ! -s conftest.err'
4d7ec9f1
DE
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try='test -s conftest.$ac_objext'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 echo "$as_me:$LINENO: result: yes" >&5
15805echo "${ECHO_T}yes" >&6
c92ad099 15806 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15807else
15808 echo "$as_me: failed program was:" >&5
15809sed 's/^/| /' conftest.$ac_ext >&5
15810
15811{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15812See \`config.log' for more details." >&5
15813echo "$as_me: error: no. CoreFoundation not available.
15814See \`config.log' for more details." >&2;}
15815 { (exit 1); exit 1; }; }
15816
15817fi
15818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15819
15820
15821fi
15822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15823 ;;
15824esac
15825
a848cd7e
SC
15826case "${host}" in
15827 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15828 ac_ext=c
15829ac_cpp='$CPP $CPPFLAGS'
15830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15832ac_compiler_gnu=$ac_cv_c_compiler_gnu
15833
15834 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15835 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15836echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15837if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15839else
15840 ac_check_lib_save_LIBS=$LIBS
15841LIBS="-lcExt $LIBS"
15842cat >conftest.$ac_ext <<_ACEOF
15843/* confdefs.h. */
15844_ACEOF
15845cat confdefs.h >>conftest.$ac_ext
15846cat >>conftest.$ac_ext <<_ACEOF
15847/* end confdefs.h. */
15848
15849/* Override any gcc2 internal prototype to avoid an error. */
15850#ifdef __cplusplus
15851extern "C"
15852#endif
15853/* We use char because int might match the return type of a gcc2
15854 builtin and then its argument prototype would still apply. */
15855char drand48 ();
15856int
15857main ()
15858{
15859drand48 ();
15860 ;
15861 return 0;
15862}
15863_ACEOF
15864rm -f conftest.$ac_objext conftest$ac_exeext
15865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15866 (eval $ac_link) 2>conftest.er1
a848cd7e 15867 ac_status=$?
ac1cb8d3
VS
15868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
a848cd7e
SC
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
7067783d
PC
15873 { ac_try='test -z "$ac_c_werror_flag"
15874 || test ! -s conftest.err'
ac1cb8d3
VS
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15883 ac_status=$?
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15886 ac_cv_lib_cExt_drand48=yes
15887else
15888 echo "$as_me: failed program was:" >&5
15889sed 's/^/| /' conftest.$ac_ext >&5
15890
15891ac_cv_lib_cExt_drand48=no
15892fi
ac1cb8d3
VS
15893rm -f conftest.err conftest.$ac_objext \
15894 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15895LIBS=$ac_check_lib_save_LIBS
15896fi
15897echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15898echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15899if test $ac_cv_lib_cExt_drand48 = yes; then
15900 LIBS="$LIBS -lcExt"
15901fi
15902
15903 else
15904 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15905 fi
69120ee4
VZ
15906 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15907echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15908if test "${wx_cv_gccversion+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910else
15911
391a765e
VS
15912 if test "$cross_compiling" = yes; then
15913 wx_cv_gccversion="EMX2"
15914
15915else
15916 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15917/* confdefs.h. */
15918_ACEOF
15919cat confdefs.h >>conftest.$ac_ext
15920cat >>conftest.$ac_ext <<_ACEOF
15921/* end confdefs.h. */
15922
391a765e 15923 #include <stdio.h>
a848cd7e 15924
391a765e
VS
15925 int main()
15926 {
15927 FILE *f=fopen("conftestval", "w");
15928 if (!f) exit(1);
15929 fprintf(f,
a848cd7e 15930 #if (__GNUC__ < 3)
391a765e
VS
15931 "EMX2"
15932 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15933 "EMX3"
15934 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15935 "Innotek5"
15936 #else
15937 "Innotek6"
a848cd7e 15938 #endif
5039a2df 15939 );
391a765e
VS
15940 exit(0);
15941 }
a848cd7e 15942
a848cd7e 15943_ACEOF
391a765e
VS
15944rm -f conftest$ac_exeext
15945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15946 (eval $ac_link) 2>&5
ac1cb8d3
VS
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
391a765e 15955 wx_cv_gccversion=`cat conftestval`
a848cd7e 15956else
391a765e
VS
15957 echo "$as_me: program exited with status $ac_status" >&5
15958echo "$as_me: failed program was:" >&5
a848cd7e
SC
15959sed 's/^/| /' conftest.$ac_ext >&5
15960
391a765e
VS
15961( exit $ac_status )
15962wx_cv_gccversion="EMX2"
a848cd7e 15963fi
391a765e 15964rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15965fi
a848cd7e
SC
15966
15967fi
15968echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15969echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15970 ac_ext=cc
15971ac_cpp='$CXXCPP $CPPFLAGS'
15972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15975
391a765e 15976 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15977 LIBS="$LIBS -lstdcpp"
15978 LDFLAGS="$LDFLAGS -Zsysv-signals"
15979 else
391a765e 15980 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15981 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15982 LDFLAGS="$LDFLAGS -Zsysv-signals"
15983 else
15984 LIBS="$LIBS -lstdc++"
15985 fi
15986 fi
94acd38e
DE
15987 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15988 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15989echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15990 wxUSE_OMF=yes
2da0c077 15991 enable_omf=yes
a848cd7e
SC
15992 fi
15993 ;;
15994 *)
15995
95986553 15996 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15997echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15998if test "${ac_cv_string_strcasecmp+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16000else
16001
16002 cat >conftest.$ac_ext <<_ACEOF
16003/* confdefs.h. */
16004_ACEOF
16005cat confdefs.h >>conftest.$ac_ext
16006cat >>conftest.$ac_ext <<_ACEOF
16007/* end confdefs.h. */
16008
16009 #include <string.h>
16010
16011int
16012main ()
16013{
16014
16015 strcasecmp("foo", "bar");
16016
16017 ;
16018 return 0;
16019}
16020_ACEOF
16021rm -f conftest.$ac_objext conftest$ac_exeext
16022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16023 (eval $ac_link) 2>conftest.er1
a848cd7e 16024 ac_status=$?
ac1cb8d3
VS
16025 grep -v '^ *+' conftest.er1 >conftest.err
16026 rm -f conftest.er1
16027 cat conftest.err >&5
a848cd7e
SC
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); } &&
7067783d
PC
16030 { ac_try='test -z "$ac_cxx_werror_flag"
16031 || test ! -s conftest.err'
ac1cb8d3
VS
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16034 ac_status=$?
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; } &&
16037 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16040 ac_status=$?
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }; then
16043 ac_cv_string_strcasecmp=yes
16044else
16045 echo "$as_me: failed program was:" >&5
16046sed 's/^/| /' conftest.$ac_ext >&5
16047
16048ac_cv_string_strcasecmp=no
16049
16050fi
ac1cb8d3
VS
16051rm -f conftest.err conftest.$ac_objext \
16052 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16053
16054fi
16055echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16056echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16057
16058 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16059 cat >>confdefs.h <<\_ACEOF
16060#define HAVE_STRCASECMP_IN_STRING_H 1
16061_ACEOF
16062
16063 else
16064 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16065echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16066if test "${ac_cv_strings_strcasecmp+set}" = set; then
16067 echo $ECHO_N "(cached) $ECHO_C" >&6
16068else
16069
16070 cat >conftest.$ac_ext <<_ACEOF
16071/* confdefs.h. */
16072_ACEOF
16073cat confdefs.h >>conftest.$ac_ext
16074cat >>conftest.$ac_ext <<_ACEOF
16075/* end confdefs.h. */
16076
16077 #include <strings.h>
16078
16079int
16080main ()
16081{
16082
16083 strcasecmp("foo", "bar");
16084
16085 ;
16086 return 0;
16087}
16088_ACEOF
16089rm -f conftest.$ac_objext conftest$ac_exeext
16090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16091 (eval $ac_link) 2>conftest.er1
a848cd7e 16092 ac_status=$?
ac1cb8d3
VS
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
a848cd7e
SC
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
7067783d
PC
16098 { ac_try='test -z "$ac_cxx_werror_flag"
16099 || test ! -s conftest.err'
ac1cb8d3
VS
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; } &&
16105 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 ac_cv_strings_strcasecmp=yes
16112else
16113 echo "$as_me: failed program was:" >&5
16114sed 's/^/| /' conftest.$ac_ext >&5
16115
16116ac_cv_strings_strcasecmp=no
16117
16118fi
ac1cb8d3
VS
16119rm -f conftest.err conftest.$ac_objext \
16120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16121
16122fi
16123echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16124echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16125
0c3c69fc 16126 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
16127 cat >>confdefs.h <<\_ACEOF
16128#define HAVE_STRCASECMP_IN_STRINGS_H 1
16129_ACEOF
16130
16131 else
16132 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16133echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16134 { (exit 1); exit 1; }; }
16135 fi
16136 fi
16137
a848cd7e
SC
16138 ;;
16139esac
16140
16141
5d7b7554
VZ
16142ac_ext=cc
16143ac_cpp='$CXXCPP $CPPFLAGS'
16144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16147echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16148echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16149if test -z "$CXXCPP"; then
16150 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16152else
16153 # Double quotes because CXXCPP needs to be expanded
16154 for CXXCPP in "$CXX -E" "/lib/cpp"
16155 do
16156 ac_preproc_ok=false
16157for ac_cxx_preproc_warn_flag in '' yes
16158do
16159 # Use a header file that comes with gcc, so configuring glibc
16160 # with a fresh cross-compiler works.
16161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16162 # <limits.h> exists even on freestanding compilers.
16163 # On the NeXT, cc -E runs the code through the compiler's parser,
16164 # not just through cpp. "Syntax error" is here to catch this case.
16165 cat >conftest.$ac_ext <<_ACEOF
16166/* confdefs.h. */
16167_ACEOF
16168cat confdefs.h >>conftest.$ac_ext
16169cat >>conftest.$ac_ext <<_ACEOF
16170/* end confdefs.h. */
16171#ifdef __STDC__
16172# include <limits.h>
16173#else
16174# include <assert.h>
16175#endif
16176 Syntax error
16177_ACEOF
16178if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16180 ac_status=$?
16181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } >/dev/null; then
16186 if test -s conftest.err; then
16187 ac_cpp_err=$ac_cxx_preproc_warn_flag
16188 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16189 else
16190 ac_cpp_err=
16191 fi
16192else
16193 ac_cpp_err=yes
16194fi
16195if test -z "$ac_cpp_err"; then
16196 :
16197else
16198 echo "$as_me: failed program was:" >&5
16199sed 's/^/| /' conftest.$ac_ext >&5
16200
16201 # Broken: fails on valid input.
16202continue
16203fi
16204rm -f conftest.err conftest.$ac_ext
16205
16206 # OK, works on sane cases. Now check whether non-existent headers
16207 # can be detected and how.
16208 cat >conftest.$ac_ext <<_ACEOF
16209/* confdefs.h. */
16210_ACEOF
16211cat confdefs.h >>conftest.$ac_ext
16212cat >>conftest.$ac_ext <<_ACEOF
16213/* end confdefs.h. */
16214#include <ac_nonexistent.h>
16215_ACEOF
16216if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16218 ac_status=$?
16219 grep -v '^ *+' conftest.er1 >conftest.err
16220 rm -f conftest.er1
16221 cat conftest.err >&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } >/dev/null; then
16224 if test -s conftest.err; then
16225 ac_cpp_err=$ac_cxx_preproc_warn_flag
16226 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16227 else
16228 ac_cpp_err=
16229 fi
16230else
16231 ac_cpp_err=yes
16232fi
16233if test -z "$ac_cpp_err"; then
16234 # Broken: success on invalid input.
16235continue
16236else
16237 echo "$as_me: failed program was:" >&5
16238sed 's/^/| /' conftest.$ac_ext >&5
16239
16240 # Passes both tests.
16241ac_preproc_ok=:
16242break
16243fi
16244rm -f conftest.err conftest.$ac_ext
16245
16246done
16247# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16248rm -f conftest.err conftest.$ac_ext
16249if $ac_preproc_ok; then
16250 break
16251fi
16252
16253 done
16254 ac_cv_prog_CXXCPP=$CXXCPP
16255
16256fi
16257 CXXCPP=$ac_cv_prog_CXXCPP
16258else
16259 ac_cv_prog_CXXCPP=$CXXCPP
16260fi
16261echo "$as_me:$LINENO: result: $CXXCPP" >&5
16262echo "${ECHO_T}$CXXCPP" >&6
16263ac_preproc_ok=false
16264for ac_cxx_preproc_warn_flag in '' yes
16265do
16266 # Use a header file that comes with gcc, so configuring glibc
16267 # with a fresh cross-compiler works.
16268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16269 # <limits.h> exists even on freestanding compilers.
16270 # On the NeXT, cc -E runs the code through the compiler's parser,
16271 # not just through cpp. "Syntax error" is here to catch this case.
16272 cat >conftest.$ac_ext <<_ACEOF
16273/* confdefs.h. */
16274_ACEOF
16275cat confdefs.h >>conftest.$ac_ext
16276cat >>conftest.$ac_ext <<_ACEOF
16277/* end confdefs.h. */
16278#ifdef __STDC__
16279# include <limits.h>
16280#else
16281# include <assert.h>
16282#endif
16283 Syntax error
16284_ACEOF
16285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16287 ac_status=$?
16288 grep -v '^ *+' conftest.er1 >conftest.err
16289 rm -f conftest.er1
16290 cat conftest.err >&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } >/dev/null; then
16293 if test -s conftest.err; then
16294 ac_cpp_err=$ac_cxx_preproc_warn_flag
16295 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16296 else
16297 ac_cpp_err=
16298 fi
16299else
16300 ac_cpp_err=yes
16301fi
16302if test -z "$ac_cpp_err"; then
16303 :
16304else
16305 echo "$as_me: failed program was:" >&5
16306sed 's/^/| /' conftest.$ac_ext >&5
16307
16308 # Broken: fails on valid input.
16309continue
16310fi
16311rm -f conftest.err conftest.$ac_ext
16312
16313 # OK, works on sane cases. Now check whether non-existent headers
16314 # can be detected and how.
16315 cat >conftest.$ac_ext <<_ACEOF
16316/* confdefs.h. */
16317_ACEOF
16318cat confdefs.h >>conftest.$ac_ext
16319cat >>conftest.$ac_ext <<_ACEOF
16320/* end confdefs.h. */
16321#include <ac_nonexistent.h>
16322_ACEOF
16323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16325 ac_status=$?
16326 grep -v '^ *+' conftest.er1 >conftest.err
16327 rm -f conftest.er1
16328 cat conftest.err >&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } >/dev/null; then
16331 if test -s conftest.err; then
16332 ac_cpp_err=$ac_cxx_preproc_warn_flag
16333 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16334 else
16335 ac_cpp_err=
16336 fi
16337else
16338 ac_cpp_err=yes
16339fi
16340if test -z "$ac_cpp_err"; then
16341 # Broken: success on invalid input.
16342continue
16343else
16344 echo "$as_me: failed program was:" >&5
16345sed 's/^/| /' conftest.$ac_ext >&5
16346
16347 # Passes both tests.
16348ac_preproc_ok=:
16349break
16350fi
16351rm -f conftest.err conftest.$ac_ext
16352
16353done
16354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16355rm -f conftest.err conftest.$ac_ext
16356if $ac_preproc_ok; then
16357 :
16358else
16359 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16360See \`config.log' for more details." >&5
16361echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16362See \`config.log' for more details." >&2;}
16363 { (exit 1); exit 1; }; }
16364fi
16365
16366ac_ext=cc
16367ac_cpp='$CXXCPP $CPPFLAGS'
16368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16371
16372
a848cd7e
SC
16373echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16374echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16375if test "${ac_cv_header_stdc+set}" = set; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16377else
16378 cat >conftest.$ac_ext <<_ACEOF
16379/* confdefs.h. */
16380_ACEOF
16381cat confdefs.h >>conftest.$ac_ext
16382cat >>conftest.$ac_ext <<_ACEOF
16383/* end confdefs.h. */
16384#include <stdlib.h>
16385#include <stdarg.h>
16386#include <string.h>
16387#include <float.h>
16388
16389int
16390main ()
16391{
16392
16393 ;
16394 return 0;
16395}
16396_ACEOF
16397rm -f conftest.$ac_objext
16398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16399 (eval $ac_compile) 2>conftest.er1
a848cd7e 16400 ac_status=$?
ac1cb8d3
VS
16401 grep -v '^ *+' conftest.er1 >conftest.err
16402 rm -f conftest.er1
16403 cat conftest.err >&5
a848cd7e
SC
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } &&
7067783d
PC
16406 { ac_try='test -z "$ac_cxx_werror_flag"
16407 || test ! -s conftest.err'
ac1cb8d3
VS
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; } &&
16413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; }; then
16419 ac_cv_header_stdc=yes
16420else
16421 echo "$as_me: failed program was:" >&5
16422sed 's/^/| /' conftest.$ac_ext >&5
16423
16424ac_cv_header_stdc=no
16425fi
ac1cb8d3 16426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16427
16428if test $ac_cv_header_stdc = yes; then
16429 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16430 cat >conftest.$ac_ext <<_ACEOF
16431/* confdefs.h. */
16432_ACEOF
16433cat confdefs.h >>conftest.$ac_ext
16434cat >>conftest.$ac_ext <<_ACEOF
16435/* end confdefs.h. */
16436#include <string.h>
16437
16438_ACEOF
16439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16440 $EGREP "memchr" >/dev/null 2>&1; then
16441 :
16442else
16443 ac_cv_header_stdc=no
16444fi
16445rm -f conftest*
16446
16447fi
16448
16449if test $ac_cv_header_stdc = yes; then
16450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16451 cat >conftest.$ac_ext <<_ACEOF
16452/* confdefs.h. */
16453_ACEOF
16454cat confdefs.h >>conftest.$ac_ext
16455cat >>conftest.$ac_ext <<_ACEOF
16456/* end confdefs.h. */
16457#include <stdlib.h>
16458
16459_ACEOF
16460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16461 $EGREP "free" >/dev/null 2>&1; then
16462 :
16463else
16464 ac_cv_header_stdc=no
16465fi
16466rm -f conftest*
16467
16468fi
16469
16470if test $ac_cv_header_stdc = yes; then
16471 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16472 if test "$cross_compiling" = yes; then
16473 :
16474else
16475 cat >conftest.$ac_ext <<_ACEOF
16476/* confdefs.h. */
16477_ACEOF
16478cat confdefs.h >>conftest.$ac_ext
16479cat >>conftest.$ac_ext <<_ACEOF
16480/* end confdefs.h. */
16481#include <ctype.h>
16482#if ((' ' & 0x0FF) == 0x020)
16483# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16484# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16485#else
16486# define ISLOWER(c) \
ac1cb8d3
VS
16487 (('a' <= (c) && (c) <= 'i') \
16488 || ('j' <= (c) && (c) <= 'r') \
16489 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16490# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16491#endif
16492
16493#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16494int
16495main ()
16496{
16497 int i;
16498 for (i = 0; i < 256; i++)
16499 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16500 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16501 exit(2);
16502 exit (0);
16503}
16504_ACEOF
16505rm -f conftest$ac_exeext
16506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16507 (eval $ac_link) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16513 ac_status=$?
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; }; then
16516 :
16517else
16518 echo "$as_me: program exited with status $ac_status" >&5
16519echo "$as_me: failed program was:" >&5
16520sed 's/^/| /' conftest.$ac_ext >&5
16521
16522( exit $ac_status )
16523ac_cv_header_stdc=no
16524fi
ac1cb8d3 16525rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16526fi
16527fi
16528fi
16529echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16530echo "${ECHO_T}$ac_cv_header_stdc" >&6
16531if test $ac_cv_header_stdc = yes; then
16532
16533cat >>confdefs.h <<\_ACEOF
16534#define STDC_HEADERS 1
16535_ACEOF
16536
16537fi
16538
16539# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16550 inttypes.h stdint.h unistd.h
a848cd7e
SC
16551do
16552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16553echo "$as_me:$LINENO: checking for $ac_header" >&5
16554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16555if eval "test \"\${$as_ac_Header+set}\" = set"; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16557else
16558 cat >conftest.$ac_ext <<_ACEOF
16559/* confdefs.h. */
16560_ACEOF
16561cat confdefs.h >>conftest.$ac_ext
16562cat >>conftest.$ac_ext <<_ACEOF
16563/* end confdefs.h. */
16564$ac_includes_default
16565
16566#include <$ac_header>
16567_ACEOF
16568rm -f conftest.$ac_objext
16569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16570 (eval $ac_compile) 2>conftest.er1
a848cd7e 16571 ac_status=$?
ac1cb8d3
VS
16572 grep -v '^ *+' conftest.er1 >conftest.err
16573 rm -f conftest.er1
16574 cat conftest.err >&5
a848cd7e
SC
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } &&
7067783d
PC
16577 { ac_try='test -z "$ac_cxx_werror_flag"
16578 || test ! -s conftest.err'
ac1cb8d3
VS
16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; } &&
16584 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590 eval "$as_ac_Header=yes"
16591else
16592 echo "$as_me: failed program was:" >&5
16593sed 's/^/| /' conftest.$ac_ext >&5
16594
16595eval "$as_ac_Header=no"
16596fi
ac1cb8d3 16597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16598fi
16599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16601if test `eval echo '${'$as_ac_Header'}'` = yes; then
16602 cat >>confdefs.h <<_ACEOF
16603#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16604_ACEOF
16605
16606fi
16607
16608done
16609
16610
16611
16612for ac_header in stdlib.h
16613do
16614as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16615if eval "test \"\${$as_ac_Header+set}\" = set"; then
16616 echo "$as_me:$LINENO: checking for $ac_header" >&5
16617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16618if eval "test \"\${$as_ac_Header+set}\" = set"; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16620fi
16621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16623else
16624 # Is the header compilable?
16625echo "$as_me:$LINENO: checking $ac_header usability" >&5
16626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16627cat >conftest.$ac_ext <<_ACEOF
16628/* confdefs.h. */
16629_ACEOF
16630cat confdefs.h >>conftest.$ac_ext
16631cat >>conftest.$ac_ext <<_ACEOF
16632/* end confdefs.h. */
16633$ac_includes_default
16634#include <$ac_header>
16635_ACEOF
16636rm -f conftest.$ac_objext
16637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16638 (eval $ac_compile) 2>conftest.er1
a848cd7e 16639 ac_status=$?
ac1cb8d3
VS
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
a848cd7e
SC
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
7067783d
PC
16645 { ac_try='test -z "$ac_cxx_werror_flag"
16646 || test ! -s conftest.err'
ac1cb8d3
VS
16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; } &&
16652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658 ac_header_compiler=yes
16659else
16660 echo "$as_me: failed program was:" >&5
16661sed 's/^/| /' conftest.$ac_ext >&5
16662
16663ac_header_compiler=no
16664fi
ac1cb8d3 16665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16666echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16667echo "${ECHO_T}$ac_header_compiler" >&6
16668
16669# Is the header present?
16670echo "$as_me:$LINENO: checking $ac_header presence" >&5
16671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16672cat >conftest.$ac_ext <<_ACEOF
16673/* confdefs.h. */
16674_ACEOF
16675cat confdefs.h >>conftest.$ac_ext
16676cat >>conftest.$ac_ext <<_ACEOF
16677/* end confdefs.h. */
16678#include <$ac_header>
16679_ACEOF
16680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16682 ac_status=$?
16683 grep -v '^ *+' conftest.er1 >conftest.err
16684 rm -f conftest.er1
16685 cat conftest.err >&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } >/dev/null; then
16688 if test -s conftest.err; then
5d7b7554
VZ
16689 ac_cpp_err=$ac_cxx_preproc_warn_flag
16690 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16691 else
16692 ac_cpp_err=
16693 fi
16694else
16695 ac_cpp_err=yes
16696fi
16697if test -z "$ac_cpp_err"; then
16698 ac_header_preproc=yes
16699else
16700 echo "$as_me: failed program was:" >&5
16701sed 's/^/| /' conftest.$ac_ext >&5
16702
16703 ac_header_preproc=no
16704fi
16705rm -f conftest.err conftest.$ac_ext
16706echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16707echo "${ECHO_T}$ac_header_preproc" >&6
16708
16709# So? What about this header?
5d7b7554 16710case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16711 yes:no: )
a848cd7e
SC
16712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16716 ac_header_preproc=yes
a848cd7e 16717 ;;
ac1cb8d3 16718 no:yes:* )
a848cd7e
SC
16719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16731 (
16732 cat <<\_ASBOX
ac1cb8d3
VS
16733## ----------------------------------------- ##
16734## Report this to wx-dev@lists.wxwidgets.org ##
16735## ----------------------------------------- ##
a848cd7e
SC
16736_ASBOX
16737 ) |
16738 sed "s/^/$as_me: WARNING: /" >&2
16739 ;;
16740esac
16741echo "$as_me:$LINENO: checking for $ac_header" >&5
16742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16743if eval "test \"\${$as_ac_Header+set}\" = set"; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16745else
ac1cb8d3 16746 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16747fi
16748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16750
16751fi
16752if test `eval echo '${'$as_ac_Header'}'` = yes; then
16753 cat >>confdefs.h <<_ACEOF
16754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16755_ACEOF
16756
16757fi
16758
16759done
16760
16761
16762for ac_header in malloc.h
16763do
16764as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16765if eval "test \"\${$as_ac_Header+set}\" = set"; then
16766 echo "$as_me:$LINENO: checking for $ac_header" >&5
16767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16768if eval "test \"\${$as_ac_Header+set}\" = set"; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16770fi
16771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16773else
16774 # Is the header compilable?
16775echo "$as_me:$LINENO: checking $ac_header usability" >&5
16776echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16777cat >conftest.$ac_ext <<_ACEOF
16778/* confdefs.h. */
16779_ACEOF
16780cat confdefs.h >>conftest.$ac_ext
16781cat >>conftest.$ac_ext <<_ACEOF
16782/* end confdefs.h. */
16783$ac_includes_default
16784#include <$ac_header>
16785_ACEOF
16786rm -f conftest.$ac_objext
16787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16788 (eval $ac_compile) 2>conftest.er1
a848cd7e 16789 ac_status=$?
ac1cb8d3
VS
16790 grep -v '^ *+' conftest.er1 >conftest.err
16791 rm -f conftest.er1
16792 cat conftest.err >&5
a848cd7e
SC
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } &&
7067783d
PC
16795 { ac_try='test -z "$ac_cxx_werror_flag"
16796 || test ! -s conftest.err'
ac1cb8d3
VS
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; } &&
16802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
16808 ac_header_compiler=yes
16809else
16810 echo "$as_me: failed program was:" >&5
16811sed 's/^/| /' conftest.$ac_ext >&5
16812
16813ac_header_compiler=no
16814fi
ac1cb8d3 16815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16817echo "${ECHO_T}$ac_header_compiler" >&6
16818
16819# Is the header present?
16820echo "$as_me:$LINENO: checking $ac_header presence" >&5
16821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16822cat >conftest.$ac_ext <<_ACEOF
16823/* confdefs.h. */
16824_ACEOF
16825cat confdefs.h >>conftest.$ac_ext
16826cat >>conftest.$ac_ext <<_ACEOF
16827/* end confdefs.h. */
16828#include <$ac_header>
16829_ACEOF
16830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16832 ac_status=$?
16833 grep -v '^ *+' conftest.er1 >conftest.err
16834 rm -f conftest.er1
16835 cat conftest.err >&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } >/dev/null; then
16838 if test -s conftest.err; then
5d7b7554
VZ
16839 ac_cpp_err=$ac_cxx_preproc_warn_flag
16840 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16841 else
16842 ac_cpp_err=
16843 fi
16844else
16845 ac_cpp_err=yes
16846fi
16847if test -z "$ac_cpp_err"; then
16848 ac_header_preproc=yes
16849else
16850 echo "$as_me: failed program was:" >&5
16851sed 's/^/| /' conftest.$ac_ext >&5
16852
16853 ac_header_preproc=no
16854fi
16855rm -f conftest.err conftest.$ac_ext
16856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16857echo "${ECHO_T}$ac_header_preproc" >&6
16858
16859# So? What about this header?
5d7b7554 16860case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16861 yes:no: )
a848cd7e
SC
16862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16866 ac_header_preproc=yes
a848cd7e 16867 ;;
ac1cb8d3 16868 no:yes:* )
a848cd7e
SC
16869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16876echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16881 (
16882 cat <<\_ASBOX
ac1cb8d3
VS
16883## ----------------------------------------- ##
16884## Report this to wx-dev@lists.wxwidgets.org ##
16885## ----------------------------------------- ##
a848cd7e
SC
16886_ASBOX
16887 ) |
16888 sed "s/^/$as_me: WARNING: /" >&2
16889 ;;
16890esac
16891echo "$as_me:$LINENO: checking for $ac_header" >&5
16892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16893if eval "test \"\${$as_ac_Header+set}\" = set"; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16895else
ac1cb8d3 16896 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16897fi
16898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16900
16901fi
16902if test `eval echo '${'$as_ac_Header'}'` = yes; then
16903 cat >>confdefs.h <<_ACEOF
16904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16905_ACEOF
16906
16907fi
16908
16909done
16910
16911
16912for ac_header in unistd.h
16913do
16914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16915if eval "test \"\${$as_ac_Header+set}\" = set"; then
16916 echo "$as_me:$LINENO: checking for $ac_header" >&5
16917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16918if eval "test \"\${$as_ac_Header+set}\" = set"; then
16919 echo $ECHO_N "(cached) $ECHO_C" >&6
16920fi
16921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16923else
16924 # Is the header compilable?
16925echo "$as_me:$LINENO: checking $ac_header usability" >&5
16926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16927cat >conftest.$ac_ext <<_ACEOF
16928/* confdefs.h. */
16929_ACEOF
16930cat confdefs.h >>conftest.$ac_ext
16931cat >>conftest.$ac_ext <<_ACEOF
16932/* end confdefs.h. */
16933$ac_includes_default
16934#include <$ac_header>
16935_ACEOF
16936rm -f conftest.$ac_objext
16937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16938 (eval $ac_compile) 2>conftest.er1
a848cd7e 16939 ac_status=$?
ac1cb8d3
VS
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
a848cd7e
SC
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
7067783d
PC
16945 { ac_try='test -z "$ac_cxx_werror_flag"
16946 || test ! -s conftest.err'
ac1cb8d3
VS
16947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16955 ac_status=$?
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; }; then
16958 ac_header_compiler=yes
16959else
16960 echo "$as_me: failed program was:" >&5
16961sed 's/^/| /' conftest.$ac_ext >&5
16962
16963ac_header_compiler=no
16964fi
ac1cb8d3 16965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16966echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16967echo "${ECHO_T}$ac_header_compiler" >&6
16968
16969# Is the header present?
16970echo "$as_me:$LINENO: checking $ac_header presence" >&5
16971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16972cat >conftest.$ac_ext <<_ACEOF
16973/* confdefs.h. */
16974_ACEOF
16975cat confdefs.h >>conftest.$ac_ext
16976cat >>conftest.$ac_ext <<_ACEOF
16977/* end confdefs.h. */
16978#include <$ac_header>
16979_ACEOF
16980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16982 ac_status=$?
16983 grep -v '^ *+' conftest.er1 >conftest.err
16984 rm -f conftest.er1
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } >/dev/null; then
16988 if test -s conftest.err; then
5d7b7554
VZ
16989 ac_cpp_err=$ac_cxx_preproc_warn_flag
16990 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16991 else
16992 ac_cpp_err=
16993 fi
16994else
16995 ac_cpp_err=yes
16996fi
16997if test -z "$ac_cpp_err"; then
16998 ac_header_preproc=yes
16999else
17000 echo "$as_me: failed program was:" >&5
17001sed 's/^/| /' conftest.$ac_ext >&5
17002
17003 ac_header_preproc=no
17004fi
17005rm -f conftest.err conftest.$ac_ext
17006echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17007echo "${ECHO_T}$ac_header_preproc" >&6
17008
17009# So? What about this header?
5d7b7554 17010case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17011 yes:no: )
a848cd7e
SC
17012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17013echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17015echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17016 ac_header_preproc=yes
a848cd7e 17017 ;;
ac1cb8d3 17018 no:yes:* )
a848cd7e
SC
17019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17020echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17022echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17024echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17026echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17030echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17031 (
17032 cat <<\_ASBOX
ac1cb8d3
VS
17033## ----------------------------------------- ##
17034## Report this to wx-dev@lists.wxwidgets.org ##
17035## ----------------------------------------- ##
a848cd7e
SC
17036_ASBOX
17037 ) |
17038 sed "s/^/$as_me: WARNING: /" >&2
17039 ;;
17040esac
17041echo "$as_me:$LINENO: checking for $ac_header" >&5
17042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17043if eval "test \"\${$as_ac_Header+set}\" = set"; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17045else
ac1cb8d3 17046 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17047fi
17048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17050
17051fi
17052if test `eval echo '${'$as_ac_Header'}'` = yes; then
17053 cat >>confdefs.h <<_ACEOF
17054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17055_ACEOF
17056
17057fi
17058
17059done
17060
17061
17062for ac_header in wchar.h
17063do
17064as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17065if eval "test \"\${$as_ac_Header+set}\" = set"; then
17066 echo "$as_me:$LINENO: checking for $ac_header" >&5
17067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17068if eval "test \"\${$as_ac_Header+set}\" = set"; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17070fi
17071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17073else
17074 # Is the header compilable?
17075echo "$as_me:$LINENO: checking $ac_header usability" >&5
17076echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17077cat >conftest.$ac_ext <<_ACEOF
17078/* confdefs.h. */
17079_ACEOF
17080cat confdefs.h >>conftest.$ac_ext
17081cat >>conftest.$ac_ext <<_ACEOF
17082/* end confdefs.h. */
17083$ac_includes_default
17084#include <$ac_header>
17085_ACEOF
17086rm -f conftest.$ac_objext
17087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17088 (eval $ac_compile) 2>conftest.er1
a848cd7e 17089 ac_status=$?
ac1cb8d3
VS
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
a848cd7e
SC
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
7067783d
PC
17095 { ac_try='test -z "$ac_cxx_werror_flag"
17096 || test ! -s conftest.err'
ac1cb8d3
VS
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; } &&
17102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; }; then
17108 ac_header_compiler=yes
17109else
17110 echo "$as_me: failed program was:" >&5
17111sed 's/^/| /' conftest.$ac_ext >&5
17112
17113ac_header_compiler=no
17114fi
ac1cb8d3 17115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17116echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17117echo "${ECHO_T}$ac_header_compiler" >&6
17118
17119# Is the header present?
17120echo "$as_me:$LINENO: checking $ac_header presence" >&5
17121echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17122cat >conftest.$ac_ext <<_ACEOF
17123/* confdefs.h. */
17124_ACEOF
17125cat confdefs.h >>conftest.$ac_ext
17126cat >>conftest.$ac_ext <<_ACEOF
17127/* end confdefs.h. */
17128#include <$ac_header>
17129_ACEOF
17130if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17132 ac_status=$?
17133 grep -v '^ *+' conftest.er1 >conftest.err
17134 rm -f conftest.er1
17135 cat conftest.err >&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } >/dev/null; then
17138 if test -s conftest.err; then
5d7b7554
VZ
17139 ac_cpp_err=$ac_cxx_preproc_warn_flag
17140 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17141 else
17142 ac_cpp_err=
17143 fi
17144else
17145 ac_cpp_err=yes
17146fi
17147if test -z "$ac_cpp_err"; then
17148 ac_header_preproc=yes
17149else
17150 echo "$as_me: failed program was:" >&5
17151sed 's/^/| /' conftest.$ac_ext >&5
17152
17153 ac_header_preproc=no
17154fi
17155rm -f conftest.err conftest.$ac_ext
17156echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17157echo "${ECHO_T}$ac_header_preproc" >&6
17158
17159# So? What about this header?
5d7b7554 17160case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17161 yes:no: )
a848cd7e
SC
17162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17163echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17165echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17166 ac_header_preproc=yes
a848cd7e 17167 ;;
ac1cb8d3 17168 no:yes:* )
a848cd7e
SC
17169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17170echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17172echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17174echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17176echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17178echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17180echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17181 (
17182 cat <<\_ASBOX
ac1cb8d3
VS
17183## ----------------------------------------- ##
17184## Report this to wx-dev@lists.wxwidgets.org ##
17185## ----------------------------------------- ##
a848cd7e
SC
17186_ASBOX
17187 ) |
17188 sed "s/^/$as_me: WARNING: /" >&2
17189 ;;
17190esac
17191echo "$as_me:$LINENO: checking for $ac_header" >&5
17192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17193if eval "test \"\${$as_ac_Header+set}\" = set"; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17195else
ac1cb8d3 17196 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17197fi
17198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17200
17201fi
17202if test `eval echo '${'$as_ac_Header'}'` = yes; then
17203 cat >>confdefs.h <<_ACEOF
17204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17205_ACEOF
17206
17207fi
17208
17209done
17210
17211
17212if test "$ac_cv_header_wchar_h" != "yes"; then
17213
17214for ac_header in wcstr.h
17215do
17216as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17217if eval "test \"\${$as_ac_Header+set}\" = set"; then
17218 echo "$as_me:$LINENO: checking for $ac_header" >&5
17219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17220if eval "test \"\${$as_ac_Header+set}\" = set"; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17222fi
17223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17224echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17225else
17226 # Is the header compilable?
17227echo "$as_me:$LINENO: checking $ac_header usability" >&5
17228echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17229cat >conftest.$ac_ext <<_ACEOF
17230/* confdefs.h. */
17231_ACEOF
17232cat confdefs.h >>conftest.$ac_ext
17233cat >>conftest.$ac_ext <<_ACEOF
17234/* end confdefs.h. */
17235$ac_includes_default
17236#include <$ac_header>
17237_ACEOF
17238rm -f conftest.$ac_objext
17239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17240 (eval $ac_compile) 2>conftest.er1
a848cd7e 17241 ac_status=$?
ac1cb8d3
VS
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
a848cd7e
SC
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
7067783d
PC
17247 { ac_try='test -z "$ac_cxx_werror_flag"
17248 || test ! -s conftest.err'
ac1cb8d3
VS
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17260 ac_header_compiler=yes
17261else
17262 echo "$as_me: failed program was:" >&5
17263sed 's/^/| /' conftest.$ac_ext >&5
17264
17265ac_header_compiler=no
17266fi
ac1cb8d3 17267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17268echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17269echo "${ECHO_T}$ac_header_compiler" >&6
17270
17271# Is the header present?
17272echo "$as_me:$LINENO: checking $ac_header presence" >&5
17273echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17274cat >conftest.$ac_ext <<_ACEOF
17275/* confdefs.h. */
17276_ACEOF
17277cat confdefs.h >>conftest.$ac_ext
17278cat >>conftest.$ac_ext <<_ACEOF
17279/* end confdefs.h. */
17280#include <$ac_header>
17281_ACEOF
17282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17284 ac_status=$?
17285 grep -v '^ *+' conftest.er1 >conftest.err
17286 rm -f conftest.er1
17287 cat conftest.err >&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } >/dev/null; then
17290 if test -s conftest.err; then
5d7b7554
VZ
17291 ac_cpp_err=$ac_cxx_preproc_warn_flag
17292 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17293 else
17294 ac_cpp_err=
17295 fi
17296else
17297 ac_cpp_err=yes
17298fi
17299if test -z "$ac_cpp_err"; then
17300 ac_header_preproc=yes
17301else
17302 echo "$as_me: failed program was:" >&5
17303sed 's/^/| /' conftest.$ac_ext >&5
17304
17305 ac_header_preproc=no
17306fi
17307rm -f conftest.err conftest.$ac_ext
17308echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17309echo "${ECHO_T}$ac_header_preproc" >&6
17310
17311# So? What about this header?
5d7b7554 17312case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17313 yes:no: )
a848cd7e
SC
17314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17315echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17317echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17318 ac_header_preproc=yes
a848cd7e 17319 ;;
ac1cb8d3 17320 no:yes:* )
a848cd7e
SC
17321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17322echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17324echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17326echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17328echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17330echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17332echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17333 (
17334 cat <<\_ASBOX
ac1cb8d3
VS
17335## ----------------------------------------- ##
17336## Report this to wx-dev@lists.wxwidgets.org ##
17337## ----------------------------------------- ##
a848cd7e
SC
17338_ASBOX
17339 ) |
17340 sed "s/^/$as_me: WARNING: /" >&2
17341 ;;
17342esac
17343echo "$as_me:$LINENO: checking for $ac_header" >&5
17344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17345if eval "test \"\${$as_ac_Header+set}\" = set"; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17347else
ac1cb8d3 17348 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17349fi
17350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17352
17353fi
17354if test `eval echo '${'$as_ac_Header'}'` = yes; then
17355 cat >>confdefs.h <<_ACEOF
17356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17357_ACEOF
17358
17359fi
17360
17361done
17362
17363fi
17364
17365
17366for ac_header in fnmatch.h
17367do
17368as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17369if eval "test \"\${$as_ac_Header+set}\" = set"; then
17370 echo "$as_me:$LINENO: checking for $ac_header" >&5
17371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17372if eval "test \"\${$as_ac_Header+set}\" = set"; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17374fi
17375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17376echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17377else
17378 # Is the header compilable?
17379echo "$as_me:$LINENO: checking $ac_header usability" >&5
17380echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17381cat >conftest.$ac_ext <<_ACEOF
17382/* confdefs.h. */
17383_ACEOF
17384cat confdefs.h >>conftest.$ac_ext
17385cat >>conftest.$ac_ext <<_ACEOF
17386/* end confdefs.h. */
17387$ac_includes_default
17388#include <$ac_header>
17389_ACEOF
17390rm -f conftest.$ac_objext
17391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17392 (eval $ac_compile) 2>conftest.er1
a848cd7e 17393 ac_status=$?
ac1cb8d3
VS
17394 grep -v '^ *+' conftest.er1 >conftest.err
17395 rm -f conftest.er1
17396 cat conftest.err >&5
a848cd7e
SC
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } &&
7067783d
PC
17399 { ac_try='test -z "$ac_cxx_werror_flag"
17400 || test ! -s conftest.err'
ac1cb8d3
VS
17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402 (eval $ac_try) 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; } &&
17406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17409 ac_status=$?
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412 ac_header_compiler=yes
17413else
17414 echo "$as_me: failed program was:" >&5
17415sed 's/^/| /' conftest.$ac_ext >&5
17416
17417ac_header_compiler=no
17418fi
ac1cb8d3 17419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17420echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17421echo "${ECHO_T}$ac_header_compiler" >&6
17422
17423# Is the header present?
17424echo "$as_me:$LINENO: checking $ac_header presence" >&5
17425echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17426cat >conftest.$ac_ext <<_ACEOF
17427/* confdefs.h. */
17428_ACEOF
17429cat confdefs.h >>conftest.$ac_ext
17430cat >>conftest.$ac_ext <<_ACEOF
17431/* end confdefs.h. */
17432#include <$ac_header>
17433_ACEOF
17434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17436 ac_status=$?
17437 grep -v '^ *+' conftest.er1 >conftest.err
17438 rm -f conftest.er1
17439 cat conftest.err >&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); } >/dev/null; then
17442 if test -s conftest.err; then
5d7b7554
VZ
17443 ac_cpp_err=$ac_cxx_preproc_warn_flag
17444 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17445 else
17446 ac_cpp_err=
17447 fi
17448else
17449 ac_cpp_err=yes
17450fi
17451if test -z "$ac_cpp_err"; then
17452 ac_header_preproc=yes
17453else
17454 echo "$as_me: failed program was:" >&5
17455sed 's/^/| /' conftest.$ac_ext >&5
17456
17457 ac_header_preproc=no
17458fi
17459rm -f conftest.err conftest.$ac_ext
17460echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17461echo "${ECHO_T}$ac_header_preproc" >&6
17462
17463# So? What about this header?
5d7b7554 17464case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17465 yes:no: )
a848cd7e
SC
17466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17470 ac_header_preproc=yes
a848cd7e 17471 ;;
ac1cb8d3 17472 no:yes:* )
a848cd7e
SC
17473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17485 (
17486 cat <<\_ASBOX
ac1cb8d3
VS
17487## ----------------------------------------- ##
17488## Report this to wx-dev@lists.wxwidgets.org ##
17489## ----------------------------------------- ##
a848cd7e
SC
17490_ASBOX
17491 ) |
17492 sed "s/^/$as_me: WARNING: /" >&2
17493 ;;
17494esac
17495echo "$as_me:$LINENO: checking for $ac_header" >&5
17496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17497if eval "test \"\${$as_ac_Header+set}\" = set"; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17499else
ac1cb8d3 17500 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17501fi
17502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17504
17505fi
17506if test `eval echo '${'$as_ac_Header'}'` = yes; then
17507 cat >>confdefs.h <<_ACEOF
17508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17509_ACEOF
17510
17511fi
17512
17513done
17514
17515
a848cd7e
SC
17516
17517for ac_header in langinfo.h
17518do
17519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17520if eval "test \"\${$as_ac_Header+set}\" = set"; then
17521 echo "$as_me:$LINENO: checking for $ac_header" >&5
17522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17523if eval "test \"\${$as_ac_Header+set}\" = set"; then
17524 echo $ECHO_N "(cached) $ECHO_C" >&6
17525fi
17526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17528else
17529 # Is the header compilable?
17530echo "$as_me:$LINENO: checking $ac_header usability" >&5
17531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17532cat >conftest.$ac_ext <<_ACEOF
17533/* confdefs.h. */
17534_ACEOF
17535cat confdefs.h >>conftest.$ac_ext
17536cat >>conftest.$ac_ext <<_ACEOF
17537/* end confdefs.h. */
17538$ac_includes_default
17539#include <$ac_header>
17540_ACEOF
17541rm -f conftest.$ac_objext
17542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17543 (eval $ac_compile) 2>conftest.er1
a848cd7e 17544 ac_status=$?
ac1cb8d3
VS
17545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
a848cd7e
SC
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
7067783d
PC
17550 { ac_try='test -z "$ac_cxx_werror_flag"
17551 || test ! -s conftest.err'
ac1cb8d3
VS
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 ac_header_compiler=yes
17564else
17565 echo "$as_me: failed program was:" >&5
17566sed 's/^/| /' conftest.$ac_ext >&5
17567
17568ac_header_compiler=no
17569fi
ac1cb8d3 17570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17571echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17572echo "${ECHO_T}$ac_header_compiler" >&6
17573
17574# Is the header present?
17575echo "$as_me:$LINENO: checking $ac_header presence" >&5
17576echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17577cat >conftest.$ac_ext <<_ACEOF
17578/* confdefs.h. */
17579_ACEOF
17580cat confdefs.h >>conftest.$ac_ext
17581cat >>conftest.$ac_ext <<_ACEOF
17582/* end confdefs.h. */
17583#include <$ac_header>
17584_ACEOF
17585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17587 ac_status=$?
17588 grep -v '^ *+' conftest.er1 >conftest.err
17589 rm -f conftest.er1
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } >/dev/null; then
17593 if test -s conftest.err; then
5d7b7554
VZ
17594 ac_cpp_err=$ac_cxx_preproc_warn_flag
17595 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17596 else
17597 ac_cpp_err=
17598 fi
17599else
17600 ac_cpp_err=yes
17601fi
17602if test -z "$ac_cpp_err"; then
17603 ac_header_preproc=yes
17604else
17605 echo "$as_me: failed program was:" >&5
17606sed 's/^/| /' conftest.$ac_ext >&5
17607
17608 ac_header_preproc=no
17609fi
17610rm -f conftest.err conftest.$ac_ext
17611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17612echo "${ECHO_T}$ac_header_preproc" >&6
17613
17614# So? What about this header?
5d7b7554 17615case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17616 yes:no: )
a848cd7e
SC
17617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17620echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17621 ac_header_preproc=yes
a848cd7e 17622 ;;
ac1cb8d3 17623 no:yes:* )
a848cd7e
SC
17624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17627echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17629echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17631echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17635echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17636 (
17637 cat <<\_ASBOX
ac1cb8d3
VS
17638## ----------------------------------------- ##
17639## Report this to wx-dev@lists.wxwidgets.org ##
17640## ----------------------------------------- ##
a848cd7e
SC
17641_ASBOX
17642 ) |
17643 sed "s/^/$as_me: WARNING: /" >&2
17644 ;;
17645esac
17646echo "$as_me:$LINENO: checking for $ac_header" >&5
17647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17648if eval "test \"\${$as_ac_Header+set}\" = set"; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17650else
ac1cb8d3 17651 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17652fi
17653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17655
17656fi
17657if test `eval echo '${'$as_ac_Header'}'` = yes; then
17658 cat >>confdefs.h <<_ACEOF
17659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17660_ACEOF
17661
17662fi
17663
17664done
17665
17666
17667case "${host}" in
17668 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17669 if test $ac_cv_header_langinfo_h = "yes" \
17670 -a \( "$wx_cv_gccversion" = "EMX2" \
17671 -o "$wx_cv_gccversion" = "EMX3" \
17672 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17673 LIBS="$LIBS -lintl"
17674 fi
17675 ;;
17676esac
17677
bc023abb
MW
17678if test "$USE_UNIX" = 1 ; then
17679
17680for ac_header in sys/select.h
17681do
17682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17683if eval "test \"\${$as_ac_Header+set}\" = set"; then
17684 echo "$as_me:$LINENO: checking for $ac_header" >&5
17685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17686if eval "test \"\${$as_ac_Header+set}\" = set"; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17688fi
17689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17691else
17692 # Is the header compilable?
17693echo "$as_me:$LINENO: checking $ac_header usability" >&5
17694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17695cat >conftest.$ac_ext <<_ACEOF
17696/* confdefs.h. */
17697_ACEOF
17698cat confdefs.h >>conftest.$ac_ext
17699cat >>conftest.$ac_ext <<_ACEOF
17700/* end confdefs.h. */
17701$ac_includes_default
17702#include <$ac_header>
17703_ACEOF
17704rm -f conftest.$ac_objext
17705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17706 (eval $ac_compile) 2>conftest.er1
17707 ac_status=$?
17708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } &&
7067783d
PC
17713 { ac_try='test -z "$ac_cxx_werror_flag"
17714 || test ! -s conftest.err'
bc023abb
MW
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest.$ac_objext'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 ac_header_compiler=yes
17727else
17728 echo "$as_me: failed program was:" >&5
17729sed 's/^/| /' conftest.$ac_ext >&5
17730
17731ac_header_compiler=no
17732fi
17733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17734echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17735echo "${ECHO_T}$ac_header_compiler" >&6
17736
17737# Is the header present?
17738echo "$as_me:$LINENO: checking $ac_header presence" >&5
17739echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17740cat >conftest.$ac_ext <<_ACEOF
17741/* confdefs.h. */
17742_ACEOF
17743cat confdefs.h >>conftest.$ac_ext
17744cat >>conftest.$ac_ext <<_ACEOF
17745/* end confdefs.h. */
17746#include <$ac_header>
17747_ACEOF
17748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17750 ac_status=$?
17751 grep -v '^ *+' conftest.er1 >conftest.err
17752 rm -f conftest.er1
17753 cat conftest.err >&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } >/dev/null; then
17756 if test -s conftest.err; then
17757 ac_cpp_err=$ac_cxx_preproc_warn_flag
17758 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17759 else
17760 ac_cpp_err=
17761 fi
17762else
17763 ac_cpp_err=yes
17764fi
17765if test -z "$ac_cpp_err"; then
17766 ac_header_preproc=yes
17767else
17768 echo "$as_me: failed program was:" >&5
17769sed 's/^/| /' conftest.$ac_ext >&5
17770
17771 ac_header_preproc=no
17772fi
17773rm -f conftest.err conftest.$ac_ext
17774echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17775echo "${ECHO_T}$ac_header_preproc" >&6
17776
17777# So? What about this header?
17778case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17779 yes:no: )
17780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17784 ac_header_preproc=yes
17785 ;;
17786 no:yes:* )
17787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17790echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17794echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17799 (
17800 cat <<\_ASBOX
17801## ----------------------------------------- ##
17802## Report this to wx-dev@lists.wxwidgets.org ##
17803## ----------------------------------------- ##
17804_ASBOX
17805 ) |
17806 sed "s/^/$as_me: WARNING: /" >&2
17807 ;;
17808esac
17809echo "$as_me:$LINENO: checking for $ac_header" >&5
17810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17811if eval "test \"\${$as_ac_Header+set}\" = set"; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17813else
17814 eval "$as_ac_Header=\$ac_header_preproc"
17815fi
17816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17818
17819fi
17820if test `eval echo '${'$as_ac_Header'}'` = yes; then
17821 cat >>confdefs.h <<_ACEOF
17822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17823_ACEOF
17824
17825fi
17826
17827done
17828
17829fi
17830
a848cd7e
SC
17831
17832echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17833echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17834if test "${ac_cv_c_const+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17836else
17837 cat >conftest.$ac_ext <<_ACEOF
17838/* confdefs.h. */
17839_ACEOF
17840cat confdefs.h >>conftest.$ac_ext
17841cat >>conftest.$ac_ext <<_ACEOF
17842/* end confdefs.h. */
17843
17844int
17845main ()
17846{
17847/* FIXME: Include the comments suggested by Paul. */
17848#ifndef __cplusplus
17849 /* Ultrix mips cc rejects this. */
17850 typedef int charset[2];
17851 const charset x;
17852 /* SunOS 4.1.1 cc rejects this. */
17853 char const *const *ccp;
17854 char **p;
17855 /* NEC SVR4.0.2 mips cc rejects this. */
17856 struct point {int x, y;};
17857 static struct point const zero = {0,0};
17858 /* AIX XL C 1.02.0.0 rejects this.
17859 It does not let you subtract one const X* pointer from another in
17860 an arm of an if-expression whose if-part is not a constant
17861 expression */
17862 const char *g = "string";
17863 ccp = &g + (g ? g-g : 0);
17864 /* HPUX 7.0 cc rejects these. */
17865 ++ccp;
17866 p = (char**) ccp;
17867 ccp = (char const *const *) p;
17868 { /* SCO 3.2v4 cc rejects this. */
17869 char *t;
17870 char const *s = 0 ? (char *) 0 : (char const *) 0;
17871
17872 *t++ = 0;
17873 }
17874 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17875 int x[] = {25, 17};
17876 const int *foo = &x[0];
17877 ++foo;
17878 }
17879 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17880 typedef const int *iptr;
17881 iptr p = 0;
17882 ++p;
17883 }
17884 { /* AIX XL C 1.02.0.0 rejects this saying
17885 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17886 struct s { int j; const int *ap[3]; };
17887 struct s *b; b->j = 5;
17888 }
17889 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17890 const int foo = 10;
17891 }
17892#endif
17893
17894 ;
17895 return 0;
17896}
17897_ACEOF
17898rm -f conftest.$ac_objext
17899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17900 (eval $ac_compile) 2>conftest.er1
a848cd7e 17901 ac_status=$?
ac1cb8d3
VS
17902 grep -v '^ *+' conftest.er1 >conftest.err
17903 rm -f conftest.er1
17904 cat conftest.err >&5
a848cd7e
SC
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
7067783d
PC
17907 { ac_try='test -z "$ac_cxx_werror_flag"
17908 || test ! -s conftest.err'
ac1cb8d3
VS
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 ac_cv_c_const=yes
17921else
17922 echo "$as_me: failed program was:" >&5
17923sed 's/^/| /' conftest.$ac_ext >&5
17924
17925ac_cv_c_const=no
17926fi
ac1cb8d3 17927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17928fi
17929echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17930echo "${ECHO_T}$ac_cv_c_const" >&6
17931if test $ac_cv_c_const = no; then
17932
17933cat >>confdefs.h <<\_ACEOF
17934#define const
17935_ACEOF
17936
17937fi
17938
17939echo "$as_me:$LINENO: checking for inline" >&5
17940echo $ECHO_N "checking for inline... $ECHO_C" >&6
17941if test "${ac_cv_c_inline+set}" = set; then
17942 echo $ECHO_N "(cached) $ECHO_C" >&6
17943else
17944 ac_cv_c_inline=no
17945for ac_kw in inline __inline__ __inline; do
17946 cat >conftest.$ac_ext <<_ACEOF
17947/* confdefs.h. */
17948_ACEOF
17949cat confdefs.h >>conftest.$ac_ext
17950cat >>conftest.$ac_ext <<_ACEOF
17951/* end confdefs.h. */
17952#ifndef __cplusplus
17953typedef int foo_t;
17954static $ac_kw foo_t static_foo () {return 0; }
17955$ac_kw foo_t foo () {return 0; }
17956#endif
17957
17958_ACEOF
17959rm -f conftest.$ac_objext
17960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17961 (eval $ac_compile) 2>conftest.er1
a848cd7e 17962 ac_status=$?
ac1cb8d3
VS
17963 grep -v '^ *+' conftest.er1 >conftest.err
17964 rm -f conftest.er1
17965 cat conftest.err >&5
a848cd7e
SC
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } &&
7067783d
PC
17968 { ac_try='test -z "$ac_cxx_werror_flag"
17969 || test ! -s conftest.err'
ac1cb8d3
VS
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; }; then
17981 ac_cv_c_inline=$ac_kw; break
17982else
17983 echo "$as_me: failed program was:" >&5
17984sed 's/^/| /' conftest.$ac_ext >&5
17985
17986fi
ac1cb8d3 17987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17988done
17989
17990fi
17991echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17992echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17993
17994
a848cd7e
SC
17995case $ac_cv_c_inline in
17996 inline | yes) ;;
ac1cb8d3
VS
17997 *)
17998 case $ac_cv_c_inline in
17999 no) ac_val=;;
18000 *) ac_val=$ac_cv_c_inline;;
18001 esac
18002 cat >>confdefs.h <<_ACEOF
18003#ifndef __cplusplus
18004#define inline $ac_val
18005#endif
de59c161 18006_ACEOF
ac1cb8d3 18007 ;;
a848cd7e
SC
18008esac
18009
18010
18011echo "$as_me:$LINENO: checking for char" >&5
18012echo $ECHO_N "checking for char... $ECHO_C" >&6
18013if test "${ac_cv_type_char+set}" = set; then
18014 echo $ECHO_N "(cached) $ECHO_C" >&6
18015else
18016 cat >conftest.$ac_ext <<_ACEOF
18017/* confdefs.h. */
18018_ACEOF
18019cat confdefs.h >>conftest.$ac_ext
18020cat >>conftest.$ac_ext <<_ACEOF
18021/* end confdefs.h. */
18022$ac_includes_default
18023int
18024main ()
18025{
18026if ((char *) 0)
18027 return 0;
18028if (sizeof (char))
18029 return 0;
18030 ;
18031 return 0;
18032}
18033_ACEOF
18034rm -f conftest.$ac_objext
18035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18036 (eval $ac_compile) 2>conftest.er1
a848cd7e 18037 ac_status=$?
ac1cb8d3
VS
18038 grep -v '^ *+' conftest.er1 >conftest.err
18039 rm -f conftest.er1
18040 cat conftest.err >&5
a848cd7e
SC
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } &&
7067783d
PC
18043 { ac_try='test -z "$ac_cxx_werror_flag"
18044 || test ! -s conftest.err'
ac1cb8d3
VS
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18053 ac_status=$?
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18056 ac_cv_type_char=yes
18057else
18058 echo "$as_me: failed program was:" >&5
18059sed 's/^/| /' conftest.$ac_ext >&5
18060
18061ac_cv_type_char=no
18062fi
ac1cb8d3 18063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18064fi
18065echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18066echo "${ECHO_T}$ac_cv_type_char" >&6
18067
18068echo "$as_me:$LINENO: checking size of char" >&5
18069echo $ECHO_N "checking size of char... $ECHO_C" >&6
18070if test "${ac_cv_sizeof_char+set}" = set; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18072else
18073 if test "$ac_cv_type_char" = yes; then
18074 # The cast to unsigned long works around a bug in the HP C Compiler
18075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18077 # This bug is HP SR number 8606223364.
18078 if test "$cross_compiling" = yes; then
18079 # Depending upon the size, compute the lo and hi bounds.
18080cat >conftest.$ac_ext <<_ACEOF
18081/* confdefs.h. */
18082_ACEOF
18083cat confdefs.h >>conftest.$ac_ext
18084cat >>conftest.$ac_ext <<_ACEOF
18085/* end confdefs.h. */
18086$ac_includes_default
18087int
18088main ()
18089{
18090static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18091test_array [0] = 0
18092
18093 ;
18094 return 0;
18095}
18096_ACEOF
18097rm -f conftest.$ac_objext
18098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18099 (eval $ac_compile) 2>conftest.er1
a848cd7e 18100 ac_status=$?
ac1cb8d3
VS
18101 grep -v '^ *+' conftest.er1 >conftest.err
18102 rm -f conftest.er1
18103 cat conftest.err >&5
a848cd7e
SC
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } &&
7067783d
PC
18106 { ac_try='test -z "$ac_cxx_werror_flag"
18107 || test ! -s conftest.err'
ac1cb8d3
VS
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; } &&
18113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; }; then
18119 ac_lo=0 ac_mid=0
18120 while :; do
18121 cat >conftest.$ac_ext <<_ACEOF
18122/* confdefs.h. */
18123_ACEOF
18124cat confdefs.h >>conftest.$ac_ext
18125cat >>conftest.$ac_ext <<_ACEOF
18126/* end confdefs.h. */
18127$ac_includes_default
18128int
18129main ()
18130{
18131static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18132test_array [0] = 0
18133
18134 ;
18135 return 0;
18136}
18137_ACEOF
18138rm -f conftest.$ac_objext
18139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18140 (eval $ac_compile) 2>conftest.er1
a848cd7e 18141 ac_status=$?
ac1cb8d3
VS
18142 grep -v '^ *+' conftest.er1 >conftest.err
18143 rm -f conftest.er1
18144 cat conftest.err >&5
a848cd7e
SC
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } &&
7067783d
PC
18147 { ac_try='test -z "$ac_cxx_werror_flag"
18148 || test ! -s conftest.err'
ac1cb8d3
VS
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; } &&
18154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
18160 ac_hi=$ac_mid; break
18161else
18162 echo "$as_me: failed program was:" >&5
18163sed 's/^/| /' conftest.$ac_ext >&5
18164
18165ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18166 if test $ac_lo -le $ac_mid; then
18167 ac_lo= ac_hi=
18168 break
18169 fi
18170 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18171fi
ac1cb8d3 18172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18173 done
18174else
18175 echo "$as_me: failed program was:" >&5
18176sed 's/^/| /' conftest.$ac_ext >&5
18177
18178cat >conftest.$ac_ext <<_ACEOF
18179/* confdefs.h. */
18180_ACEOF
18181cat confdefs.h >>conftest.$ac_ext
18182cat >>conftest.$ac_ext <<_ACEOF
18183/* end confdefs.h. */
18184$ac_includes_default
18185int
18186main ()
18187{
18188static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18189test_array [0] = 0
18190
18191 ;
18192 return 0;
18193}
18194_ACEOF
18195rm -f conftest.$ac_objext
18196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18197 (eval $ac_compile) 2>conftest.er1
a848cd7e 18198 ac_status=$?
ac1cb8d3
VS
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
a848cd7e
SC
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
7067783d
PC
18204 { ac_try='test -z "$ac_cxx_werror_flag"
18205 || test ! -s conftest.err'
ac1cb8d3
VS
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18217 ac_hi=-1 ac_mid=-1
18218 while :; do
18219 cat >conftest.$ac_ext <<_ACEOF
18220/* confdefs.h. */
18221_ACEOF
18222cat confdefs.h >>conftest.$ac_ext
18223cat >>conftest.$ac_ext <<_ACEOF
18224/* end confdefs.h. */
18225$ac_includes_default
18226int
18227main ()
18228{
18229static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18230test_array [0] = 0
18231
18232 ;
18233 return 0;
18234}
18235_ACEOF
18236rm -f conftest.$ac_objext
18237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18238 (eval $ac_compile) 2>conftest.er1
a848cd7e 18239 ac_status=$?
ac1cb8d3
VS
18240 grep -v '^ *+' conftest.er1 >conftest.err
18241 rm -f conftest.er1
18242 cat conftest.err >&5
a848cd7e
SC
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } &&
7067783d
PC
18245 { ac_try='test -z "$ac_cxx_werror_flag"
18246 || test ! -s conftest.err'
ac1cb8d3
VS
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; } &&
18252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; }; then
18258 ac_lo=$ac_mid; break
18259else
18260 echo "$as_me: failed program was:" >&5
18261sed 's/^/| /' conftest.$ac_ext >&5
18262
18263ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18264 if test $ac_mid -le $ac_hi; then
18265 ac_lo= ac_hi=
18266 break
18267 fi
18268 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18269fi
ac1cb8d3 18270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18271 done
18272else
18273 echo "$as_me: failed program was:" >&5
18274sed 's/^/| /' conftest.$ac_ext >&5
18275
18276ac_lo= ac_hi=
18277fi
ac1cb8d3 18278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18279fi
ac1cb8d3 18280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18281# Binary search between lo and hi bounds.
18282while test "x$ac_lo" != "x$ac_hi"; do
18283 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18284 cat >conftest.$ac_ext <<_ACEOF
18285/* confdefs.h. */
18286_ACEOF
18287cat confdefs.h >>conftest.$ac_ext
18288cat >>conftest.$ac_ext <<_ACEOF
18289/* end confdefs.h. */
18290$ac_includes_default
18291int
18292main ()
18293{
18294static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18295test_array [0] = 0
18296
18297 ;
18298 return 0;
18299}
18300_ACEOF
18301rm -f conftest.$ac_objext
18302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18303 (eval $ac_compile) 2>conftest.er1
a848cd7e 18304 ac_status=$?
ac1cb8d3
VS
18305 grep -v '^ *+' conftest.er1 >conftest.err
18306 rm -f conftest.er1
18307 cat conftest.err >&5
a848cd7e
SC
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } &&
7067783d
PC
18310 { ac_try='test -z "$ac_cxx_werror_flag"
18311 || test ! -s conftest.err'
ac1cb8d3
VS
18312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313 (eval $ac_try) 2>&5
18314 ac_status=$?
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; } &&
18317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319 (eval $ac_try) 2>&5
18320 ac_status=$?
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; }; then
18323 ac_hi=$ac_mid
18324else
18325 echo "$as_me: failed program was:" >&5
18326sed 's/^/| /' conftest.$ac_ext >&5
18327
18328ac_lo=`expr '(' $ac_mid ')' + 1`
18329fi
ac1cb8d3 18330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18331done
18332case $ac_lo in
18333?*) ac_cv_sizeof_char=$ac_lo;;
18334'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18335See \`config.log' for more details." >&5
18336echo "$as_me: error: cannot compute sizeof (char), 77
18337See \`config.log' for more details." >&2;}
18338 { (exit 1); exit 1; }; } ;;
18339esac
18340else
18341 if test "$cross_compiling" = yes; then
7067783d
PC
18342 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18343See \`config.log' for more details." >&5
18344echo "$as_me: error: cannot run test program while cross compiling
18345See \`config.log' for more details." >&2;}
a848cd7e
SC
18346 { (exit 1); exit 1; }; }
18347else
18348 cat >conftest.$ac_ext <<_ACEOF
18349/* confdefs.h. */
18350_ACEOF
18351cat confdefs.h >>conftest.$ac_ext
18352cat >>conftest.$ac_ext <<_ACEOF
18353/* end confdefs.h. */
18354$ac_includes_default
18355long longval () { return (long) (sizeof (char)); }
18356unsigned long ulongval () { return (long) (sizeof (char)); }
18357#include <stdio.h>
18358#include <stdlib.h>
18359int
18360main ()
18361{
18362
18363 FILE *f = fopen ("conftest.val", "w");
18364 if (! f)
18365 exit (1);
18366 if (((long) (sizeof (char))) < 0)
18367 {
18368 long i = longval ();
18369 if (i != ((long) (sizeof (char))))
18370 exit (1);
18371 fprintf (f, "%ld\n", i);
18372 }
18373 else
18374 {
18375 unsigned long i = ulongval ();
18376 if (i != ((long) (sizeof (char))))
18377 exit (1);
18378 fprintf (f, "%lu\n", i);
18379 }
18380 exit (ferror (f) || fclose (f) != 0);
18381
18382 ;
18383 return 0;
18384}
18385_ACEOF
18386rm -f conftest$ac_exeext
18387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388 (eval $ac_link) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 ac_cv_sizeof_char=`cat conftest.val`
18398else
18399 echo "$as_me: program exited with status $ac_status" >&5
18400echo "$as_me: failed program was:" >&5
18401sed 's/^/| /' conftest.$ac_ext >&5
18402
18403( exit $ac_status )
18404{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18405See \`config.log' for more details." >&5
18406echo "$as_me: error: cannot compute sizeof (char), 77
18407See \`config.log' for more details." >&2;}
18408 { (exit 1); exit 1; }; }
18409fi
ac1cb8d3 18410rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18411fi
18412fi
18413rm -f conftest.val
18414else
18415 ac_cv_sizeof_char=0
18416fi
18417fi
18418echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18419echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18420cat >>confdefs.h <<_ACEOF
18421#define SIZEOF_CHAR $ac_cv_sizeof_char
18422_ACEOF
18423
18424
18425echo "$as_me:$LINENO: checking for short" >&5
18426echo $ECHO_N "checking for short... $ECHO_C" >&6
18427if test "${ac_cv_type_short+set}" = set; then
18428 echo $ECHO_N "(cached) $ECHO_C" >&6
18429else
18430 cat >conftest.$ac_ext <<_ACEOF
18431/* confdefs.h. */
18432_ACEOF
18433cat confdefs.h >>conftest.$ac_ext
18434cat >>conftest.$ac_ext <<_ACEOF
18435/* end confdefs.h. */
18436$ac_includes_default
18437int
18438main ()
18439{
18440if ((short *) 0)
18441 return 0;
18442if (sizeof (short))
18443 return 0;
18444 ;
18445 return 0;
18446}
18447_ACEOF
18448rm -f conftest.$ac_objext
18449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18450 (eval $ac_compile) 2>conftest.er1
a848cd7e 18451 ac_status=$?
ac1cb8d3
VS
18452 grep -v '^ *+' conftest.er1 >conftest.err
18453 rm -f conftest.er1
18454 cat conftest.err >&5
a848cd7e
SC
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
7067783d
PC
18457 { ac_try='test -z "$ac_cxx_werror_flag"
18458 || test ! -s conftest.err'
ac1cb8d3
VS
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 ac_cv_type_short=yes
18471else
18472 echo "$as_me: failed program was:" >&5
18473sed 's/^/| /' conftest.$ac_ext >&5
18474
18475ac_cv_type_short=no
18476fi
ac1cb8d3 18477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18478fi
18479echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18480echo "${ECHO_T}$ac_cv_type_short" >&6
18481
18482echo "$as_me:$LINENO: checking size of short" >&5
18483echo $ECHO_N "checking size of short... $ECHO_C" >&6
18484if test "${ac_cv_sizeof_short+set}" = set; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
18486else
18487 if test "$ac_cv_type_short" = yes; then
18488 # The cast to unsigned long works around a bug in the HP C Compiler
18489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18491 # This bug is HP SR number 8606223364.
18492 if test "$cross_compiling" = yes; then
18493 # Depending upon the size, compute the lo and hi bounds.
18494cat >conftest.$ac_ext <<_ACEOF
18495/* confdefs.h. */
18496_ACEOF
18497cat confdefs.h >>conftest.$ac_ext
18498cat >>conftest.$ac_ext <<_ACEOF
18499/* end confdefs.h. */
18500$ac_includes_default
18501int
18502main ()
18503{
18504static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18505test_array [0] = 0
18506
18507 ;
18508 return 0;
18509}
18510_ACEOF
18511rm -f conftest.$ac_objext
18512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18513 (eval $ac_compile) 2>conftest.er1
a848cd7e 18514 ac_status=$?
ac1cb8d3
VS
18515 grep -v '^ *+' conftest.er1 >conftest.err
18516 rm -f conftest.er1
18517 cat conftest.err >&5
a848cd7e
SC
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
7067783d
PC
18520 { ac_try='test -z "$ac_cxx_werror_flag"
18521 || test ! -s conftest.err'
ac1cb8d3
VS
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_lo=0 ac_mid=0
18534 while :; do
18535 cat >conftest.$ac_ext <<_ACEOF
18536/* confdefs.h. */
18537_ACEOF
18538cat confdefs.h >>conftest.$ac_ext
18539cat >>conftest.$ac_ext <<_ACEOF
18540/* end confdefs.h. */
18541$ac_includes_default
18542int
18543main ()
18544{
18545static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18546test_array [0] = 0
18547
18548 ;
18549 return 0;
18550}
18551_ACEOF
18552rm -f conftest.$ac_objext
18553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18554 (eval $ac_compile) 2>conftest.er1
a848cd7e 18555 ac_status=$?
ac1cb8d3
VS
18556 grep -v '^ *+' conftest.er1 >conftest.err
18557 rm -f conftest.er1
18558 cat conftest.err >&5
a848cd7e
SC
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } &&
7067783d
PC
18561 { ac_try='test -z "$ac_cxx_werror_flag"
18562 || test ! -s conftest.err'
ac1cb8d3
VS
18563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564 (eval $ac_try) 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; } &&
18568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570 (eval $ac_try) 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); }; }; then
18574 ac_hi=$ac_mid; break
18575else
18576 echo "$as_me: failed program was:" >&5
18577sed 's/^/| /' conftest.$ac_ext >&5
18578
18579ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18580 if test $ac_lo -le $ac_mid; then
18581 ac_lo= ac_hi=
18582 break
18583 fi
18584 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18585fi
ac1cb8d3 18586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18587 done
18588else
18589 echo "$as_me: failed program was:" >&5
18590sed 's/^/| /' conftest.$ac_ext >&5
18591
18592cat >conftest.$ac_ext <<_ACEOF
18593/* confdefs.h. */
18594_ACEOF
18595cat confdefs.h >>conftest.$ac_ext
18596cat >>conftest.$ac_ext <<_ACEOF
18597/* end confdefs.h. */
18598$ac_includes_default
18599int
18600main ()
18601{
18602static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18603test_array [0] = 0
18604
18605 ;
18606 return 0;
18607}
18608_ACEOF
18609rm -f conftest.$ac_objext
18610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18611 (eval $ac_compile) 2>conftest.er1
a848cd7e 18612 ac_status=$?
ac1cb8d3
VS
18613 grep -v '^ *+' conftest.er1 >conftest.err
18614 rm -f conftest.er1
18615 cat conftest.err >&5
a848cd7e
SC
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
7067783d
PC
18618 { ac_try='test -z "$ac_cxx_werror_flag"
18619 || test ! -s conftest.err'
ac1cb8d3
VS
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_hi=-1 ac_mid=-1
18632 while :; do
18633 cat >conftest.$ac_ext <<_ACEOF
18634/* confdefs.h. */
18635_ACEOF
18636cat confdefs.h >>conftest.$ac_ext
18637cat >>conftest.$ac_ext <<_ACEOF
18638/* end confdefs.h. */
18639$ac_includes_default
18640int
18641main ()
18642{
18643static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18644test_array [0] = 0
18645
18646 ;
18647 return 0;
18648}
18649_ACEOF
18650rm -f conftest.$ac_objext
18651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18652 (eval $ac_compile) 2>conftest.er1
a848cd7e 18653 ac_status=$?
ac1cb8d3
VS
18654 grep -v '^ *+' conftest.er1 >conftest.err
18655 rm -f conftest.er1
18656 cat conftest.err >&5
a848cd7e
SC
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } &&
7067783d
PC
18659 { ac_try='test -z "$ac_cxx_werror_flag"
18660 || test ! -s conftest.err'
ac1cb8d3
VS
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; } &&
18666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18669 ac_status=$?
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; }; then
18672 ac_lo=$ac_mid; break
18673else
18674 echo "$as_me: failed program was:" >&5
18675sed 's/^/| /' conftest.$ac_ext >&5
18676
18677ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18678 if test $ac_mid -le $ac_hi; then
18679 ac_lo= ac_hi=
18680 break
18681 fi
18682 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18683fi
ac1cb8d3 18684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18685 done
18686else
18687 echo "$as_me: failed program was:" >&5
18688sed 's/^/| /' conftest.$ac_ext >&5
18689
18690ac_lo= ac_hi=
18691fi
ac1cb8d3 18692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18693fi
ac1cb8d3 18694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18695# Binary search between lo and hi bounds.
18696while test "x$ac_lo" != "x$ac_hi"; do
18697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18698 cat >conftest.$ac_ext <<_ACEOF
18699/* confdefs.h. */
18700_ACEOF
18701cat confdefs.h >>conftest.$ac_ext
18702cat >>conftest.$ac_ext <<_ACEOF
18703/* end confdefs.h. */
18704$ac_includes_default
18705int
18706main ()
18707{
18708static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18709test_array [0] = 0
18710
18711 ;
18712 return 0;
18713}
18714_ACEOF
18715rm -f conftest.$ac_objext
18716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18717 (eval $ac_compile) 2>conftest.er1
a848cd7e 18718 ac_status=$?
ac1cb8d3
VS
18719 grep -v '^ *+' conftest.er1 >conftest.err
18720 rm -f conftest.er1
18721 cat conftest.err >&5
a848cd7e
SC
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } &&
7067783d
PC
18724 { ac_try='test -z "$ac_cxx_werror_flag"
18725 || test ! -s conftest.err'
ac1cb8d3
VS
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; } &&
18731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 ac_hi=$ac_mid
18738else
18739 echo "$as_me: failed program was:" >&5
18740sed 's/^/| /' conftest.$ac_ext >&5
18741
18742ac_lo=`expr '(' $ac_mid ')' + 1`
18743fi
ac1cb8d3 18744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18745done
18746case $ac_lo in
18747?*) ac_cv_sizeof_short=$ac_lo;;
18748'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18749See \`config.log' for more details." >&5
18750echo "$as_me: error: cannot compute sizeof (short), 77
18751See \`config.log' for more details." >&2;}
18752 { (exit 1); exit 1; }; } ;;
18753esac
18754else
18755 if test "$cross_compiling" = yes; then
7067783d
PC
18756 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18757See \`config.log' for more details." >&5
18758echo "$as_me: error: cannot run test program while cross compiling
18759See \`config.log' for more details." >&2;}
a848cd7e
SC
18760 { (exit 1); exit 1; }; }
18761else
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
18769long longval () { return (long) (sizeof (short)); }
18770unsigned long ulongval () { return (long) (sizeof (short)); }
18771#include <stdio.h>
18772#include <stdlib.h>
18773int
18774main ()
18775{
18776
18777 FILE *f = fopen ("conftest.val", "w");
18778 if (! f)
18779 exit (1);
18780 if (((long) (sizeof (short))) < 0)
18781 {
18782 long i = longval ();
18783 if (i != ((long) (sizeof (short))))
18784 exit (1);
18785 fprintf (f, "%ld\n", i);
18786 }
18787 else
18788 {
18789 unsigned long i = ulongval ();
18790 if (i != ((long) (sizeof (short))))
18791 exit (1);
18792 fprintf (f, "%lu\n", i);
18793 }
18794 exit (ferror (f) || fclose (f) != 0);
18795
18796 ;
18797 return 0;
18798}
18799_ACEOF
18800rm -f conftest$ac_exeext
18801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18802 (eval $ac_link) 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18808 ac_status=$?
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18811 ac_cv_sizeof_short=`cat conftest.val`
18812else
18813 echo "$as_me: program exited with status $ac_status" >&5
18814echo "$as_me: failed program was:" >&5
18815sed 's/^/| /' conftest.$ac_ext >&5
18816
18817( exit $ac_status )
18818{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18819See \`config.log' for more details." >&5
18820echo "$as_me: error: cannot compute sizeof (short), 77
18821See \`config.log' for more details." >&2;}
18822 { (exit 1); exit 1; }; }
18823fi
ac1cb8d3 18824rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18825fi
18826fi
18827rm -f conftest.val
18828else
18829 ac_cv_sizeof_short=0
18830fi
18831fi
18832echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18833echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18834cat >>confdefs.h <<_ACEOF
18835#define SIZEOF_SHORT $ac_cv_sizeof_short
18836_ACEOF
18837
18838
18839echo "$as_me:$LINENO: checking for void *" >&5
18840echo $ECHO_N "checking for void *... $ECHO_C" >&6
18841if test "${ac_cv_type_void_p+set}" = set; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18843else
18844 cat >conftest.$ac_ext <<_ACEOF
18845/* confdefs.h. */
18846_ACEOF
18847cat confdefs.h >>conftest.$ac_ext
18848cat >>conftest.$ac_ext <<_ACEOF
18849/* end confdefs.h. */
18850$ac_includes_default
18851int
18852main ()
18853{
18854if ((void * *) 0)
18855 return 0;
18856if (sizeof (void *))
18857 return 0;
18858 ;
18859 return 0;
18860}
18861_ACEOF
18862rm -f conftest.$ac_objext
18863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18864 (eval $ac_compile) 2>conftest.er1
a848cd7e 18865 ac_status=$?
ac1cb8d3
VS
18866 grep -v '^ *+' conftest.er1 >conftest.err
18867 rm -f conftest.er1
18868 cat conftest.err >&5
a848cd7e
SC
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } &&
7067783d
PC
18871 { ac_try='test -z "$ac_cxx_werror_flag"
18872 || test ! -s conftest.err'
ac1cb8d3
VS
18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874 (eval $ac_try) 2>&5
18875 ac_status=$?
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; } &&
18878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18880 (eval $ac_try) 2>&5
18881 ac_status=$?
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); }; }; then
18884 ac_cv_type_void_p=yes
18885else
18886 echo "$as_me: failed program was:" >&5
18887sed 's/^/| /' conftest.$ac_ext >&5
18888
18889ac_cv_type_void_p=no
18890fi
ac1cb8d3 18891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18892fi
18893echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18894echo "${ECHO_T}$ac_cv_type_void_p" >&6
18895
18896echo "$as_me:$LINENO: checking size of void *" >&5
18897echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18898if test "${ac_cv_sizeof_void_p+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18900else
18901 if test "$ac_cv_type_void_p" = yes; then
18902 # The cast to unsigned long works around a bug in the HP C Compiler
18903 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18904 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18905 # This bug is HP SR number 8606223364.
18906 if test "$cross_compiling" = yes; then
18907 # Depending upon the size, compute the lo and hi bounds.
18908cat >conftest.$ac_ext <<_ACEOF
18909/* confdefs.h. */
18910_ACEOF
18911cat confdefs.h >>conftest.$ac_ext
18912cat >>conftest.$ac_ext <<_ACEOF
18913/* end confdefs.h. */
18914$ac_includes_default
18915int
18916main ()
18917{
18918static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18919test_array [0] = 0
18920
18921 ;
18922 return 0;
18923}
18924_ACEOF
18925rm -f conftest.$ac_objext
18926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18927 (eval $ac_compile) 2>conftest.er1
a848cd7e 18928 ac_status=$?
ac1cb8d3
VS
18929 grep -v '^ *+' conftest.er1 >conftest.err
18930 rm -f conftest.er1
18931 cat conftest.err >&5
a848cd7e
SC
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } &&
7067783d
PC
18934 { ac_try='test -z "$ac_cxx_werror_flag"
18935 || test ! -s conftest.err'
ac1cb8d3
VS
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18947 ac_lo=0 ac_mid=0
18948 while :; do
18949 cat >conftest.$ac_ext <<_ACEOF
18950/* confdefs.h. */
18951_ACEOF
18952cat confdefs.h >>conftest.$ac_ext
18953cat >>conftest.$ac_ext <<_ACEOF
18954/* end confdefs.h. */
18955$ac_includes_default
18956int
18957main ()
18958{
18959static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18960test_array [0] = 0
18961
18962 ;
18963 return 0;
18964}
18965_ACEOF
18966rm -f conftest.$ac_objext
18967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18968 (eval $ac_compile) 2>conftest.er1
a848cd7e 18969 ac_status=$?
ac1cb8d3
VS
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
a848cd7e
SC
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
7067783d
PC
18975 { ac_try='test -z "$ac_cxx_werror_flag"
18976 || test ! -s conftest.err'
ac1cb8d3
VS
18977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978 (eval $ac_try) 2>&5
18979 ac_status=$?
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; } &&
18982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984 (eval $ac_try) 2>&5
18985 ac_status=$?
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); }; }; then
18988 ac_hi=$ac_mid; break
18989else
18990 echo "$as_me: failed program was:" >&5
18991sed 's/^/| /' conftest.$ac_ext >&5
18992
18993ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18994 if test $ac_lo -le $ac_mid; then
18995 ac_lo= ac_hi=
18996 break
18997 fi
18998 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18999fi
ac1cb8d3 19000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19001 done
19002else
19003 echo "$as_me: failed program was:" >&5
19004sed 's/^/| /' conftest.$ac_ext >&5
19005
19006cat >conftest.$ac_ext <<_ACEOF
19007/* confdefs.h. */
19008_ACEOF
19009cat confdefs.h >>conftest.$ac_ext
19010cat >>conftest.$ac_ext <<_ACEOF
19011/* end confdefs.h. */
19012$ac_includes_default
19013int
19014main ()
19015{
19016static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
19017test_array [0] = 0
19018
19019 ;
19020 return 0;
19021}
19022_ACEOF
19023rm -f conftest.$ac_objext
19024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19025 (eval $ac_compile) 2>conftest.er1
a848cd7e 19026 ac_status=$?
ac1cb8d3
VS
19027 grep -v '^ *+' conftest.er1 >conftest.err
19028 rm -f conftest.er1
19029 cat conftest.err >&5
a848cd7e
SC
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } &&
7067783d
PC
19032 { ac_try='test -z "$ac_cxx_werror_flag"
19033 || test ! -s conftest.err'
ac1cb8d3
VS
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; } &&
19039 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19045 ac_hi=-1 ac_mid=-1
19046 while :; do
19047 cat >conftest.$ac_ext <<_ACEOF
19048/* confdefs.h. */
19049_ACEOF
19050cat confdefs.h >>conftest.$ac_ext
19051cat >>conftest.$ac_ext <<_ACEOF
19052/* end confdefs.h. */
19053$ac_includes_default
19054int
19055main ()
19056{
19057static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
19058test_array [0] = 0
19059
19060 ;
19061 return 0;
19062}
19063_ACEOF
19064rm -f conftest.$ac_objext
19065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19066 (eval $ac_compile) 2>conftest.er1
a848cd7e 19067 ac_status=$?
ac1cb8d3
VS
19068 grep -v '^ *+' conftest.er1 >conftest.err
19069 rm -f conftest.er1
19070 cat conftest.err >&5
a848cd7e
SC
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } &&
7067783d
PC
19073 { ac_try='test -z "$ac_cxx_werror_flag"
19074 || test ! -s conftest.err'
ac1cb8d3
VS
19075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; } &&
19080 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082 (eval $ac_try) 2>&5
19083 ac_status=$?
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); }; }; then
19086 ac_lo=$ac_mid; break
19087else
19088 echo "$as_me: failed program was:" >&5
19089sed 's/^/| /' conftest.$ac_ext >&5
19090
19091ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19092 if test $ac_mid -le $ac_hi; then
19093 ac_lo= ac_hi=
19094 break
19095 fi
19096 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19097fi
ac1cb8d3 19098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19099 done
19100else
19101 echo "$as_me: failed program was:" >&5
19102sed 's/^/| /' conftest.$ac_ext >&5
19103
19104ac_lo= ac_hi=
19105fi
ac1cb8d3 19106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19107fi
ac1cb8d3 19108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19109# Binary search between lo and hi bounds.
19110while test "x$ac_lo" != "x$ac_hi"; do
19111 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19112 cat >conftest.$ac_ext <<_ACEOF
19113/* confdefs.h. */
19114_ACEOF
19115cat confdefs.h >>conftest.$ac_ext
19116cat >>conftest.$ac_ext <<_ACEOF
19117/* end confdefs.h. */
19118$ac_includes_default
19119int
19120main ()
19121{
19122static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19123test_array [0] = 0
19124
19125 ;
19126 return 0;
19127}
19128_ACEOF
19129rm -f conftest.$ac_objext
19130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19131 (eval $ac_compile) 2>conftest.er1
a848cd7e 19132 ac_status=$?
ac1cb8d3
VS
19133 grep -v '^ *+' conftest.er1 >conftest.err
19134 rm -f conftest.er1
19135 cat conftest.err >&5
a848cd7e
SC
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); } &&
7067783d
PC
19138 { ac_try='test -z "$ac_cxx_werror_flag"
19139 || test ! -s conftest.err'
ac1cb8d3
VS
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; } &&
19145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19147 (eval $ac_try) 2>&5
19148 ac_status=$?
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); }; }; then
19151 ac_hi=$ac_mid
19152else
19153 echo "$as_me: failed program was:" >&5
19154sed 's/^/| /' conftest.$ac_ext >&5
19155
19156ac_lo=`expr '(' $ac_mid ')' + 1`
19157fi
ac1cb8d3 19158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19159done
19160case $ac_lo in
19161?*) ac_cv_sizeof_void_p=$ac_lo;;
19162'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19163See \`config.log' for more details." >&5
19164echo "$as_me: error: cannot compute sizeof (void *), 77
19165See \`config.log' for more details." >&2;}
19166 { (exit 1); exit 1; }; } ;;
19167esac
19168else
19169 if test "$cross_compiling" = yes; then
7067783d
PC
19170 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19171See \`config.log' for more details." >&5
19172echo "$as_me: error: cannot run test program while cross compiling
19173See \`config.log' for more details." >&2;}
a848cd7e
SC
19174 { (exit 1); exit 1; }; }
19175else
19176 cat >conftest.$ac_ext <<_ACEOF
19177/* confdefs.h. */
19178_ACEOF
19179cat confdefs.h >>conftest.$ac_ext
19180cat >>conftest.$ac_ext <<_ACEOF
19181/* end confdefs.h. */
19182$ac_includes_default
19183long longval () { return (long) (sizeof (void *)); }
19184unsigned long ulongval () { return (long) (sizeof (void *)); }
19185#include <stdio.h>
19186#include <stdlib.h>
19187int
19188main ()
19189{
19190
19191 FILE *f = fopen ("conftest.val", "w");
19192 if (! f)
19193 exit (1);
19194 if (((long) (sizeof (void *))) < 0)
19195 {
19196 long i = longval ();
19197 if (i != ((long) (sizeof (void *))))
19198 exit (1);
19199 fprintf (f, "%ld\n", i);
19200 }
19201 else
19202 {
19203 unsigned long i = ulongval ();
19204 if (i != ((long) (sizeof (void *))))
19205 exit (1);
19206 fprintf (f, "%lu\n", i);
19207 }
19208 exit (ferror (f) || fclose (f) != 0);
19209
19210 ;
19211 return 0;
19212}
19213_ACEOF
19214rm -f conftest$ac_exeext
19215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19216 (eval $ac_link) 2>&5
19217 ac_status=$?
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19222 ac_status=$?
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19225 ac_cv_sizeof_void_p=`cat conftest.val`
19226else
19227 echo "$as_me: program exited with status $ac_status" >&5
19228echo "$as_me: failed program was:" >&5
19229sed 's/^/| /' conftest.$ac_ext >&5
19230
19231( exit $ac_status )
19232{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19233See \`config.log' for more details." >&5
19234echo "$as_me: error: cannot compute sizeof (void *), 77
19235See \`config.log' for more details." >&2;}
19236 { (exit 1); exit 1; }; }
19237fi
ac1cb8d3 19238rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19239fi
19240fi
19241rm -f conftest.val
19242else
19243 ac_cv_sizeof_void_p=0
19244fi
19245fi
19246echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19247echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19248cat >>confdefs.h <<_ACEOF
19249#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19250_ACEOF
19251
19252
19253echo "$as_me:$LINENO: checking for int" >&5
19254echo $ECHO_N "checking for int... $ECHO_C" >&6
19255if test "${ac_cv_type_int+set}" = set; then
19256 echo $ECHO_N "(cached) $ECHO_C" >&6
19257else
19258 cat >conftest.$ac_ext <<_ACEOF
19259/* confdefs.h. */
19260_ACEOF
19261cat confdefs.h >>conftest.$ac_ext
19262cat >>conftest.$ac_ext <<_ACEOF
19263/* end confdefs.h. */
19264$ac_includes_default
19265int
19266main ()
19267{
19268if ((int *) 0)
19269 return 0;
19270if (sizeof (int))
19271 return 0;
19272 ;
19273 return 0;
19274}
19275_ACEOF
19276rm -f conftest.$ac_objext
19277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19278 (eval $ac_compile) 2>conftest.er1
a848cd7e 19279 ac_status=$?
ac1cb8d3
VS
19280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
a848cd7e
SC
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
7067783d
PC
19285 { ac_try='test -z "$ac_cxx_werror_flag"
19286 || test ! -s conftest.err'
ac1cb8d3
VS
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } &&
19292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_type_int=yes
19299else
19300 echo "$as_me: failed program was:" >&5
19301sed 's/^/| /' conftest.$ac_ext >&5
19302
19303ac_cv_type_int=no
19304fi
ac1cb8d3 19305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19306fi
19307echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19308echo "${ECHO_T}$ac_cv_type_int" >&6
19309
19310echo "$as_me:$LINENO: checking size of int" >&5
19311echo $ECHO_N "checking size of int... $ECHO_C" >&6
19312if test "${ac_cv_sizeof_int+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19314else
19315 if test "$ac_cv_type_int" = yes; then
19316 # The cast to unsigned long works around a bug in the HP C Compiler
19317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19319 # This bug is HP SR number 8606223364.
19320 if test "$cross_compiling" = yes; then
19321 # Depending upon the size, compute the lo and hi bounds.
19322cat >conftest.$ac_ext <<_ACEOF
19323/* confdefs.h. */
19324_ACEOF
19325cat confdefs.h >>conftest.$ac_ext
19326cat >>conftest.$ac_ext <<_ACEOF
19327/* end confdefs.h. */
19328$ac_includes_default
19329int
19330main ()
19331{
19332static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19333test_array [0] = 0
19334
19335 ;
19336 return 0;
19337}
19338_ACEOF
19339rm -f conftest.$ac_objext
19340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19341 (eval $ac_compile) 2>conftest.er1
a848cd7e 19342 ac_status=$?
ac1cb8d3
VS
19343 grep -v '^ *+' conftest.er1 >conftest.err
19344 rm -f conftest.er1
19345 cat conftest.err >&5
a848cd7e
SC
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); } &&
7067783d
PC
19348 { ac_try='test -z "$ac_cxx_werror_flag"
19349 || test ! -s conftest.err'
ac1cb8d3
VS
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; } &&
19355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361 ac_lo=0 ac_mid=0
19362 while :; do
19363 cat >conftest.$ac_ext <<_ACEOF
19364/* confdefs.h. */
19365_ACEOF
19366cat confdefs.h >>conftest.$ac_ext
19367cat >>conftest.$ac_ext <<_ACEOF
19368/* end confdefs.h. */
19369$ac_includes_default
19370int
19371main ()
19372{
19373static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19374test_array [0] = 0
19375
19376 ;
19377 return 0;
19378}
19379_ACEOF
19380rm -f conftest.$ac_objext
19381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19382 (eval $ac_compile) 2>conftest.er1
a848cd7e 19383 ac_status=$?
ac1cb8d3
VS
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
a848cd7e
SC
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
7067783d
PC
19389 { ac_try='test -z "$ac_cxx_werror_flag"
19390 || test ! -s conftest.err'
ac1cb8d3
VS
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 ac_hi=$ac_mid; break
19403else
19404 echo "$as_me: failed program was:" >&5
19405sed 's/^/| /' conftest.$ac_ext >&5
19406
19407ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19408 if test $ac_lo -le $ac_mid; then
19409 ac_lo= ac_hi=
19410 break
19411 fi
19412 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19413fi
ac1cb8d3 19414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19415 done
19416else
19417 echo "$as_me: failed program was:" >&5
19418sed 's/^/| /' conftest.$ac_ext >&5
19419
19420cat >conftest.$ac_ext <<_ACEOF
19421/* confdefs.h. */
19422_ACEOF
19423cat confdefs.h >>conftest.$ac_ext
19424cat >>conftest.$ac_ext <<_ACEOF
19425/* end confdefs.h. */
19426$ac_includes_default
19427int
19428main ()
19429{
19430static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19431test_array [0] = 0
19432
19433 ;
19434 return 0;
19435}
19436_ACEOF
19437rm -f conftest.$ac_objext
19438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19439 (eval $ac_compile) 2>conftest.er1
a848cd7e 19440 ac_status=$?
ac1cb8d3
VS
19441 grep -v '^ *+' conftest.er1 >conftest.err
19442 rm -f conftest.er1
19443 cat conftest.err >&5
a848cd7e
SC
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } &&
7067783d
PC
19446 { ac_try='test -z "$ac_cxx_werror_flag"
19447 || test ! -s conftest.err'
ac1cb8d3
VS
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; } &&
19453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455 (eval $ac_try) 2>&5
19456 ac_status=$?
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; }; then
19459 ac_hi=-1 ac_mid=-1
19460 while :; do
19461 cat >conftest.$ac_ext <<_ACEOF
19462/* confdefs.h. */
19463_ACEOF
19464cat confdefs.h >>conftest.$ac_ext
19465cat >>conftest.$ac_ext <<_ACEOF
19466/* end confdefs.h. */
19467$ac_includes_default
19468int
19469main ()
19470{
19471static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19472test_array [0] = 0
19473
19474 ;
19475 return 0;
19476}
19477_ACEOF
19478rm -f conftest.$ac_objext
19479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19480 (eval $ac_compile) 2>conftest.er1
a848cd7e 19481 ac_status=$?
ac1cb8d3
VS
19482 grep -v '^ *+' conftest.er1 >conftest.err
19483 rm -f conftest.er1
19484 cat conftest.err >&5
a848cd7e
SC
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } &&
7067783d
PC
19487 { ac_try='test -z "$ac_cxx_werror_flag"
19488 || test ! -s conftest.err'
ac1cb8d3
VS
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 ac_lo=$ac_mid; break
19501else
19502 echo "$as_me: failed program was:" >&5
19503sed 's/^/| /' conftest.$ac_ext >&5
19504
19505ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19506 if test $ac_mid -le $ac_hi; then
19507 ac_lo= ac_hi=
19508 break
19509 fi
19510 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19511fi
ac1cb8d3 19512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19513 done
19514else
19515 echo "$as_me: failed program was:" >&5
19516sed 's/^/| /' conftest.$ac_ext >&5
19517
19518ac_lo= ac_hi=
19519fi
ac1cb8d3 19520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19521fi
ac1cb8d3 19522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19523# Binary search between lo and hi bounds.
19524while test "x$ac_lo" != "x$ac_hi"; do
19525 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19526 cat >conftest.$ac_ext <<_ACEOF
19527/* confdefs.h. */
19528_ACEOF
19529cat confdefs.h >>conftest.$ac_ext
19530cat >>conftest.$ac_ext <<_ACEOF
19531/* end confdefs.h. */
19532$ac_includes_default
19533int
19534main ()
19535{
19536static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19537test_array [0] = 0
19538
19539 ;
19540 return 0;
19541}
19542_ACEOF
19543rm -f conftest.$ac_objext
19544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19545 (eval $ac_compile) 2>conftest.er1
a848cd7e 19546 ac_status=$?
ac1cb8d3
VS
19547 grep -v '^ *+' conftest.er1 >conftest.err
19548 rm -f conftest.er1
19549 cat conftest.err >&5
a848cd7e
SC
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
7067783d
PC
19552 { ac_try='test -z "$ac_cxx_werror_flag"
19553 || test ! -s conftest.err'
ac1cb8d3
VS
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; } &&
19559 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19565 ac_hi=$ac_mid
19566else
19567 echo "$as_me: failed program was:" >&5
19568sed 's/^/| /' conftest.$ac_ext >&5
19569
19570ac_lo=`expr '(' $ac_mid ')' + 1`
19571fi
ac1cb8d3 19572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19573done
19574case $ac_lo in
19575?*) ac_cv_sizeof_int=$ac_lo;;
19576'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19577See \`config.log' for more details." >&5
19578echo "$as_me: error: cannot compute sizeof (int), 77
19579See \`config.log' for more details." >&2;}
19580 { (exit 1); exit 1; }; } ;;
19581esac
19582else
19583 if test "$cross_compiling" = yes; then
7067783d
PC
19584 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19585See \`config.log' for more details." >&5
19586echo "$as_me: error: cannot run test program while cross compiling
19587See \`config.log' for more details." >&2;}
a848cd7e
SC
19588 { (exit 1); exit 1; }; }
19589else
19590 cat >conftest.$ac_ext <<_ACEOF
19591/* confdefs.h. */
19592_ACEOF
19593cat confdefs.h >>conftest.$ac_ext
19594cat >>conftest.$ac_ext <<_ACEOF
19595/* end confdefs.h. */
19596$ac_includes_default
19597long longval () { return (long) (sizeof (int)); }
19598unsigned long ulongval () { return (long) (sizeof (int)); }
19599#include <stdio.h>
19600#include <stdlib.h>
19601int
19602main ()
19603{
19604
19605 FILE *f = fopen ("conftest.val", "w");
19606 if (! f)
19607 exit (1);
19608 if (((long) (sizeof (int))) < 0)
19609 {
19610 long i = longval ();
19611 if (i != ((long) (sizeof (int))))
19612 exit (1);
19613 fprintf (f, "%ld\n", i);
19614 }
19615 else
19616 {
19617 unsigned long i = ulongval ();
19618 if (i != ((long) (sizeof (int))))
19619 exit (1);
19620 fprintf (f, "%lu\n", i);
19621 }
19622 exit (ferror (f) || fclose (f) != 0);
19623
19624 ;
19625 return 0;
19626}
19627_ACEOF
19628rm -f conftest$ac_exeext
19629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19630 (eval $ac_link) 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
19639 ac_cv_sizeof_int=`cat conftest.val`
19640else
19641 echo "$as_me: program exited with status $ac_status" >&5
19642echo "$as_me: failed program was:" >&5
19643sed 's/^/| /' conftest.$ac_ext >&5
19644
19645( exit $ac_status )
19646{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19647See \`config.log' for more details." >&5
19648echo "$as_me: error: cannot compute sizeof (int), 77
19649See \`config.log' for more details." >&2;}
19650 { (exit 1); exit 1; }; }
19651fi
ac1cb8d3 19652rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19653fi
19654fi
19655rm -f conftest.val
19656else
19657 ac_cv_sizeof_int=0
19658fi
19659fi
19660echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19661echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19662cat >>confdefs.h <<_ACEOF
19663#define SIZEOF_INT $ac_cv_sizeof_int
19664_ACEOF
19665
19666
19667echo "$as_me:$LINENO: checking for long" >&5
19668echo $ECHO_N "checking for long... $ECHO_C" >&6
19669if test "${ac_cv_type_long+set}" = set; then
19670 echo $ECHO_N "(cached) $ECHO_C" >&6
19671else
19672 cat >conftest.$ac_ext <<_ACEOF
19673/* confdefs.h. */
19674_ACEOF
19675cat confdefs.h >>conftest.$ac_ext
19676cat >>conftest.$ac_ext <<_ACEOF
19677/* end confdefs.h. */
19678$ac_includes_default
19679int
19680main ()
19681{
19682if ((long *) 0)
19683 return 0;
19684if (sizeof (long))
19685 return 0;
19686 ;
19687 return 0;
19688}
19689_ACEOF
19690rm -f conftest.$ac_objext
19691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19692 (eval $ac_compile) 2>conftest.er1
a848cd7e 19693 ac_status=$?
ac1cb8d3
VS
19694 grep -v '^ *+' conftest.er1 >conftest.err
19695 rm -f conftest.er1
19696 cat conftest.err >&5
a848cd7e
SC
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } &&
7067783d
PC
19699 { ac_try='test -z "$ac_cxx_werror_flag"
19700 || test ! -s conftest.err'
ac1cb8d3
VS
19701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702 (eval $ac_try) 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; } &&
19706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708 (eval $ac_try) 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; }; then
19712 ac_cv_type_long=yes
19713else
19714 echo "$as_me: failed program was:" >&5
19715sed 's/^/| /' conftest.$ac_ext >&5
19716
19717ac_cv_type_long=no
19718fi
ac1cb8d3 19719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19720fi
19721echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19722echo "${ECHO_T}$ac_cv_type_long" >&6
19723
19724echo "$as_me:$LINENO: checking size of long" >&5
19725echo $ECHO_N "checking size of long... $ECHO_C" >&6
19726if test "${ac_cv_sizeof_long+set}" = set; then
19727 echo $ECHO_N "(cached) $ECHO_C" >&6
19728else
19729 if test "$ac_cv_type_long" = yes; then
19730 # The cast to unsigned long works around a bug in the HP C Compiler
19731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19733 # This bug is HP SR number 8606223364.
19734 if test "$cross_compiling" = yes; then
19735 # Depending upon the size, compute the lo and hi bounds.
19736cat >conftest.$ac_ext <<_ACEOF
19737/* confdefs.h. */
19738_ACEOF
19739cat confdefs.h >>conftest.$ac_ext
19740cat >>conftest.$ac_ext <<_ACEOF
19741/* end confdefs.h. */
19742$ac_includes_default
19743int
19744main ()
19745{
19746static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19747test_array [0] = 0
19748
19749 ;
19750 return 0;
19751}
19752_ACEOF
19753rm -f conftest.$ac_objext
19754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19755 (eval $ac_compile) 2>conftest.er1
a848cd7e 19756 ac_status=$?
ac1cb8d3
VS
19757 grep -v '^ *+' conftest.er1 >conftest.err
19758 rm -f conftest.er1
19759 cat conftest.err >&5
a848cd7e
SC
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } &&
7067783d
PC
19762 { ac_try='test -z "$ac_cxx_werror_flag"
19763 || test ! -s conftest.err'
ac1cb8d3
VS
19764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765 (eval $ac_try) 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 ac_lo=0 ac_mid=0
19776 while :; do
19777 cat >conftest.$ac_ext <<_ACEOF
19778/* confdefs.h. */
19779_ACEOF
19780cat confdefs.h >>conftest.$ac_ext
19781cat >>conftest.$ac_ext <<_ACEOF
19782/* end confdefs.h. */
19783$ac_includes_default
19784int
19785main ()
19786{
19787static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19788test_array [0] = 0
19789
19790 ;
19791 return 0;
19792}
19793_ACEOF
19794rm -f conftest.$ac_objext
19795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19796 (eval $ac_compile) 2>conftest.er1
a848cd7e 19797 ac_status=$?
ac1cb8d3
VS
19798 grep -v '^ *+' conftest.er1 >conftest.err
19799 rm -f conftest.er1
19800 cat conftest.err >&5
a848cd7e
SC
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
7067783d
PC
19803 { ac_try='test -z "$ac_cxx_werror_flag"
19804 || test ! -s conftest.err'
ac1cb8d3
VS
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; } &&
19810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 ac_hi=$ac_mid; break
19817else
19818 echo "$as_me: failed program was:" >&5
19819sed 's/^/| /' conftest.$ac_ext >&5
19820
19821ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19822 if test $ac_lo -le $ac_mid; then
19823 ac_lo= ac_hi=
19824 break
19825 fi
19826 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19827fi
ac1cb8d3 19828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19829 done
19830else
19831 echo "$as_me: failed program was:" >&5
19832sed 's/^/| /' conftest.$ac_ext >&5
19833
19834cat >conftest.$ac_ext <<_ACEOF
19835/* confdefs.h. */
19836_ACEOF
19837cat confdefs.h >>conftest.$ac_ext
19838cat >>conftest.$ac_ext <<_ACEOF
19839/* end confdefs.h. */
19840$ac_includes_default
19841int
19842main ()
19843{
19844static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19845test_array [0] = 0
19846
19847 ;
19848 return 0;
19849}
19850_ACEOF
19851rm -f conftest.$ac_objext
19852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19853 (eval $ac_compile) 2>conftest.er1
a848cd7e 19854 ac_status=$?
ac1cb8d3
VS
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
a848cd7e
SC
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
7067783d
PC
19860 { ac_try='test -z "$ac_cxx_werror_flag"
19861 || test ! -s conftest.err'
ac1cb8d3
VS
19862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863 (eval $ac_try) 2>&5
19864 ac_status=$?
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; } &&
19867 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 ac_hi=-1 ac_mid=-1
19874 while :; do
19875 cat >conftest.$ac_ext <<_ACEOF
19876/* confdefs.h. */
19877_ACEOF
19878cat confdefs.h >>conftest.$ac_ext
19879cat >>conftest.$ac_ext <<_ACEOF
19880/* end confdefs.h. */
19881$ac_includes_default
19882int
19883main ()
19884{
19885static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19886test_array [0] = 0
19887
19888 ;
19889 return 0;
19890}
19891_ACEOF
19892rm -f conftest.$ac_objext
19893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19894 (eval $ac_compile) 2>conftest.er1
a848cd7e 19895 ac_status=$?
ac1cb8d3
VS
19896 grep -v '^ *+' conftest.er1 >conftest.err
19897 rm -f conftest.er1
19898 cat conftest.err >&5
a848cd7e
SC
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } &&
7067783d
PC
19901 { ac_try='test -z "$ac_cxx_werror_flag"
19902 || test ! -s conftest.err'
ac1cb8d3
VS
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19905 ac_status=$?
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; } &&
19908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910 (eval $ac_try) 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; }; then
19914 ac_lo=$ac_mid; break
19915else
19916 echo "$as_me: failed program was:" >&5
19917sed 's/^/| /' conftest.$ac_ext >&5
19918
19919ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19920 if test $ac_mid -le $ac_hi; then
19921 ac_lo= ac_hi=
19922 break
19923 fi
19924 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19925fi
ac1cb8d3 19926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19927 done
19928else
19929 echo "$as_me: failed program was:" >&5
19930sed 's/^/| /' conftest.$ac_ext >&5
19931
19932ac_lo= ac_hi=
19933fi
ac1cb8d3 19934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19935fi
ac1cb8d3 19936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19937# Binary search between lo and hi bounds.
19938while test "x$ac_lo" != "x$ac_hi"; do
19939 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19940 cat >conftest.$ac_ext <<_ACEOF
19941/* confdefs.h. */
19942_ACEOF
19943cat confdefs.h >>conftest.$ac_ext
19944cat >>conftest.$ac_ext <<_ACEOF
19945/* end confdefs.h. */
19946$ac_includes_default
19947int
19948main ()
19949{
19950static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19951test_array [0] = 0
19952
19953 ;
19954 return 0;
19955}
19956_ACEOF
19957rm -f conftest.$ac_objext
19958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19959 (eval $ac_compile) 2>conftest.er1
a848cd7e 19960 ac_status=$?
ac1cb8d3
VS
19961 grep -v '^ *+' conftest.er1 >conftest.err
19962 rm -f conftest.er1
19963 cat conftest.err >&5
a848cd7e
SC
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } &&
7067783d
PC
19966 { ac_try='test -z "$ac_cxx_werror_flag"
19967 || test ! -s conftest.err'
ac1cb8d3
VS
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; }; then
19979 ac_hi=$ac_mid
19980else
19981 echo "$as_me: failed program was:" >&5
19982sed 's/^/| /' conftest.$ac_ext >&5
19983
19984ac_lo=`expr '(' $ac_mid ')' + 1`
19985fi
ac1cb8d3 19986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19987done
19988case $ac_lo in
19989?*) ac_cv_sizeof_long=$ac_lo;;
19990'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19991See \`config.log' for more details." >&5
19992echo "$as_me: error: cannot compute sizeof (long), 77
19993See \`config.log' for more details." >&2;}
19994 { (exit 1); exit 1; }; } ;;
19995esac
19996else
19997 if test "$cross_compiling" = yes; then
7067783d
PC
19998 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19999See \`config.log' for more details." >&5
20000echo "$as_me: error: cannot run test program while cross compiling
20001See \`config.log' for more details." >&2;}
a848cd7e
SC
20002 { (exit 1); exit 1; }; }
20003else
20004 cat >conftest.$ac_ext <<_ACEOF
20005/* confdefs.h. */
20006_ACEOF
20007cat confdefs.h >>conftest.$ac_ext
20008cat >>conftest.$ac_ext <<_ACEOF
20009/* end confdefs.h. */
20010$ac_includes_default
20011long longval () { return (long) (sizeof (long)); }
20012unsigned long ulongval () { return (long) (sizeof (long)); }
20013#include <stdio.h>
20014#include <stdlib.h>
20015int
20016main ()
20017{
20018
20019 FILE *f = fopen ("conftest.val", "w");
20020 if (! f)
20021 exit (1);
20022 if (((long) (sizeof (long))) < 0)
20023 {
20024 long i = longval ();
20025 if (i != ((long) (sizeof (long))))
20026 exit (1);
20027 fprintf (f, "%ld\n", i);
20028 }
20029 else
20030 {
20031 unsigned long i = ulongval ();
20032 if (i != ((long) (sizeof (long))))
20033 exit (1);
20034 fprintf (f, "%lu\n", i);
20035 }
20036 exit (ferror (f) || fclose (f) != 0);
20037
20038 ;
20039 return 0;
20040}
20041_ACEOF
20042rm -f conftest$ac_exeext
20043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20044 (eval $ac_link) 2>&5
20045 ac_status=$?
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20050 ac_status=$?
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; }; then
20053 ac_cv_sizeof_long=`cat conftest.val`
20054else
20055 echo "$as_me: program exited with status $ac_status" >&5
20056echo "$as_me: failed program was:" >&5
20057sed 's/^/| /' conftest.$ac_ext >&5
20058
20059( exit $ac_status )
20060{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20061See \`config.log' for more details." >&5
20062echo "$as_me: error: cannot compute sizeof (long), 77
20063See \`config.log' for more details." >&2;}
20064 { (exit 1); exit 1; }; }
20065fi
ac1cb8d3 20066rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20067fi
20068fi
20069rm -f conftest.val
20070else
20071 ac_cv_sizeof_long=0
20072fi
20073fi
20074echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20075echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20076cat >>confdefs.h <<_ACEOF
20077#define SIZEOF_LONG $ac_cv_sizeof_long
20078_ACEOF
20079
20080
20081echo "$as_me:$LINENO: checking for size_t" >&5
20082echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20083if test "${ac_cv_type_size_t+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20085else
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{
20096if ((size_t *) 0)
20097 return 0;
20098if (sizeof (size_t))
20099 return 0;
20100 ;
20101 return 0;
20102}
20103_ACEOF
20104rm -f conftest.$ac_objext
20105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20106 (eval $ac_compile) 2>conftest.er1
a848cd7e 20107 ac_status=$?
ac1cb8d3
VS
20108 grep -v '^ *+' conftest.er1 >conftest.err
20109 rm -f conftest.er1
20110 cat conftest.err >&5
a848cd7e
SC
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } &&
7067783d
PC
20113 { ac_try='test -z "$ac_cxx_werror_flag"
20114 || test ! -s conftest.err'
ac1cb8d3
VS
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20117 ac_status=$?
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; } &&
20120 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; }; then
20126 ac_cv_type_size_t=yes
20127else
20128 echo "$as_me: failed program was:" >&5
20129sed 's/^/| /' conftest.$ac_ext >&5
20130
20131ac_cv_type_size_t=no
20132fi
ac1cb8d3 20133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20134fi
20135echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20136echo "${ECHO_T}$ac_cv_type_size_t" >&6
20137
20138echo "$as_me:$LINENO: checking size of size_t" >&5
20139echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20140if test "${ac_cv_sizeof_size_t+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20142else
20143 if test "$ac_cv_type_size_t" = yes; then
20144 # The cast to unsigned long works around a bug in the HP C Compiler
20145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20146 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20147 # This bug is HP SR number 8606223364.
20148 if test "$cross_compiling" = yes; then
20149 # Depending upon the size, compute the lo and hi bounds.
20150cat >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 (size_t))) >= 0)];
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); } &&
7067783d
PC
20176 { ac_try='test -z "$ac_cxx_werror_flag"
20177 || test ! -s conftest.err'
ac1cb8d3
VS
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; } &&
20183 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; }; then
20189 ac_lo=0 ac_mid=0
20190 while :; do
20191 cat >conftest.$ac_ext <<_ACEOF
20192/* confdefs.h. */
20193_ACEOF
20194cat confdefs.h >>conftest.$ac_ext
20195cat >>conftest.$ac_ext <<_ACEOF
20196/* end confdefs.h. */
20197$ac_includes_default
20198int
20199main ()
20200{
20201static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20202test_array [0] = 0
20203
20204 ;
20205 return 0;
20206}
20207_ACEOF
20208rm -f conftest.$ac_objext
20209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20210 (eval $ac_compile) 2>conftest.er1
a848cd7e 20211 ac_status=$?
ac1cb8d3
VS
20212 grep -v '^ *+' conftest.er1 >conftest.err
20213 rm -f conftest.er1
20214 cat conftest.err >&5
a848cd7e
SC
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } &&
7067783d
PC
20217 { ac_try='test -z "$ac_cxx_werror_flag"
20218 || test ! -s conftest.err'
ac1cb8d3
VS
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20221 ac_status=$?
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; } &&
20224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 ac_hi=$ac_mid; break
20231else
20232 echo "$as_me: failed program was:" >&5
20233sed 's/^/| /' conftest.$ac_ext >&5
20234
20235ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20236 if test $ac_lo -le $ac_mid; then
20237 ac_lo= ac_hi=
20238 break
20239 fi
20240 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20241fi
ac1cb8d3 20242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20243 done
20244else
20245 echo "$as_me: failed program was:" >&5
20246sed 's/^/| /' conftest.$ac_ext >&5
20247
20248cat >conftest.$ac_ext <<_ACEOF
20249/* confdefs.h. */
20250_ACEOF
20251cat confdefs.h >>conftest.$ac_ext
20252cat >>conftest.$ac_ext <<_ACEOF
20253/* end confdefs.h. */
20254$ac_includes_default
20255int
20256main ()
20257{
20258static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20259test_array [0] = 0
20260
20261 ;
20262 return 0;
20263}
20264_ACEOF
20265rm -f conftest.$ac_objext
20266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20267 (eval $ac_compile) 2>conftest.er1
a848cd7e 20268 ac_status=$?
ac1cb8d3
VS
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
a848cd7e
SC
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } &&
7067783d
PC
20274 { ac_try='test -z "$ac_cxx_werror_flag"
20275 || test ! -s conftest.err'
ac1cb8d3
VS
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20278 ac_status=$?
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; } &&
20281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 ac_hi=-1 ac_mid=-1
20288 while :; do
20289 cat >conftest.$ac_ext <<_ACEOF
20290/* confdefs.h. */
20291_ACEOF
20292cat confdefs.h >>conftest.$ac_ext
20293cat >>conftest.$ac_ext <<_ACEOF
20294/* end confdefs.h. */
20295$ac_includes_default
20296int
20297main ()
20298{
20299static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20300test_array [0] = 0
20301
20302 ;
20303 return 0;
20304}
20305_ACEOF
20306rm -f conftest.$ac_objext
20307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20308 (eval $ac_compile) 2>conftest.er1
a848cd7e 20309 ac_status=$?
ac1cb8d3
VS
20310 grep -v '^ *+' conftest.er1 >conftest.err
20311 rm -f conftest.er1
20312 cat conftest.err >&5
a848cd7e
SC
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); } &&
7067783d
PC
20315 { ac_try='test -z "$ac_cxx_werror_flag"
20316 || test ! -s conftest.err'
ac1cb8d3
VS
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20319 ac_status=$?
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; } &&
20322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324 (eval $ac_try) 2>&5
20325 ac_status=$?
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; }; then
20328 ac_lo=$ac_mid; break
20329else
20330 echo "$as_me: failed program was:" >&5
20331sed 's/^/| /' conftest.$ac_ext >&5
20332
20333ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20334 if test $ac_mid -le $ac_hi; then
20335 ac_lo= ac_hi=
20336 break
20337 fi
20338 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20339fi
ac1cb8d3 20340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20341 done
20342else
20343 echo "$as_me: failed program was:" >&5
20344sed 's/^/| /' conftest.$ac_ext >&5
20345
20346ac_lo= ac_hi=
20347fi
ac1cb8d3 20348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20349fi
ac1cb8d3 20350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20351# Binary search between lo and hi bounds.
20352while test "x$ac_lo" != "x$ac_hi"; do
20353 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20354 cat >conftest.$ac_ext <<_ACEOF
20355/* confdefs.h. */
20356_ACEOF
20357cat confdefs.h >>conftest.$ac_ext
20358cat >>conftest.$ac_ext <<_ACEOF
20359/* end confdefs.h. */
20360$ac_includes_default
20361int
20362main ()
20363{
20364static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20365test_array [0] = 0
20366
20367 ;
20368 return 0;
20369}
20370_ACEOF
20371rm -f conftest.$ac_objext
20372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20373 (eval $ac_compile) 2>conftest.er1
a848cd7e 20374 ac_status=$?
ac1cb8d3
VS
20375 grep -v '^ *+' conftest.er1 >conftest.err
20376 rm -f conftest.er1
20377 cat conftest.err >&5
a848cd7e
SC
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } &&
7067783d
PC
20380 { ac_try='test -z "$ac_cxx_werror_flag"
20381 || test ! -s conftest.err'
ac1cb8d3
VS
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20384 ac_status=$?
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; } &&
20387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20390 ac_status=$?
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
20393 ac_hi=$ac_mid
20394else
20395 echo "$as_me: failed program was:" >&5
20396sed 's/^/| /' conftest.$ac_ext >&5
20397
20398ac_lo=`expr '(' $ac_mid ')' + 1`
20399fi
ac1cb8d3 20400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20401done
20402case $ac_lo in
20403?*) ac_cv_sizeof_size_t=$ac_lo;;
20404'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20405See \`config.log' for more details." >&5
20406echo "$as_me: error: cannot compute sizeof (size_t), 77
20407See \`config.log' for more details." >&2;}
20408 { (exit 1); exit 1; }; } ;;
20409esac
20410else
20411 if test "$cross_compiling" = yes; then
7067783d
PC
20412 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20413See \`config.log' for more details." >&5
20414echo "$as_me: error: cannot run test program while cross compiling
20415See \`config.log' for more details." >&2;}
a848cd7e
SC
20416 { (exit 1); exit 1; }; }
20417else
20418 cat >conftest.$ac_ext <<_ACEOF
20419/* confdefs.h. */
20420_ACEOF
20421cat confdefs.h >>conftest.$ac_ext
20422cat >>conftest.$ac_ext <<_ACEOF
20423/* end confdefs.h. */
20424$ac_includes_default
20425long longval () { return (long) (sizeof (size_t)); }
20426unsigned long ulongval () { return (long) (sizeof (size_t)); }
20427#include <stdio.h>
20428#include <stdlib.h>
20429int
20430main ()
20431{
20432
20433 FILE *f = fopen ("conftest.val", "w");
20434 if (! f)
20435 exit (1);
20436 if (((long) (sizeof (size_t))) < 0)
20437 {
20438 long i = longval ();
20439 if (i != ((long) (sizeof (size_t))))
20440 exit (1);
20441 fprintf (f, "%ld\n", i);
20442 }
20443 else
20444 {
20445 unsigned long i = ulongval ();
20446 if (i != ((long) (sizeof (size_t))))
20447 exit (1);
20448 fprintf (f, "%lu\n", i);
20449 }
20450 exit (ferror (f) || fclose (f) != 0);
20451
20452 ;
20453 return 0;
20454}
20455_ACEOF
20456rm -f conftest$ac_exeext
20457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20458 (eval $ac_link) 2>&5
20459 ac_status=$?
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463 (eval $ac_try) 2>&5
20464 ac_status=$?
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; }; then
20467 ac_cv_sizeof_size_t=`cat conftest.val`
20468else
20469 echo "$as_me: program exited with status $ac_status" >&5
20470echo "$as_me: failed program was:" >&5
20471sed 's/^/| /' conftest.$ac_ext >&5
20472
20473( exit $ac_status )
20474{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20475See \`config.log' for more details." >&5
20476echo "$as_me: error: cannot compute sizeof (size_t), 77
20477See \`config.log' for more details." >&2;}
20478 { (exit 1); exit 1; }; }
20479fi
ac1cb8d3 20480rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20481fi
20482fi
20483rm -f conftest.val
20484else
20485 ac_cv_sizeof_size_t=0
20486fi
20487fi
20488echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20489echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20490cat >>confdefs.h <<_ACEOF
20491#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20492_ACEOF
20493
20494
20495
20496case "${host}" in
20497 arm-*-linux* )
20498 echo "$as_me:$LINENO: checking for long long" >&5
20499echo $ECHO_N "checking for long long... $ECHO_C" >&6
20500if test "${ac_cv_type_long_long+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20502else
20503 cat >conftest.$ac_ext <<_ACEOF
20504/* confdefs.h. */
20505_ACEOF
20506cat confdefs.h >>conftest.$ac_ext
20507cat >>conftest.$ac_ext <<_ACEOF
20508/* end confdefs.h. */
20509$ac_includes_default
20510int
20511main ()
20512{
20513if ((long long *) 0)
20514 return 0;
20515if (sizeof (long long))
20516 return 0;
20517 ;
20518 return 0;
20519}
20520_ACEOF
20521rm -f conftest.$ac_objext
20522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20523 (eval $ac_compile) 2>conftest.er1
a848cd7e 20524 ac_status=$?
ac1cb8d3
VS
20525 grep -v '^ *+' conftest.er1 >conftest.err
20526 rm -f conftest.er1
20527 cat conftest.err >&5
a848cd7e
SC
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); } &&
7067783d
PC
20530 { ac_try='test -z "$ac_cxx_werror_flag"
20531 || test ! -s conftest.err'
ac1cb8d3
VS
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20534 ac_status=$?
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; } &&
20537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; }; then
20543 ac_cv_type_long_long=yes
20544else
20545 echo "$as_me: failed program was:" >&5
20546sed 's/^/| /' conftest.$ac_ext >&5
20547
20548ac_cv_type_long_long=no
20549fi
ac1cb8d3 20550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20551fi
20552echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20553echo "${ECHO_T}$ac_cv_type_long_long" >&6
20554
20555echo "$as_me:$LINENO: checking size of long long" >&5
20556echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20557if test "${ac_cv_sizeof_long_long+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20559else
20560 if test "$ac_cv_type_long_long" = yes; then
20561 # The cast to unsigned long works around a bug in the HP C Compiler
20562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20564 # This bug is HP SR number 8606223364.
20565 if test "$cross_compiling" = yes; then
20566 # Depending upon the size, compute the lo and hi bounds.
20567cat >conftest.$ac_ext <<_ACEOF
20568/* confdefs.h. */
20569_ACEOF
20570cat confdefs.h >>conftest.$ac_ext
20571cat >>conftest.$ac_ext <<_ACEOF
20572/* end confdefs.h. */
20573$ac_includes_default
20574int
20575main ()
20576{
20577static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20578test_array [0] = 0
20579
20580 ;
20581 return 0;
20582}
20583_ACEOF
20584rm -f conftest.$ac_objext
20585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20586 (eval $ac_compile) 2>conftest.er1
a848cd7e 20587 ac_status=$?
ac1cb8d3
VS
20588 grep -v '^ *+' conftest.er1 >conftest.err
20589 rm -f conftest.er1
20590 cat conftest.err >&5
a848cd7e
SC
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } &&
7067783d
PC
20593 { ac_try='test -z "$ac_cxx_werror_flag"
20594 || test ! -s conftest.err'
ac1cb8d3
VS
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20597 ac_status=$?
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; } &&
20600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20603 ac_status=$?
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; }; then
20606 ac_lo=0 ac_mid=0
20607 while :; do
20608 cat >conftest.$ac_ext <<_ACEOF
20609/* confdefs.h. */
20610_ACEOF
20611cat confdefs.h >>conftest.$ac_ext
20612cat >>conftest.$ac_ext <<_ACEOF
20613/* end confdefs.h. */
20614$ac_includes_default
20615int
20616main ()
20617{
20618static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20619test_array [0] = 0
20620
20621 ;
20622 return 0;
20623}
20624_ACEOF
20625rm -f conftest.$ac_objext
20626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20627 (eval $ac_compile) 2>conftest.er1
a848cd7e 20628 ac_status=$?
ac1cb8d3
VS
20629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
a848cd7e
SC
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } &&
7067783d
PC
20634 { ac_try='test -z "$ac_cxx_werror_flag"
20635 || test ! -s conftest.err'
ac1cb8d3
VS
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; } &&
20641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20643 (eval $ac_try) 2>&5
20644 ac_status=$?
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); }; }; then
20647 ac_hi=$ac_mid; break
20648else
20649 echo "$as_me: failed program was:" >&5
20650sed 's/^/| /' conftest.$ac_ext >&5
20651
20652ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20653 if test $ac_lo -le $ac_mid; then
20654 ac_lo= ac_hi=
20655 break
20656 fi
20657 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20658fi
ac1cb8d3 20659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20660 done
20661else
20662 echo "$as_me: failed program was:" >&5
20663sed 's/^/| /' conftest.$ac_ext >&5
20664
20665cat >conftest.$ac_ext <<_ACEOF
20666/* confdefs.h. */
20667_ACEOF
20668cat confdefs.h >>conftest.$ac_ext
20669cat >>conftest.$ac_ext <<_ACEOF
20670/* end confdefs.h. */
20671$ac_includes_default
20672int
20673main ()
20674{
20675static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20676test_array [0] = 0
20677
20678 ;
20679 return 0;
20680}
20681_ACEOF
20682rm -f conftest.$ac_objext
20683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20684 (eval $ac_compile) 2>conftest.er1
a848cd7e 20685 ac_status=$?
ac1cb8d3
VS
20686 grep -v '^ *+' conftest.er1 >conftest.err
20687 rm -f conftest.er1
20688 cat conftest.err >&5
a848cd7e
SC
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } &&
7067783d
PC
20691 { ac_try='test -z "$ac_cxx_werror_flag"
20692 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
20698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700 (eval $ac_try) 2>&5
20701 ac_status=$?
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; }; then
20704 ac_hi=-1 ac_mid=-1
20705 while :; do
20706 cat >conftest.$ac_ext <<_ACEOF
20707/* confdefs.h. */
20708_ACEOF
20709cat confdefs.h >>conftest.$ac_ext
20710cat >>conftest.$ac_ext <<_ACEOF
20711/* end confdefs.h. */
20712$ac_includes_default
20713int
20714main ()
20715{
20716static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20717test_array [0] = 0
20718
20719 ;
20720 return 0;
20721}
20722_ACEOF
20723rm -f conftest.$ac_objext
20724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20725 (eval $ac_compile) 2>conftest.er1
a848cd7e 20726 ac_status=$?
ac1cb8d3
VS
20727 grep -v '^ *+' conftest.er1 >conftest.err
20728 rm -f conftest.er1
20729 cat conftest.err >&5
a848cd7e
SC
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } &&
7067783d
PC
20732 { ac_try='test -z "$ac_cxx_werror_flag"
20733 || test ! -s conftest.err'
ac1cb8d3
VS
20734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735 (eval $ac_try) 2>&5
20736 ac_status=$?
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; } &&
20739 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; }; then
20745 ac_lo=$ac_mid; break
20746else
20747 echo "$as_me: failed program was:" >&5
20748sed 's/^/| /' conftest.$ac_ext >&5
20749
20750ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20751 if test $ac_mid -le $ac_hi; then
20752 ac_lo= ac_hi=
20753 break
20754 fi
20755 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20756fi
ac1cb8d3 20757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20758 done
20759else
20760 echo "$as_me: failed program was:" >&5
20761sed 's/^/| /' conftest.$ac_ext >&5
20762
20763ac_lo= ac_hi=
20764fi
ac1cb8d3 20765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20766fi
ac1cb8d3 20767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20768# Binary search between lo and hi bounds.
20769while test "x$ac_lo" != "x$ac_hi"; do
20770 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20771 cat >conftest.$ac_ext <<_ACEOF
20772/* confdefs.h. */
20773_ACEOF
20774cat confdefs.h >>conftest.$ac_ext
20775cat >>conftest.$ac_ext <<_ACEOF
20776/* end confdefs.h. */
20777$ac_includes_default
20778int
20779main ()
20780{
20781static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20782test_array [0] = 0
20783
20784 ;
20785 return 0;
20786}
20787_ACEOF
20788rm -f conftest.$ac_objext
20789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20790 (eval $ac_compile) 2>conftest.er1
a848cd7e 20791 ac_status=$?
ac1cb8d3
VS
20792 grep -v '^ *+' conftest.er1 >conftest.err
20793 rm -f conftest.er1
20794 cat conftest.err >&5
a848cd7e
SC
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } &&
7067783d
PC
20797 { ac_try='test -z "$ac_cxx_werror_flag"
20798 || test ! -s conftest.err'
ac1cb8d3
VS
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } &&
20804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 ac_hi=$ac_mid
20811else
20812 echo "$as_me: failed program was:" >&5
20813sed 's/^/| /' conftest.$ac_ext >&5
20814
20815ac_lo=`expr '(' $ac_mid ')' + 1`
20816fi
ac1cb8d3 20817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20818done
20819case $ac_lo in
20820?*) ac_cv_sizeof_long_long=$ac_lo;;
20821'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20822See \`config.log' for more details." >&5
20823echo "$as_me: error: cannot compute sizeof (long long), 77
20824See \`config.log' for more details." >&2;}
20825 { (exit 1); exit 1; }; } ;;
20826esac
20827else
20828 if test "$cross_compiling" = yes; then
7067783d
PC
20829 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20830See \`config.log' for more details." >&5
20831echo "$as_me: error: cannot run test program while cross compiling
20832See \`config.log' for more details." >&2;}
a848cd7e
SC
20833 { (exit 1); exit 1; }; }
20834else
20835 cat >conftest.$ac_ext <<_ACEOF
20836/* confdefs.h. */
20837_ACEOF
20838cat confdefs.h >>conftest.$ac_ext
20839cat >>conftest.$ac_ext <<_ACEOF
20840/* end confdefs.h. */
20841$ac_includes_default
20842long longval () { return (long) (sizeof (long long)); }
20843unsigned long ulongval () { return (long) (sizeof (long long)); }
20844#include <stdio.h>
20845#include <stdlib.h>
20846int
20847main ()
20848{
20849
20850 FILE *f = fopen ("conftest.val", "w");
20851 if (! f)
20852 exit (1);
20853 if (((long) (sizeof (long long))) < 0)
20854 {
20855 long i = longval ();
20856 if (i != ((long) (sizeof (long long))))
20857 exit (1);
20858 fprintf (f, "%ld\n", i);
20859 }
20860 else
20861 {
20862 unsigned long i = ulongval ();
20863 if (i != ((long) (sizeof (long long))))
20864 exit (1);
20865 fprintf (f, "%lu\n", i);
20866 }
20867 exit (ferror (f) || fclose (f) != 0);
20868
20869 ;
20870 return 0;
20871}
20872_ACEOF
20873rm -f conftest$ac_exeext
20874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20875 (eval $ac_link) 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20884 ac_cv_sizeof_long_long=`cat conftest.val`
20885else
20886 echo "$as_me: program exited with status $ac_status" >&5
20887echo "$as_me: failed program was:" >&5
20888sed 's/^/| /' conftest.$ac_ext >&5
20889
20890( exit $ac_status )
20891{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20892See \`config.log' for more details." >&5
20893echo "$as_me: error: cannot compute sizeof (long long), 77
20894See \`config.log' for more details." >&2;}
20895 { (exit 1); exit 1; }; }
20896fi
ac1cb8d3 20897rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20898fi
20899fi
20900rm -f conftest.val
20901else
20902 ac_cv_sizeof_long_long=0
20903fi
20904fi
20905echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20906echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20907cat >>confdefs.h <<_ACEOF
20908#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20909_ACEOF
20910
20911
20912 ;;
20913 *-hp-hpux* )
20914 echo "$as_me:$LINENO: checking for long long" >&5
20915echo $ECHO_N "checking for long long... $ECHO_C" >&6
20916if test "${ac_cv_type_long_long+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20918else
20919 cat >conftest.$ac_ext <<_ACEOF
20920/* confdefs.h. */
20921_ACEOF
20922cat confdefs.h >>conftest.$ac_ext
20923cat >>conftest.$ac_ext <<_ACEOF
20924/* end confdefs.h. */
20925$ac_includes_default
20926int
20927main ()
20928{
20929if ((long long *) 0)
20930 return 0;
20931if (sizeof (long long))
20932 return 0;
20933 ;
20934 return 0;
20935}
20936_ACEOF
20937rm -f conftest.$ac_objext
20938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20939 (eval $ac_compile) 2>conftest.er1
a848cd7e 20940 ac_status=$?
ac1cb8d3
VS
20941 grep -v '^ *+' conftest.er1 >conftest.err
20942 rm -f conftest.er1
20943 cat conftest.err >&5
a848cd7e
SC
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } &&
7067783d
PC
20946 { ac_try='test -z "$ac_cxx_werror_flag"
20947 || test ! -s conftest.err'
ac1cb8d3
VS
20948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20949 (eval $ac_try) 2>&5
20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; } &&
20953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20955 (eval $ac_try) 2>&5
20956 ac_status=$?
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); }; }; then
20959 ac_cv_type_long_long=yes
20960else
20961 echo "$as_me: failed program was:" >&5
20962sed 's/^/| /' conftest.$ac_ext >&5
20963
20964ac_cv_type_long_long=no
20965fi
ac1cb8d3 20966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20967fi
20968echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20969echo "${ECHO_T}$ac_cv_type_long_long" >&6
20970
20971echo "$as_me:$LINENO: checking size of long long" >&5
20972echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20973if test "${ac_cv_sizeof_long_long+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20975else
20976 if test "$ac_cv_type_long_long" = yes; then
20977 # The cast to unsigned long works around a bug in the HP C Compiler
20978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20980 # This bug is HP SR number 8606223364.
20981 if test "$cross_compiling" = yes; then
20982 # Depending upon the size, compute the lo and hi bounds.
20983cat >conftest.$ac_ext <<_ACEOF
20984/* confdefs.h. */
20985_ACEOF
20986cat confdefs.h >>conftest.$ac_ext
20987cat >>conftest.$ac_ext <<_ACEOF
20988/* end confdefs.h. */
20989$ac_includes_default
20990int
20991main ()
20992{
20993static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20994test_array [0] = 0
20995
20996 ;
20997 return 0;
20998}
20999_ACEOF
21000rm -f conftest.$ac_objext
21001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21002 (eval $ac_compile) 2>conftest.er1
a848cd7e 21003 ac_status=$?
ac1cb8d3
VS
21004 grep -v '^ *+' conftest.er1 >conftest.err
21005 rm -f conftest.er1
21006 cat conftest.err >&5
a848cd7e
SC
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
7067783d
PC
21009 { ac_try='test -z "$ac_cxx_werror_flag"
21010 || test ! -s conftest.err'
ac1cb8d3
VS
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21013 ac_status=$?
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; } &&
21016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21019 ac_status=$?
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 ac_lo=0 ac_mid=0
21023 while :; do
21024 cat >conftest.$ac_ext <<_ACEOF
21025/* confdefs.h. */
21026_ACEOF
21027cat confdefs.h >>conftest.$ac_ext
21028cat >>conftest.$ac_ext <<_ACEOF
21029/* end confdefs.h. */
21030$ac_includes_default
21031int
21032main ()
21033{
21034static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21035test_array [0] = 0
21036
21037 ;
21038 return 0;
21039}
21040_ACEOF
21041rm -f conftest.$ac_objext
21042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21043 (eval $ac_compile) 2>conftest.er1
a848cd7e 21044 ac_status=$?
ac1cb8d3
VS
21045 grep -v '^ *+' conftest.er1 >conftest.err
21046 rm -f conftest.er1
21047 cat conftest.err >&5
a848cd7e
SC
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); } &&
7067783d
PC
21050 { ac_try='test -z "$ac_cxx_werror_flag"
21051 || test ! -s conftest.err'
ac1cb8d3
VS
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21054 ac_status=$?
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; } &&
21057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21059 (eval $ac_try) 2>&5
21060 ac_status=$?
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); }; }; then
21063 ac_hi=$ac_mid; break
21064else
21065 echo "$as_me: failed program was:" >&5
21066sed 's/^/| /' conftest.$ac_ext >&5
21067
21068ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21069 if test $ac_lo -le $ac_mid; then
21070 ac_lo= ac_hi=
21071 break
21072 fi
21073 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21074fi
ac1cb8d3 21075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21076 done
21077else
21078 echo "$as_me: failed program was:" >&5
21079sed 's/^/| /' conftest.$ac_ext >&5
21080
21081cat >conftest.$ac_ext <<_ACEOF
21082/* confdefs.h. */
21083_ACEOF
21084cat confdefs.h >>conftest.$ac_ext
21085cat >>conftest.$ac_ext <<_ACEOF
21086/* end confdefs.h. */
21087$ac_includes_default
21088int
21089main ()
21090{
21091static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21092test_array [0] = 0
21093
21094 ;
21095 return 0;
21096}
21097_ACEOF
21098rm -f conftest.$ac_objext
21099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21100 (eval $ac_compile) 2>conftest.er1
a848cd7e 21101 ac_status=$?
ac1cb8d3
VS
21102 grep -v '^ *+' conftest.er1 >conftest.err
21103 rm -f conftest.er1
21104 cat conftest.err >&5
a848cd7e
SC
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } &&
7067783d
PC
21107 { ac_try='test -z "$ac_cxx_werror_flag"
21108 || test ! -s conftest.err'
ac1cb8d3
VS
21109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110 (eval $ac_try) 2>&5
21111 ac_status=$?
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; } &&
21114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116 (eval $ac_try) 2>&5
21117 ac_status=$?
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); }; }; then
21120 ac_hi=-1 ac_mid=-1
21121 while :; do
21122 cat >conftest.$ac_ext <<_ACEOF
21123/* confdefs.h. */
21124_ACEOF
21125cat confdefs.h >>conftest.$ac_ext
21126cat >>conftest.$ac_ext <<_ACEOF
21127/* end confdefs.h. */
21128$ac_includes_default
21129int
21130main ()
21131{
21132static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21133test_array [0] = 0
21134
21135 ;
21136 return 0;
21137}
21138_ACEOF
21139rm -f conftest.$ac_objext
21140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21141 (eval $ac_compile) 2>conftest.er1
a848cd7e 21142 ac_status=$?
ac1cb8d3
VS
21143 grep -v '^ *+' conftest.er1 >conftest.err
21144 rm -f conftest.er1
21145 cat conftest.err >&5
a848cd7e
SC
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } &&
7067783d
PC
21148 { ac_try='test -z "$ac_cxx_werror_flag"
21149 || test ! -s conftest.err'
ac1cb8d3
VS
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; } &&
21155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157 (eval $ac_try) 2>&5
21158 ac_status=$?
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; }; then
21161 ac_lo=$ac_mid; break
21162else
21163 echo "$as_me: failed program was:" >&5
21164sed 's/^/| /' conftest.$ac_ext >&5
21165
21166ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21167 if test $ac_mid -le $ac_hi; then
21168 ac_lo= ac_hi=
21169 break
21170 fi
21171 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21172fi
ac1cb8d3 21173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21174 done
21175else
21176 echo "$as_me: failed program was:" >&5
21177sed 's/^/| /' conftest.$ac_ext >&5
21178
21179ac_lo= ac_hi=
21180fi
ac1cb8d3 21181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21182fi
ac1cb8d3 21183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21184# Binary search between lo and hi bounds.
21185while test "x$ac_lo" != "x$ac_hi"; do
21186 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21187 cat >conftest.$ac_ext <<_ACEOF
21188/* confdefs.h. */
21189_ACEOF
21190cat confdefs.h >>conftest.$ac_ext
21191cat >>conftest.$ac_ext <<_ACEOF
21192/* end confdefs.h. */
21193$ac_includes_default
21194int
21195main ()
21196{
21197static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21198test_array [0] = 0
21199
21200 ;
21201 return 0;
21202}
21203_ACEOF
21204rm -f conftest.$ac_objext
21205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21206 (eval $ac_compile) 2>conftest.er1
a848cd7e 21207 ac_status=$?
ac1cb8d3
VS
21208 grep -v '^ *+' conftest.er1 >conftest.err
21209 rm -f conftest.er1
21210 cat conftest.err >&5
a848cd7e
SC
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } &&
7067783d
PC
21213 { ac_try='test -z "$ac_cxx_werror_flag"
21214 || test ! -s conftest.err'
ac1cb8d3
VS
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21217 ac_status=$?
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; } &&
21220 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21222 (eval $ac_try) 2>&5
21223 ac_status=$?
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; }; then
21226 ac_hi=$ac_mid
21227else
21228 echo "$as_me: failed program was:" >&5
21229sed 's/^/| /' conftest.$ac_ext >&5
21230
21231ac_lo=`expr '(' $ac_mid ')' + 1`
21232fi
ac1cb8d3 21233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21234done
21235case $ac_lo in
21236?*) ac_cv_sizeof_long_long=$ac_lo;;
21237'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21238See \`config.log' for more details." >&5
21239echo "$as_me: error: cannot compute sizeof (long long), 77
21240See \`config.log' for more details." >&2;}
21241 { (exit 1); exit 1; }; } ;;
21242esac
21243else
21244 if test "$cross_compiling" = yes; then
7067783d
PC
21245 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21246See \`config.log' for more details." >&5
21247echo "$as_me: error: cannot run test program while cross compiling
21248See \`config.log' for more details." >&2;}
a848cd7e
SC
21249 { (exit 1); exit 1; }; }
21250else
21251 cat >conftest.$ac_ext <<_ACEOF
21252/* confdefs.h. */
21253_ACEOF
21254cat confdefs.h >>conftest.$ac_ext
21255cat >>conftest.$ac_ext <<_ACEOF
21256/* end confdefs.h. */
21257$ac_includes_default
21258long longval () { return (long) (sizeof (long long)); }
21259unsigned long ulongval () { return (long) (sizeof (long long)); }
21260#include <stdio.h>
21261#include <stdlib.h>
21262int
21263main ()
21264{
21265
21266 FILE *f = fopen ("conftest.val", "w");
21267 if (! f)
21268 exit (1);
21269 if (((long) (sizeof (long long))) < 0)
21270 {
21271 long i = longval ();
21272 if (i != ((long) (sizeof (long long))))
21273 exit (1);
21274 fprintf (f, "%ld\n", i);
21275 }
21276 else
21277 {
21278 unsigned long i = ulongval ();
21279 if (i != ((long) (sizeof (long long))))
21280 exit (1);
21281 fprintf (f, "%lu\n", i);
21282 }
21283 exit (ferror (f) || fclose (f) != 0);
21284
21285 ;
21286 return 0;
21287}
21288_ACEOF
21289rm -f conftest$ac_exeext
21290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21291 (eval $ac_link) 2>&5
21292 ac_status=$?
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296 (eval $ac_try) 2>&5
21297 ac_status=$?
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); }; }; then
21300 ac_cv_sizeof_long_long=`cat conftest.val`
21301else
21302 echo "$as_me: program exited with status $ac_status" >&5
21303echo "$as_me: failed program was:" >&5
21304sed 's/^/| /' conftest.$ac_ext >&5
21305
21306( exit $ac_status )
21307{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21308See \`config.log' for more details." >&5
21309echo "$as_me: error: cannot compute sizeof (long long), 77
21310See \`config.log' for more details." >&2;}
21311 { (exit 1); exit 1; }; }
21312fi
ac1cb8d3 21313rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21314fi
21315fi
21316rm -f conftest.val
21317else
21318 ac_cv_sizeof_long_long=0
21319fi
21320fi
21321echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21322echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21323cat >>confdefs.h <<_ACEOF
21324#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21325_ACEOF
21326
21327
21328 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21329 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21330 fi
21331 ;;
21332 * )
21333 echo "$as_me:$LINENO: checking for long long" >&5
21334echo $ECHO_N "checking for long long... $ECHO_C" >&6
21335if test "${ac_cv_type_long_long+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21337else
21338 cat >conftest.$ac_ext <<_ACEOF
21339/* confdefs.h. */
21340_ACEOF
21341cat confdefs.h >>conftest.$ac_ext
21342cat >>conftest.$ac_ext <<_ACEOF
21343/* end confdefs.h. */
21344$ac_includes_default
21345int
21346main ()
21347{
21348if ((long long *) 0)
21349 return 0;
21350if (sizeof (long long))
21351 return 0;
21352 ;
21353 return 0;
21354}
21355_ACEOF
21356rm -f conftest.$ac_objext
21357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21358 (eval $ac_compile) 2>conftest.er1
a848cd7e 21359 ac_status=$?
ac1cb8d3
VS
21360 grep -v '^ *+' conftest.er1 >conftest.err
21361 rm -f conftest.er1
21362 cat conftest.err >&5
a848cd7e
SC
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } &&
7067783d
PC
21365 { ac_try='test -z "$ac_cxx_werror_flag"
21366 || test ! -s conftest.err'
ac1cb8d3
VS
21367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21368 (eval $ac_try) 2>&5
21369 ac_status=$?
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; } &&
21372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374 (eval $ac_try) 2>&5
21375 ac_status=$?
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; }; then
21378 ac_cv_type_long_long=yes
21379else
21380 echo "$as_me: failed program was:" >&5
21381sed 's/^/| /' conftest.$ac_ext >&5
21382
21383ac_cv_type_long_long=no
21384fi
ac1cb8d3 21385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21386fi
21387echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21388echo "${ECHO_T}$ac_cv_type_long_long" >&6
21389
21390echo "$as_me:$LINENO: checking size of long long" >&5
21391echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21392if test "${ac_cv_sizeof_long_long+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21394else
21395 if test "$ac_cv_type_long_long" = yes; then
21396 # The cast to unsigned long works around a bug in the HP C Compiler
21397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21399 # This bug is HP SR number 8606223364.
21400 if test "$cross_compiling" = yes; then
21401 # Depending upon the size, compute the lo and hi bounds.
21402cat >conftest.$ac_ext <<_ACEOF
21403/* confdefs.h. */
21404_ACEOF
21405cat confdefs.h >>conftest.$ac_ext
21406cat >>conftest.$ac_ext <<_ACEOF
21407/* end confdefs.h. */
21408$ac_includes_default
21409int
21410main ()
21411{
21412static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21413test_array [0] = 0
21414
21415 ;
21416 return 0;
21417}
21418_ACEOF
21419rm -f conftest.$ac_objext
21420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21421 (eval $ac_compile) 2>conftest.er1
a848cd7e 21422 ac_status=$?
ac1cb8d3
VS
21423 grep -v '^ *+' conftest.er1 >conftest.err
21424 rm -f conftest.er1
21425 cat conftest.err >&5
a848cd7e
SC
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); } &&
7067783d
PC
21428 { ac_try='test -z "$ac_cxx_werror_flag"
21429 || test ! -s conftest.err'
ac1cb8d3
VS
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; } &&
21435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; }; then
21441 ac_lo=0 ac_mid=0
21442 while :; do
21443 cat >conftest.$ac_ext <<_ACEOF
21444/* confdefs.h. */
21445_ACEOF
21446cat confdefs.h >>conftest.$ac_ext
21447cat >>conftest.$ac_ext <<_ACEOF
21448/* end confdefs.h. */
21449$ac_includes_default
21450int
21451main ()
21452{
21453static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21454test_array [0] = 0
21455
21456 ;
21457 return 0;
21458}
21459_ACEOF
21460rm -f conftest.$ac_objext
21461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21462 (eval $ac_compile) 2>conftest.er1
a848cd7e 21463 ac_status=$?
ac1cb8d3
VS
21464 grep -v '^ *+' conftest.er1 >conftest.err
21465 rm -f conftest.er1
21466 cat conftest.err >&5
a848cd7e
SC
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } &&
7067783d
PC
21469 { ac_try='test -z "$ac_cxx_werror_flag"
21470 || test ! -s conftest.err'
ac1cb8d3
VS
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; } &&
21476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21478 (eval $ac_try) 2>&5
21479 ac_status=$?
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); }; }; then
21482 ac_hi=$ac_mid; break
21483else
21484 echo "$as_me: failed program was:" >&5
21485sed 's/^/| /' conftest.$ac_ext >&5
21486
21487ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21488 if test $ac_lo -le $ac_mid; then
21489 ac_lo= ac_hi=
21490 break
21491 fi
21492 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21493fi
ac1cb8d3 21494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21495 done
21496else
21497 echo "$as_me: failed program was:" >&5
21498sed 's/^/| /' conftest.$ac_ext >&5
21499
21500cat >conftest.$ac_ext <<_ACEOF
21501/* confdefs.h. */
21502_ACEOF
21503cat confdefs.h >>conftest.$ac_ext
21504cat >>conftest.$ac_ext <<_ACEOF
21505/* end confdefs.h. */
21506$ac_includes_default
21507int
21508main ()
21509{
21510static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21511test_array [0] = 0
21512
21513 ;
21514 return 0;
21515}
21516_ACEOF
21517rm -f conftest.$ac_objext
21518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21519 (eval $ac_compile) 2>conftest.er1
a848cd7e 21520 ac_status=$?
ac1cb8d3
VS
21521 grep -v '^ *+' conftest.er1 >conftest.err
21522 rm -f conftest.er1
21523 cat conftest.err >&5
a848cd7e
SC
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } &&
7067783d
PC
21526 { ac_try='test -z "$ac_cxx_werror_flag"
21527 || test ! -s conftest.err'
ac1cb8d3
VS
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21530 ac_status=$?
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; } &&
21533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535 (eval $ac_try) 2>&5
21536 ac_status=$?
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; }; then
21539 ac_hi=-1 ac_mid=-1
21540 while :; do
21541 cat >conftest.$ac_ext <<_ACEOF
21542/* confdefs.h. */
21543_ACEOF
21544cat confdefs.h >>conftest.$ac_ext
21545cat >>conftest.$ac_ext <<_ACEOF
21546/* end confdefs.h. */
21547$ac_includes_default
21548int
21549main ()
21550{
21551static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21552test_array [0] = 0
21553
21554 ;
21555 return 0;
21556}
21557_ACEOF
21558rm -f conftest.$ac_objext
21559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21560 (eval $ac_compile) 2>conftest.er1
a848cd7e 21561 ac_status=$?
ac1cb8d3
VS
21562 grep -v '^ *+' conftest.er1 >conftest.err
21563 rm -f conftest.er1
21564 cat conftest.err >&5
a848cd7e
SC
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } &&
7067783d
PC
21567 { ac_try='test -z "$ac_cxx_werror_flag"
21568 || test ! -s conftest.err'
ac1cb8d3
VS
21569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570 (eval $ac_try) 2>&5
21571 ac_status=$?
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; } &&
21574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21577 ac_status=$?
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; }; then
21580 ac_lo=$ac_mid; break
21581else
21582 echo "$as_me: failed program was:" >&5
21583sed 's/^/| /' conftest.$ac_ext >&5
21584
21585ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21586 if test $ac_mid -le $ac_hi; then
21587 ac_lo= ac_hi=
21588 break
21589 fi
21590 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21591fi
ac1cb8d3 21592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21593 done
21594else
21595 echo "$as_me: failed program was:" >&5
21596sed 's/^/| /' conftest.$ac_ext >&5
21597
21598ac_lo= ac_hi=
21599fi
ac1cb8d3 21600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21601fi
ac1cb8d3 21602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21603# Binary search between lo and hi bounds.
21604while test "x$ac_lo" != "x$ac_hi"; do
21605 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21606 cat >conftest.$ac_ext <<_ACEOF
21607/* confdefs.h. */
21608_ACEOF
21609cat confdefs.h >>conftest.$ac_ext
21610cat >>conftest.$ac_ext <<_ACEOF
21611/* end confdefs.h. */
21612$ac_includes_default
21613int
21614main ()
21615{
21616static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21617test_array [0] = 0
21618
21619 ;
21620 return 0;
21621}
21622_ACEOF
21623rm -f conftest.$ac_objext
21624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21625 (eval $ac_compile) 2>conftest.er1
a848cd7e 21626 ac_status=$?
ac1cb8d3
VS
21627 grep -v '^ *+' conftest.er1 >conftest.err
21628 rm -f conftest.er1
21629 cat conftest.err >&5
a848cd7e
SC
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } &&
7067783d
PC
21632 { ac_try='test -z "$ac_cxx_werror_flag"
21633 || test ! -s conftest.err'
ac1cb8d3
VS
21634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635 (eval $ac_try) 2>&5
21636 ac_status=$?
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); }; } &&
21639 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21641 (eval $ac_try) 2>&5
21642 ac_status=$?
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; }; then
21645 ac_hi=$ac_mid
21646else
21647 echo "$as_me: failed program was:" >&5
21648sed 's/^/| /' conftest.$ac_ext >&5
21649
21650ac_lo=`expr '(' $ac_mid ')' + 1`
21651fi
ac1cb8d3 21652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21653done
21654case $ac_lo in
21655?*) ac_cv_sizeof_long_long=$ac_lo;;
21656'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21657See \`config.log' for more details." >&5
21658echo "$as_me: error: cannot compute sizeof (long long), 77
21659See \`config.log' for more details." >&2;}
21660 { (exit 1); exit 1; }; } ;;
21661esac
21662else
21663 if test "$cross_compiling" = yes; then
7067783d
PC
21664 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21665See \`config.log' for more details." >&5
21666echo "$as_me: error: cannot run test program while cross compiling
21667See \`config.log' for more details." >&2;}
a848cd7e
SC
21668 { (exit 1); exit 1; }; }
21669else
21670 cat >conftest.$ac_ext <<_ACEOF
21671/* confdefs.h. */
21672_ACEOF
21673cat confdefs.h >>conftest.$ac_ext
21674cat >>conftest.$ac_ext <<_ACEOF
21675/* end confdefs.h. */
21676$ac_includes_default
21677long longval () { return (long) (sizeof (long long)); }
21678unsigned long ulongval () { return (long) (sizeof (long long)); }
21679#include <stdio.h>
21680#include <stdlib.h>
21681int
21682main ()
21683{
21684
21685 FILE *f = fopen ("conftest.val", "w");
21686 if (! f)
21687 exit (1);
21688 if (((long) (sizeof (long long))) < 0)
21689 {
21690 long i = longval ();
21691 if (i != ((long) (sizeof (long long))))
21692 exit (1);
21693 fprintf (f, "%ld\n", i);
21694 }
21695 else
21696 {
21697 unsigned long i = ulongval ();
21698 if (i != ((long) (sizeof (long long))))
21699 exit (1);
21700 fprintf (f, "%lu\n", i);
21701 }
21702 exit (ferror (f) || fclose (f) != 0);
21703
21704 ;
21705 return 0;
21706}
21707_ACEOF
21708rm -f conftest$ac_exeext
21709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21710 (eval $ac_link) 2>&5
21711 ac_status=$?
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; }; then
21719 ac_cv_sizeof_long_long=`cat conftest.val`
21720else
21721 echo "$as_me: program exited with status $ac_status" >&5
21722echo "$as_me: failed program was:" >&5
21723sed 's/^/| /' conftest.$ac_ext >&5
21724
21725( exit $ac_status )
21726{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21727See \`config.log' for more details." >&5
21728echo "$as_me: error: cannot compute sizeof (long long), 77
21729See \`config.log' for more details." >&2;}
21730 { (exit 1); exit 1; }; }
21731fi
ac1cb8d3 21732rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21733fi
21734fi
21735rm -f conftest.val
21736else
21737 ac_cv_sizeof_long_long=0
21738fi
21739fi
21740echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21741echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21742cat >>confdefs.h <<_ACEOF
21743#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21744_ACEOF
21745
21746
21747esac
21748
238ecede
MW
21749echo "$as_me:$LINENO: checking for wchar_t" >&5
21750echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21751if test "${ac_cv_type_wchar_t+set}" = set; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
21753else
21754 cat >conftest.$ac_ext <<_ACEOF
21755/* confdefs.h. */
21756_ACEOF
21757cat confdefs.h >>conftest.$ac_ext
21758cat >>conftest.$ac_ext <<_ACEOF
21759/* end confdefs.h. */
21760
83d8eb47
MW
21761 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21762 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21763 # error "fake wchar_t"
21764 #endif
21765 #ifdef HAVE_WCHAR_H
21766 # ifdef __CYGWIN__
21767 # include <stddef.h>
21768 # endif
21769 # include <wchar.h>
21770 #endif
21771 #ifdef HAVE_STDLIB_H
21772 # include <stdlib.h>
21773 #endif
21774 #include <stdio.h>
21775
21776
21777
21778int
21779main ()
21780{
21781if ((wchar_t *) 0)
21782 return 0;
21783if (sizeof (wchar_t))
21784 return 0;
21785 ;
21786 return 0;
21787}
21788_ACEOF
21789rm -f conftest.$ac_objext
21790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21791 (eval $ac_compile) 2>conftest.er1
21792 ac_status=$?
21793 grep -v '^ *+' conftest.er1 >conftest.err
21794 rm -f conftest.er1
21795 cat conftest.err >&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } &&
7067783d
PC
21798 { ac_try='test -z "$ac_cxx_werror_flag"
21799 || test ! -s conftest.err'
238ecede
MW
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21802 ac_status=$?
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; } &&
21805 { ac_try='test -s conftest.$ac_objext'
21806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21808 ac_status=$?
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; }; then
21811 ac_cv_type_wchar_t=yes
21812else
21813 echo "$as_me: failed program was:" >&5
21814sed 's/^/| /' conftest.$ac_ext >&5
21815
21816ac_cv_type_wchar_t=no
21817fi
21818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21819fi
21820echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21821echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21822
a848cd7e
SC
21823echo "$as_me:$LINENO: checking size of wchar_t" >&5
21824echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21825if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21826 echo $ECHO_N "(cached) $ECHO_C" >&6
21827else
238ecede
MW
21828 if test "$ac_cv_type_wchar_t" = yes; then
21829 # The cast to unsigned long works around a bug in the HP C Compiler
21830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21832 # This bug is HP SR number 8606223364.
21833 if test "$cross_compiling" = yes; then
21834 # Depending upon the size, compute the lo and hi bounds.
21835cat >conftest.$ac_ext <<_ACEOF
21836/* confdefs.h. */
21837_ACEOF
21838cat confdefs.h >>conftest.$ac_ext
21839cat >>conftest.$ac_ext <<_ACEOF
21840/* end confdefs.h. */
21841
83d8eb47
MW
21842 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21843 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21844 # error "fake wchar_t"
21845 #endif
21846 #ifdef HAVE_WCHAR_H
21847 # ifdef __CYGWIN__
21848 # include <stddef.h>
21849 # endif
21850 # include <wchar.h>
21851 #endif
21852 #ifdef HAVE_STDLIB_H
21853 # include <stdlib.h>
21854 #endif
21855 #include <stdio.h>
21856
21857
21858
21859int
21860main ()
21861{
21862static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21863test_array [0] = 0
21864
21865 ;
21866 return 0;
21867}
21868_ACEOF
21869rm -f conftest.$ac_objext
21870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21871 (eval $ac_compile) 2>conftest.er1
21872 ac_status=$?
21873 grep -v '^ *+' conftest.er1 >conftest.err
21874 rm -f conftest.er1
21875 cat conftest.err >&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } &&
7067783d
PC
21878 { ac_try='test -z "$ac_cxx_werror_flag"
21879 || test ! -s conftest.err'
238ecede
MW
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21882 ac_status=$?
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; } &&
21885 { ac_try='test -s conftest.$ac_objext'
21886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21887 (eval $ac_try) 2>&5
21888 ac_status=$?
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); }; }; then
21891 ac_lo=0 ac_mid=0
21892 while :; do
21893 cat >conftest.$ac_ext <<_ACEOF
21894/* confdefs.h. */
21895_ACEOF
21896cat confdefs.h >>conftest.$ac_ext
21897cat >>conftest.$ac_ext <<_ACEOF
21898/* end confdefs.h. */
21899
83d8eb47
MW
21900 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21901 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21902 # error "fake wchar_t"
21903 #endif
21904 #ifdef HAVE_WCHAR_H
21905 # ifdef __CYGWIN__
21906 # include <stddef.h>
21907 # endif
21908 # include <wchar.h>
21909 #endif
21910 #ifdef HAVE_STDLIB_H
21911 # include <stdlib.h>
21912 #endif
21913 #include <stdio.h>
21914
21915
21916
21917int
21918main ()
21919{
21920static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21921test_array [0] = 0
21922
21923 ;
21924 return 0;
21925}
21926_ACEOF
21927rm -f conftest.$ac_objext
21928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21929 (eval $ac_compile) 2>conftest.er1
21930 ac_status=$?
21931 grep -v '^ *+' conftest.er1 >conftest.err
21932 rm -f conftest.er1
21933 cat conftest.err >&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); } &&
7067783d
PC
21936 { ac_try='test -z "$ac_cxx_werror_flag"
21937 || test ! -s conftest.err'
238ecede
MW
21938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939 (eval $ac_try) 2>&5
21940 ac_status=$?
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); }; } &&
21943 { ac_try='test -s conftest.$ac_objext'
21944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21945 (eval $ac_try) 2>&5
21946 ac_status=$?
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; }; then
21949 ac_hi=$ac_mid; break
21950else
21951 echo "$as_me: failed program was:" >&5
21952sed 's/^/| /' conftest.$ac_ext >&5
21953
21954ac_lo=`expr $ac_mid + 1`
21955 if test $ac_lo -le $ac_mid; then
21956 ac_lo= ac_hi=
21957 break
21958 fi
21959 ac_mid=`expr 2 '*' $ac_mid + 1`
21960fi
21961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21962 done
21963else
21964 echo "$as_me: failed program was:" >&5
21965sed 's/^/| /' conftest.$ac_ext >&5
21966
21967cat >conftest.$ac_ext <<_ACEOF
21968/* confdefs.h. */
21969_ACEOF
21970cat confdefs.h >>conftest.$ac_ext
21971cat >>conftest.$ac_ext <<_ACEOF
21972/* end confdefs.h. */
21973
83d8eb47
MW
21974 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21975 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21976 # error "fake wchar_t"
21977 #endif
21978 #ifdef HAVE_WCHAR_H
21979 # ifdef __CYGWIN__
21980 # include <stddef.h>
21981 # endif
21982 # include <wchar.h>
21983 #endif
21984 #ifdef HAVE_STDLIB_H
21985 # include <stdlib.h>
21986 #endif
21987 #include <stdio.h>
21988
21989
21990
21991int
21992main ()
21993{
21994static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21995test_array [0] = 0
21996
21997 ;
21998 return 0;
21999}
22000_ACEOF
22001rm -f conftest.$ac_objext
22002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22003 (eval $ac_compile) 2>conftest.er1
22004 ac_status=$?
22005 grep -v '^ *+' conftest.er1 >conftest.err
22006 rm -f conftest.er1
22007 cat conftest.err >&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); } &&
7067783d
PC
22010 { ac_try='test -z "$ac_cxx_werror_flag"
22011 || test ! -s conftest.err'
238ecede
MW
22012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013 (eval $ac_try) 2>&5
22014 ac_status=$?
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; } &&
22017 { ac_try='test -s conftest.$ac_objext'
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; }; then
22023 ac_hi=-1 ac_mid=-1
22024 while :; do
22025 cat >conftest.$ac_ext <<_ACEOF
22026/* confdefs.h. */
22027_ACEOF
22028cat confdefs.h >>conftest.$ac_ext
22029cat >>conftest.$ac_ext <<_ACEOF
22030/* end confdefs.h. */
22031
83d8eb47
MW
22032 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22033 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22034 # error "fake wchar_t"
22035 #endif
22036 #ifdef HAVE_WCHAR_H
22037 # ifdef __CYGWIN__
22038 # include <stddef.h>
22039 # endif
22040 # include <wchar.h>
22041 #endif
22042 #ifdef HAVE_STDLIB_H
22043 # include <stdlib.h>
22044 #endif
22045 #include <stdio.h>
22046
22047
22048
22049int
22050main ()
22051{
22052static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
22053test_array [0] = 0
22054
22055 ;
22056 return 0;
22057}
22058_ACEOF
22059rm -f conftest.$ac_objext
22060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22061 (eval $ac_compile) 2>conftest.er1
22062 ac_status=$?
22063 grep -v '^ *+' conftest.er1 >conftest.err
22064 rm -f conftest.er1
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } &&
7067783d
PC
22068 { ac_try='test -z "$ac_cxx_werror_flag"
22069 || test ! -s conftest.err'
238ecede
MW
22070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071 (eval $ac_try) 2>&5
22072 ac_status=$?
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; } &&
22075 { ac_try='test -s conftest.$ac_objext'
22076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077 (eval $ac_try) 2>&5
22078 ac_status=$?
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); }; }; then
22081 ac_lo=$ac_mid; break
22082else
22083 echo "$as_me: failed program was:" >&5
22084sed 's/^/| /' conftest.$ac_ext >&5
22085
22086ac_hi=`expr '(' $ac_mid ')' - 1`
22087 if test $ac_mid -le $ac_hi; then
22088 ac_lo= ac_hi=
22089 break
22090 fi
22091 ac_mid=`expr 2 '*' $ac_mid`
22092fi
22093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22094 done
22095else
22096 echo "$as_me: failed program was:" >&5
22097sed 's/^/| /' conftest.$ac_ext >&5
22098
22099ac_lo= ac_hi=
22100fi
22101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22102fi
22103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22104# Binary search between lo and hi bounds.
22105while test "x$ac_lo" != "x$ac_hi"; do
22106 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22107 cat >conftest.$ac_ext <<_ACEOF
22108/* confdefs.h. */
22109_ACEOF
22110cat confdefs.h >>conftest.$ac_ext
22111cat >>conftest.$ac_ext <<_ACEOF
22112/* end confdefs.h. */
22113
83d8eb47
MW
22114 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22115 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22116 # error "fake wchar_t"
22117 #endif
22118 #ifdef HAVE_WCHAR_H
22119 # ifdef __CYGWIN__
22120 # include <stddef.h>
22121 # endif
22122 # include <wchar.h>
22123 #endif
22124 #ifdef HAVE_STDLIB_H
22125 # include <stdlib.h>
22126 #endif
22127 #include <stdio.h>
a848cd7e 22128
a848cd7e 22129
a848cd7e 22130
238ecede
MW
22131int
22132main ()
22133{
22134static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22135test_array [0] = 0
a848cd7e 22136
238ecede
MW
22137 ;
22138 return 0;
22139}
22140_ACEOF
22141rm -f conftest.$ac_objext
22142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22143 (eval $ac_compile) 2>conftest.er1
22144 ac_status=$?
22145 grep -v '^ *+' conftest.er1 >conftest.err
22146 rm -f conftest.er1
22147 cat conftest.err >&5
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } &&
7067783d
PC
22150 { ac_try='test -z "$ac_cxx_werror_flag"
22151 || test ! -s conftest.err'
238ecede
MW
22152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22153 (eval $ac_try) 2>&5
22154 ac_status=$?
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); }; } &&
22157 { ac_try='test -s conftest.$ac_objext'
22158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159 (eval $ac_try) 2>&5
22160 ac_status=$?
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); }; }; then
22163 ac_hi=$ac_mid
22164else
22165 echo "$as_me: failed program was:" >&5
22166sed 's/^/| /' conftest.$ac_ext >&5
22167
22168ac_lo=`expr '(' $ac_mid ')' + 1`
22169fi
22170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22171done
22172case $ac_lo in
22173?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22174'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22175See \`config.log' for more details." >&5
22176echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22177See \`config.log' for more details." >&2;}
22178 { (exit 1); exit 1; }; } ;;
22179esac
22180else
22181 if test "$cross_compiling" = yes; then
7067783d
PC
22182 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22183See \`config.log' for more details." >&5
22184echo "$as_me: error: cannot run test program while cross compiling
22185See \`config.log' for more details." >&2;}
238ecede 22186 { (exit 1); exit 1; }; }
a848cd7e
SC
22187else
22188 cat >conftest.$ac_ext <<_ACEOF
22189/* confdefs.h. */
22190_ACEOF
22191cat confdefs.h >>conftest.$ac_ext
22192cat >>conftest.$ac_ext <<_ACEOF
22193/* end confdefs.h. */
22194
83d8eb47
MW
22195 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22196 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22197 # error "fake wchar_t"
22198 #endif
22199 #ifdef HAVE_WCHAR_H
22200 # ifdef __CYGWIN__
22201 # include <stddef.h>
22202 # endif
22203 # include <wchar.h>
22204 #endif
22205 #ifdef HAVE_STDLIB_H
22206 # include <stdlib.h>
22207 #endif
22208 #include <stdio.h>
22209
22210
22211
22212long longval () { return (long) (sizeof (wchar_t)); }
22213unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
22214#include <stdio.h>
22215#include <stdlib.h>
22216int
22217main ()
22218{
a848cd7e 22219
238ecede
MW
22220 FILE *f = fopen ("conftest.val", "w");
22221 if (! f)
22222 exit (1);
22223 if (((long) (sizeof (wchar_t))) < 0)
22224 {
22225 long i = longval ();
22226 if (i != ((long) (sizeof (wchar_t))))
22227 exit (1);
22228 fprintf (f, "%ld\n", i);
22229 }
22230 else
22231 {
22232 unsigned long i = ulongval ();
22233 if (i != ((long) (sizeof (wchar_t))))
22234 exit (1);
22235 fprintf (f, "%lu\n", i);
22236 }
22237 exit (ferror (f) || fclose (f) != 0);
22238
22239 ;
22240 return 0;
22241}
a848cd7e
SC
22242_ACEOF
22243rm -f conftest$ac_exeext
22244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22245 (eval $ac_link) 2>&5
22246 ac_status=$?
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22250 (eval $ac_try) 2>&5
22251 ac_status=$?
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); }; }; then
238ecede 22254 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
22255else
22256 echo "$as_me: program exited with status $ac_status" >&5
22257echo "$as_me: failed program was:" >&5
22258sed 's/^/| /' conftest.$ac_ext >&5
22259
22260( exit $ac_status )
238ecede
MW
22261{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22262See \`config.log' for more details." >&5
22263echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22264See \`config.log' for more details." >&2;}
22265 { (exit 1); exit 1; }; }
a848cd7e 22266fi
ac1cb8d3 22267rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 22268fi
a848cd7e 22269fi
238ecede
MW
22270rm -f conftest.val
22271else
22272 ac_cv_sizeof_wchar_t=0
22273fi
22274fi
22275echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22276echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 22277cat >>confdefs.h <<_ACEOF
238ecede 22278#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
22279_ACEOF
22280
22281
47a7e797
MW
22282if test "$ac_cv_sizeof_wchar_t" != "0"; then
22283 wxUSE_WCHAR_T=yes
22284else
22285 wxUSE_WCHAR_T=no
22286fi
238ecede 22287
ba3d13e1
VZ
22288echo "$as_me:$LINENO: checking for va_copy" >&5
22289echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22290if test "${wx_cv_func_va_copy+set}" = set; then
22291 echo $ECHO_N "(cached) $ECHO_C" >&6
22292else
22293
22294 cat >conftest.$ac_ext <<_ACEOF
22295
22296 #include <stdarg.h>
22297 void foo(char *f, ...)
22298 {
22299 va_list ap1, ap2;
22300 va_start(ap1, f);
22301 va_copy(ap2, ap1);
22302 va_end(ap2);
22303 va_end(ap1);
22304 }
5886b072
VZ
22305 int main()
22306 {
b902e639
VZ
22307 foo("hi", 17);
22308 return 0;
5886b072 22309 }
ba3d13e1
VZ
22310_ACEOF
22311rm -f conftest.$ac_objext conftest$ac_exeext
22312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22313 (eval $ac_link) 2>conftest.er1
22314 ac_status=$?
22315 grep -v '^ *+' conftest.er1 >conftest.err
22316 rm -f conftest.er1
22317 cat conftest.err >&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); } &&
7067783d
PC
22320 { ac_try='test -z "$ac_cxx_werror_flag"
22321 || test ! -s conftest.err'
ba3d13e1
VZ
22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323 (eval $ac_try) 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); }; } &&
22327 { ac_try='test -s conftest$ac_exeext'
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; }; then
22333 wx_cv_func_va_copy=yes
22334else
22335 echo "$as_me: failed program was:" >&5
22336sed 's/^/| /' conftest.$ac_ext >&5
22337
22338wx_cv_func_va_copy=no
22339
22340fi
22341rm -f conftest.err conftest.$ac_objext \
22342 conftest$ac_exeext conftest.$ac_ext
22343
22344
22345fi
22346echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22347echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22348
22349if test $wx_cv_func_va_copy = "yes"; then
22350 cat >>confdefs.h <<\_ACEOF
22351#define HAVE_VA_COPY 1
22352_ACEOF
22353
22354else
22355 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22356echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22357if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22358 echo $ECHO_N "(cached) $ECHO_C" >&6
22359else
22360
22361 if test "$cross_compiling" = yes; then
22362 wx_cv_type_va_list_lvalue=yes
22363
22364else
22365 cat >conftest.$ac_ext <<_ACEOF
22366
22367 #include <stdarg.h>
22368 int foo(char *f, ...)
22369 {
22370 va_list ap1, ap2;
22371 va_start(ap1, f);
22372 ap2 = ap1;
22373 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22374 return 1;
22375 va_end(ap2);
22376 va_end(ap1);
22377 return 0;
22378 }
22379 int main()
22380 {
22381 return foo("hi", 17);
22382 }
22383_ACEOF
22384rm -f conftest$ac_exeext
22385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22386 (eval $ac_link) 2>&5
22387 ac_status=$?
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391 (eval $ac_try) 2>&5
22392 ac_status=$?
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); }; }; then
22395 wx_cv_type_va_list_lvalue=yes
22396else
22397 echo "$as_me: program exited with status $ac_status" >&5
22398echo "$as_me: failed program was:" >&5
22399sed 's/^/| /' conftest.$ac_ext >&5
22400
22401( exit $ac_status )
22402wx_cv_type_va_list_lvalue=no
22403fi
22404rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22405fi
22406
22407
22408fi
22409echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22410echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22411
22412 if test $wx_cv_type_va_list_lvalue != "yes"; then
22413 cat >>confdefs.h <<\_ACEOF
22414#define VA_LIST_IS_ARRAY 1
22415_ACEOF
22416
22417 fi
22418fi
22419
ca766534
VS
22420echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22421echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22422if test "${wx_cv_have_variadic_macros+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22424else
22425
22426 cat >conftest.$ac_ext <<_ACEOF
22427/* confdefs.h. */
22428_ACEOF
22429cat confdefs.h >>conftest.$ac_ext
22430cat >>conftest.$ac_ext <<_ACEOF
22431/* end confdefs.h. */
22432
22433 #include <stdio.h>
22434 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22435
22436int
22437main ()
22438{
22439
22440 test("%s %d %p", "test", 1, 0);
22441
22442
22443 ;
22444 return 0;
22445}
22446_ACEOF
22447rm -f conftest.$ac_objext
22448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22449 (eval $ac_compile) 2>conftest.er1
22450 ac_status=$?
22451 grep -v '^ *+' conftest.er1 >conftest.err
22452 rm -f conftest.er1
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } &&
7067783d
PC
22456 { ac_try='test -z "$ac_cxx_werror_flag"
22457 || test ! -s conftest.err'
ca766534
VS
22458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459 (eval $ac_try) 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; } &&
22463 { ac_try='test -s conftest.$ac_objext'
22464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22465 (eval $ac_try) 2>&5
22466 ac_status=$?
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); }; }; then
22469 wx_cv_have_variadic_macros=yes
22470else
22471 echo "$as_me: failed program was:" >&5
22472sed 's/^/| /' conftest.$ac_ext >&5
22473
22474wx_cv_have_variadic_macros=no
22475
22476fi
22477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22478
22479
22480fi
22481echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22482echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22483
22484if test $wx_cv_have_variadic_macros = "yes"; then
22485 cat >>confdefs.h <<\_ACEOF
22486#define HAVE_VARIADIC_MACROS 1
22487_ACEOF
22488
22489fi
22490
a848cd7e
SC
22491# Check whether --enable-largefile or --disable-largefile was given.
22492if test "${enable_largefile+set}" = set; then
22493 enableval="$enable_largefile"
22494
22495fi;
22496if test "$enable_largefile" != no; then
22497 wx_largefile=no
22498
22499 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22500echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22501if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22502 echo $ECHO_N "(cached) $ECHO_C" >&6
22503else
22504
22505 cat >conftest.$ac_ext <<_ACEOF
22506/* confdefs.h. */
22507_ACEOF
22508cat confdefs.h >>conftest.$ac_ext
22509cat >>conftest.$ac_ext <<_ACEOF
22510/* end confdefs.h. */
22511#define _FILE_OFFSET_BITS 64
22512 #include <sys/types.h>
22513int
22514main ()
22515{
22516typedef struct {
22517 unsigned int field: sizeof(off_t) == 8;
22518} wxlf;
22519
22520 ;
22521 return 0;
22522}
22523_ACEOF
22524rm -f conftest.$ac_objext
22525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22526 (eval $ac_compile) 2>conftest.er1
a848cd7e 22527 ac_status=$?
ac1cb8d3
VS
22528 grep -v '^ *+' conftest.er1 >conftest.err
22529 rm -f conftest.er1
22530 cat conftest.err >&5
a848cd7e
SC
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); } &&
7067783d
PC
22533 { ac_try='test -z "$ac_cxx_werror_flag"
22534 || test ! -s conftest.err'
ac1cb8d3
VS
22535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22536 (eval $ac_try) 2>&5
22537 ac_status=$?
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; } &&
22540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542 (eval $ac_try) 2>&5
22543 ac_status=$?
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; }; then
22546 ac_cv_sys_file_offset_bits=64
22547else
22548 echo "$as_me: failed program was:" >&5
22549sed 's/^/| /' conftest.$ac_ext >&5
22550
22551ac_cv_sys_file_offset_bits=no
22552fi
ac1cb8d3 22553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22554
22555
22556fi
22557echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22558echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22559
22560 if test "$ac_cv_sys_file_offset_bits" != no; then
22561 wx_largefile=yes
22562 cat >>confdefs.h <<_ACEOF
22563#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22564_ACEOF
22565
22566 fi
22567
22568 if test "x$wx_largefile" != "xyes"; then
22569
22570 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22571echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22572if test "${ac_cv_sys_large_files+set}" = set; then
22573 echo $ECHO_N "(cached) $ECHO_C" >&6
22574else
22575
22576 cat >conftest.$ac_ext <<_ACEOF
22577/* confdefs.h. */
22578_ACEOF
22579cat confdefs.h >>conftest.$ac_ext
22580cat >>conftest.$ac_ext <<_ACEOF
22581/* end confdefs.h. */
22582#define _LARGE_FILES 1
22583 #include <sys/types.h>
22584int
22585main ()
22586{
22587typedef struct {
22588 unsigned int field: sizeof(off_t) == 8;
22589} wxlf;
22590
22591 ;
22592 return 0;
22593}
22594_ACEOF
22595rm -f conftest.$ac_objext
22596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22597 (eval $ac_compile) 2>conftest.er1
a848cd7e 22598 ac_status=$?
ac1cb8d3
VS
22599 grep -v '^ *+' conftest.er1 >conftest.err
22600 rm -f conftest.er1
22601 cat conftest.err >&5
a848cd7e
SC
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } &&
7067783d
PC
22604 { ac_try='test -z "$ac_cxx_werror_flag"
22605 || test ! -s conftest.err'
ac1cb8d3
VS
22606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607 (eval $ac_try) 2>&5
22608 ac_status=$?
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); }; } &&
22611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613 (eval $ac_try) 2>&5
22614 ac_status=$?
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; }; then
22617 ac_cv_sys_large_files=1
22618else
22619 echo "$as_me: failed program was:" >&5
22620sed 's/^/| /' conftest.$ac_ext >&5
22621
22622ac_cv_sys_large_files=no
22623fi
ac1cb8d3 22624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22625
22626
22627fi
22628echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22629echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22630
22631 if test "$ac_cv_sys_large_files" != no; then
22632 wx_largefile=yes
22633 cat >>confdefs.h <<_ACEOF
22634#define _LARGE_FILES $ac_cv_sys_large_files
22635_ACEOF
22636
22637 fi
22638
22639 fi
22640
22641 echo "$as_me:$LINENO: checking if large file support is available" >&5
22642echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22643 if test "x$wx_largefile" = "xyes"; then
22644 cat >>confdefs.h <<\_ACEOF
22645#define HAVE_LARGEFILE_SUPPORT 1
22646_ACEOF
22647
22648 fi
22649 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22650echo "${ECHO_T}$wx_largefile" >&6
22651fi
22652
5b674b9d
DE
22653
22654if test "x$wx_largefile" = "xyes"; then
22655 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22656 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22657
22658 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22659 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22660echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22661if test "${wx_cv_STDC_EXT_required+set}" = set; then
22662 echo $ECHO_N "(cached) $ECHO_C" >&6
22663else
22664
00421666
MW
22665 cat >conftest.$ac_ext <<_ACEOF
22666/* confdefs.h. */
22667_ACEOF
22668cat confdefs.h >>conftest.$ac_ext
22669cat >>conftest.$ac_ext <<_ACEOF
22670/* end confdefs.h. */
22671
22672int
22673main ()
22674{
22675
22676 #ifndef __STDC_EXT__
22677 choke me
22678 #endif
22679
22680 ;
22681 return 0;
22682}
22683_ACEOF
22684rm -f conftest.$ac_objext
22685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22686 (eval $ac_compile) 2>conftest.er1
22687 ac_status=$?
22688 grep -v '^ *+' conftest.er1 >conftest.err
22689 rm -f conftest.er1
22690 cat conftest.err >&5
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); } &&
7067783d
PC
22693 { ac_try='test -z "$ac_cxx_werror_flag"
22694 || test ! -s conftest.err'
00421666
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 wx_cv_STDC_EXT_required=no
22707else
22708 echo "$as_me: failed program was:" >&5
22709sed 's/^/| /' conftest.$ac_ext >&5
22710
22711wx_cv_STDC_EXT_required=yes
22712
22713fi
22714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22715
22716
22717fi
22718echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22719echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22720 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22721 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22722 fi
22723 fi
5b674b9d 22724 else
5ff751d6 22725 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22726 fi
22727 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22728echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22729if test "${ac_cv_sys_largefile_source+set}" = set; then
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
22731else
22732 while :; do
22733 ac_cv_sys_largefile_source=no
22734 cat >conftest.$ac_ext <<_ACEOF
22735/* confdefs.h. */
22736_ACEOF
22737cat confdefs.h >>conftest.$ac_ext
22738cat >>conftest.$ac_ext <<_ACEOF
22739/* end confdefs.h. */
22740#include <stdio.h>
22741int
22742main ()
22743{
22744return !fseeko;
22745 ;
22746 return 0;
22747}
22748_ACEOF
22749rm -f conftest.$ac_objext
22750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22751 (eval $ac_compile) 2>conftest.er1
22752 ac_status=$?
22753 grep -v '^ *+' conftest.er1 >conftest.err
22754 rm -f conftest.er1
22755 cat conftest.err >&5
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); } &&
7067783d
PC
22758 { ac_try='test -z "$ac_cxx_werror_flag"
22759 || test ! -s conftest.err'
5294a27e
VZ
22760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22761 (eval $ac_try) 2>&5
22762 ac_status=$?
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); }; } &&
22765 { ac_try='test -s conftest.$ac_objext'
22766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767 (eval $ac_try) 2>&5
22768 ac_status=$?
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); }; }; then
22771 break
22772else
22773 echo "$as_me: failed program was:" >&5
22774sed 's/^/| /' conftest.$ac_ext >&5
22775
22776fi
22777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22778 cat >conftest.$ac_ext <<_ACEOF
22779/* confdefs.h. */
22780_ACEOF
22781cat confdefs.h >>conftest.$ac_ext
22782cat >>conftest.$ac_ext <<_ACEOF
22783/* end confdefs.h. */
22784#define _LARGEFILE_SOURCE 1
22785#include <stdio.h>
22786int
22787main ()
22788{
22789return !fseeko;
22790 ;
22791 return 0;
22792}
22793_ACEOF
22794rm -f conftest.$ac_objext
22795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22796 (eval $ac_compile) 2>conftest.er1
22797 ac_status=$?
22798 grep -v '^ *+' conftest.er1 >conftest.err
22799 rm -f conftest.er1
22800 cat conftest.err >&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } &&
7067783d
PC
22803 { ac_try='test -z "$ac_cxx_werror_flag"
22804 || test ! -s conftest.err'
5294a27e
VZ
22805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22806 (eval $ac_try) 2>&5
22807 ac_status=$?
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); }; } &&
22810 { ac_try='test -s conftest.$ac_objext'
22811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22812 (eval $ac_try) 2>&5
22813 ac_status=$?
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); }; }; then
22816 ac_cv_sys_largefile_source=1; break
22817else
22818 echo "$as_me: failed program was:" >&5
22819sed 's/^/| /' conftest.$ac_ext >&5
22820
22821fi
22822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22823 break
22824done
22825fi
22826echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22827echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22828if test "$ac_cv_sys_largefile_source" != no; then
22829
22830cat >>confdefs.h <<_ACEOF
22831#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22832_ACEOF
22833
22834fi
22835rm -f conftest*
22836
22837# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22838# in glibc 2.1.3, but that breaks too many other things.
22839# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22840echo "$as_me:$LINENO: checking for fseeko" >&5
22841echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22842if test "${ac_cv_func_fseeko+set}" = set; then
22843 echo $ECHO_N "(cached) $ECHO_C" >&6
22844else
22845 cat >conftest.$ac_ext <<_ACEOF
22846/* confdefs.h. */
22847_ACEOF
22848cat confdefs.h >>conftest.$ac_ext
22849cat >>conftest.$ac_ext <<_ACEOF
22850/* end confdefs.h. */
22851#include <stdio.h>
22852int
22853main ()
22854{
22855return fseeko && fseeko (stdin, 0, 0);
22856 ;
22857 return 0;
22858}
22859_ACEOF
22860rm -f conftest.$ac_objext conftest$ac_exeext
22861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22862 (eval $ac_link) 2>conftest.er1
22863 ac_status=$?
22864 grep -v '^ *+' conftest.er1 >conftest.err
22865 rm -f conftest.er1
22866 cat conftest.err >&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } &&
7067783d
PC
22869 { ac_try='test -z "$ac_cxx_werror_flag"
22870 || test ! -s conftest.err'
5294a27e
VZ
22871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872 (eval $ac_try) 2>&5
22873 ac_status=$?
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; } &&
22876 { ac_try='test -s conftest$ac_exeext'
22877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22878 (eval $ac_try) 2>&5
22879 ac_status=$?
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); }; }; then
22882 ac_cv_func_fseeko=yes
22883else
22884 echo "$as_me: failed program was:" >&5
22885sed 's/^/| /' conftest.$ac_ext >&5
22886
22887ac_cv_func_fseeko=no
22888fi
22889rm -f conftest.err conftest.$ac_objext \
22890 conftest$ac_exeext conftest.$ac_ext
22891fi
22892echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22893echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22894if test $ac_cv_func_fseeko = yes; then
22895
22896cat >>confdefs.h <<\_ACEOF
22897#define HAVE_FSEEKO 1
22898_ACEOF
22899
22900fi
22901
5b674b9d 22902 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22903 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22904 fi
a848cd7e
SC
22905fi
22906
22907echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22908echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22909if test "${ac_cv_c_bigendian+set}" = set; then
22910 echo $ECHO_N "(cached) $ECHO_C" >&6
22911else
22912 ac_cv_c_bigendian=unknown
22913# See if sys/param.h defines the BYTE_ORDER macro.
22914cat >conftest.$ac_ext <<_ACEOF
22915/* confdefs.h. */
22916_ACEOF
22917cat confdefs.h >>conftest.$ac_ext
22918cat >>conftest.$ac_ext <<_ACEOF
22919/* end confdefs.h. */
22920#include <sys/types.h>
22921#include <sys/param.h>
22922int
22923main ()
22924{
22925
22926#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22927 bogus endian macros
22928#endif
22929 ;
22930 return 0;
22931}
22932_ACEOF
22933rm -f conftest.$ac_objext
22934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22935 (eval $ac_compile) 2>conftest.er1
a848cd7e 22936 ac_status=$?
ac1cb8d3
VS
22937 grep -v '^ *+' conftest.er1 >conftest.err
22938 rm -f conftest.er1
22939 cat conftest.err >&5
a848cd7e
SC
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } &&
7067783d
PC
22942 { ac_try='test -z "$ac_cxx_werror_flag"
22943 || test ! -s conftest.err'
ac1cb8d3
VS
22944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945 (eval $ac_try) 2>&5
22946 ac_status=$?
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); }; } &&
22949 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951 (eval $ac_try) 2>&5
22952 ac_status=$?
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); }; }; then
22955 # It does; now see whether it defined to BIG_ENDIAN or not.
22956cat >conftest.$ac_ext <<_ACEOF
22957/* confdefs.h. */
22958_ACEOF
22959cat confdefs.h >>conftest.$ac_ext
22960cat >>conftest.$ac_ext <<_ACEOF
22961/* end confdefs.h. */
22962#include <sys/types.h>
22963#include <sys/param.h>
22964int
22965main ()
22966{
22967
22968#if BYTE_ORDER != BIG_ENDIAN
22969 not big endian
22970#endif
22971 ;
22972 return 0;
22973}
22974_ACEOF
22975rm -f conftest.$ac_objext
22976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22977 (eval $ac_compile) 2>conftest.er1
a848cd7e 22978 ac_status=$?
ac1cb8d3
VS
22979 grep -v '^ *+' conftest.er1 >conftest.err
22980 rm -f conftest.er1
22981 cat conftest.err >&5
a848cd7e
SC
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } &&
7067783d
PC
22984 { ac_try='test -z "$ac_cxx_werror_flag"
22985 || test ! -s conftest.err'
ac1cb8d3
VS
22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22988 ac_status=$?
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; } &&
22991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993 (eval $ac_try) 2>&5
22994 ac_status=$?
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); }; }; then
22997 ac_cv_c_bigendian=yes
22998else
22999 echo "$as_me: failed program was:" >&5
23000sed 's/^/| /' conftest.$ac_ext >&5
23001
23002ac_cv_c_bigendian=no
23003fi
ac1cb8d3 23004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23005else
23006 echo "$as_me: failed program was:" >&5
23007sed 's/^/| /' conftest.$ac_ext >&5
23008
23009fi
ac1cb8d3 23010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23011if test $ac_cv_c_bigendian = unknown; then
23012if test "$cross_compiling" = yes; then
23013 ac_cv_c_bigendian=unknown
23014else
23015 cat >conftest.$ac_ext <<_ACEOF
23016/* confdefs.h. */
23017_ACEOF
23018cat confdefs.h >>conftest.$ac_ext
23019cat >>conftest.$ac_ext <<_ACEOF
23020/* end confdefs.h. */
23021main () {
23022 /* Are we little or big endian? From Harbison&Steele. */
23023 union
23024 {
23025 long l;
23026 char c[sizeof (long)];
23027 } u;
23028 u.l = 1;
23029 exit (u.c[sizeof (long) - 1] == 1);
23030}
23031_ACEOF
23032rm -f conftest$ac_exeext
23033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23034 (eval $ac_link) 2>&5
23035 ac_status=$?
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23039 (eval $ac_try) 2>&5
23040 ac_status=$?
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); }; }; then
23043 ac_cv_c_bigendian=no
23044else
23045 echo "$as_me: program exited with status $ac_status" >&5
23046echo "$as_me: failed program was:" >&5
23047sed 's/^/| /' conftest.$ac_ext >&5
23048
23049( exit $ac_status )
23050ac_cv_c_bigendian=yes
23051fi
ac1cb8d3 23052rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23053fi
23054fi
23055fi
23056echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23057echo "${ECHO_T}$ac_cv_c_bigendian" >&6
23058if test $ac_cv_c_bigendian = unknown; then
23059 { 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
23060echo "$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;}
23061fi
23062if test $ac_cv_c_bigendian = yes; then
23063 cat >>confdefs.h <<\_ACEOF
23064#define WORDS_BIGENDIAN 1
23065_ACEOF
23066
23067fi
23068
23069
a848cd7e
SC
23070
23071
23072
23073 ac_ext=cc
23074ac_cpp='$CXXCPP $CPPFLAGS'
23075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23078
23079
23080
23081for ac_header in iostream
23082do
23083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23084if eval "test \"\${$as_ac_Header+set}\" = set"; then
23085 echo "$as_me:$LINENO: checking for $ac_header" >&5
23086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23087if eval "test \"\${$as_ac_Header+set}\" = set"; then
23088 echo $ECHO_N "(cached) $ECHO_C" >&6
23089fi
23090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23092else
23093 # Is the header compilable?
23094echo "$as_me:$LINENO: checking $ac_header usability" >&5
23095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23096cat >conftest.$ac_ext <<_ACEOF
23097/* confdefs.h. */
23098_ACEOF
23099cat confdefs.h >>conftest.$ac_ext
23100cat >>conftest.$ac_ext <<_ACEOF
23101/* end confdefs.h. */
23102$ac_includes_default
23103#include <$ac_header>
23104_ACEOF
23105rm -f conftest.$ac_objext
23106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23107 (eval $ac_compile) 2>conftest.er1
a848cd7e 23108 ac_status=$?
ac1cb8d3
VS
23109 grep -v '^ *+' conftest.er1 >conftest.err
23110 rm -f conftest.er1
23111 cat conftest.err >&5
a848cd7e
SC
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); } &&
7067783d
PC
23114 { ac_try='test -z "$ac_cxx_werror_flag"
23115 || test ! -s conftest.err'
ac1cb8d3
VS
23116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117 (eval $ac_try) 2>&5
23118 ac_status=$?
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); }; } &&
23121 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123 (eval $ac_try) 2>&5
23124 ac_status=$?
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); }; }; then
23127 ac_header_compiler=yes
23128else
23129 echo "$as_me: failed program was:" >&5
23130sed 's/^/| /' conftest.$ac_ext >&5
23131
23132ac_header_compiler=no
23133fi
ac1cb8d3 23134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23136echo "${ECHO_T}$ac_header_compiler" >&6
23137
23138# Is the header present?
23139echo "$as_me:$LINENO: checking $ac_header presence" >&5
23140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23141cat >conftest.$ac_ext <<_ACEOF
23142/* confdefs.h. */
23143_ACEOF
23144cat confdefs.h >>conftest.$ac_ext
23145cat >>conftest.$ac_ext <<_ACEOF
23146/* end confdefs.h. */
23147#include <$ac_header>
23148_ACEOF
23149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23151 ac_status=$?
23152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } >/dev/null; then
23157 if test -s conftest.err; then
23158 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23159 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
23160 else
23161 ac_cpp_err=
23162 fi
23163else
23164 ac_cpp_err=yes
23165fi
23166if test -z "$ac_cpp_err"; then
23167 ac_header_preproc=yes
23168else
23169 echo "$as_me: failed program was:" >&5
23170sed 's/^/| /' conftest.$ac_ext >&5
23171
23172 ac_header_preproc=no
23173fi
23174rm -f conftest.err conftest.$ac_ext
23175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23176echo "${ECHO_T}$ac_header_preproc" >&6
23177
23178# So? What about this header?
ac1cb8d3
VS
23179case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23180 yes:no: )
a848cd7e
SC
23181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23185 ac_header_preproc=yes
a848cd7e 23186 ;;
ac1cb8d3 23187 no:yes:* )
a848cd7e
SC
23188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23200 (
23201 cat <<\_ASBOX
ac1cb8d3
VS
23202## ----------------------------------------- ##
23203## Report this to wx-dev@lists.wxwidgets.org ##
23204## ----------------------------------------- ##
a848cd7e
SC
23205_ASBOX
23206 ) |
23207 sed "s/^/$as_me: WARNING: /" >&2
23208 ;;
23209esac
23210echo "$as_me:$LINENO: checking for $ac_header" >&5
23211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23212if eval "test \"\${$as_ac_Header+set}\" = set"; then
23213 echo $ECHO_N "(cached) $ECHO_C" >&6
23214else
ac1cb8d3 23215 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23216fi
23217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23219
23220fi
23221if test `eval echo '${'$as_ac_Header'}'` = yes; then
23222 cat >>confdefs.h <<_ACEOF
23223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23224_ACEOF
23225
23226fi
23227
23228done
23229
23230
23231 if test "$ac_cv_header_iostream" = "yes" ; then
23232 :
23233 else
23234 cat >>confdefs.h <<\_ACEOF
23235#define wxUSE_IOSTREAMH 1
23236_ACEOF
23237
23238 fi
23239
5d7b7554
VZ
23240 ac_ext=cc
23241ac_cpp='$CXXCPP $CPPFLAGS'
23242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23245
23246
23247
23248
23249 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23250echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23251if test "${wx_cv_cpp_bool+set}" = set; then
23252 echo $ECHO_N "(cached) $ECHO_C" >&6
23253else
23254
23255
23256
23257 ac_ext=cc
23258ac_cpp='$CXXCPP $CPPFLAGS'
23259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23262
23263
23264 cat >conftest.$ac_ext <<_ACEOF
23265/* confdefs.h. */
23266_ACEOF
23267cat confdefs.h >>conftest.$ac_ext
23268cat >>conftest.$ac_ext <<_ACEOF
23269/* end confdefs.h. */
23270
23271
23272int
23273main ()
23274{
23275
23276 bool b = true;
23277
23278 return 0;
23279
23280 ;
23281 return 0;
23282}
23283_ACEOF
23284rm -f conftest.$ac_objext
23285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23286 (eval $ac_compile) 2>conftest.er1
a848cd7e 23287 ac_status=$?
ac1cb8d3
VS
23288 grep -v '^ *+' conftest.er1 >conftest.err
23289 rm -f conftest.er1
23290 cat conftest.err >&5
a848cd7e
SC
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); } &&
7067783d
PC
23293 { ac_try='test -z "$ac_cxx_werror_flag"
23294 || test ! -s conftest.err'
ac1cb8d3
VS
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; } &&
23300 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23302 (eval $ac_try) 2>&5
23303 ac_status=$?
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); }; }; then
23306
23307 wx_cv_cpp_bool=yes
23308
23309else
23310 echo "$as_me: failed program was:" >&5
23311sed 's/^/| /' conftest.$ac_ext >&5
23312
23313
23314 wx_cv_cpp_bool=no
23315
23316
23317fi
ac1cb8d3 23318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23319
5d7b7554
VZ
23320 ac_ext=cc
23321ac_cpp='$CXXCPP $CPPFLAGS'
23322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23325
23326
23327fi
23328echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23329echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23330
23331 if test "$wx_cv_cpp_bool" = "yes"; then
23332 cat >>confdefs.h <<\_ACEOF
23333#define HAVE_BOOL 1
23334_ACEOF
23335
23336 fi
23337
23338
23339
23340 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23341echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23342if test "${wx_cv_explicit+set}" = set; then
23343 echo $ECHO_N "(cached) $ECHO_C" >&6
23344else
23345
23346
23347
23348 ac_ext=cc
23349ac_cpp='$CXXCPP $CPPFLAGS'
23350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23353
23354
23355 cat >conftest.$ac_ext <<_ACEOF
23356/* confdefs.h. */
23357_ACEOF
23358cat confdefs.h >>conftest.$ac_ext
23359cat >>conftest.$ac_ext <<_ACEOF
23360/* end confdefs.h. */
23361
23362 class Foo { public: explicit Foo(int) {} };
23363
23364int
23365main ()
23366{
23367
23368 return 0;
23369
23370 ;
23371 return 0;
23372}
23373_ACEOF
23374rm -f conftest.$ac_objext
23375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23376 (eval $ac_compile) 2>conftest.er1
a848cd7e 23377 ac_status=$?
ac1cb8d3
VS
23378 grep -v '^ *+' conftest.er1 >conftest.err
23379 rm -f conftest.er1
23380 cat conftest.err >&5
a848cd7e
SC
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } &&
7067783d
PC
23383 { ac_try='test -z "$ac_cxx_werror_flag"
23384 || test ! -s conftest.err'
ac1cb8d3
VS
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; } &&
23390 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23392 (eval $ac_try) 2>&5
23393 ac_status=$?
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); }; }; then
23396
23397 cat >conftest.$ac_ext <<_ACEOF
23398/* confdefs.h. */
23399_ACEOF
23400cat confdefs.h >>conftest.$ac_ext
23401cat >>conftest.$ac_ext <<_ACEOF
23402/* end confdefs.h. */
23403
23404 class Foo { public: explicit Foo(int) {} };
23405 static void TakeFoo(const Foo& foo) { }
23406
23407int
23408main ()
23409{
23410
23411 TakeFoo(17);
23412 return 0;
23413
23414 ;
23415 return 0;
23416}
23417_ACEOF
23418rm -f conftest.$ac_objext
23419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23420 (eval $ac_compile) 2>conftest.er1
a848cd7e 23421 ac_status=$?
ac1cb8d3
VS
23422 grep -v '^ *+' conftest.er1 >conftest.err
23423 rm -f conftest.er1
23424 cat conftest.err >&5
a848cd7e
SC
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); } &&
7067783d
PC
23427 { ac_try='test -z "$ac_cxx_werror_flag"
23428 || test ! -s conftest.err'
ac1cb8d3
VS
23429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430 (eval $ac_try) 2>&5
23431 ac_status=$?
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; } &&
23434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436 (eval $ac_try) 2>&5
23437 ac_status=$?
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); }; }; then
23440 wx_cv_explicit=no
23441else
23442 echo "$as_me: failed program was:" >&5
23443sed 's/^/| /' conftest.$ac_ext >&5
23444
23445wx_cv_explicit=yes
23446
23447fi
ac1cb8d3 23448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23449
23450else
23451 echo "$as_me: failed program was:" >&5
23452sed 's/^/| /' conftest.$ac_ext >&5
23453
23454wx_cv_explicit=no
23455
23456fi
ac1cb8d3 23457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23458
5d7b7554
VZ
23459 ac_ext=cc
23460ac_cpp='$CXXCPP $CPPFLAGS'
23461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23464
23465
23466fi
23467echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23468echo "${ECHO_T}$wx_cv_explicit" >&6
23469
23470 if test "$wx_cv_explicit" = "yes"; then
23471 cat >>confdefs.h <<\_ACEOF
23472#define HAVE_EXPLICIT 1
23473_ACEOF
23474
23475 fi
23476
23477
23478echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23479echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23480if test "${ac_cv_cxx_const_cast+set}" = set; then
23481 echo $ECHO_N "(cached) $ECHO_C" >&6
23482else
23483
23484
23485 ac_ext=cc
23486ac_cpp='$CXXCPP $CPPFLAGS'
23487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23490
23491 cat >conftest.$ac_ext <<_ACEOF
23492/* confdefs.h. */
23493_ACEOF
23494cat confdefs.h >>conftest.$ac_ext
23495cat >>conftest.$ac_ext <<_ACEOF
23496/* end confdefs.h. */
23497
23498int
23499main ()
23500{
23501int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23502 ;
23503 return 0;
23504}
23505_ACEOF
23506rm -f conftest.$ac_objext
23507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23508 (eval $ac_compile) 2>conftest.er1
a848cd7e 23509 ac_status=$?
ac1cb8d3
VS
23510 grep -v '^ *+' conftest.er1 >conftest.err
23511 rm -f conftest.er1
23512 cat conftest.err >&5
a848cd7e
SC
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } &&
7067783d
PC
23515 { ac_try='test -z "$ac_cxx_werror_flag"
23516 || test ! -s conftest.err'
ac1cb8d3
VS
23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; } &&
23522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524 (eval $ac_try) 2>&5
23525 ac_status=$?
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); }; }; then
23528 ac_cv_cxx_const_cast=yes
23529else
23530 echo "$as_me: failed program was:" >&5
23531sed 's/^/| /' conftest.$ac_ext >&5
23532
23533ac_cv_cxx_const_cast=no
23534fi
ac1cb8d3 23535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23536 ac_ext=cc
23537ac_cpp='$CXXCPP $CPPFLAGS'
23538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23541
23542
23543fi
23544echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23545echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23546if test "$ac_cv_cxx_const_cast" = yes; then
23547
23548cat >>confdefs.h <<\_ACEOF
23549#define HAVE_CONST_CAST
23550_ACEOF
23551
23552fi
23553
7714864e
RL
23554echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23555echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23556if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23558else
23559
23560
23561 ac_ext=cc
23562ac_cpp='$CXXCPP $CPPFLAGS'
23563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23566
23567 cat >conftest.$ac_ext <<_ACEOF
23568/* confdefs.h. */
23569_ACEOF
23570cat confdefs.h >>conftest.$ac_ext
23571cat >>conftest.$ac_ext <<_ACEOF
23572/* end confdefs.h. */
23573#include <typeinfo>
23574class Base { public : Base () {} virtual void f () = 0;};
23575class Derived : public Base { public : Derived () {} virtual void f () {} };
23576class Unrelated { public : Unrelated () {} };
23577int g (Unrelated&) { return 0; }
23578int
23579main ()
23580{
23581
23582Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23583 ;
23584 return 0;
23585}
23586_ACEOF
23587rm -f conftest.$ac_objext
23588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23589 (eval $ac_compile) 2>conftest.er1
23590 ac_status=$?
23591 grep -v '^ *+' conftest.er1 >conftest.err
23592 rm -f conftest.er1
23593 cat conftest.err >&5
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); } &&
7067783d
PC
23596 { ac_try='test -z "$ac_cxx_werror_flag"
23597 || test ! -s conftest.err'
7714864e
RL
23598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23599 (eval $ac_try) 2>&5
23600 ac_status=$?
23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); }; } &&
23603 { ac_try='test -s conftest.$ac_objext'
23604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23605 (eval $ac_try) 2>&5
23606 ac_status=$?
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); }; }; then
23609 ac_cv_cxx_reinterpret_cast=yes
23610else
23611 echo "$as_me: failed program was:" >&5
23612sed 's/^/| /' conftest.$ac_ext >&5
23613
23614ac_cv_cxx_reinterpret_cast=no
23615fi
23616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23617 ac_ext=cc
23618ac_cpp='$CXXCPP $CPPFLAGS'
23619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23622
23623
23624fi
23625echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23626echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23627if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23628
23629cat >>confdefs.h <<\_ACEOF
23630#define HAVE_REINTERPRET_CAST
23631_ACEOF
23632
23633fi
23634
a848cd7e
SC
23635echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23636echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23637if test "${ac_cv_cxx_static_cast+set}" = set; then
23638 echo $ECHO_N "(cached) $ECHO_C" >&6
23639else
23640
23641
23642 ac_ext=cc
23643ac_cpp='$CXXCPP $CPPFLAGS'
23644ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23645ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23646ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23647
23648 cat >conftest.$ac_ext <<_ACEOF
23649/* confdefs.h. */
23650_ACEOF
23651cat confdefs.h >>conftest.$ac_ext
23652cat >>conftest.$ac_ext <<_ACEOF
23653/* end confdefs.h. */
23654#include <typeinfo>
23655class Base { public : Base () {} virtual void f () = 0; };
23656class Derived : public Base { public : Derived () {} virtual void f () {} };
23657int g (Derived&) { return 0; }
23658int
23659main ()
23660{
23661
23662Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23663 ;
23664 return 0;
23665}
23666_ACEOF
23667rm -f conftest.$ac_objext
23668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23669 (eval $ac_compile) 2>conftest.er1
a848cd7e 23670 ac_status=$?
ac1cb8d3
VS
23671 grep -v '^ *+' conftest.er1 >conftest.err
23672 rm -f conftest.er1
23673 cat conftest.err >&5
a848cd7e
SC
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); } &&
7067783d
PC
23676 { ac_try='test -z "$ac_cxx_werror_flag"
23677 || test ! -s conftest.err'
ac1cb8d3
VS
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23680 ac_status=$?
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; } &&
23683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685 (eval $ac_try) 2>&5
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 ac_cv_cxx_static_cast=yes
23690else
23691 echo "$as_me: failed program was:" >&5
23692sed 's/^/| /' conftest.$ac_ext >&5
23693
23694ac_cv_cxx_static_cast=no
23695fi
ac1cb8d3 23696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23697 ac_ext=cc
23698ac_cpp='$CXXCPP $CPPFLAGS'
23699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23702
23703
23704fi
23705echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23706echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23707if test "$ac_cv_cxx_static_cast" = yes; then
23708
23709cat >>confdefs.h <<\_ACEOF
23710#define HAVE_STATIC_CAST
23711_ACEOF
23712
23713fi
23714
23715
3c28b7cb 23716if test "x$SUNCXX" = xyes; then
c92ad099 23717 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23718fi
23719
9122d155 23720if test "x$SUNCC" = xyes; then
c92ad099 23721 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23722fi
23723
0ad5d837 23724if test "x$SGICC" = "xyes"; then
c92ad099 23725 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23726fi
23727if test "x$SGICXX" = "xyes"; then
c92ad099 23728 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23729fi
23730
2eef8513 23731if test "x$HPCC" = "xyes"; then
c92ad099 23732 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23733fi
23734if test "x$HPCXX" = "xyes"; then
c92ad099 23735 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23736fi
23737
23738if test "x$COMPAQCXX" = "xyes"; then
23739 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23740fi
23741
f56c22b4 23742if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23743 if test "$wxUSE_UNICODE" = "yes"; then
23744 std_string="std::wstring"
23745 char_type="wchar_t"
23746 else
23747 std_string="std::string"
23748 char_type="char"
23749 fi
23750
23751 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23752echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23753 cat >conftest.$ac_ext <<_ACEOF
23754/* confdefs.h. */
23755_ACEOF
23756cat confdefs.h >>conftest.$ac_ext
23757cat >>conftest.$ac_ext <<_ACEOF
23758/* end confdefs.h. */
23759#include <string>
a848cd7e
SC
23760int
23761main ()
23762{
f56c22b4 23763$std_string foo;
a848cd7e
SC
23764 ;
23765 return 0;
23766}
23767_ACEOF
23768rm -f conftest.$ac_objext
23769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23770 (eval $ac_compile) 2>conftest.er1
a848cd7e 23771 ac_status=$?
ac1cb8d3
VS
23772 grep -v '^ *+' conftest.er1 >conftest.err
23773 rm -f conftest.er1
23774 cat conftest.err >&5
a848cd7e
SC
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); } &&
7067783d
PC
23777 { ac_try='test -z "$ac_cxx_werror_flag"
23778 || test ! -s conftest.err'
ac1cb8d3
VS
23779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780 (eval $ac_try) 2>&5
23781 ac_status=$?
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); }; } &&
23784 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23786 (eval $ac_try) 2>&5
23787 ac_status=$?
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); }; }; then
23790 echo "$as_me:$LINENO: result: yes" >&5
23791echo "${ECHO_T}yes" >&6
0a08f02a
MB
23792 cat >>confdefs.h <<\_ACEOF
23793#define HAVE_STD_WSTRING 1
23794_ACEOF
23795
a848cd7e
SC
23796else
23797 echo "$as_me: failed program was:" >&5
23798sed 's/^/| /' conftest.$ac_ext >&5
23799
23800echo "$as_me:$LINENO: result: no" >&5
23801echo "${ECHO_T}no" >&6
f56c22b4
MW
23802 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23803echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23804 cat >conftest.$ac_ext <<_ACEOF
23805/* confdefs.h. */
23806_ACEOF
23807cat confdefs.h >>conftest.$ac_ext
23808cat >>conftest.$ac_ext <<_ACEOF
23809/* end confdefs.h. */
23810
23811 #ifdef HAVE_WCHAR_H
23812 # ifdef __CYGWIN__
23813 # include <stddef.h>
23814 # endif
23815 # include <wchar.h>
23816 #endif
23817 #ifdef HAVE_STDLIB_H
23818 # include <stdlib.h>
23819 #endif
23820 #include <stdio.h>
23821 #include <string>
23822
23823int
23824main ()
23825{
f56c22b4
MW
23826std::basic_string<$char_type> foo;
23827 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23828 ;
23829 return 0;
23830}
23831_ACEOF
23832rm -f conftest.$ac_objext
23833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23834 (eval $ac_compile) 2>conftest.er1
23835 ac_status=$?
23836 grep -v '^ *+' conftest.er1 >conftest.err
23837 rm -f conftest.er1
23838 cat conftest.err >&5
23839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840 (exit $ac_status); } &&
7067783d
PC
23841 { ac_try='test -z "$ac_cxx_werror_flag"
23842 || test ! -s conftest.err'
0a08f02a
MB
23843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23844 (eval $ac_try) 2>&5
23845 ac_status=$?
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); }; } &&
23848 { ac_try='test -s conftest.$ac_objext'
23849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23850 (eval $ac_try) 2>&5
23851 ac_status=$?
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); }; }; then
23854 echo "$as_me:$LINENO: result: yes" >&5
23855echo "${ECHO_T}yes" >&6
23856else
23857 echo "$as_me: failed program was:" >&5
23858sed 's/^/| /' conftest.$ac_ext >&5
23859
23860echo "$as_me:$LINENO: result: no" >&5
23861echo "${ECHO_T}no" >&6
f56c22b4 23862 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23863 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23864echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23865 { (exit 1); exit 1; }; }
23866 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23867 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23868echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23869 { (exit 1); exit 1; }; }
f56c22b4
MW
23870 else
23871 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23872echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23873 wxUSE_STD_STRING=no
23874 fi
23875
0a08f02a 23876
a848cd7e 23877fi
ac1cb8d3 23878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23879
0a08f02a
MB
23880fi
23881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23882fi
23883
23884if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23885 echo "$as_me:$LINENO: checking for std::istream" >&5
23886echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23887if test "${ac_cv_type_std__istream+set}" = set; then
23888 echo $ECHO_N "(cached) $ECHO_C" >&6
23889else
23890 cat >conftest.$ac_ext <<_ACEOF
23891/* confdefs.h. */
23892_ACEOF
23893cat confdefs.h >>conftest.$ac_ext
23894cat >>conftest.$ac_ext <<_ACEOF
23895/* end confdefs.h. */
23896#include <iostream>
23897
23898int
23899main ()
23900{
23901if ((std::istream *) 0)
23902 return 0;
23903if (sizeof (std::istream))
23904 return 0;
23905 ;
23906 return 0;
23907}
23908_ACEOF
23909rm -f conftest.$ac_objext
23910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23911 (eval $ac_compile) 2>conftest.er1
23912 ac_status=$?
23913 grep -v '^ *+' conftest.er1 >conftest.err
23914 rm -f conftest.er1
23915 cat conftest.err >&5
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); } &&
7067783d
PC
23918 { ac_try='test -z "$ac_cxx_werror_flag"
23919 || test ! -s conftest.err'
f56c22b4
MW
23920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921 (eval $ac_try) 2>&5
23922 ac_status=$?
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); }; } &&
23925 { ac_try='test -s conftest.$ac_objext'
23926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927 (eval $ac_try) 2>&5
23928 ac_status=$?
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); }; }; then
23931 ac_cv_type_std__istream=yes
23932else
23933 echo "$as_me: failed program was:" >&5
23934sed 's/^/| /' conftest.$ac_ext >&5
23935
23936ac_cv_type_std__istream=no
23937fi
23938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23939fi
23940echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23941echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23942if test $ac_cv_type_std__istream = yes; then
23943
23944cat >>confdefs.h <<_ACEOF
23945#define HAVE_STD__ISTREAM 1
23946_ACEOF
23947
23948
23949else
23950 wxUSE_STD_IOSTREAM=no
23951fi
23952echo "$as_me:$LINENO: checking for std::ostream" >&5
23953echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23954if test "${ac_cv_type_std__ostream+set}" = set; then
23955 echo $ECHO_N "(cached) $ECHO_C" >&6
23956else
23957 cat >conftest.$ac_ext <<_ACEOF
23958/* confdefs.h. */
23959_ACEOF
23960cat confdefs.h >>conftest.$ac_ext
23961cat >>conftest.$ac_ext <<_ACEOF
23962/* end confdefs.h. */
23963#include <iostream>
23964
23965int
23966main ()
23967{
23968if ((std::ostream *) 0)
23969 return 0;
23970if (sizeof (std::ostream))
23971 return 0;
23972 ;
23973 return 0;
23974}
23975_ACEOF
23976rm -f conftest.$ac_objext
23977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23978 (eval $ac_compile) 2>conftest.er1
23979 ac_status=$?
23980 grep -v '^ *+' conftest.er1 >conftest.err
23981 rm -f conftest.er1
23982 cat conftest.err >&5
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); } &&
7067783d
PC
23985 { ac_try='test -z "$ac_cxx_werror_flag"
23986 || test ! -s conftest.err'
f56c22b4
MW
23987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23988 (eval $ac_try) 2>&5
23989 ac_status=$?
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); }; } &&
23992 { ac_try='test -s conftest.$ac_objext'
23993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23994 (eval $ac_try) 2>&5
23995 ac_status=$?
23996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); }; }; then
23998 ac_cv_type_std__ostream=yes
23999else
24000 echo "$as_me: failed program was:" >&5
24001sed 's/^/| /' conftest.$ac_ext >&5
24002
24003ac_cv_type_std__ostream=no
24004fi
24005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24006fi
24007echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24008echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
24009if test $ac_cv_type_std__ostream = yes; then
24010
24011cat >>confdefs.h <<_ACEOF
24012#define HAVE_STD__OSTREAM 1
24013_ACEOF
24014
24015
24016else
24017 wxUSE_STD_IOSTREAM=no
24018fi
24019
24020
24021 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
24022 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
24023 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24024echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24025 { (exit 1); exit 1; }; }
24026 else
24027 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 24028echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 24029 fi
f56c22b4 24030 fi
0a08f02a
MB
24031fi
24032
24033if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
24034 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24035echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
24036 cat >conftest.$ac_ext <<_ACEOF
24037/* confdefs.h. */
24038_ACEOF
24039cat confdefs.h >>conftest.$ac_ext
24040cat >>conftest.$ac_ext <<_ACEOF
24041/* end confdefs.h. */
24042#include <string>
0a08f02a
MB
24043 #include <functional>
24044 #include <algorithm>
24045 #include <vector>
24046 #include <list>
a848cd7e
SC
24047int
24048main ()
24049{
0a08f02a
MB
24050std::vector<int> moo;
24051 std::list<int> foo;
24052 std::vector<int>::iterator it =
24053 std::find_if(moo.begin(), moo.end(),
24054 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
24055 ;
24056 return 0;
24057}
24058_ACEOF
24059rm -f conftest.$ac_objext
24060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24061 (eval $ac_compile) 2>conftest.er1
a848cd7e 24062 ac_status=$?
ac1cb8d3
VS
24063 grep -v '^ *+' conftest.er1 >conftest.err
24064 rm -f conftest.er1
24065 cat conftest.err >&5
a848cd7e
SC
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); } &&
7067783d
PC
24068 { ac_try='test -z "$ac_cxx_werror_flag"
24069 || test ! -s conftest.err'
ac1cb8d3
VS
24070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24071 (eval $ac_try) 2>&5
24072 ac_status=$?
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); }; } &&
24075 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077 (eval $ac_try) 2>&5
24078 ac_status=$?
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); }; }; then
24081 echo "$as_me:$LINENO: result: yes" >&5
24082echo "${ECHO_T}yes" >&6
a848cd7e
SC
24083else
24084 echo "$as_me: failed program was:" >&5
24085sed 's/^/| /' conftest.$ac_ext >&5
24086
24087echo "$as_me:$LINENO: result: no" >&5
24088echo "${ECHO_T}no" >&6
0a08f02a
MB
24089 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
24090echo "$as_me: error: Basic STL functionality missing" >&2;}
24091 { (exit 1); exit 1; }; }
a848cd7e 24092fi
ac1cb8d3 24093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24094
24095 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24096echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
24097 cat >conftest.$ac_ext <<_ACEOF
24098/* confdefs.h. */
24099_ACEOF
24100cat confdefs.h >>conftest.$ac_ext
24101cat >>conftest.$ac_ext <<_ACEOF
24102/* end confdefs.h. */
24103#include <string>
24104int
24105main ()
24106{
24107std::string foo, bar;
24108 foo.compare(bar);
24109 foo.compare(1, 1, bar);
24110 foo.compare(1, 1, bar, 1, 1);
24111 foo.compare("");
24112 foo.compare(1, 1, "");
24113 foo.compare(1, 1, "", 2);
24114 ;
24115 return 0;
24116}
24117_ACEOF
24118rm -f conftest.$ac_objext
24119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24120 (eval $ac_compile) 2>conftest.er1
a848cd7e 24121 ac_status=$?
ac1cb8d3
VS
24122 grep -v '^ *+' conftest.er1 >conftest.err
24123 rm -f conftest.er1
24124 cat conftest.err >&5
a848cd7e
SC
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); } &&
7067783d
PC
24127 { ac_try='test -z "$ac_cxx_werror_flag"
24128 || test ! -s conftest.err'
ac1cb8d3
VS
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24131 ac_status=$?
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; } &&
24134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24136 (eval $ac_try) 2>&5
24137 ac_status=$?
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); }; }; then
24140 echo "$as_me:$LINENO: result: yes" >&5
24141echo "${ECHO_T}yes" >&6
24142 cat >>confdefs.h <<\_ACEOF
24143#define HAVE_STD_STRING_COMPARE 1
24144_ACEOF
24145
24146else
24147 echo "$as_me: failed program was:" >&5
24148sed 's/^/| /' conftest.$ac_ext >&5
24149
24150echo "$as_me:$LINENO: result: no" >&5
24151echo "${ECHO_T}no" >&6
24152fi
ac1cb8d3 24153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24154
24155 if test "${ac_cv_header_hash_map+set}" = set; then
24156 echo "$as_me:$LINENO: checking for hash_map" >&5
24157echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24158if test "${ac_cv_header_hash_map+set}" = set; then
24159 echo $ECHO_N "(cached) $ECHO_C" >&6
24160fi
24161echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24162echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24163else
24164 # Is the header compilable?
24165echo "$as_me:$LINENO: checking hash_map usability" >&5
24166echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
24167cat >conftest.$ac_ext <<_ACEOF
24168/* confdefs.h. */
24169_ACEOF
24170cat confdefs.h >>conftest.$ac_ext
24171cat >>conftest.$ac_ext <<_ACEOF
24172/* end confdefs.h. */
24173$ac_includes_default
24174#include <hash_map>
24175_ACEOF
24176rm -f conftest.$ac_objext
24177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24178 (eval $ac_compile) 2>conftest.er1
bdcade0a 24179 ac_status=$?
ac1cb8d3
VS
24180 grep -v '^ *+' conftest.er1 >conftest.err
24181 rm -f conftest.er1
24182 cat conftest.err >&5
bdcade0a
MB
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } &&
7067783d
PC
24185 { ac_try='test -z "$ac_cxx_werror_flag"
24186 || test ! -s conftest.err'
ac1cb8d3
VS
24187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188 (eval $ac_try) 2>&5
24189 ac_status=$?
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); }; } &&
24192 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194 (eval $ac_try) 2>&5
24195 ac_status=$?
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; }; then
24198 ac_header_compiler=yes
24199else
24200 echo "$as_me: failed program was:" >&5
24201sed 's/^/| /' conftest.$ac_ext >&5
24202
24203ac_header_compiler=no
24204fi
ac1cb8d3 24205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24206echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24207echo "${ECHO_T}$ac_header_compiler" >&6
24208
24209# Is the header present?
24210echo "$as_me:$LINENO: checking hash_map presence" >&5
24211echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
24212cat >conftest.$ac_ext <<_ACEOF
24213/* confdefs.h. */
24214_ACEOF
24215cat confdefs.h >>conftest.$ac_ext
24216cat >>conftest.$ac_ext <<_ACEOF
24217/* end confdefs.h. */
24218#include <hash_map>
24219_ACEOF
24220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24222 ac_status=$?
24223 grep -v '^ *+' conftest.er1 >conftest.err
24224 rm -f conftest.er1
24225 cat conftest.err >&5
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); } >/dev/null; then
24228 if test -s conftest.err; then
24229 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24230 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24231 else
24232 ac_cpp_err=
24233 fi
24234else
24235 ac_cpp_err=yes
24236fi
24237if test -z "$ac_cpp_err"; then
24238 ac_header_preproc=yes
24239else
24240 echo "$as_me: failed program was:" >&5
24241sed 's/^/| /' conftest.$ac_ext >&5
24242
24243 ac_header_preproc=no
24244fi
24245rm -f conftest.err conftest.$ac_ext
24246echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24247echo "${ECHO_T}$ac_header_preproc" >&6
24248
24249# So? What about this header?
ac1cb8d3
VS
24250case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24251 yes:no: )
bdcade0a
MB
24252 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24253echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24254 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
24255echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
24256 ac_header_preproc=yes
bdcade0a 24257 ;;
ac1cb8d3 24258 no:yes:* )
bdcade0a
MB
24259 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
24260echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24261 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
24262echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
24263 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
24264echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
24265 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
24266echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24267 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
24268echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24269 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
24270echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24271 (
24272 cat <<\_ASBOX
ac1cb8d3
VS
24273## ----------------------------------------- ##
24274## Report this to wx-dev@lists.wxwidgets.org ##
24275## ----------------------------------------- ##
bdcade0a
MB
24276_ASBOX
24277 ) |
24278 sed "s/^/$as_me: WARNING: /" >&2
24279 ;;
24280esac
24281echo "$as_me:$LINENO: checking for hash_map" >&5
24282echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24283if test "${ac_cv_header_hash_map+set}" = set; then
24284 echo $ECHO_N "(cached) $ECHO_C" >&6
24285else
24286 ac_cv_header_hash_map=$ac_header_preproc
24287fi
24288echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24289echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24290
24291fi
24292if test $ac_cv_header_hash_map = yes; then
24293 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24294echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24295 cat >conftest.$ac_ext <<_ACEOF
24296/* confdefs.h. */
24297_ACEOF
24298cat confdefs.h >>conftest.$ac_ext
24299cat >>conftest.$ac_ext <<_ACEOF
24300/* end confdefs.h. */
24301#include <hash_map>
24302 #include <hash_set>
24303int
24304main ()
24305{
24306std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24307 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24308 ;
24309 return 0;
24310}
24311_ACEOF
24312rm -f conftest.$ac_objext
24313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24314 (eval $ac_compile) 2>conftest.er1
bdcade0a 24315 ac_status=$?
ac1cb8d3
VS
24316 grep -v '^ *+' conftest.er1 >conftest.err
24317 rm -f conftest.er1
24318 cat conftest.err >&5
bdcade0a
MB
24319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); } &&
7067783d
PC
24321 { ac_try='test -z "$ac_cxx_werror_flag"
24322 || test ! -s conftest.err'
ac1cb8d3
VS
24323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324 (eval $ac_try) 2>&5
24325 ac_status=$?
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); }; } &&
24328 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24330 (eval $ac_try) 2>&5
24331 ac_status=$?
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); }; }; then
24334 echo "$as_me:$LINENO: result: yes" >&5
24335echo "${ECHO_T}yes" >&6
24336 cat >>confdefs.h <<\_ACEOF
24337#define HAVE_HASH_MAP 1
24338_ACEOF
24339
24340 cat >>confdefs.h <<\_ACEOF
24341#define HAVE_STD_HASH_MAP 1
24342_ACEOF
24343
24344else
24345 echo "$as_me: failed program was:" >&5
24346sed 's/^/| /' conftest.$ac_ext >&5
24347
24348echo "$as_me:$LINENO: result: no" >&5
24349echo "${ECHO_T}no" >&6
24350fi
ac1cb8d3 24351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24352
24353fi
24354
24355
24356
24357 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24358 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24359echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24360if test "${ac_cv_header_ext_hash_map+set}" = set; then
24361 echo $ECHO_N "(cached) $ECHO_C" >&6
24362fi
24363echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24364echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24365else
24366 # Is the header compilable?
24367echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24368echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24369cat >conftest.$ac_ext <<_ACEOF
24370/* confdefs.h. */
24371_ACEOF
24372cat confdefs.h >>conftest.$ac_ext
24373cat >>conftest.$ac_ext <<_ACEOF
24374/* end confdefs.h. */
24375$ac_includes_default
24376#include <ext/hash_map>
24377_ACEOF
24378rm -f conftest.$ac_objext
24379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24380 (eval $ac_compile) 2>conftest.er1
bdcade0a 24381 ac_status=$?
ac1cb8d3
VS
24382 grep -v '^ *+' conftest.er1 >conftest.err
24383 rm -f conftest.er1
24384 cat conftest.err >&5
bdcade0a
MB
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); } &&
7067783d
PC
24387 { ac_try='test -z "$ac_cxx_werror_flag"
24388 || test ! -s conftest.err'
ac1cb8d3
VS
24389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390 (eval $ac_try) 2>&5
24391 ac_status=$?
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); }; } &&
24394 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24396 (eval $ac_try) 2>&5
24397 ac_status=$?
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); }; }; then
24400 ac_header_compiler=yes
24401else
24402 echo "$as_me: failed program was:" >&5
24403sed 's/^/| /' conftest.$ac_ext >&5
24404
24405ac_header_compiler=no
24406fi
ac1cb8d3 24407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24408echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24409echo "${ECHO_T}$ac_header_compiler" >&6
24410
24411# Is the header present?
24412echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24413echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24414cat >conftest.$ac_ext <<_ACEOF
24415/* confdefs.h. */
24416_ACEOF
24417cat confdefs.h >>conftest.$ac_ext
24418cat >>conftest.$ac_ext <<_ACEOF
24419/* end confdefs.h. */
24420#include <ext/hash_map>
24421_ACEOF
24422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24424 ac_status=$?
24425 grep -v '^ *+' conftest.er1 >conftest.err
24426 rm -f conftest.er1
24427 cat conftest.err >&5
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); } >/dev/null; then
24430 if test -s conftest.err; then
24431 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24432 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24433 else
24434 ac_cpp_err=
24435 fi
24436else
24437 ac_cpp_err=yes
24438fi
24439if test -z "$ac_cpp_err"; then
24440 ac_header_preproc=yes
24441else
24442 echo "$as_me: failed program was:" >&5
24443sed 's/^/| /' conftest.$ac_ext >&5
24444
24445 ac_header_preproc=no
24446fi
24447rm -f conftest.err conftest.$ac_ext
24448echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24449echo "${ECHO_T}$ac_header_preproc" >&6
24450
24451# So? What about this header?
ac1cb8d3
VS
24452case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24453 yes:no: )
bdcade0a
MB
24454 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24455echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24456 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24457echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24458 ac_header_preproc=yes
bdcade0a 24459 ;;
ac1cb8d3 24460 no:yes:* )
bdcade0a
MB
24461 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24462echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24463 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24464echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24465 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24466echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24467 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24468echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24469 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24470echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24471 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24472echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24473 (
24474 cat <<\_ASBOX
ac1cb8d3
VS
24475## ----------------------------------------- ##
24476## Report this to wx-dev@lists.wxwidgets.org ##
24477## ----------------------------------------- ##
bdcade0a
MB
24478_ASBOX
24479 ) |
24480 sed "s/^/$as_me: WARNING: /" >&2
24481 ;;
24482esac
24483echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24484echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24485if test "${ac_cv_header_ext_hash_map+set}" = set; then
24486 echo $ECHO_N "(cached) $ECHO_C" >&6
24487else
24488 ac_cv_header_ext_hash_map=$ac_header_preproc
24489fi
24490echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24491echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24492
24493fi
24494if test $ac_cv_header_ext_hash_map = yes; then
24495 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24496echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
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#include <ext/hash_map>
24504 #include <ext/hash_set>
24505int
24506main ()
24507{
24508__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24509 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24510 ;
24511 return 0;
24512}
24513_ACEOF
24514rm -f conftest.$ac_objext
24515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24516 (eval $ac_compile) 2>conftest.er1
bdcade0a 24517 ac_status=$?
ac1cb8d3
VS
24518 grep -v '^ *+' conftest.er1 >conftest.err
24519 rm -f conftest.er1
24520 cat conftest.err >&5
bdcade0a
MB
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); } &&
7067783d
PC
24523 { ac_try='test -z "$ac_cxx_werror_flag"
24524 || test ! -s conftest.err'
ac1cb8d3
VS
24525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24526 (eval $ac_try) 2>&5
24527 ac_status=$?
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); }; } &&
24530 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24532 (eval $ac_try) 2>&5
24533 ac_status=$?
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); }; }; then
24536 echo "$as_me:$LINENO: result: yes" >&5
24537echo "${ECHO_T}yes" >&6
24538 cat >>confdefs.h <<\_ACEOF
24539#define HAVE_EXT_HASH_MAP 1
24540_ACEOF
24541
24542 cat >>confdefs.h <<\_ACEOF
24543#define HAVE_GNU_CXX_HASH_MAP 1
24544_ACEOF
24545
24546else
24547 echo "$as_me: failed program was:" >&5
24548sed 's/^/| /' conftest.$ac_ext >&5
24549
24550echo "$as_me:$LINENO: result: no" >&5
24551echo "${ECHO_T}no" >&6
24552fi
ac1cb8d3 24553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24554
24555fi
24556
24557
a848cd7e
SC
24558fi
24559
24560
24561SEARCH_INCLUDE="\
24562 /usr/local/include \
24563 \
24564 /usr/Motif-2.1/include \
24565 /usr/Motif-1.2/include \
24566 /usr/include/Motif1.2 \
a848cd7e
SC
24567 \
24568 /usr/dt/include \
24569 /usr/openwin/include \
24570 \
24571 /usr/include/Xm \
24572 \
24573 /usr/X11R6/include \
24574 /usr/X11R6.4/include \
24575 /usr/X11R5/include \
24576 /usr/X11R4/include \
24577 \
24578 /usr/include/X11R6 \
24579 /usr/include/X11R5 \
24580 /usr/include/X11R4 \
24581 \
24582 /usr/local/X11R6/include \
24583 /usr/local/X11R5/include \
24584 /usr/local/X11R4/include \
24585 \
24586 /usr/local/include/X11R6 \
24587 /usr/local/include/X11R5 \
24588 /usr/local/include/X11R4 \
24589 \
24590 /usr/X11/include \
24591 /usr/include/X11 \
24592 /usr/local/X11/include \
24593 /usr/local/include/X11 \
24594 \
a848cd7e 24595 /usr/XFree86/include/X11 \
e051b34e
MW
24596 /usr/pkg/include \
24597 \
a848cd7e
SC
24598 /usr/openwin/share/include"
24599
6f9cf1e6 24600echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24601echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24602
24603case "${host}" in
24604 *-*-irix6* )
24605 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24606 echo $ECHO_N "(cached) $ECHO_C" >&6
24607else
24608
c687b303
VZ
24609 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24610 for e in a so sl dylib dll.a; do
24611 libc="$d/libc.$e"
24612 if test -f $libc; then
24613 save_LIBS="$LIBS"
24614 LIBS="$libc"
24615 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24616int main() { return 0; }
24617_ACEOF
24618rm -f conftest.$ac_objext conftest$ac_exeext
24619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24620 (eval $ac_link) 2>conftest.er1
24621 ac_status=$?
24622 grep -v '^ *+' conftest.er1 >conftest.err
24623 rm -f conftest.er1
24624 cat conftest.err >&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); } &&
7067783d
PC
24627 { ac_try='test -z "$ac_cxx_werror_flag"
24628 || test ! -s conftest.err'
0ad5d837
VZ
24629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630 (eval $ac_try) 2>&5
24631 ac_status=$?
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; } &&
24634 { ac_try='test -s conftest$ac_exeext'
24635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636 (eval $ac_try) 2>&5
24637 ac_status=$?
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); }; }; then
24640 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24641else
24642 echo "$as_me: failed program was:" >&5
24643sed 's/^/| /' conftest.$ac_ext >&5
24644
24645fi
24646rm -f conftest.err conftest.$ac_objext \
24647 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24648 LIBS="$save_LIBS"
24649 if test "x$wx_cv_std_libpath" != "x"; then
24650 break 2
24651 fi
24652 fi
24653 done
24654 done
24655 if test "x$wx_cv_std_libpath" = "x"; then
24656 wx_cv_std_libpath="lib"
0ad5d837 24657 fi
0ad5d837
VZ
24658
24659
24660fi
6f9cf1e6
MW
24661
24662 ;;
24663
24664 *-*-solaris2* )
24665 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24666 wx_cv_std_libpath="lib/64"
24667 else
24668 wx_cv_std_libpath="lib"
24669 fi
24670 ;;
24671
24672 *-*-linux* )
24673 if test "$ac_cv_sizeof_void_p" = 8 -a \
24674 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24675 wx_cv_std_libpath="lib64"
24676 else
24677 wx_cv_std_libpath="lib"
24678 fi
c687b303
VZ
24679 ;;
24680
24681 *)
24682 wx_cv_std_libpath="lib";
24683 ;;
24684esac
0ad5d837 24685
6f9cf1e6
MW
24686echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24687echo "${ECHO_T}$wx_cv_std_libpath" >&6
24688
24689SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24690
3eca31dc
MW
24691if test "$build" != "$host" -a "$GCC" = yes; then
24692 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24693 cross_root=`dirname $cross_root`
24694 cross_root=`dirname $cross_root`
24695
24696 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24697 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24698 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24699
24700 if test -z "$PKG_CONFIG_PATH"; then
24701 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24702 export PKG_CONFIG_PATH
24703 fi
24704
24705 if test -z "$x_includes" -o "$x_includes" = NONE; then
24706
24707ac_find_includes=
24708for ac_dir in $SEARCH_INCLUDE /usr/include;
24709 do
24710 if test -f "$ac_dir/X11/Intrinsic.h"; then
24711 ac_find_includes=$ac_dir
24712 break
24713 fi
24714 done
24715
24716 x_includes=$ac_find_includes
24717 fi
24718 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24719
0ad5d837
VZ
24720 ac_find_libraries=
24721 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24722 do
24723 for ac_extension in a so sl dylib dll.a; do
24724 if test -f "$ac_dir/libXt.$ac_extension"; then
24725 ac_find_libraries=$ac_dir
24726 break 2
24727 fi
24728 done
24729 done
24730
24731 x_libraries=$ac_find_libraries
24732 fi
24733 fi
24734fi
24735
a848cd7e
SC
24736
24737cat >confcache <<\_ACEOF
24738# This file is a shell script that caches the results of configure
24739# tests run on this system so they can be shared between configure
24740# scripts and configure runs, see configure's option --config-cache.
24741# It is not useful on other systems. If it contains results you don't
24742# want to keep, you may remove or edit it.
24743#
24744# config.status only pays attention to the cache file if you give it
24745# the --recheck option to rerun configure.
24746#
24747# `ac_cv_env_foo' variables (set or unset) will be overridden when
24748# loading this file, other *unset* `ac_cv_foo' will be assigned the
24749# following values.
24750
24751_ACEOF
24752
24753# The following way of writing the cache mishandles newlines in values,
24754# but we know of no workaround that is simple, portable, and efficient.
24755# So, don't put newlines in cache variables' values.
24756# Ultrix sh set writes to stderr and can't be redirected directly,
24757# and sets the high bit in the cache file unless we assign to the vars.
24758{
24759 (set) 2>&1 |
24760 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24761 *ac_space=\ *)
24762 # `set' does not quote correctly, so add quotes (double-quote
24763 # substitution turns \\\\ into \\, and sed turns \\ into \).
24764 sed -n \
ac1cb8d3
VS
24765 "s/'/'\\\\''/g;
24766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24767 ;;
24768 *)
24769 # `set' quotes correctly as required by POSIX, so do not add quotes.
24770 sed -n \
ac1cb8d3 24771 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24772 ;;
24773 esac;
24774} |
24775 sed '
24776 t clear
24777 : clear
24778 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24779 t end
24780 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24781 : end' >>confcache
24782if diff $cache_file confcache >/dev/null 2>&1; then :; else
24783 if test -w $cache_file; then
24784 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24785 cat confcache >$cache_file
24786 else
24787 echo "not updating unwritable cache $cache_file"
24788 fi
24789fi
24790rm -f confcache
24791
24792if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24793 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24794echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24795if test "${wx_cv_lib_glibc21+set}" = set; then
24796 echo $ECHO_N "(cached) $ECHO_C" >&6
24797else
24798
24799 cat >conftest.$ac_ext <<_ACEOF
24800/* confdefs.h. */
24801_ACEOF
24802cat confdefs.h >>conftest.$ac_ext
24803cat >>conftest.$ac_ext <<_ACEOF
24804/* end confdefs.h. */
24805#include <features.h>
24806int
24807main ()
24808{
24809
24810 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24811 not glibc 2.1
a848cd7e
SC
24812 #endif
24813
24814 ;
24815 return 0;
24816}
24817_ACEOF
24818rm -f conftest.$ac_objext
24819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24820 (eval $ac_compile) 2>conftest.er1
a848cd7e 24821 ac_status=$?
ac1cb8d3
VS
24822 grep -v '^ *+' conftest.er1 >conftest.err
24823 rm -f conftest.er1
24824 cat conftest.err >&5
a848cd7e
SC
24825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); } &&
7067783d
PC
24827 { ac_try='test -z "$ac_cxx_werror_flag"
24828 || test ! -s conftest.err'
ac1cb8d3
VS
24829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24830 (eval $ac_try) 2>&5
24831 ac_status=$?
24832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); }; } &&
24834 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836 (eval $ac_try) 2>&5
24837 ac_status=$?
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); }; }; then
24840
24841 wx_cv_lib_glibc21=yes
24842
24843else
24844 echo "$as_me: failed program was:" >&5
24845sed 's/^/| /' conftest.$ac_ext >&5
24846
24847
24848 wx_cv_lib_glibc21=no
24849
24850
24851fi
ac1cb8d3 24852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24853
24854fi
24855echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24856echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24857 if test "$wx_cv_lib_glibc21" = "yes"; then
24858 cat >>confdefs.h <<\_ACEOF
24859#define wxHAVE_GLIBC2 1
24860_ACEOF
24861
24862 fi
24863fi
24864
24865if test "x$wx_cv_lib_glibc21" = "xyes"; then
24866 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24867 cat >>confdefs.h <<\_ACEOF
24868#define _GNU_SOURCE 1
24869_ACEOF
24870
24871 fi
24872fi
24873
5d7b7554
VZ
24874have_cos=0
24875have_floor=0
a848cd7e 24876
5d7b7554
VZ
24877for ac_func in cos
24878do
24879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24880echo "$as_me:$LINENO: checking for $ac_func" >&5
24881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24882if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24883 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24884else
5d7b7554 24885 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24886/* confdefs.h. */
24887_ACEOF
24888cat confdefs.h >>conftest.$ac_ext
24889cat >>conftest.$ac_ext <<_ACEOF
24890/* end confdefs.h. */
5d7b7554
VZ
24891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24893#define $ac_func innocuous_$ac_func
24894
24895/* System header to define __stub macros and hopefully few prototypes,
24896 which can conflict with char $ac_func (); below.
24897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24898 <limits.h> exists even on freestanding compilers. */
24899
24900#ifdef __STDC__
24901# include <limits.h>
24902#else
24903# include <assert.h>
24904#endif
24905
24906#undef $ac_func
24907
24908/* Override any gcc2 internal prototype to avoid an error. */
24909#ifdef __cplusplus
24910extern "C"
24911{
24912#endif
24913/* We use char because int might match the return type of a gcc2
24914 builtin and then its argument prototype would still apply. */
24915char $ac_func ();
24916/* The GNU C library defines this for functions which it implements
24917 to always fail with ENOSYS. Some functions are actually named
24918 something starting with __ and the normal name is an alias. */
24919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24920choke me
24921#else
24922char (*f) () = $ac_func;
24923#endif
24924#ifdef __cplusplus
24925}
24926#endif
24927
24928int
24929main ()
24930{
24931return f != $ac_func;
24932 ;
24933 return 0;
24934}
a848cd7e 24935_ACEOF
5d7b7554
VZ
24936rm -f conftest.$ac_objext conftest$ac_exeext
24937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24938 (eval $ac_link) 2>conftest.er1
a848cd7e 24939 ac_status=$?
ac1cb8d3
VS
24940 grep -v '^ *+' conftest.er1 >conftest.err
24941 rm -f conftest.er1
24942 cat conftest.err >&5
a848cd7e
SC
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); } &&
7067783d
PC
24945 { ac_try='test -z "$ac_cxx_werror_flag"
24946 || test ! -s conftest.err'
ac1cb8d3
VS
24947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24948 (eval $ac_try) 2>&5
24949 ac_status=$?
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); }; } &&
5d7b7554 24952 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954 (eval $ac_try) 2>&5
24955 ac_status=$?
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }; }; then
5d7b7554 24958 eval "$as_ac_var=yes"
a848cd7e
SC
24959else
24960 echo "$as_me: failed program was:" >&5
24961sed 's/^/| /' conftest.$ac_ext >&5
24962
5d7b7554 24963eval "$as_ac_var=no"
a848cd7e 24964fi
5d7b7554
VZ
24965rm -f conftest.err conftest.$ac_objext \
24966 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24967fi
5d7b7554
VZ
24968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24969echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24970if test `eval echo '${'$as_ac_var'}'` = yes; then
24971 cat >>confdefs.h <<_ACEOF
24972#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24973_ACEOF
24974 have_cos=1
a848cd7e 24975fi
5d7b7554 24976done
a848cd7e 24977
ab0f0edd 24978
5d7b7554 24979for ac_func in floor
a848cd7e
SC
24980do
24981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24982echo "$as_me:$LINENO: checking for $ac_func" >&5
24983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24984if eval "test \"\${$as_ac_var+set}\" = set"; then
24985 echo $ECHO_N "(cached) $ECHO_C" >&6
24986else
24987 cat >conftest.$ac_ext <<_ACEOF
24988/* confdefs.h. */
24989_ACEOF
24990cat confdefs.h >>conftest.$ac_ext
24991cat >>conftest.$ac_ext <<_ACEOF
24992/* end confdefs.h. */
ac1cb8d3
VS
24993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24995#define $ac_func innocuous_$ac_func
24996
a848cd7e
SC
24997/* System header to define __stub macros and hopefully few prototypes,
24998 which can conflict with char $ac_func (); below.
24999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25000 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25001
a848cd7e
SC
25002#ifdef __STDC__
25003# include <limits.h>
25004#else
25005# include <assert.h>
25006#endif
ac1cb8d3
VS
25007
25008#undef $ac_func
25009
a848cd7e
SC
25010/* Override any gcc2 internal prototype to avoid an error. */
25011#ifdef __cplusplus
25012extern "C"
25013{
25014#endif
25015/* We use char because int might match the return type of a gcc2
25016 builtin and then its argument prototype would still apply. */
25017char $ac_func ();
25018/* The GNU C library defines this for functions which it implements
25019 to always fail with ENOSYS. Some functions are actually named
25020 something starting with __ and the normal name is an alias. */
25021#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25022choke me
25023#else
25024char (*f) () = $ac_func;
25025#endif
25026#ifdef __cplusplus
25027}
25028#endif
25029
25030int
25031main ()
25032{
25033return f != $ac_func;
25034 ;
25035 return 0;
25036}
25037_ACEOF
25038rm -f conftest.$ac_objext conftest$ac_exeext
25039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25040 (eval $ac_link) 2>conftest.er1
a848cd7e 25041 ac_status=$?
ac1cb8d3
VS
25042 grep -v '^ *+' conftest.er1 >conftest.err
25043 rm -f conftest.er1
25044 cat conftest.err >&5
a848cd7e
SC
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); } &&
7067783d
PC
25047 { ac_try='test -z "$ac_cxx_werror_flag"
25048 || test ! -s conftest.err'
5d7b7554
VZ
25049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25050 (eval $ac_try) 2>&5
25051 ac_status=$?
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); }; } &&
25054 { ac_try='test -s conftest$ac_exeext'
25055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25056 (eval $ac_try) 2>&5
25057 ac_status=$?
25058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059 (exit $ac_status); }; }; then
25060 eval "$as_ac_var=yes"
25061else
25062 echo "$as_me: failed program was:" >&5
25063sed 's/^/| /' conftest.$ac_ext >&5
25064
25065eval "$as_ac_var=no"
25066fi
25067rm -f conftest.err conftest.$ac_objext \
25068 conftest$ac_exeext conftest.$ac_ext
25069fi
25070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25071echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25072if test `eval echo '${'$as_ac_var'}'` = yes; then
25073 cat >>confdefs.h <<_ACEOF
25074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25075_ACEOF
25076 have_floor=1
25077fi
25078done
25079
25080echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25081echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
25082if test "$have_cos" = 1 -a "$have_floor" = 1; then
25083 echo "$as_me:$LINENO: result: yes" >&5
25084echo "${ECHO_T}yes" >&6
25085else
25086 echo "$as_me:$LINENO: result: no" >&5
25087echo "${ECHO_T}no" >&6
25088 LIBS="$LIBS -lm"
25089 # use different functions to avoid configure caching
25090 have_sin=0
25091 have_ceil=0
25092
25093for ac_func in sin
25094do
25095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25096echo "$as_me:$LINENO: checking for $ac_func" >&5
25097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25098if eval "test \"\${$as_ac_var+set}\" = set"; then
25099 echo $ECHO_N "(cached) $ECHO_C" >&6
25100else
25101 cat >conftest.$ac_ext <<_ACEOF
25102/* confdefs.h. */
25103_ACEOF
25104cat confdefs.h >>conftest.$ac_ext
25105cat >>conftest.$ac_ext <<_ACEOF
25106/* end confdefs.h. */
25107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25109#define $ac_func innocuous_$ac_func
25110
25111/* System header to define __stub macros and hopefully few prototypes,
25112 which can conflict with char $ac_func (); below.
25113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25114 <limits.h> exists even on freestanding compilers. */
25115
25116#ifdef __STDC__
25117# include <limits.h>
25118#else
25119# include <assert.h>
25120#endif
25121
25122#undef $ac_func
25123
25124/* Override any gcc2 internal prototype to avoid an error. */
25125#ifdef __cplusplus
25126extern "C"
25127{
25128#endif
25129/* We use char because int might match the return type of a gcc2
25130 builtin and then its argument prototype would still apply. */
25131char $ac_func ();
25132/* The GNU C library defines this for functions which it implements
25133 to always fail with ENOSYS. Some functions are actually named
25134 something starting with __ and the normal name is an alias. */
25135#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25136choke me
25137#else
25138char (*f) () = $ac_func;
25139#endif
25140#ifdef __cplusplus
25141}
25142#endif
25143
25144int
25145main ()
25146{
25147return f != $ac_func;
25148 ;
25149 return 0;
25150}
25151_ACEOF
25152rm -f conftest.$ac_objext conftest$ac_exeext
25153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25154 (eval $ac_link) 2>conftest.er1
25155 ac_status=$?
25156 grep -v '^ *+' conftest.er1 >conftest.err
25157 rm -f conftest.er1
25158 cat conftest.err >&5
25159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160 (exit $ac_status); } &&
7067783d
PC
25161 { ac_try='test -z "$ac_cxx_werror_flag"
25162 || test ! -s conftest.err'
5d7b7554
VZ
25163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25164 (eval $ac_try) 2>&5
25165 ac_status=$?
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); }; } &&
25168 { ac_try='test -s conftest$ac_exeext'
25169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25170 (eval $ac_try) 2>&5
25171 ac_status=$?
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }; }; then
25174 eval "$as_ac_var=yes"
25175else
25176 echo "$as_me: failed program was:" >&5
25177sed 's/^/| /' conftest.$ac_ext >&5
25178
25179eval "$as_ac_var=no"
25180fi
25181rm -f conftest.err conftest.$ac_objext \
25182 conftest$ac_exeext conftest.$ac_ext
25183fi
25184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25185echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25186if test `eval echo '${'$as_ac_var'}'` = yes; then
25187 cat >>confdefs.h <<_ACEOF
25188#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25189_ACEOF
25190 have_sin=1
25191fi
25192done
25193
25194
25195for ac_func in ceil
25196do
25197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25198echo "$as_me:$LINENO: checking for $ac_func" >&5
25199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25200if eval "test \"\${$as_ac_var+set}\" = set"; then
25201 echo $ECHO_N "(cached) $ECHO_C" >&6
25202else
25203 cat >conftest.$ac_ext <<_ACEOF
25204/* confdefs.h. */
25205_ACEOF
25206cat confdefs.h >>conftest.$ac_ext
25207cat >>conftest.$ac_ext <<_ACEOF
25208/* end confdefs.h. */
25209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25211#define $ac_func innocuous_$ac_func
25212
25213/* System header to define __stub macros and hopefully few prototypes,
25214 which can conflict with char $ac_func (); below.
25215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25216 <limits.h> exists even on freestanding compilers. */
25217
25218#ifdef __STDC__
25219# include <limits.h>
25220#else
25221# include <assert.h>
25222#endif
25223
25224#undef $ac_func
25225
25226/* Override any gcc2 internal prototype to avoid an error. */
25227#ifdef __cplusplus
25228extern "C"
25229{
25230#endif
25231/* We use char because int might match the return type of a gcc2
25232 builtin and then its argument prototype would still apply. */
25233char $ac_func ();
25234/* The GNU C library defines this for functions which it implements
25235 to always fail with ENOSYS. Some functions are actually named
25236 something starting with __ and the normal name is an alias. */
25237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25238choke me
25239#else
25240char (*f) () = $ac_func;
25241#endif
25242#ifdef __cplusplus
25243}
25244#endif
25245
25246int
25247main ()
25248{
25249return f != $ac_func;
25250 ;
25251 return 0;
25252}
25253_ACEOF
25254rm -f conftest.$ac_objext conftest$ac_exeext
25255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25256 (eval $ac_link) 2>conftest.er1
25257 ac_status=$?
25258 grep -v '^ *+' conftest.er1 >conftest.err
25259 rm -f conftest.er1
25260 cat conftest.err >&5
25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); } &&
7067783d
PC
25263 { ac_try='test -z "$ac_cxx_werror_flag"
25264 || test ! -s conftest.err'
5d7b7554
VZ
25265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25266 (eval $ac_try) 2>&5
25267 ac_status=$?
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); }; } &&
25270 { ac_try='test -s conftest$ac_exeext'
25271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25272 (eval $ac_try) 2>&5
25273 ac_status=$?
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); }; }; then
25276 eval "$as_ac_var=yes"
25277else
25278 echo "$as_me: failed program was:" >&5
25279sed 's/^/| /' conftest.$ac_ext >&5
25280
25281eval "$as_ac_var=no"
25282fi
25283rm -f conftest.err conftest.$ac_objext \
25284 conftest$ac_exeext conftest.$ac_ext
25285fi
25286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25287echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25288if test `eval echo '${'$as_ac_var'}'` = yes; then
25289 cat >>confdefs.h <<_ACEOF
25290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25291_ACEOF
25292 have_ceil=1
25293fi
25294done
25295
25296 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25297echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25298 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25299 echo "$as_me:$LINENO: result: yes" >&5
25300echo "${ECHO_T}yes" >&6
25301 else
25302 echo "$as_me:$LINENO: result: no" >&5
25303echo "${ECHO_T}no" >&6
25304 # not sure we should warn the user, crash, etc.
25305 fi
25306fi
25307
25308
25309
25310if test "$wxUSE_REGEX" != "no"; then
25311 cat >>confdefs.h <<\_ACEOF
25312#define wxUSE_REGEX 1
25313_ACEOF
25314
25315
25316 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25317 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25318echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25319 wxUSE_REGEX=builtin
25320 fi
25321
25322 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25323 if test "${ac_cv_header_regex_h+set}" = set; then
25324 echo "$as_me:$LINENO: checking for regex.h" >&5
25325echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25326if test "${ac_cv_header_regex_h+set}" = set; then
25327 echo $ECHO_N "(cached) $ECHO_C" >&6
25328fi
25329echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25330echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25331else
25332 # Is the header compilable?
25333echo "$as_me:$LINENO: checking regex.h usability" >&5
25334echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25335cat >conftest.$ac_ext <<_ACEOF
25336/* confdefs.h. */
25337_ACEOF
25338cat confdefs.h >>conftest.$ac_ext
25339cat >>conftest.$ac_ext <<_ACEOF
25340/* end confdefs.h. */
25341$ac_includes_default
25342#include <regex.h>
25343_ACEOF
25344rm -f conftest.$ac_objext
25345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25346 (eval $ac_compile) 2>conftest.er1
25347 ac_status=$?
25348 grep -v '^ *+' conftest.er1 >conftest.err
25349 rm -f conftest.er1
25350 cat conftest.err >&5
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); } &&
7067783d
PC
25353 { ac_try='test -z "$ac_cxx_werror_flag"
25354 || test ! -s conftest.err'
5d7b7554
VZ
25355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356 (eval $ac_try) 2>&5
25357 ac_status=$?
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); }; } &&
25360 { ac_try='test -s conftest.$ac_objext'
25361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362 (eval $ac_try) 2>&5
25363 ac_status=$?
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); }; }; then
25366 ac_header_compiler=yes
25367else
25368 echo "$as_me: failed program was:" >&5
25369sed 's/^/| /' conftest.$ac_ext >&5
25370
25371ac_header_compiler=no
25372fi
25373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25374echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25375echo "${ECHO_T}$ac_header_compiler" >&6
25376
25377# Is the header present?
25378echo "$as_me:$LINENO: checking regex.h presence" >&5
25379echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25380cat >conftest.$ac_ext <<_ACEOF
25381/* confdefs.h. */
25382_ACEOF
25383cat confdefs.h >>conftest.$ac_ext
25384cat >>conftest.$ac_ext <<_ACEOF
25385/* end confdefs.h. */
25386#include <regex.h>
25387_ACEOF
25388if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25390 ac_status=$?
25391 grep -v '^ *+' conftest.er1 >conftest.err
25392 rm -f conftest.er1
25393 cat conftest.err >&5
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); } >/dev/null; then
25396 if test -s conftest.err; then
25397 ac_cpp_err=$ac_cxx_preproc_warn_flag
25398 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25399 else
25400 ac_cpp_err=
25401 fi
25402else
25403 ac_cpp_err=yes
25404fi
25405if test -z "$ac_cpp_err"; then
25406 ac_header_preproc=yes
25407else
25408 echo "$as_me: failed program was:" >&5
25409sed 's/^/| /' conftest.$ac_ext >&5
25410
25411 ac_header_preproc=no
25412fi
25413rm -f conftest.err conftest.$ac_ext
25414echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25415echo "${ECHO_T}$ac_header_preproc" >&6
25416
25417# So? What about this header?
25418case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25419 yes:no: )
25420 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25421echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25422 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25423echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25424 ac_header_preproc=yes
25425 ;;
25426 no:yes:* )
25427 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25428echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25429 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25430echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25431 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25432echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25433 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25434echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25435 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25436echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25437 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25438echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25439 (
25440 cat <<\_ASBOX
25441## ----------------------------------------- ##
25442## Report this to wx-dev@lists.wxwidgets.org ##
25443## ----------------------------------------- ##
25444_ASBOX
25445 ) |
25446 sed "s/^/$as_me: WARNING: /" >&2
25447 ;;
25448esac
25449echo "$as_me:$LINENO: checking for regex.h" >&5
25450echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25451if test "${ac_cv_header_regex_h+set}" = set; then
25452 echo $ECHO_N "(cached) $ECHO_C" >&6
25453else
25454 ac_cv_header_regex_h=$ac_header_preproc
25455fi
25456echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25457echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25458
25459fi
25460if test $ac_cv_header_regex_h = yes; then
25461
25462
25463for ac_func in regcomp re_search
25464do
25465as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25466echo "$as_me:$LINENO: checking for $ac_func" >&5
25467echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25468if eval "test \"\${$as_ac_var+set}\" = set"; then
25469 echo $ECHO_N "(cached) $ECHO_C" >&6
25470else
25471 cat >conftest.$ac_ext <<_ACEOF
25472/* confdefs.h. */
25473_ACEOF
25474cat confdefs.h >>conftest.$ac_ext
25475cat >>conftest.$ac_ext <<_ACEOF
25476/* end confdefs.h. */
25477/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25479#define $ac_func innocuous_$ac_func
25480
25481/* System header to define __stub macros and hopefully few prototypes,
25482 which can conflict with char $ac_func (); below.
25483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25484 <limits.h> exists even on freestanding compilers. */
25485
25486#ifdef __STDC__
25487# include <limits.h>
25488#else
25489# include <assert.h>
25490#endif
25491
25492#undef $ac_func
25493
25494/* Override any gcc2 internal prototype to avoid an error. */
25495#ifdef __cplusplus
25496extern "C"
25497{
25498#endif
25499/* We use char because int might match the return type of a gcc2
25500 builtin and then its argument prototype would still apply. */
25501char $ac_func ();
25502/* The GNU C library defines this for functions which it implements
25503 to always fail with ENOSYS. Some functions are actually named
25504 something starting with __ and the normal name is an alias. */
25505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25506choke me
25507#else
25508char (*f) () = $ac_func;
25509#endif
25510#ifdef __cplusplus
25511}
25512#endif
25513
25514int
25515main ()
25516{
25517return f != $ac_func;
25518 ;
25519 return 0;
25520}
25521_ACEOF
25522rm -f conftest.$ac_objext conftest$ac_exeext
25523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25524 (eval $ac_link) 2>conftest.er1
25525 ac_status=$?
25526 grep -v '^ *+' conftest.er1 >conftest.err
25527 rm -f conftest.er1
25528 cat conftest.err >&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); } &&
7067783d
PC
25531 { ac_try='test -z "$ac_cxx_werror_flag"
25532 || test ! -s conftest.err'
ac1cb8d3
VS
25533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534 (eval $ac_try) 2>&5
25535 ac_status=$?
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); }; } &&
25538 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540 (eval $ac_try) 2>&5
25541 ac_status=$?
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; }; then
25544 eval "$as_ac_var=yes"
25545else
25546 echo "$as_me: failed program was:" >&5
25547sed 's/^/| /' conftest.$ac_ext >&5
25548
25549eval "$as_ac_var=no"
25550fi
ac1cb8d3
VS
25551rm -f conftest.err conftest.$ac_objext \
25552 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25553fi
25554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25555echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25556if test `eval echo '${'$as_ac_var'}'` = yes; then
25557 cat >>confdefs.h <<_ACEOF
25558#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25559_ACEOF
25560
25561fi
25562done
25563
25564fi
25565
25566
25567
25568 if test "x$ac_cv_func_regcomp" != "xyes"; then
25569 if test "$wxUSE_REGEX" = "sys" ; then
25570 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25571echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25572 { (exit 1); exit 1; }; }
25573 else
25574 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25575echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25576 wxUSE_REGEX=builtin
25577 fi
25578 else
25579 wxUSE_REGEX=sys
25580 cat >>confdefs.h <<\_ACEOF
25581#define WX_NO_REGEX_ADVANCED 1
25582_ACEOF
25583
25584 fi
25585 fi
25586fi
25587
25588
25589ZLIB_LINK=
25590if test "$wxUSE_ZLIB" != "no" ; then
25591 cat >>confdefs.h <<\_ACEOF
25592#define wxUSE_ZLIB 1
25593_ACEOF
25594
25595
25596 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25597 if test "$USE_DARWIN" = 1; then
25598 system_zlib_h_ok="yes"
25599 else
25600 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25601echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25602if test "${ac_cv_header_zlib_h+set}" = set; then
25603 echo $ECHO_N "(cached) $ECHO_C" >&6
25604else
25605 if test "$cross_compiling" = yes; then
25606 unset ac_cv_header_zlib_h
25607
25608else
25609 cat >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
25616 #include <zlib.h>
25617 #include <stdio.h>
25618
25619 int main()
25620 {
25621 FILE *f=fopen("conftestval", "w");
25622 if (!f) exit(1);
25623 fprintf(f, "%s",
25624 ZLIB_VERSION[0] == '1' &&
25625 (ZLIB_VERSION[2] > '1' ||
25626 (ZLIB_VERSION[2] == '1' &&
25627 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25628 exit(0);
25629 }
25630
25631_ACEOF
25632rm -f conftest$ac_exeext
25633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25634 (eval $ac_link) 2>&5
25635 ac_status=$?
25636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25639 (eval $ac_try) 2>&5
25640 ac_status=$?
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); }; }; then
25643 ac_cv_header_zlib_h=`cat conftestval`
25644else
25645 echo "$as_me: program exited with status $ac_status" >&5
25646echo "$as_me: failed program was:" >&5
25647sed 's/^/| /' conftest.$ac_ext >&5
25648
25649( exit $ac_status )
25650ac_cv_header_zlib_h=no
25651fi
ac1cb8d3 25652rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25653fi
25654
25655fi
25656echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25657echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25658 if test "${ac_cv_header_zlib_h+set}" = set; then
25659 echo "$as_me:$LINENO: checking for zlib.h" >&5
25660echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25661if test "${ac_cv_header_zlib_h+set}" = set; then
25662 echo $ECHO_N "(cached) $ECHO_C" >&6
25663fi
25664echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25665echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25666else
25667 # Is the header compilable?
25668echo "$as_me:$LINENO: checking zlib.h usability" >&5
25669echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25670cat >conftest.$ac_ext <<_ACEOF
25671/* confdefs.h. */
25672_ACEOF
25673cat confdefs.h >>conftest.$ac_ext
25674cat >>conftest.$ac_ext <<_ACEOF
25675/* end confdefs.h. */
25676$ac_includes_default
25677#include <zlib.h>
25678_ACEOF
25679rm -f conftest.$ac_objext
25680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25681 (eval $ac_compile) 2>conftest.er1
a848cd7e 25682 ac_status=$?
ac1cb8d3
VS
25683 grep -v '^ *+' conftest.er1 >conftest.err
25684 rm -f conftest.er1
25685 cat conftest.err >&5
a848cd7e
SC
25686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687 (exit $ac_status); } &&
7067783d
PC
25688 { ac_try='test -z "$ac_cxx_werror_flag"
25689 || test ! -s conftest.err'
ac1cb8d3
VS
25690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25691 (eval $ac_try) 2>&5
25692 ac_status=$?
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); }; } &&
25695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); }; }; then
25701 ac_header_compiler=yes
25702else
25703 echo "$as_me: failed program was:" >&5
25704sed 's/^/| /' conftest.$ac_ext >&5
25705
25706ac_header_compiler=no
25707fi
ac1cb8d3 25708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25709echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25710echo "${ECHO_T}$ac_header_compiler" >&6
25711
25712# Is the header present?
25713echo "$as_me:$LINENO: checking zlib.h presence" >&5
25714echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25715cat >conftest.$ac_ext <<_ACEOF
25716/* confdefs.h. */
25717_ACEOF
25718cat confdefs.h >>conftest.$ac_ext
25719cat >>conftest.$ac_ext <<_ACEOF
25720/* end confdefs.h. */
25721#include <zlib.h>
25722_ACEOF
25723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25725 ac_status=$?
25726 grep -v '^ *+' conftest.er1 >conftest.err
25727 rm -f conftest.er1
25728 cat conftest.err >&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } >/dev/null; then
25731 if test -s conftest.err; then
5d7b7554
VZ
25732 ac_cpp_err=$ac_cxx_preproc_warn_flag
25733 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25734 else
25735 ac_cpp_err=
25736 fi
25737else
25738 ac_cpp_err=yes
25739fi
25740if test -z "$ac_cpp_err"; then
25741 ac_header_preproc=yes
25742else
25743 echo "$as_me: failed program was:" >&5
25744sed 's/^/| /' conftest.$ac_ext >&5
25745
25746 ac_header_preproc=no
25747fi
25748rm -f conftest.err conftest.$ac_ext
25749echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25750echo "${ECHO_T}$ac_header_preproc" >&6
25751
25752# So? What about this header?
5d7b7554 25753case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25754 yes:no: )
a848cd7e
SC
25755 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25756echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25757 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25758echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25759 ac_header_preproc=yes
a848cd7e 25760 ;;
ac1cb8d3 25761 no:yes:* )
a848cd7e
SC
25762 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25763echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25764 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25765echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25766 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25767echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25768 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25769echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25770 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25771echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25772 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25773echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25774 (
25775 cat <<\_ASBOX
ac1cb8d3
VS
25776## ----------------------------------------- ##
25777## Report this to wx-dev@lists.wxwidgets.org ##
25778## ----------------------------------------- ##
a848cd7e
SC
25779_ASBOX
25780 ) |
25781 sed "s/^/$as_me: WARNING: /" >&2
25782 ;;
25783esac
25784echo "$as_me:$LINENO: checking for zlib.h" >&5
25785echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25786if test "${ac_cv_header_zlib_h+set}" = set; then
25787 echo $ECHO_N "(cached) $ECHO_C" >&6
25788else
25789 ac_cv_header_zlib_h=$ac_header_preproc
25790fi
25791echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25792echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25793
25794fi
25795
25796
25797
25798 system_zlib_h_ok=$ac_cv_header_zlib_h
25799 fi
25800
25801 if test "$system_zlib_h_ok" = "yes"; then
25802 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25803echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25804if test "${ac_cv_lib_z_deflate+set}" = set; then
25805 echo $ECHO_N "(cached) $ECHO_C" >&6
25806else
25807 ac_check_lib_save_LIBS=$LIBS
25808LIBS="-lz $LIBS"
25809cat >conftest.$ac_ext <<_ACEOF
25810/* confdefs.h. */
25811_ACEOF
25812cat confdefs.h >>conftest.$ac_ext
25813cat >>conftest.$ac_ext <<_ACEOF
25814/* end confdefs.h. */
25815
25816/* Override any gcc2 internal prototype to avoid an error. */
25817#ifdef __cplusplus
25818extern "C"
25819#endif
25820/* We use char because int might match the return type of a gcc2
25821 builtin and then its argument prototype would still apply. */
25822char deflate ();
25823int
25824main ()
25825{
25826deflate ();
25827 ;
25828 return 0;
25829}
25830_ACEOF
25831rm -f conftest.$ac_objext conftest$ac_exeext
25832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25833 (eval $ac_link) 2>conftest.er1
a848cd7e 25834 ac_status=$?
ac1cb8d3
VS
25835 grep -v '^ *+' conftest.er1 >conftest.err
25836 rm -f conftest.er1
25837 cat conftest.err >&5
a848cd7e
SC
25838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); } &&
7067783d
PC
25840 { ac_try='test -z "$ac_cxx_werror_flag"
25841 || test ! -s conftest.err'
ac1cb8d3
VS
25842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843 (eval $ac_try) 2>&5
25844 ac_status=$?
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; } &&
25847 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849 (eval $ac_try) 2>&5
25850 ac_status=$?
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; }; then
25853 ac_cv_lib_z_deflate=yes
25854else
25855 echo "$as_me: failed program was:" >&5
25856sed 's/^/| /' conftest.$ac_ext >&5
25857
25858ac_cv_lib_z_deflate=no
25859fi
ac1cb8d3
VS
25860rm -f conftest.err conftest.$ac_objext \
25861 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25862LIBS=$ac_check_lib_save_LIBS
25863fi
25864echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25865echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25866if test $ac_cv_lib_z_deflate = yes; then
25867 ZLIB_LINK=" -lz"
25868fi
25869
25870 fi
25871
25872 if test "x$ZLIB_LINK" = "x" ; then
25873 if test "$wxUSE_ZLIB" = "sys" ; then
25874 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25875echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25876 { (exit 1); exit 1; }; }
25877 else
25878 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25879echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25880 wxUSE_ZLIB=builtin
25881 fi
25882 else
25883 wxUSE_ZLIB=sys
25884 fi
25885 fi
25886fi
25887
25888
25889PNG_LINK=
25890if test "$wxUSE_LIBPNG" != "no" ; then
25891 cat >>confdefs.h <<\_ACEOF
25892#define wxUSE_LIBPNG 1
25893_ACEOF
25894
25895
25896 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25897 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25898echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25899 wxUSE_LIBPNG=sys
25900 fi
25901
25902 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25903 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25904echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25905 wxUSE_LIBPNG=builtin
25906 fi
25907
25908 if test "$wxUSE_MGL" != 1 ; then
25909 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25910 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25911echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25912if test "${ac_cv_header_png_h+set}" = set; then
25913 echo $ECHO_N "(cached) $ECHO_C" >&6
25914else
25915 if test "$cross_compiling" = yes; then
25916 unset ac_cv_header_png_h
25917
25918else
25919 cat >conftest.$ac_ext <<_ACEOF
25920/* confdefs.h. */
25921_ACEOF
25922cat confdefs.h >>conftest.$ac_ext
25923cat >>conftest.$ac_ext <<_ACEOF
25924/* end confdefs.h. */
25925
25926 #include <png.h>
25927 #include <stdio.h>
25928
25929 int main()
25930 {
25931 FILE *f=fopen("conftestval", "w");
25932 if (!f) exit(1);
25933 fprintf(f, "%s",
25934 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25935 exit(0);
25936 }
25937
25938_ACEOF
25939rm -f conftest$ac_exeext
25940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25941 (eval $ac_link) 2>&5
25942 ac_status=$?
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946 (eval $ac_try) 2>&5
25947 ac_status=$?
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); }; }; then
25950 ac_cv_header_png_h=`cat conftestval`
25951else
25952 echo "$as_me: program exited with status $ac_status" >&5
25953echo "$as_me: failed program was:" >&5
25954sed 's/^/| /' conftest.$ac_ext >&5
25955
25956( exit $ac_status )
25957ac_cv_header_png_h=no
25958fi
ac1cb8d3 25959rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25960fi
25961
25962fi
25963echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25964echo "${ECHO_T}$ac_cv_header_png_h" >&6
25965 if test "${ac_cv_header_png_h+set}" = set; then
25966 echo "$as_me:$LINENO: checking for png.h" >&5
25967echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25968if test "${ac_cv_header_png_h+set}" = set; then
25969 echo $ECHO_N "(cached) $ECHO_C" >&6
25970fi
25971echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25972echo "${ECHO_T}$ac_cv_header_png_h" >&6
25973else
25974 # Is the header compilable?
25975echo "$as_me:$LINENO: checking png.h usability" >&5
25976echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25977cat >conftest.$ac_ext <<_ACEOF
25978/* confdefs.h. */
25979_ACEOF
25980cat confdefs.h >>conftest.$ac_ext
25981cat >>conftest.$ac_ext <<_ACEOF
25982/* end confdefs.h. */
25983$ac_includes_default
25984#include <png.h>
25985_ACEOF
25986rm -f conftest.$ac_objext
25987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25988 (eval $ac_compile) 2>conftest.er1
a848cd7e 25989 ac_status=$?
ac1cb8d3
VS
25990 grep -v '^ *+' conftest.er1 >conftest.err
25991 rm -f conftest.er1
25992 cat conftest.err >&5
a848cd7e
SC
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); } &&
7067783d
PC
25995 { ac_try='test -z "$ac_cxx_werror_flag"
25996 || test ! -s conftest.err'
ac1cb8d3
VS
25997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998 (eval $ac_try) 2>&5
25999 ac_status=$?
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; } &&
26002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004 (eval $ac_try) 2>&5
26005 ac_status=$?
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; }; then
26008 ac_header_compiler=yes
26009else
26010 echo "$as_me: failed program was:" >&5
26011sed 's/^/| /' conftest.$ac_ext >&5
26012
26013ac_header_compiler=no
26014fi
ac1cb8d3 26015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26016echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26017echo "${ECHO_T}$ac_header_compiler" >&6
26018
26019# Is the header present?
26020echo "$as_me:$LINENO: checking png.h presence" >&5
26021echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
26022cat >conftest.$ac_ext <<_ACEOF
26023/* confdefs.h. */
26024_ACEOF
26025cat confdefs.h >>conftest.$ac_ext
26026cat >>conftest.$ac_ext <<_ACEOF
26027/* end confdefs.h. */
26028#include <png.h>
26029_ACEOF
26030if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26032 ac_status=$?
26033 grep -v '^ *+' conftest.er1 >conftest.err
26034 rm -f conftest.er1
26035 cat conftest.err >&5
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); } >/dev/null; then
26038 if test -s conftest.err; then
5d7b7554
VZ
26039 ac_cpp_err=$ac_cxx_preproc_warn_flag
26040 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26041 else
26042 ac_cpp_err=
26043 fi
26044else
26045 ac_cpp_err=yes
26046fi
26047if test -z "$ac_cpp_err"; then
26048 ac_header_preproc=yes
26049else
26050 echo "$as_me: failed program was:" >&5
26051sed 's/^/| /' conftest.$ac_ext >&5
26052
26053 ac_header_preproc=no
26054fi
26055rm -f conftest.err conftest.$ac_ext
26056echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26057echo "${ECHO_T}$ac_header_preproc" >&6
26058
26059# So? What about this header?
5d7b7554 26060case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26061 yes:no: )
a848cd7e
SC
26062 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
26063echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26064 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
26065echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
26066 ac_header_preproc=yes
a848cd7e 26067 ;;
ac1cb8d3 26068 no:yes:* )
a848cd7e
SC
26069 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
26070echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26071 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
26072echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
26073 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
26074echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
26075 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
26076echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26077 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
26078echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26079 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
26080echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26081 (
26082 cat <<\_ASBOX
ac1cb8d3
VS
26083## ----------------------------------------- ##
26084## Report this to wx-dev@lists.wxwidgets.org ##
26085## ----------------------------------------- ##
a848cd7e
SC
26086_ASBOX
26087 ) |
26088 sed "s/^/$as_me: WARNING: /" >&2
26089 ;;
26090esac
26091echo "$as_me:$LINENO: checking for png.h" >&5
26092echo $ECHO_N "checking for png.h... $ECHO_C" >&6
26093if test "${ac_cv_header_png_h+set}" = set; then
26094 echo $ECHO_N "(cached) $ECHO_C" >&6
26095else
26096 ac_cv_header_png_h=$ac_header_preproc
26097fi
26098echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26099echo "${ECHO_T}$ac_cv_header_png_h" >&6
26100
26101fi
26102
26103
26104
26105 if test "$ac_cv_header_png_h" = "yes"; then
26106 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26107echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
26108if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26109 echo $ECHO_N "(cached) $ECHO_C" >&6
26110else
26111 ac_check_lib_save_LIBS=$LIBS
26112LIBS="-lpng -lz -lm $LIBS"
26113cat >conftest.$ac_ext <<_ACEOF
26114/* confdefs.h. */
26115_ACEOF
26116cat confdefs.h >>conftest.$ac_ext
26117cat >>conftest.$ac_ext <<_ACEOF
26118/* end confdefs.h. */
26119
26120/* Override any gcc2 internal prototype to avoid an error. */
26121#ifdef __cplusplus
26122extern "C"
26123#endif
26124/* We use char because int might match the return type of a gcc2
26125 builtin and then its argument prototype would still apply. */
26126char png_check_sig ();
26127int
26128main ()
26129{
26130png_check_sig ();
26131 ;
26132 return 0;
26133}
26134_ACEOF
26135rm -f conftest.$ac_objext conftest$ac_exeext
26136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26137 (eval $ac_link) 2>conftest.er1
a848cd7e 26138 ac_status=$?
ac1cb8d3
VS
26139 grep -v '^ *+' conftest.er1 >conftest.err
26140 rm -f conftest.er1
26141 cat conftest.err >&5
a848cd7e
SC
26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143 (exit $ac_status); } &&
7067783d
PC
26144 { ac_try='test -z "$ac_cxx_werror_flag"
26145 || test ! -s conftest.err'
ac1cb8d3
VS
26146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26147 (eval $ac_try) 2>&5
26148 ac_status=$?
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); }; } &&
26151 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26153 (eval $ac_try) 2>&5
26154 ac_status=$?
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156 (exit $ac_status); }; }; then
26157 ac_cv_lib_png_png_check_sig=yes
26158else
26159 echo "$as_me: failed program was:" >&5
26160sed 's/^/| /' conftest.$ac_ext >&5
26161
26162ac_cv_lib_png_png_check_sig=no
26163fi
ac1cb8d3
VS
26164rm -f conftest.err conftest.$ac_objext \
26165 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26166LIBS=$ac_check_lib_save_LIBS
26167fi
26168echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26169echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
26170if test $ac_cv_lib_png_png_check_sig = yes; then
26171 PNG_LINK=" -lpng -lz"
26172fi
26173
26174 fi
26175
26176 if test "x$PNG_LINK" = "x" ; then
26177 if test "$wxUSE_LIBPNG" = "sys" ; then
26178 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26179echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26180 { (exit 1); exit 1; }; }
26181 else
26182 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26183echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26184 wxUSE_LIBPNG=builtin
26185 fi
26186 else
26187 wxUSE_LIBPNG=sys
26188 fi
26189 fi
26190 fi
26191
26192 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
26193fi
26194
26195
26196JPEG_LINK=
26197if test "$wxUSE_LIBJPEG" != "no" ; then
26198 cat >>confdefs.h <<\_ACEOF
26199#define wxUSE_LIBJPEG 1
26200_ACEOF
26201
26202
26203 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26204 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26205echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26206 wxUSE_LIBJPEG=sys
26207 fi
26208
26209 if test "$wxUSE_MGL" != 1 ; then
26210 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26211 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26212echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
26213 if test "${ac_cv_header_jpeglib_h+set}" = set; then
26214 echo $ECHO_N "(cached) $ECHO_C" >&6
26215else
26216 cat >conftest.$ac_ext <<_ACEOF
26217/* confdefs.h. */
26218_ACEOF
26219cat confdefs.h >>conftest.$ac_ext
26220cat >>conftest.$ac_ext <<_ACEOF
26221/* end confdefs.h. */
26222
26223 #undef HAVE_STDLIB_H
26224 #include <stdio.h>
26225 #include <jpeglib.h>
26226
26227int
26228main ()
26229{
26230
26231
26232 ;
26233 return 0;
26234}
26235_ACEOF
26236rm -f conftest.$ac_objext
26237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26238 (eval $ac_compile) 2>conftest.er1
a848cd7e 26239 ac_status=$?
ac1cb8d3
VS
26240 grep -v '^ *+' conftest.er1 >conftest.err
26241 rm -f conftest.er1
26242 cat conftest.err >&5
a848cd7e
SC
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); } &&
7067783d
PC
26245 { ac_try='test -z "$ac_cxx_werror_flag"
26246 || test ! -s conftest.err'
ac1cb8d3
VS
26247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248 (eval $ac_try) 2>&5
26249 ac_status=$?
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); }; } &&
26252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254 (eval $ac_try) 2>&5
26255 ac_status=$?
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); }; }; then
26258 ac_cv_header_jpeglib_h=yes
26259else
26260 echo "$as_me: failed program was:" >&5
26261sed 's/^/| /' conftest.$ac_ext >&5
26262
26263ac_cv_header_jpeglib_h=no
26264
26265fi
ac1cb8d3 26266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26267
26268fi
26269
26270 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26271echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26272
26273 if test "$ac_cv_header_jpeglib_h" = "yes"; then
26274 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26275echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26276if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26277 echo $ECHO_N "(cached) $ECHO_C" >&6
26278else
26279 ac_check_lib_save_LIBS=$LIBS
26280LIBS="-ljpeg $LIBS"
26281cat >conftest.$ac_ext <<_ACEOF
26282/* confdefs.h. */
26283_ACEOF
26284cat confdefs.h >>conftest.$ac_ext
26285cat >>conftest.$ac_ext <<_ACEOF
26286/* end confdefs.h. */
26287
26288/* Override any gcc2 internal prototype to avoid an error. */
26289#ifdef __cplusplus
26290extern "C"
26291#endif
26292/* We use char because int might match the return type of a gcc2
26293 builtin and then its argument prototype would still apply. */
26294char jpeg_read_header ();
26295int
26296main ()
26297{
26298jpeg_read_header ();
26299 ;
26300 return 0;
26301}
26302_ACEOF
26303rm -f conftest.$ac_objext conftest$ac_exeext
26304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26305 (eval $ac_link) 2>conftest.er1
a848cd7e 26306 ac_status=$?
ac1cb8d3
VS
26307 grep -v '^ *+' conftest.er1 >conftest.err
26308 rm -f conftest.er1
26309 cat conftest.err >&5
a848cd7e
SC
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } &&
7067783d
PC
26312 { ac_try='test -z "$ac_cxx_werror_flag"
26313 || test ! -s conftest.err'
ac1cb8d3
VS
26314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26315 (eval $ac_try) 2>&5
26316 ac_status=$?
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); }; } &&
26319 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321 (eval $ac_try) 2>&5
26322 ac_status=$?
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); }; }; then
26325 ac_cv_lib_jpeg_jpeg_read_header=yes
26326else
26327 echo "$as_me: failed program was:" >&5
26328sed 's/^/| /' conftest.$ac_ext >&5
26329
26330ac_cv_lib_jpeg_jpeg_read_header=no
26331fi
ac1cb8d3
VS
26332rm -f conftest.err conftest.$ac_objext \
26333 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26334LIBS=$ac_check_lib_save_LIBS
26335fi
26336echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26337echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26338if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26339 JPEG_LINK=" -ljpeg"
26340fi
26341
26342 fi
26343
26344 if test "x$JPEG_LINK" = "x" ; then
26345 if test "$wxUSE_LIBJPEG" = "sys" ; then
26346 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26347echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26348 { (exit 1); exit 1; }; }
26349 else
26350 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26351echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26352 wxUSE_LIBJPEG=builtin
26353 fi
26354 else
26355 wxUSE_LIBJPEG=sys
26356 fi
26357 fi
26358 fi
26359fi
26360
26361
26362TIFF_LINK=
26363TIFF_PREREQ_LINKS=-lm
26364if test "$wxUSE_LIBTIFF" != "no" ; then
26365 cat >>confdefs.h <<\_ACEOF
26366#define wxUSE_LIBTIFF 1
26367_ACEOF
26368
26369
26370 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26371 if test "$wxUSE_LIBJPEG" = "sys"; then
26372 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26373 fi
26374 if test "$wxUSE_ZLIB" = "sys"; then
26375 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26376 fi
26377 if test "${ac_cv_header_tiffio_h+set}" = set; then
26378 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26379echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26380if test "${ac_cv_header_tiffio_h+set}" = set; then
26381 echo $ECHO_N "(cached) $ECHO_C" >&6
26382fi
26383echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26384echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26385else
26386 # Is the header compilable?
26387echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26388echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26389cat >conftest.$ac_ext <<_ACEOF
26390/* confdefs.h. */
26391_ACEOF
26392cat confdefs.h >>conftest.$ac_ext
26393cat >>conftest.$ac_ext <<_ACEOF
26394/* end confdefs.h. */
26395$ac_includes_default
26396#include <tiffio.h>
26397_ACEOF
26398rm -f conftest.$ac_objext
26399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26400 (eval $ac_compile) 2>conftest.er1
a848cd7e 26401 ac_status=$?
ac1cb8d3
VS
26402 grep -v '^ *+' conftest.er1 >conftest.err
26403 rm -f conftest.er1
26404 cat conftest.err >&5
a848cd7e
SC
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); } &&
7067783d
PC
26407 { ac_try='test -z "$ac_cxx_werror_flag"
26408 || test ! -s conftest.err'
ac1cb8d3
VS
26409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26410 (eval $ac_try) 2>&5
26411 ac_status=$?
26412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413 (exit $ac_status); }; } &&
26414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26416 (eval $ac_try) 2>&5
26417 ac_status=$?
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); }; }; then
26420 ac_header_compiler=yes
26421else
26422 echo "$as_me: failed program was:" >&5
26423sed 's/^/| /' conftest.$ac_ext >&5
26424
26425ac_header_compiler=no
26426fi
ac1cb8d3 26427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26428echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26429echo "${ECHO_T}$ac_header_compiler" >&6
26430
26431# Is the header present?
26432echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26433echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26434cat >conftest.$ac_ext <<_ACEOF
26435/* confdefs.h. */
26436_ACEOF
26437cat confdefs.h >>conftest.$ac_ext
26438cat >>conftest.$ac_ext <<_ACEOF
26439/* end confdefs.h. */
26440#include <tiffio.h>
26441_ACEOF
26442if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26444 ac_status=$?
26445 grep -v '^ *+' conftest.er1 >conftest.err
26446 rm -f conftest.er1
26447 cat conftest.err >&5
26448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26449 (exit $ac_status); } >/dev/null; then
26450 if test -s conftest.err; then
5d7b7554
VZ
26451 ac_cpp_err=$ac_cxx_preproc_warn_flag
26452 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26453 else
26454 ac_cpp_err=
26455 fi
26456else
26457 ac_cpp_err=yes
26458fi
26459if test -z "$ac_cpp_err"; then
26460 ac_header_preproc=yes
26461else
26462 echo "$as_me: failed program was:" >&5
26463sed 's/^/| /' conftest.$ac_ext >&5
26464
26465 ac_header_preproc=no
26466fi
26467rm -f conftest.err conftest.$ac_ext
26468echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26469echo "${ECHO_T}$ac_header_preproc" >&6
26470
26471# So? What about this header?
5d7b7554 26472case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26473 yes:no: )
a848cd7e
SC
26474 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26475echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26476 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26477echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26478 ac_header_preproc=yes
a848cd7e 26479 ;;
ac1cb8d3 26480 no:yes:* )
a848cd7e
SC
26481 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26482echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26483 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26484echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26485 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26486echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26487 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26488echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26489 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26490echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26491 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26492echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26493 (
26494 cat <<\_ASBOX
ac1cb8d3
VS
26495## ----------------------------------------- ##
26496## Report this to wx-dev@lists.wxwidgets.org ##
26497## ----------------------------------------- ##
a848cd7e
SC
26498_ASBOX
26499 ) |
26500 sed "s/^/$as_me: WARNING: /" >&2
26501 ;;
26502esac
26503echo "$as_me:$LINENO: checking for tiffio.h" >&5
26504echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26505if test "${ac_cv_header_tiffio_h+set}" = set; then
26506 echo $ECHO_N "(cached) $ECHO_C" >&6
26507else
26508 ac_cv_header_tiffio_h=$ac_header_preproc
26509fi
26510echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26511echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26512
26513fi
26514if test $ac_cv_header_tiffio_h = yes; then
26515
26516 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26517echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26518if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26519 echo $ECHO_N "(cached) $ECHO_C" >&6
26520else
26521 ac_check_lib_save_LIBS=$LIBS
26522LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26523cat >conftest.$ac_ext <<_ACEOF
26524/* confdefs.h. */
26525_ACEOF
26526cat confdefs.h >>conftest.$ac_ext
26527cat >>conftest.$ac_ext <<_ACEOF
26528/* end confdefs.h. */
26529
26530/* Override any gcc2 internal prototype to avoid an error. */
26531#ifdef __cplusplus
26532extern "C"
26533#endif
26534/* We use char because int might match the return type of a gcc2
26535 builtin and then its argument prototype would still apply. */
26536char TIFFError ();
26537int
26538main ()
26539{
26540TIFFError ();
26541 ;
26542 return 0;
26543}
26544_ACEOF
26545rm -f conftest.$ac_objext conftest$ac_exeext
26546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26547 (eval $ac_link) 2>conftest.er1
a848cd7e 26548 ac_status=$?
ac1cb8d3
VS
26549 grep -v '^ *+' conftest.er1 >conftest.err
26550 rm -f conftest.er1
26551 cat conftest.err >&5
a848cd7e
SC
26552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553 (exit $ac_status); } &&
7067783d
PC
26554 { ac_try='test -z "$ac_cxx_werror_flag"
26555 || test ! -s conftest.err'
ac1cb8d3
VS
26556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26557 (eval $ac_try) 2>&5
26558 ac_status=$?
26559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560 (exit $ac_status); }; } &&
26561 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26563 (eval $ac_try) 2>&5
26564 ac_status=$?
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); }; }; then
26567 ac_cv_lib_tiff_TIFFError=yes
26568else
26569 echo "$as_me: failed program was:" >&5
26570sed 's/^/| /' conftest.$ac_ext >&5
26571
26572ac_cv_lib_tiff_TIFFError=no
26573fi
ac1cb8d3
VS
26574rm -f conftest.err conftest.$ac_objext \
26575 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26576LIBS=$ac_check_lib_save_LIBS
26577fi
26578echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26579echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26580if test $ac_cv_lib_tiff_TIFFError = yes; then
26581 TIFF_LINK=" -ltiff"
26582fi
26583
26584
26585
26586fi
26587
26588
26589
26590 if test "x$TIFF_LINK" = "x" ; then
26591 if test "$wxUSE_LIBTIFF" = "sys" ; then
26592 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26593echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26594 { (exit 1); exit 1; }; }
26595 else
26596 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26597echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26598 wxUSE_LIBTIFF=builtin
26599 fi
26600 else
26601 wxUSE_LIBTIFF=sys
26602 fi
26603 fi
26604fi
26605
26606
47a7e797
MW
26607if test "$wxUSE_WCHAR_T" != "yes"; then
26608 if test "$wxUSE_EXPAT" != "no"; then
26609 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26610echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26611 wxUSE_EXPAT=no
26612 fi
26613 if test "$wxUSE_XML" != "no"; then
26614 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26615echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26616 wxUSE_XML=no
26617 fi
26618fi
26619
a848cd7e
SC
26620if test "$wxUSE_EXPAT" != "no"; then
26621 wxUSE_XML=yes
26622 cat >>confdefs.h <<\_ACEOF
26623#define wxUSE_EXPAT 1
26624_ACEOF
26625
26626 cat >>confdefs.h <<\_ACEOF
26627#define wxUSE_XML 1
26628_ACEOF
26629
26630
26631 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26632 if test "${ac_cv_header_expat_h+set}" = set; then
26633 echo "$as_me:$LINENO: checking for expat.h" >&5
26634echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26635if test "${ac_cv_header_expat_h+set}" = set; then
26636 echo $ECHO_N "(cached) $ECHO_C" >&6
26637fi
26638echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26639echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26640else
26641 # Is the header compilable?
26642echo "$as_me:$LINENO: checking expat.h usability" >&5
26643echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26644cat >conftest.$ac_ext <<_ACEOF
26645/* confdefs.h. */
26646_ACEOF
26647cat confdefs.h >>conftest.$ac_ext
26648cat >>conftest.$ac_ext <<_ACEOF
26649/* end confdefs.h. */
26650$ac_includes_default
26651#include <expat.h>
26652_ACEOF
26653rm -f conftest.$ac_objext
26654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26655 (eval $ac_compile) 2>conftest.er1
a848cd7e 26656 ac_status=$?
ac1cb8d3
VS
26657 grep -v '^ *+' conftest.er1 >conftest.err
26658 rm -f conftest.er1
26659 cat conftest.err >&5
a848cd7e
SC
26660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661 (exit $ac_status); } &&
7067783d
PC
26662 { ac_try='test -z "$ac_cxx_werror_flag"
26663 || test ! -s conftest.err'
ac1cb8d3
VS
26664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26665 (eval $ac_try) 2>&5
26666 ac_status=$?
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); }; } &&
26669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26671 (eval $ac_try) 2>&5
26672 ac_status=$?
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); }; }; then
26675 ac_header_compiler=yes
26676else
26677 echo "$as_me: failed program was:" >&5
26678sed 's/^/| /' conftest.$ac_ext >&5
26679
26680ac_header_compiler=no
26681fi
ac1cb8d3 26682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26684echo "${ECHO_T}$ac_header_compiler" >&6
26685
26686# Is the header present?
26687echo "$as_me:$LINENO: checking expat.h presence" >&5
26688echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26689cat >conftest.$ac_ext <<_ACEOF
26690/* confdefs.h. */
26691_ACEOF
26692cat confdefs.h >>conftest.$ac_ext
26693cat >>conftest.$ac_ext <<_ACEOF
26694/* end confdefs.h. */
26695#include <expat.h>
26696_ACEOF
26697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26699 ac_status=$?
26700 grep -v '^ *+' conftest.er1 >conftest.err
26701 rm -f conftest.er1
26702 cat conftest.err >&5
26703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704 (exit $ac_status); } >/dev/null; then
26705 if test -s conftest.err; then
5d7b7554
VZ
26706 ac_cpp_err=$ac_cxx_preproc_warn_flag
26707 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26708 else
26709 ac_cpp_err=
26710 fi
26711else
26712 ac_cpp_err=yes
26713fi
26714if test -z "$ac_cpp_err"; then
26715 ac_header_preproc=yes
26716else
26717 echo "$as_me: failed program was:" >&5
26718sed 's/^/| /' conftest.$ac_ext >&5
26719
26720 ac_header_preproc=no
26721fi
26722rm -f conftest.err conftest.$ac_ext
26723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26724echo "${ECHO_T}$ac_header_preproc" >&6
26725
26726# So? What about this header?
5d7b7554 26727case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26728 yes:no: )
a848cd7e
SC
26729 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26730echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26731 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26732echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26733 ac_header_preproc=yes
a848cd7e 26734 ;;
ac1cb8d3 26735 no:yes:* )
a848cd7e
SC
26736 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26737echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26738 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26739echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26740 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26741echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26742 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26743echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26744 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26745echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26746 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26747echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26748 (
26749 cat <<\_ASBOX
ac1cb8d3
VS
26750## ----------------------------------------- ##
26751## Report this to wx-dev@lists.wxwidgets.org ##
26752## ----------------------------------------- ##
a848cd7e
SC
26753_ASBOX
26754 ) |
26755 sed "s/^/$as_me: WARNING: /" >&2
26756 ;;
26757esac
26758echo "$as_me:$LINENO: checking for expat.h" >&5
26759echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26760if test "${ac_cv_header_expat_h+set}" = set; then
26761 echo $ECHO_N "(cached) $ECHO_C" >&6
26762else
26763 ac_cv_header_expat_h=$ac_header_preproc
26764fi
26765echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26766echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26767
26768fi
26769if test $ac_cv_header_expat_h = yes; then
26770 found_expat_h=1
26771fi
26772
26773
26774 if test "x$found_expat_h" = "x1"; then
26775 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26776echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26777if test "${wx_cv_expat_is_not_broken+set}" = set; then
26778 echo $ECHO_N "(cached) $ECHO_C" >&6
26779else
26780
a848cd7e
SC
26781 cat >conftest.$ac_ext <<_ACEOF
26782/* confdefs.h. */
26783_ACEOF
26784cat confdefs.h >>conftest.$ac_ext
26785cat >>conftest.$ac_ext <<_ACEOF
26786/* end confdefs.h. */
26787#include <expat.h>
26788int
26789main ()
26790{
26791
26792 ;
26793 return 0;
26794}
26795_ACEOF
26796rm -f conftest.$ac_objext
26797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26798 (eval $ac_compile) 2>conftest.er1
a848cd7e 26799 ac_status=$?
ac1cb8d3
VS
26800 grep -v '^ *+' conftest.er1 >conftest.err
26801 rm -f conftest.er1
26802 cat conftest.err >&5
a848cd7e
SC
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); } &&
7067783d
PC
26805 { ac_try='test -z "$ac_cxx_werror_flag"
26806 || test ! -s conftest.err'
ac1cb8d3
VS
26807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26808 (eval $ac_try) 2>&5
26809 ac_status=$?
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); }; } &&
26812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814 (eval $ac_try) 2>&5
26815 ac_status=$?
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); }; }; then
26818 wx_cv_expat_is_not_broken=yes
26819else
26820 echo "$as_me: failed program was:" >&5
26821sed 's/^/| /' conftest.$ac_ext >&5
26822
26823wx_cv_expat_is_not_broken=no
26824
26825fi
ac1cb8d3 26826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26827
26828
26829fi
26830echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26831echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26832 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26833 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26834echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26835if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26836 echo $ECHO_N "(cached) $ECHO_C" >&6
26837else
26838 ac_check_lib_save_LIBS=$LIBS
26839LIBS="-lexpat $LIBS"
26840cat >conftest.$ac_ext <<_ACEOF
26841/* confdefs.h. */
26842_ACEOF
26843cat confdefs.h >>conftest.$ac_ext
26844cat >>conftest.$ac_ext <<_ACEOF
26845/* end confdefs.h. */
26846
26847/* Override any gcc2 internal prototype to avoid an error. */
26848#ifdef __cplusplus
26849extern "C"
26850#endif
26851/* We use char because int might match the return type of a gcc2
26852 builtin and then its argument prototype would still apply. */
26853char XML_ParserCreate ();
26854int
26855main ()
26856{
26857XML_ParserCreate ();
26858 ;
26859 return 0;
26860}
26861_ACEOF
26862rm -f conftest.$ac_objext conftest$ac_exeext
26863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26864 (eval $ac_link) 2>conftest.er1
a848cd7e 26865 ac_status=$?
ac1cb8d3
VS
26866 grep -v '^ *+' conftest.er1 >conftest.err
26867 rm -f conftest.er1
26868 cat conftest.err >&5
a848cd7e
SC
26869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870 (exit $ac_status); } &&
7067783d
PC
26871 { ac_try='test -z "$ac_cxx_werror_flag"
26872 || test ! -s conftest.err'
ac1cb8d3
VS
26873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26874 (eval $ac_try) 2>&5
26875 ac_status=$?
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); }; } &&
26878 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26880 (eval $ac_try) 2>&5
26881 ac_status=$?
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); }; }; then
26884 ac_cv_lib_expat_XML_ParserCreate=yes
26885else
26886 echo "$as_me: failed program was:" >&5
26887sed 's/^/| /' conftest.$ac_ext >&5
26888
26889ac_cv_lib_expat_XML_ParserCreate=no
26890fi
ac1cb8d3
VS
26891rm -f conftest.err conftest.$ac_objext \
26892 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26893LIBS=$ac_check_lib_save_LIBS
26894fi
26895echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26896echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26897if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26898 EXPAT_LINK=" -lexpat"
26899fi
26900
26901 fi
26902 fi
26903 if test "x$EXPAT_LINK" = "x" ; then
26904 if test "$wxUSE_EXPAT" = "sys" ; then
26905 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26906echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26907 { (exit 1); exit 1; }; }
26908 else
26909 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26910echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26911 wxUSE_EXPAT=builtin
26912 fi
26913 else
26914 wxUSE_EXPAT=sys
26915 fi
26916 fi
26917 if test "$wxUSE_EXPAT" = "builtin" ; then
26918
26919
26920subdirs="$subdirs src/expat"
26921
26922 fi
26923fi
26924
26925
26926
26927if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26928 if test "${ac_cv_header_mspack_h+set}" = set; then
26929 echo "$as_me:$LINENO: checking for mspack.h" >&5
26930echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26931if test "${ac_cv_header_mspack_h+set}" = set; then
26932 echo $ECHO_N "(cached) $ECHO_C" >&6
26933fi
26934echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26935echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26936else
26937 # Is the header compilable?
26938echo "$as_me:$LINENO: checking mspack.h usability" >&5
26939echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26940cat >conftest.$ac_ext <<_ACEOF
26941/* confdefs.h. */
26942_ACEOF
26943cat confdefs.h >>conftest.$ac_ext
26944cat >>conftest.$ac_ext <<_ACEOF
26945/* end confdefs.h. */
26946$ac_includes_default
26947#include <mspack.h>
26948_ACEOF
26949rm -f conftest.$ac_objext
26950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26951 (eval $ac_compile) 2>conftest.er1
a848cd7e 26952 ac_status=$?
ac1cb8d3
VS
26953 grep -v '^ *+' conftest.er1 >conftest.err
26954 rm -f conftest.er1
26955 cat conftest.err >&5
a848cd7e
SC
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); } &&
7067783d
PC
26958 { ac_try='test -z "$ac_cxx_werror_flag"
26959 || test ! -s conftest.err'
ac1cb8d3
VS
26960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961 (eval $ac_try) 2>&5
26962 ac_status=$?
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); }; } &&
26965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967 (eval $ac_try) 2>&5
26968 ac_status=$?
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); }; }; then
26971 ac_header_compiler=yes
26972else
26973 echo "$as_me: failed program was:" >&5
26974sed 's/^/| /' conftest.$ac_ext >&5
26975
26976ac_header_compiler=no
26977fi
ac1cb8d3 26978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26980echo "${ECHO_T}$ac_header_compiler" >&6
26981
26982# Is the header present?
26983echo "$as_me:$LINENO: checking mspack.h presence" >&5
26984echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26985cat >conftest.$ac_ext <<_ACEOF
26986/* confdefs.h. */
26987_ACEOF
26988cat confdefs.h >>conftest.$ac_ext
26989cat >>conftest.$ac_ext <<_ACEOF
26990/* end confdefs.h. */
26991#include <mspack.h>
26992_ACEOF
26993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26995 ac_status=$?
26996 grep -v '^ *+' conftest.er1 >conftest.err
26997 rm -f conftest.er1
26998 cat conftest.err >&5
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); } >/dev/null; then
27001 if test -s conftest.err; then
5d7b7554
VZ
27002 ac_cpp_err=$ac_cxx_preproc_warn_flag
27003 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27004 else
27005 ac_cpp_err=
27006 fi
27007else
27008 ac_cpp_err=yes
27009fi
27010if test -z "$ac_cpp_err"; then
27011 ac_header_preproc=yes
27012else
27013 echo "$as_me: failed program was:" >&5
27014sed 's/^/| /' conftest.$ac_ext >&5
27015
27016 ac_header_preproc=no
27017fi
27018rm -f conftest.err conftest.$ac_ext
27019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27020echo "${ECHO_T}$ac_header_preproc" >&6
27021
27022# So? What about this header?
5d7b7554 27023case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27024 yes:no: )
a848cd7e
SC
27025 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
27026echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27027 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
27028echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
27029 ac_header_preproc=yes
a848cd7e 27030 ;;
ac1cb8d3 27031 no:yes:* )
a848cd7e
SC
27032 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
27033echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27034 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
27035echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
27036 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
27037echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
27038 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
27039echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27040 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
27041echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27042 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
27043echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27044 (
27045 cat <<\_ASBOX
ac1cb8d3
VS
27046## ----------------------------------------- ##
27047## Report this to wx-dev@lists.wxwidgets.org ##
27048## ----------------------------------------- ##
a848cd7e
SC
27049_ASBOX
27050 ) |
27051 sed "s/^/$as_me: WARNING: /" >&2
27052 ;;
27053esac
27054echo "$as_me:$LINENO: checking for mspack.h" >&5
27055echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
27056if test "${ac_cv_header_mspack_h+set}" = set; then
27057 echo $ECHO_N "(cached) $ECHO_C" >&6
27058else
27059 ac_cv_header_mspack_h=$ac_header_preproc
27060fi
27061echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27062echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
27063
27064fi
27065if test $ac_cv_header_mspack_h = yes; then
27066 found_mspack_h=1
27067fi
27068
27069
27070 if test "x$found_mspack_h" = "x1"; then
27071 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27072echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
27073if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27074 echo $ECHO_N "(cached) $ECHO_C" >&6
27075else
27076 ac_check_lib_save_LIBS=$LIBS
27077LIBS="-lmspack $LIBS"
27078cat >conftest.$ac_ext <<_ACEOF
27079/* confdefs.h. */
27080_ACEOF
27081cat confdefs.h >>conftest.$ac_ext
27082cat >>conftest.$ac_ext <<_ACEOF
27083/* end confdefs.h. */
27084
27085/* Override any gcc2 internal prototype to avoid an error. */
27086#ifdef __cplusplus
27087extern "C"
27088#endif
27089/* We use char because int might match the return type of a gcc2
27090 builtin and then its argument prototype would still apply. */
27091char mspack_create_chm_decompressor ();
27092int
27093main ()
27094{
27095mspack_create_chm_decompressor ();
27096 ;
27097 return 0;
27098}
27099_ACEOF
27100rm -f conftest.$ac_objext conftest$ac_exeext
27101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27102 (eval $ac_link) 2>conftest.er1
a848cd7e 27103 ac_status=$?
ac1cb8d3
VS
27104 grep -v '^ *+' conftest.er1 >conftest.err
27105 rm -f conftest.er1
27106 cat conftest.err >&5
a848cd7e
SC
27107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 (exit $ac_status); } &&
7067783d
PC
27109 { ac_try='test -z "$ac_cxx_werror_flag"
27110 || test ! -s conftest.err'
ac1cb8d3
VS
27111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27112 (eval $ac_try) 2>&5
27113 ac_status=$?
27114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115 (exit $ac_status); }; } &&
27116 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27118 (eval $ac_try) 2>&5
27119 ac_status=$?
27120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121 (exit $ac_status); }; }; then
27122 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27123else
27124 echo "$as_me: failed program was:" >&5
27125sed 's/^/| /' conftest.$ac_ext >&5
27126
27127ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27128fi
ac1cb8d3
VS
27129rm -f conftest.err conftest.$ac_objext \
27130 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27131LIBS=$ac_check_lib_save_LIBS
27132fi
27133echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27134echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
27135if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27136 MSPACK_LINK=" -lmspack"
27137fi
27138
27139 fi
27140 if test "x$MSPACK_LINK" = "x" ; then
27141 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
27142 fi
27143fi
27144
27145if test "$wxUSE_LIBMSPACK" != "no"; then
27146 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
27147#define wxUSE_LIBMSPACK 1
27148_ACEOF
27149
a848cd7e
SC
27150fi
27151
27152
27153
27154AFMINSTALL=
27155WIN32INSTALL=
27156
27157TOOLKIT=
27158TOOLKIT_INCLUDE=
27159WIDGET_SET=
27160
27161if test "$USE_WIN32" = 1 ; then
27162
27163for ac_header in w32api.h
27164do
27165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27166if eval "test \"\${$as_ac_Header+set}\" = set"; then
27167 echo "$as_me:$LINENO: checking for $ac_header" >&5
27168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27169if eval "test \"\${$as_ac_Header+set}\" = set"; then
27170 echo $ECHO_N "(cached) $ECHO_C" >&6
27171fi
27172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27173echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27174else
27175 # Is the header compilable?
27176echo "$as_me:$LINENO: checking $ac_header usability" >&5
27177echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27178cat >conftest.$ac_ext <<_ACEOF
27179/* confdefs.h. */
27180_ACEOF
27181cat confdefs.h >>conftest.$ac_ext
27182cat >>conftest.$ac_ext <<_ACEOF
27183/* end confdefs.h. */
27184$ac_includes_default
27185#include <$ac_header>
27186_ACEOF
27187rm -f conftest.$ac_objext
27188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27189 (eval $ac_compile) 2>conftest.er1
a848cd7e 27190 ac_status=$?
ac1cb8d3
VS
27191 grep -v '^ *+' conftest.er1 >conftest.err
27192 rm -f conftest.er1
27193 cat conftest.err >&5
a848cd7e
SC
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); } &&
7067783d
PC
27196 { ac_try='test -z "$ac_cxx_werror_flag"
27197 || test ! -s conftest.err'
ac1cb8d3
VS
27198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199 (eval $ac_try) 2>&5
27200 ac_status=$?
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); }; } &&
27203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205 (eval $ac_try) 2>&5
27206 ac_status=$?
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; }; then
27209 ac_header_compiler=yes
27210else
27211 echo "$as_me: failed program was:" >&5
27212sed 's/^/| /' conftest.$ac_ext >&5
27213
27214ac_header_compiler=no
27215fi
ac1cb8d3 27216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27217echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27218echo "${ECHO_T}$ac_header_compiler" >&6
27219
27220# Is the header present?
27221echo "$as_me:$LINENO: checking $ac_header presence" >&5
27222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27223cat >conftest.$ac_ext <<_ACEOF
27224/* confdefs.h. */
27225_ACEOF
27226cat confdefs.h >>conftest.$ac_ext
27227cat >>conftest.$ac_ext <<_ACEOF
27228/* end confdefs.h. */
27229#include <$ac_header>
27230_ACEOF
27231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27233 ac_status=$?
27234 grep -v '^ *+' conftest.er1 >conftest.err
27235 rm -f conftest.er1
27236 cat conftest.err >&5
27237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); } >/dev/null; then
27239 if test -s conftest.err; then
5d7b7554
VZ
27240 ac_cpp_err=$ac_cxx_preproc_warn_flag
27241 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27242 else
27243 ac_cpp_err=
27244 fi
27245else
27246 ac_cpp_err=yes
27247fi
27248if test -z "$ac_cpp_err"; then
27249 ac_header_preproc=yes
27250else
27251 echo "$as_me: failed program was:" >&5
27252sed 's/^/| /' conftest.$ac_ext >&5
27253
27254 ac_header_preproc=no
27255fi
27256rm -f conftest.err conftest.$ac_ext
27257echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27258echo "${ECHO_T}$ac_header_preproc" >&6
27259
27260# So? What about this header?
5d7b7554 27261case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27262 yes:no: )
a848cd7e
SC
27263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27264echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27266echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27267 ac_header_preproc=yes
a848cd7e 27268 ;;
ac1cb8d3 27269 no:yes:* )
a848cd7e
SC
27270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27271echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27273echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27275echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27277echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27281echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27282 (
27283 cat <<\_ASBOX
ac1cb8d3
VS
27284## ----------------------------------------- ##
27285## Report this to wx-dev@lists.wxwidgets.org ##
27286## ----------------------------------------- ##
a848cd7e
SC
27287_ASBOX
27288 ) |
27289 sed "s/^/$as_me: WARNING: /" >&2
27290 ;;
27291esac
27292echo "$as_me:$LINENO: checking for $ac_header" >&5
27293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27294if eval "test \"\${$as_ac_Header+set}\" = set"; then
27295 echo $ECHO_N "(cached) $ECHO_C" >&6
27296else
ac1cb8d3 27297 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
27298fi
27299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27301
27302fi
27303if test `eval echo '${'$as_ac_Header'}'` = yes; then
27304 cat >>confdefs.h <<_ACEOF
27305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27306_ACEOF
27307
27308fi
27309
27310done
27311
27312 if test "${ac_cv_header_windows_h+set}" = set; then
27313 echo "$as_me:$LINENO: checking for windows.h" >&5
27314echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27315if test "${ac_cv_header_windows_h+set}" = set; then
27316 echo $ECHO_N "(cached) $ECHO_C" >&6
27317fi
27318echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27319echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27320else
27321 # Is the header compilable?
27322echo "$as_me:$LINENO: checking windows.h usability" >&5
27323echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27324cat >conftest.$ac_ext <<_ACEOF
27325/* confdefs.h. */
27326_ACEOF
27327cat confdefs.h >>conftest.$ac_ext
27328cat >>conftest.$ac_ext <<_ACEOF
27329/* end confdefs.h. */
27330$ac_includes_default
27331#include <windows.h>
27332_ACEOF
27333rm -f conftest.$ac_objext
27334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27335 (eval $ac_compile) 2>conftest.er1
a848cd7e 27336 ac_status=$?
ac1cb8d3
VS
27337 grep -v '^ *+' conftest.er1 >conftest.err
27338 rm -f conftest.er1
27339 cat conftest.err >&5
a848cd7e
SC
27340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27341 (exit $ac_status); } &&
7067783d
PC
27342 { ac_try='test -z "$ac_cxx_werror_flag"
27343 || test ! -s conftest.err'
ac1cb8d3
VS
27344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27345 (eval $ac_try) 2>&5
27346 ac_status=$?
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); }; } &&
27349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27351 (eval $ac_try) 2>&5
27352 ac_status=$?
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); }; }; then
27355 ac_header_compiler=yes
27356else
27357 echo "$as_me: failed program was:" >&5
27358sed 's/^/| /' conftest.$ac_ext >&5
27359
27360ac_header_compiler=no
27361fi
ac1cb8d3 27362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27363echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27364echo "${ECHO_T}$ac_header_compiler" >&6
27365
27366# Is the header present?
27367echo "$as_me:$LINENO: checking windows.h presence" >&5
27368echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27369cat >conftest.$ac_ext <<_ACEOF
27370/* confdefs.h. */
27371_ACEOF
27372cat confdefs.h >>conftest.$ac_ext
27373cat >>conftest.$ac_ext <<_ACEOF
27374/* end confdefs.h. */
27375#include <windows.h>
27376_ACEOF
27377if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27379 ac_status=$?
27380 grep -v '^ *+' conftest.er1 >conftest.err
27381 rm -f conftest.er1
27382 cat conftest.err >&5
27383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); } >/dev/null; then
27385 if test -s conftest.err; then
5d7b7554
VZ
27386 ac_cpp_err=$ac_cxx_preproc_warn_flag
27387 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27388 else
27389 ac_cpp_err=
27390 fi
27391else
27392 ac_cpp_err=yes
27393fi
27394if test -z "$ac_cpp_err"; then
27395 ac_header_preproc=yes
27396else
27397 echo "$as_me: failed program was:" >&5
27398sed 's/^/| /' conftest.$ac_ext >&5
27399
27400 ac_header_preproc=no
27401fi
27402rm -f conftest.err conftest.$ac_ext
27403echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27404echo "${ECHO_T}$ac_header_preproc" >&6
27405
27406# So? What about this header?
5d7b7554 27407case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27408 yes:no: )
a848cd7e
SC
27409 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27410echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27411 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27412echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27413 ac_header_preproc=yes
a848cd7e 27414 ;;
ac1cb8d3 27415 no:yes:* )
a848cd7e
SC
27416 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27417echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27418 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27419echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27420 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27421echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27422 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27423echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27424 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27425echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27426 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27427echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27428 (
27429 cat <<\_ASBOX
ac1cb8d3
VS
27430## ----------------------------------------- ##
27431## Report this to wx-dev@lists.wxwidgets.org ##
27432## ----------------------------------------- ##
a848cd7e
SC
27433_ASBOX
27434 ) |
27435 sed "s/^/$as_me: WARNING: /" >&2
27436 ;;
27437esac
27438echo "$as_me:$LINENO: checking for windows.h" >&5
27439echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27440if test "${ac_cv_header_windows_h+set}" = set; then
27441 echo $ECHO_N "(cached) $ECHO_C" >&6
27442else
27443 ac_cv_header_windows_h=$ac_header_preproc
27444fi
27445echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27446echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27447
27448fi
27449if test $ac_cv_header_windows_h = yes; then
27450 :
27451else
27452
27453 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27454echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27455 { (exit 1); exit 1; }; }
27456
27457fi
27458
27459
27460
27461 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27462
27463 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27464 LIBS="$LIBS -loleacc"
27465 fi
27466
27467 case "${host}" in
27468 *-*-cygwin* )
27469 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27470 esac
27471
27472 if test "$wxUSE_ODBC" = "sys" ; then
27473 wxUSE_ODBC = "yes"
27474 fi
27475 if test "$wxUSE_ODBC" = "yes" ; then
27476 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27477 cat >>confdefs.h <<\_ACEOF
27478#define wxUSE_ODBC 1
27479_ACEOF
27480
27481 fi
27482
370d2fd7 27483 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27484 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27485
004ee6da 27486 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27487
a848cd7e 27488 WIN32INSTALL=win32install
5f41d1bf
MW
27489
27490 echo "$as_me:$LINENO: checking for boolean" >&5
27491echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27492if test "${ac_cv_type_boolean+set}" = set; then
27493 echo $ECHO_N "(cached) $ECHO_C" >&6
27494else
27495 cat >conftest.$ac_ext <<_ACEOF
27496/* confdefs.h. */
27497_ACEOF
27498cat confdefs.h >>conftest.$ac_ext
27499cat >>conftest.$ac_ext <<_ACEOF
27500/* end confdefs.h. */
27501#include <windows.h>
27502
27503int
27504main ()
27505{
27506if ((boolean *) 0)
27507 return 0;
27508if (sizeof (boolean))
27509 return 0;
27510 ;
27511 return 0;
27512}
27513_ACEOF
27514rm -f conftest.$ac_objext
27515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27516 (eval $ac_compile) 2>conftest.er1
27517 ac_status=$?
27518 grep -v '^ *+' conftest.er1 >conftest.err
27519 rm -f conftest.er1
27520 cat conftest.err >&5
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); } &&
7067783d
PC
27523 { ac_try='test -z "$ac_cxx_werror_flag"
27524 || test ! -s conftest.err'
5f41d1bf
MW
27525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27526 (eval $ac_try) 2>&5
27527 ac_status=$?
27528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529 (exit $ac_status); }; } &&
27530 { ac_try='test -s conftest.$ac_objext'
27531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27532 (eval $ac_try) 2>&5
27533 ac_status=$?
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); }; }; then
27536 ac_cv_type_boolean=yes
27537else
27538 echo "$as_me: failed program was:" >&5
27539sed 's/^/| /' conftest.$ac_ext >&5
27540
27541ac_cv_type_boolean=no
27542fi
27543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27544fi
27545echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27546echo "${ECHO_T}$ac_cv_type_boolean" >&6
27547if test $ac_cv_type_boolean = yes; then
27548
27549cat >>confdefs.h <<_ACEOF
27550#define HAVE_BOOLEAN 1
27551_ACEOF
27552
27553
27554fi
27555
dcfd4ac4
MW
27556
27557
27558for ac_header in pbt.h
27559do
27560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27561if eval "test \"\${$as_ac_Header+set}\" = set"; then
27562 echo "$as_me:$LINENO: checking for $ac_header" >&5
27563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27564if eval "test \"\${$as_ac_Header+set}\" = set"; then
27565 echo $ECHO_N "(cached) $ECHO_C" >&6
27566fi
27567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27569else
27570 # Is the header compilable?
27571echo "$as_me:$LINENO: checking $ac_header usability" >&5
27572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27573cat >conftest.$ac_ext <<_ACEOF
27574/* confdefs.h. */
27575_ACEOF
27576cat confdefs.h >>conftest.$ac_ext
27577cat >>conftest.$ac_ext <<_ACEOF
27578/* end confdefs.h. */
27579$ac_includes_default
27580#include <$ac_header>
27581_ACEOF
27582rm -f conftest.$ac_objext
27583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27584 (eval $ac_compile) 2>conftest.er1
27585 ac_status=$?
27586 grep -v '^ *+' conftest.er1 >conftest.err
27587 rm -f conftest.er1
27588 cat conftest.err >&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); } &&
7067783d
PC
27591 { ac_try='test -z "$ac_cxx_werror_flag"
27592 || test ! -s conftest.err'
dcfd4ac4
MW
27593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27594 (eval $ac_try) 2>&5
27595 ac_status=$?
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); }; } &&
27598 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27604 ac_header_compiler=yes
27605else
27606 echo "$as_me: failed program was:" >&5
27607sed 's/^/| /' conftest.$ac_ext >&5
27608
27609ac_header_compiler=no
27610fi
27611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27612echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27613echo "${ECHO_T}$ac_header_compiler" >&6
27614
27615# Is the header present?
27616echo "$as_me:$LINENO: checking $ac_header presence" >&5
27617echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27618cat >conftest.$ac_ext <<_ACEOF
27619/* confdefs.h. */
27620_ACEOF
27621cat confdefs.h >>conftest.$ac_ext
27622cat >>conftest.$ac_ext <<_ACEOF
27623/* end confdefs.h. */
27624#include <$ac_header>
27625_ACEOF
27626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27628 ac_status=$?
27629 grep -v '^ *+' conftest.er1 >conftest.err
27630 rm -f conftest.er1
27631 cat conftest.err >&5
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); } >/dev/null; then
27634 if test -s conftest.err; then
27635 ac_cpp_err=$ac_cxx_preproc_warn_flag
27636 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27637 else
27638 ac_cpp_err=
27639 fi
27640else
27641 ac_cpp_err=yes
27642fi
27643if test -z "$ac_cpp_err"; then
27644 ac_header_preproc=yes
27645else
27646 echo "$as_me: failed program was:" >&5
27647sed 's/^/| /' conftest.$ac_ext >&5
27648
27649 ac_header_preproc=no
27650fi
27651rm -f conftest.err conftest.$ac_ext
27652echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27653echo "${ECHO_T}$ac_header_preproc" >&6
27654
27655# So? What about this header?
27656case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27657 yes:no: )
27658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27659echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27661echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27662 ac_header_preproc=yes
27663 ;;
27664 no:yes:* )
27665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27666echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27668echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27670echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27672echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27676echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27677 (
27678 cat <<\_ASBOX
27679## ----------------------------------------- ##
27680## Report this to wx-dev@lists.wxwidgets.org ##
27681## ----------------------------------------- ##
27682_ASBOX
27683 ) |
27684 sed "s/^/$as_me: WARNING: /" >&2
27685 ;;
27686esac
27687echo "$as_me:$LINENO: checking for $ac_header" >&5
27688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27689if eval "test \"\${$as_ac_Header+set}\" = set"; then
27690 echo $ECHO_N "(cached) $ECHO_C" >&6
27691else
27692 eval "$as_ac_Header=\$ac_header_preproc"
27693fi
27694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27696
27697fi
27698if test `eval echo '${'$as_ac_Header'}'` = yes; then
27699 cat >>confdefs.h <<_ACEOF
27700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27701_ACEOF
27702
27703else
27704 cat >>confdefs.h <<\_ACEOF
27705#define NEED_PBT_H 1
27706_ACEOF
27707
27708fi
27709
27710done
27711
a848cd7e
SC
27712fi
27713
27714if test "$wxUSE_GUI" = "yes"; then
27715 USE_GUI=1
27716
27717 GUI_TK_LIBRARY=
27718
27719 WXGTK12=
27720 WXGTK127=
27721 WXGTK20=
27722 WXGPE=
27723
207bc66c
RN
27724 if test "$wxUSE_COCOA" = 1 ; then
27725 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27726 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27727echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27728 wxUSE_PRINTING_ARCHITECTURE=no
27729 fi
27730 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27731 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27732echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27733 wxUSE_DRAG_AND_DROP=no
27734 fi
27735 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27736 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27737echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27738 wxUSE_DRAGIMAGE=no
27739 fi
27740 fi
27741
a848cd7e
SC
27742 if test "$wxUSE_MSW" = 1 ; then
27743 TOOLKIT=MSW
27744 GUIDIST=MSW_DIST
27745
ceec2216 27746 case "${host}" in
a848cd7e
SC
27747 *-*-mingw32* )
27748 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27749 esac
27750 fi
27751
27752 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27753 ac_ext=c
27754ac_cpp='$CPP $CPPFLAGS'
27755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27757ac_compiler_gnu=$ac_cv_c_compiler_gnu
27758
27759
a848cd7e
SC
27760 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27761echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27762
27763 gtk_version_cached=1
27764 if test "${wx_cv_lib_gtk+set}" = set; then
27765 echo $ECHO_N "(cached) $ECHO_C" >&6
27766else
27767
27768 gtk_version_cached=0
27769 echo "$as_me:$LINENO: result: " >&5
27770echo "${ECHO_T}" >&6
27771
27772 GTK_MODULES=
27773 if test "$wxUSE_THREADS" = "yes"; then
27774 GTK_MODULES=gthread
27775 fi
27776
f597b41c 27777 wx_cv_lib_gtk=
5001df0d
MW
27778 if test "x$wxGTK_VERSION" != "x1"
27779 then
27780 case "${host}" in
27781 *-*-solaris2* )
27782 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27783 enable_gtktest=no
5001df0d
MW
27784 fi
27785 esac
27786
a848cd7e
SC
27787 # Check whether --enable-gtktest or --disable-gtktest was given.
27788if test "${enable_gtktest+set}" = set; then
27789 enableval="$enable_gtktest"
27790
27791else
27792 enable_gtktest=yes
27793fi;
27794
27795 pkg_config_args=gtk+-2.0
27796 for module in . $GTK_MODULES
27797 do
27798 case "$module" in
27799 gthread)
27800 pkg_config_args="$pkg_config_args gthread-2.0"
27801 ;;
27802 esac
27803 done
27804
27805 no_gtk=""
27806
27807 # Extract the first word of "pkg-config", so it can be a program name with args.
27808set dummy pkg-config; ac_word=$2
27809echo "$as_me:$LINENO: checking for $ac_word" >&5
27810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27811if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27812 echo $ECHO_N "(cached) $ECHO_C" >&6
27813else
27814 case $PKG_CONFIG in
27815 [\\/]* | ?:[\\/]*)
27816 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27817 ;;
27818 *)
27819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27820for as_dir in $PATH
27821do
27822 IFS=$as_save_IFS
27823 test -z "$as_dir" && as_dir=.
27824 for ac_exec_ext in '' $ac_executable_extensions; do
27825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27826 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27828 break 2
27829 fi
27830done
27831done
27832
27833 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27834 ;;
27835esac
27836fi
27837PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27838
27839if test -n "$PKG_CONFIG"; then
27840 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27841echo "${ECHO_T}$PKG_CONFIG" >&6
27842else
27843 echo "$as_me:$LINENO: result: no" >&5
27844echo "${ECHO_T}no" >&6
27845fi
27846
27847
27848 if test x$PKG_CONFIG != xno ; then
27849 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27850 :
27851 else
c2218763 27852 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27853 no_gtk=yes
27854 PKG_CONFIG=no
27855 fi
27856 else
27857 no_gtk=yes
27858 fi
27859
27860 min_gtk_version=2.0.0
27861 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27862echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27863
27864 if test x$PKG_CONFIG != xno ; then
27865 ## don't try to run the test against uninstalled libtool libs
27866 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27867 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27868 enable_gtktest=no
27869 fi
27870
27871 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27872 :
27873 else
27874 no_gtk=yes
27875 fi
27876 fi
27877
27878 if test x"$no_gtk" = x ; then
27879 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27880 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27881 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27882 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27883 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27884 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27885 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27886 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27887 if test "x$enable_gtktest" = "xyes" ; then
27888 ac_save_CFLAGS="$CFLAGS"
27889 ac_save_LIBS="$LIBS"
27890 CFLAGS="$CFLAGS $GTK_CFLAGS"
27891 LIBS="$GTK_LIBS $LIBS"
27892 rm -f conf.gtktest
27893 if test "$cross_compiling" = yes; then
27894 echo $ac_n "cross compiling; assumed OK... $ac_c"
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. */
27902
27903#include <gtk/gtk.h>
27904#include <stdio.h>
27905#include <stdlib.h>
27906
27907int
27908main ()
27909{
27910 int major, minor, micro;
27911 char *tmp_version;
27912
27913 system ("touch conf.gtktest");
27914
27915 /* HP/UX 9 (%@#!) writes to sscanf strings */
27916 tmp_version = g_strdup("$min_gtk_version");
27917 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27918 printf("%s, bad version string\n", "$min_gtk_version");
27919 exit(1);
27920 }
27921
27922 if ((gtk_major_version != $gtk_config_major_version) ||
27923 (gtk_minor_version != $gtk_config_minor_version) ||
27924 (gtk_micro_version != $gtk_config_micro_version))
27925 {
27926 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27927 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27928 gtk_major_version, gtk_minor_version, gtk_micro_version);
27929 printf ("*** was found! If pkg-config was correct, then it is best\n");
27930 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27931 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27932 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27933 printf("*** required on your system.\n");
27934 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27935 printf("*** to point to the correct configuration files\n");
27936 }
27937 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27938 (gtk_minor_version != GTK_MINOR_VERSION) ||
27939 (gtk_micro_version != GTK_MICRO_VERSION))
27940 {
27941 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27942 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27943 printf("*** library (version %d.%d.%d)\n",
27944 gtk_major_version, gtk_minor_version, gtk_micro_version);
27945 }
27946 else
27947 {
27948 if ((gtk_major_version > major) ||
27949 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27950 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27951 {
27952 return 0;
27953 }
27954 else
27955 {
27956 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27957 gtk_major_version, gtk_minor_version, gtk_micro_version);
27958 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27959 major, minor, micro);
27960 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27961 printf("***\n");
27962 printf("*** If you have already installed a sufficiently new version, this error\n");
27963 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27964 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27965 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27966 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27967 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27968 printf("*** so that the correct libraries are found at run-time))\n");
27969 }
27970 }
27971 return 1;
27972}
27973
27974_ACEOF
27975rm -f conftest$ac_exeext
27976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27977 (eval $ac_link) 2>&5
27978 ac_status=$?
27979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27982 (eval $ac_try) 2>&5
27983 ac_status=$?
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); }; }; then
27986 :
27987else
27988 echo "$as_me: program exited with status $ac_status" >&5
27989echo "$as_me: failed program was:" >&5
27990sed 's/^/| /' conftest.$ac_ext >&5
27991
27992( exit $ac_status )
27993no_gtk=yes
27994fi
ac1cb8d3 27995rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27996fi
27997 CFLAGS="$ac_save_CFLAGS"
27998 LIBS="$ac_save_LIBS"
27999 fi
28000 fi
28001 if test "x$no_gtk" = x ; then
28002 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28003echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
28004 wx_cv_lib_gtk=2.0
28005 else
28006 echo "$as_me:$LINENO: result: no" >&5
28007echo "${ECHO_T}no" >&6
28008 if test "$PKG_CONFIG" = "no" ; then
28009 echo "*** A new enough version of pkg-config was not found."
28010 echo "*** See http://pkgconfig.sourceforge.net"
28011 else
28012 if test -f conf.gtktest ; then
28013 :
28014 else
28015 echo "*** Could not run GTK+ test program, checking why..."
28016 ac_save_CFLAGS="$CFLAGS"
28017 ac_save_LIBS="$LIBS"
28018 CFLAGS="$CFLAGS $GTK_CFLAGS"
28019 LIBS="$LIBS $GTK_LIBS"
28020 cat >conftest.$ac_ext <<_ACEOF
28021/* confdefs.h. */
28022_ACEOF
28023cat confdefs.h >>conftest.$ac_ext
28024cat >>conftest.$ac_ext <<_ACEOF
28025/* end confdefs.h. */
28026
28027#include <gtk/gtk.h>
28028#include <stdio.h>
28029
28030int
28031main ()
28032{
28033 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28034 ;
28035 return 0;
28036}
28037_ACEOF
28038rm -f conftest.$ac_objext conftest$ac_exeext
28039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28040 (eval $ac_link) 2>conftest.er1
a848cd7e 28041 ac_status=$?
ac1cb8d3
VS
28042 grep -v '^ *+' conftest.er1 >conftest.err
28043 rm -f conftest.er1
28044 cat conftest.err >&5
a848cd7e
SC
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); } &&
7067783d
PC
28047 { ac_try='test -z "$ac_c_werror_flag"
28048 || test ! -s conftest.err'
ac1cb8d3
VS
28049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28050 (eval $ac_try) 2>&5
28051 ac_status=$?
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); }; } &&
28054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28056 (eval $ac_try) 2>&5
28057 ac_status=$?
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); }; }; then
28060 echo "*** The test program compiled, but did not run. This usually means"
28061 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28062 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28063 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28064 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28065 echo "*** is required on your system"
28066 echo "***"
28067 echo "*** If you have an old version installed, it is best to remove it, although"
28068 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28069else
28070 echo "$as_me: failed program was:" >&5
28071sed 's/^/| /' conftest.$ac_ext >&5
28072
28073 echo "*** The test program failed to compile or link. See the file config.log for the"
28074 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28075fi
ac1cb8d3
VS
28076rm -f conftest.err conftest.$ac_objext \
28077 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28078 CFLAGS="$ac_save_CFLAGS"
28079 LIBS="$ac_save_LIBS"
28080 fi
28081 fi
28082 GTK_CFLAGS=""
28083 GTK_LIBS=""
28084 :
28085 fi
28086
28087
28088 rm -f conf.gtktest
28089
5001df0d
MW
28090
28091 case "${host}" in
28092 *-*-solaris2* )
28093 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28094 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
28095 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
28096 fi
28097 if test "$wxUSE_SHARED" != "yes"; then
28098 GTK_LIBS="$GTK_LIBS -lX11"
28099 fi
28100 esac
f597b41c
MW
28101 fi
28102
f34ca037
MW
28103 if test -z "$wx_cv_lib_gtk"; then
28104 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
28105
28106# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28107if test "${with_gtk_prefix+set}" = set; then
28108 withval="$with_gtk_prefix"
28109 gtk_config_prefix="$withval"
28110else
28111 gtk_config_prefix=""
28112fi;
28113
28114# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28115if test "${with_gtk_exec_prefix+set}" = set; then
28116 withval="$with_gtk_exec_prefix"
28117 gtk_config_exec_prefix="$withval"
28118else
28119 gtk_config_exec_prefix=""
28120fi;
28121# Check whether --enable-gtktest or --disable-gtktest was given.
28122if test "${enable_gtktest+set}" = set; then
28123 enableval="$enable_gtktest"
28124
28125else
28126 enable_gtktest=yes
28127fi;
28128
28129 for module in . $GTK_MODULES
28130 do
28131 case "$module" in
28132 gthread)
28133 gtk_config_args="$gtk_config_args gthread"
28134 ;;
28135 esac
28136 done
28137
28138 if test x$gtk_config_exec_prefix != x ; then
28139 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28140 if test x${GTK_CONFIG+set} != xset ; then
28141 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28142 fi
28143 fi
28144 if test x$gtk_config_prefix != x ; then
28145 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28146 if test x${GTK_CONFIG+set} != xset ; then
28147 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28148 fi
28149 fi
28150
28151 # Extract the first word of "gtk-config", so it can be a program name with args.
28152set dummy gtk-config; ac_word=$2
28153echo "$as_me:$LINENO: checking for $ac_word" >&5
28154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28155if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28156 echo $ECHO_N "(cached) $ECHO_C" >&6
28157else
28158 case $GTK_CONFIG in
28159 [\\/]* | ?:[\\/]*)
28160 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28161 ;;
28162 *)
28163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28164for as_dir in $PATH
28165do
28166 IFS=$as_save_IFS
28167 test -z "$as_dir" && as_dir=.
28168 for ac_exec_ext in '' $ac_executable_extensions; do
28169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28170 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28172 break 2
28173 fi
28174done
28175done
28176
28177 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28178 ;;
28179esac
28180fi
28181GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28182
28183if test -n "$GTK_CONFIG"; then
28184 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28185echo "${ECHO_T}$GTK_CONFIG" >&6
28186else
28187 echo "$as_me:$LINENO: result: no" >&5
28188echo "${ECHO_T}no" >&6
28189fi
28190
28191 min_gtk_version=1.2.7
28192 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28193echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28194 no_gtk=""
28195 if test "$GTK_CONFIG" = "no" ; then
28196 no_gtk=yes
28197 else
28198 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28199 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28200 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28201 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28202 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28203 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28204 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28205 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28206 if test "x$enable_gtktest" = "xyes" ; then
28207 ac_save_CFLAGS="$CFLAGS"
28208 ac_save_LIBS="$LIBS"
28209 CFLAGS="$CFLAGS $GTK_CFLAGS"
28210 LIBS="$GTK_LIBS $LIBS"
28211 rm -f conf.gtktest
28212 if test "$cross_compiling" = yes; then
28213 echo $ac_n "cross compiling; assumed OK... $ac_c"
28214else
28215 cat >conftest.$ac_ext <<_ACEOF
28216/* confdefs.h. */
28217_ACEOF
28218cat confdefs.h >>conftest.$ac_ext
28219cat >>conftest.$ac_ext <<_ACEOF
28220/* end confdefs.h. */
28221
28222#include <gtk/gtk.h>
28223#include <stdio.h>
28224#include <stdlib.h>
28225
28226int
28227main ()
28228{
28229 int major, minor, micro;
28230 char *tmp_version;
28231
28232 system ("touch conf.gtktest");
28233
28234 /* HP/UX 9 (%@#!) writes to sscanf strings */
28235 tmp_version = g_strdup("$min_gtk_version");
28236 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28237 printf("%s, bad version string\n", "$min_gtk_version");
28238 exit(1);
28239 }
28240
28241 if ((gtk_major_version != $gtk_config_major_version) ||
28242 (gtk_minor_version != $gtk_config_minor_version) ||
28243 (gtk_micro_version != $gtk_config_micro_version))
28244 {
28245 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28246 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28247 gtk_major_version, gtk_minor_version, gtk_micro_version);
28248 printf ("*** was found! If gtk-config was correct, then it is best\n");
28249 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28250 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28251 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28252 printf("*** required on your system.\n");
28253 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28254 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28255 printf("*** before re-running configure\n");
28256 }
28257#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28258 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28259 (gtk_minor_version != GTK_MINOR_VERSION) ||
28260 (gtk_micro_version != GTK_MICRO_VERSION))
28261 {
28262 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28263 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28264 printf("*** library (version %d.%d.%d)\n",
28265 gtk_major_version, gtk_minor_version, gtk_micro_version);
28266 }
28267#endif /* defined (GTK_MAJOR_VERSION) ... */
28268 else
28269 {
28270 if ((gtk_major_version > major) ||
28271 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28272 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28273 {
28274 return 0;
28275 }
28276 else
28277 {
28278 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28279 gtk_major_version, gtk_minor_version, gtk_micro_version);
28280 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28281 major, minor, micro);
28282 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28283 printf("***\n");
28284 printf("*** If you have already installed a sufficiently new version, this error\n");
28285 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28286 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28287 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28288 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28289 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28290 printf("*** so that the correct libraries are found at run-time))\n");
28291 }
28292 }
28293 return 1;
28294}
28295
28296_ACEOF
28297rm -f conftest$ac_exeext
28298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28299 (eval $ac_link) 2>&5
28300 ac_status=$?
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28304 (eval $ac_try) 2>&5
28305 ac_status=$?
28306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 (exit $ac_status); }; }; then
28308 :
28309else
28310 echo "$as_me: program exited with status $ac_status" >&5
28311echo "$as_me: failed program was:" >&5
28312sed 's/^/| /' conftest.$ac_ext >&5
28313
28314( exit $ac_status )
28315no_gtk=yes
28316fi
ac1cb8d3 28317rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28318fi
28319 CFLAGS="$ac_save_CFLAGS"
28320 LIBS="$ac_save_LIBS"
28321 fi
28322 fi
28323 if test "x$no_gtk" = x ; then
28324 echo "$as_me:$LINENO: result: yes" >&5
28325echo "${ECHO_T}yes" >&6
28326 wx_cv_lib_gtk=1.2.7
28327 else
28328 echo "$as_me:$LINENO: result: no" >&5
28329echo "${ECHO_T}no" >&6
28330 if test "$GTK_CONFIG" = "no" ; then
28331 echo "*** The gtk-config script installed by GTK could not be found"
28332 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28333 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28334 echo "*** full path to gtk-config."
28335 else
28336 if test -f conf.gtktest ; then
28337 :
28338 else
28339 echo "*** Could not run GTK test program, checking why..."
28340 CFLAGS="$CFLAGS $GTK_CFLAGS"
28341 LIBS="$LIBS $GTK_LIBS"
28342 cat >conftest.$ac_ext <<_ACEOF
28343/* confdefs.h. */
28344_ACEOF
28345cat confdefs.h >>conftest.$ac_ext
28346cat >>conftest.$ac_ext <<_ACEOF
28347/* end confdefs.h. */
28348
28349#include <gtk/gtk.h>
28350#include <stdio.h>
28351
28352int
28353main ()
28354{
28355 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28356 ;
28357 return 0;
28358}
28359_ACEOF
28360rm -f conftest.$ac_objext conftest$ac_exeext
28361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28362 (eval $ac_link) 2>conftest.er1
a848cd7e 28363 ac_status=$?
ac1cb8d3
VS
28364 grep -v '^ *+' conftest.er1 >conftest.err
28365 rm -f conftest.er1
28366 cat conftest.err >&5
a848cd7e
SC
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } &&
7067783d
PC
28369 { ac_try='test -z "$ac_c_werror_flag"
28370 || test ! -s conftest.err'
ac1cb8d3
VS
28371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28372 (eval $ac_try) 2>&5
28373 ac_status=$?
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); }; } &&
28376 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28378 (eval $ac_try) 2>&5
28379 ac_status=$?
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); }; }; then
28382 echo "*** The test program compiled, but did not run. This usually means"
28383 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28384 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28385 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28386 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28387 echo "*** is required on your system"
28388 echo "***"
28389 echo "*** If you have an old version installed, it is best to remove it, although"
28390 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28391 echo "***"
28392 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28393 echo "*** came with the system with the command"
28394 echo "***"
28395 echo "*** rpm --erase --nodeps gtk gtk-devel"
28396else
28397 echo "$as_me: failed program was:" >&5
28398sed 's/^/| /' conftest.$ac_ext >&5
28399
28400 echo "*** The test program failed to compile or link. See the file config.log for the"
28401 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28402 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28403 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28404fi
ac1cb8d3
VS
28405rm -f conftest.err conftest.$ac_objext \
28406 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28407 CFLAGS="$ac_save_CFLAGS"
28408 LIBS="$ac_save_LIBS"
28409 fi
28410 fi
28411 GTK_CFLAGS=""
28412 GTK_LIBS=""
28413 :
28414 fi
28415
28416
28417 rm -f conf.gtktest
28418
28419
f34ca037 28420 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28421
28422# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28423if test "${with_gtk_prefix+set}" = set; then
28424 withval="$with_gtk_prefix"
28425 gtk_config_prefix="$withval"
28426else
28427 gtk_config_prefix=""
28428fi;
28429
28430# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28431if test "${with_gtk_exec_prefix+set}" = set; then
28432 withval="$with_gtk_exec_prefix"
28433 gtk_config_exec_prefix="$withval"
28434else
28435 gtk_config_exec_prefix=""
28436fi;
28437# Check whether --enable-gtktest or --disable-gtktest was given.
28438if test "${enable_gtktest+set}" = set; then
28439 enableval="$enable_gtktest"
28440
28441else
28442 enable_gtktest=yes
28443fi;
28444
28445 for module in . $GTK_MODULES
28446 do
28447 case "$module" in
28448 gthread)
28449 gtk_config_args="$gtk_config_args gthread"
28450 ;;
28451 esac
28452 done
28453
28454 if test x$gtk_config_exec_prefix != x ; then
28455 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28456 if test x${GTK_CONFIG+set} != xset ; then
28457 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28458 fi
28459 fi
28460 if test x$gtk_config_prefix != x ; then
28461 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28462 if test x${GTK_CONFIG+set} != xset ; then
28463 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28464 fi
28465 fi
28466
28467 # Extract the first word of "gtk-config", so it can be a program name with args.
28468set dummy gtk-config; ac_word=$2
28469echo "$as_me:$LINENO: checking for $ac_word" >&5
28470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28471if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28472 echo $ECHO_N "(cached) $ECHO_C" >&6
28473else
28474 case $GTK_CONFIG in
28475 [\\/]* | ?:[\\/]*)
28476 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28477 ;;
28478 *)
28479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28480for as_dir in $PATH
28481do
28482 IFS=$as_save_IFS
28483 test -z "$as_dir" && as_dir=.
28484 for ac_exec_ext in '' $ac_executable_extensions; do
28485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28486 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28488 break 2
28489 fi
28490done
28491done
28492
28493 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28494 ;;
28495esac
28496fi
28497GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28498
28499if test -n "$GTK_CONFIG"; then
28500 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28501echo "${ECHO_T}$GTK_CONFIG" >&6
28502else
28503 echo "$as_me:$LINENO: result: no" >&5
28504echo "${ECHO_T}no" >&6
28505fi
28506
28507 min_gtk_version=1.2.3
28508 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28509echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28510 no_gtk=""
28511 if test "$GTK_CONFIG" = "no" ; then
28512 no_gtk=yes
28513 else
28514 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28515 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28516 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28517 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28518 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28519 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28520 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28521 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28522 if test "x$enable_gtktest" = "xyes" ; then
28523 ac_save_CFLAGS="$CFLAGS"
28524 ac_save_LIBS="$LIBS"
28525 CFLAGS="$CFLAGS $GTK_CFLAGS"
28526 LIBS="$GTK_LIBS $LIBS"
28527 rm -f conf.gtktest
28528 if test "$cross_compiling" = yes; then
28529 echo $ac_n "cross compiling; assumed OK... $ac_c"
28530else
28531 cat >conftest.$ac_ext <<_ACEOF
28532/* confdefs.h. */
28533_ACEOF
28534cat confdefs.h >>conftest.$ac_ext
28535cat >>conftest.$ac_ext <<_ACEOF
28536/* end confdefs.h. */
28537
28538#include <gtk/gtk.h>
28539#include <stdio.h>
28540#include <stdlib.h>
28541
28542int
28543main ()
28544{
28545 int major, minor, micro;
28546 char *tmp_version;
28547
28548 system ("touch conf.gtktest");
28549
28550 /* HP/UX 9 (%@#!) writes to sscanf strings */
28551 tmp_version = g_strdup("$min_gtk_version");
28552 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28553 printf("%s, bad version string\n", "$min_gtk_version");
28554 exit(1);
28555 }
28556
28557 if ((gtk_major_version != $gtk_config_major_version) ||
28558 (gtk_minor_version != $gtk_config_minor_version) ||
28559 (gtk_micro_version != $gtk_config_micro_version))
28560 {
28561 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28562 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28563 gtk_major_version, gtk_minor_version, gtk_micro_version);
28564 printf ("*** was found! If gtk-config was correct, then it is best\n");
28565 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28566 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28567 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28568 printf("*** required on your system.\n");
28569 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28570 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28571 printf("*** before re-running configure\n");
28572 }
28573#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28574 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28575 (gtk_minor_version != GTK_MINOR_VERSION) ||
28576 (gtk_micro_version != GTK_MICRO_VERSION))
28577 {
28578 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28579 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28580 printf("*** library (version %d.%d.%d)\n",
28581 gtk_major_version, gtk_minor_version, gtk_micro_version);
28582 }
28583#endif /* defined (GTK_MAJOR_VERSION) ... */
28584 else
28585 {
28586 if ((gtk_major_version > major) ||
28587 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28588 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28589 {
28590 return 0;
28591 }
28592 else
28593 {
28594 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28595 gtk_major_version, gtk_minor_version, gtk_micro_version);
28596 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28597 major, minor, micro);
28598 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28599 printf("***\n");
28600 printf("*** If you have already installed a sufficiently new version, this error\n");
28601 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28602 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28603 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28604 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28605 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28606 printf("*** so that the correct libraries are found at run-time))\n");
28607 }
28608 }
28609 return 1;
28610}
28611
28612_ACEOF
28613rm -f conftest$ac_exeext
28614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28615 (eval $ac_link) 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620 (eval $ac_try) 2>&5
28621 ac_status=$?
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); }; }; then
28624 :
28625else
28626 echo "$as_me: program exited with status $ac_status" >&5
28627echo "$as_me: failed program was:" >&5
28628sed 's/^/| /' conftest.$ac_ext >&5
28629
28630( exit $ac_status )
28631no_gtk=yes
28632fi
ac1cb8d3 28633rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28634fi
28635 CFLAGS="$ac_save_CFLAGS"
28636 LIBS="$ac_save_LIBS"
28637 fi
28638 fi
28639 if test "x$no_gtk" = x ; then
28640 echo "$as_me:$LINENO: result: yes" >&5
28641echo "${ECHO_T}yes" >&6
28642 wx_cv_lib_gtk=1.2.3
28643 else
28644 echo "$as_me:$LINENO: result: no" >&5
28645echo "${ECHO_T}no" >&6
28646 if test "$GTK_CONFIG" = "no" ; then
28647 echo "*** The gtk-config script installed by GTK could not be found"
28648 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28649 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28650 echo "*** full path to gtk-config."
28651 else
28652 if test -f conf.gtktest ; then
28653 :
28654 else
28655 echo "*** Could not run GTK test program, checking why..."
28656 CFLAGS="$CFLAGS $GTK_CFLAGS"
28657 LIBS="$LIBS $GTK_LIBS"
28658 cat >conftest.$ac_ext <<_ACEOF
28659/* confdefs.h. */
28660_ACEOF
28661cat confdefs.h >>conftest.$ac_ext
28662cat >>conftest.$ac_ext <<_ACEOF
28663/* end confdefs.h. */
28664
28665#include <gtk/gtk.h>
28666#include <stdio.h>
28667
28668int
28669main ()
28670{
28671 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28672 ;
28673 return 0;
28674}
28675_ACEOF
28676rm -f conftest.$ac_objext conftest$ac_exeext
28677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28678 (eval $ac_link) 2>conftest.er1
a848cd7e 28679 ac_status=$?
ac1cb8d3
VS
28680 grep -v '^ *+' conftest.er1 >conftest.err
28681 rm -f conftest.er1
28682 cat conftest.err >&5
a848cd7e
SC
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); } &&
7067783d
PC
28685 { ac_try='test -z "$ac_c_werror_flag"
28686 || test ! -s conftest.err'
ac1cb8d3
VS
28687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688 (eval $ac_try) 2>&5
28689 ac_status=$?
28690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); }; } &&
28692 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28694 (eval $ac_try) 2>&5
28695 ac_status=$?
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); }; }; then
28698 echo "*** The test program compiled, but did not run. This usually means"
28699 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28700 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28701 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28702 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28703 echo "*** is required on your system"
28704 echo "***"
28705 echo "*** If you have an old version installed, it is best to remove it, although"
28706 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28707 echo "***"
28708 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28709 echo "*** came with the system with the command"
28710 echo "***"
28711 echo "*** rpm --erase --nodeps gtk gtk-devel"
28712else
28713 echo "$as_me: failed program was:" >&5
28714sed 's/^/| /' conftest.$ac_ext >&5
28715
28716 echo "*** The test program failed to compile or link. See the file config.log for the"
28717 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28718 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28719 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28720fi
ac1cb8d3
VS
28721rm -f conftest.err conftest.$ac_objext \
28722 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28723 CFLAGS="$ac_save_CFLAGS"
28724 LIBS="$ac_save_LIBS"
28725 fi
28726 fi
28727 GTK_CFLAGS=""
28728 GTK_LIBS=""
28729 :
28730 fi
28731
28732
28733 rm -f conf.gtktest
28734
f34ca037 28735 fi
a848cd7e
SC
28736 fi
28737 fi
28738
28739 if test -z "$wx_cv_lib_gtk"; then
28740 wx_cv_lib_gtk=none
28741 else
28742 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28743 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28744 fi
28745
28746
28747fi
28748
28749
28750 if test "$gtk_version_cached" = 1; then
28751 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28752echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28753 fi
28754
28755 case "$wx_cv_lib_gtk" in
28756 2.0) WXGTK20=1
28757 TOOLKIT_VERSION=2
28758 ;;
28759 1.2.7) WXGTK127=1
28760 WXGTK12=1
28761 ;;
28762 1.2.3) WXGTK12=1
28763 ;;
28764 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28765The development files for GTK+ were not found. For GTK+ 2, please
28766ensure that pkg-config is in the path and that gtk+-2.0.pc is
28767installed. For GTK+ 1.2 please check that gtk-config is in the path,
28768and that the version is 1.2.3 or above. Also check that the
28769libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28770--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28771 " >&5
28772echo "$as_me: error:
f597b41c
MW
28773The development files for GTK+ were not found. For GTK+ 2, please
28774ensure that pkg-config is in the path and that gtk+-2.0.pc is
28775installed. For GTK+ 1.2 please check that gtk-config is in the path,
28776and that the version is 1.2.3 or above. Also check that the
28777libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28778--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28779 " >&2;}
28780 { (exit 1); exit 1; }; }
28781 ;;
28782 esac
28783
28784 if test "$WXGTK20" = 1; then
6954625c 28785 save_CFLAGS="$CFLAGS"
304205f1 28786 save_LIBS="$LIBS"
6954625c 28787 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28788 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28789
58e65954
MW
28790 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28791echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28792if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28793 echo $ECHO_N "(cached) $ECHO_C" >&6
28794else
28795 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28796/* confdefs.h. */
28797_ACEOF
28798cat confdefs.h >>conftest.$ac_ext
28799cat >>conftest.$ac_ext <<_ACEOF
28800/* end confdefs.h. */
58e65954 28801#include <gtk/gtk.h>
304205f1 28802
d12aef51
VZ
28803int
28804main ()
28805{
58e65954
MW
28806#ifndef gtk_icon_size_lookup
28807 char *p = (char *) gtk_icon_size_lookup;
28808#endif
abc736fd
MW
28809
28810 ;
28811 return 0;
28812}
28813_ACEOF
28814rm -f conftest.$ac_objext
28815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28816 (eval $ac_compile) 2>conftest.er1
28817 ac_status=$?
28818 grep -v '^ *+' conftest.er1 >conftest.err
28819 rm -f conftest.er1
28820 cat conftest.err >&5
28821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822 (exit $ac_status); } &&
7067783d
PC
28823 { ac_try='test -z "$ac_c_werror_flag"
28824 || test ! -s conftest.err'
abc736fd
MW
28825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28826 (eval $ac_try) 2>&5
28827 ac_status=$?
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); }; } &&
28830 { ac_try='test -s conftest.$ac_objext'
28831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28832 (eval $ac_try) 2>&5
28833 ac_status=$?
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); }; }; then
58e65954 28836 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
28837else
28838 echo "$as_me: failed program was:" >&5
28839sed 's/^/| /' conftest.$ac_ext >&5
28840
58e65954
MW
28841ac_cv_have_decl_gtk_icon_size_lookup=no
28842fi
28843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28844fi
28845echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28846echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28847if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 28848
58e65954
MW
28849cat >>confdefs.h <<_ACEOF
28850#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
28851_ACEOF
28852
58e65954
MW
28853
28854else
28855 cat >>confdefs.h <<_ACEOF
28856#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28857_ACEOF
28858
28859cat >>confdefs.h <<\_ACEOF
28860#define NEED_GTK_ICON_SIZE_LOOKUP 1
28861_ACEOF
abc736fd
MW
28862
28863fi
58e65954
MW
28864
28865
abc736fd 28866
e9263684
VZ
28867 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28868echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28869 cat >conftest.$ac_ext <<_ACEOF
28870/* confdefs.h. */
28871_ACEOF
28872cat confdefs.h >>conftest.$ac_ext
28873cat >>conftest.$ac_ext <<_ACEOF
28874/* end confdefs.h. */
28875
28876 #include <gtk/gtk.h>
28877
28878int
28879main ()
28880{
28881
28882 #if !GTK_CHECK_VERSION(2,6,0)
28883 Not GTK+ 2.6
28884 #endif
28885
28886 ;
28887 return 0;
28888}
28889_ACEOF
28890rm -f conftest.$ac_objext
28891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28892 (eval $ac_compile) 2>conftest.er1
28893 ac_status=$?
28894 grep -v '^ *+' conftest.er1 >conftest.err
28895 rm -f conftest.er1
28896 cat conftest.err >&5
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); } &&
7067783d
PC
28899 { ac_try='test -z "$ac_c_werror_flag"
28900 || test ! -s conftest.err'
e9263684
VZ
28901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28902 (eval $ac_try) 2>&5
28903 ac_status=$?
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); }; } &&
28906 { ac_try='test -s conftest.$ac_objext'
28907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28908 (eval $ac_try) 2>&5
28909 ac_status=$?
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); }; }; then
28912
28913 cat >>confdefs.h <<\_ACEOF
28914#define __WXGTK26__ 1
28915_ACEOF
28916
28917 cat >>confdefs.h <<\_ACEOF
28918#define __WXGTK24__ 1
28919_ACEOF
28920
28921 echo "$as_me:$LINENO: result: yes" >&5
28922echo "${ECHO_T}yes" >&6
28923 ac_wxgtk26=1
28924
28925else
28926 echo "$as_me: failed program was:" >&5
28927sed 's/^/| /' conftest.$ac_ext >&5
28928
28929
28930 echo "$as_me:$LINENO: result: no" >&5
28931echo "${ECHO_T}no" >&6
28932 ac_wxgtk26=0
28933
28934fi
28935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28936
28937 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28938 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28939echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28940 cat >conftest.$ac_ext <<_ACEOF
28941/* confdefs.h. */
28942_ACEOF
28943cat confdefs.h >>conftest.$ac_ext
28944cat >>conftest.$ac_ext <<_ACEOF
28945/* end confdefs.h. */
28946
28947 #include <gtk/gtk.h>
28948
28949int
28950main ()
28951{
28952
28953 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28954 Not GTK+ 2.4
9755e73b
VS
28955 #endif
28956
28957 ;
28958 return 0;
28959}
28960_ACEOF
28961rm -f conftest.$ac_objext
28962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28963 (eval $ac_compile) 2>conftest.er1
28964 ac_status=$?
28965 grep -v '^ *+' conftest.er1 >conftest.err
28966 rm -f conftest.er1
28967 cat conftest.err >&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); } &&
7067783d
PC
28970 { ac_try='test -z "$ac_c_werror_flag"
28971 || test ! -s conftest.err'
9755e73b
VS
28972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28973 (eval $ac_try) 2>&5
28974 ac_status=$?
28975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976 (exit $ac_status); }; } &&
28977 { ac_try='test -s conftest.$ac_objext'
28978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28979 (eval $ac_try) 2>&5
28980 ac_status=$?
28981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982 (exit $ac_status); }; }; then
28983
28984 cat >>confdefs.h <<\_ACEOF
28985#define __WXGTK24__ 1
28986_ACEOF
28987
28988 echo "$as_me:$LINENO: result: yes" >&5
28989echo "${ECHO_T}yes" >&6
28990
28991else
28992 echo "$as_me: failed program was:" >&5
28993sed 's/^/| /' conftest.$ac_ext >&5
28994
28995
28996 echo "$as_me:$LINENO: result: no" >&5
28997echo "${ECHO_T}no" >&6
28998
28999fi
29000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 29001 fi
9755e73b 29002
6954625c 29003 CFLAGS="$save_CFLAGS"
304205f1 29004 LIBS="$save_LIBS"
a848cd7e
SC
29005 else
29006 if test "$wxUSE_UNICODE" = "yes"; then
29007 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29008echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29009 wxUSE_UNICODE=no
29010 fi
29011 fi
29012
e56f4f9e
VZ
29013 ac_ext=cc
29014ac_cpp='$CXXCPP $CPPFLAGS'
29015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29018
29019
a848cd7e
SC
29020 if test "$USE_DARWIN" != 1; then
29021
29022for ac_func in poll
29023do
29024as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29025echo "$as_me:$LINENO: checking for $ac_func" >&5
29026echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29027if eval "test \"\${$as_ac_var+set}\" = set"; then
29028 echo $ECHO_N "(cached) $ECHO_C" >&6
29029else
29030 cat >conftest.$ac_ext <<_ACEOF
29031/* confdefs.h. */
29032_ACEOF
29033cat confdefs.h >>conftest.$ac_ext
29034cat >>conftest.$ac_ext <<_ACEOF
29035/* end confdefs.h. */
ac1cb8d3
VS
29036/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29038#define $ac_func innocuous_$ac_func
29039
a848cd7e
SC
29040/* System header to define __stub macros and hopefully few prototypes,
29041 which can conflict with char $ac_func (); below.
29042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29043 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29044
a848cd7e
SC
29045#ifdef __STDC__
29046# include <limits.h>
29047#else
29048# include <assert.h>
29049#endif
ac1cb8d3
VS
29050
29051#undef $ac_func
29052
a848cd7e
SC
29053/* Override any gcc2 internal prototype to avoid an error. */
29054#ifdef __cplusplus
29055extern "C"
29056{
29057#endif
29058/* We use char because int might match the return type of a gcc2
29059 builtin and then its argument prototype would still apply. */
29060char $ac_func ();
29061/* The GNU C library defines this for functions which it implements
29062 to always fail with ENOSYS. Some functions are actually named
29063 something starting with __ and the normal name is an alias. */
29064#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29065choke me
29066#else
29067char (*f) () = $ac_func;
29068#endif
29069#ifdef __cplusplus
29070}
29071#endif
29072
29073int
29074main ()
29075{
29076return f != $ac_func;
29077 ;
29078 return 0;
29079}
29080_ACEOF
29081rm -f conftest.$ac_objext conftest$ac_exeext
29082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29083 (eval $ac_link) 2>conftest.er1
a848cd7e 29084 ac_status=$?
ac1cb8d3
VS
29085 grep -v '^ *+' conftest.er1 >conftest.err
29086 rm -f conftest.er1
29087 cat conftest.err >&5
a848cd7e
SC
29088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29089 (exit $ac_status); } &&
7067783d
PC
29090 { ac_try='test -z "$ac_cxx_werror_flag"
29091 || test ! -s conftest.err'
ac1cb8d3
VS
29092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29093 (eval $ac_try) 2>&5
29094 ac_status=$?
29095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096 (exit $ac_status); }; } &&
29097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29099 (eval $ac_try) 2>&5
29100 ac_status=$?
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; }; then
29103 eval "$as_ac_var=yes"
29104else
29105 echo "$as_me: failed program was:" >&5
29106sed 's/^/| /' conftest.$ac_ext >&5
29107
29108eval "$as_ac_var=no"
29109fi
ac1cb8d3
VS
29110rm -f conftest.err conftest.$ac_objext \
29111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29112fi
29113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29114echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29115if test `eval echo '${'$as_ac_var'}'` = yes; then
29116 cat >>confdefs.h <<_ACEOF
29117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29118_ACEOF
29119
29120fi
29121done
29122
29123 fi
29124
29125 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29126 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29127
29128 AFMINSTALL=afminstall
29129 TOOLKIT=GTK
29130 GUIDIST=GTK_DIST
29131
29132 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29133echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
29134if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29135 echo $ECHO_N "(cached) $ECHO_C" >&6
29136else
29137 ac_check_lib_save_LIBS=$LIBS
29138LIBS="-lgdk $LIBS"
29139cat >conftest.$ac_ext <<_ACEOF
29140/* confdefs.h. */
29141_ACEOF
29142cat confdefs.h >>conftest.$ac_ext
29143cat >>conftest.$ac_ext <<_ACEOF
29144/* end confdefs.h. */
29145
29146/* Override any gcc2 internal prototype to avoid an error. */
29147#ifdef __cplusplus
29148extern "C"
29149#endif
29150/* We use char because int might match the return type of a gcc2
29151 builtin and then its argument prototype would still apply. */
29152char gdk_im_open ();
29153int
29154main ()
29155{
29156gdk_im_open ();
29157 ;
29158 return 0;
29159}
29160_ACEOF
29161rm -f conftest.$ac_objext conftest$ac_exeext
29162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29163 (eval $ac_link) 2>conftest.er1
a848cd7e 29164 ac_status=$?
ac1cb8d3
VS
29165 grep -v '^ *+' conftest.er1 >conftest.err
29166 rm -f conftest.er1
29167 cat conftest.err >&5
a848cd7e
SC
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); } &&
7067783d
PC
29170 { ac_try='test -z "$ac_cxx_werror_flag"
29171 || test ! -s conftest.err'
ac1cb8d3
VS
29172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29173 (eval $ac_try) 2>&5
29174 ac_status=$?
29175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176 (exit $ac_status); }; } &&
29177 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29179 (eval $ac_try) 2>&5
29180 ac_status=$?
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); }; }; then
29183 ac_cv_lib_gdk_gdk_im_open=yes
29184else
29185 echo "$as_me: failed program was:" >&5
29186sed 's/^/| /' conftest.$ac_ext >&5
29187
29188ac_cv_lib_gdk_gdk_im_open=no
29189fi
ac1cb8d3
VS
29190rm -f conftest.err conftest.$ac_objext \
29191 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29192LIBS=$ac_check_lib_save_LIBS
29193fi
29194echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29195echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
29196if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29197 cat >>confdefs.h <<\_ACEOF
29198#define HAVE_XIM 1
29199_ACEOF
29200
29201fi
29202
29203
29204
29205 if test "$wxUSE_GPE" = "yes"; then
29206 echo "$as_me:$LINENO: checking for gpewidget library" >&5
29207echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
29208
0ad5d837
VZ
29209 ac_find_libraries=
29210 for ac_dir in $SEARCH_LIB;
a848cd7e 29211 do
3eca31dc 29212 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29213 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29214 ac_find_libraries=$ac_dir
29215 break 2
29216 fi
29217 done
29218 done
29219
29220 if test "$ac_find_libraries" != "" ; then
29221
0ad5d837 29222 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29223 ac_path_to_link=""
29224 else
0ad5d837
VZ
29225 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29226 result=$?
29227 if test $result = 0; then
29228 ac_path_to_link=""
29229 else
29230 ac_path_to_link=" -L$ac_find_libraries"
29231 fi
a848cd7e
SC
29232 fi
29233
29234 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29235 WXGPE=1
0ad5d837
VZ
29236 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29237echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29238 else
29239 echo "$as_me:$LINENO: result: not found" >&5
29240echo "${ECHO_T}not found" >&6
29241 fi
29242
29243 fi
29244 fi
29245
29246 if test "$wxUSE_MGL" = 1; then
29247 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29248echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29249 if test "x$MGL_ROOT" = x ; then
29250 echo "$as_me:$LINENO: result: not found" >&5
29251echo "${ECHO_T}not found" >&6
29252 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29253echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29254 { (exit 1); exit 1; }; }
29255 else
29256 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29257echo "${ECHO_T}$MGL_ROOT" >&6
29258 fi
29259
29260 echo "$as_me:$LINENO: checking for libmgl location" >&5
29261echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29262 case "${host}" in
29263 *-*-linux* )
29264 if test "x$wxUSE_SHARED" = xyes ; then
29265 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29266 else
29267 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29268 fi
29269 ;;
29270 *-pc-msdosdjgpp )
29271 mgl_os_candidates="dos32/dj2"
29272 ;;
29273 *)
29274 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29275echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29276 { (exit 1); exit 1; }; }
29277 esac
29278
29279 mgl_lib_type=""
29280 mgl_os=""
29281
29282 for mgl_os_i in $mgl_os_candidates ; do
29283 if test "x$mgl_os" = x ; then
29284 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29285 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29286 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29287 mgl_lib_type=debug
29288 mgl_os=$mgl_os_i
29289 fi
29290 fi
29291 if test "x$mgl_lib_type" = x ; then
29292 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29293 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29294 mgl_lib_type=release
29295 mgl_os=$mgl_os_i
29296 fi
29297 fi
29298 fi
29299 done
29300
29301 if test "x$mgl_os" = x ; then
29302 echo "$as_me:$LINENO: result: not found" >&5
29303echo "${ECHO_T}not found" >&6
29304 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29305echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29306 { (exit 1); exit 1; }; }
29307 fi
29308 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29309echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29310
29311 wxUSE_UNIVERSAL="yes"
29312
29313 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29314 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29315
29316 AFMINSTALL=afminstall
29317 TOOLKIT=MGL
29318 GUIDIST=MGL_DIST
29319 fi
29320
b3c86150
VS
29321 if test "$wxUSE_DFB" = 1; then
29322
29323
29324if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29325 if test -n "$ac_tool_prefix"; then
29326 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29327set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29328echo "$as_me:$LINENO: checking for $ac_word" >&5
29329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29330if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29331 echo $ECHO_N "(cached) $ECHO_C" >&6
29332else
29333 case $PKG_CONFIG in
29334 [\\/]* | ?:[\\/]*)
29335 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29336 ;;
29337 *)
29338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29339for as_dir in $PATH
29340do
29341 IFS=$as_save_IFS
29342 test -z "$as_dir" && as_dir=.
29343 for ac_exec_ext in '' $ac_executable_extensions; do
29344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29345 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29347 break 2
29348 fi
29349done
29350done
29351
29352 ;;
29353esac
29354fi
29355PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29356
29357if test -n "$PKG_CONFIG"; then
29358 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29359echo "${ECHO_T}$PKG_CONFIG" >&6
29360else
29361 echo "$as_me:$LINENO: result: no" >&5
29362echo "${ECHO_T}no" >&6
29363fi
29364
29365fi
29366if test -z "$ac_cv_path_PKG_CONFIG"; then
29367 ac_pt_PKG_CONFIG=$PKG_CONFIG
29368 # Extract the first word of "pkg-config", so it can be a program name with args.
29369set dummy pkg-config; ac_word=$2
29370echo "$as_me:$LINENO: checking for $ac_word" >&5
29371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29372if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29373 echo $ECHO_N "(cached) $ECHO_C" >&6
29374else
29375 case $ac_pt_PKG_CONFIG in
29376 [\\/]* | ?:[\\/]*)
29377 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29378 ;;
29379 *)
29380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29381for as_dir in $PATH
29382do
29383 IFS=$as_save_IFS
29384 test -z "$as_dir" && as_dir=.
29385 for ac_exec_ext in '' $ac_executable_extensions; do
29386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29387 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29389 break 2
29390 fi
29391done
29392done
29393
29394 ;;
29395esac
29396fi
29397ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29398
29399if test -n "$ac_pt_PKG_CONFIG"; then
29400 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29401echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29402else
29403 echo "$as_me:$LINENO: result: no" >&5
29404echo "${ECHO_T}no" >&6
29405fi
29406
29407 PKG_CONFIG=$ac_pt_PKG_CONFIG
29408else
29409 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29410fi
29411
29412fi
29413if test -n "$PKG_CONFIG"; then
29414 _pkg_min_version=0.9.0
29415 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29416echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29417 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29418 echo "$as_me:$LINENO: result: yes" >&5
29419echo "${ECHO_T}yes" >&6
29420 else
29421 echo "$as_me:$LINENO: result: no" >&5
29422echo "${ECHO_T}no" >&6
29423 PKG_CONFIG=""
29424 fi
29425
29426fi
29427
29428pkg_failed=no
29429echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29430echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29431
29432if test -n "$PKG_CONFIG"; then
29433 if test -n "$DIRECTFB_CFLAGS"; then
29434 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29435 else
29436 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29437 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29438 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29439 ac_status=$?
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; then
737d3175 29442 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29443else
29444 pkg_failed=yes
29445fi
29446 fi
29447else
29448 pkg_failed=untried
29449fi
29450if test -n "$PKG_CONFIG"; then
29451 if test -n "$DIRECTFB_LIBS"; then
29452 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29453 else
29454 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29455 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29456 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29457 ac_status=$?
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); }; then
737d3175 29460 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29461else
29462 pkg_failed=yes
29463fi
29464 fi
29465else
29466 pkg_failed=untried
29467fi
29468
29469
29470
29471if test $pkg_failed = yes; then
29472
29473if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29474 _pkg_short_errors_supported=yes
29475else
29476 _pkg_short_errors_supported=no
29477fi
29478 if test $_pkg_short_errors_supported = yes; then
737d3175 29479 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150 29480 else
737d3175 29481 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150
VS
29482 fi
29483 # Put the nasty error message in config.log where it belongs
29484 echo "$DIRECTFB_PKG_ERRORS" >&5
29485
29486
29487 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29488echo "$as_me: error: DirectFB not found." >&2;}
29489 { (exit 1); exit 1; }; }
29490
29491
29492elif test $pkg_failed = untried; then
29493
29494 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29495echo "$as_me: error: DirectFB not found." >&2;}
29496 { (exit 1); exit 1; }; }
29497
29498
29499else
29500 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29501 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29502 echo "$as_me:$LINENO: result: yes" >&5
29503echo "${ECHO_T}yes" >&6
29504
29505 wxUSE_UNIVERSAL="yes"
29506 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29507 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29508 TOOLKIT=DFB
29509 GUIDIST=DFB_DIST
29510
29511fi
29512 fi
29513
a848cd7e
SC
29514 if test "$wxUSE_MICROWIN" = 1; then
29515 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29516echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29517 if test "x$MICROWINDOWS" = x ; then
29518 echo "$as_me:$LINENO: result: not found" >&5
29519echo "${ECHO_T}not found" >&6
29520 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29521echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29522 { (exit 1); exit 1; }; }
29523 else
29524 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29525echo "${ECHO_T}$MICROWINDOWS" >&6
29526 fi
29527
29528 if test -f $MICROWINDOWS/lib/libmwin.a; then
29529 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29530echo "${ECHO_T}MicroWindows' libraries found." >&6
29531 else
29532 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29533echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29534 { (exit 1); exit 1; }; }
29535 fi
29536
29537 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29538 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29539
29540 wxUSE_UNIVERSAL="yes"
29541
29542 AFMINSTALL=afminstall
29543 TOOLKIT=MICROWIN
29544 GUIDIST=MICROWIN_DIST
29545
29546 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29547 fi
29548
74b84332 29549 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
7067783d 29550 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29551echo $ECHO_N "checking for X... $ECHO_C" >&6
29552
29553
29554# Check whether --with-x or --without-x was given.
29555if test "${with_x+set}" = set; then
29556 withval="$with_x"
29557
29558fi;
29559# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29560if test "x$with_x" = xno; then
29561 # The user explicitly disabled X.
29562 have_x=disabled
29563else
29564 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29565 # Both variables are already set.
29566 have_x=yes
29567 else
29568 if test "${ac_cv_have_x+set}" = set; then
29569 echo $ECHO_N "(cached) $ECHO_C" >&6
29570else
29571 # One or both of the vars are not set, and there is no cached value.
29572ac_x_includes=no ac_x_libraries=no
29573rm -fr conftest.dir
29574if mkdir conftest.dir; then
29575 cd conftest.dir
29576 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29577 cat >Imakefile <<'_ACEOF'
29578acfindx:
29579 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29580_ACEOF
29581 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29583 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29584 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29585 for ac_extension in a so sl; do
29586 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29587 test -f $ac_im_libdir/libX11.$ac_extension; then
29588 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29589 fi
29590 done
29591 # Screen out bogus values from the imake configuration. They are
29592 # bogus both because they are the default anyway, and because
29593 # using them would break gcc on systems where it needs fixed includes.
29594 case $ac_im_incroot in
29595 /usr/include) ;;
29596 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29597 esac
29598 case $ac_im_usrlibdir in
29599 /usr/lib | /lib) ;;
29600 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29601 esac
29602 fi
29603 cd ..
29604 rm -fr conftest.dir
29605fi
29606
29607# Standard set of common directories for X headers.
29608# Check X11 before X11Rn because it is often a symlink to the current release.
29609ac_x_header_dirs='
29610/usr/X11/include
29611/usr/X11R6/include
29612/usr/X11R5/include
29613/usr/X11R4/include
29614
29615/usr/include/X11
29616/usr/include/X11R6
29617/usr/include/X11R5
29618/usr/include/X11R4
29619
29620/usr/local/X11/include
29621/usr/local/X11R6/include
29622/usr/local/X11R5/include
29623/usr/local/X11R4/include
29624
29625/usr/local/include/X11
29626/usr/local/include/X11R6
29627/usr/local/include/X11R5
29628/usr/local/include/X11R4
29629
29630/usr/X386/include
29631/usr/x386/include
29632/usr/XFree86/include/X11
29633
29634/usr/include
29635/usr/local/include
29636/usr/unsupported/include
29637/usr/athena/include
29638/usr/local/x11r5/include
29639/usr/lpp/Xamples/include
29640
29641/usr/openwin/include
29642/usr/openwin/share/include'
29643
29644if test "$ac_x_includes" = no; then
7067783d 29645 # Guess where to find include files, by looking for Xlib.h.
a848cd7e
SC
29646 # First, try using that file with no special directory specified.
29647 cat >conftest.$ac_ext <<_ACEOF
29648/* confdefs.h. */
29649_ACEOF
29650cat confdefs.h >>conftest.$ac_ext
29651cat >>conftest.$ac_ext <<_ACEOF
29652/* end confdefs.h. */
3ea50042 29653#include <X11/Xlib.h>
a848cd7e
SC
29654_ACEOF
29655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29657 ac_status=$?
29658 grep -v '^ *+' conftest.er1 >conftest.err
29659 rm -f conftest.er1
29660 cat conftest.err >&5
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); } >/dev/null; then
29663 if test -s conftest.err; then
5d7b7554
VZ
29664 ac_cpp_err=$ac_cxx_preproc_warn_flag
29665 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
29666 else
29667 ac_cpp_err=
29668 fi
29669else
29670 ac_cpp_err=yes
29671fi
29672if test -z "$ac_cpp_err"; then
29673 # We can compile using X headers with no special include directory.
29674ac_x_includes=
29675else
29676 echo "$as_me: failed program was:" >&5
29677sed 's/^/| /' conftest.$ac_ext >&5
29678
29679 for ac_dir in $ac_x_header_dirs; do
3ea50042 29680 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
29681 ac_x_includes=$ac_dir
29682 break
29683 fi
29684done
29685fi
29686rm -f conftest.err conftest.$ac_ext
29687fi # $ac_x_includes = no
29688
29689if test "$ac_x_libraries" = no; then
29690 # Check for the libraries.
29691 # See if we find them without any special options.
29692 # Don't add to $LIBS permanently.
29693 ac_save_LIBS=$LIBS
7067783d 29694 LIBS="-lXt $LIBS"
a848cd7e
SC
29695 cat >conftest.$ac_ext <<_ACEOF
29696/* confdefs.h. */
29697_ACEOF
29698cat confdefs.h >>conftest.$ac_ext
29699cat >>conftest.$ac_ext <<_ACEOF
29700/* end confdefs.h. */
3ea50042 29701#include <X11/Xlib.h>
a848cd7e
SC
29702int
29703main ()
29704{
3ea50042 29705XrmInitialize ()
a848cd7e
SC
29706 ;
29707 return 0;
29708}
29709_ACEOF
29710rm -f conftest.$ac_objext conftest$ac_exeext
29711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29712 (eval $ac_link) 2>conftest.er1
a848cd7e 29713 ac_status=$?
ac1cb8d3
VS
29714 grep -v '^ *+' conftest.er1 >conftest.err
29715 rm -f conftest.er1
29716 cat conftest.err >&5
a848cd7e
SC
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); } &&
7067783d
PC
29719 { ac_try='test -z "$ac_cxx_werror_flag"
29720 || test ! -s conftest.err'
ac1cb8d3
VS
29721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29722 (eval $ac_try) 2>&5
29723 ac_status=$?
29724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725 (exit $ac_status); }; } &&
29726 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728 (eval $ac_try) 2>&5
29729 ac_status=$?
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); }; }; then
29732 LIBS=$ac_save_LIBS
29733# We can link X programs with no special library path.
29734ac_x_libraries=
29735else
29736 echo "$as_me: failed program was:" >&5
29737sed 's/^/| /' conftest.$ac_ext >&5
29738
29739LIBS=$ac_save_LIBS
29740for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29741do
29742 # Don't even attempt the hair of trying to link an X program!
29743 for ac_extension in a so sl; do
7067783d 29744 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
29745 ac_x_libraries=$ac_dir
29746 break 2
29747 fi
29748 done
29749done
29750fi
ac1cb8d3
VS
29751rm -f conftest.err conftest.$ac_objext \
29752 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29753fi # $ac_x_libraries = no
29754
29755if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29756 # Didn't find X anywhere. Cache the known absence of X.
29757 ac_cv_have_x="have_x=no"
29758else
29759 # Record where we found X for the cache.
29760 ac_cv_have_x="have_x=yes \
ac1cb8d3 29761 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
29762fi
29763fi
29764
29765 fi
29766 eval "$ac_cv_have_x"
29767fi # $with_x != no
29768
29769if test "$have_x" != yes; then
29770 echo "$as_me:$LINENO: result: $have_x" >&5
29771echo "${ECHO_T}$have_x" >&6
29772 no_x=yes
29773else
29774 # If each of the values was on the command line, it overrides each guess.
29775 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29776 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29777 # Update the cache value to reflect the command line values.
29778 ac_cv_have_x="have_x=yes \
29779 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7067783d
PC
29780 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29781echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
29782fi
29783
29784if test "$no_x" = yes; then
29785 # Not all programs may use this symbol, but it does not hurt to define it.
29786
29787cat >>confdefs.h <<\_ACEOF
29788#define X_DISPLAY_MISSING 1
29789_ACEOF
29790
29791 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29792else
29793 if test -n "$x_includes"; then
29794 X_CFLAGS="$X_CFLAGS -I$x_includes"
29795 fi
29796
29797 # It would also be nice to do this for all -L options, not just this one.
29798 if test -n "$x_libraries"; then
29799 X_LIBS="$X_LIBS -L$x_libraries"
29800 # For Solaris; some versions of Sun CC require a space after -R and
29801 # others require no space. Words are not sufficient . . . .
29802 case `(uname -sr) 2>/dev/null` in
29803 "SunOS 5"*)
29804 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29805echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29806 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29807 cat >conftest.$ac_ext <<_ACEOF
29808/* confdefs.h. */
29809_ACEOF
29810cat confdefs.h >>conftest.$ac_ext
29811cat >>conftest.$ac_ext <<_ACEOF
29812/* end confdefs.h. */
29813
29814int
29815main ()
29816{
29817
29818 ;
29819 return 0;
29820}
29821_ACEOF
29822rm -f conftest.$ac_objext conftest$ac_exeext
29823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29824 (eval $ac_link) 2>conftest.er1
a848cd7e 29825 ac_status=$?
ac1cb8d3
VS
29826 grep -v '^ *+' conftest.er1 >conftest.err
29827 rm -f conftest.er1
29828 cat conftest.err >&5
a848cd7e
SC
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); } &&
7067783d
PC
29831 { ac_try='test -z "$ac_cxx_werror_flag"
29832 || test ! -s conftest.err'
ac1cb8d3
VS
29833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29834 (eval $ac_try) 2>&5
29835 ac_status=$?
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); }; } &&
29838 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29840 (eval $ac_try) 2>&5
29841 ac_status=$?
29842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29843 (exit $ac_status); }; }; then
29844 ac_R_nospace=yes
29845else
29846 echo "$as_me: failed program was:" >&5
29847sed 's/^/| /' conftest.$ac_ext >&5
29848
29849ac_R_nospace=no
29850fi
ac1cb8d3
VS
29851rm -f conftest.err conftest.$ac_objext \
29852 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29853 if test $ac_R_nospace = yes; then
29854 echo "$as_me:$LINENO: result: no" >&5
29855echo "${ECHO_T}no" >&6
29856 X_LIBS="$X_LIBS -R$x_libraries"
29857 else
29858 LIBS="$ac_xsave_LIBS -R $x_libraries"
29859 cat >conftest.$ac_ext <<_ACEOF
29860/* confdefs.h. */
29861_ACEOF
29862cat confdefs.h >>conftest.$ac_ext
29863cat >>conftest.$ac_ext <<_ACEOF
29864/* end confdefs.h. */
29865
29866int
29867main ()
29868{
29869
29870 ;
29871 return 0;
29872}
29873_ACEOF
29874rm -f conftest.$ac_objext conftest$ac_exeext
29875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29876 (eval $ac_link) 2>conftest.er1
a848cd7e 29877 ac_status=$?
ac1cb8d3
VS
29878 grep -v '^ *+' conftest.er1 >conftest.err
29879 rm -f conftest.er1
29880 cat conftest.err >&5
a848cd7e
SC
29881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 (exit $ac_status); } &&
7067783d
PC
29883 { ac_try='test -z "$ac_cxx_werror_flag"
29884 || test ! -s conftest.err'
ac1cb8d3
VS
29885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29886 (eval $ac_try) 2>&5
29887 ac_status=$?
29888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 (exit $ac_status); }; } &&
29890 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29892 (eval $ac_try) 2>&5
29893 ac_status=$?
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); }; }; then
29896 ac_R_space=yes
29897else
29898 echo "$as_me: failed program was:" >&5
29899sed 's/^/| /' conftest.$ac_ext >&5
29900
29901ac_R_space=no
29902fi
ac1cb8d3
VS
29903rm -f conftest.err conftest.$ac_objext \
29904 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29905 if test $ac_R_space = yes; then
29906 echo "$as_me:$LINENO: result: yes" >&5
29907echo "${ECHO_T}yes" >&6
29908 X_LIBS="$X_LIBS -R $x_libraries"
29909 else
29910 echo "$as_me:$LINENO: result: neither works" >&5
29911echo "${ECHO_T}neither works" >&6
29912 fi
29913 fi
29914 LIBS=$ac_xsave_LIBS
29915 esac
29916 fi
29917
29918 # Check for system-dependent libraries X programs must link with.
29919 # Do this before checking for the system-independent R6 libraries
29920 # (-lICE), since we may need -lsocket or whatever for X linking.
29921
29922 if test "$ISC" = yes; then
29923 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29924 else
29925 # Martyn Johnson says this is needed for Ultrix, if the X
29926 # libraries were built with DECnet support. And Karl Berry says
29927 # the Alpha needs dnet_stub (dnet does not exist).
29928 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29929 cat >conftest.$ac_ext <<_ACEOF
29930/* confdefs.h. */
29931_ACEOF
29932cat confdefs.h >>conftest.$ac_ext
29933cat >>conftest.$ac_ext <<_ACEOF
29934/* end confdefs.h. */
29935
29936/* Override any gcc2 internal prototype to avoid an error. */
29937#ifdef __cplusplus
29938extern "C"
29939#endif
29940/* We use char because int might match the return type of a gcc2
29941 builtin and then its argument prototype would still apply. */
29942char XOpenDisplay ();
29943int
29944main ()
29945{
29946XOpenDisplay ();
29947 ;
29948 return 0;
29949}
29950_ACEOF
29951rm -f conftest.$ac_objext conftest$ac_exeext
29952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29953 (eval $ac_link) 2>conftest.er1
a848cd7e 29954 ac_status=$?
ac1cb8d3
VS
29955 grep -v '^ *+' conftest.er1 >conftest.err
29956 rm -f conftest.er1
29957 cat conftest.err >&5
a848cd7e
SC
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); } &&
7067783d
PC
29960 { ac_try='test -z "$ac_cxx_werror_flag"
29961 || test ! -s conftest.err'
ac1cb8d3
VS
29962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29963 (eval $ac_try) 2>&5
29964 ac_status=$?
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); }; } &&
29967 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29969 (eval $ac_try) 2>&5
29970 ac_status=$?
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); }; }; then
29973 :
29974else
29975 echo "$as_me: failed program was:" >&5
29976sed 's/^/| /' conftest.$ac_ext >&5
29977
29978echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29979echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29980if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29981 echo $ECHO_N "(cached) $ECHO_C" >&6
29982else
29983 ac_check_lib_save_LIBS=$LIBS
29984LIBS="-ldnet $LIBS"
29985cat >conftest.$ac_ext <<_ACEOF
29986/* confdefs.h. */
29987_ACEOF
29988cat confdefs.h >>conftest.$ac_ext
29989cat >>conftest.$ac_ext <<_ACEOF
29990/* end confdefs.h. */
29991
29992/* Override any gcc2 internal prototype to avoid an error. */
29993#ifdef __cplusplus
29994extern "C"
29995#endif
29996/* We use char because int might match the return type of a gcc2
29997 builtin and then its argument prototype would still apply. */
29998char dnet_ntoa ();
29999int
30000main ()
30001{
30002dnet_ntoa ();
30003 ;
30004 return 0;
30005}
30006_ACEOF
30007rm -f conftest.$ac_objext conftest$ac_exeext
30008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30009 (eval $ac_link) 2>conftest.er1
a848cd7e 30010 ac_status=$?
ac1cb8d3
VS
30011 grep -v '^ *+' conftest.er1 >conftest.err
30012 rm -f conftest.er1
30013 cat conftest.err >&5
a848cd7e
SC
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); } &&
7067783d
PC
30016 { ac_try='test -z "$ac_cxx_werror_flag"
30017 || test ! -s conftest.err'
ac1cb8d3
VS
30018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019 (eval $ac_try) 2>&5
30020 ac_status=$?
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); }; } &&
30023 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30025 (eval $ac_try) 2>&5
30026 ac_status=$?
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); }; }; then
30029 ac_cv_lib_dnet_dnet_ntoa=yes
30030else
30031 echo "$as_me: failed program was:" >&5
30032sed 's/^/| /' conftest.$ac_ext >&5
30033
30034ac_cv_lib_dnet_dnet_ntoa=no
30035fi
ac1cb8d3
VS
30036rm -f conftest.err conftest.$ac_objext \
30037 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30038LIBS=$ac_check_lib_save_LIBS
30039fi
30040echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30041echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
30042if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30043 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30044fi
30045
30046 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30047 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30048echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
30049if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30050 echo $ECHO_N "(cached) $ECHO_C" >&6
30051else
30052 ac_check_lib_save_LIBS=$LIBS
30053LIBS="-ldnet_stub $LIBS"
30054cat >conftest.$ac_ext <<_ACEOF
30055/* confdefs.h. */
30056_ACEOF
30057cat confdefs.h >>conftest.$ac_ext
30058cat >>conftest.$ac_ext <<_ACEOF
30059/* end confdefs.h. */
30060
30061/* Override any gcc2 internal prototype to avoid an error. */
30062#ifdef __cplusplus
30063extern "C"
30064#endif
30065/* We use char because int might match the return type of a gcc2
30066 builtin and then its argument prototype would still apply. */
30067char dnet_ntoa ();
30068int
30069main ()
30070{
30071dnet_ntoa ();
30072 ;
30073 return 0;
30074}
30075_ACEOF
30076rm -f conftest.$ac_objext conftest$ac_exeext
30077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30078 (eval $ac_link) 2>conftest.er1
a848cd7e 30079 ac_status=$?
ac1cb8d3
VS
30080 grep -v '^ *+' conftest.er1 >conftest.err
30081 rm -f conftest.er1
30082 cat conftest.err >&5
a848cd7e
SC
30083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084 (exit $ac_status); } &&
7067783d
PC
30085 { ac_try='test -z "$ac_cxx_werror_flag"
30086 || test ! -s conftest.err'
ac1cb8d3
VS
30087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30088 (eval $ac_try) 2>&5
30089 ac_status=$?
30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091 (exit $ac_status); }; } &&
30092 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30094 (eval $ac_try) 2>&5
30095 ac_status=$?
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); }; }; then
30098 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30099else
30100 echo "$as_me: failed program was:" >&5
30101sed 's/^/| /' conftest.$ac_ext >&5
30102
30103ac_cv_lib_dnet_stub_dnet_ntoa=no
30104fi
ac1cb8d3
VS
30105rm -f conftest.err conftest.$ac_objext \
30106 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30107LIBS=$ac_check_lib_save_LIBS
30108fi
30109echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30110echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
30111if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30112 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30113fi
30114
30115 fi
30116fi
ac1cb8d3
VS
30117rm -f conftest.err conftest.$ac_objext \
30118 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30119 LIBS="$ac_xsave_LIBS"
30120
30121 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30122 # to get the SysV transport functions.
30123 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30124 # needs -lnsl.
30125 # The nsl library prevents programs from opening the X display
30126 # on Irix 5.2, according to T.E. Dickey.
30127 # The functions gethostbyname, getservbyname, and inet_addr are
30128 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30129 echo "$as_me:$LINENO: checking for gethostbyname" >&5
30130echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
30131if test "${ac_cv_func_gethostbyname+set}" = set; then
30132 echo $ECHO_N "(cached) $ECHO_C" >&6
30133else
30134 cat >conftest.$ac_ext <<_ACEOF
30135/* confdefs.h. */
30136_ACEOF
30137cat confdefs.h >>conftest.$ac_ext
30138cat >>conftest.$ac_ext <<_ACEOF
30139/* end confdefs.h. */
ac1cb8d3
VS
30140/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30142#define gethostbyname innocuous_gethostbyname
30143
a848cd7e
SC
30144/* System header to define __stub macros and hopefully few prototypes,
30145 which can conflict with char gethostbyname (); below.
30146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30147 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30148
a848cd7e
SC
30149#ifdef __STDC__
30150# include <limits.h>
30151#else
30152# include <assert.h>
30153#endif
ac1cb8d3
VS
30154
30155#undef gethostbyname
30156
a848cd7e
SC
30157/* Override any gcc2 internal prototype to avoid an error. */
30158#ifdef __cplusplus
30159extern "C"
30160{
30161#endif
30162/* We use char because int might match the return type of a gcc2
30163 builtin and then its argument prototype would still apply. */
30164char gethostbyname ();
30165/* The GNU C library defines this for functions which it implements
30166 to always fail with ENOSYS. Some functions are actually named
30167 something starting with __ and the normal name is an alias. */
30168#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
30169choke me
30170#else
30171char (*f) () = gethostbyname;
30172#endif
30173#ifdef __cplusplus
30174}
30175#endif
30176
30177int
30178main ()
30179{
30180return f != gethostbyname;
30181 ;
30182 return 0;
30183}
30184_ACEOF
30185rm -f conftest.$ac_objext conftest$ac_exeext
30186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30187 (eval $ac_link) 2>conftest.er1
a848cd7e 30188 ac_status=$?
ac1cb8d3
VS
30189 grep -v '^ *+' conftest.er1 >conftest.err
30190 rm -f conftest.er1
30191 cat conftest.err >&5
a848cd7e
SC
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); } &&
7067783d
PC
30194 { ac_try='test -z "$ac_cxx_werror_flag"
30195 || test ! -s conftest.err'
ac1cb8d3
VS
30196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30197 (eval $ac_try) 2>&5
30198 ac_status=$?
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); }; } &&
30201 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30203 (eval $ac_try) 2>&5
30204 ac_status=$?
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; }; then
30207 ac_cv_func_gethostbyname=yes
30208else
30209 echo "$as_me: failed program was:" >&5
30210sed 's/^/| /' conftest.$ac_ext >&5
30211
30212ac_cv_func_gethostbyname=no
30213fi
ac1cb8d3
VS
30214rm -f conftest.err conftest.$ac_objext \
30215 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30216fi
30217echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30218echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30219
30220 if test $ac_cv_func_gethostbyname = no; then
30221 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30222echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30223if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30224 echo $ECHO_N "(cached) $ECHO_C" >&6
30225else
30226 ac_check_lib_save_LIBS=$LIBS
30227LIBS="-lnsl $LIBS"
30228cat >conftest.$ac_ext <<_ACEOF
30229/* confdefs.h. */
30230_ACEOF
30231cat confdefs.h >>conftest.$ac_ext
30232cat >>conftest.$ac_ext <<_ACEOF
30233/* end confdefs.h. */
30234
30235/* Override any gcc2 internal prototype to avoid an error. */
30236#ifdef __cplusplus
30237extern "C"
30238#endif
30239/* We use char because int might match the return type of a gcc2
30240 builtin and then its argument prototype would still apply. */
30241char gethostbyname ();
30242int
30243main ()
30244{
30245gethostbyname ();
30246 ;
30247 return 0;
30248}
30249_ACEOF
30250rm -f conftest.$ac_objext conftest$ac_exeext
30251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
30252 (eval $ac_link) 2>conftest.er1
30253 ac_status=$?
30254 grep -v '^ *+' conftest.er1 >conftest.err
30255 rm -f conftest.er1
30256 cat conftest.err >&5
30257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30258 (exit $ac_status); } &&
7067783d
PC
30259 { ac_try='test -z "$ac_cxx_werror_flag"
30260 || test ! -s conftest.err'
ac1cb8d3
VS
30261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30262 (eval $ac_try) 2>&5
30263 ac_status=$?
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); }; } &&
30266 { ac_try='test -s conftest$ac_exeext'
30267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30268 (eval $ac_try) 2>&5
30269 ac_status=$?
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); }; }; then
30272 ac_cv_lib_nsl_gethostbyname=yes
30273else
30274 echo "$as_me: failed program was:" >&5
30275sed 's/^/| /' conftest.$ac_ext >&5
30276
30277ac_cv_lib_nsl_gethostbyname=no
30278fi
30279rm -f conftest.err conftest.$ac_objext \
30280 conftest$ac_exeext conftest.$ac_ext
30281LIBS=$ac_check_lib_save_LIBS
30282fi
30283echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30284echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30285if test $ac_cv_lib_nsl_gethostbyname = yes; then
30286 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30287fi
30288
30289 if test $ac_cv_lib_nsl_gethostbyname = no; then
30290 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30291echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30292if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30293 echo $ECHO_N "(cached) $ECHO_C" >&6
30294else
30295 ac_check_lib_save_LIBS=$LIBS
30296LIBS="-lbsd $LIBS"
30297cat >conftest.$ac_ext <<_ACEOF
30298/* confdefs.h. */
30299_ACEOF
30300cat confdefs.h >>conftest.$ac_ext
30301cat >>conftest.$ac_ext <<_ACEOF
30302/* end confdefs.h. */
30303
30304/* Override any gcc2 internal prototype to avoid an error. */
30305#ifdef __cplusplus
30306extern "C"
30307#endif
30308/* We use char because int might match the return type of a gcc2
30309 builtin and then its argument prototype would still apply. */
30310char gethostbyname ();
30311int
30312main ()
30313{
30314gethostbyname ();
30315 ;
30316 return 0;
30317}
30318_ACEOF
30319rm -f conftest.$ac_objext conftest$ac_exeext
30320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30321 (eval $ac_link) 2>conftest.er1
a848cd7e 30322 ac_status=$?
ac1cb8d3
VS
30323 grep -v '^ *+' conftest.er1 >conftest.err
30324 rm -f conftest.er1
30325 cat conftest.err >&5
a848cd7e
SC
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); } &&
7067783d
PC
30328 { ac_try='test -z "$ac_cxx_werror_flag"
30329 || test ! -s conftest.err'
a848cd7e
SC
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
ac1cb8d3
VS
30334 (exit $ac_status); }; } &&
30335 { ac_try='test -s conftest$ac_exeext'
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_cv_lib_bsd_gethostbyname=yes
30342else
30343 echo "$as_me: failed program was:" >&5
30344sed 's/^/| /' conftest.$ac_ext >&5
30345
30346ac_cv_lib_bsd_gethostbyname=no
30347fi
ac1cb8d3
VS
30348rm -f conftest.err conftest.$ac_objext \
30349 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30350LIBS=$ac_check_lib_save_LIBS
30351fi
30352echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30353echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30354if test $ac_cv_lib_bsd_gethostbyname = yes; then
30355 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30356fi
30357
30358 fi
30359 fi
30360
30361 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30362 # socket/setsockopt and other routines are undefined under SCO ODT
30363 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30364 # on later versions), says Simon Leinen: it contains gethostby*
30365 # variants that don't use the name server (or something). -lsocket
30366 # must be given before -lnsl if both are needed. We assume that
30367 # if connect needs -lnsl, so does gethostbyname.
30368 echo "$as_me:$LINENO: checking for connect" >&5
30369echo $ECHO_N "checking for connect... $ECHO_C" >&6
30370if test "${ac_cv_func_connect+set}" = set; then
30371 echo $ECHO_N "(cached) $ECHO_C" >&6
30372else
30373 cat >conftest.$ac_ext <<_ACEOF
30374/* confdefs.h. */
30375_ACEOF
30376cat confdefs.h >>conftest.$ac_ext
30377cat >>conftest.$ac_ext <<_ACEOF
30378/* end confdefs.h. */
ac1cb8d3
VS
30379/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30381#define connect innocuous_connect
30382
a848cd7e
SC
30383/* System header to define __stub macros and hopefully few prototypes,
30384 which can conflict with char connect (); below.
30385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30386 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30387
a848cd7e
SC
30388#ifdef __STDC__
30389# include <limits.h>
30390#else
30391# include <assert.h>
30392#endif
ac1cb8d3
VS
30393
30394#undef connect
30395
a848cd7e
SC
30396/* Override any gcc2 internal prototype to avoid an error. */
30397#ifdef __cplusplus
30398extern "C"
30399{
30400#endif
30401/* We use char because int might match the return type of a gcc2
30402 builtin and then its argument prototype would still apply. */
30403char connect ();
30404/* The GNU C library defines this for functions which it implements
30405 to always fail with ENOSYS. Some functions are actually named
30406 something starting with __ and the normal name is an alias. */
30407#if defined (__stub_connect) || defined (__stub___connect)
30408choke me
30409#else
30410char (*f) () = connect;
30411#endif
30412#ifdef __cplusplus
30413}
30414#endif
30415
30416int
30417main ()
30418{
30419return f != connect;
30420 ;
30421 return 0;
30422}
30423_ACEOF
30424rm -f conftest.$ac_objext conftest$ac_exeext
30425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30426 (eval $ac_link) 2>conftest.er1
a848cd7e 30427 ac_status=$?
ac1cb8d3
VS
30428 grep -v '^ *+' conftest.er1 >conftest.err
30429 rm -f conftest.er1
30430 cat conftest.err >&5
a848cd7e
SC
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); } &&
7067783d
PC
30433 { ac_try='test -z "$ac_cxx_werror_flag"
30434 || test ! -s conftest.err'
ac1cb8d3
VS
30435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436 (eval $ac_try) 2>&5
30437 ac_status=$?
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; } &&
30440 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30442 (eval $ac_try) 2>&5
30443 ac_status=$?
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); }; }; then
30446 ac_cv_func_connect=yes
30447else
30448 echo "$as_me: failed program was:" >&5
30449sed 's/^/| /' conftest.$ac_ext >&5
30450
30451ac_cv_func_connect=no
30452fi
ac1cb8d3
VS
30453rm -f conftest.err conftest.$ac_objext \
30454 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30455fi
30456echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30457echo "${ECHO_T}$ac_cv_func_connect" >&6
30458
30459 if test $ac_cv_func_connect = no; then
30460 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30461echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30462if test "${ac_cv_lib_socket_connect+set}" = set; then
30463 echo $ECHO_N "(cached) $ECHO_C" >&6
30464else
30465 ac_check_lib_save_LIBS=$LIBS
30466LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30467cat >conftest.$ac_ext <<_ACEOF
30468/* confdefs.h. */
30469_ACEOF
30470cat confdefs.h >>conftest.$ac_ext
30471cat >>conftest.$ac_ext <<_ACEOF
30472/* end confdefs.h. */
30473
30474/* Override any gcc2 internal prototype to avoid an error. */
30475#ifdef __cplusplus
30476extern "C"
30477#endif
30478/* We use char because int might match the return type of a gcc2
30479 builtin and then its argument prototype would still apply. */
30480char connect ();
30481int
30482main ()
30483{
30484connect ();
30485 ;
30486 return 0;
30487}
30488_ACEOF
30489rm -f conftest.$ac_objext conftest$ac_exeext
30490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30491 (eval $ac_link) 2>conftest.er1
a848cd7e 30492 ac_status=$?
ac1cb8d3
VS
30493 grep -v '^ *+' conftest.er1 >conftest.err
30494 rm -f conftest.er1
30495 cat conftest.err >&5
a848cd7e
SC
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); } &&
7067783d
PC
30498 { ac_try='test -z "$ac_cxx_werror_flag"
30499 || test ! -s conftest.err'
ac1cb8d3
VS
30500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30501 (eval $ac_try) 2>&5
30502 ac_status=$?
30503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504 (exit $ac_status); }; } &&
30505 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30507 (eval $ac_try) 2>&5
30508 ac_status=$?
30509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510 (exit $ac_status); }; }; then
30511 ac_cv_lib_socket_connect=yes
30512else
30513 echo "$as_me: failed program was:" >&5
30514sed 's/^/| /' conftest.$ac_ext >&5
30515
30516ac_cv_lib_socket_connect=no
30517fi
ac1cb8d3
VS
30518rm -f conftest.err conftest.$ac_objext \
30519 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30520LIBS=$ac_check_lib_save_LIBS
30521fi
30522echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30523echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30524if test $ac_cv_lib_socket_connect = yes; then
30525 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30526fi
30527
30528 fi
30529
30530 # Guillermo Gomez says -lposix is necessary on A/UX.
30531 echo "$as_me:$LINENO: checking for remove" >&5
30532echo $ECHO_N "checking for remove... $ECHO_C" >&6
30533if test "${ac_cv_func_remove+set}" = set; then
30534 echo $ECHO_N "(cached) $ECHO_C" >&6
30535else
30536 cat >conftest.$ac_ext <<_ACEOF
30537/* confdefs.h. */
30538_ACEOF
30539cat confdefs.h >>conftest.$ac_ext
30540cat >>conftest.$ac_ext <<_ACEOF
30541/* end confdefs.h. */
ac1cb8d3
VS
30542/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30544#define remove innocuous_remove
30545
a848cd7e
SC
30546/* System header to define __stub macros and hopefully few prototypes,
30547 which can conflict with char remove (); below.
30548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30549 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30550
a848cd7e
SC
30551#ifdef __STDC__
30552# include <limits.h>
30553#else
30554# include <assert.h>
30555#endif
ac1cb8d3
VS
30556
30557#undef remove
30558
a848cd7e
SC
30559/* Override any gcc2 internal prototype to avoid an error. */
30560#ifdef __cplusplus
30561extern "C"
30562{
30563#endif
30564/* We use char because int might match the return type of a gcc2
30565 builtin and then its argument prototype would still apply. */
30566char remove ();
30567/* The GNU C library defines this for functions which it implements
30568 to always fail with ENOSYS. Some functions are actually named
30569 something starting with __ and the normal name is an alias. */
30570#if defined (__stub_remove) || defined (__stub___remove)
30571choke me
30572#else
30573char (*f) () = remove;
30574#endif
30575#ifdef __cplusplus
30576}
30577#endif
30578
30579int
30580main ()
30581{
30582return f != remove;
30583 ;
30584 return 0;
30585}
30586_ACEOF
30587rm -f conftest.$ac_objext conftest$ac_exeext
30588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30589 (eval $ac_link) 2>conftest.er1
a848cd7e 30590 ac_status=$?
ac1cb8d3
VS
30591 grep -v '^ *+' conftest.er1 >conftest.err
30592 rm -f conftest.er1
30593 cat conftest.err >&5
a848cd7e
SC
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); } &&
7067783d
PC
30596 { ac_try='test -z "$ac_cxx_werror_flag"
30597 || test ! -s conftest.err'
ac1cb8d3
VS
30598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30599 (eval $ac_try) 2>&5
30600 ac_status=$?
30601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); }; } &&
30603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30605 (eval $ac_try) 2>&5
30606 ac_status=$?
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); }; }; then
30609 ac_cv_func_remove=yes
30610else
30611 echo "$as_me: failed program was:" >&5
30612sed 's/^/| /' conftest.$ac_ext >&5
30613
30614ac_cv_func_remove=no
30615fi
ac1cb8d3
VS
30616rm -f conftest.err conftest.$ac_objext \
30617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30618fi
30619echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30620echo "${ECHO_T}$ac_cv_func_remove" >&6
30621
30622 if test $ac_cv_func_remove = no; then
30623 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30624echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30625if test "${ac_cv_lib_posix_remove+set}" = set; then
30626 echo $ECHO_N "(cached) $ECHO_C" >&6
30627else
30628 ac_check_lib_save_LIBS=$LIBS
30629LIBS="-lposix $LIBS"
30630cat >conftest.$ac_ext <<_ACEOF
30631/* confdefs.h. */
30632_ACEOF
30633cat confdefs.h >>conftest.$ac_ext
30634cat >>conftest.$ac_ext <<_ACEOF
30635/* end confdefs.h. */
30636
30637/* Override any gcc2 internal prototype to avoid an error. */
30638#ifdef __cplusplus
30639extern "C"
30640#endif
30641/* We use char because int might match the return type of a gcc2
30642 builtin and then its argument prototype would still apply. */
30643char remove ();
30644int
30645main ()
30646{
30647remove ();
30648 ;
30649 return 0;
30650}
30651_ACEOF
30652rm -f conftest.$ac_objext conftest$ac_exeext
30653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30654 (eval $ac_link) 2>conftest.er1
a848cd7e 30655 ac_status=$?
ac1cb8d3
VS
30656 grep -v '^ *+' conftest.er1 >conftest.err
30657 rm -f conftest.er1
30658 cat conftest.err >&5
a848cd7e
SC
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); } &&
7067783d
PC
30661 { ac_try='test -z "$ac_cxx_werror_flag"
30662 || test ! -s conftest.err'
ac1cb8d3
VS
30663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30664 (eval $ac_try) 2>&5
30665 ac_status=$?
30666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667 (exit $ac_status); }; } &&
30668 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30670 (eval $ac_try) 2>&5
30671 ac_status=$?
30672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673 (exit $ac_status); }; }; then
30674 ac_cv_lib_posix_remove=yes
30675else
30676 echo "$as_me: failed program was:" >&5
30677sed 's/^/| /' conftest.$ac_ext >&5
30678
30679ac_cv_lib_posix_remove=no
30680fi
ac1cb8d3
VS
30681rm -f conftest.err conftest.$ac_objext \
30682 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30683LIBS=$ac_check_lib_save_LIBS
30684fi
30685echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30686echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30687if test $ac_cv_lib_posix_remove = yes; then
30688 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30689fi
30690
30691 fi
30692
30693 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30694 echo "$as_me:$LINENO: checking for shmat" >&5
30695echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30696if test "${ac_cv_func_shmat+set}" = set; then
30697 echo $ECHO_N "(cached) $ECHO_C" >&6
30698else
30699 cat >conftest.$ac_ext <<_ACEOF
30700/* confdefs.h. */
30701_ACEOF
30702cat confdefs.h >>conftest.$ac_ext
30703cat >>conftest.$ac_ext <<_ACEOF
30704/* end confdefs.h. */
ac1cb8d3
VS
30705/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30707#define shmat innocuous_shmat
30708
a848cd7e
SC
30709/* System header to define __stub macros and hopefully few prototypes,
30710 which can conflict with char shmat (); below.
30711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30712 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30713
a848cd7e
SC
30714#ifdef __STDC__
30715# include <limits.h>
30716#else
30717# include <assert.h>
30718#endif
ac1cb8d3
VS
30719
30720#undef shmat
30721
a848cd7e
SC
30722/* Override any gcc2 internal prototype to avoid an error. */
30723#ifdef __cplusplus
30724extern "C"
30725{
30726#endif
30727/* We use char because int might match the return type of a gcc2
30728 builtin and then its argument prototype would still apply. */
30729char shmat ();
30730/* The GNU C library defines this for functions which it implements
30731 to always fail with ENOSYS. Some functions are actually named
30732 something starting with __ and the normal name is an alias. */
30733#if defined (__stub_shmat) || defined (__stub___shmat)
30734choke me
30735#else
30736char (*f) () = shmat;
30737#endif
30738#ifdef __cplusplus
30739}
30740#endif
30741
30742int
30743main ()
30744{
30745return f != shmat;
30746 ;
30747 return 0;
30748}
30749_ACEOF
30750rm -f conftest.$ac_objext conftest$ac_exeext
30751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30752 (eval $ac_link) 2>conftest.er1
a848cd7e 30753 ac_status=$?
ac1cb8d3
VS
30754 grep -v '^ *+' conftest.er1 >conftest.err
30755 rm -f conftest.er1
30756 cat conftest.err >&5
a848cd7e
SC
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } &&
7067783d
PC
30759 { ac_try='test -z "$ac_cxx_werror_flag"
30760 || test ! -s conftest.err'
ac1cb8d3
VS
30761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30762 (eval $ac_try) 2>&5
30763 ac_status=$?
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); }; } &&
30766 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768 (eval $ac_try) 2>&5
30769 ac_status=$?
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; }; then
30772 ac_cv_func_shmat=yes
30773else
30774 echo "$as_me: failed program was:" >&5
30775sed 's/^/| /' conftest.$ac_ext >&5
30776
30777ac_cv_func_shmat=no
30778fi
ac1cb8d3
VS
30779rm -f conftest.err conftest.$ac_objext \
30780 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30781fi
30782echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30783echo "${ECHO_T}$ac_cv_func_shmat" >&6
30784
30785 if test $ac_cv_func_shmat = no; then
30786 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30787echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30788if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30789 echo $ECHO_N "(cached) $ECHO_C" >&6
30790else
30791 ac_check_lib_save_LIBS=$LIBS
30792LIBS="-lipc $LIBS"
30793cat >conftest.$ac_ext <<_ACEOF
30794/* confdefs.h. */
30795_ACEOF
30796cat confdefs.h >>conftest.$ac_ext
30797cat >>conftest.$ac_ext <<_ACEOF
30798/* end confdefs.h. */
30799
30800/* Override any gcc2 internal prototype to avoid an error. */
30801#ifdef __cplusplus
30802extern "C"
30803#endif
30804/* We use char because int might match the return type of a gcc2
30805 builtin and then its argument prototype would still apply. */
30806char shmat ();
30807int
30808main ()
30809{
30810shmat ();
30811 ;
30812 return 0;
30813}
30814_ACEOF
30815rm -f conftest.$ac_objext conftest$ac_exeext
30816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30817 (eval $ac_link) 2>conftest.er1
a848cd7e 30818 ac_status=$?
ac1cb8d3
VS
30819 grep -v '^ *+' conftest.er1 >conftest.err
30820 rm -f conftest.er1
30821 cat conftest.err >&5
a848cd7e
SC
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); } &&
7067783d
PC
30824 { ac_try='test -z "$ac_cxx_werror_flag"
30825 || test ! -s conftest.err'
ac1cb8d3
VS
30826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30827 (eval $ac_try) 2>&5
30828 ac_status=$?
30829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); }; } &&
30831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30833 (eval $ac_try) 2>&5
30834 ac_status=$?
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836 (exit $ac_status); }; }; then
30837 ac_cv_lib_ipc_shmat=yes
30838else
30839 echo "$as_me: failed program was:" >&5
30840sed 's/^/| /' conftest.$ac_ext >&5
30841
30842ac_cv_lib_ipc_shmat=no
30843fi
ac1cb8d3
VS
30844rm -f conftest.err conftest.$ac_objext \
30845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30846LIBS=$ac_check_lib_save_LIBS
30847fi
30848echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30849echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30850if test $ac_cv_lib_ipc_shmat = yes; then
30851 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30852fi
30853
30854 fi
30855 fi
30856
30857 # Check for libraries that X11R6 Xt/Xaw programs need.
30858 ac_save_LDFLAGS=$LDFLAGS
30859 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30860 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30861 # check for ICE first), but we must link in the order -lSM -lICE or
30862 # we get undefined symbols. So assume we have SM if we have ICE.
30863 # These have to be linked with before -lX11, unlike the other
30864 # libraries we check for below, so use a different variable.
30865 # John Interrante, Karl Berry
30866 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30867echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30868if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30869 echo $ECHO_N "(cached) $ECHO_C" >&6
30870else
30871 ac_check_lib_save_LIBS=$LIBS
30872LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30873cat >conftest.$ac_ext <<_ACEOF
30874/* confdefs.h. */
30875_ACEOF
30876cat confdefs.h >>conftest.$ac_ext
30877cat >>conftest.$ac_ext <<_ACEOF
30878/* end confdefs.h. */
30879
30880/* Override any gcc2 internal prototype to avoid an error. */
30881#ifdef __cplusplus
30882extern "C"
30883#endif
30884/* We use char because int might match the return type of a gcc2
30885 builtin and then its argument prototype would still apply. */
30886char IceConnectionNumber ();
30887int
30888main ()
30889{
30890IceConnectionNumber ();
30891 ;
30892 return 0;
30893}
30894_ACEOF
30895rm -f conftest.$ac_objext conftest$ac_exeext
30896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30897 (eval $ac_link) 2>conftest.er1
a848cd7e 30898 ac_status=$?
ac1cb8d3
VS
30899 grep -v '^ *+' conftest.er1 >conftest.err
30900 rm -f conftest.er1
30901 cat conftest.err >&5
a848cd7e
SC
30902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903 (exit $ac_status); } &&
7067783d
PC
30904 { ac_try='test -z "$ac_cxx_werror_flag"
30905 || test ! -s conftest.err'
ac1cb8d3
VS
30906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30907 (eval $ac_try) 2>&5
30908 ac_status=$?
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); }; } &&
30911 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30913 (eval $ac_try) 2>&5
30914 ac_status=$?
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); }; }; then
30917 ac_cv_lib_ICE_IceConnectionNumber=yes
30918else
30919 echo "$as_me: failed program was:" >&5
30920sed 's/^/| /' conftest.$ac_ext >&5
30921
30922ac_cv_lib_ICE_IceConnectionNumber=no
30923fi
ac1cb8d3
VS
30924rm -f conftest.err conftest.$ac_objext \
30925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30926LIBS=$ac_check_lib_save_LIBS
30927fi
30928echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30929echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30930if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30931 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30932fi
30933
30934 LDFLAGS=$ac_save_LDFLAGS
30935
30936fi
30937
30938
30939 if test "$no_x" = "yes"; then
89d90d6d
VZ
30940 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30941echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30942 { (exit 1); exit 1; }; }
a848cd7e
SC
30943 fi
30944
74b84332
VS
30945 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30946 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30947 AFMINSTALL=afminstall
30948 COMPILED_X_PROGRAM=0
30949
74b84332
VS
30950 fi
30951
30952 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30953 if test "$wxUSE_NANOX" = "yes"; then
30954 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30955echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30956 if test "x$MICROWIN" = x ; then
30957 echo "$as_me:$LINENO: result: not found" >&5
30958echo "${ECHO_T}not found" >&6
30959 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30960echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30961 { (exit 1); exit 1; }; }
30962 else
30963 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30964echo "${ECHO_T}$MICROWIN" >&6
30965 cat >>confdefs.h <<\_ACEOF
30966#define wxUSE_NANOX 1
30967_ACEOF
30968
30969 fi
30970 fi
30971
30972 if test "$wxUSE_UNICODE" = "yes"; then
30973
3ecd9f92
MW
30974pkg_failed=no
30975echo "$as_me:$LINENO: checking for PANGOX" >&5
30976echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30977
3ecd9f92
MW
30978if test -n "$PKG_CONFIG"; then
30979 if test -n "$PANGOX_CFLAGS"; then
30980 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30981 else
30982 if test -n "$PKG_CONFIG" && \
30983 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30984 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30985 ac_status=$?
30986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); }; then
30988 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30989else
30990 pkg_failed=yes
30991fi
30992 fi
30993else
30994 pkg_failed=untried
30995fi
30996if test -n "$PKG_CONFIG"; then
30997 if test -n "$PANGOX_LIBS"; then
30998 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30999 else
31000 if test -n "$PKG_CONFIG" && \
31001 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31002 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31003 ac_status=$?
31004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31005 (exit $ac_status); }; then
31006 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31007else
31008 pkg_failed=yes
31009fi
31010 fi
31011else
31012 pkg_failed=untried
31013fi
31014
31015
31016
31017if test $pkg_failed = yes; then
31018
31019if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31020 _pkg_short_errors_supported=yes
31021else
31022 _pkg_short_errors_supported=no
31023fi
31024 if test $_pkg_short_errors_supported = yes; then
31025 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31026 else
31027 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 31028 fi
3ecd9f92
MW
31029 # Put the nasty error message in config.log where it belongs
31030 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
31031
31032
3ecd9f92
MW
31033 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31034echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31035 { (exit 1); exit 1; }; }
a848cd7e 31036
a848cd7e 31037
3ecd9f92 31038elif test $pkg_failed = untried; then
a848cd7e 31039
3ecd9f92
MW
31040 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31041echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31042 { (exit 1); exit 1; }; }
31043
31044
31045else
31046 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31047 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31048 echo "$as_me:$LINENO: result: yes" >&5
31049echo "${ECHO_T}yes" >&6
31050
31051 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31052 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31053
31054fi
31055
31056pkg_failed=no
31057echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31058echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
31059
31060if test -n "$PKG_CONFIG"; then
31061 if test -n "$PANGOFT2_CFLAGS"; then
31062 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31063 else
31064 if test -n "$PKG_CONFIG" && \
31065 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31066 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31067 ac_status=$?
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); }; then
31070 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31071else
31072 pkg_failed=yes
31073fi
31074 fi
31075else
31076 pkg_failed=untried
31077fi
31078if test -n "$PKG_CONFIG"; then
31079 if test -n "$PANGOFT2_LIBS"; then
31080 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31081 else
31082 if test -n "$PKG_CONFIG" && \
31083 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31084 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31085 ac_status=$?
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); }; then
31088 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31089else
31090 pkg_failed=yes
31091fi
31092 fi
31093else
31094 pkg_failed=untried
31095fi
31096
31097
31098
31099if test $pkg_failed = yes; then
31100
31101if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31102 _pkg_short_errors_supported=yes
31103else
31104 _pkg_short_errors_supported=no
31105fi
31106 if test $_pkg_short_errors_supported = yes; then
31107 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31108 else
31109 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31110 fi
31111 # Put the nasty error message in config.log where it belongs
31112 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 31113
a848cd7e
SC
31114
31115 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31116echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31117 wxUSE_PRINTING_ARCHITECTURE="no"
31118
31119
3ecd9f92 31120elif test $pkg_failed = untried; then
a848cd7e 31121
3ecd9f92
MW
31122 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31123echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31124 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 31125
a848cd7e 31126
a848cd7e 31127else
3ecd9f92
MW
31128 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31129 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31130 echo "$as_me:$LINENO: result: yes" >&5
31131echo "${ECHO_T}yes" >&6
31132
31133 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31134 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 31135
a848cd7e 31136fi
3ecd9f92
MW
31137
31138pkg_failed=no
31139echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31140echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
31141
31142if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
31143 if test -n "$PANGOXFT_CFLAGS"; then
31144 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31145 else
31146 if test -n "$PKG_CONFIG" && \
31147 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31148 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31149 ac_status=$?
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); }; then
31152 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 31153else
3ecd9f92
MW
31154 pkg_failed=yes
31155fi
31156 fi
31157else
31158 pkg_failed=untried
31159fi
31160if test -n "$PKG_CONFIG"; then
31161 if test -n "$PANGOXFT_LIBS"; then
31162 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31163 else
31164 if test -n "$PKG_CONFIG" && \
31165 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31166 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31167 ac_status=$?
31168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31169 (exit $ac_status); }; then
31170 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31171else
31172 pkg_failed=yes
31173fi
31174 fi
31175else
31176 pkg_failed=untried
a848cd7e
SC
31177fi
31178
a848cd7e 31179
a848cd7e 31180
3ecd9f92 31181if test $pkg_failed = yes; then
a848cd7e 31182
3ecd9f92
MW
31183if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31184 _pkg_short_errors_supported=yes
31185else
31186 _pkg_short_errors_supported=no
31187fi
31188 if test $_pkg_short_errors_supported = yes; then
31189 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31190 else
31191 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 31192 fi
3ecd9f92
MW
31193 # Put the nasty error message in config.log where it belongs
31194 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
31195
31196
3ecd9f92
MW
31197 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31198echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31199
a848cd7e 31200
3ecd9f92 31201elif test $pkg_failed = untried; then
a848cd7e 31202
3ecd9f92
MW
31203 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31204echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31205
31206
31207else
31208 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31209 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31210 echo "$as_me:$LINENO: result: yes" >&5
31211echo "${ECHO_T}yes" >&6
a848cd7e 31212
4ae1af05
MB
31213 cat >>confdefs.h <<\_ACEOF
31214#define HAVE_PANGO_XFT 1
31215_ACEOF
31216
c92ad099 31217 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
31218 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31219
3ecd9f92 31220fi
e56f4f9e 31221 save_CXXFLAGS="$CXXFLAGS"
304205f1 31222 save_LIBS="$LIBS"
e56f4f9e 31223 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
31224 LIBS="$LIBS $PANGOX_LIBS"
31225
31226for ac_func in pango_font_family_is_monospace
31227do
31228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31229echo "$as_me:$LINENO: checking for $ac_func" >&5
31230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31231if eval "test \"\${$as_ac_var+set}\" = set"; then
31232 echo $ECHO_N "(cached) $ECHO_C" >&6
31233else
31234 cat >conftest.$ac_ext <<_ACEOF
31235/* confdefs.h. */
31236_ACEOF
31237cat confdefs.h >>conftest.$ac_ext
31238cat >>conftest.$ac_ext <<_ACEOF
31239/* end confdefs.h. */
31240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31242#define $ac_func innocuous_$ac_func
31243
31244/* System header to define __stub macros and hopefully few prototypes,
31245 which can conflict with char $ac_func (); below.
31246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31247 <limits.h> exists even on freestanding compilers. */
31248
31249#ifdef __STDC__
31250# include <limits.h>
31251#else
31252# include <assert.h>
31253#endif
31254
31255#undef $ac_func
31256
31257/* Override any gcc2 internal prototype to avoid an error. */
31258#ifdef __cplusplus
31259extern "C"
31260{
31261#endif
31262/* We use char because int might match the return type of a gcc2
31263 builtin and then its argument prototype would still apply. */
31264char $ac_func ();
31265/* The GNU C library defines this for functions which it implements
31266 to always fail with ENOSYS. Some functions are actually named
31267 something starting with __ and the normal name is an alias. */
31268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31269choke me
31270#else
31271char (*f) () = $ac_func;
31272#endif
31273#ifdef __cplusplus
31274}
31275#endif
31276
31277int
31278main ()
31279{
31280return f != $ac_func;
31281 ;
31282 return 0;
31283}
31284_ACEOF
31285rm -f conftest.$ac_objext conftest$ac_exeext
31286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31287 (eval $ac_link) 2>conftest.er1
31288 ac_status=$?
31289 grep -v '^ *+' conftest.er1 >conftest.err
31290 rm -f conftest.er1
31291 cat conftest.err >&5
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); } &&
7067783d
PC
31294 { ac_try='test -z "$ac_cxx_werror_flag"
31295 || test ! -s conftest.err'
304205f1
VS
31296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31297 (eval $ac_try) 2>&5
31298 ac_status=$?
31299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31300 (exit $ac_status); }; } &&
31301 { ac_try='test -s conftest$ac_exeext'
31302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31303 (eval $ac_try) 2>&5
31304 ac_status=$?
31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); }; }; then
31307 eval "$as_ac_var=yes"
31308else
31309 echo "$as_me: failed program was:" >&5
31310sed 's/^/| /' conftest.$ac_ext >&5
31311
31312eval "$as_ac_var=no"
31313fi
31314rm -f conftest.err conftest.$ac_objext \
31315 conftest$ac_exeext conftest.$ac_ext
31316fi
31317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31318echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31319if test `eval echo '${'$as_ac_var'}'` = yes; then
31320 cat >>confdefs.h <<_ACEOF
31321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31322_ACEOF
31323
31324fi
31325done
31326
e56f4f9e 31327 CXXFLAGS="$save_CXXFLAGS"
304205f1 31328 LIBS="$save_LIBS"
a848cd7e
SC
31329 fi
31330
31331 wxUSE_UNIVERSAL="yes"
31332
31333 if test "$wxUSE_NANOX" = "yes"; then
31334 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31335 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"
31336 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31337 else
31338 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31339 fi
31340
a848cd7e
SC
31341 TOOLKIT=X11
31342 GUIDIST=X11_DIST
31343 fi
31344
31345 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31346 if test "$wxUSE_UNICODE" = "yes"; then
31347 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31348echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31349 { (exit 1); exit 1; }; }
31350 fi
31351
74b84332
VS
31352 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31353echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31354
74b84332
VS
31355ac_find_includes=
31356for ac_dir in $SEARCH_INCLUDE /usr/include;
31357 do
31358 if test -f "$ac_dir/Xm/Xm.h"; then
31359 ac_find_includes=$ac_dir
31360 break
31361 fi
31362 done
a848cd7e 31363
74b84332
VS
31364 if test "$ac_find_includes" != "" ; then
31365 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31366echo "${ECHO_T}found in $ac_find_includes" >&6
31367
31368 if test "x$ac_find_includes" = "x/usr/include"; then
31369 ac_path_to_include=""
31370 else
31371 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31372 result=$?
31373 if test $result = 0; then
31374 ac_path_to_include=""
31375 else
31376 ac_path_to_include=" -I$ac_find_includes"
31377 fi
a848cd7e
SC
31378 fi
31379
74b84332
VS
31380 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31381 else
e56f4f9e
VZ
31382 save_CXXFLAGS=$CXXFLAGS
31383 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 31384
74b84332 31385 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31386/* confdefs.h. */
31387_ACEOF
31388cat confdefs.h >>conftest.$ac_ext
31389cat >>conftest.$ac_ext <<_ACEOF
31390/* end confdefs.h. */
31391
74b84332
VS
31392 #include <Xm/Xm.h>
31393
a848cd7e
SC
31394int
31395main ()
31396{
31397
74b84332
VS
31398 int version;
31399 version = xmUseVersion;
31400
a848cd7e
SC
31401 ;
31402 return 0;
31403}
31404_ACEOF
74b84332
VS
31405rm -f conftest.$ac_objext
31406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31407 (eval $ac_compile) 2>conftest.er1
a848cd7e 31408 ac_status=$?
ac1cb8d3
VS
31409 grep -v '^ *+' conftest.er1 >conftest.err
31410 rm -f conftest.er1
31411 cat conftest.err >&5
a848cd7e
SC
31412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31413 (exit $ac_status); } &&
7067783d
PC
31414 { ac_try='test -z "$ac_cxx_werror_flag"
31415 || test ! -s conftest.err'
ac1cb8d3
VS
31416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31417 (eval $ac_try) 2>&5
31418 ac_status=$?
31419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420 (exit $ac_status); }; } &&
74b84332 31421 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31423 (eval $ac_try) 2>&5
31424 ac_status=$?
31425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31426 (exit $ac_status); }; }; then
74b84332
VS
31427
31428 echo "$as_me:$LINENO: result: found in default search path" >&5
31429echo "${ECHO_T}found in default search path" >&6
31430 COMPILED_X_PROGRAM=1
31431
a848cd7e
SC
31432else
31433 echo "$as_me: failed program was:" >&5
31434sed 's/^/| /' conftest.$ac_ext >&5
31435
a848cd7e 31436
74b84332
VS
31437 echo "$as_me:$LINENO: result: no" >&5
31438echo "${ECHO_T}no" >&6
e051b34e
MW
31439 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31440echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31441 { (exit 1); exit 1; }; }
a848cd7e 31442
a848cd7e 31443
a848cd7e 31444fi
74b84332 31445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31446
e56f4f9e 31447 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
31448 fi
31449
0ad5d837
VZ
31450
31451 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31452echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31453
0ad5d837
VZ
31454 ac_find_libraries=
31455 for ac_dir in $SEARCH_LIB;
74b84332 31456 do
3eca31dc 31457 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31458 if test -f "$ac_dir/libXm.$ac_extension"; then
31459 ac_find_libraries=$ac_dir
31460 break 2
a848cd7e 31461 fi
74b84332
VS
31462 done
31463 done
a848cd7e 31464
0ad5d837
VZ
31465
31466 if test "x$ac_find_libraries" != "x" ; then
31467 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31468echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31469
74b84332 31470
0ad5d837 31471 if test "$ac_find_libraries" = "default location"; then
74b84332 31472 ac_path_to_link=""
a848cd7e 31473 else
0ad5d837
VZ
31474 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31475 result=$?
31476 if test $result = 0; then
31477 ac_path_to_link=""
31478 else
31479 ac_path_to_link=" -L$ac_find_libraries"
31480 fi
74b84332
VS
31481 fi
31482
0ad5d837
VZ
31483 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31484 else
e56f4f9e
VZ
31485 save_CXXFLAGS=$CXXFLAGS
31486 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
31487 save_LIBS="$LIBS"
31488 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31489
0ad5d837 31490 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31491/* confdefs.h. */
31492_ACEOF
31493cat confdefs.h >>conftest.$ac_ext
31494cat >>conftest.$ac_ext <<_ACEOF
31495/* end confdefs.h. */
31496
0ad5d837 31497 #include <Xm/Xm.h>
74b84332 31498
a848cd7e
SC
31499int
31500main ()
31501{
74b84332 31502
0ad5d837
VZ
31503 int version;
31504 version = xmUseVersion;
74b84332 31505
a848cd7e
SC
31506 ;
31507 return 0;
31508}
31509_ACEOF
0ad5d837
VZ
31510rm -f conftest.$ac_objext conftest$ac_exeext
31511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31512 (eval $ac_link) 2>conftest.er1
a848cd7e 31513 ac_status=$?
ac1cb8d3
VS
31514 grep -v '^ *+' conftest.er1 >conftest.err
31515 rm -f conftest.er1
31516 cat conftest.err >&5
a848cd7e
SC
31517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518 (exit $ac_status); } &&
7067783d
PC
31519 { ac_try='test -z "$ac_cxx_werror_flag"
31520 || test ! -s conftest.err'
ac1cb8d3
VS
31521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31522 (eval $ac_try) 2>&5
31523 ac_status=$?
31524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31525 (exit $ac_status); }; } &&
0ad5d837 31526 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31528 (eval $ac_try) 2>&5
31529 ac_status=$?
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); }; }; then
74b84332 31532
0ad5d837 31533 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31534echo "${ECHO_T}found in default search path" >&6
0ad5d837 31535 COMPILED_X_PROGRAM=1
74b84332 31536
a848cd7e
SC
31537else
31538 echo "$as_me: failed program was:" >&5
31539sed 's/^/| /' conftest.$ac_ext >&5
31540
74b84332 31541
6f9cf1e6 31542 echo "$as_me:$LINENO: result: no" >&5
74b84332 31543echo "${ECHO_T}no" >&6
6f9cf1e6 31544 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31545echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31546 { (exit 1); exit 1; }; }
31547
31548
31549fi
0ad5d837
VZ
31550rm -f conftest.err conftest.$ac_objext \
31551 conftest$ac_exeext conftest.$ac_ext
74b84332 31552
e56f4f9e 31553 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 31554 LIBS="$save_LIBS"
74b84332
VS
31555 fi
31556
31557 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31558echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31559 libp_link=""
31560 libsm_ice_link=""
31561 libs_found=0
31562 for libp in "" " -lXp"; do
31563 if test "$libs_found" = "0"; then
31564 for libsm_ice in "" " -lSM -lICE"; do
31565 if test "$libs_found" = "0"; then
31566 save_LIBS="$LIBS"
31567 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
31568 save_CXXFLAGS=$CXXFLAGS
31569 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
31570
31571 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31572/* confdefs.h. */
31573_ACEOF
31574cat confdefs.h >>conftest.$ac_ext
31575cat >>conftest.$ac_ext <<_ACEOF
31576/* end confdefs.h. */
31577
74b84332
VS
31578 #include <Xm/Xm.h>
31579 #include <Xm/List.h>
31580
a848cd7e
SC
31581int
31582main ()
31583{
74b84332
VS
31584
31585 XmString string = NULL;
31586 Widget w = NULL;
31587 int position = 0;
31588 XmListAddItem(w, string, position);
31589
a848cd7e
SC
31590 ;
31591 return 0;
31592}
31593_ACEOF
31594rm -f conftest.$ac_objext conftest$ac_exeext
31595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31596 (eval $ac_link) 2>conftest.er1
a848cd7e 31597 ac_status=$?
ac1cb8d3
VS
31598 grep -v '^ *+' conftest.er1 >conftest.err
31599 rm -f conftest.er1
31600 cat conftest.err >&5
a848cd7e
SC
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); } &&
7067783d
PC
31603 { ac_try='test -z "$ac_cxx_werror_flag"
31604 || test ! -s conftest.err'
ac1cb8d3
VS
31605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31606 (eval $ac_try) 2>&5
31607 ac_status=$?
31608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31609 (exit $ac_status); }; } &&
31610 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31612 (eval $ac_try) 2>&5
31613 ac_status=$?
31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615 (exit $ac_status); }; }; then
31616
31617 libp_link="$libp"
31618 libsm_ice_link="$libsm_ice"
31619 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31620echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31621 libs_found=1
31622
31623else
31624 echo "$as_me: failed program was:" >&5
31625sed 's/^/| /' conftest.$ac_ext >&5
31626
31627
31628
31629fi
ac1cb8d3
VS
31630rm -f conftest.err conftest.$ac_objext \
31631 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31632
31633 LIBS="$save_LIBS"
e56f4f9e 31634 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31635 fi
31636 done
31637 fi
31638 done
31639
31640 if test "$libs_found" = "0"; then
31641 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31642echo "${ECHO_T}can't find the right libraries" >&6
31643 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31644echo "$as_me: error: can't link a simple motif program" >&2;}
31645 { (exit 1); exit 1; }; }
31646 fi
31647
62fa8b3a
MW
31648 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31649echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31650if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31651 echo $ECHO_N "(cached) $ECHO_C" >&6
31652else
31653 ac_check_lib_save_LIBS=$LIBS
31654LIBS="-lSgm $LIBS"
31655cat >conftest.$ac_ext <<_ACEOF
31656/* confdefs.h. */
31657_ACEOF
31658cat confdefs.h >>conftest.$ac_ext
31659cat >>conftest.$ac_ext <<_ACEOF
31660/* end confdefs.h. */
31661
31662/* Override any gcc2 internal prototype to avoid an error. */
31663#ifdef __cplusplus
31664extern "C"
31665#endif
31666/* We use char because int might match the return type of a gcc2
31667 builtin and then its argument prototype would still apply. */
31668char SgCreateList ();
31669int
31670main ()
31671{
31672SgCreateList ();
31673 ;
31674 return 0;
31675}
31676_ACEOF
31677rm -f conftest.$ac_objext conftest$ac_exeext
31678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31679 (eval $ac_link) 2>conftest.er1
31680 ac_status=$?
31681 grep -v '^ *+' conftest.er1 >conftest.err
31682 rm -f conftest.er1
31683 cat conftest.err >&5
31684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685 (exit $ac_status); } &&
7067783d
PC
31686 { ac_try='test -z "$ac_cxx_werror_flag"
31687 || test ! -s conftest.err'
62fa8b3a
MW
31688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31689 (eval $ac_try) 2>&5
31690 ac_status=$?
31691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692 (exit $ac_status); }; } &&
31693 { ac_try='test -s conftest$ac_exeext'
31694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31695 (eval $ac_try) 2>&5
31696 ac_status=$?
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); }; }; then
31699 ac_cv_lib_Sgm_SgCreateList=yes
31700else
31701 echo "$as_me: failed program was:" >&5
31702sed 's/^/| /' conftest.$ac_ext >&5
31703
31704ac_cv_lib_Sgm_SgCreateList=no
31705fi
31706rm -f conftest.err conftest.$ac_objext \
31707 conftest$ac_exeext conftest.$ac_ext
31708LIBS=$ac_check_lib_save_LIBS
31709fi
31710echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31711echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31712if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31713 libsgm_link=" -lSgm"
31714fi
31715
31716
e56f4f9e
VZ
31717 save_CXXFLAGS=$CXXFLAGS
31718 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 31719
a848cd7e
SC
31720 echo "$as_me:$LINENO: checking for Motif 2" >&5
31721echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
31722if test "${wx_cv_lib_motif2+set}" = set; then
31723 echo $ECHO_N "(cached) $ECHO_C" >&6
31724else
31725 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31726/* confdefs.h. */
31727_ACEOF
31728cat confdefs.h >>conftest.$ac_ext
31729cat >>conftest.$ac_ext <<_ACEOF
31730/* end confdefs.h. */
31731
0ad5d837 31732 #include <Xm/Xm.h>
a848cd7e
SC
31733
31734int
31735main ()
31736{
31737
0ad5d837
VZ
31738 #if XmVersion < 2000
31739 Not Motif 2
31740 #endif
a848cd7e
SC
31741
31742 ;
31743 return 0;
31744}
31745_ACEOF
31746rm -f conftest.$ac_objext
31747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31748 (eval $ac_compile) 2>conftest.er1
a848cd7e 31749 ac_status=$?
ac1cb8d3
VS
31750 grep -v '^ *+' conftest.er1 >conftest.err
31751 rm -f conftest.er1
31752 cat conftest.err >&5
a848cd7e
SC
31753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754 (exit $ac_status); } &&
7067783d
PC
31755 { ac_try='test -z "$ac_cxx_werror_flag"
31756 || test ! -s conftest.err'
ac1cb8d3
VS
31757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31758 (eval $ac_try) 2>&5
31759 ac_status=$?
31760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761 (exit $ac_status); }; } &&
31762 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31764 (eval $ac_try) 2>&5
31765 ac_status=$?
31766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767 (exit $ac_status); }; }; then
0ad5d837 31768 wx_cv_lib_motif2="yes"
a848cd7e
SC
31769else
31770 echo "$as_me: failed program was:" >&5
31771sed 's/^/| /' conftest.$ac_ext >&5
31772
0ad5d837
VZ
31773wx_cv_lib_motif2="no"
31774fi
31775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31776fi
31777echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31778echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31779 if test "$wx_cv_lib_motif2" = "yes"; then
31780 cat >>confdefs.h <<\_ACEOF
31781#define __WXMOTIF20__ 1
31782_ACEOF
a848cd7e 31783
0ad5d837
VZ
31784 else
31785 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31786#define __WXMOTIF20__ 0
31787_ACEOF
31788
0ad5d837 31789 fi
2113bc77
MW
31790
31791 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31792echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
31793if test "${wx_cv_lib_lesstif+set}" = set; then
31794 echo $ECHO_N "(cached) $ECHO_C" >&6
31795else
31796 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
31797/* confdefs.h. */
31798_ACEOF
31799cat confdefs.h >>conftest.$ac_ext
31800cat >>conftest.$ac_ext <<_ACEOF
31801/* end confdefs.h. */
31802
0ad5d837 31803 #include <Xm/Xm.h>
2113bc77
MW
31804
31805int
31806main ()
31807{
31808
0ad5d837
VZ
31809 #if !defined(LesstifVersion) || LesstifVersion <= 0
31810 Not Lesstif
31811 #endif
2113bc77
MW
31812
31813 ;
31814 return 0;
31815}
31816_ACEOF
31817rm -f conftest.$ac_objext
31818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31819 (eval $ac_compile) 2>conftest.er1
31820 ac_status=$?
31821 grep -v '^ *+' conftest.er1 >conftest.err
31822 rm -f conftest.er1
31823 cat conftest.err >&5
31824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825 (exit $ac_status); } &&
7067783d
PC
31826 { ac_try='test -z "$ac_cxx_werror_flag"
31827 || test ! -s conftest.err'
2113bc77
MW
31828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31829 (eval $ac_try) 2>&5
31830 ac_status=$?
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; } &&
31833 { ac_try='test -s conftest.$ac_objext'
31834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31835 (eval $ac_try) 2>&5
31836 ac_status=$?
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); }; }; then
0ad5d837 31839 wx_cv_lib_lesstif="yes"
2113bc77
MW
31840else
31841 echo "$as_me: failed program was:" >&5
31842sed 's/^/| /' conftest.$ac_ext >&5
31843
0ad5d837
VZ
31844wx_cv_lib_lesstif="no"
31845fi
31846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 31847
0ad5d837
VZ
31848fi
31849echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31850echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31851 if test "$wx_cv_lib_lesstif" = "yes"; then
31852 cat >>confdefs.h <<\_ACEOF
31853#define __WXLESSTIF__ 1
31854_ACEOF
31855
31856 else
31857 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31858#define __WXLESSTIF__ 0
31859_ACEOF
31860
0ad5d837 31861 fi
2113bc77 31862
e56f4f9e 31863 CXXFLAGS=$save_CXXFLAGS
a848cd7e 31864
62fa8b3a 31865 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31866 TOOLKIT=MOTIF
31867 GUIDIST=MOTIF_DIST
31868 fi
31869
74b84332 31870 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31871 if test "$wxUSE_LIBXPM" = "sys"; then
31872 echo "$as_me:$LINENO: checking for Xpm library" >&5
31873echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31874
0ad5d837
VZ
31875 ac_find_libraries=
31876 for ac_dir in $SEARCH_LIB;
a848cd7e 31877 do
3eca31dc 31878 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31879 if test -f "$ac_dir/libXpm.$ac_extension"; then
31880 ac_find_libraries=$ac_dir
31881 break 2
31882 fi
31883 done
31884 done
31885
31886 if test "$ac_find_libraries" != "" ; then
31887
0ad5d837 31888 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31889 ac_path_to_link=""
31890 else
0ad5d837
VZ
31891 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31892 result=$?
31893 if test $result = 0; then
31894 ac_path_to_link=""
31895 else
31896 ac_path_to_link=" -L$ac_find_libraries"
31897 fi
a848cd7e
SC
31898 fi
31899
31900 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31901 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31902echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31903
31904 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31905echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31906if test "${wx_cv_x11_xpm_h+set}" = set; then
31907 echo $ECHO_N "(cached) $ECHO_C" >&6
31908else
31909
e56f4f9e
VZ
31910 save_CXXFLAGS=$CXXFLAGS
31911 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31912
31913 cat >conftest.$ac_ext <<_ACEOF
31914/* confdefs.h. */
31915_ACEOF
31916cat confdefs.h >>conftest.$ac_ext
31917cat >>conftest.$ac_ext <<_ACEOF
31918/* end confdefs.h. */
31919
31920 #include <X11/xpm.h>
31921
31922int
31923main ()
31924{
31925
31926 int version;
31927 version = XpmLibraryVersion();
31928
31929 ;
31930 return 0;
31931}
31932_ACEOF
31933rm -f conftest.$ac_objext
31934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31935 (eval $ac_compile) 2>conftest.er1
a848cd7e 31936 ac_status=$?
ac1cb8d3
VS
31937 grep -v '^ *+' conftest.er1 >conftest.err
31938 rm -f conftest.er1
31939 cat conftest.err >&5
a848cd7e
SC
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); } &&
7067783d
PC
31942 { ac_try='test -z "$ac_cxx_werror_flag"
31943 || test ! -s conftest.err'
ac1cb8d3
VS
31944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31945 (eval $ac_try) 2>&5
31946 ac_status=$?
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); }; } &&
31949 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31951 (eval $ac_try) 2>&5
31952 ac_status=$?
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); }; }; then
31955 wx_cv_x11_xpm_h=yes
31956else
31957 echo "$as_me: failed program was:" >&5
31958sed 's/^/| /' conftest.$ac_ext >&5
31959
31960wx_cv_x11_xpm_h=no
31961
31962fi
ac1cb8d3 31963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31964
e56f4f9e 31965 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31966
31967
31968fi
31969echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31970echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31971
31972 if test $wx_cv_x11_xpm_h = "yes"; then
31973 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31974 cat >>confdefs.h <<\_ACEOF
31975#define wxHAVE_LIB_XPM 1
31976_ACEOF
31977
31978 else
31979 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31980echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31981 fi
31982 fi
31983
31984 fi
31985
31986 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31987echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31988if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31989 echo $ECHO_N "(cached) $ECHO_C" >&6
31990else
31991 ac_check_lib_save_LIBS=$LIBS
31992LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31993cat >conftest.$ac_ext <<_ACEOF
31994/* confdefs.h. */
31995_ACEOF
31996cat confdefs.h >>conftest.$ac_ext
31997cat >>conftest.$ac_ext <<_ACEOF
31998/* end confdefs.h. */
31999
32000/* Override any gcc2 internal prototype to avoid an error. */
32001#ifdef __cplusplus
32002extern "C"
32003#endif
32004/* We use char because int might match the return type of a gcc2
32005 builtin and then its argument prototype would still apply. */
32006char XShapeQueryExtension ();
32007int
32008main ()
32009{
32010XShapeQueryExtension ();
32011 ;
32012 return 0;
32013}
32014_ACEOF
32015rm -f conftest.$ac_objext conftest$ac_exeext
32016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32017 (eval $ac_link) 2>conftest.er1
a848cd7e 32018 ac_status=$?
ac1cb8d3
VS
32019 grep -v '^ *+' conftest.er1 >conftest.err
32020 rm -f conftest.er1
32021 cat conftest.err >&5
a848cd7e
SC
32022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023 (exit $ac_status); } &&
7067783d
PC
32024 { ac_try='test -z "$ac_cxx_werror_flag"
32025 || test ! -s conftest.err'
ac1cb8d3
VS
32026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32027 (eval $ac_try) 2>&5
32028 ac_status=$?
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); }; } &&
32031 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32033 (eval $ac_try) 2>&5
32034 ac_status=$?
32035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32036 (exit $ac_status); }; }; then
32037 ac_cv_lib_Xext_XShapeQueryExtension=yes
32038else
32039 echo "$as_me: failed program was:" >&5
32040sed 's/^/| /' conftest.$ac_ext >&5
32041
32042ac_cv_lib_Xext_XShapeQueryExtension=no
32043fi
ac1cb8d3
VS
32044rm -f conftest.err conftest.$ac_objext \
32045 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32046LIBS=$ac_check_lib_save_LIBS
32047fi
32048echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32049echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
32050if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32051
32052 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32053 wxHAVE_XEXT_LIB=1
32054
32055fi
32056
32057
32058 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
32059 save_CXXFLAGS="$CXXFLAGS"
32060 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
32061
32062 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32063echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
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
32071 #include <X11/Xlib.h>
32072 #include <X11/extensions/shape.h>
32073
32074int
32075main ()
32076{
32077
32078 int dummy1, dummy2;
32079 XShapeQueryExtension((Display*)NULL,
32080 (int*)NULL, (int*)NULL);
32081
32082 ;
32083 return 0;
32084}
32085_ACEOF
32086rm -f conftest.$ac_objext
32087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32088 (eval $ac_compile) 2>conftest.er1
a848cd7e 32089 ac_status=$?
ac1cb8d3
VS
32090 grep -v '^ *+' conftest.er1 >conftest.err
32091 rm -f conftest.er1
32092 cat conftest.err >&5
a848cd7e
SC
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); } &&
7067783d
PC
32095 { ac_try='test -z "$ac_cxx_werror_flag"
32096 || test ! -s conftest.err'
ac1cb8d3
VS
32097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32098 (eval $ac_try) 2>&5
32099 ac_status=$?
32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); }; } &&
32102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32104 (eval $ac_try) 2>&5
32105 ac_status=$?
32106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107 (exit $ac_status); }; }; then
32108
32109 cat >>confdefs.h <<\_ACEOF
32110#define HAVE_XSHAPE 1
32111_ACEOF
32112
32113 echo "$as_me:$LINENO: result: found" >&5
32114echo "${ECHO_T}found" >&6
32115
32116else
32117 echo "$as_me: failed program was:" >&5
32118sed 's/^/| /' conftest.$ac_ext >&5
32119
32120
32121 echo "$as_me:$LINENO: result: not found" >&5
32122echo "${ECHO_T}not found" >&6
32123
32124fi
ac1cb8d3 32125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 32126 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
32127
32128 fi
32129 fi
32130
32131 if test "$wxUSE_MAC" = 1; then
32132 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32133echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
32134 if test "$GCC" = yes; then
32135 echo "$as_me:$LINENO: result: gcc" >&5
32136echo "${ECHO_T}gcc" >&6
32137 CPPFLAGS_PASCAL="-fpascal-strings"
32138 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32139 echo "$as_me:$LINENO: result: xlc" >&5
32140echo "${ECHO_T}xlc" >&6
32141 CPPFLAGS_PASCAL="-qmacpstr"
32142 else
32143 echo "$as_me:$LINENO: result: none" >&5
32144echo "${ECHO_T}none" >&6
32145 fi
32146
1e9e8aba 32147 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 32148 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 32149 else
c92ad099 32150 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 32151 fi
a848cd7e 32152
a848cd7e
SC
32153 TOOLKIT=MAC
32154 GUIDIST=MACX_DIST
dd21ced8 32155 WXBASEPORT="_carbon"
a848cd7e
SC
32156 fi
32157
32158 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
32159 TOOLKIT=COCOA
32160 GUIDIST=COCOA_DIST
32161 fi
32162
32163 if test "$wxUSE_PM" = 1; then
32164 TOOLKIT=PM
de59c161
RD
32165 GUIDIST=PM_DIST
32166 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32167echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
32168if test "${wx_cv_spbcdata+set}" = set; then
32169 echo $ECHO_N "(cached) $ECHO_C" >&6
32170else
32171
32172 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
32173/* confdefs.h. */
32174_ACEOF
32175cat confdefs.h >>conftest.$ac_ext
32176cat >>conftest.$ac_ext <<_ACEOF
32177/* end confdefs.h. */
32178
32179 #define INCL_PM
32180 #include <os2.h>
32181
32182int
32183main ()
32184{
32185
32186 SPBCDATA test;
32187
32188 ;
32189 return 0;
32190}
32191_ACEOF
32192rm -f conftest.$ac_objext
32193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32194 (eval $ac_compile) 2>conftest.er1
de59c161 32195 ac_status=$?
ac1cb8d3
VS
32196 grep -v '^ *+' conftest.er1 >conftest.err
32197 rm -f conftest.er1
32198 cat conftest.err >&5
de59c161
RD
32199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200 (exit $ac_status); } &&
7067783d
PC
32201 { ac_try='test -z "$ac_cxx_werror_flag"
32202 || test ! -s conftest.err'
ac1cb8d3
VS
32203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32204 (eval $ac_try) 2>&5
32205 ac_status=$?
32206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207 (exit $ac_status); }; } &&
32208 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
32209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32210 (eval $ac_try) 2>&5
32211 ac_status=$?
32212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213 (exit $ac_status); }; }; then
32214 wx_cv_spbcdata=yes
32215else
32216 echo "$as_me: failed program was:" >&5
32217sed 's/^/| /' conftest.$ac_ext >&5
32218
32219wx_cv_spbcdata=no
32220
32221fi
ac1cb8d3 32222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
32223
32224
32225fi
32226echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32227echo "${ECHO_T}$wx_cv_spbcdata" >&6
32228
32229 if test $wx_cv_spbcdata = "yes"; then
32230 cat >>confdefs.h <<\_ACEOF
32231#define HAVE_SPBCDATA 1
32232_ACEOF
32233
32234 fi
a848cd7e
SC
32235 fi
32236
32237 if test "$TOOLKIT" = "PM" ; then
32238 TOOLKIT_DIR="os2"
32239 else
32240 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32241 fi
32242
a848cd7e 32243 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
32244 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32245 WIDGET_SET=univ
a848cd7e
SC
32246 fi
32247
32248 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32249 DISTDIR="wx\$(TOOLKIT)"
32250else
32251 USE_GUI=0
32252
32253 TOOLKIT_DIR="base"
32254
32255 if test "$USE_WIN32" = 1 ; then
a848cd7e 32256 TOOLKIT="MSW"
a848cd7e
SC
32257 fi
32258
a848cd7e
SC
32259 GUIDIST="BASE_DIST"
32260 DISTDIR="wxBase"
32261fi
32262
32263
d12aef51
VZ
32264if test "$wxUSE_GUI" = "yes"; then
32265 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32266
32267for ac_header in X11/Xlib.h
32268do
32269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32270if eval "test \"\${$as_ac_Header+set}\" = set"; then
32271 echo "$as_me:$LINENO: checking for $ac_header" >&5
32272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32273if eval "test \"\${$as_ac_Header+set}\" = set"; then
32274 echo $ECHO_N "(cached) $ECHO_C" >&6
32275fi
32276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32278else
32279 # Is the header compilable?
32280echo "$as_me:$LINENO: checking $ac_header usability" >&5
32281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32282cat >conftest.$ac_ext <<_ACEOF
32283/* confdefs.h. */
32284_ACEOF
32285cat confdefs.h >>conftest.$ac_ext
32286cat >>conftest.$ac_ext <<_ACEOF
32287/* end confdefs.h. */
32288$ac_includes_default
32289#include <$ac_header>
32290_ACEOF
32291rm -f conftest.$ac_objext
32292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32293 (eval $ac_compile) 2>conftest.er1
32294 ac_status=$?
32295 grep -v '^ *+' conftest.er1 >conftest.err
32296 rm -f conftest.er1
32297 cat conftest.err >&5
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); } &&
7067783d
PC
32300 { ac_try='test -z "$ac_cxx_werror_flag"
32301 || test ! -s conftest.err'
d12aef51
VZ
32302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32303 (eval $ac_try) 2>&5
32304 ac_status=$?
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); }; } &&
32307 { ac_try='test -s conftest.$ac_objext'
32308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32309 (eval $ac_try) 2>&5
32310 ac_status=$?
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; }; then
32313 ac_header_compiler=yes
32314else
32315 echo "$as_me: failed program was:" >&5
32316sed 's/^/| /' conftest.$ac_ext >&5
32317
32318ac_header_compiler=no
32319fi
32320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32321echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32322echo "${ECHO_T}$ac_header_compiler" >&6
32323
32324# Is the header present?
32325echo "$as_me:$LINENO: checking $ac_header presence" >&5
32326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32327cat >conftest.$ac_ext <<_ACEOF
32328/* confdefs.h. */
32329_ACEOF
32330cat confdefs.h >>conftest.$ac_ext
32331cat >>conftest.$ac_ext <<_ACEOF
32332/* end confdefs.h. */
32333#include <$ac_header>
32334_ACEOF
32335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32337 ac_status=$?
32338 grep -v '^ *+' conftest.er1 >conftest.err
32339 rm -f conftest.er1
32340 cat conftest.err >&5
32341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32342 (exit $ac_status); } >/dev/null; then
32343 if test -s conftest.err; then
5d7b7554
VZ
32344 ac_cpp_err=$ac_cxx_preproc_warn_flag
32345 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
32346 else
32347 ac_cpp_err=
32348 fi
32349else
32350 ac_cpp_err=yes
32351fi
32352if test -z "$ac_cpp_err"; then
32353 ac_header_preproc=yes
32354else
32355 echo "$as_me: failed program was:" >&5
32356sed 's/^/| /' conftest.$ac_ext >&5
32357
32358 ac_header_preproc=no
32359fi
32360rm -f conftest.err conftest.$ac_ext
32361echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32362echo "${ECHO_T}$ac_header_preproc" >&6
32363
32364# So? What about this header?
5d7b7554 32365case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
32366 yes:no: )
32367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32368echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32370echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32371 ac_header_preproc=yes
32372 ;;
32373 no:yes:* )
32374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32375echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32377echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32379echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32381echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32383echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32385echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32386 (
32387 cat <<\_ASBOX
32388## ----------------------------------------- ##
32389## Report this to wx-dev@lists.wxwidgets.org ##
32390## ----------------------------------------- ##
32391_ASBOX
32392 ) |
32393 sed "s/^/$as_me: WARNING: /" >&2
32394 ;;
32395esac
32396echo "$as_me:$LINENO: checking for $ac_header" >&5
32397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32398if eval "test \"\${$as_ac_Header+set}\" = set"; then
32399 echo $ECHO_N "(cached) $ECHO_C" >&6
32400else
32401 eval "$as_ac_Header=\$ac_header_preproc"
32402fi
32403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32405
32406fi
32407if test `eval echo '${'$as_ac_Header'}'` = yes; then
32408 cat >>confdefs.h <<_ACEOF
32409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32410_ACEOF
32411
32412fi
32413
32414done
32415
32416
32417for ac_header in X11/XKBlib.h
32418do
32419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32420echo "$as_me:$LINENO: checking for $ac_header" >&5
32421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32422if eval "test \"\${$as_ac_Header+set}\" = set"; then
32423 echo $ECHO_N "(cached) $ECHO_C" >&6
32424else
32425 cat >conftest.$ac_ext <<_ACEOF
32426/* confdefs.h. */
32427_ACEOF
32428cat confdefs.h >>conftest.$ac_ext
32429cat >>conftest.$ac_ext <<_ACEOF
32430/* end confdefs.h. */
32431
32432 #if HAVE_X11_XLIB_H
32433 #include <X11/Xlib.h>
32434 #endif
32435
32436
32437#include <$ac_header>
32438_ACEOF
32439rm -f conftest.$ac_objext
32440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32441 (eval $ac_compile) 2>conftest.er1
32442 ac_status=$?
32443 grep -v '^ *+' conftest.er1 >conftest.err
32444 rm -f conftest.er1
32445 cat conftest.err >&5
32446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32447 (exit $ac_status); } &&
7067783d
PC
32448 { ac_try='test -z "$ac_cxx_werror_flag"
32449 || test ! -s conftest.err'
d12aef51
VZ
32450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32451 (eval $ac_try) 2>&5
32452 ac_status=$?
32453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454 (exit $ac_status); }; } &&
32455 { ac_try='test -s conftest.$ac_objext'
32456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32457 (eval $ac_try) 2>&5
32458 ac_status=$?
32459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460 (exit $ac_status); }; }; then
32461 eval "$as_ac_Header=yes"
32462else
32463 echo "$as_me: failed program was:" >&5
32464sed 's/^/| /' conftest.$ac_ext >&5
32465
32466eval "$as_ac_Header=no"
32467fi
32468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32469fi
32470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32472if test `eval echo '${'$as_ac_Header'}'` = yes; then
32473 cat >>confdefs.h <<_ACEOF
32474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32475_ACEOF
32476
32477fi
32478
32479done
32480
32481 fi
32482fi
32483
a848cd7e
SC
32484
32485
32486IODBC_C_SRC=""
32487
32488
32489if test "$TOOLKIT" != "MSW" ; then
32490
32491 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32492
32493 if test "${ac_cv_header_sql_h+set}" = set; then
32494 echo "$as_me:$LINENO: checking for sql.h" >&5
32495echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32496if test "${ac_cv_header_sql_h+set}" = set; then
32497 echo $ECHO_N "(cached) $ECHO_C" >&6
32498fi
32499echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32500echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32501else
32502 # Is the header compilable?
32503echo "$as_me:$LINENO: checking sql.h usability" >&5
32504echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32505cat >conftest.$ac_ext <<_ACEOF
32506/* confdefs.h. */
32507_ACEOF
32508cat confdefs.h >>conftest.$ac_ext
32509cat >>conftest.$ac_ext <<_ACEOF
32510/* end confdefs.h. */
32511$ac_includes_default
32512#include <sql.h>
32513_ACEOF
32514rm -f conftest.$ac_objext
32515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32516 (eval $ac_compile) 2>conftest.er1
a848cd7e 32517 ac_status=$?
ac1cb8d3
VS
32518 grep -v '^ *+' conftest.er1 >conftest.err
32519 rm -f conftest.er1
32520 cat conftest.err >&5
a848cd7e
SC
32521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522 (exit $ac_status); } &&
7067783d
PC
32523 { ac_try='test -z "$ac_cxx_werror_flag"
32524 || test ! -s conftest.err'
ac1cb8d3
VS
32525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32526 (eval $ac_try) 2>&5
32527 ac_status=$?
32528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529 (exit $ac_status); }; } &&
32530 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32532 (eval $ac_try) 2>&5
32533 ac_status=$?
32534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); }; }; then
32536 ac_header_compiler=yes
32537else
32538 echo "$as_me: failed program was:" >&5
32539sed 's/^/| /' conftest.$ac_ext >&5
32540
32541ac_header_compiler=no
32542fi
ac1cb8d3 32543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32544echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32545echo "${ECHO_T}$ac_header_compiler" >&6
32546
32547# Is the header present?
32548echo "$as_me:$LINENO: checking sql.h presence" >&5
32549echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32550cat >conftest.$ac_ext <<_ACEOF
32551/* confdefs.h. */
32552_ACEOF
32553cat confdefs.h >>conftest.$ac_ext
32554cat >>conftest.$ac_ext <<_ACEOF
32555/* end confdefs.h. */
32556#include <sql.h>
32557_ACEOF
32558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32560 ac_status=$?
32561 grep -v '^ *+' conftest.er1 >conftest.err
32562 rm -f conftest.er1
32563 cat conftest.err >&5
32564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32565 (exit $ac_status); } >/dev/null; then
32566 if test -s conftest.err; then
5d7b7554
VZ
32567 ac_cpp_err=$ac_cxx_preproc_warn_flag
32568 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32569 else
32570 ac_cpp_err=
32571 fi
32572else
32573 ac_cpp_err=yes
32574fi
32575if test -z "$ac_cpp_err"; then
32576 ac_header_preproc=yes
32577else
32578 echo "$as_me: failed program was:" >&5
32579sed 's/^/| /' conftest.$ac_ext >&5
32580
32581 ac_header_preproc=no
32582fi
32583rm -f conftest.err conftest.$ac_ext
32584echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32585echo "${ECHO_T}$ac_header_preproc" >&6
32586
32587# So? What about this header?
5d7b7554 32588case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32589 yes:no: )
a848cd7e
SC
32590 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32591echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32592 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32593echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32594 ac_header_preproc=yes
a848cd7e 32595 ;;
ac1cb8d3 32596 no:yes:* )
a848cd7e
SC
32597 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32598echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32599 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32600echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32601 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32602echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32603 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32604echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32605 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32606echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32607 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32608echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32609 (
32610 cat <<\_ASBOX
ac1cb8d3
VS
32611## ----------------------------------------- ##
32612## Report this to wx-dev@lists.wxwidgets.org ##
32613## ----------------------------------------- ##
a848cd7e
SC
32614_ASBOX
32615 ) |
32616 sed "s/^/$as_me: WARNING: /" >&2
32617 ;;
32618esac
32619echo "$as_me:$LINENO: checking for sql.h" >&5
32620echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32621if test "${ac_cv_header_sql_h+set}" = set; then
32622 echo $ECHO_N "(cached) $ECHO_C" >&6
32623else
32624 ac_cv_header_sql_h=$ac_header_preproc
32625fi
32626echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32627echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32628
32629fi
32630if test $ac_cv_header_sql_h = yes; then
32631 found_sql_h=1
32632fi
32633
32634
32635 if test "x$found_sql_h" = "x1" ; then
32636 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32637echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32638if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32639 echo $ECHO_N "(cached) $ECHO_C" >&6
32640else
32641 ac_check_lib_save_LIBS=$LIBS
32642LIBS="-liodbc $LIBS"
32643cat >conftest.$ac_ext <<_ACEOF
32644/* confdefs.h. */
32645_ACEOF
32646cat confdefs.h >>conftest.$ac_ext
32647cat >>conftest.$ac_ext <<_ACEOF
32648/* end confdefs.h. */
32649
32650/* Override any gcc2 internal prototype to avoid an error. */
32651#ifdef __cplusplus
32652extern "C"
32653#endif
32654/* We use char because int might match the return type of a gcc2
32655 builtin and then its argument prototype would still apply. */
32656char SQLAllocEnv ();
32657int
32658main ()
32659{
32660SQLAllocEnv ();
32661 ;
32662 return 0;
32663}
32664_ACEOF
32665rm -f conftest.$ac_objext conftest$ac_exeext
32666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32667 (eval $ac_link) 2>conftest.er1
a848cd7e 32668 ac_status=$?
ac1cb8d3
VS
32669 grep -v '^ *+' conftest.er1 >conftest.err
32670 rm -f conftest.er1
32671 cat conftest.err >&5
a848cd7e
SC
32672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32673 (exit $ac_status); } &&
7067783d
PC
32674 { ac_try='test -z "$ac_cxx_werror_flag"
32675 || test ! -s conftest.err'
ac1cb8d3
VS
32676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32677 (eval $ac_try) 2>&5
32678 ac_status=$?
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); }; } &&
32681 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32683 (eval $ac_try) 2>&5
32684 ac_status=$?
32685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686 (exit $ac_status); }; }; then
32687 ac_cv_lib_iodbc_SQLAllocEnv=yes
32688else
32689 echo "$as_me: failed program was:" >&5
32690sed 's/^/| /' conftest.$ac_ext >&5
32691
32692ac_cv_lib_iodbc_SQLAllocEnv=no
32693fi
ac1cb8d3
VS
32694rm -f conftest.err conftest.$ac_objext \
32695 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32696LIBS=$ac_check_lib_save_LIBS
32697fi
32698echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32699echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32700if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32701 ODBC_LINK=" -liodbc"
32702else
32703
32704 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32705echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32706if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32707 echo $ECHO_N "(cached) $ECHO_C" >&6
32708else
32709 ac_check_lib_save_LIBS=$LIBS
32710LIBS="-lunixodbc $LIBS"
32711cat >conftest.$ac_ext <<_ACEOF
32712/* confdefs.h. */
32713_ACEOF
32714cat confdefs.h >>conftest.$ac_ext
32715cat >>conftest.$ac_ext <<_ACEOF
32716/* end confdefs.h. */
32717
32718/* Override any gcc2 internal prototype to avoid an error. */
32719#ifdef __cplusplus
32720extern "C"
32721#endif
32722/* We use char because int might match the return type of a gcc2
32723 builtin and then its argument prototype would still apply. */
32724char SQLAllocEnv ();
32725int
32726main ()
32727{
32728SQLAllocEnv ();
32729 ;
32730 return 0;
32731}
32732_ACEOF
32733rm -f conftest.$ac_objext conftest$ac_exeext
32734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32735 (eval $ac_link) 2>conftest.er1
a848cd7e 32736 ac_status=$?
ac1cb8d3
VS
32737 grep -v '^ *+' conftest.er1 >conftest.err
32738 rm -f conftest.er1
32739 cat conftest.err >&5
a848cd7e
SC
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); } &&
7067783d
PC
32742 { ac_try='test -z "$ac_cxx_werror_flag"
32743 || test ! -s conftest.err'
ac1cb8d3
VS
32744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32745 (eval $ac_try) 2>&5
32746 ac_status=$?
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); }; } &&
32749 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32751 (eval $ac_try) 2>&5
32752 ac_status=$?
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); }; }; then
32755 ac_cv_lib_unixodbc_SQLAllocEnv=yes
32756else
32757 echo "$as_me: failed program was:" >&5
32758sed 's/^/| /' conftest.$ac_ext >&5
32759
32760ac_cv_lib_unixodbc_SQLAllocEnv=no
32761fi
ac1cb8d3
VS
32762rm -f conftest.err conftest.$ac_objext \
32763 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32764LIBS=$ac_check_lib_save_LIBS
32765fi
32766echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32767echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32768if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32769 ODBC_LINK=" -lunixodbc"
32770else
32771
32772 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32773echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32774if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32775 echo $ECHO_N "(cached) $ECHO_C" >&6
32776else
32777 ac_check_lib_save_LIBS=$LIBS
32778LIBS="-lodbc $LIBS"
32779cat >conftest.$ac_ext <<_ACEOF
32780/* confdefs.h. */
32781_ACEOF
32782cat confdefs.h >>conftest.$ac_ext
32783cat >>conftest.$ac_ext <<_ACEOF
32784/* end confdefs.h. */
32785
32786/* Override any gcc2 internal prototype to avoid an error. */
32787#ifdef __cplusplus
32788extern "C"
32789#endif
32790/* We use char because int might match the return type of a gcc2
32791 builtin and then its argument prototype would still apply. */
32792char SQLAllocEnv ();
32793int
32794main ()
32795{
32796SQLAllocEnv ();
32797 ;
32798 return 0;
32799}
32800_ACEOF
32801rm -f conftest.$ac_objext conftest$ac_exeext
32802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32803 (eval $ac_link) 2>conftest.er1
a848cd7e 32804 ac_status=$?
ac1cb8d3
VS
32805 grep -v '^ *+' conftest.er1 >conftest.err
32806 rm -f conftest.er1
32807 cat conftest.err >&5
a848cd7e
SC
32808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809 (exit $ac_status); } &&
7067783d
PC
32810 { ac_try='test -z "$ac_cxx_werror_flag"
32811 || test ! -s conftest.err'
ac1cb8d3
VS
32812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32813 (eval $ac_try) 2>&5
32814 ac_status=$?
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); }; } &&
32817 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32819 (eval $ac_try) 2>&5
32820 ac_status=$?
32821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822 (exit $ac_status); }; }; then
32823 ac_cv_lib_odbc_SQLAllocEnv=yes
32824else
32825 echo "$as_me: failed program was:" >&5
32826sed 's/^/| /' conftest.$ac_ext >&5
32827
32828ac_cv_lib_odbc_SQLAllocEnv=no
32829fi
ac1cb8d3
VS
32830rm -f conftest.err conftest.$ac_objext \
32831 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32832LIBS=$ac_check_lib_save_LIBS
32833fi
32834echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32835echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32836if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32837 ODBC_LINK=" -lodbc"
32838fi
32839
32840
32841fi
32842
32843
32844fi
32845
32846 fi
32847 if test "x$ODBC_LINK" = "x" ; then
32848 if test "$wxUSE_ODBC" = "sys" ; then
32849 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32850echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32851 { (exit 1); exit 1; }; }
32852 else
32853 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32854echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32855 wxUSE_ODBC=builtin
32856 fi
32857 else
32858 wxUSE_ODBC=sys
32859 fi
32860 fi
a848cd7e 32861
2da0c077
RD
32862 if test "$wxUSE_ODBC" = "builtin" ; then
32863 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32864#define wxUSE_BUILTIN_IODBC 1
32865_ACEOF
32866
a848cd7e
SC
32867 fi
32868fi
32869
2da0c077
RD
32870if test "$wxUSE_ODBC" != "no" ; then
32871 cat >>confdefs.h <<\_ACEOF
32872#define wxUSE_ODBC 1
32873_ACEOF
32874
32875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32876
5ff751d6 32877 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32878fi
a848cd7e 32879
01cb68df 32880
a848cd7e 32881if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32882 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32883 echo "$as_me:$LINENO: checking for Xinerama" >&5
32884echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32885
0ad5d837
VZ
32886 ac_find_libraries=
32887 for ac_dir in $SEARCH_LIB;
32888 do
32889 for ac_extension in a so sl dylib dll.a; do
32890 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32891 ac_find_libraries=$ac_dir
32892 break 2
32893 fi
32894 done
32895 done
32896
a848cd7e
SC
32897 if test "$ac_find_libraries" != "" ; then
32898
0ad5d837 32899 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32900 ac_path_to_link=""
32901 else
0ad5d837
VZ
32902 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32903 result=$?
32904 if test $result = 0; then
32905 ac_path_to_link=""
32906 else
32907 ac_path_to_link=" -L$ac_find_libraries"
32908 fi
a848cd7e
SC
32909 fi
32910
32911 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32912 LDFLAGS="$LDFLAGS $ac_path_to_link"
32913 fi
32914 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32915 echo "$as_me:$LINENO: result: yes" >&5
32916echo "${ECHO_T}yes" >&6
32917
32918 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32919echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32920
0ad5d837
VZ
32921 ac_find_libraries=
32922 for ac_dir in $SEARCH_LIB;
a848cd7e 32923 do
3eca31dc 32924 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32925 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32926 ac_find_libraries=$ac_dir
32927 break 2
32928 fi
32929 done
32930 done
32931
32932 if test "$ac_find_libraries" != "" ; then
32933 echo "$as_me:$LINENO: result: yes" >&5
32934echo "${ECHO_T}yes" >&6
32935
32936for ac_header in X11/extensions/xf86vmode.h
32937do
32938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32939echo "$as_me:$LINENO: checking for $ac_header" >&5
32940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32941if eval "test \"\${$as_ac_Header+set}\" = set"; then
32942 echo $ECHO_N "(cached) $ECHO_C" >&6
32943else
32944 cat >conftest.$ac_ext <<_ACEOF
32945/* confdefs.h. */
32946_ACEOF
32947cat confdefs.h >>conftest.$ac_ext
32948cat >>conftest.$ac_ext <<_ACEOF
32949/* end confdefs.h. */
32950
32951 #if HAVE_X11_XLIB_H
32952 #include <X11/Xlib.h>
32953 #endif
32954
32955
32956#include <$ac_header>
32957_ACEOF
32958rm -f conftest.$ac_objext
32959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32960 (eval $ac_compile) 2>conftest.er1
a848cd7e 32961 ac_status=$?
ac1cb8d3
VS
32962 grep -v '^ *+' conftest.er1 >conftest.err
32963 rm -f conftest.er1
32964 cat conftest.err >&5
a848cd7e
SC
32965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966 (exit $ac_status); } &&
7067783d
PC
32967 { ac_try='test -z "$ac_cxx_werror_flag"
32968 || test ! -s conftest.err'
ac1cb8d3
VS
32969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32970 (eval $ac_try) 2>&5
32971 ac_status=$?
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); }; } &&
32974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32976 (eval $ac_try) 2>&5
32977 ac_status=$?
32978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979 (exit $ac_status); }; }; then
32980 eval "$as_ac_Header=yes"
32981else
32982 echo "$as_me: failed program was:" >&5
32983sed 's/^/| /' conftest.$ac_ext >&5
32984
32985eval "$as_ac_Header=no"
32986fi
ac1cb8d3 32987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32988fi
32989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32991if test `eval echo '${'$as_ac_Header'}'` = yes; then
32992 cat >>confdefs.h <<_ACEOF
32993#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32994_ACEOF
32995
32996 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32997
32998fi
32999
33000done
33001
33002 else
33003 echo "$as_me:$LINENO: result: no" >&5
33004echo "${ECHO_T}no" >&6
33005 fi
33006
33007 else
33008 echo "$as_me:$LINENO: result: no" >&5
33009echo "${ECHO_T}no" >&6
dcc1b6ad
VS
33010 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33011echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
33012 wxUSE_DISPLAY="no"
33013 fi
01cb68df
RG
33014 elif test "$wxUSE_MSW" = 1; then
33015
e5efa97e 33016for ac_header in ddraw.h
01cb68df
RG
33017do
33018as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 33019echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
33020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33021if eval "test \"\${$as_ac_Header+set}\" = set"; then
33022 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 33023else
5294a27e 33024 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
33025/* confdefs.h. */
33026_ACEOF
33027cat confdefs.h >>conftest.$ac_ext
33028cat >>conftest.$ac_ext <<_ACEOF
33029/* end confdefs.h. */
5294a27e
VZ
33030#include <windows.h>
33031
01cb68df
RG
33032#include <$ac_header>
33033_ACEOF
33034rm -f conftest.$ac_objext
33035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33036 (eval $ac_compile) 2>conftest.er1
01cb68df 33037 ac_status=$?
ac1cb8d3
VS
33038 grep -v '^ *+' conftest.er1 >conftest.err
33039 rm -f conftest.er1
33040 cat conftest.err >&5
01cb68df
RG
33041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042 (exit $ac_status); } &&
7067783d
PC
33043 { ac_try='test -z "$ac_cxx_werror_flag"
33044 || test ! -s conftest.err'
ac1cb8d3
VS
33045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33046 (eval $ac_try) 2>&5
33047 ac_status=$?
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); }; } &&
33050 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
33051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33052 (eval $ac_try) 2>&5
33053 ac_status=$?
33054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055 (exit $ac_status); }; }; then
5294a27e 33056 eval "$as_ac_Header=yes"
01cb68df
RG
33057else
33058 echo "$as_me: failed program was:" >&5
33059sed 's/^/| /' conftest.$ac_ext >&5
33060
5294a27e 33061eval "$as_ac_Header=no"
01cb68df 33062fi
ac1cb8d3 33063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
33064fi
33065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
33067if test `eval echo '${'$as_ac_Header'}'` = yes; then
33068 cat >>confdefs.h <<_ACEOF
33069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33070_ACEOF
33071
01cb68df
RG
33072fi
33073
33074done
33075
a848cd7e
SC
33076 fi
33077fi
33078
33079
33080USE_OPENGL=0
33081if test "$wxUSE_OPENGL" = "yes"; then
33082 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
33083 OPENGL_LIBS="-framework OpenGL -framework AGL"
33084 elif test "$wxUSE_MSW" = 1; then
33085 OPENGL_LIBS="-lopengl32 -lglu32"
33086 else
33087
33088
33089ac_find_includes=
33090for ac_dir in $SEARCH_INCLUDE /usr/include;
33091 do
33092 if test -f "$ac_dir/GL/gl.h"; then
33093 ac_find_includes=$ac_dir
33094 break
33095 fi
33096 done
33097
33098 if test "$ac_find_includes" != "" ; then
33099 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33100echo "${ECHO_T}found in $ac_find_includes" >&6
33101
33102 if test "x$ac_find_includes" = "x/usr/include"; then
33103 ac_path_to_include=""
33104 else
33105 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33106 result=$?
33107 if test $result = 0; then
33108 ac_path_to_include=""
33109 else
33110 ac_path_to_include=" -I$ac_find_includes"
33111 fi
33112 fi
33113
c92ad099 33114 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
33115 fi
33116
33117 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33118 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33119echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33120if test "${ac_cv_header_GL_gl_h+set}" = set; then
33121 echo $ECHO_N "(cached) $ECHO_C" >&6
33122fi
33123echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33124echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33125else
33126 # Is the header compilable?
33127echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
33128echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
33129cat >conftest.$ac_ext <<_ACEOF
33130/* confdefs.h. */
33131_ACEOF
33132cat confdefs.h >>conftest.$ac_ext
33133cat >>conftest.$ac_ext <<_ACEOF
33134/* end confdefs.h. */
33135$ac_includes_default
33136#include <GL/gl.h>
33137_ACEOF
33138rm -f conftest.$ac_objext
33139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33140 (eval $ac_compile) 2>conftest.er1
a848cd7e 33141 ac_status=$?
ac1cb8d3
VS
33142 grep -v '^ *+' conftest.er1 >conftest.err
33143 rm -f conftest.er1
33144 cat conftest.err >&5
a848cd7e
SC
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); } &&
7067783d
PC
33147 { ac_try='test -z "$ac_cxx_werror_flag"
33148 || test ! -s conftest.err'
ac1cb8d3
VS
33149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33150 (eval $ac_try) 2>&5
33151 ac_status=$?
33152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153 (exit $ac_status); }; } &&
33154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33156 (eval $ac_try) 2>&5
33157 ac_status=$?
33158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159 (exit $ac_status); }; }; then
33160 ac_header_compiler=yes
33161else
33162 echo "$as_me: failed program was:" >&5
33163sed 's/^/| /' conftest.$ac_ext >&5
33164
33165ac_header_compiler=no
33166fi
ac1cb8d3 33167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33168echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33169echo "${ECHO_T}$ac_header_compiler" >&6
33170
33171# Is the header present?
33172echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
33173echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
33174cat >conftest.$ac_ext <<_ACEOF
33175/* confdefs.h. */
33176_ACEOF
33177cat confdefs.h >>conftest.$ac_ext
33178cat >>conftest.$ac_ext <<_ACEOF
33179/* end confdefs.h. */
33180#include <GL/gl.h>
33181_ACEOF
33182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33184 ac_status=$?
33185 grep -v '^ *+' conftest.er1 >conftest.err
33186 rm -f conftest.er1
33187 cat conftest.err >&5
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189 (exit $ac_status); } >/dev/null; then
33190 if test -s conftest.err; then
5d7b7554
VZ
33191 ac_cpp_err=$ac_cxx_preproc_warn_flag
33192 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
33193 else
33194 ac_cpp_err=
33195 fi
33196else
33197 ac_cpp_err=yes
33198fi
33199if test -z "$ac_cpp_err"; then
33200 ac_header_preproc=yes
33201else
33202 echo "$as_me: failed program was:" >&5
33203sed 's/^/| /' conftest.$ac_ext >&5
33204
33205 ac_header_preproc=no
33206fi
33207rm -f conftest.err conftest.$ac_ext
33208echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33209echo "${ECHO_T}$ac_header_preproc" >&6
33210
33211# So? What about this header?
5d7b7554 33212case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 33213 yes:no: )
a848cd7e
SC
33214 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33215echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33216 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
33217echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
33218 ac_header_preproc=yes
a848cd7e 33219 ;;
ac1cb8d3 33220 no:yes:* )
a848cd7e
SC
33221 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
33222echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33223 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
33224echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
33225 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
33226echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
33227 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
33228echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33229 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
33230echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33231 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33232echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33233 (
33234 cat <<\_ASBOX
ac1cb8d3
VS
33235## ----------------------------------------- ##
33236## Report this to wx-dev@lists.wxwidgets.org ##
33237## ----------------------------------------- ##
a848cd7e
SC
33238_ASBOX
33239 ) |
33240 sed "s/^/$as_me: WARNING: /" >&2
33241 ;;
33242esac
33243echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33244echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33245if test "${ac_cv_header_GL_gl_h+set}" = set; then
33246 echo $ECHO_N "(cached) $ECHO_C" >&6
33247else
33248 ac_cv_header_GL_gl_h=$ac_header_preproc
33249fi
33250echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33251echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33252
33253fi
33254if test $ac_cv_header_GL_gl_h = yes; then
33255
33256 found_gl=0
33257
33258 echo "$as_me:$LINENO: checking for -lGL" >&5
33259echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33260
0ad5d837
VZ
33261 ac_find_libraries=
33262 for ac_dir in $SEARCH_LIB;
a848cd7e 33263 do
3eca31dc 33264 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33265 if test -f "$ac_dir/libGL.$ac_extension"; then
33266 ac_find_libraries=$ac_dir
33267 break 2
33268 fi
33269 done
33270 done
33271
33272 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
33273 echo "$as_me:$LINENO: result: yes" >&5
33274echo "${ECHO_T}yes" >&6
33275
a848cd7e 33276
0ad5d837 33277 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33278 ac_path_to_link=""
33279 else
0ad5d837
VZ
33280 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33281 result=$?
33282 if test $result = 0; then
33283 ac_path_to_link=""
33284 else
33285 ac_path_to_link=" -L$ac_find_libraries"
33286 fi
a848cd7e
SC
33287 fi
33288
33289 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33290 LDFLAGS_GL="$ac_path_to_link"
33291 fi
33292
69120ee4
VZ
33293 echo "$as_me:$LINENO: checking for -lGLU" >&5
33294echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 33295
0ad5d837
VZ
33296 ac_find_libraries=
33297 for ac_dir in $SEARCH_LIB;
33298 do
33299 for ac_extension in a so sl dylib dll.a; do
33300 if test -f "$ac_dir/libGLU.$ac_extension"; then
33301 ac_find_libraries=$ac_dir
33302 break 2
33303 fi
33304 done
33305 done
33306
a848cd7e
SC
33307 if test "$ac_find_libraries" != "" ; then
33308
0ad5d837 33309 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33310 ac_path_to_link=""
33311 else
0ad5d837
VZ
33312 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33313 result=$?
33314 if test $result = 0; then
33315 ac_path_to_link=""
33316 else
33317 ac_path_to_link=" -L$ac_find_libraries"
33318 fi
a848cd7e
SC
33319 fi
33320
33321 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33322 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33323 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33324 fi
33325
33326 found_gl=1
33327 OPENGL_LIBS="-lGL -lGLU"
33328 echo "$as_me:$LINENO: result: yes" >&5
33329echo "${ECHO_T}yes" >&6
69120ee4
VZ
33330 else
33331 echo "$as_me:$LINENO: result: no" >&5
33332echo "${ECHO_T}no" >&6
a848cd7e 33333 fi
69120ee4
VZ
33334 else
33335 echo "$as_me:$LINENO: result: no" >&5
33336echo "${ECHO_T}no" >&6
a848cd7e
SC
33337 fi
33338
33339 if test "$found_gl" != 1; then
a848cd7e
SC
33340 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33341echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33342
0ad5d837
VZ
33343 ac_find_libraries=
33344 for ac_dir in $SEARCH_LIB;
a848cd7e 33345 do
3eca31dc 33346 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33347 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33348 ac_find_libraries=$ac_dir
33349 break 2
33350 fi
33351 done
33352 done
33353
33354 if test "$ac_find_libraries" != "" ; then
33355
0ad5d837 33356 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33357 ac_path_to_link=""
33358 else
0ad5d837
VZ
33359 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33360 result=$?
33361 if test $result = 0; then
33362 ac_path_to_link=""
33363 else
33364 ac_path_to_link=" -L$ac_find_libraries"
33365 fi
a848cd7e
SC
33366 fi
33367
33368 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33369 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33370 echo "$as_me:$LINENO: result: yes" >&5
33371echo "${ECHO_T}yes" >&6
33372 else
33373 echo "$as_me:$LINENO: result: no" >&5
33374echo "${ECHO_T}no" >&6
33375 fi
33376 fi
33377
33378fi
33379
33380
33381
33382 if test "x$OPENGL_LIBS" = "x"; then
33383 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33384echo "$as_me: error: OpenGL libraries not available" >&2;}
33385 { (exit 1); exit 1; }; }
33386 fi
33387 fi
33388
33389 if test "$wxUSE_OPENGL" = "yes"; then
33390 USE_OPENGL=1
33391 cat >>confdefs.h <<\_ACEOF
33392#define wxUSE_OPENGL 1
33393_ACEOF
33394
33395 cat >>confdefs.h <<\_ACEOF
33396#define wxUSE_GLCANVAS 1
33397_ACEOF
33398
33399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33400 fi
33401fi
33402
a848cd7e
SC
33403
33404if test -n "$TOOLKIT" ; then
33405 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33406fi
33407
a848cd7e
SC
33408
33409
33410if test "$wxUSE_SHARED" = "yes"; then
33411 case "${host}" in
33412 *-pc-msdosdjgpp )
33413 wxUSE_SHARED=no
33414 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33415echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33416 ;;
33417 esac
33418fi
33419
a848cd7e 33420if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33421
33422
33423 found_versioning=no
33424
33425
33426 if test $found_versioning = no ; then
33427 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33428echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33429if test "${wx_cv_version_script+set}" = set; then
33430 echo $ECHO_N "(cached) $ECHO_C" >&6
33431else
33432
33433 echo "VER_1 { *; };" >conftest.sym
33434 echo "int main() { return 0; }" >conftest.cpp
33435
33436 if { ac_try='
33437 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33438 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33440 (eval $ac_try) 2>&5
33441 ac_status=$?
33442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443 (exit $ac_status); }; } ; then
33444 if test -s conftest.stderr ; then
33445 wx_cv_version_script=no
33446 else
33447 wx_cv_version_script=yes
33448 fi
33449 else
33450 wx_cv_version_script=no
33451 fi
e5d4b470
MW
33452
33453 if test $wx_cv_version_script = yes
33454 then
33455 echo "struct B { virtual ~B() { } }; \
33456 struct D : public B { }; \
33457 void F() { D d; }" > conftest.cpp
33458
33459 if { ac_try='
33460 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33461 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33463 (eval $ac_try) 2>&5
33464 ac_status=$?
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466 (exit $ac_status); }; } &&
33467 { ac_try='
33468 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33469 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33471 (eval $ac_try) 2>&5
33472 ac_status=$?
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); }; }
33475 then
33476 if { ac_try='
33477 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33478 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33480 (eval $ac_try) 2>&5
33481 ac_status=$?
33482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483 (exit $ac_status); }; }
33484 then
33485 wx_cv_version_script=yes
33486 else
33487 wx_cv_version_script=no
33488 fi
33489 fi
33490 fi
33491
a848cd7e 33492 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 33493 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33494
33495fi
33496echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33497echo "${ECHO_T}$wx_cv_version_script" >&6
33498 if test $wx_cv_version_script = yes ; then
33499 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33500 fi
33501 fi
33502
33503
33504 case "${host}" in
33505 *-*-linux* | *-*-gnu* )
33506 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33507 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33508 ;;
a848cd7e
SC
33509
33510 *-*-solaris2* )
33511 if test "$GCC" = yes ; then
c92ad099 33512 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33513
33514 saveLdflags="$LDFLAGS"
33515 LDFLAGS="$saveLdflags -Wl,-rpath,/"
33516 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33517echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33518 cat >conftest.$ac_ext <<_ACEOF
33519/* confdefs.h. */
33520_ACEOF
33521cat confdefs.h >>conftest.$ac_ext
33522cat >>conftest.$ac_ext <<_ACEOF
33523/* end confdefs.h. */
33524
33525int
33526main ()
33527{
33528
33529 ;
33530 return 0;
33531}
33532_ACEOF
33533rm -f conftest.$ac_objext conftest$ac_exeext
33534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33535 (eval $ac_link) 2>conftest.er1
a848cd7e 33536 ac_status=$?
ac1cb8d3
VS
33537 grep -v '^ *+' conftest.er1 >conftest.err
33538 rm -f conftest.er1
33539 cat conftest.err >&5
a848cd7e
SC
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); } &&
7067783d
PC
33542 { ac_try='test -z "$ac_cxx_werror_flag"
33543 || test ! -s conftest.err'
ac1cb8d3
VS
33544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33545 (eval $ac_try) 2>&5
33546 ac_status=$?
33547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548 (exit $ac_status); }; } &&
33549 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33551 (eval $ac_try) 2>&5
33552 ac_status=$?
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); }; }; then
33555
33556 echo "$as_me:$LINENO: result: yes" >&5
33557echo "${ECHO_T}yes" >&6
33558 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33559 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33560
33561else
33562 echo "$as_me: failed program was:" >&5
33563sed 's/^/| /' conftest.$ac_ext >&5
33564
33565
33566 echo "$as_me:$LINENO: result: no" >&5
33567echo "${ECHO_T}no" >&6
33568 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33569echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33570 LDFLAGS="$saveLdflags -Wl,-R,/"
33571 cat >conftest.$ac_ext <<_ACEOF
33572/* confdefs.h. */
33573_ACEOF
33574cat confdefs.h >>conftest.$ac_ext
33575cat >>conftest.$ac_ext <<_ACEOF
33576/* end confdefs.h. */
33577
33578int
33579main ()
33580{
33581
33582 ;
33583 return 0;
33584}
33585_ACEOF
33586rm -f conftest.$ac_objext conftest$ac_exeext
33587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33588 (eval $ac_link) 2>conftest.er1
a848cd7e 33589 ac_status=$?
ac1cb8d3
VS
33590 grep -v '^ *+' conftest.er1 >conftest.err
33591 rm -f conftest.er1
33592 cat conftest.err >&5
a848cd7e
SC
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); } &&
7067783d
PC
33595 { ac_try='test -z "$ac_cxx_werror_flag"
33596 || test ! -s conftest.err'
ac1cb8d3
VS
33597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33598 (eval $ac_try) 2>&5
33599 ac_status=$?
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); }; } &&
33602 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33604 (eval $ac_try) 2>&5
33605 ac_status=$?
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); }; }; then
33608
ffa0583f 33609 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 33610echo "${ECHO_T}yes" >&6
ffa0583f
RL
33611 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33612 WXCONFIG_RPATH="-Wl,-R,\$libdir"
33613
a848cd7e
SC
33614else
33615 echo "$as_me: failed program was:" >&5
33616sed 's/^/| /' conftest.$ac_ext >&5
33617
33618
33619 echo "$as_me:$LINENO: result: no" >&5
33620echo "${ECHO_T}no" >&6
33621
33622fi
ac1cb8d3
VS
33623rm -f conftest.err conftest.$ac_objext \
33624 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33625
33626fi
ac1cb8d3
VS
33627rm -f conftest.err conftest.$ac_objext \
33628 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33629 LDFLAGS="$saveLdflags"
33630 else
a848cd7e 33631 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 33632 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
33633 fi
33634 ;;
33635
cfda0ea8 33636 *-*-darwin* )
0caebc27
MW
33637 install_name_tool=`which install_name_tool`
33638 if test "$install_name_tool" -a -x "$install_name_tool"; then
33639 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33640 cat <<EOF >change-install-names
a848cd7e
SC
33641#!/bin/sh
33642libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33643inst_cmd="install_name_tool "
33644for i in \${libnames} ; do
33645 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33646done
33647\${inst_cmd} \${3}
33648EOF
0caebc27
MW
33649 chmod +x change-install-names
33650 fi
a848cd7e
SC
33651 ;;
33652
33653 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
33654 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33655 ;;
a848cd7e 33656
81f90336
MW
33657 *-*-hpux* )
33658 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
33659 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 33660 ;;
81f90336 33661
a848cd7e 33662 esac
ceec2216 33663
ffa0583f
RL
33664 if test $wxUSE_RPATH = "no"; then
33665 SAMPLES_RPATH_FLAG=''
33666 SAMPLES_RPATH_POSTLINK=''
33667 WXCONFIG_RPATH=''
33668 fi
33669
33670 SHARED=1
33671
33672else
33673
ceec2216
RL
33674 config_linkage_component="-static"
33675 SHARED=0
ffa0583f 33676
ceec2216 33677fi
a848cd7e 33678
a848cd7e 33679
ceec2216
RL
33680UNICODE=0
33681lib_unicode_suffix=
33682WX_CHARTYPE="ansi"
33683if test "$wxUSE_UNICODE" = "yes"; then
33684 lib_unicode_suffix=u
33685 WX_CHARTYPE="unicode"
33686 UNICODE=1
a848cd7e
SC
33687fi
33688
ceec2216
RL
33689lib_debug_suffix=
33690WX_DEBUGTYPE="release"
33691DEBUG_FLAG=0
33692if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33693 lib_debug_suffix=d
33694 WX_DEBUGTYPE="debug"
33695 DEBUG_FLAG=1
33696fi
a848cd7e 33697
ceec2216
RL
33698WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33699WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 33700
ceec2216
RL
33701DEBUG_INFO=0
33702if test "$wxUSE_DEBUG_INFO" = "yes"; then
33703 DEBUG_INFO=1
33704fi
a848cd7e 33705
ceec2216 33706WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 33707
ceec2216 33708TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 33709
ceec2216 33710TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 33711
ceec2216
RL
33712if test "$cross_compiling" = "yes"; then
33713 HOST_SUFFIX="-$host_alias"
33714 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33715 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
33716fi
33717
dd21ced8 33718WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
33719if test "${TOOLKIT_DIR}" = "os2"; then
33720 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33721else
33722 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33723fi
ceec2216
RL
33724
33725
33726
1d1af5ea
DE
33727if test "$wxUSE_COCOA" = 1; then
33728
33729
33730 ac_ext=c
33731ac_cpp='$CPP $CPPFLAGS'
33732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33734ac_compiler_gnu=$ac_cv_c_compiler_gnu
33735
33736ac_ext=m
33737
33738 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33739echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33740 cat >conftest.$ac_ext <<_ACEOF
33741/* confdefs.h. */
33742_ACEOF
33743cat confdefs.h >>conftest.$ac_ext
33744cat >>conftest.$ac_ext <<_ACEOF
33745/* end confdefs.h. */
33746#include <AppKit/NSEvent.h>
33747#include <CoreFoundation/CoreFoundation.h>
33748
33749int
33750main ()
33751{
33752
33753 ;
33754 return 0;
33755}
33756_ACEOF
33757rm -f conftest.$ac_objext
33758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33759 (eval $ac_compile) 2>conftest.er1
33760 ac_status=$?
33761 grep -v '^ *+' conftest.er1 >conftest.err
33762 rm -f conftest.er1
33763 cat conftest.err >&5
33764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765 (exit $ac_status); } &&
7067783d
PC
33766 { ac_try='test -z "$ac_c_werror_flag"
33767 || test ! -s conftest.err'
1d1af5ea
DE
33768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33769 (eval $ac_try) 2>&5
33770 ac_status=$?
33771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33772 (exit $ac_status); }; } &&
33773 { ac_try='test -s conftest.$ac_objext'
33774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33775 (eval $ac_try) 2>&5
33776 ac_status=$?
33777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778 (exit $ac_status); }; }; then
33779 echo "$as_me:$LINENO: result: no" >&5
33780echo "${ECHO_T}no" >&6
33781else
33782 echo "$as_me: failed program was:" >&5
33783sed 's/^/| /' conftest.$ac_ext >&5
33784
33785echo "$as_me:$LINENO: result: yes" >&5
33786echo "${ECHO_T}yes" >&6
33787 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33788echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33789 cat >conftest.$ac_ext <<_ACEOF
33790/* confdefs.h. */
33791_ACEOF
33792cat confdefs.h >>conftest.$ac_ext
33793cat >>conftest.$ac_ext <<_ACEOF
33794/* end confdefs.h. */
33795#define __Point__ 1
33796#include <AppKit/NSEvent.h>
33797#include <CoreFoundation/CoreFoundation.h>
33798
33799int
33800main ()
33801{
33802
33803 ;
33804 return 0;
33805}
33806_ACEOF
33807rm -f conftest.$ac_objext
33808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33809 (eval $ac_compile) 2>conftest.er1
33810 ac_status=$?
33811 grep -v '^ *+' conftest.er1 >conftest.err
33812 rm -f conftest.er1
33813 cat conftest.err >&5
33814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815 (exit $ac_status); } &&
7067783d
PC
33816 { ac_try='test -z "$ac_c_werror_flag"
33817 || test ! -s conftest.err'
1d1af5ea
DE
33818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33819 (eval $ac_try) 2>&5
33820 ac_status=$?
33821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33822 (exit $ac_status); }; } &&
33823 { ac_try='test -s conftest.$ac_objext'
33824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33825 (eval $ac_try) 2>&5
33826 ac_status=$?
33827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828 (exit $ac_status); }; }; then
33829 echo "$as_me:$LINENO: result: yes" >&5
33830echo "${ECHO_T}yes" >&6
33831 cat >>confdefs.h <<\_ACEOF
33832#define __Point__ 1
33833_ACEOF
33834
33835
33836else
33837 echo "$as_me: failed program was:" >&5
33838sed 's/^/| /' conftest.$ac_ext >&5
33839
33840{ { echo "$as_me:$LINENO: error: no
33841See \`config.log' for more details." >&5
33842echo "$as_me: error: no
33843See \`config.log' for more details." >&2;}
33844 { (exit 1); exit 1; }; }
33845
33846fi
33847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33848
33849fi
33850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
33851 ac_ext=cc
33852ac_cpp='$CXXCPP $CPPFLAGS'
33853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
33856
33857fi
33858
a848cd7e 33859if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
33860 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33861 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 33862
a848cd7e 33863 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
33864
33865 # Extract the first word of "Rez", so it can be a program name with args.
33866set dummy Rez; ac_word=$2
33867echo "$as_me:$LINENO: checking for $ac_word" >&5
33868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33869if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33870 echo $ECHO_N "(cached) $ECHO_C" >&6
33871else
8ced02f6
DE
33872 if test -n "$REZ"; then
33873 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33874else
33875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33876for as_dir in $PATH
33877do
33878 IFS=$as_save_IFS
33879 test -z "$as_dir" && as_dir=.
33880 for ac_exec_ext in '' $ac_executable_extensions; do
33881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33882 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33884 break 2
33885 fi
33886done
33887done
33888
8ced02f6 33889 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33890fi
33891fi
8ced02f6
DE
33892REZ=$ac_cv_prog_REZ
33893if test -n "$REZ"; then
33894 echo "$as_me:$LINENO: result: $REZ" >&5
33895echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33896else
33897 echo "$as_me:$LINENO: result: no" >&5
33898echo "${ECHO_T}no" >&6
33899fi
33900
33901 # Extract the first word of "DeRez", so it can be a program name with args.
33902set dummy DeRez; ac_word=$2
33903echo "$as_me:$LINENO: checking for $ac_word" >&5
33904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33905if test "${ac_cv_prog_DEREZ+set}" = set; then
33906 echo $ECHO_N "(cached) $ECHO_C" >&6
33907else
33908 if test -n "$DEREZ"; then
33909 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33910else
33911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33912for as_dir in $PATH
33913do
33914 IFS=$as_save_IFS
33915 test -z "$as_dir" && as_dir=.
33916 for ac_exec_ext in '' $ac_executable_extensions; do
33917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33918 ac_cv_prog_DEREZ="DeRez"
33919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33920 break 2
33921 fi
33922done
33923done
33924
33925 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33926fi
33927fi
33928DEREZ=$ac_cv_prog_DEREZ
33929if test -n "$DEREZ"; then
33930 echo "$as_me:$LINENO: result: $DEREZ" >&5
33931echo "${ECHO_T}$DEREZ" >&6
33932else
33933 echo "$as_me:$LINENO: result: no" >&5
33934echo "${ECHO_T}no" >&6
33935fi
33936
33937 # Extract the first word of "SetFile", so it can be a program name with args.
33938set dummy SetFile; ac_word=$2
33939echo "$as_me:$LINENO: checking for $ac_word" >&5
33940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33941if test "${ac_cv_prog_SETFILE+set}" = set; then
33942 echo $ECHO_N "(cached) $ECHO_C" >&6
33943else
33944 if test -n "$SETFILE"; then
33945 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33946else
33947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33948for as_dir in $PATH
33949do
33950 IFS=$as_save_IFS
33951 test -z "$as_dir" && as_dir=.
33952 for ac_exec_ext in '' $ac_executable_extensions; do
33953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33954 ac_cv_prog_SETFILE="SetFile"
33955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33956 break 2
33957 fi
33958done
33959done
33960
33961 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33962fi
33963fi
33964SETFILE=$ac_cv_prog_SETFILE
33965if test -n "$SETFILE"; then
33966 echo "$as_me:$LINENO: result: $SETFILE" >&5
33967echo "${ECHO_T}$SETFILE" >&6
33968else
33969 echo "$as_me:$LINENO: result: no" >&5
33970echo "${ECHO_T}no" >&6
33971fi
33972
33973
33974 MACSETFILE="\$(SETFILE)"
33975
33976 if test "$wxUSE_MAC" = 1; then
8ced02f6 33977 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33978 RESCOMP="$REZ"
33979 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33980 else
004ee6da
RL
33981 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33982 RESCOMP="echo -n \| $REZ"
33983 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33984 fi
004ee6da 33985
a848cd7e 33986else
ffa0583f 33987 MACSETFILE="@true"
a848cd7e 33988
8ced02f6 33989 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33990 RESCOMP="emxbind"
33991 WXCONFIG_RESFLAGS="-ep"
33992
33993 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33994 else
8ced02f6 33995 POSTLINK_COMMAND="@true"
a848cd7e 33996 fi
004ee6da 33997
a848cd7e
SC
33998fi
33999
34000
34001
34002echo "$as_me:$LINENO: checking for mode_t" >&5
34003echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
34004if test "${ac_cv_type_mode_t+set}" = set; then
34005 echo $ECHO_N "(cached) $ECHO_C" >&6
34006else
34007 cat >conftest.$ac_ext <<_ACEOF
34008/* confdefs.h. */
34009_ACEOF
34010cat confdefs.h >>conftest.$ac_ext
34011cat >>conftest.$ac_ext <<_ACEOF
34012/* end confdefs.h. */
34013$ac_includes_default
34014int
34015main ()
34016{
34017if ((mode_t *) 0)
34018 return 0;
34019if (sizeof (mode_t))
34020 return 0;
34021 ;
34022 return 0;
34023}
34024_ACEOF
34025rm -f conftest.$ac_objext
34026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34027 (eval $ac_compile) 2>conftest.er1
a848cd7e 34028 ac_status=$?
ac1cb8d3
VS
34029 grep -v '^ *+' conftest.er1 >conftest.err
34030 rm -f conftest.er1
34031 cat conftest.err >&5
a848cd7e
SC
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033 (exit $ac_status); } &&
7067783d
PC
34034 { ac_try='test -z "$ac_cxx_werror_flag"
34035 || test ! -s conftest.err'
ac1cb8d3
VS
34036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34037 (eval $ac_try) 2>&5
34038 ac_status=$?
34039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040 (exit $ac_status); }; } &&
34041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34043 (eval $ac_try) 2>&5
34044 ac_status=$?
34045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34046 (exit $ac_status); }; }; then
34047 ac_cv_type_mode_t=yes
34048else
34049 echo "$as_me: failed program was:" >&5
34050sed 's/^/| /' conftest.$ac_ext >&5
34051
34052ac_cv_type_mode_t=no
34053fi
ac1cb8d3 34054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34055fi
34056echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34057echo "${ECHO_T}$ac_cv_type_mode_t" >&6
34058if test $ac_cv_type_mode_t = yes; then
34059 :
34060else
34061
34062cat >>confdefs.h <<_ACEOF
34063#define mode_t int
34064_ACEOF
34065
34066fi
34067
34068echo "$as_me:$LINENO: checking for off_t" >&5
34069echo $ECHO_N "checking for off_t... $ECHO_C" >&6
34070if test "${ac_cv_type_off_t+set}" = set; then
34071 echo $ECHO_N "(cached) $ECHO_C" >&6
34072else
34073 cat >conftest.$ac_ext <<_ACEOF
34074/* confdefs.h. */
34075_ACEOF
34076cat confdefs.h >>conftest.$ac_ext
34077cat >>conftest.$ac_ext <<_ACEOF
34078/* end confdefs.h. */
34079$ac_includes_default
34080int
34081main ()
34082{
34083if ((off_t *) 0)
34084 return 0;
34085if (sizeof (off_t))
34086 return 0;
34087 ;
34088 return 0;
34089}
34090_ACEOF
34091rm -f conftest.$ac_objext
34092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34093 (eval $ac_compile) 2>conftest.er1
a848cd7e 34094 ac_status=$?
ac1cb8d3
VS
34095 grep -v '^ *+' conftest.er1 >conftest.err
34096 rm -f conftest.er1
34097 cat conftest.err >&5
a848cd7e
SC
34098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34099 (exit $ac_status); } &&
7067783d
PC
34100 { ac_try='test -z "$ac_cxx_werror_flag"
34101 || test ! -s conftest.err'
ac1cb8d3
VS
34102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34103 (eval $ac_try) 2>&5
34104 ac_status=$?
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); }; } &&
34107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34109 (eval $ac_try) 2>&5
34110 ac_status=$?
34111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34112 (exit $ac_status); }; }; then
34113 ac_cv_type_off_t=yes
34114else
34115 echo "$as_me: failed program was:" >&5
34116sed 's/^/| /' conftest.$ac_ext >&5
34117
34118ac_cv_type_off_t=no
34119fi
ac1cb8d3 34120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34121fi
34122echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34123echo "${ECHO_T}$ac_cv_type_off_t" >&6
34124if test $ac_cv_type_off_t = yes; then
34125 :
34126else
34127
34128cat >>confdefs.h <<_ACEOF
34129#define off_t long
34130_ACEOF
34131
34132fi
34133
34134echo "$as_me:$LINENO: checking for pid_t" >&5
34135echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
34136if test "${ac_cv_type_pid_t+set}" = set; then
34137 echo $ECHO_N "(cached) $ECHO_C" >&6
34138else
34139 cat >conftest.$ac_ext <<_ACEOF
34140/* confdefs.h. */
34141_ACEOF
34142cat confdefs.h >>conftest.$ac_ext
34143cat >>conftest.$ac_ext <<_ACEOF
34144/* end confdefs.h. */
34145$ac_includes_default
34146int
34147main ()
34148{
34149if ((pid_t *) 0)
34150 return 0;
34151if (sizeof (pid_t))
34152 return 0;
34153 ;
34154 return 0;
34155}
34156_ACEOF
34157rm -f conftest.$ac_objext
34158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34159 (eval $ac_compile) 2>conftest.er1
a848cd7e 34160 ac_status=$?
ac1cb8d3
VS
34161 grep -v '^ *+' conftest.er1 >conftest.err
34162 rm -f conftest.er1
34163 cat conftest.err >&5
a848cd7e
SC
34164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165 (exit $ac_status); } &&
7067783d
PC
34166 { ac_try='test -z "$ac_cxx_werror_flag"
34167 || test ! -s conftest.err'
ac1cb8d3
VS
34168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34169 (eval $ac_try) 2>&5
34170 ac_status=$?
34171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34172 (exit $ac_status); }; } &&
34173 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34175 (eval $ac_try) 2>&5
34176 ac_status=$?
34177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34178 (exit $ac_status); }; }; then
34179 ac_cv_type_pid_t=yes
34180else
34181 echo "$as_me: failed program was:" >&5
34182sed 's/^/| /' conftest.$ac_ext >&5
34183
34184ac_cv_type_pid_t=no
34185fi
ac1cb8d3 34186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34187fi
34188echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34189echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34190if test $ac_cv_type_pid_t = yes; then
34191 :
34192else
34193
34194cat >>confdefs.h <<_ACEOF
34195#define pid_t int
34196_ACEOF
34197
34198fi
34199
34200echo "$as_me:$LINENO: checking for size_t" >&5
34201echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34202if test "${ac_cv_type_size_t+set}" = set; then
34203 echo $ECHO_N "(cached) $ECHO_C" >&6
34204else
34205 cat >conftest.$ac_ext <<_ACEOF
34206/* confdefs.h. */
34207_ACEOF
34208cat confdefs.h >>conftest.$ac_ext
34209cat >>conftest.$ac_ext <<_ACEOF
34210/* end confdefs.h. */
34211$ac_includes_default
34212int
34213main ()
34214{
34215if ((size_t *) 0)
34216 return 0;
34217if (sizeof (size_t))
34218 return 0;
34219 ;
34220 return 0;
34221}
34222_ACEOF
34223rm -f conftest.$ac_objext
34224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34225 (eval $ac_compile) 2>conftest.er1
a848cd7e 34226 ac_status=$?
ac1cb8d3
VS
34227 grep -v '^ *+' conftest.er1 >conftest.err
34228 rm -f conftest.er1
34229 cat conftest.err >&5
a848cd7e
SC
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); } &&
7067783d
PC
34232 { ac_try='test -z "$ac_cxx_werror_flag"
34233 || test ! -s conftest.err'
ac1cb8d3
VS
34234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34235 (eval $ac_try) 2>&5
34236 ac_status=$?
34237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238 (exit $ac_status); }; } &&
34239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34241 (eval $ac_try) 2>&5
34242 ac_status=$?
34243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244 (exit $ac_status); }; }; then
34245 ac_cv_type_size_t=yes
34246else
34247 echo "$as_me: failed program was:" >&5
34248sed 's/^/| /' conftest.$ac_ext >&5
34249
34250ac_cv_type_size_t=no
34251fi
ac1cb8d3 34252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34253fi
34254echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34255echo "${ECHO_T}$ac_cv_type_size_t" >&6
34256if test $ac_cv_type_size_t = yes; then
34257 :
34258else
34259
34260cat >>confdefs.h <<_ACEOF
34261#define size_t unsigned
34262_ACEOF
34263
34264fi
34265
34266echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34267echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34268if test "${ac_cv_type_uid_t+set}" = set; then
34269 echo $ECHO_N "(cached) $ECHO_C" >&6
34270else
34271 cat >conftest.$ac_ext <<_ACEOF
34272/* confdefs.h. */
34273_ACEOF
34274cat confdefs.h >>conftest.$ac_ext
34275cat >>conftest.$ac_ext <<_ACEOF
34276/* end confdefs.h. */
34277#include <sys/types.h>
34278
34279_ACEOF
34280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34281 $EGREP "uid_t" >/dev/null 2>&1; then
34282 ac_cv_type_uid_t=yes
34283else
34284 ac_cv_type_uid_t=no
34285fi
34286rm -f conftest*
34287
34288fi
34289echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34290echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34291if test $ac_cv_type_uid_t = no; then
34292
34293cat >>confdefs.h <<\_ACEOF
34294#define uid_t int
34295_ACEOF
34296
34297
34298cat >>confdefs.h <<\_ACEOF
34299#define gid_t int
34300_ACEOF
34301
34302fi
34303
34304
d51253e8
RL
34305echo "$as_me:$LINENO: checking for ssize_t" >&5
34306echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34307if test "${ac_cv_type_ssize_t+set}" = set; then
34308 echo $ECHO_N "(cached) $ECHO_C" >&6
34309else
34310 cat >conftest.$ac_ext <<_ACEOF
34311/* confdefs.h. */
34312_ACEOF
34313cat confdefs.h >>conftest.$ac_ext
34314cat >>conftest.$ac_ext <<_ACEOF
34315/* end confdefs.h. */
34316$ac_includes_default
34317int
34318main ()
34319{
34320if ((ssize_t *) 0)
34321 return 0;
34322if (sizeof (ssize_t))
34323 return 0;
34324 ;
34325 return 0;
34326}
34327_ACEOF
34328rm -f conftest.$ac_objext
34329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34330 (eval $ac_compile) 2>conftest.er1
34331 ac_status=$?
34332 grep -v '^ *+' conftest.er1 >conftest.err
34333 rm -f conftest.er1
34334 cat conftest.err >&5
34335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336 (exit $ac_status); } &&
7067783d
PC
34337 { ac_try='test -z "$ac_cxx_werror_flag"
34338 || test ! -s conftest.err'
d51253e8
RL
34339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34340 (eval $ac_try) 2>&5
34341 ac_status=$?
34342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34343 (exit $ac_status); }; } &&
34344 { ac_try='test -s conftest.$ac_objext'
34345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34346 (eval $ac_try) 2>&5
34347 ac_status=$?
34348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349 (exit $ac_status); }; }; then
34350 ac_cv_type_ssize_t=yes
34351else
34352 echo "$as_me: failed program was:" >&5
34353sed 's/^/| /' conftest.$ac_ext >&5
34354
34355ac_cv_type_ssize_t=no
34356fi
34357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34358fi
34359echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34360echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34361if test $ac_cv_type_ssize_t = yes; then
34362
34363cat >>confdefs.h <<_ACEOF
34364#define HAVE_SSIZE_T 1
34365_ACEOF
34366
34367
34368fi
34369
34370
a848cd7e
SC
34371echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34372echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34373if test "${wx_cv_size_t_is_uint+set}" = set; then
34374 echo $ECHO_N "(cached) $ECHO_C" >&6
34375else
34376
34377 cat >conftest.$ac_ext <<_ACEOF
34378/* confdefs.h. */
34379_ACEOF
34380cat confdefs.h >>conftest.$ac_ext
34381cat >>conftest.$ac_ext <<_ACEOF
34382/* end confdefs.h. */
34383#include <stddef.h>
34384int
34385main ()
34386{
34387
34388 return 0; }
34389
34390 struct Foo { void foo(size_t); void foo(unsigned int); };
34391
34392 int bar() {
34393
34394 ;
34395 return 0;
34396}
34397_ACEOF
34398rm -f conftest.$ac_objext
34399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34400 (eval $ac_compile) 2>conftest.er1
a848cd7e 34401 ac_status=$?
ac1cb8d3
VS
34402 grep -v '^ *+' conftest.er1 >conftest.err
34403 rm -f conftest.er1
34404 cat conftest.err >&5
a848cd7e
SC
34405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34406 (exit $ac_status); } &&
7067783d
PC
34407 { ac_try='test -z "$ac_cxx_werror_flag"
34408 || test ! -s conftest.err'
ac1cb8d3
VS
34409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34410 (eval $ac_try) 2>&5
34411 ac_status=$?
34412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34413 (exit $ac_status); }; } &&
34414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34416 (eval $ac_try) 2>&5
34417 ac_status=$?
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419 (exit $ac_status); }; }; then
34420 wx_cv_size_t_is_uint=no
34421else
34422 echo "$as_me: failed program was:" >&5
34423sed 's/^/| /' conftest.$ac_ext >&5
34424
34425wx_cv_size_t_is_uint=yes
34426
34427fi
ac1cb8d3 34428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34429
34430
34431fi
34432echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34433echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34434
34435if test "$wx_cv_size_t_is_uint" = "yes"; then
34436 cat >>confdefs.h <<\_ACEOF
34437#define wxSIZE_T_IS_UINT 1
34438_ACEOF
34439
34440else
34441 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34442echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34443if test "${wx_cv_size_t_is_ulong+set}" = set; then
34444 echo $ECHO_N "(cached) $ECHO_C" >&6
34445else
34446 cat >conftest.$ac_ext <<_ACEOF
34447/* confdefs.h. */
34448_ACEOF
34449cat confdefs.h >>conftest.$ac_ext
34450cat >>conftest.$ac_ext <<_ACEOF
34451/* end confdefs.h. */
34452#include <stddef.h>
34453int
34454main ()
34455{
34456
34457 return 0; }
34458
34459 struct Foo { void foo(size_t); void foo(unsigned long); };
34460
34461 int bar() {
34462
34463 ;
34464 return 0;
34465}
34466_ACEOF
34467rm -f conftest.$ac_objext
34468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34469 (eval $ac_compile) 2>conftest.er1
a848cd7e 34470 ac_status=$?
ac1cb8d3
VS
34471 grep -v '^ *+' conftest.er1 >conftest.err
34472 rm -f conftest.er1
34473 cat conftest.err >&5
a848cd7e
SC
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); } &&
7067783d
PC
34476 { ac_try='test -z "$ac_cxx_werror_flag"
34477 || test ! -s conftest.err'
ac1cb8d3
VS
34478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34479 (eval $ac_try) 2>&5
34480 ac_status=$?
34481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482 (exit $ac_status); }; } &&
34483 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34485 (eval $ac_try) 2>&5
34486 ac_status=$?
34487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34488 (exit $ac_status); }; }; then
34489 wx_cv_size_t_is_ulong=no
34490else
34491 echo "$as_me: failed program was:" >&5
34492sed 's/^/| /' conftest.$ac_ext >&5
34493
34494wx_cv_size_t_is_ulong=yes
34495
34496fi
ac1cb8d3 34497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34498
34499fi
34500echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34501echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34502
34503 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34504 cat >>confdefs.h <<\_ACEOF
34505#define wxSIZE_T_IS_ULONG 1
34506_ACEOF
34507
34508 fi
34509fi
34510
a848cd7e
SC
34511
34512echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34513echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34514if test "${wx_cv_struct_pw_gecos+set}" = set; then
34515 echo $ECHO_N "(cached) $ECHO_C" >&6
34516else
34517
34518 cat >conftest.$ac_ext <<_ACEOF
34519/* confdefs.h. */
34520_ACEOF
34521cat confdefs.h >>conftest.$ac_ext
34522cat >>conftest.$ac_ext <<_ACEOF
34523/* end confdefs.h. */
34524#include <pwd.h>
34525int
34526main ()
34527{
34528
34529 char *p;
34530 struct passwd *pw;
34531 p = pw->pw_gecos;
34532
34533 ;
34534 return 0;
34535}
34536_ACEOF
34537rm -f conftest.$ac_objext
34538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34539 (eval $ac_compile) 2>conftest.er1
a848cd7e 34540 ac_status=$?
ac1cb8d3
VS
34541 grep -v '^ *+' conftest.er1 >conftest.err
34542 rm -f conftest.er1
34543 cat conftest.err >&5
a848cd7e
SC
34544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34545 (exit $ac_status); } &&
7067783d
PC
34546 { ac_try='test -z "$ac_cxx_werror_flag"
34547 || test ! -s conftest.err'
ac1cb8d3
VS
34548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34549 (eval $ac_try) 2>&5
34550 ac_status=$?
34551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552 (exit $ac_status); }; } &&
34553 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34555 (eval $ac_try) 2>&5
34556 ac_status=$?
34557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558 (exit $ac_status); }; }; then
34559
34560 wx_cv_struct_pw_gecos=yes
34561
34562else
34563 echo "$as_me: failed program was:" >&5
34564sed 's/^/| /' conftest.$ac_ext >&5
34565
34566
34567 wx_cv_struct_pw_gecos=no
34568
34569
34570fi
ac1cb8d3 34571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34572
34573
34574fi
34575echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34576echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34577
34578if test "$wx_cv_struct_pw_gecos" = "yes"; then
34579 cat >>confdefs.h <<\_ACEOF
34580#define HAVE_PW_GECOS 1
34581_ACEOF
34582
34583fi
34584
34585
47a7e797 34586if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
34587 cat >>confdefs.h <<\_ACEOF
34588#define wxUSE_WCHAR_T 1
34589_ACEOF
34590
34591
34592 WCSLEN_FOUND=0
34593 WCHAR_LINK=
34594
34595for ac_func in wcslen
34596do
34597as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34598echo "$as_me:$LINENO: checking for $ac_func" >&5
34599echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34600if eval "test \"\${$as_ac_var+set}\" = set"; then
34601 echo $ECHO_N "(cached) $ECHO_C" >&6
34602else
34603 cat >conftest.$ac_ext <<_ACEOF
34604/* confdefs.h. */
34605_ACEOF
34606cat confdefs.h >>conftest.$ac_ext
34607cat >>conftest.$ac_ext <<_ACEOF
34608/* end confdefs.h. */
ac1cb8d3
VS
34609/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34611#define $ac_func innocuous_$ac_func
34612
a848cd7e
SC
34613/* System header to define __stub macros and hopefully few prototypes,
34614 which can conflict with char $ac_func (); below.
34615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34616 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34617
a848cd7e
SC
34618#ifdef __STDC__
34619# include <limits.h>
34620#else
34621# include <assert.h>
34622#endif
ac1cb8d3
VS
34623
34624#undef $ac_func
34625
a848cd7e
SC
34626/* Override any gcc2 internal prototype to avoid an error. */
34627#ifdef __cplusplus
34628extern "C"
34629{
34630#endif
34631/* We use char because int might match the return type of a gcc2
34632 builtin and then its argument prototype would still apply. */
34633char $ac_func ();
34634/* The GNU C library defines this for functions which it implements
34635 to always fail with ENOSYS. Some functions are actually named
34636 something starting with __ and the normal name is an alias. */
34637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34638choke me
34639#else
34640char (*f) () = $ac_func;
34641#endif
34642#ifdef __cplusplus
34643}
34644#endif
34645
34646int
34647main ()
34648{
34649return f != $ac_func;
34650 ;
34651 return 0;
34652}
34653_ACEOF
34654rm -f conftest.$ac_objext conftest$ac_exeext
34655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34656 (eval $ac_link) 2>conftest.er1
a848cd7e 34657 ac_status=$?
ac1cb8d3
VS
34658 grep -v '^ *+' conftest.er1 >conftest.err
34659 rm -f conftest.er1
34660 cat conftest.err >&5
a848cd7e
SC
34661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662 (exit $ac_status); } &&
7067783d
PC
34663 { ac_try='test -z "$ac_cxx_werror_flag"
34664 || test ! -s conftest.err'
ac1cb8d3
VS
34665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34666 (eval $ac_try) 2>&5
34667 ac_status=$?
34668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34669 (exit $ac_status); }; } &&
34670 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34672 (eval $ac_try) 2>&5
34673 ac_status=$?
34674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675 (exit $ac_status); }; }; then
34676 eval "$as_ac_var=yes"
34677else
34678 echo "$as_me: failed program was:" >&5
34679sed 's/^/| /' conftest.$ac_ext >&5
34680
34681eval "$as_ac_var=no"
34682fi
ac1cb8d3
VS
34683rm -f conftest.err conftest.$ac_objext \
34684 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34685fi
34686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34687echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34688if test `eval echo '${'$as_ac_var'}'` = yes; then
34689 cat >>confdefs.h <<_ACEOF
34690#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34691_ACEOF
34692 WCSLEN_FOUND=1
34693fi
34694done
34695
34696
34697 if test "$WCSLEN_FOUND" = 0; then
34698 if test "$TOOLKIT" = "MSW"; then
34699 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34700echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34701if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34702 echo $ECHO_N "(cached) $ECHO_C" >&6
34703else
34704 ac_check_lib_save_LIBS=$LIBS
34705LIBS="-lmsvcrt $LIBS"
34706cat >conftest.$ac_ext <<_ACEOF
34707/* confdefs.h. */
34708_ACEOF
34709cat confdefs.h >>conftest.$ac_ext
34710cat >>conftest.$ac_ext <<_ACEOF
34711/* end confdefs.h. */
34712
34713/* Override any gcc2 internal prototype to avoid an error. */
34714#ifdef __cplusplus
34715extern "C"
34716#endif
34717/* We use char because int might match the return type of a gcc2
34718 builtin and then its argument prototype would still apply. */
34719char wcslen ();
34720int
34721main ()
34722{
34723wcslen ();
34724 ;
34725 return 0;
34726}
34727_ACEOF
34728rm -f conftest.$ac_objext conftest$ac_exeext
34729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34730 (eval $ac_link) 2>conftest.er1
a848cd7e 34731 ac_status=$?
ac1cb8d3
VS
34732 grep -v '^ *+' conftest.er1 >conftest.err
34733 rm -f conftest.er1
34734 cat conftest.err >&5
a848cd7e
SC
34735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34736 (exit $ac_status); } &&
7067783d
PC
34737 { ac_try='test -z "$ac_cxx_werror_flag"
34738 || test ! -s conftest.err'
ac1cb8d3
VS
34739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34740 (eval $ac_try) 2>&5
34741 ac_status=$?
34742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34743 (exit $ac_status); }; } &&
34744 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34746 (eval $ac_try) 2>&5
34747 ac_status=$?
34748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34749 (exit $ac_status); }; }; then
34750 ac_cv_lib_msvcrt_wcslen=yes
34751else
34752 echo "$as_me: failed program was:" >&5
34753sed 's/^/| /' conftest.$ac_ext >&5
34754
34755ac_cv_lib_msvcrt_wcslen=no
34756fi
ac1cb8d3
VS
34757rm -f conftest.err conftest.$ac_objext \
34758 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34759LIBS=$ac_check_lib_save_LIBS
34760fi
34761echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34762echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34763if test $ac_cv_lib_msvcrt_wcslen = yes; then
34764 WCHAR_OK=1
34765fi
34766
34767 else
34768 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34769echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34770if test "${ac_cv_lib_w_wcslen+set}" = set; then
34771 echo $ECHO_N "(cached) $ECHO_C" >&6
34772else
34773 ac_check_lib_save_LIBS=$LIBS
34774LIBS="-lw $LIBS"
34775cat >conftest.$ac_ext <<_ACEOF
34776/* confdefs.h. */
34777_ACEOF
34778cat confdefs.h >>conftest.$ac_ext
34779cat >>conftest.$ac_ext <<_ACEOF
34780/* end confdefs.h. */
34781
34782/* Override any gcc2 internal prototype to avoid an error. */
34783#ifdef __cplusplus
34784extern "C"
34785#endif
34786/* We use char because int might match the return type of a gcc2
34787 builtin and then its argument prototype would still apply. */
34788char wcslen ();
34789int
34790main ()
34791{
34792wcslen ();
34793 ;
34794 return 0;
34795}
34796_ACEOF
34797rm -f conftest.$ac_objext conftest$ac_exeext
34798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34799 (eval $ac_link) 2>conftest.er1
a848cd7e 34800 ac_status=$?
ac1cb8d3
VS
34801 grep -v '^ *+' conftest.er1 >conftest.err
34802 rm -f conftest.er1
34803 cat conftest.err >&5
a848cd7e
SC
34804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34805 (exit $ac_status); } &&
7067783d
PC
34806 { ac_try='test -z "$ac_cxx_werror_flag"
34807 || test ! -s conftest.err'
ac1cb8d3
VS
34808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34809 (eval $ac_try) 2>&5
34810 ac_status=$?
34811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34812 (exit $ac_status); }; } &&
34813 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34815 (eval $ac_try) 2>&5
34816 ac_status=$?
34817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34818 (exit $ac_status); }; }; then
34819 ac_cv_lib_w_wcslen=yes
34820else
34821 echo "$as_me: failed program was:" >&5
34822sed 's/^/| /' conftest.$ac_ext >&5
34823
34824ac_cv_lib_w_wcslen=no
34825fi
ac1cb8d3
VS
34826rm -f conftest.err conftest.$ac_objext \
34827 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34828LIBS=$ac_check_lib_save_LIBS
34829fi
34830echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34831echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34832if test $ac_cv_lib_w_wcslen = yes; then
34833
34834 WCHAR_LINK=" -lw"
34835 WCSLEN_FOUND=1
34836
34837fi
34838
34839 fi
34840 fi
34841
34842 if test "$WCSLEN_FOUND" = 1; then
34843 cat >>confdefs.h <<\_ACEOF
34844#define HAVE_WCSLEN 1
34845_ACEOF
34846
34847 fi
34848
efdf6afe 34849 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 34850 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
34851 fi
34852
efdf6afe
VZ
34853 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34854echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34855if test "${ac_cv_type_mbstate_t+set}" = set; then
34856 echo $ECHO_N "(cached) $ECHO_C" >&6
34857else
34858 cat >conftest.$ac_ext <<_ACEOF
34859/* confdefs.h. */
34860_ACEOF
34861cat confdefs.h >>conftest.$ac_ext
34862cat >>conftest.$ac_ext <<_ACEOF
34863/* end confdefs.h. */
34864#include <wchar.h>
34865
34866int
34867main ()
34868{
34869if ((mbstate_t *) 0)
34870 return 0;
34871if (sizeof (mbstate_t))
34872 return 0;
34873 ;
34874 return 0;
34875}
34876_ACEOF
34877rm -f conftest.$ac_objext
34878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34879 (eval $ac_compile) 2>conftest.er1
34880 ac_status=$?
34881 grep -v '^ *+' conftest.er1 >conftest.err
34882 rm -f conftest.er1
34883 cat conftest.err >&5
34884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885 (exit $ac_status); } &&
7067783d
PC
34886 { ac_try='test -z "$ac_cxx_werror_flag"
34887 || test ! -s conftest.err'
efdf6afe
VZ
34888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34889 (eval $ac_try) 2>&5
34890 ac_status=$?
34891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34892 (exit $ac_status); }; } &&
34893 { ac_try='test -s conftest.$ac_objext'
34894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34895 (eval $ac_try) 2>&5
34896 ac_status=$?
34897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34898 (exit $ac_status); }; }; then
34899 ac_cv_type_mbstate_t=yes
34900else
34901 echo "$as_me: failed program was:" >&5
34902sed 's/^/| /' conftest.$ac_ext >&5
34903
34904ac_cv_type_mbstate_t=no
34905fi
34906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34907fi
34908echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34909echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34910if test $ac_cv_type_mbstate_t = yes; then
34911
34912cat >>confdefs.h <<_ACEOF
34913#define HAVE_MBSTATE_T 1
34914_ACEOF
34915
a848cd7e
SC
34916
34917for ac_func in wcsrtombs
34918do
34919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34920echo "$as_me:$LINENO: checking for $ac_func" >&5
34921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34922if eval "test \"\${$as_ac_var+set}\" = set"; then
34923 echo $ECHO_N "(cached) $ECHO_C" >&6
34924else
34925 cat >conftest.$ac_ext <<_ACEOF
34926/* confdefs.h. */
34927_ACEOF
34928cat confdefs.h >>conftest.$ac_ext
34929cat >>conftest.$ac_ext <<_ACEOF
34930/* end confdefs.h. */
ac1cb8d3
VS
34931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34933#define $ac_func innocuous_$ac_func
34934
a848cd7e
SC
34935/* System header to define __stub macros and hopefully few prototypes,
34936 which can conflict with char $ac_func (); below.
34937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34938 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34939
a848cd7e
SC
34940#ifdef __STDC__
34941# include <limits.h>
34942#else
34943# include <assert.h>
34944#endif
ac1cb8d3
VS
34945
34946#undef $ac_func
34947
a848cd7e
SC
34948/* Override any gcc2 internal prototype to avoid an error. */
34949#ifdef __cplusplus
34950extern "C"
34951{
34952#endif
34953/* We use char because int might match the return type of a gcc2
34954 builtin and then its argument prototype would still apply. */
34955char $ac_func ();
34956/* The GNU C library defines this for functions which it implements
34957 to always fail with ENOSYS. Some functions are actually named
34958 something starting with __ and the normal name is an alias. */
34959#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34960choke me
34961#else
34962char (*f) () = $ac_func;
34963#endif
34964#ifdef __cplusplus
34965}
34966#endif
34967
34968int
34969main ()
34970{
34971return f != $ac_func;
34972 ;
34973 return 0;
34974}
34975_ACEOF
34976rm -f conftest.$ac_objext conftest$ac_exeext
34977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34978 (eval $ac_link) 2>conftest.er1
a848cd7e 34979 ac_status=$?
ac1cb8d3
VS
34980 grep -v '^ *+' conftest.er1 >conftest.err
34981 rm -f conftest.er1
34982 cat conftest.err >&5
a848cd7e
SC
34983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984 (exit $ac_status); } &&
7067783d
PC
34985 { ac_try='test -z "$ac_cxx_werror_flag"
34986 || 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
35015fi
35016done
35017
efdf6afe
VZ
35018fi
35019
a848cd7e
SC
35020else
35021 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35022echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35023fi
35024
a848cd7e 35025
4a767dd5
VZ
35026
35027for ac_func in snprintf vsnprintf
a848cd7e
SC
35028do
35029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35030echo "$as_me:$LINENO: checking for $ac_func" >&5
35031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35032if eval "test \"\${$as_ac_var+set}\" = set"; then
35033 echo $ECHO_N "(cached) $ECHO_C" >&6
35034else
35035 cat >conftest.$ac_ext <<_ACEOF
35036/* confdefs.h. */
35037_ACEOF
35038cat confdefs.h >>conftest.$ac_ext
35039cat >>conftest.$ac_ext <<_ACEOF
35040/* end confdefs.h. */
ac1cb8d3
VS
35041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35043#define $ac_func innocuous_$ac_func
35044
a848cd7e
SC
35045/* System header to define __stub macros and hopefully few prototypes,
35046 which can conflict with char $ac_func (); below.
35047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35048 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35049
a848cd7e
SC
35050#ifdef __STDC__
35051# include <limits.h>
35052#else
35053# include <assert.h>
35054#endif
ac1cb8d3
VS
35055
35056#undef $ac_func
35057
a848cd7e
SC
35058/* Override any gcc2 internal prototype to avoid an error. */
35059#ifdef __cplusplus
35060extern "C"
35061{
35062#endif
35063/* We use char because int might match the return type of a gcc2
35064 builtin and then its argument prototype would still apply. */
35065char $ac_func ();
35066/* The GNU C library defines this for functions which it implements
35067 to always fail with ENOSYS. Some functions are actually named
35068 something starting with __ and the normal name is an alias. */
35069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35070choke me
35071#else
35072char (*f) () = $ac_func;
35073#endif
35074#ifdef __cplusplus
35075}
35076#endif
35077
35078int
35079main ()
35080{
35081return f != $ac_func;
35082 ;
35083 return 0;
35084}
35085_ACEOF
35086rm -f conftest.$ac_objext conftest$ac_exeext
35087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35088 (eval $ac_link) 2>conftest.er1
a848cd7e 35089 ac_status=$?
ac1cb8d3
VS
35090 grep -v '^ *+' conftest.er1 >conftest.err
35091 rm -f conftest.er1
35092 cat conftest.err >&5
a848cd7e
SC
35093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094 (exit $ac_status); } &&
7067783d
PC
35095 { ac_try='test -z "$ac_cxx_werror_flag"
35096 || test ! -s conftest.err'
ac1cb8d3
VS
35097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35098 (eval $ac_try) 2>&5
35099 ac_status=$?
35100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101 (exit $ac_status); }; } &&
35102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35104 (eval $ac_try) 2>&5
35105 ac_status=$?
35106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107 (exit $ac_status); }; }; then
35108 eval "$as_ac_var=yes"
35109else
35110 echo "$as_me: failed program was:" >&5
35111sed 's/^/| /' conftest.$ac_ext >&5
35112
35113eval "$as_ac_var=no"
35114fi
ac1cb8d3
VS
35115rm -f conftest.err conftest.$ac_objext \
35116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35117fi
35118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35119echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35120if test `eval echo '${'$as_ac_var'}'` = yes; then
35121 cat >>confdefs.h <<_ACEOF
35122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35123_ACEOF
35124
35125fi
35126done
35127
35128
35129if test "$ac_cv_func_vsnprintf" = "yes"; then
35130 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35131echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
35132if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35133 echo $ECHO_N "(cached) $ECHO_C" >&6
35134else
35135
efdf6afe 35136 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
35137/* confdefs.h. */
35138_ACEOF
35139cat confdefs.h >>conftest.$ac_ext
35140cat >>conftest.$ac_ext <<_ACEOF
35141/* end confdefs.h. */
35142
35143 #include <stdio.h>
35144 #include <stdarg.h>
efdf6afe
VZ
35145 #ifdef __MSL__
35146 #if __MSL__ >= 0x6000
35147 namespace std {}
35148 using namespace std;
35149 #endif
35150 #endif
a848cd7e
SC
35151
35152int
35153main ()
35154{
35155
35156 char *buf;
35157 va_list ap;
62fa8b3a 35158 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
35159
35160 ;
35161 return 0;
35162}
35163_ACEOF
35164rm -f conftest.$ac_objext
35165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35166 (eval $ac_compile) 2>conftest.er1
35167 ac_status=$?
35168 grep -v '^ *+' conftest.er1 >conftest.err
35169 rm -f conftest.er1
35170 cat conftest.err >&5
35171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172 (exit $ac_status); } &&
7067783d
PC
35173 { ac_try='test -z "$ac_cxx_werror_flag"
35174 || test ! -s conftest.err'
c122b164
DE
35175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176 (eval $ac_try) 2>&5
35177 ac_status=$?
35178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179 (exit $ac_status); }; } &&
35180 { ac_try='test -s conftest.$ac_objext'
35181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35182 (eval $ac_try) 2>&5
35183 ac_status=$?
35184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185 (exit $ac_status); }; }; then
35186 wx_cv_func_vsnprintf_decl=yes
35187else
35188 echo "$as_me: failed program was:" >&5
35189sed 's/^/| /' conftest.$ac_ext >&5
35190
a848cd7e
SC
35191wx_cv_func_vsnprintf_decl=no
35192
35193fi
ac1cb8d3 35194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35195
35196
35197fi
35198echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35199echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
35200
35201 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35202 cat >>confdefs.h <<\_ACEOF
35203#define HAVE_VSNPRINTF_DECL 1
35204_ACEOF
35205
62fa8b3a
MW
35206
35207 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35208echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
35209if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35210 echo $ECHO_N "(cached) $ECHO_C" >&6
35211else
35212
35213 cat >conftest.$ac_ext <<_ACEOF
35214/* confdefs.h. */
35215_ACEOF
35216cat confdefs.h >>conftest.$ac_ext
35217cat >>conftest.$ac_ext <<_ACEOF
35218/* end confdefs.h. */
35219
35220 #include <stdio.h>
35221 #include <stdarg.h>
35222 #ifdef __MSL__
35223 #if __MSL__ >= 0x6000
35224 namespace std {}
35225 using namespace std;
35226 #endif
35227 #endif
35228
35229int
35230main ()
35231{
35232
35233 char *buf;
35234 va_list ap;
35235 const char *fmt = "%s";
35236 vsnprintf(buf, 10u, fmt, ap);
35237
35238 ;
35239 return 0;
35240}
35241_ACEOF
35242rm -f conftest.$ac_objext
35243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35244 (eval $ac_compile) 2>conftest.er1
35245 ac_status=$?
35246 grep -v '^ *+' conftest.er1 >conftest.err
35247 rm -f conftest.er1
35248 cat conftest.err >&5
35249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250 (exit $ac_status); } &&
7067783d
PC
35251 { ac_try='test -z "$ac_cxx_werror_flag"
35252 || test ! -s conftest.err'
62fa8b3a
MW
35253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35254 (eval $ac_try) 2>&5
35255 ac_status=$?
35256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35257 (exit $ac_status); }; } &&
35258 { ac_try='test -s conftest.$ac_objext'
35259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35260 (eval $ac_try) 2>&5
35261 ac_status=$?
35262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35263 (exit $ac_status); }; }; then
35264 wx_cv_func_broken_vsnprintf_decl=no
35265else
35266 echo "$as_me: failed program was:" >&5
35267sed 's/^/| /' conftest.$ac_ext >&5
35268
35269wx_cv_func_broken_vsnprintf_decl=yes
35270
35271fi
35272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35273
35274
35275fi
35276echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35277echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35278
35279 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35280 cat >>confdefs.h <<\_ACEOF
35281#define HAVE_BROKEN_VSNPRINTF_DECL 1
35282_ACEOF
35283
35284 fi
a848cd7e
SC
35285 fi
35286fi
35287
4a767dd5
VZ
35288if test "$ac_cv_func_snprintf" = "yes"; then
35289 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35290echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35291if test "${wx_cv_func_snprintf_decl+set}" = set; then
35292 echo $ECHO_N "(cached) $ECHO_C" >&6
35293else
35294
35295 cat >conftest.$ac_ext <<_ACEOF
35296/* confdefs.h. */
35297_ACEOF
35298cat confdefs.h >>conftest.$ac_ext
35299cat >>conftest.$ac_ext <<_ACEOF
35300/* end confdefs.h. */
35301
35302 #include <stdio.h>
35303 #include <stdarg.h>
35304 #ifdef __MSL__
35305 #if __MSL__ >= 0x6000
35306 namespace std {}
35307 using namespace std;
35308 #endif
35309 #endif
35310
35311int
35312main ()
35313{
35314
35315 char *buf;
62fa8b3a 35316 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
35317
35318 ;
35319 return 0;
35320}
35321_ACEOF
35322rm -f conftest.$ac_objext
35323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35324 (eval $ac_compile) 2>conftest.er1
35325 ac_status=$?
35326 grep -v '^ *+' conftest.er1 >conftest.err
35327 rm -f conftest.er1
35328 cat conftest.err >&5
35329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330 (exit $ac_status); } &&
7067783d
PC
35331 { ac_try='test -z "$ac_cxx_werror_flag"
35332 || test ! -s conftest.err'
4a767dd5
VZ
35333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35334 (eval $ac_try) 2>&5
35335 ac_status=$?
35336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337 (exit $ac_status); }; } &&
35338 { ac_try='test -s conftest.$ac_objext'
35339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35340 (eval $ac_try) 2>&5
35341 ac_status=$?
35342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343 (exit $ac_status); }; }; then
35344 wx_cv_func_snprintf_decl=yes
35345else
35346 echo "$as_me: failed program was:" >&5
35347sed 's/^/| /' conftest.$ac_ext >&5
35348
35349wx_cv_func_snprintf_decl=no
35350
35351fi
35352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35353
35354
35355fi
35356echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35357echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35358
35359 if test "$wx_cv_func_snprintf_decl" = "yes"; then
35360 cat >>confdefs.h <<\_ACEOF
35361#define HAVE_SNPRINTF_DECL 1
35362_ACEOF
35363
62fa8b3a
MW
35364
35365 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35366echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35367if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35368 echo $ECHO_N "(cached) $ECHO_C" >&6
35369else
35370
35371 cat >conftest.$ac_ext <<_ACEOF
35372/* confdefs.h. */
35373_ACEOF
35374cat confdefs.h >>conftest.$ac_ext
35375cat >>conftest.$ac_ext <<_ACEOF
35376/* end confdefs.h. */
35377
35378 #include <stdio.h>
35379 #include <stdarg.h>
35380 #ifdef __MSL__
35381 #if __MSL__ >= 0x6000
35382 namespace std {}
35383 using namespace std;
35384 #endif
35385 #endif
35386
35387int
35388main ()
35389{
35390
35391 char *buf;
35392 const char *fmt = "%s";
35393 snprintf(buf, 10u, fmt, "wx");
35394
35395 ;
35396 return 0;
35397}
35398_ACEOF
35399rm -f conftest.$ac_objext
35400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35401 (eval $ac_compile) 2>conftest.er1
35402 ac_status=$?
35403 grep -v '^ *+' conftest.er1 >conftest.err
35404 rm -f conftest.er1
35405 cat conftest.err >&5
35406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407 (exit $ac_status); } &&
7067783d
PC
35408 { ac_try='test -z "$ac_cxx_werror_flag"
35409 || test ! -s conftest.err'
62fa8b3a
MW
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); }; } &&
35415 { ac_try='test -s conftest.$ac_objext'
35416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35417 (eval $ac_try) 2>&5
35418 ac_status=$?
35419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35420 (exit $ac_status); }; }; then
35421 wx_cv_func_broken_snprintf_decl=no
35422else
35423 echo "$as_me: failed program was:" >&5
35424sed 's/^/| /' conftest.$ac_ext >&5
35425
35426wx_cv_func_broken_snprintf_decl=yes
35427
35428fi
35429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35430
35431
35432fi
35433echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35434echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35435
35436 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35437 cat >>confdefs.h <<\_ACEOF
35438#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35439_ACEOF
35440
35441 fi
35442 fi
35443
35444 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35445
35446 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35447echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35448if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35449 echo $ECHO_N "(cached) $ECHO_C" >&6
35450else
35451
35452 if test "$cross_compiling" = yes; then
5039a2df
VZ
35453
35454 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35455define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35456echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35457define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35458 wx_cv_func_snprintf_pos_params=no
35459
35460
8b6682b9
JS
35461else
35462 cat >conftest.$ac_ext <<_ACEOF
35463/* confdefs.h. */
35464_ACEOF
35465cat confdefs.h >>conftest.$ac_ext
35466cat >>conftest.$ac_ext <<_ACEOF
35467/* end confdefs.h. */
35468
35469 #include <stdio.h>
35470
35471 int main (void)
35472 {
35473 char buffer[128];
35474 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35475 if (strcmp ("2 3 1", buffer) == 0)
35476 exit (0);
35477 exit (1);
35478 }
35479
35480_ACEOF
35481rm -f conftest$ac_exeext
35482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35483 (eval $ac_link) 2>&5
35484 ac_status=$?
35485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35488 (eval $ac_try) 2>&5
35489 ac_status=$?
35490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491 (exit $ac_status); }; }; then
35492 wx_cv_func_snprintf_pos_params=no
35493else
35494 echo "$as_me: program exited with status $ac_status" >&5
35495echo "$as_me: failed program was:" >&5
35496sed 's/^/| /' conftest.$ac_ext >&5
35497
35498( exit $ac_status )
35499wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
35500fi
35501rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35502fi
35503
35504
35505fi
35506echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35507echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35508
35509 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35510 cat >>confdefs.h <<\_ACEOF
35511#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35512_ACEOF
35513
35514 fi
4a767dd5
VZ
35515 fi
35516fi
35517
a848cd7e
SC
35518if test "$wxUSE_UNICODE" = yes; then
35519
35520
6a5c9b3f
RR
35521for ac_func in swprintf
35522do
35523as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35524echo "$as_me:$LINENO: checking for $ac_func" >&5
35525echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35526if eval "test \"\${$as_ac_var+set}\" = set"; then
35527 echo $ECHO_N "(cached) $ECHO_C" >&6
35528else
35529 cat >conftest.$ac_ext <<_ACEOF
35530/* confdefs.h. */
35531_ACEOF
35532cat confdefs.h >>conftest.$ac_ext
35533cat >>conftest.$ac_ext <<_ACEOF
35534/* end confdefs.h. */
35535/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35537#define $ac_func innocuous_$ac_func
35538
35539/* System header to define __stub macros and hopefully few prototypes,
35540 which can conflict with char $ac_func (); below.
35541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35542 <limits.h> exists even on freestanding compilers. */
35543
35544#ifdef __STDC__
35545# include <limits.h>
35546#else
35547# include <assert.h>
35548#endif
35549
35550#undef $ac_func
35551
35552/* Override any gcc2 internal prototype to avoid an error. */
35553#ifdef __cplusplus
35554extern "C"
35555{
35556#endif
35557/* We use char because int might match the return type of a gcc2
35558 builtin and then its argument prototype would still apply. */
35559char $ac_func ();
35560/* The GNU C library defines this for functions which it implements
35561 to always fail with ENOSYS. Some functions are actually named
35562 something starting with __ and the normal name is an alias. */
35563#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35564choke me
35565#else
35566char (*f) () = $ac_func;
35567#endif
35568#ifdef __cplusplus
35569}
35570#endif
35571
35572int
35573main ()
35574{
35575return f != $ac_func;
35576 ;
35577 return 0;
35578}
35579_ACEOF
35580rm -f conftest.$ac_objext conftest$ac_exeext
35581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35582 (eval $ac_link) 2>conftest.er1
35583 ac_status=$?
35584 grep -v '^ *+' conftest.er1 >conftest.err
35585 rm -f conftest.er1
35586 cat conftest.err >&5
35587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588 (exit $ac_status); } &&
7067783d
PC
35589 { ac_try='test -z "$ac_cxx_werror_flag"
35590 || test ! -s conftest.err'
6a5c9b3f
RR
35591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35592 (eval $ac_try) 2>&5
35593 ac_status=$?
35594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595 (exit $ac_status); }; } &&
35596 { ac_try='test -s conftest$ac_exeext'
35597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35598 (eval $ac_try) 2>&5
35599 ac_status=$?
35600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601 (exit $ac_status); }; }; then
35602 eval "$as_ac_var=yes"
35603else
35604 echo "$as_me: failed program was:" >&5
35605sed 's/^/| /' conftest.$ac_ext >&5
35606
35607eval "$as_ac_var=no"
35608fi
35609rm -f conftest.err conftest.$ac_objext \
35610 conftest$ac_exeext conftest.$ac_ext
35611fi
35612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35613echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35614if test `eval echo '${'$as_ac_var'}'` = yes; then
35615 cat >>confdefs.h <<_ACEOF
35616#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35617_ACEOF
35618
35619fi
35620done
35621
35622
35623 if test "$ac_cv_func_swprintf" = "yes"; then
35624 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35625echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35626if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35627 echo $ECHO_N "(cached) $ECHO_C" >&6
35628else
35629
35630 cat >conftest.$ac_ext <<_ACEOF
35631/* confdefs.h. */
35632_ACEOF
35633cat confdefs.h >>conftest.$ac_ext
35634cat >>conftest.$ac_ext <<_ACEOF
35635/* end confdefs.h. */
35636
35637 #include <stdio.h>
35638 #include <stdarg.h>
35639 #include <wchar.h>
35640
35641int
35642main ()
35643{
35644
35645 wchar_t *buf;
35646 const wchar_t *fmt = L"test";
35647 swprintf(buf, 10u, fmt);
35648
35649 ;
35650 return 0;
35651}
35652_ACEOF
35653rm -f conftest.$ac_objext
35654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35655 (eval $ac_compile) 2>conftest.er1
35656 ac_status=$?
35657 grep -v '^ *+' conftest.er1 >conftest.err
35658 rm -f conftest.er1
35659 cat conftest.err >&5
35660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661 (exit $ac_status); } &&
7067783d
PC
35662 { ac_try='test -z "$ac_cxx_werror_flag"
35663 || test ! -s conftest.err'
6a5c9b3f
RR
35664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35665 (eval $ac_try) 2>&5
35666 ac_status=$?
35667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35668 (exit $ac_status); }; } &&
35669 { ac_try='test -s conftest.$ac_objext'
35670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35671 (eval $ac_try) 2>&5
35672 ac_status=$?
35673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35674 (exit $ac_status); }; }; then
35675 wx_cv_func_broken_swprintf_decl=no
35676else
35677 echo "$as_me: failed program was:" >&5
35678sed 's/^/| /' conftest.$ac_ext >&5
35679
35680wx_cv_func_broken_swprintf_decl=yes
35681
35682fi
35683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35684
35685
35686fi
35687echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35688echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35689
35690 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35691 cat >>confdefs.h <<\_ACEOF
35692#define HAVE_BROKEN_SWPRINTF_DECL 1
35693_ACEOF
35694
35695 fi
35696 fi
35697
35698
35699
a848cd7e 35700
fbe47c7b
VS
35701
35702
35703
35704for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
35705do
35706as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35707echo "$as_me:$LINENO: checking for $ac_func" >&5
35708echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35709if eval "test \"\${$as_ac_var+set}\" = set"; then
35710 echo $ECHO_N "(cached) $ECHO_C" >&6
35711else
35712 cat >conftest.$ac_ext <<_ACEOF
35713/* confdefs.h. */
35714_ACEOF
35715cat confdefs.h >>conftest.$ac_ext
35716cat >>conftest.$ac_ext <<_ACEOF
35717/* end confdefs.h. */
ac1cb8d3
VS
35718/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35720#define $ac_func innocuous_$ac_func
35721
a848cd7e
SC
35722/* System header to define __stub macros and hopefully few prototypes,
35723 which can conflict with char $ac_func (); below.
35724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35725 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35726
a848cd7e
SC
35727#ifdef __STDC__
35728# include <limits.h>
35729#else
35730# include <assert.h>
35731#endif
ac1cb8d3
VS
35732
35733#undef $ac_func
35734
a848cd7e
SC
35735/* Override any gcc2 internal prototype to avoid an error. */
35736#ifdef __cplusplus
35737extern "C"
35738{
35739#endif
35740/* We use char because int might match the return type of a gcc2
35741 builtin and then its argument prototype would still apply. */
35742char $ac_func ();
35743/* The GNU C library defines this for functions which it implements
35744 to always fail with ENOSYS. Some functions are actually named
35745 something starting with __ and the normal name is an alias. */
35746#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35747choke me
35748#else
35749char (*f) () = $ac_func;
35750#endif
35751#ifdef __cplusplus
35752}
35753#endif
35754
35755int
35756main ()
35757{
35758return f != $ac_func;
35759 ;
35760 return 0;
35761}
35762_ACEOF
35763rm -f conftest.$ac_objext conftest$ac_exeext
35764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35765 (eval $ac_link) 2>conftest.er1
a848cd7e 35766 ac_status=$?
ac1cb8d3
VS
35767 grep -v '^ *+' conftest.er1 >conftest.err
35768 rm -f conftest.er1
35769 cat conftest.err >&5
a848cd7e
SC
35770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771 (exit $ac_status); } &&
7067783d
PC
35772 { ac_try='test -z "$ac_cxx_werror_flag"
35773 || test ! -s conftest.err'
ac1cb8d3
VS
35774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35775 (eval $ac_try) 2>&5
35776 ac_status=$?
35777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778 (exit $ac_status); }; } &&
35779 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35781 (eval $ac_try) 2>&5
35782 ac_status=$?
35783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35784 (exit $ac_status); }; }; then
35785 eval "$as_ac_var=yes"
35786else
35787 echo "$as_me: failed program was:" >&5
35788sed 's/^/| /' conftest.$ac_ext >&5
35789
35790eval "$as_ac_var=no"
35791fi
ac1cb8d3
VS
35792rm -f conftest.err conftest.$ac_objext \
35793 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35794fi
35795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35796echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35797if test `eval echo '${'$as_ac_var'}'` = yes; then
35798 cat >>confdefs.h <<_ACEOF
35799#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35800_ACEOF
35801
35802fi
35803done
35804
35805
35806 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35807echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35808 cat >conftest.$ac_ext <<_ACEOF
35809/* confdefs.h. */
35810_ACEOF
35811cat confdefs.h >>conftest.$ac_ext
35812cat >>conftest.$ac_ext <<_ACEOF
35813/* end confdefs.h. */
35814#include <wchar.h>
35815int
35816main ()
35817{
35818&_vsnwprintf;
35819 ;
35820 return 0;
35821}
35822_ACEOF
35823rm -f conftest.$ac_objext
35824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35825 (eval $ac_compile) 2>conftest.er1
a848cd7e 35826 ac_status=$?
ac1cb8d3
VS
35827 grep -v '^ *+' conftest.er1 >conftest.err
35828 rm -f conftest.er1
35829 cat conftest.err >&5
a848cd7e
SC
35830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35831 (exit $ac_status); } &&
7067783d
PC
35832 { ac_try='test -z "$ac_cxx_werror_flag"
35833 || test ! -s conftest.err'
ac1cb8d3
VS
35834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35835 (eval $ac_try) 2>&5
35836 ac_status=$?
35837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35838 (exit $ac_status); }; } &&
35839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35841 (eval $ac_try) 2>&5
35842 ac_status=$?
35843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35844 (exit $ac_status); }; }; then
35845 echo "$as_me:$LINENO: result: yes" >&5
35846echo "${ECHO_T}yes" >&6
35847 cat >>confdefs.h <<\_ACEOF
35848#define HAVE__VSNWPRINTF 1
35849_ACEOF
35850
35851else
35852 echo "$as_me: failed program was:" >&5
35853sed 's/^/| /' conftest.$ac_ext >&5
35854
35855echo "$as_me:$LINENO: result: no" >&5
35856echo "${ECHO_T}no" >&6
35857fi
ac1cb8d3 35858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
35859fi
35860
6ebeb4c7
VZ
35861if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35862
35863for ac_func in fnmatch
35864do
35865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35866echo "$as_me:$LINENO: checking for $ac_func" >&5
35867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35868if eval "test \"\${$as_ac_var+set}\" = set"; then
35869 echo $ECHO_N "(cached) $ECHO_C" >&6
35870else
35871 cat >conftest.$ac_ext <<_ACEOF
35872/* confdefs.h. */
35873_ACEOF
35874cat confdefs.h >>conftest.$ac_ext
35875cat >>conftest.$ac_ext <<_ACEOF
35876/* end confdefs.h. */
35877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35879#define $ac_func innocuous_$ac_func
35880
35881/* System header to define __stub macros and hopefully few prototypes,
35882 which can conflict with char $ac_func (); below.
35883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35884 <limits.h> exists even on freestanding compilers. */
35885
35886#ifdef __STDC__
35887# include <limits.h>
35888#else
35889# include <assert.h>
35890#endif
35891
35892#undef $ac_func
35893
35894/* Override any gcc2 internal prototype to avoid an error. */
35895#ifdef __cplusplus
35896extern "C"
35897{
35898#endif
35899/* We use char because int might match the return type of a gcc2
35900 builtin and then its argument prototype would still apply. */
35901char $ac_func ();
35902/* The GNU C library defines this for functions which it implements
35903 to always fail with ENOSYS. Some functions are actually named
35904 something starting with __ and the normal name is an alias. */
35905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35906choke me
35907#else
35908char (*f) () = $ac_func;
35909#endif
35910#ifdef __cplusplus
35911}
35912#endif
35913
35914int
35915main ()
35916{
35917return f != $ac_func;
35918 ;
35919 return 0;
35920}
35921_ACEOF
35922rm -f conftest.$ac_objext conftest$ac_exeext
35923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35924 (eval $ac_link) 2>conftest.er1
35925 ac_status=$?
35926 grep -v '^ *+' conftest.er1 >conftest.err
35927 rm -f conftest.er1
35928 cat conftest.err >&5
35929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35930 (exit $ac_status); } &&
7067783d
PC
35931 { ac_try='test -z "$ac_cxx_werror_flag"
35932 || test ! -s conftest.err'
6ebeb4c7
VZ
35933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35934 (eval $ac_try) 2>&5
35935 ac_status=$?
35936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); }; } &&
35938 { ac_try='test -s conftest$ac_exeext'
35939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35940 (eval $ac_try) 2>&5
35941 ac_status=$?
35942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35943 (exit $ac_status); }; }; then
35944 eval "$as_ac_var=yes"
35945else
35946 echo "$as_me: failed program was:" >&5
35947sed 's/^/| /' conftest.$ac_ext >&5
35948
35949eval "$as_ac_var=no"
35950fi
35951rm -f conftest.err conftest.$ac_objext \
35952 conftest$ac_exeext conftest.$ac_ext
35953fi
35954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35955echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35956if test `eval echo '${'$as_ac_var'}'` = yes; then
35957 cat >>confdefs.h <<_ACEOF
35958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35959_ACEOF
35960
35961fi
35962done
35963
35964fi
35965
35966if test "$wxUSE_FILE" = "yes"; then
35967
35968for ac_func in fsync
35969do
35970as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35971echo "$as_me:$LINENO: checking for $ac_func" >&5
35972echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35973if eval "test \"\${$as_ac_var+set}\" = set"; then
35974 echo $ECHO_N "(cached) $ECHO_C" >&6
35975else
35976 cat >conftest.$ac_ext <<_ACEOF
35977/* confdefs.h. */
35978_ACEOF
35979cat confdefs.h >>conftest.$ac_ext
35980cat >>conftest.$ac_ext <<_ACEOF
35981/* end confdefs.h. */
35982/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35984#define $ac_func innocuous_$ac_func
35985
35986/* System header to define __stub macros and hopefully few prototypes,
35987 which can conflict with char $ac_func (); below.
35988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35989 <limits.h> exists even on freestanding compilers. */
35990
35991#ifdef __STDC__
35992# include <limits.h>
35993#else
35994# include <assert.h>
35995#endif
35996
35997#undef $ac_func
35998
35999/* Override any gcc2 internal prototype to avoid an error. */
36000#ifdef __cplusplus
36001extern "C"
36002{
36003#endif
36004/* We use char because int might match the return type of a gcc2
36005 builtin and then its argument prototype would still apply. */
36006char $ac_func ();
36007/* The GNU C library defines this for functions which it implements
36008 to always fail with ENOSYS. Some functions are actually named
36009 something starting with __ and the normal name is an alias. */
36010#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36011choke me
36012#else
36013char (*f) () = $ac_func;
36014#endif
36015#ifdef __cplusplus
36016}
36017#endif
36018
36019int
36020main ()
36021{
36022return f != $ac_func;
36023 ;
36024 return 0;
36025}
36026_ACEOF
36027rm -f conftest.$ac_objext conftest$ac_exeext
36028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36029 (eval $ac_link) 2>conftest.er1
36030 ac_status=$?
36031 grep -v '^ *+' conftest.er1 >conftest.err
36032 rm -f conftest.er1
36033 cat conftest.err >&5
36034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035 (exit $ac_status); } &&
7067783d
PC
36036 { ac_try='test -z "$ac_cxx_werror_flag"
36037 || test ! -s conftest.err'
6ebeb4c7
VZ
36038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36039 (eval $ac_try) 2>&5
36040 ac_status=$?
36041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36042 (exit $ac_status); }; } &&
36043 { ac_try='test -s conftest$ac_exeext'
36044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36045 (eval $ac_try) 2>&5
36046 ac_status=$?
36047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36048 (exit $ac_status); }; }; then
36049 eval "$as_ac_var=yes"
36050else
36051 echo "$as_me: failed program was:" >&5
36052sed 's/^/| /' conftest.$ac_ext >&5
36053
36054eval "$as_ac_var=no"
36055fi
36056rm -f conftest.err conftest.$ac_objext \
36057 conftest$ac_exeext conftest.$ac_ext
36058fi
36059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36060echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36061if test `eval echo '${'$as_ac_var'}'` = yes; then
36062 cat >>confdefs.h <<_ACEOF
36063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36064_ACEOF
36065
36066fi
36067done
36068
36069fi
a848cd7e
SC
36070
36071
c2e9ada4
VZ
36072for ac_func in round
36073do
36074as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36075echo "$as_me:$LINENO: checking for $ac_func" >&5
36076echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36077if eval "test \"\${$as_ac_var+set}\" = set"; then
36078 echo $ECHO_N "(cached) $ECHO_C" >&6
36079else
36080 cat >conftest.$ac_ext <<_ACEOF
36081/* confdefs.h. */
36082_ACEOF
36083cat confdefs.h >>conftest.$ac_ext
36084cat >>conftest.$ac_ext <<_ACEOF
36085/* end confdefs.h. */
36086/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36088#define $ac_func innocuous_$ac_func
36089
36090/* System header to define __stub macros and hopefully few prototypes,
36091 which can conflict with char $ac_func (); below.
36092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36093 <limits.h> exists even on freestanding compilers. */
36094
36095#ifdef __STDC__
36096# include <limits.h>
36097#else
36098# include <assert.h>
36099#endif
36100
36101#undef $ac_func
36102
36103/* Override any gcc2 internal prototype to avoid an error. */
36104#ifdef __cplusplus
36105extern "C"
36106{
36107#endif
36108/* We use char because int might match the return type of a gcc2
36109 builtin and then its argument prototype would still apply. */
36110char $ac_func ();
36111/* The GNU C library defines this for functions which it implements
36112 to always fail with ENOSYS. Some functions are actually named
36113 something starting with __ and the normal name is an alias. */
36114#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36115choke me
36116#else
36117char (*f) () = $ac_func;
36118#endif
36119#ifdef __cplusplus
36120}
36121#endif
36122
36123int
36124main ()
36125{
36126return f != $ac_func;
36127 ;
36128 return 0;
36129}
36130_ACEOF
36131rm -f conftest.$ac_objext conftest$ac_exeext
36132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36133 (eval $ac_link) 2>conftest.er1
36134 ac_status=$?
36135 grep -v '^ *+' conftest.er1 >conftest.err
36136 rm -f conftest.er1
36137 cat conftest.err >&5
36138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139 (exit $ac_status); } &&
7067783d
PC
36140 { ac_try='test -z "$ac_cxx_werror_flag"
36141 || test ! -s conftest.err'
c2e9ada4
VZ
36142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36143 (eval $ac_try) 2>&5
36144 ac_status=$?
36145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36146 (exit $ac_status); }; } &&
36147 { ac_try='test -s conftest$ac_exeext'
36148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36149 (eval $ac_try) 2>&5
36150 ac_status=$?
36151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152 (exit $ac_status); }; }; then
36153 eval "$as_ac_var=yes"
36154else
36155 echo "$as_me: failed program was:" >&5
36156sed 's/^/| /' conftest.$ac_ext >&5
36157
36158eval "$as_ac_var=no"
36159fi
36160rm -f conftest.err conftest.$ac_objext \
36161 conftest$ac_exeext conftest.$ac_ext
36162fi
36163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36164echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36165if test `eval echo '${'$as_ac_var'}'` = yes; then
36166 cat >>confdefs.h <<_ACEOF
36167#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36168_ACEOF
36169
36170fi
36171done
36172
36173if test "$ac_cv_func_round" = yes; then
36174 echo "$as_me:$LINENO: checking whether round is declared" >&5
36175echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
36176if test "${ac_cv_have_decl_round+set}" = set; then
36177 echo $ECHO_N "(cached) $ECHO_C" >&6
36178else
36179 cat >conftest.$ac_ext <<_ACEOF
36180/* confdefs.h. */
36181_ACEOF
36182cat confdefs.h >>conftest.$ac_ext
36183cat >>conftest.$ac_ext <<_ACEOF
36184/* end confdefs.h. */
36185#include <math.h>
36186
36187int
36188main ()
36189{
36190#ifndef round
36191 char *p = (char *) round;
36192#endif
36193
36194 ;
36195 return 0;
36196}
36197_ACEOF
36198rm -f conftest.$ac_objext
36199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36200 (eval $ac_compile) 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); } &&
7067783d
PC
36207 { ac_try='test -z "$ac_cxx_werror_flag"
36208 || test ! -s conftest.err'
c2e9ada4
VZ
36209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36210 (eval $ac_try) 2>&5
36211 ac_status=$?
36212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36213 (exit $ac_status); }; } &&
36214 { ac_try='test -s conftest.$ac_objext'
36215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36216 (eval $ac_try) 2>&5
36217 ac_status=$?
36218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36219 (exit $ac_status); }; }; then
36220 ac_cv_have_decl_round=yes
36221else
36222 echo "$as_me: failed program was:" >&5
36223sed 's/^/| /' conftest.$ac_ext >&5
36224
36225ac_cv_have_decl_round=no
36226fi
36227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36228fi
36229echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
36230echo "${ECHO_T}$ac_cv_have_decl_round" >&6
36231if test $ac_cv_have_decl_round = yes; then
36232
36233cat >>confdefs.h <<_ACEOF
36234#define HAVE_DECL_ROUND 1
36235_ACEOF
36236
36237
36238else
36239 cat >>confdefs.h <<_ACEOF
36240#define HAVE_DECL_ROUND 0
36241_ACEOF
36242
36243
36244fi
36245
36246
36247fi
36248
36249
a848cd7e
SC
36250if test "$TOOLKIT" != "MSW"; then
36251
36252
a848cd7e
SC
36253
36254
36255
36256# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36257if test "${with_libiconv_prefix+set}" = set; then
36258 withval="$with_libiconv_prefix"
36259
36260 for dir in `echo "$withval" | tr : ' '`; do
36261 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36262 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36263 done
36264
36265fi;
36266
36267 echo "$as_me:$LINENO: checking for iconv" >&5
36268echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36269if test "${am_cv_func_iconv+set}" = set; then
36270 echo $ECHO_N "(cached) $ECHO_C" >&6
36271else
36272
36273 am_cv_func_iconv="no, consider installing GNU libiconv"
36274 am_cv_lib_iconv=no
36275 cat >conftest.$ac_ext <<_ACEOF
36276/* confdefs.h. */
36277_ACEOF
36278cat confdefs.h >>conftest.$ac_ext
36279cat >>conftest.$ac_ext <<_ACEOF
36280/* end confdefs.h. */
36281#include <stdlib.h>
36282#include <iconv.h>
36283int
36284main ()
36285{
36286iconv_t cd = iconv_open("","");
36287 iconv(cd,NULL,NULL,NULL,NULL);
36288 iconv_close(cd);
36289 ;
36290 return 0;
36291}
36292_ACEOF
36293rm -f conftest.$ac_objext conftest$ac_exeext
36294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36295 (eval $ac_link) 2>conftest.er1
a848cd7e 36296 ac_status=$?
ac1cb8d3
VS
36297 grep -v '^ *+' conftest.er1 >conftest.err
36298 rm -f conftest.er1
36299 cat conftest.err >&5
a848cd7e
SC
36300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36301 (exit $ac_status); } &&
7067783d
PC
36302 { ac_try='test -z "$ac_cxx_werror_flag"
36303 || test ! -s conftest.err'
ac1cb8d3
VS
36304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36305 (eval $ac_try) 2>&5
36306 ac_status=$?
36307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308 (exit $ac_status); }; } &&
36309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36311 (eval $ac_try) 2>&5
36312 ac_status=$?
36313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314 (exit $ac_status); }; }; then
36315 am_cv_func_iconv=yes
36316else
36317 echo "$as_me: failed program was:" >&5
36318sed 's/^/| /' conftest.$ac_ext >&5
36319
36320fi
ac1cb8d3
VS
36321rm -f conftest.err conftest.$ac_objext \
36322 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36323 if test "$am_cv_func_iconv" != yes; then
36324 am_save_LIBS="$LIBS"
36325 LIBS="$LIBS -liconv"
36326 cat >conftest.$ac_ext <<_ACEOF
36327/* confdefs.h. */
36328_ACEOF
36329cat confdefs.h >>conftest.$ac_ext
36330cat >>conftest.$ac_ext <<_ACEOF
36331/* end confdefs.h. */
36332#include <stdlib.h>
36333#include <iconv.h>
36334int
36335main ()
36336{
36337iconv_t cd = iconv_open("","");
36338 iconv(cd,NULL,NULL,NULL,NULL);
36339 iconv_close(cd);
36340 ;
36341 return 0;
36342}
36343_ACEOF
36344rm -f conftest.$ac_objext conftest$ac_exeext
36345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36346 (eval $ac_link) 2>conftest.er1
a848cd7e 36347 ac_status=$?
ac1cb8d3
VS
36348 grep -v '^ *+' conftest.er1 >conftest.err
36349 rm -f conftest.er1
36350 cat conftest.err >&5
a848cd7e
SC
36351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36352 (exit $ac_status); } &&
7067783d
PC
36353 { ac_try='test -z "$ac_cxx_werror_flag"
36354 || test ! -s conftest.err'
ac1cb8d3
VS
36355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36356 (eval $ac_try) 2>&5
36357 ac_status=$?
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); }; } &&
36360 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362 (eval $ac_try) 2>&5
36363 ac_status=$?
36364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365 (exit $ac_status); }; }; then
36366 am_cv_lib_iconv=yes
36367 am_cv_func_iconv=yes
36368else
36369 echo "$as_me: failed program was:" >&5
36370sed 's/^/| /' conftest.$ac_ext >&5
36371
36372fi
ac1cb8d3
VS
36373rm -f conftest.err conftest.$ac_objext \
36374 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36375 LIBS="$am_save_LIBS"
36376 fi
36377
36378fi
36379echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36380echo "${ECHO_T}$am_cv_func_iconv" >&6
36381 if test "$am_cv_func_iconv" = yes; then
36382
36383cat >>confdefs.h <<\_ACEOF
36384#define HAVE_ICONV 1
36385_ACEOF
36386
36387 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36388echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36389if test "${wx_cv_func_iconv_const+set}" = set; then
36390 echo $ECHO_N "(cached) $ECHO_C" >&6
36391else
36392 cat >conftest.$ac_ext <<_ACEOF
36393/* confdefs.h. */
36394_ACEOF
36395cat confdefs.h >>conftest.$ac_ext
36396cat >>conftest.$ac_ext <<_ACEOF
36397/* end confdefs.h. */
36398
36399#include <stdlib.h>
36400#include <iconv.h>
36401extern
36402#ifdef __cplusplus
36403"C"
36404#endif
36405#if defined(__STDC__) || defined(__cplusplus)
36406size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36407#else
36408size_t iconv();
36409#endif
36410
36411int
36412main ()
36413{
36414
36415 ;
36416 return 0;
36417}
36418_ACEOF
36419rm -f conftest.$ac_objext
36420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36421 (eval $ac_compile) 2>conftest.er1
a848cd7e 36422 ac_status=$?
ac1cb8d3
VS
36423 grep -v '^ *+' conftest.er1 >conftest.err
36424 rm -f conftest.er1
36425 cat conftest.err >&5
a848cd7e
SC
36426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36427 (exit $ac_status); } &&
7067783d
PC
36428 { ac_try='test -z "$ac_cxx_werror_flag"
36429 || test ! -s conftest.err'
ac1cb8d3
VS
36430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36431 (eval $ac_try) 2>&5
36432 ac_status=$?
36433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36434 (exit $ac_status); }; } &&
36435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36437 (eval $ac_try) 2>&5
36438 ac_status=$?
36439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440 (exit $ac_status); }; }; then
36441 wx_cv_func_iconv_const="no"
36442else
36443 echo "$as_me: failed program was:" >&5
36444sed 's/^/| /' conftest.$ac_ext >&5
36445
36446wx_cv_func_iconv_const="yes"
36447
36448fi
ac1cb8d3 36449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36450
36451fi
36452echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36453echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36454
36455 iconv_const=
36456 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36457 iconv_const="const"
36458 fi
36459
36460
36461cat >>confdefs.h <<_ACEOF
36462#define ICONV_CONST $iconv_const
36463_ACEOF
36464
36465 fi
36466 LIBICONV=
36467 if test "$am_cv_lib_iconv" = yes; then
36468 LIBICONV="-liconv"
36469 fi
36470
36471
36472LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36473
36474if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36475
36476for ac_func in sigaction
36477do
36478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36479echo "$as_me:$LINENO: checking for $ac_func" >&5
36480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36481if eval "test \"\${$as_ac_var+set}\" = set"; then
36482 echo $ECHO_N "(cached) $ECHO_C" >&6
36483else
36484 cat >conftest.$ac_ext <<_ACEOF
36485/* confdefs.h. */
36486_ACEOF
36487cat confdefs.h >>conftest.$ac_ext
36488cat >>conftest.$ac_ext <<_ACEOF
36489/* end confdefs.h. */
ac1cb8d3
VS
36490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36492#define $ac_func innocuous_$ac_func
36493
a848cd7e
SC
36494/* System header to define __stub macros and hopefully few prototypes,
36495 which can conflict with char $ac_func (); below.
36496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36497 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36498
a848cd7e
SC
36499#ifdef __STDC__
36500# include <limits.h>
36501#else
36502# include <assert.h>
36503#endif
ac1cb8d3
VS
36504
36505#undef $ac_func
36506
a848cd7e
SC
36507/* Override any gcc2 internal prototype to avoid an error. */
36508#ifdef __cplusplus
36509extern "C"
36510{
36511#endif
36512/* We use char because int might match the return type of a gcc2
36513 builtin and then its argument prototype would still apply. */
36514char $ac_func ();
36515/* The GNU C library defines this for functions which it implements
36516 to always fail with ENOSYS. Some functions are actually named
36517 something starting with __ and the normal name is an alias. */
36518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36519choke me
36520#else
36521char (*f) () = $ac_func;
36522#endif
36523#ifdef __cplusplus
36524}
36525#endif
36526
36527int
36528main ()
36529{
36530return f != $ac_func;
36531 ;
36532 return 0;
36533}
36534_ACEOF
36535rm -f conftest.$ac_objext conftest$ac_exeext
36536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36537 (eval $ac_link) 2>conftest.er1
a848cd7e 36538 ac_status=$?
ac1cb8d3
VS
36539 grep -v '^ *+' conftest.er1 >conftest.err
36540 rm -f conftest.er1
36541 cat conftest.err >&5
a848cd7e
SC
36542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36543 (exit $ac_status); } &&
7067783d
PC
36544 { ac_try='test -z "$ac_cxx_werror_flag"
36545 || test ! -s conftest.err'
ac1cb8d3
VS
36546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36547 (eval $ac_try) 2>&5
36548 ac_status=$?
36549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36550 (exit $ac_status); }; } &&
36551 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36553 (eval $ac_try) 2>&5
36554 ac_status=$?
36555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556 (exit $ac_status); }; }; then
36557 eval "$as_ac_var=yes"
36558else
36559 echo "$as_me: failed program was:" >&5
36560sed 's/^/| /' conftest.$ac_ext >&5
36561
36562eval "$as_ac_var=no"
36563fi
ac1cb8d3
VS
36564rm -f conftest.err conftest.$ac_objext \
36565 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36566fi
36567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36568echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36569if test `eval echo '${'$as_ac_var'}'` = yes; then
36570 cat >>confdefs.h <<_ACEOF
36571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36572_ACEOF
36573
36574fi
36575done
36576
36577
36578 if test "$ac_cv_func_sigaction" = "no"; then
36579 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36580echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36581 wxUSE_ON_FATAL_EXCEPTION=no
36582 fi
36583
36584 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
36585 echo "$as_me:$LINENO: checking for sa_handler type" >&5
36586echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36587if test "${wx_cv_type_sa_handler+set}" = set; then
36588 echo $ECHO_N "(cached) $ECHO_C" >&6
36589else
36590
36591 cat >conftest.$ac_ext <<_ACEOF
36592/* confdefs.h. */
36593_ACEOF
36594cat confdefs.h >>conftest.$ac_ext
36595cat >>conftest.$ac_ext <<_ACEOF
36596/* end confdefs.h. */
36597#include <signal.h>
36598int
36599main ()
36600{
36601
36602 extern void testSigHandler(int);
36603
36604 struct sigaction sa;
36605 sa.sa_handler = testSigHandler;
36606
36607 ;
36608 return 0;
36609}
36610_ACEOF
36611rm -f conftest.$ac_objext
36612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36613 (eval $ac_compile) 2>conftest.er1
a848cd7e 36614 ac_status=$?
ac1cb8d3
VS
36615 grep -v '^ *+' conftest.er1 >conftest.err
36616 rm -f conftest.er1
36617 cat conftest.err >&5
a848cd7e
SC
36618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36619 (exit $ac_status); } &&
7067783d
PC
36620 { ac_try='test -z "$ac_cxx_werror_flag"
36621 || test ! -s conftest.err'
ac1cb8d3
VS
36622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36623 (eval $ac_try) 2>&5
36624 ac_status=$?
36625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36626 (exit $ac_status); }; } &&
36627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36629 (eval $ac_try) 2>&5
36630 ac_status=$?
36631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36632 (exit $ac_status); }; }; then
36633
36634 wx_cv_type_sa_handler=int
36635
36636else
36637 echo "$as_me: failed program was:" >&5
36638sed 's/^/| /' conftest.$ac_ext >&5
36639
36640
36641 wx_cv_type_sa_handler=void
36642
36643fi
ac1cb8d3 36644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36645
36646fi
36647echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36648echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36649
a848cd7e
SC
36650 cat >>confdefs.h <<_ACEOF
36651#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36652_ACEOF
36653
36654 fi
36655fi
36656
eaff0f0d 36657if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
36658 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36659echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36660if test "${wx_cv_func_backtrace+set}" = set; then
36661 echo $ECHO_N "(cached) $ECHO_C" >&6
36662else
36663
36664 cat >conftest.$ac_ext <<_ACEOF
36665/* confdefs.h. */
36666_ACEOF
36667cat confdefs.h >>conftest.$ac_ext
36668cat >>conftest.$ac_ext <<_ACEOF
36669/* end confdefs.h. */
36670#include <execinfo.h>
36671int
36672main ()
36673{
36674
36675 void *trace[1];
36676 char **messages;
36677
36678 backtrace(trace, 1);
36679 messages = backtrace_symbols(trace, 1);
36680
36681 ;
36682 return 0;
36683}
36684_ACEOF
36685rm -f conftest.$ac_objext
36686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36687 (eval $ac_compile) 2>conftest.er1
36688 ac_status=$?
36689 grep -v '^ *+' conftest.er1 >conftest.err
36690 rm -f conftest.er1
36691 cat conftest.err >&5
36692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36693 (exit $ac_status); } &&
7067783d
PC
36694 { ac_try='test -z "$ac_cxx_werror_flag"
36695 || test ! -s conftest.err'
eaff0f0d
VZ
36696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36697 (eval $ac_try) 2>&5
36698 ac_status=$?
36699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700 (exit $ac_status); }; } &&
36701 { ac_try='test -s conftest.$ac_objext'
36702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36703 (eval $ac_try) 2>&5
36704 ac_status=$?
36705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706 (exit $ac_status); }; }; then
36707 wx_cv_func_backtrace=yes
36708else
36709 echo "$as_me: failed program was:" >&5
36710sed 's/^/| /' conftest.$ac_ext >&5
36711
36712wx_cv_func_backtrace=no
36713
36714fi
36715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36716
36717
36718fi
36719echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36720echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36721
36722
36723 if test "$wx_cv_func_backtrace" = "no"; then
36724 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36725echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36726 wxUSE_STACKWALKER=no
36727 else
36728 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36729echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36730if test "${wx_cv_func_cxa_demangle+set}" = set; then
36731 echo $ECHO_N "(cached) $ECHO_C" >&6
36732else
36733
36734 cat >conftest.$ac_ext <<_ACEOF
36735/* confdefs.h. */
36736_ACEOF
36737cat confdefs.h >>conftest.$ac_ext
36738cat >>conftest.$ac_ext <<_ACEOF
36739/* end confdefs.h. */
36740#include <cxxabi.h>
36741int
36742main ()
36743{
36744
36745 int rc;
36746 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36747
36748 ;
36749 return 0;
36750}
36751_ACEOF
dfe0c803
JS
36752rm -f conftest.$ac_objext conftest$ac_exeext
36753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36754 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
36755 ac_status=$?
36756 grep -v '^ *+' conftest.er1 >conftest.err
36757 rm -f conftest.er1
36758 cat conftest.err >&5
36759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36760 (exit $ac_status); } &&
7067783d
PC
36761 { ac_try='test -z "$ac_cxx_werror_flag"
36762 || test ! -s conftest.err'
eaff0f0d
VZ
36763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36764 (eval $ac_try) 2>&5
36765 ac_status=$?
36766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36767 (exit $ac_status); }; } &&
dfe0c803 36768 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
36769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36770 (eval $ac_try) 2>&5
36771 ac_status=$?
36772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773 (exit $ac_status); }; }; then
36774 wx_cv_func_cxa_demangle=yes
36775else
36776 echo "$as_me: failed program was:" >&5
36777sed 's/^/| /' conftest.$ac_ext >&5
36778
36779wx_cv_func_cxa_demangle=no
36780
36781fi
dfe0c803
JS
36782rm -f conftest.err conftest.$ac_objext \
36783 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
36784
36785
36786fi
36787echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36788echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36789
36790 if test "$wx_cv_func_cxa_demangle" = "yes"; then
36791 cat >>confdefs.h <<\_ACEOF
36792#define HAVE_CXA_DEMANGLE 1
36793_ACEOF
36794
36795 fi
36796 fi
eaff0f0d
VZ
36797fi
36798
898beab1
DE
36799if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36800 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36801echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36802 wxUSE_STACKWALKER=no
36803fi
36804
36805
a848cd7e
SC
36806
36807
36808for ac_func in mkstemp mktemp
36809do
36810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36811echo "$as_me:$LINENO: checking for $ac_func" >&5
36812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36813if eval "test \"\${$as_ac_var+set}\" = set"; then
36814 echo $ECHO_N "(cached) $ECHO_C" >&6
36815else
36816 cat >conftest.$ac_ext <<_ACEOF
36817/* confdefs.h. */
36818_ACEOF
36819cat confdefs.h >>conftest.$ac_ext
36820cat >>conftest.$ac_ext <<_ACEOF
36821/* end confdefs.h. */
ac1cb8d3
VS
36822/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36824#define $ac_func innocuous_$ac_func
36825
a848cd7e
SC
36826/* System header to define __stub macros and hopefully few prototypes,
36827 which can conflict with char $ac_func (); below.
36828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36829 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36830
a848cd7e
SC
36831#ifdef __STDC__
36832# include <limits.h>
36833#else
36834# include <assert.h>
36835#endif
ac1cb8d3
VS
36836
36837#undef $ac_func
36838
a848cd7e
SC
36839/* Override any gcc2 internal prototype to avoid an error. */
36840#ifdef __cplusplus
36841extern "C"
36842{
36843#endif
36844/* We use char because int might match the return type of a gcc2
36845 builtin and then its argument prototype would still apply. */
36846char $ac_func ();
36847/* The GNU C library defines this for functions which it implements
36848 to always fail with ENOSYS. Some functions are actually named
36849 something starting with __ and the normal name is an alias. */
36850#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36851choke me
36852#else
36853char (*f) () = $ac_func;
36854#endif
36855#ifdef __cplusplus
36856}
36857#endif
36858
36859int
36860main ()
36861{
36862return f != $ac_func;
36863 ;
36864 return 0;
36865}
36866_ACEOF
36867rm -f conftest.$ac_objext conftest$ac_exeext
36868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36869 (eval $ac_link) 2>conftest.er1
a848cd7e 36870 ac_status=$?
ac1cb8d3
VS
36871 grep -v '^ *+' conftest.er1 >conftest.err
36872 rm -f conftest.er1
36873 cat conftest.err >&5
a848cd7e
SC
36874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875 (exit $ac_status); } &&
7067783d
PC
36876 { ac_try='test -z "$ac_cxx_werror_flag"
36877 || test ! -s conftest.err'
ac1cb8d3
VS
36878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36879 (eval $ac_try) 2>&5
36880 ac_status=$?
36881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882 (exit $ac_status); }; } &&
36883 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36885 (eval $ac_try) 2>&5
36886 ac_status=$?
36887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36888 (exit $ac_status); }; }; then
36889 eval "$as_ac_var=yes"
36890else
36891 echo "$as_me: failed program was:" >&5
36892sed 's/^/| /' conftest.$ac_ext >&5
36893
36894eval "$as_ac_var=no"
36895fi
ac1cb8d3
VS
36896rm -f conftest.err conftest.$ac_objext \
36897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36898fi
36899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36900echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36901if test `eval echo '${'$as_ac_var'}'` = yes; then
36902 cat >>confdefs.h <<_ACEOF
36903#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36904_ACEOF
36905 break
36906fi
36907done
36908
36909
36910echo "$as_me:$LINENO: checking for statfs" >&5
36911echo $ECHO_N "checking for statfs... $ECHO_C" >&6
36912if test "${wx_cv_func_statfs+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. */
36921
36922 #if defined(__BSD__)
84ae7ca4
VZ
36923 #include <sys/param.h>
36924 #include <sys/mount.h>
a848cd7e 36925 #else
84ae7ca4 36926 #include <sys/vfs.h>
a848cd7e
SC
36927 #endif
36928
36929int
36930main ()
36931{
36932
36933 long l;
36934 struct statfs fs;
36935 statfs("/", &fs);
36936 l = fs.f_bsize;
36937 l += fs.f_blocks;
36938 l += fs.f_bavail;
36939
36940 ;
36941 return 0;
36942}
36943_ACEOF
36944rm -f conftest.$ac_objext
36945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36946 (eval $ac_compile) 2>conftest.er1
a848cd7e 36947 ac_status=$?
ac1cb8d3
VS
36948 grep -v '^ *+' conftest.er1 >conftest.err
36949 rm -f conftest.er1
36950 cat conftest.err >&5
a848cd7e
SC
36951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36952 (exit $ac_status); } &&
7067783d
PC
36953 { ac_try='test -z "$ac_cxx_werror_flag"
36954 || test ! -s conftest.err'
ac1cb8d3
VS
36955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36956 (eval $ac_try) 2>&5
36957 ac_status=$?
36958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959 (exit $ac_status); }; } &&
36960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36962 (eval $ac_try) 2>&5
36963 ac_status=$?
36964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36965 (exit $ac_status); }; }; then
84ae7ca4 36966 wx_cv_func_statfs=yes
a848cd7e
SC
36967else
36968 echo "$as_me: failed program was:" >&5
36969sed 's/^/| /' conftest.$ac_ext >&5
36970
84ae7ca4 36971wx_cv_func_statfs=no
a848cd7e
SC
36972
36973fi
ac1cb8d3 36974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36975
36976fi
36977echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36978echo "${ECHO_T}$wx_cv_func_statfs" >&6
36979
36980if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 36981 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
36982echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36983if test "${wx_cv_func_statfs_decl+set}" = set; then
36984 echo $ECHO_N "(cached) $ECHO_C" >&6
36985else
0683aca6
VZ
36986 cat >conftest.$ac_ext <<_ACEOF
36987/* confdefs.h. */
36988_ACEOF
36989cat confdefs.h >>conftest.$ac_ext
36990cat >>conftest.$ac_ext <<_ACEOF
36991/* end confdefs.h. */
84ae7ca4 36992
0683aca6
VZ
36993 #if defined(__BSD__)
36994 #include <sys/param.h>
36995 #include <sys/mount.h>
36996 #else
36997 #include <sys/vfs.h>
36998 #endif
36999
37000int
37001main ()
37002{
37003
37004 struct statfs fs;
37005 statfs("", &fs);
37006
37007 ;
37008 return 0;
37009}
37010_ACEOF
37011rm -f conftest.$ac_objext
37012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37013 (eval $ac_compile) 2>conftest.er1
37014 ac_status=$?
37015 grep -v '^ *+' conftest.er1 >conftest.err
37016 rm -f conftest.er1
37017 cat conftest.err >&5
37018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019 (exit $ac_status); } &&
7067783d
PC
37020 { ac_try='test -z "$ac_cxx_werror_flag"
37021 || test ! -s conftest.err'
0683aca6
VZ
37022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37023 (eval $ac_try) 2>&5
37024 ac_status=$?
37025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026 (exit $ac_status); }; } &&
37027 { ac_try='test -s conftest.$ac_objext'
37028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37029 (eval $ac_try) 2>&5
37030 ac_status=$?
37031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032 (exit $ac_status); }; }; then
37033 wx_cv_func_statfs_decl=yes
37034else
37035 echo "$as_me: failed program was:" >&5
37036sed 's/^/| /' conftest.$ac_ext >&5
37037
37038wx_cv_func_statfs_decl=no
37039
37040fi
37041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
37042
37043fi
37044echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37045echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
37046
37047 if test "$wx_cv_func_statfs_decl" = "yes"; then
37048 cat >>confdefs.h <<\_ACEOF
37049#define HAVE_STATFS_DECL 1
37050_ACEOF
37051
37052 fi
37053
a848cd7e
SC
37054 wx_cv_type_statvfs_t="struct statfs"
37055 cat >>confdefs.h <<\_ACEOF
37056#define HAVE_STATFS 1
37057_ACEOF
37058
37059else
37060 echo "$as_me:$LINENO: checking for statvfs" >&5
37061echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
37062if test "${wx_cv_func_statvfs+set}" = set; then
37063 echo $ECHO_N "(cached) $ECHO_C" >&6
37064else
37065 cat >conftest.$ac_ext <<_ACEOF
37066/* confdefs.h. */
37067_ACEOF
37068cat confdefs.h >>conftest.$ac_ext
37069cat >>conftest.$ac_ext <<_ACEOF
37070/* end confdefs.h. */
37071
37072 #include <stddef.h>
37073 #include <sys/statvfs.h>
37074
37075int
37076main ()
37077{
37078
37079 statvfs("/", NULL);
37080
37081 ;
37082 return 0;
37083}
37084_ACEOF
37085rm -f conftest.$ac_objext
37086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37087 (eval $ac_compile) 2>conftest.er1
a848cd7e 37088 ac_status=$?
ac1cb8d3
VS
37089 grep -v '^ *+' conftest.er1 >conftest.err
37090 rm -f conftest.er1
37091 cat conftest.err >&5
a848cd7e
SC
37092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37093 (exit $ac_status); } &&
7067783d
PC
37094 { ac_try='test -z "$ac_cxx_werror_flag"
37095 || test ! -s conftest.err'
ac1cb8d3
VS
37096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37097 (eval $ac_try) 2>&5
37098 ac_status=$?
37099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37100 (exit $ac_status); }; } &&
37101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37103 (eval $ac_try) 2>&5
37104 ac_status=$?
37105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37106 (exit $ac_status); }; }; then
37107 wx_cv_func_statvfs=yes
37108else
37109 echo "$as_me: failed program was:" >&5
37110sed 's/^/| /' conftest.$ac_ext >&5
37111
37112wx_cv_func_statvfs=no
37113
37114fi
ac1cb8d3 37115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37116
37117fi
37118echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37119echo "${ECHO_T}$wx_cv_func_statvfs" >&6
37120
37121 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 37122 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
37123echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
37124if test "${wx_cv_type_statvfs_t+set}" = set; then
37125 echo $ECHO_N "(cached) $ECHO_C" >&6
37126else
37127 cat >conftest.$ac_ext <<_ACEOF
37128/* confdefs.h. */
37129_ACEOF
37130cat confdefs.h >>conftest.$ac_ext
37131cat >>conftest.$ac_ext <<_ACEOF
37132/* end confdefs.h. */
37133
37134 #include <sys/statvfs.h>
37135
37136int
37137main ()
37138{
37139
37140 long l;
37141 statvfs_t fs;
37142 statvfs("/", &fs);
37143 l = fs.f_bsize;
37144 l += fs.f_blocks;
37145 l += fs.f_bavail;
37146
37147 ;
37148 return 0;
37149}
37150_ACEOF
37151rm -f conftest.$ac_objext
37152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37153 (eval $ac_compile) 2>conftest.er1
a848cd7e 37154 ac_status=$?
ac1cb8d3
VS
37155 grep -v '^ *+' conftest.er1 >conftest.err
37156 rm -f conftest.er1
37157 cat conftest.err >&5
a848cd7e
SC
37158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37159 (exit $ac_status); } &&
7067783d
PC
37160 { ac_try='test -z "$ac_cxx_werror_flag"
37161 || test ! -s conftest.err'
ac1cb8d3
VS
37162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37163 (eval $ac_try) 2>&5
37164 ac_status=$?
37165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37166 (exit $ac_status); }; } &&
37167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37169 (eval $ac_try) 2>&5
37170 ac_status=$?
37171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37172 (exit $ac_status); }; }; then
37173 wx_cv_type_statvfs_t=statvfs_t
37174else
37175 echo "$as_me: failed program was:" >&5
37176sed 's/^/| /' conftest.$ac_ext >&5
37177
37178
37179 cat >conftest.$ac_ext <<_ACEOF
37180/* confdefs.h. */
37181_ACEOF
37182cat confdefs.h >>conftest.$ac_ext
37183cat >>conftest.$ac_ext <<_ACEOF
37184/* end confdefs.h. */
37185
37186 #include <sys/statvfs.h>
37187
37188int
37189main ()
37190{
37191
37192 long l;
37193 struct statvfs fs;
37194 statvfs("/", &fs);
37195 l = fs.f_bsize;
37196 l += fs.f_blocks;
37197 l += fs.f_bavail;
37198
37199 ;
37200 return 0;
37201}
37202_ACEOF
37203rm -f conftest.$ac_objext
37204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37205 (eval $ac_compile) 2>conftest.er1
a848cd7e 37206 ac_status=$?
ac1cb8d3
VS
37207 grep -v '^ *+' conftest.er1 >conftest.err
37208 rm -f conftest.er1
37209 cat conftest.err >&5
a848cd7e
SC
37210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211 (exit $ac_status); } &&
7067783d
PC
37212 { ac_try='test -z "$ac_cxx_werror_flag"
37213 || test ! -s conftest.err'
ac1cb8d3
VS
37214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37215 (eval $ac_try) 2>&5
37216 ac_status=$?
37217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218 (exit $ac_status); }; } &&
37219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37221 (eval $ac_try) 2>&5
37222 ac_status=$?
37223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224 (exit $ac_status); }; }; then
37225 wx_cv_type_statvfs_t="struct statvfs"
37226else
37227 echo "$as_me: failed program was:" >&5
37228sed 's/^/| /' conftest.$ac_ext >&5
37229
37230wx_cv_type_statvfs_t="unknown"
37231
37232fi
ac1cb8d3 37233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37234
37235
37236fi
ac1cb8d3 37237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37238
37239fi
37240echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37241echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
37242
a848cd7e
SC
37243 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37244 cat >>confdefs.h <<\_ACEOF
37245#define HAVE_STATVFS 1
37246_ACEOF
37247
37248 fi
37249 else
37250 wx_cv_type_statvfs_t="unknown"
37251 fi
37252fi
37253
37254if test "$wx_cv_type_statvfs_t" != "unknown"; then
37255 cat >>confdefs.h <<_ACEOF
37256#define WX_STATFS_T $wx_cv_type_statvfs_t
37257_ACEOF
37258
37259else
37260 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37261echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37262fi
37263
37264if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37265
37266
37267for ac_func in fcntl flock
37268do
37269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37270echo "$as_me:$LINENO: checking for $ac_func" >&5
37271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37272if eval "test \"\${$as_ac_var+set}\" = set"; then
37273 echo $ECHO_N "(cached) $ECHO_C" >&6
37274else
37275 cat >conftest.$ac_ext <<_ACEOF
37276/* confdefs.h. */
37277_ACEOF
37278cat confdefs.h >>conftest.$ac_ext
37279cat >>conftest.$ac_ext <<_ACEOF
37280/* end confdefs.h. */
ac1cb8d3
VS
37281/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37283#define $ac_func innocuous_$ac_func
37284
a848cd7e
SC
37285/* System header to define __stub macros and hopefully few prototypes,
37286 which can conflict with char $ac_func (); below.
37287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37288 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37289
a848cd7e
SC
37290#ifdef __STDC__
37291# include <limits.h>
37292#else
37293# include <assert.h>
37294#endif
ac1cb8d3
VS
37295
37296#undef $ac_func
37297
a848cd7e
SC
37298/* Override any gcc2 internal prototype to avoid an error. */
37299#ifdef __cplusplus
37300extern "C"
37301{
37302#endif
37303/* We use char because int might match the return type of a gcc2
37304 builtin and then its argument prototype would still apply. */
37305char $ac_func ();
37306/* The GNU C library defines this for functions which it implements
37307 to always fail with ENOSYS. Some functions are actually named
37308 something starting with __ and the normal name is an alias. */
37309#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37310choke me
37311#else
37312char (*f) () = $ac_func;
37313#endif
37314#ifdef __cplusplus
37315}
37316#endif
37317
37318int
37319main ()
37320{
37321return f != $ac_func;
37322 ;
37323 return 0;
37324}
37325_ACEOF
37326rm -f conftest.$ac_objext conftest$ac_exeext
37327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37328 (eval $ac_link) 2>conftest.er1
a848cd7e 37329 ac_status=$?
ac1cb8d3
VS
37330 grep -v '^ *+' conftest.er1 >conftest.err
37331 rm -f conftest.er1
37332 cat conftest.err >&5
a848cd7e
SC
37333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37334 (exit $ac_status); } &&
7067783d
PC
37335 { ac_try='test -z "$ac_cxx_werror_flag"
37336 || test ! -s conftest.err'
ac1cb8d3
VS
37337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37338 (eval $ac_try) 2>&5
37339 ac_status=$?
37340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37341 (exit $ac_status); }; } &&
37342 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37344 (eval $ac_try) 2>&5
37345 ac_status=$?
37346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347 (exit $ac_status); }; }; then
37348 eval "$as_ac_var=yes"
37349else
37350 echo "$as_me: failed program was:" >&5
37351sed 's/^/| /' conftest.$ac_ext >&5
37352
37353eval "$as_ac_var=no"
37354fi
ac1cb8d3
VS
37355rm -f conftest.err conftest.$ac_objext \
37356 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37357fi
37358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37359echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37360if test `eval echo '${'$as_ac_var'}'` = yes; then
37361 cat >>confdefs.h <<_ACEOF
37362#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37363_ACEOF
37364 break
37365fi
37366done
37367
37368
37369 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37370 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37371echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37372 wxUSE_SNGLINST_CHECKER=no
37373 fi
37374fi
37375
37376
37377for ac_func in timegm
37378do
37379as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37380echo "$as_me:$LINENO: checking for $ac_func" >&5
37381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37382if eval "test \"\${$as_ac_var+set}\" = set"; then
37383 echo $ECHO_N "(cached) $ECHO_C" >&6
37384else
37385 cat >conftest.$ac_ext <<_ACEOF
37386/* confdefs.h. */
37387_ACEOF
37388cat confdefs.h >>conftest.$ac_ext
37389cat >>conftest.$ac_ext <<_ACEOF
37390/* end confdefs.h. */
ac1cb8d3
VS
37391/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37393#define $ac_func innocuous_$ac_func
37394
a848cd7e
SC
37395/* System header to define __stub macros and hopefully few prototypes,
37396 which can conflict with char $ac_func (); below.
37397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37398 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37399
a848cd7e
SC
37400#ifdef __STDC__
37401# include <limits.h>
37402#else
37403# include <assert.h>
37404#endif
ac1cb8d3
VS
37405
37406#undef $ac_func
37407
a848cd7e
SC
37408/* Override any gcc2 internal prototype to avoid an error. */
37409#ifdef __cplusplus
37410extern "C"
37411{
37412#endif
37413/* We use char because int might match the return type of a gcc2
37414 builtin and then its argument prototype would still apply. */
37415char $ac_func ();
37416/* The GNU C library defines this for functions which it implements
37417 to always fail with ENOSYS. Some functions are actually named
37418 something starting with __ and the normal name is an alias. */
37419#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37420choke me
37421#else
37422char (*f) () = $ac_func;
37423#endif
37424#ifdef __cplusplus
37425}
37426#endif
37427
37428int
37429main ()
37430{
37431return f != $ac_func;
37432 ;
37433 return 0;
37434}
37435_ACEOF
37436rm -f conftest.$ac_objext conftest$ac_exeext
37437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37438 (eval $ac_link) 2>conftest.er1
a848cd7e 37439 ac_status=$?
ac1cb8d3
VS
37440 grep -v '^ *+' conftest.er1 >conftest.err
37441 rm -f conftest.er1
37442 cat conftest.err >&5
a848cd7e
SC
37443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444 (exit $ac_status); } &&
7067783d
PC
37445 { ac_try='test -z "$ac_cxx_werror_flag"
37446 || test ! -s conftest.err'
ac1cb8d3
VS
37447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37448 (eval $ac_try) 2>&5
37449 ac_status=$?
37450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451 (exit $ac_status); }; } &&
37452 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37454 (eval $ac_try) 2>&5
37455 ac_status=$?
37456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37457 (exit $ac_status); }; }; then
37458 eval "$as_ac_var=yes"
37459else
37460 echo "$as_me: failed program was:" >&5
37461sed 's/^/| /' conftest.$ac_ext >&5
37462
37463eval "$as_ac_var=no"
37464fi
ac1cb8d3
VS
37465rm -f conftest.err conftest.$ac_objext \
37466 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37467fi
37468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37469echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37470if test `eval echo '${'$as_ac_var'}'` = yes; then
37471 cat >>confdefs.h <<_ACEOF
37472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37473_ACEOF
37474
37475fi
37476done
37477
37478
37479
37480
37481for ac_func in putenv setenv
37482do
37483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37484echo "$as_me:$LINENO: checking for $ac_func" >&5
37485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37486if eval "test \"\${$as_ac_var+set}\" = set"; then
37487 echo $ECHO_N "(cached) $ECHO_C" >&6
37488else
37489 cat >conftest.$ac_ext <<_ACEOF
37490/* confdefs.h. */
37491_ACEOF
37492cat confdefs.h >>conftest.$ac_ext
37493cat >>conftest.$ac_ext <<_ACEOF
37494/* end confdefs.h. */
ac1cb8d3
VS
37495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37497#define $ac_func innocuous_$ac_func
37498
a848cd7e
SC
37499/* System header to define __stub macros and hopefully few prototypes,
37500 which can conflict with char $ac_func (); below.
37501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37502 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37503
a848cd7e
SC
37504#ifdef __STDC__
37505# include <limits.h>
37506#else
37507# include <assert.h>
37508#endif
ac1cb8d3
VS
37509
37510#undef $ac_func
37511
a848cd7e
SC
37512/* Override any gcc2 internal prototype to avoid an error. */
37513#ifdef __cplusplus
37514extern "C"
37515{
37516#endif
37517/* We use char because int might match the return type of a gcc2
37518 builtin and then its argument prototype would still apply. */
37519char $ac_func ();
37520/* The GNU C library defines this for functions which it implements
37521 to always fail with ENOSYS. Some functions are actually named
37522 something starting with __ and the normal name is an alias. */
37523#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37524choke me
37525#else
37526char (*f) () = $ac_func;
37527#endif
37528#ifdef __cplusplus
37529}
37530#endif
37531
37532int
37533main ()
37534{
37535return f != $ac_func;
37536 ;
37537 return 0;
37538}
37539_ACEOF
37540rm -f conftest.$ac_objext conftest$ac_exeext
37541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37542 (eval $ac_link) 2>conftest.er1
a848cd7e 37543 ac_status=$?
ac1cb8d3
VS
37544 grep -v '^ *+' conftest.er1 >conftest.err
37545 rm -f conftest.er1
37546 cat conftest.err >&5
a848cd7e
SC
37547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548 (exit $ac_status); } &&
7067783d
PC
37549 { ac_try='test -z "$ac_cxx_werror_flag"
37550 || test ! -s conftest.err'
ac1cb8d3
VS
37551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37552 (eval $ac_try) 2>&5
37553 ac_status=$?
37554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37555 (exit $ac_status); }; } &&
37556 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37558 (eval $ac_try) 2>&5
37559 ac_status=$?
37560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37561 (exit $ac_status); }; }; then
37562 eval "$as_ac_var=yes"
37563else
37564 echo "$as_me: failed program was:" >&5
37565sed 's/^/| /' conftest.$ac_ext >&5
37566
37567eval "$as_ac_var=no"
37568fi
ac1cb8d3
VS
37569rm -f conftest.err conftest.$ac_objext \
37570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37571fi
37572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37574if test `eval echo '${'$as_ac_var'}'` = yes; then
37575 cat >>confdefs.h <<_ACEOF
37576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37577_ACEOF
37578 break
37579fi
37580done
37581
37582
37583HAVE_SOME_SLEEP_FUNC=0
37584if test "$USE_BEOS" = 1; then
37585 cat >>confdefs.h <<\_ACEOF
37586#define HAVE_SLEEP 1
37587_ACEOF
37588
37589 HAVE_SOME_SLEEP_FUNC=1
37590fi
37591
37592if test "$USE_DARWIN" = 1; then
37593 cat >>confdefs.h <<\_ACEOF
37594#define HAVE_USLEEP 1
37595_ACEOF
37596
37597 HAVE_SOME_SLEEP_FUNC=1
37598fi
37599
37600if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37601 POSIX4_LINK=
37602
37603for ac_func in nanosleep
37604do
37605as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37606echo "$as_me:$LINENO: checking for $ac_func" >&5
37607echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37608if eval "test \"\${$as_ac_var+set}\" = set"; then
37609 echo $ECHO_N "(cached) $ECHO_C" >&6
37610else
37611 cat >conftest.$ac_ext <<_ACEOF
37612/* confdefs.h. */
37613_ACEOF
37614cat confdefs.h >>conftest.$ac_ext
37615cat >>conftest.$ac_ext <<_ACEOF
37616/* end confdefs.h. */
ac1cb8d3
VS
37617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37619#define $ac_func innocuous_$ac_func
37620
a848cd7e
SC
37621/* System header to define __stub macros and hopefully few prototypes,
37622 which can conflict with char $ac_func (); below.
37623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37624 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37625
a848cd7e
SC
37626#ifdef __STDC__
37627# include <limits.h>
37628#else
37629# include <assert.h>
37630#endif
ac1cb8d3
VS
37631
37632#undef $ac_func
37633
a848cd7e
SC
37634/* Override any gcc2 internal prototype to avoid an error. */
37635#ifdef __cplusplus
37636extern "C"
37637{
37638#endif
37639/* We use char because int might match the return type of a gcc2
37640 builtin and then its argument prototype would still apply. */
37641char $ac_func ();
37642/* The GNU C library defines this for functions which it implements
37643 to always fail with ENOSYS. Some functions are actually named
37644 something starting with __ and the normal name is an alias. */
37645#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37646choke me
37647#else
37648char (*f) () = $ac_func;
37649#endif
37650#ifdef __cplusplus
37651}
37652#endif
37653
37654int
37655main ()
37656{
37657return f != $ac_func;
37658 ;
37659 return 0;
37660}
37661_ACEOF
37662rm -f conftest.$ac_objext conftest$ac_exeext
37663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37664 (eval $ac_link) 2>conftest.er1
a848cd7e 37665 ac_status=$?
ac1cb8d3
VS
37666 grep -v '^ *+' conftest.er1 >conftest.err
37667 rm -f conftest.er1
37668 cat conftest.err >&5
a848cd7e
SC
37669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37670 (exit $ac_status); } &&
7067783d
PC
37671 { ac_try='test -z "$ac_cxx_werror_flag"
37672 || test ! -s conftest.err'
ac1cb8d3
VS
37673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37674 (eval $ac_try) 2>&5
37675 ac_status=$?
37676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37677 (exit $ac_status); }; } &&
37678 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37680 (eval $ac_try) 2>&5
37681 ac_status=$?
37682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37683 (exit $ac_status); }; }; then
37684 eval "$as_ac_var=yes"
37685else
37686 echo "$as_me: failed program was:" >&5
37687sed 's/^/| /' conftest.$ac_ext >&5
37688
37689eval "$as_ac_var=no"
37690fi
ac1cb8d3
VS
37691rm -f conftest.err conftest.$ac_objext \
37692 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37693fi
37694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37695echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37696if test `eval echo '${'$as_ac_var'}'` = yes; then
37697 cat >>confdefs.h <<_ACEOF
37698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37699_ACEOF
37700 cat >>confdefs.h <<\_ACEOF
37701#define HAVE_NANOSLEEP 1
37702_ACEOF
37703
37704else
37705
37706 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37707echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37708if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37709 echo $ECHO_N "(cached) $ECHO_C" >&6
37710else
37711 ac_check_lib_save_LIBS=$LIBS
37712LIBS="-lposix4 $LIBS"
37713cat >conftest.$ac_ext <<_ACEOF
37714/* confdefs.h. */
37715_ACEOF
37716cat confdefs.h >>conftest.$ac_ext
37717cat >>conftest.$ac_ext <<_ACEOF
37718/* end confdefs.h. */
37719
37720/* Override any gcc2 internal prototype to avoid an error. */
37721#ifdef __cplusplus
37722extern "C"
37723#endif
37724/* We use char because int might match the return type of a gcc2
37725 builtin and then its argument prototype would still apply. */
37726char nanosleep ();
37727int
37728main ()
37729{
37730nanosleep ();
37731 ;
37732 return 0;
37733}
37734_ACEOF
37735rm -f conftest.$ac_objext conftest$ac_exeext
37736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37737 (eval $ac_link) 2>conftest.er1
a848cd7e 37738 ac_status=$?
ac1cb8d3
VS
37739 grep -v '^ *+' conftest.er1 >conftest.err
37740 rm -f conftest.er1
37741 cat conftest.err >&5
a848cd7e
SC
37742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37743 (exit $ac_status); } &&
7067783d
PC
37744 { ac_try='test -z "$ac_cxx_werror_flag"
37745 || test ! -s conftest.err'
ac1cb8d3
VS
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_exeext'
a848cd7e
SC
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 ac_cv_lib_posix4_nanosleep=yes
37758else
37759 echo "$as_me: failed program was:" >&5
37760sed 's/^/| /' conftest.$ac_ext >&5
37761
37762ac_cv_lib_posix4_nanosleep=no
37763fi
ac1cb8d3
VS
37764rm -f conftest.err conftest.$ac_objext \
37765 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37766LIBS=$ac_check_lib_save_LIBS
37767fi
37768echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37769echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37770if test $ac_cv_lib_posix4_nanosleep = yes; then
37771
37772 cat >>confdefs.h <<\_ACEOF
37773#define HAVE_NANOSLEEP 1
37774_ACEOF
37775
37776 POSIX4_LINK=" -lposix4"
37777
37778else
37779
37780
37781for ac_func in usleep
37782do
37783as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37784echo "$as_me:$LINENO: checking for $ac_func" >&5
37785echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37786if eval "test \"\${$as_ac_var+set}\" = set"; then
37787 echo $ECHO_N "(cached) $ECHO_C" >&6
37788else
37789 cat >conftest.$ac_ext <<_ACEOF
37790/* confdefs.h. */
37791_ACEOF
37792cat confdefs.h >>conftest.$ac_ext
37793cat >>conftest.$ac_ext <<_ACEOF
37794/* end confdefs.h. */
ac1cb8d3
VS
37795/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37797#define $ac_func innocuous_$ac_func
37798
a848cd7e
SC
37799/* System header to define __stub macros and hopefully few prototypes,
37800 which can conflict with char $ac_func (); below.
37801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37802 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37803
a848cd7e
SC
37804#ifdef __STDC__
37805# include <limits.h>
37806#else
37807# include <assert.h>
37808#endif
ac1cb8d3
VS
37809
37810#undef $ac_func
37811
a848cd7e
SC
37812/* Override any gcc2 internal prototype to avoid an error. */
37813#ifdef __cplusplus
37814extern "C"
37815{
37816#endif
37817/* We use char because int might match the return type of a gcc2
37818 builtin and then its argument prototype would still apply. */
37819char $ac_func ();
37820/* The GNU C library defines this for functions which it implements
37821 to always fail with ENOSYS. Some functions are actually named
37822 something starting with __ and the normal name is an alias. */
37823#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37824choke me
37825#else
37826char (*f) () = $ac_func;
37827#endif
37828#ifdef __cplusplus
37829}
37830#endif
37831
37832int
37833main ()
37834{
37835return f != $ac_func;
37836 ;
37837 return 0;
37838}
37839_ACEOF
37840rm -f conftest.$ac_objext conftest$ac_exeext
37841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37842 (eval $ac_link) 2>conftest.er1
a848cd7e 37843 ac_status=$?
ac1cb8d3
VS
37844 grep -v '^ *+' conftest.er1 >conftest.err
37845 rm -f conftest.er1
37846 cat conftest.err >&5
a848cd7e
SC
37847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37848 (exit $ac_status); } &&
7067783d
PC
37849 { ac_try='test -z "$ac_cxx_werror_flag"
37850 || test ! -s conftest.err'
ac1cb8d3
VS
37851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37852 (eval $ac_try) 2>&5
37853 ac_status=$?
37854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37855 (exit $ac_status); }; } &&
37856 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37858 (eval $ac_try) 2>&5
37859 ac_status=$?
37860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37861 (exit $ac_status); }; }; then
37862 eval "$as_ac_var=yes"
37863else
37864 echo "$as_me: failed program was:" >&5
37865sed 's/^/| /' conftest.$ac_ext >&5
37866
37867eval "$as_ac_var=no"
37868fi
ac1cb8d3
VS
37869rm -f conftest.err conftest.$ac_objext \
37870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37871fi
37872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37873echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37874if test `eval echo '${'$as_ac_var'}'` = yes; then
37875 cat >>confdefs.h <<_ACEOF
37876#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37877_ACEOF
37878 cat >>confdefs.h <<\_ACEOF
37879#define HAVE_USLEEP 1
37880_ACEOF
37881
37882else
37883 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37884echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37885
37886fi
37887done
37888
37889
37890
37891fi
37892
37893
37894
37895fi
37896done
37897
37898fi
37899
37900
37901
37902for ac_func in uname gethostname
37903do
37904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37905echo "$as_me:$LINENO: checking for $ac_func" >&5
37906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37907if eval "test \"\${$as_ac_var+set}\" = set"; then
37908 echo $ECHO_N "(cached) $ECHO_C" >&6
37909else
37910 cat >conftest.$ac_ext <<_ACEOF
37911/* confdefs.h. */
37912_ACEOF
37913cat confdefs.h >>conftest.$ac_ext
37914cat >>conftest.$ac_ext <<_ACEOF
37915/* end confdefs.h. */
ac1cb8d3
VS
37916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37918#define $ac_func innocuous_$ac_func
37919
a848cd7e
SC
37920/* System header to define __stub macros and hopefully few prototypes,
37921 which can conflict with char $ac_func (); below.
37922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37923 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37924
a848cd7e
SC
37925#ifdef __STDC__
37926# include <limits.h>
37927#else
37928# include <assert.h>
37929#endif
ac1cb8d3
VS
37930
37931#undef $ac_func
37932
a848cd7e
SC
37933/* Override any gcc2 internal prototype to avoid an error. */
37934#ifdef __cplusplus
37935extern "C"
37936{
37937#endif
37938/* We use char because int might match the return type of a gcc2
37939 builtin and then its argument prototype would still apply. */
37940char $ac_func ();
37941/* The GNU C library defines this for functions which it implements
37942 to always fail with ENOSYS. Some functions are actually named
37943 something starting with __ and the normal name is an alias. */
37944#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37945choke me
37946#else
37947char (*f) () = $ac_func;
37948#endif
37949#ifdef __cplusplus
37950}
37951#endif
37952
37953int
37954main ()
37955{
37956return f != $ac_func;
37957 ;
37958 return 0;
37959}
37960_ACEOF
37961rm -f conftest.$ac_objext conftest$ac_exeext
37962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37963 (eval $ac_link) 2>conftest.er1
a848cd7e 37964 ac_status=$?
ac1cb8d3
VS
37965 grep -v '^ *+' conftest.er1 >conftest.err
37966 rm -f conftest.er1
37967 cat conftest.err >&5
a848cd7e
SC
37968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37969 (exit $ac_status); } &&
7067783d
PC
37970 { ac_try='test -z "$ac_cxx_werror_flag"
37971 || test ! -s conftest.err'
ac1cb8d3
VS
37972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37973 (eval $ac_try) 2>&5
37974 ac_status=$?
37975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976 (exit $ac_status); }; } &&
37977 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37979 (eval $ac_try) 2>&5
37980 ac_status=$?
37981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982 (exit $ac_status); }; }; then
37983 eval "$as_ac_var=yes"
37984else
37985 echo "$as_me: failed program was:" >&5
37986sed 's/^/| /' conftest.$ac_ext >&5
37987
37988eval "$as_ac_var=no"
37989fi
ac1cb8d3
VS
37990rm -f conftest.err conftest.$ac_objext \
37991 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37992fi
37993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37994echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37995if test `eval echo '${'$as_ac_var'}'` = yes; then
37996 cat >>confdefs.h <<_ACEOF
37997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37998_ACEOF
37999 break
38000fi
38001done
38002
38003
56632e81
MW
38004
38005 for wx_func in strtok_r
38006 do
38007 echo "$as_me:$LINENO: checking for $wx_func" >&5
38008echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38009if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
38010 echo $ECHO_N "(cached) $ECHO_C" >&6
38011else
56632e81
MW
38012
38013 cat >conftest.$ac_ext <<_ACEOF
38014
38015 /* confdefs.h. */
a848cd7e
SC
38016_ACEOF
38017cat confdefs.h >>conftest.$ac_ext
38018cat >>conftest.$ac_ext <<_ACEOF
38019/* end confdefs.h. */
56632e81
MW
38020
38021 #define _REENTRANT
38022 $ac_includes_default
38023
a848cd7e
SC
38024int
38025main ()
38026{
56632e81
MW
38027
38028 #ifndef $wx_func
38029 &$wx_func;
38030 #endif
38031
5acfd58d 38032
a848cd7e
SC
38033 ;
38034 return 0;
38035}
56632e81 38036
a848cd7e 38037_ACEOF
56632e81
MW
38038rm -f conftest.$ac_objext conftest$ac_exeext
38039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38040 (eval $ac_link) 2>conftest.er1
a848cd7e 38041 ac_status=$?
ac1cb8d3
VS
38042 grep -v '^ *+' conftest.er1 >conftest.err
38043 rm -f conftest.er1
38044 cat conftest.err >&5
a848cd7e
SC
38045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38046 (exit $ac_status); } &&
7067783d
PC
38047 { ac_try='test -z "$ac_cxx_werror_flag"
38048 || test ! -s conftest.err'
ac1cb8d3
VS
38049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38050 (eval $ac_try) 2>&5
38051 ac_status=$?
38052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38053 (exit $ac_status); }; } &&
56632e81 38054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38056 (eval $ac_try) 2>&5
38057 ac_status=$?
38058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38059 (exit $ac_status); }; }; then
56632e81 38060 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38061else
38062 echo "$as_me: failed program was:" >&5
38063sed 's/^/| /' conftest.$ac_ext >&5
38064
56632e81 38065eval wx_cv_func_$wx_func=no
a848cd7e 38066fi
56632e81
MW
38067rm -f conftest.err conftest.$ac_objext \
38068 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38069
56632e81
MW
38070fi
38071echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38072echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 38073
56632e81
MW
38074 if eval test \$wx_cv_func_$wx_func = yes
38075 then
38076 cat >>confdefs.h <<_ACEOF
38077#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
38078_ACEOF
38079
38080
56632e81
MW
38081 else
38082 :
5acfd58d 38083
56632e81
MW
38084 fi
38085 done
5acfd58d 38086
a848cd7e 38087
a848cd7e
SC
38088INET_LINK=
38089
38090for ac_func in inet_addr
38091do
38092as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38093echo "$as_me:$LINENO: checking for $ac_func" >&5
38094echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38095if eval "test \"\${$as_ac_var+set}\" = set"; then
38096 echo $ECHO_N "(cached) $ECHO_C" >&6
38097else
38098 cat >conftest.$ac_ext <<_ACEOF
38099/* confdefs.h. */
38100_ACEOF
38101cat confdefs.h >>conftest.$ac_ext
38102cat >>conftest.$ac_ext <<_ACEOF
38103/* end confdefs.h. */
ac1cb8d3
VS
38104/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38106#define $ac_func innocuous_$ac_func
38107
a848cd7e
SC
38108/* System header to define __stub macros and hopefully few prototypes,
38109 which can conflict with char $ac_func (); below.
38110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38111 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38112
a848cd7e
SC
38113#ifdef __STDC__
38114# include <limits.h>
38115#else
38116# include <assert.h>
38117#endif
ac1cb8d3
VS
38118
38119#undef $ac_func
38120
a848cd7e
SC
38121/* Override any gcc2 internal prototype to avoid an error. */
38122#ifdef __cplusplus
38123extern "C"
38124{
38125#endif
38126/* We use char because int might match the return type of a gcc2
38127 builtin and then its argument prototype would still apply. */
38128char $ac_func ();
38129/* The GNU C library defines this for functions which it implements
38130 to always fail with ENOSYS. Some functions are actually named
38131 something starting with __ and the normal name is an alias. */
38132#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38133choke me
38134#else
38135char (*f) () = $ac_func;
38136#endif
38137#ifdef __cplusplus
38138}
38139#endif
38140
38141int
38142main ()
38143{
38144return f != $ac_func;
38145 ;
38146 return 0;
38147}
38148_ACEOF
38149rm -f conftest.$ac_objext conftest$ac_exeext
38150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38151 (eval $ac_link) 2>conftest.er1
a848cd7e 38152 ac_status=$?
ac1cb8d3
VS
38153 grep -v '^ *+' conftest.er1 >conftest.err
38154 rm -f conftest.er1
38155 cat conftest.err >&5
a848cd7e
SC
38156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38157 (exit $ac_status); } &&
7067783d
PC
38158 { ac_try='test -z "$ac_cxx_werror_flag"
38159 || test ! -s conftest.err'
ac1cb8d3
VS
38160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38161 (eval $ac_try) 2>&5
38162 ac_status=$?
38163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38164 (exit $ac_status); }; } &&
38165 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38167 (eval $ac_try) 2>&5
38168 ac_status=$?
38169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38170 (exit $ac_status); }; }; then
38171 eval "$as_ac_var=yes"
38172else
38173 echo "$as_me: failed program was:" >&5
38174sed 's/^/| /' conftest.$ac_ext >&5
38175
38176eval "$as_ac_var=no"
38177fi
ac1cb8d3
VS
38178rm -f conftest.err conftest.$ac_objext \
38179 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38180fi
38181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38182echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38183if test `eval echo '${'$as_ac_var'}'` = yes; then
38184 cat >>confdefs.h <<_ACEOF
38185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38186_ACEOF
38187 cat >>confdefs.h <<\_ACEOF
38188#define HAVE_INET_ADDR 1
38189_ACEOF
38190
38191else
38192
38193 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38194echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
38195if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38196 echo $ECHO_N "(cached) $ECHO_C" >&6
38197else
38198 ac_check_lib_save_LIBS=$LIBS
38199LIBS="-lnsl $LIBS"
38200cat >conftest.$ac_ext <<_ACEOF
38201/* confdefs.h. */
38202_ACEOF
38203cat confdefs.h >>conftest.$ac_ext
38204cat >>conftest.$ac_ext <<_ACEOF
38205/* end confdefs.h. */
38206
38207/* Override any gcc2 internal prototype to avoid an error. */
38208#ifdef __cplusplus
38209extern "C"
38210#endif
38211/* We use char because int might match the return type of a gcc2
38212 builtin and then its argument prototype would still apply. */
38213char inet_addr ();
38214int
38215main ()
38216{
38217inet_addr ();
38218 ;
38219 return 0;
38220}
38221_ACEOF
38222rm -f conftest.$ac_objext conftest$ac_exeext
38223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38224 (eval $ac_link) 2>conftest.er1
a848cd7e 38225 ac_status=$?
ac1cb8d3
VS
38226 grep -v '^ *+' conftest.er1 >conftest.err
38227 rm -f conftest.er1
38228 cat conftest.err >&5
a848cd7e
SC
38229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38230 (exit $ac_status); } &&
7067783d
PC
38231 { ac_try='test -z "$ac_cxx_werror_flag"
38232 || test ! -s conftest.err'
ac1cb8d3
VS
38233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38234 (eval $ac_try) 2>&5
38235 ac_status=$?
38236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38237 (exit $ac_status); }; } &&
38238 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38240 (eval $ac_try) 2>&5
38241 ac_status=$?
38242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38243 (exit $ac_status); }; }; then
38244 ac_cv_lib_nsl_inet_addr=yes
38245else
38246 echo "$as_me: failed program was:" >&5
38247sed 's/^/| /' conftest.$ac_ext >&5
38248
38249ac_cv_lib_nsl_inet_addr=no
38250fi
ac1cb8d3
VS
38251rm -f conftest.err conftest.$ac_objext \
38252 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38253LIBS=$ac_check_lib_save_LIBS
38254fi
38255echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38256echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38257if test $ac_cv_lib_nsl_inet_addr = yes; then
38258 INET_LINK="nsl"
38259else
38260
38261 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38262echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38263if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38264 echo $ECHO_N "(cached) $ECHO_C" >&6
38265else
38266 ac_check_lib_save_LIBS=$LIBS
38267LIBS="-lresolv $LIBS"
38268cat >conftest.$ac_ext <<_ACEOF
38269/* confdefs.h. */
38270_ACEOF
38271cat confdefs.h >>conftest.$ac_ext
38272cat >>conftest.$ac_ext <<_ACEOF
38273/* end confdefs.h. */
38274
38275/* Override any gcc2 internal prototype to avoid an error. */
38276#ifdef __cplusplus
38277extern "C"
38278#endif
38279/* We use char because int might match the return type of a gcc2
38280 builtin and then its argument prototype would still apply. */
38281char inet_addr ();
38282int
38283main ()
38284{
38285inet_addr ();
38286 ;
38287 return 0;
38288}
38289_ACEOF
38290rm -f conftest.$ac_objext conftest$ac_exeext
38291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38292 (eval $ac_link) 2>conftest.er1
a848cd7e 38293 ac_status=$?
ac1cb8d3
VS
38294 grep -v '^ *+' conftest.er1 >conftest.err
38295 rm -f conftest.er1
38296 cat conftest.err >&5
a848cd7e
SC
38297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298 (exit $ac_status); } &&
7067783d
PC
38299 { ac_try='test -z "$ac_cxx_werror_flag"
38300 || test ! -s conftest.err'
ac1cb8d3
VS
38301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38302 (eval $ac_try) 2>&5
38303 ac_status=$?
38304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305 (exit $ac_status); }; } &&
38306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38308 (eval $ac_try) 2>&5
38309 ac_status=$?
38310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311 (exit $ac_status); }; }; then
38312 ac_cv_lib_resolv_inet_addr=yes
38313else
38314 echo "$as_me: failed program was:" >&5
38315sed 's/^/| /' conftest.$ac_ext >&5
38316
38317ac_cv_lib_resolv_inet_addr=no
38318fi
ac1cb8d3
VS
38319rm -f conftest.err conftest.$ac_objext \
38320 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38321LIBS=$ac_check_lib_save_LIBS
38322fi
38323echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38324echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38325if test $ac_cv_lib_resolv_inet_addr = yes; then
38326 INET_LINK="resolv"
38327else
38328
38329 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38330echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38331if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38332 echo $ECHO_N "(cached) $ECHO_C" >&6
38333else
38334 ac_check_lib_save_LIBS=$LIBS
38335LIBS="-lsocket $LIBS"
38336cat >conftest.$ac_ext <<_ACEOF
38337/* confdefs.h. */
38338_ACEOF
38339cat confdefs.h >>conftest.$ac_ext
38340cat >>conftest.$ac_ext <<_ACEOF
38341/* end confdefs.h. */
38342
38343/* Override any gcc2 internal prototype to avoid an error. */
38344#ifdef __cplusplus
38345extern "C"
38346#endif
38347/* We use char because int might match the return type of a gcc2
38348 builtin and then its argument prototype would still apply. */
38349char inet_addr ();
38350int
38351main ()
38352{
38353inet_addr ();
38354 ;
38355 return 0;
38356}
38357_ACEOF
38358rm -f conftest.$ac_objext conftest$ac_exeext
38359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38360 (eval $ac_link) 2>conftest.er1
a848cd7e 38361 ac_status=$?
ac1cb8d3
VS
38362 grep -v '^ *+' conftest.er1 >conftest.err
38363 rm -f conftest.er1
38364 cat conftest.err >&5
a848cd7e
SC
38365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366 (exit $ac_status); } &&
7067783d
PC
38367 { ac_try='test -z "$ac_cxx_werror_flag"
38368 || test ! -s conftest.err'
ac1cb8d3
VS
38369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38370 (eval $ac_try) 2>&5
38371 ac_status=$?
38372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); }; } &&
38374 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38376 (eval $ac_try) 2>&5
38377 ac_status=$?
38378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38379 (exit $ac_status); }; }; then
38380 ac_cv_lib_socket_inet_addr=yes
38381else
38382 echo "$as_me: failed program was:" >&5
38383sed 's/^/| /' conftest.$ac_ext >&5
38384
38385ac_cv_lib_socket_inet_addr=no
38386fi
ac1cb8d3
VS
38387rm -f conftest.err conftest.$ac_objext \
38388 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38389LIBS=$ac_check_lib_save_LIBS
38390fi
38391echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38392echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38393if test $ac_cv_lib_socket_inet_addr = yes; then
38394 INET_LINK="socket"
38395
38396fi
38397
38398
38399
38400fi
38401
38402
38403
38404fi
38405
38406
38407
38408fi
38409done
38410
38411
38412
38413for ac_func in inet_aton
38414do
38415as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38416echo "$as_me:$LINENO: checking for $ac_func" >&5
38417echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38418if eval "test \"\${$as_ac_var+set}\" = set"; then
38419 echo $ECHO_N "(cached) $ECHO_C" >&6
38420else
38421 cat >conftest.$ac_ext <<_ACEOF
38422/* confdefs.h. */
38423_ACEOF
38424cat confdefs.h >>conftest.$ac_ext
38425cat >>conftest.$ac_ext <<_ACEOF
38426/* end confdefs.h. */
ac1cb8d3
VS
38427/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38429#define $ac_func innocuous_$ac_func
38430
a848cd7e
SC
38431/* System header to define __stub macros and hopefully few prototypes,
38432 which can conflict with char $ac_func (); below.
38433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38434 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38435
a848cd7e
SC
38436#ifdef __STDC__
38437# include <limits.h>
38438#else
38439# include <assert.h>
38440#endif
ac1cb8d3
VS
38441
38442#undef $ac_func
38443
a848cd7e
SC
38444/* Override any gcc2 internal prototype to avoid an error. */
38445#ifdef __cplusplus
38446extern "C"
38447{
38448#endif
38449/* We use char because int might match the return type of a gcc2
38450 builtin and then its argument prototype would still apply. */
38451char $ac_func ();
38452/* The GNU C library defines this for functions which it implements
38453 to always fail with ENOSYS. Some functions are actually named
38454 something starting with __ and the normal name is an alias. */
38455#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38456choke me
38457#else
38458char (*f) () = $ac_func;
38459#endif
38460#ifdef __cplusplus
38461}
38462#endif
38463
38464int
38465main ()
38466{
38467return f != $ac_func;
38468 ;
38469 return 0;
38470}
38471_ACEOF
38472rm -f conftest.$ac_objext conftest$ac_exeext
38473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38474 (eval $ac_link) 2>conftest.er1
a848cd7e 38475 ac_status=$?
ac1cb8d3
VS
38476 grep -v '^ *+' conftest.er1 >conftest.err
38477 rm -f conftest.er1
38478 cat conftest.err >&5
a848cd7e
SC
38479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480 (exit $ac_status); } &&
7067783d
PC
38481 { ac_try='test -z "$ac_cxx_werror_flag"
38482 || test ! -s conftest.err'
ac1cb8d3
VS
38483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38484 (eval $ac_try) 2>&5
38485 ac_status=$?
38486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487 (exit $ac_status); }; } &&
38488 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38490 (eval $ac_try) 2>&5
38491 ac_status=$?
38492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493 (exit $ac_status); }; }; then
38494 eval "$as_ac_var=yes"
38495else
38496 echo "$as_me: failed program was:" >&5
38497sed 's/^/| /' conftest.$ac_ext >&5
38498
38499eval "$as_ac_var=no"
38500fi
ac1cb8d3
VS
38501rm -f conftest.err conftest.$ac_objext \
38502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38503fi
38504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38505echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38506if test `eval echo '${'$as_ac_var'}'` = yes; then
38507 cat >>confdefs.h <<_ACEOF
38508#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38509_ACEOF
38510 cat >>confdefs.h <<\_ACEOF
38511#define HAVE_INET_ATON 1
38512_ACEOF
38513
38514else
38515
38516 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38517echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38518echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38519if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38520 echo $ECHO_N "(cached) $ECHO_C" >&6
38521else
38522 ac_check_lib_save_LIBS=$LIBS
38523LIBS="-l$INET_LINK $LIBS"
38524cat >conftest.$ac_ext <<_ACEOF
38525/* confdefs.h. */
38526_ACEOF
38527cat confdefs.h >>conftest.$ac_ext
38528cat >>conftest.$ac_ext <<_ACEOF
38529/* end confdefs.h. */
38530
38531/* Override any gcc2 internal prototype to avoid an error. */
38532#ifdef __cplusplus
38533extern "C"
38534#endif
38535/* We use char because int might match the return type of a gcc2
38536 builtin and then its argument prototype would still apply. */
38537char inet_aton ();
38538int
38539main ()
38540{
38541inet_aton ();
38542 ;
38543 return 0;
38544}
38545_ACEOF
38546rm -f conftest.$ac_objext conftest$ac_exeext
38547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38548 (eval $ac_link) 2>conftest.er1
a848cd7e 38549 ac_status=$?
ac1cb8d3
VS
38550 grep -v '^ *+' conftest.er1 >conftest.err
38551 rm -f conftest.er1
38552 cat conftest.err >&5
a848cd7e
SC
38553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554 (exit $ac_status); } &&
7067783d
PC
38555 { ac_try='test -z "$ac_cxx_werror_flag"
38556 || test ! -s conftest.err'
ac1cb8d3
VS
38557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38558 (eval $ac_try) 2>&5
38559 ac_status=$?
38560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561 (exit $ac_status); }; } &&
38562 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38564 (eval $ac_try) 2>&5
38565 ac_status=$?
38566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38567 (exit $ac_status); }; }; then
38568 eval "$as_ac_Lib=yes"
38569else
38570 echo "$as_me: failed program was:" >&5
38571sed 's/^/| /' conftest.$ac_ext >&5
38572
38573eval "$as_ac_Lib=no"
38574fi
ac1cb8d3
VS
38575rm -f conftest.err conftest.$ac_objext \
38576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38577LIBS=$ac_check_lib_save_LIBS
38578fi
38579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38580echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38581if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38582 cat >>confdefs.h <<\_ACEOF
38583#define HAVE_INET_ATON 1
38584_ACEOF
38585
38586fi
38587
38588
38589fi
38590done
38591
38592
38593if test "x$INET_LINK" != "x"; then
38594 cat >>confdefs.h <<\_ACEOF
38595#define HAVE_INET_ADDR 1
38596_ACEOF
38597
38598 INET_LINK=" -l$INET_LINK"
38599fi
38600
38601fi
38602
38603
38604
38605EXTRALIBS_ESD=
38606echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38607echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38608if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38609 echo $ECHO_N "(cached) $ECHO_C" >&6
38610else
38611 ac_check_lib_save_LIBS=$LIBS
38612LIBS="-lesd $LIBS"
38613cat >conftest.$ac_ext <<_ACEOF
38614/* confdefs.h. */
38615_ACEOF
38616cat confdefs.h >>conftest.$ac_ext
38617cat >>conftest.$ac_ext <<_ACEOF
38618/* end confdefs.h. */
38619
38620/* Override any gcc2 internal prototype to avoid an error. */
38621#ifdef __cplusplus
38622extern "C"
38623#endif
38624/* We use char because int might match the return type of a gcc2
38625 builtin and then its argument prototype would still apply. */
38626char esd_close ();
38627int
38628main ()
38629{
38630esd_close ();
38631 ;
38632 return 0;
38633}
38634_ACEOF
38635rm -f conftest.$ac_objext conftest$ac_exeext
38636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38637 (eval $ac_link) 2>conftest.er1
a848cd7e 38638 ac_status=$?
ac1cb8d3
VS
38639 grep -v '^ *+' conftest.er1 >conftest.err
38640 rm -f conftest.er1
38641 cat conftest.err >&5
a848cd7e
SC
38642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38643 (exit $ac_status); } &&
7067783d
PC
38644 { ac_try='test -z "$ac_cxx_werror_flag"
38645 || test ! -s conftest.err'
ac1cb8d3
VS
38646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38647 (eval $ac_try) 2>&5
38648 ac_status=$?
38649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38650 (exit $ac_status); }; } &&
38651 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38653 (eval $ac_try) 2>&5
38654 ac_status=$?
38655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38656 (exit $ac_status); }; }; then
38657 ac_cv_lib_esd_esd_close=yes
38658else
38659 echo "$as_me: failed program was:" >&5
38660sed 's/^/| /' conftest.$ac_ext >&5
38661
38662ac_cv_lib_esd_esd_close=no
38663fi
ac1cb8d3
VS
38664rm -f conftest.err conftest.$ac_objext \
38665 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38666LIBS=$ac_check_lib_save_LIBS
38667fi
38668echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
38669echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
38670if test $ac_cv_lib_esd_esd_close = yes; then
38671
38672
38673for ac_header in esd.h
38674do
38675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38676if eval "test \"\${$as_ac_Header+set}\" = set"; then
38677 echo "$as_me:$LINENO: checking for $ac_header" >&5
38678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38679if eval "test \"\${$as_ac_Header+set}\" = set"; then
38680 echo $ECHO_N "(cached) $ECHO_C" >&6
38681fi
38682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38684else
38685 # Is the header compilable?
38686echo "$as_me:$LINENO: checking $ac_header usability" >&5
38687echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38688cat >conftest.$ac_ext <<_ACEOF
38689/* confdefs.h. */
38690_ACEOF
38691cat confdefs.h >>conftest.$ac_ext
38692cat >>conftest.$ac_ext <<_ACEOF
38693/* end confdefs.h. */
38694$ac_includes_default
38695#include <$ac_header>
38696_ACEOF
38697rm -f conftest.$ac_objext
38698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38699 (eval $ac_compile) 2>conftest.er1
a848cd7e 38700 ac_status=$?
ac1cb8d3
VS
38701 grep -v '^ *+' conftest.er1 >conftest.err
38702 rm -f conftest.er1
38703 cat conftest.err >&5
a848cd7e
SC
38704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38705 (exit $ac_status); } &&
7067783d
PC
38706 { ac_try='test -z "$ac_cxx_werror_flag"
38707 || test ! -s conftest.err'
ac1cb8d3
VS
38708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38709 (eval $ac_try) 2>&5
38710 ac_status=$?
38711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38712 (exit $ac_status); }; } &&
38713 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38715 (eval $ac_try) 2>&5
38716 ac_status=$?
38717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38718 (exit $ac_status); }; }; then
38719 ac_header_compiler=yes
38720else
38721 echo "$as_me: failed program was:" >&5
38722sed 's/^/| /' conftest.$ac_ext >&5
38723
38724ac_header_compiler=no
38725fi
ac1cb8d3 38726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38727echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38728echo "${ECHO_T}$ac_header_compiler" >&6
38729
38730# Is the header present?
38731echo "$as_me:$LINENO: checking $ac_header presence" >&5
38732echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38733cat >conftest.$ac_ext <<_ACEOF
38734/* confdefs.h. */
38735_ACEOF
38736cat confdefs.h >>conftest.$ac_ext
38737cat >>conftest.$ac_ext <<_ACEOF
38738/* end confdefs.h. */
38739#include <$ac_header>
38740_ACEOF
38741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38743 ac_status=$?
38744 grep -v '^ *+' conftest.er1 >conftest.err
38745 rm -f conftest.er1
38746 cat conftest.err >&5
38747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38748 (exit $ac_status); } >/dev/null; then
38749 if test -s conftest.err; then
5d7b7554
VZ
38750 ac_cpp_err=$ac_cxx_preproc_warn_flag
38751 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38752 else
38753 ac_cpp_err=
38754 fi
38755else
38756 ac_cpp_err=yes
38757fi
38758if test -z "$ac_cpp_err"; then
38759 ac_header_preproc=yes
38760else
38761 echo "$as_me: failed program was:" >&5
38762sed 's/^/| /' conftest.$ac_ext >&5
38763
38764 ac_header_preproc=no
38765fi
38766rm -f conftest.err conftest.$ac_ext
38767echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38768echo "${ECHO_T}$ac_header_preproc" >&6
38769
38770# So? What about this header?
5d7b7554 38771case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38772 yes:no: )
a848cd7e
SC
38773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38774echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38776echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38777 ac_header_preproc=yes
a848cd7e 38778 ;;
ac1cb8d3 38779 no:yes:* )
a848cd7e
SC
38780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38781echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38783echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38785echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38787echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38789echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38791echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38792 (
38793 cat <<\_ASBOX
ac1cb8d3
VS
38794## ----------------------------------------- ##
38795## Report this to wx-dev@lists.wxwidgets.org ##
38796## ----------------------------------------- ##
a848cd7e
SC
38797_ASBOX
38798 ) |
38799 sed "s/^/$as_me: WARNING: /" >&2
38800 ;;
38801esac
38802echo "$as_me:$LINENO: checking for $ac_header" >&5
38803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38804if eval "test \"\${$as_ac_Header+set}\" = set"; then
38805 echo $ECHO_N "(cached) $ECHO_C" >&6
38806else
ac1cb8d3 38807 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38808fi
38809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38811
38812fi
38813if test `eval echo '${'$as_ac_Header'}'` = yes; then
38814 cat >>confdefs.h <<_ACEOF
38815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38816_ACEOF
38817
38818 EXTRALIBS_ESD="-lesd"
38819
38820fi
38821
38822done
38823
38824
38825fi
38826
38827
38828
38829echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38830echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38831cat >conftest.$ac_ext <<_ACEOF
38832/* confdefs.h. */
38833_ACEOF
38834cat confdefs.h >>conftest.$ac_ext
38835cat >>conftest.$ac_ext <<_ACEOF
38836/* end confdefs.h. */
38837#ifdef __linux__
38838 #include <linux/cdrom.h>
38839 #else
38840 /* For Solaris */
38841 #include <sys/cdio.h>
38842 #endif
38843
38844int
38845main ()
38846{
38847struct cdrom_tocentry entry, old_entry;
38848 ;
38849 return 0;
38850}
38851_ACEOF
38852rm -f conftest.$ac_objext
38853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38854 (eval $ac_compile) 2>conftest.er1
a848cd7e 38855 ac_status=$?
ac1cb8d3
VS
38856 grep -v '^ *+' conftest.er1 >conftest.err
38857 rm -f conftest.er1
38858 cat conftest.err >&5
a848cd7e
SC
38859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38860 (exit $ac_status); } &&
7067783d
PC
38861 { ac_try='test -z "$ac_cxx_werror_flag"
38862 || test ! -s conftest.err'
ac1cb8d3
VS
38863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38864 (eval $ac_try) 2>&5
38865 ac_status=$?
38866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38867 (exit $ac_status); }; } &&
38868 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38870 (eval $ac_try) 2>&5
38871 ac_status=$?
38872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38873 (exit $ac_status); }; }; then
38874 echo "$as_me:$LINENO: result: yes" >&5
38875echo "${ECHO_T}yes" >&6
38876 cat >>confdefs.h <<\_ACEOF
38877#define HAVE_KNOWN_CDROM_INTERFACE 1
38878_ACEOF
38879
38880else
38881 echo "$as_me: failed program was:" >&5
38882sed 's/^/| /' conftest.$ac_ext >&5
38883
38884echo "$as_me:$LINENO: result: no" >&5
38885echo "${ECHO_T}no" >&6
38886fi
ac1cb8d3 38887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38888
38889
38890cat >confcache <<\_ACEOF
38891# This file is a shell script that caches the results of configure
38892# tests run on this system so they can be shared between configure
38893# scripts and configure runs, see configure's option --config-cache.
38894# It is not useful on other systems. If it contains results you don't
38895# want to keep, you may remove or edit it.
38896#
38897# config.status only pays attention to the cache file if you give it
38898# the --recheck option to rerun configure.
38899#
38900# `ac_cv_env_foo' variables (set or unset) will be overridden when
38901# loading this file, other *unset* `ac_cv_foo' will be assigned the
38902# following values.
38903
38904_ACEOF
38905
38906# The following way of writing the cache mishandles newlines in values,
38907# but we know of no workaround that is simple, portable, and efficient.
38908# So, don't put newlines in cache variables' values.
38909# Ultrix sh set writes to stderr and can't be redirected directly,
38910# and sets the high bit in the cache file unless we assign to the vars.
38911{
38912 (set) 2>&1 |
38913 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38914 *ac_space=\ *)
38915 # `set' does not quote correctly, so add quotes (double-quote
38916 # substitution turns \\\\ into \\, and sed turns \\ into \).
38917 sed -n \
ac1cb8d3
VS
38918 "s/'/'\\\\''/g;
38919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
38920 ;;
38921 *)
38922 # `set' quotes correctly as required by POSIX, so do not add quotes.
38923 sed -n \
ac1cb8d3 38924 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
38925 ;;
38926 esac;
38927} |
38928 sed '
38929 t clear
38930 : clear
38931 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38932 t end
38933 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38934 : end' >>confcache
38935if diff $cache_file confcache >/dev/null 2>&1; then :; else
38936 if test -w $cache_file; then
38937 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38938 cat confcache >$cache_file
38939 else
38940 echo "not updating unwritable cache $cache_file"
38941 fi
38942fi
38943rm -f confcache
38944
38945
a848cd7e
SC
38946if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38947
38948
38949 THREADS_LINK=
e56f4f9e 38950 THREADS_CXXFLAGS=
a848cd7e
SC
38951
38952 if test "$wxUSE_THREADS" = "yes" ; then
38953 if test "$USE_BEOS" = 1; then
38954 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38955echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38956 wxUSE_THREADS="no"
38957 fi
38958 fi
38959
38960 if test "$wxUSE_THREADS" = "yes" ; then
38961
38962
38963 THREAD_OPTS="-pthread"
38964 case "${host}" in
38965 *-*-solaris2* | *-*-sunos4* )
38966 if test "x$GCC" = "xyes"; then
38967 THREAD_OPTS="-pthreads $THREAD_OPTS"
38968 else
38969 THREAD_OPTS="-mt $THREAD_OPTS"
38970 fi
38971 ;;
38972 *-*-freebsd*)
38973 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38974 ;;
38975 *-*-darwin* | *-*-cygwin* )
38976 THREAD_OPTS=""
38977 ;;
38978 *-*-aix*)
38979 THREAD_OPTS="pthreads"
38980 ;;
38981 *-hp-hpux* )
00421666
MW
38982 if test "x$GCC" = "xyes"; then
38983 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38984 THREAD_OPTS=""
38985 else
0093c2fc 38986 THREAD_OPTS="-mt"
a848cd7e
SC
38987 fi
38988 ;;
38989
38990 *-*-irix* )
38991 if test "x$GCC" = "xyes"; then
38992 THREAD_OPTS=""
38993 fi
38994 ;;
38995
38996 *-*-*UnixWare*)
38997 if test "x$GCC" != "xyes"; then
38998 THREAD_OPTS="-Ethread"
38999 fi
39000 ;;
39001 esac
39002
39003 THREAD_OPTS="$THREAD_OPTS pthread none"
39004
39005 THREADS_OK=no
39006 for flag in $THREAD_OPTS; do
39007 case $flag in
39008 none)
39009 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39010echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
39011 ;;
39012
39013 -*)
39014 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39015echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 39016 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
39017 ;;
39018
39019 *)
39020 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39021echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
39022 THREADS_LINK="-l$flag"
39023 ;;
39024 esac
39025
39026 save_LIBS="$LIBS"
e56f4f9e 39027 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 39028 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 39029 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
39030
39031 cat >conftest.$ac_ext <<_ACEOF
39032/* confdefs.h. */
39033_ACEOF
39034cat confdefs.h >>conftest.$ac_ext
39035cat >>conftest.$ac_ext <<_ACEOF
39036/* end confdefs.h. */
39037#include <pthread.h>
39038int
39039main ()
39040{
39041pthread_create(0,0,0,0);
39042 ;
39043 return 0;
39044}
39045_ACEOF
39046rm -f conftest.$ac_objext conftest$ac_exeext
39047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39048 (eval $ac_link) 2>conftest.er1
a848cd7e 39049 ac_status=$?
ac1cb8d3
VS
39050 grep -v '^ *+' conftest.er1 >conftest.err
39051 rm -f conftest.er1
39052 cat conftest.err >&5
a848cd7e
SC
39053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054 (exit $ac_status); } &&
7067783d
PC
39055 { ac_try='test -z "$ac_cxx_werror_flag"
39056 || test ! -s conftest.err'
ac1cb8d3
VS
39057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39058 (eval $ac_try) 2>&5
39059 ac_status=$?
39060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39061 (exit $ac_status); }; } &&
39062 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39064 (eval $ac_try) 2>&5
39065 ac_status=$?
39066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39067 (exit $ac_status); }; }; then
39068 THREADS_OK=yes
39069else
39070 echo "$as_me: failed program was:" >&5
39071sed 's/^/| /' conftest.$ac_ext >&5
39072
39073fi
ac1cb8d3
VS
39074rm -f conftest.err conftest.$ac_objext \
39075 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39076
39077 LIBS="$save_LIBS"
e56f4f9e 39078 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
39079
39080 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39081echo "${ECHO_T}$THREADS_OK" >&6
39082 if test "x$THREADS_OK" = "xyes"; then
39083 break;
39084 fi
39085
39086 THREADS_LINK=""
e56f4f9e 39087 THREADS_CXXFLAGS=""
a848cd7e
SC
39088 done
39089
39090 if test "x$THREADS_OK" != "xyes"; then
39091 wxUSE_THREADS=no
39092 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39093echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39094 else
e56f4f9e 39095 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
39096 LIBS="$THREADS_LINK $LIBS"
39097
39098 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39099echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
39100 flag=no
39101 case "${host}" in
39102 *-aix*)
39103 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39104 flag="-D_THREAD_SAFE"
39105 ;;
39106 *-freebsd*)
39107 flag="-D_THREAD_SAFE"
39108 ;;
39109 *-hp-hpux* )
39110 flag="-D_REENTRANT"
39111 if test "x$GCC" != "xyes"; then
39112 flag="$flag -D_RWSTD_MULTI_THREAD"
39113 fi
39114 ;;
39115 *solaris* | alpha*-osf*)
39116 flag="-D_REENTRANT"
39117 ;;
39118 esac
39119 echo "$as_me:$LINENO: result: ${flag}" >&5
39120echo "${ECHO_T}${flag}" >&6
39121 if test "x$flag" != xno; then
e56f4f9e 39122 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
39123 fi
39124
e56f4f9e 39125 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
39126 fi
39127 fi
39128
39129 if test "$wxUSE_THREADS" = "yes" ; then
39130
39131for ac_func in thr_setconcurrency
39132do
39133as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39134echo "$as_me:$LINENO: checking for $ac_func" >&5
39135echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39136if eval "test \"\${$as_ac_var+set}\" = set"; then
39137 echo $ECHO_N "(cached) $ECHO_C" >&6
39138else
39139 cat >conftest.$ac_ext <<_ACEOF
39140/* confdefs.h. */
39141_ACEOF
39142cat confdefs.h >>conftest.$ac_ext
39143cat >>conftest.$ac_ext <<_ACEOF
39144/* end confdefs.h. */
ac1cb8d3
VS
39145/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39147#define $ac_func innocuous_$ac_func
39148
a848cd7e
SC
39149/* System header to define __stub macros and hopefully few prototypes,
39150 which can conflict with char $ac_func (); below.
39151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39152 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39153
a848cd7e
SC
39154#ifdef __STDC__
39155# include <limits.h>
39156#else
39157# include <assert.h>
39158#endif
ac1cb8d3
VS
39159
39160#undef $ac_func
39161
a848cd7e
SC
39162/* Override any gcc2 internal prototype to avoid an error. */
39163#ifdef __cplusplus
39164extern "C"
39165{
39166#endif
39167/* We use char because int might match the return type of a gcc2
39168 builtin and then its argument prototype would still apply. */
39169char $ac_func ();
39170/* The GNU C library defines this for functions which it implements
39171 to always fail with ENOSYS. Some functions are actually named
39172 something starting with __ and the normal name is an alias. */
39173#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39174choke me
39175#else
39176char (*f) () = $ac_func;
39177#endif
39178#ifdef __cplusplus
39179}
39180#endif
39181
39182int
39183main ()
39184{
39185return f != $ac_func;
39186 ;
39187 return 0;
39188}
39189_ACEOF
39190rm -f conftest.$ac_objext conftest$ac_exeext
39191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39192 (eval $ac_link) 2>conftest.er1
a848cd7e 39193 ac_status=$?
ac1cb8d3
VS
39194 grep -v '^ *+' conftest.er1 >conftest.err
39195 rm -f conftest.er1
39196 cat conftest.err >&5
a848cd7e
SC
39197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39198 (exit $ac_status); } &&
7067783d
PC
39199 { ac_try='test -z "$ac_cxx_werror_flag"
39200 || test ! -s conftest.err'
ac1cb8d3
VS
39201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39202 (eval $ac_try) 2>&5
39203 ac_status=$?
39204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39205 (exit $ac_status); }; } &&
39206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39208 (eval $ac_try) 2>&5
39209 ac_status=$?
39210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39211 (exit $ac_status); }; }; then
39212 eval "$as_ac_var=yes"
39213else
39214 echo "$as_me: failed program was:" >&5
39215sed 's/^/| /' conftest.$ac_ext >&5
39216
39217eval "$as_ac_var=no"
39218fi
ac1cb8d3
VS
39219rm -f conftest.err conftest.$ac_objext \
39220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39221fi
39222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39224if test `eval echo '${'$as_ac_var'}'` = yes; then
39225 cat >>confdefs.h <<_ACEOF
39226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39227_ACEOF
39228
39229fi
39230done
39231
39232
6ebeb4c7
VZ
39233 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39234echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
39235if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39236 echo $ECHO_N "(cached) $ECHO_C" >&6
39237else
39238
39239 cat >conftest.$ac_ext <<_ACEOF
39240/* confdefs.h. */
39241_ACEOF
39242cat confdefs.h >>conftest.$ac_ext
39243cat >>conftest.$ac_ext <<_ACEOF
39244/* end confdefs.h. */
39245#include <pthread.h>
39246 void ThreadCleanupFunc(void *p);
39247
39248int
39249main ()
39250{
39251
39252 void *p;
39253 pthread_cleanup_push(ThreadCleanupFunc, p);
39254 pthread_cleanup_pop(0);
39255
39256 ;
39257 return 0;
39258}
39259_ACEOF
39260rm -f conftest.$ac_objext
39261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39262 (eval $ac_compile) 2>conftest.er1
39263 ac_status=$?
39264 grep -v '^ *+' conftest.er1 >conftest.err
39265 rm -f conftest.er1
39266 cat conftest.err >&5
39267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268 (exit $ac_status); } &&
7067783d
PC
39269 { ac_try='test -z "$ac_cxx_werror_flag"
39270 || test ! -s conftest.err'
6ebeb4c7
VZ
39271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39272 (eval $ac_try) 2>&5
39273 ac_status=$?
39274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39275 (exit $ac_status); }; } &&
39276 { ac_try='test -s conftest.$ac_objext'
39277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39278 (eval $ac_try) 2>&5
39279 ac_status=$?
39280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39281 (exit $ac_status); }; }; then
39282
39283 wx_cv_func_pthread_cleanup=yes
39284
39285else
39286 echo "$as_me: failed program was:" >&5
39287sed 's/^/| /' conftest.$ac_ext >&5
39288
39289
39290 wx_cv_func_pthread_cleanup=no
39291
39292
39293fi
39294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39295
39296fi
39297echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39298echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39299 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39300 cat >>confdefs.h <<\_ACEOF
39301#define wxHAVE_PTHREAD_CLEANUP 1
39302_ACEOF
39303
39304 fi
39305
a848cd7e
SC
39306
39307for ac_header in sched.h
39308do
39309as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39310if eval "test \"\${$as_ac_Header+set}\" = set"; then
39311 echo "$as_me:$LINENO: checking for $ac_header" >&5
39312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39313if eval "test \"\${$as_ac_Header+set}\" = set"; then
39314 echo $ECHO_N "(cached) $ECHO_C" >&6
39315fi
39316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39318else
39319 # Is the header compilable?
39320echo "$as_me:$LINENO: checking $ac_header usability" >&5
39321echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39322cat >conftest.$ac_ext <<_ACEOF
39323/* confdefs.h. */
39324_ACEOF
39325cat confdefs.h >>conftest.$ac_ext
39326cat >>conftest.$ac_ext <<_ACEOF
39327/* end confdefs.h. */
39328$ac_includes_default
39329#include <$ac_header>
39330_ACEOF
39331rm -f conftest.$ac_objext
39332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39333 (eval $ac_compile) 2>conftest.er1
a848cd7e 39334 ac_status=$?
ac1cb8d3
VS
39335 grep -v '^ *+' conftest.er1 >conftest.err
39336 rm -f conftest.er1
39337 cat conftest.err >&5
a848cd7e
SC
39338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39339 (exit $ac_status); } &&
7067783d
PC
39340 { ac_try='test -z "$ac_cxx_werror_flag"
39341 || test ! -s conftest.err'
ac1cb8d3
VS
39342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39343 (eval $ac_try) 2>&5
39344 ac_status=$?
39345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39346 (exit $ac_status); }; } &&
39347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39349 (eval $ac_try) 2>&5
39350 ac_status=$?
39351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39352 (exit $ac_status); }; }; then
39353 ac_header_compiler=yes
39354else
39355 echo "$as_me: failed program was:" >&5
39356sed 's/^/| /' conftest.$ac_ext >&5
39357
39358ac_header_compiler=no
39359fi
ac1cb8d3 39360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39361echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39362echo "${ECHO_T}$ac_header_compiler" >&6
39363
39364# Is the header present?
39365echo "$as_me:$LINENO: checking $ac_header presence" >&5
39366echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39367cat >conftest.$ac_ext <<_ACEOF
39368/* confdefs.h. */
39369_ACEOF
39370cat confdefs.h >>conftest.$ac_ext
39371cat >>conftest.$ac_ext <<_ACEOF
39372/* end confdefs.h. */
39373#include <$ac_header>
39374_ACEOF
39375if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39377 ac_status=$?
39378 grep -v '^ *+' conftest.er1 >conftest.err
39379 rm -f conftest.er1
39380 cat conftest.err >&5
39381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39382 (exit $ac_status); } >/dev/null; then
39383 if test -s conftest.err; then
5d7b7554
VZ
39384 ac_cpp_err=$ac_cxx_preproc_warn_flag
39385 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39386 else
39387 ac_cpp_err=
39388 fi
39389else
39390 ac_cpp_err=yes
39391fi
39392if test -z "$ac_cpp_err"; then
39393 ac_header_preproc=yes
39394else
39395 echo "$as_me: failed program was:" >&5
39396sed 's/^/| /' conftest.$ac_ext >&5
39397
39398 ac_header_preproc=no
39399fi
39400rm -f conftest.err conftest.$ac_ext
39401echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39402echo "${ECHO_T}$ac_header_preproc" >&6
39403
39404# So? What about this header?
5d7b7554 39405case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 39406 yes:no: )
a848cd7e
SC
39407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39408echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39410echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39411 ac_header_preproc=yes
a848cd7e 39412 ;;
ac1cb8d3 39413 no:yes:* )
a848cd7e
SC
39414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39415echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39417echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39419echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39421echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39423echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39425echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39426 (
39427 cat <<\_ASBOX
ac1cb8d3
VS
39428## ----------------------------------------- ##
39429## Report this to wx-dev@lists.wxwidgets.org ##
39430## ----------------------------------------- ##
a848cd7e
SC
39431_ASBOX
39432 ) |
39433 sed "s/^/$as_me: WARNING: /" >&2
39434 ;;
39435esac
39436echo "$as_me:$LINENO: checking for $ac_header" >&5
39437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39438if eval "test \"\${$as_ac_Header+set}\" = set"; then
39439 echo $ECHO_N "(cached) $ECHO_C" >&6
39440else
ac1cb8d3 39441 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39442fi
39443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39445
39446fi
39447if test `eval echo '${'$as_ac_Header'}'` = yes; then
39448 cat >>confdefs.h <<_ACEOF
39449#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39450_ACEOF
39451
39452fi
39453
39454done
39455
39456 if test "$ac_cv_header_sched_h" = "yes"; then
39457 echo "$as_me:$LINENO: checking for sched_yield" >&5
39458echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39459if test "${ac_cv_func_sched_yield+set}" = set; then
39460 echo $ECHO_N "(cached) $ECHO_C" >&6
39461else
39462 cat >conftest.$ac_ext <<_ACEOF
39463/* confdefs.h. */
39464_ACEOF
39465cat confdefs.h >>conftest.$ac_ext
39466cat >>conftest.$ac_ext <<_ACEOF
39467/* end confdefs.h. */
ac1cb8d3
VS
39468/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39470#define sched_yield innocuous_sched_yield
39471
a848cd7e
SC
39472/* System header to define __stub macros and hopefully few prototypes,
39473 which can conflict with char sched_yield (); below.
39474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39475 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39476
a848cd7e
SC
39477#ifdef __STDC__
39478# include <limits.h>
39479#else
39480# include <assert.h>
39481#endif
ac1cb8d3
VS
39482
39483#undef sched_yield
39484
a848cd7e
SC
39485/* Override any gcc2 internal prototype to avoid an error. */
39486#ifdef __cplusplus
39487extern "C"
39488{
39489#endif
39490/* We use char because int might match the return type of a gcc2
39491 builtin and then its argument prototype would still apply. */
39492char sched_yield ();
39493/* The GNU C library defines this for functions which it implements
39494 to always fail with ENOSYS. Some functions are actually named
39495 something starting with __ and the normal name is an alias. */
39496#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39497choke me
39498#else
39499char (*f) () = sched_yield;
39500#endif
39501#ifdef __cplusplus
39502}
39503#endif
39504
39505int
39506main ()
39507{
39508return f != sched_yield;
39509 ;
39510 return 0;
39511}
39512_ACEOF
39513rm -f conftest.$ac_objext conftest$ac_exeext
39514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39515 (eval $ac_link) 2>conftest.er1
a848cd7e 39516 ac_status=$?
ac1cb8d3
VS
39517 grep -v '^ *+' conftest.er1 >conftest.err
39518 rm -f conftest.er1
39519 cat conftest.err >&5
a848cd7e
SC
39520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39521 (exit $ac_status); } &&
7067783d
PC
39522 { ac_try='test -z "$ac_cxx_werror_flag"
39523 || test ! -s conftest.err'
ac1cb8d3
VS
39524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39525 (eval $ac_try) 2>&5
39526 ac_status=$?
39527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39528 (exit $ac_status); }; } &&
39529 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39531 (eval $ac_try) 2>&5
39532 ac_status=$?
39533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39534 (exit $ac_status); }; }; then
39535 ac_cv_func_sched_yield=yes
39536else
39537 echo "$as_me: failed program was:" >&5
39538sed 's/^/| /' conftest.$ac_ext >&5
39539
39540ac_cv_func_sched_yield=no
39541fi
ac1cb8d3
VS
39542rm -f conftest.err conftest.$ac_objext \
39543 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39544fi
39545echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39546echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39547if test $ac_cv_func_sched_yield = yes; then
39548 cat >>confdefs.h <<\_ACEOF
39549#define HAVE_SCHED_YIELD 1
39550_ACEOF
39551
39552else
39553
39554 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39555echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39556if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39557 echo $ECHO_N "(cached) $ECHO_C" >&6
39558else
39559 ac_check_lib_save_LIBS=$LIBS
39560LIBS="-lposix4 $LIBS"
39561cat >conftest.$ac_ext <<_ACEOF
39562/* confdefs.h. */
39563_ACEOF
39564cat confdefs.h >>conftest.$ac_ext
39565cat >>conftest.$ac_ext <<_ACEOF
39566/* end confdefs.h. */
39567
39568/* Override any gcc2 internal prototype to avoid an error. */
39569#ifdef __cplusplus
39570extern "C"
39571#endif
39572/* We use char because int might match the return type of a gcc2
39573 builtin and then its argument prototype would still apply. */
39574char sched_yield ();
39575int
39576main ()
39577{
39578sched_yield ();
39579 ;
39580 return 0;
39581}
39582_ACEOF
39583rm -f conftest.$ac_objext conftest$ac_exeext
39584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39585 (eval $ac_link) 2>conftest.er1
a848cd7e 39586 ac_status=$?
ac1cb8d3
VS
39587 grep -v '^ *+' conftest.er1 >conftest.err
39588 rm -f conftest.er1
39589 cat conftest.err >&5
a848cd7e
SC
39590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39591 (exit $ac_status); } &&
7067783d
PC
39592 { ac_try='test -z "$ac_cxx_werror_flag"
39593 || test ! -s conftest.err'
ac1cb8d3
VS
39594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39595 (eval $ac_try) 2>&5
39596 ac_status=$?
39597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39598 (exit $ac_status); }; } &&
39599 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39601 (eval $ac_try) 2>&5
39602 ac_status=$?
39603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39604 (exit $ac_status); }; }; then
39605 ac_cv_lib_posix4_sched_yield=yes
39606else
39607 echo "$as_me: failed program was:" >&5
39608sed 's/^/| /' conftest.$ac_ext >&5
39609
39610ac_cv_lib_posix4_sched_yield=no
39611fi
ac1cb8d3
VS
39612rm -f conftest.err conftest.$ac_objext \
39613 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39614LIBS=$ac_check_lib_save_LIBS
39615fi
39616echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39617echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39618if test $ac_cv_lib_posix4_sched_yield = yes; then
39619 cat >>confdefs.h <<\_ACEOF
39620#define HAVE_SCHED_YIELD 1
39621_ACEOF
39622 POSIX4_LINK=" -lposix4"
39623else
39624 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39625echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39626
39627fi
39628
39629
39630
39631fi
39632
39633 fi
39634
39635 HAVE_PRIOR_FUNCS=0
39636 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39637echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39638if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39639 echo $ECHO_N "(cached) $ECHO_C" >&6
39640else
39641 cat >conftest.$ac_ext <<_ACEOF
39642/* confdefs.h. */
39643_ACEOF
39644cat confdefs.h >>conftest.$ac_ext
39645cat >>conftest.$ac_ext <<_ACEOF
39646/* end confdefs.h. */
ac1cb8d3
VS
39647/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39649#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39650
a848cd7e
SC
39651/* System header to define __stub macros and hopefully few prototypes,
39652 which can conflict with char pthread_attr_getschedpolicy (); below.
39653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39654 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39655
a848cd7e
SC
39656#ifdef __STDC__
39657# include <limits.h>
39658#else
39659# include <assert.h>
39660#endif
ac1cb8d3
VS
39661
39662#undef pthread_attr_getschedpolicy
39663
a848cd7e
SC
39664/* Override any gcc2 internal prototype to avoid an error. */
39665#ifdef __cplusplus
39666extern "C"
39667{
39668#endif
39669/* We use char because int might match the return type of a gcc2
39670 builtin and then its argument prototype would still apply. */
39671char pthread_attr_getschedpolicy ();
39672/* The GNU C library defines this for functions which it implements
39673 to always fail with ENOSYS. Some functions are actually named
39674 something starting with __ and the normal name is an alias. */
39675#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
39676choke me
39677#else
39678char (*f) () = pthread_attr_getschedpolicy;
39679#endif
39680#ifdef __cplusplus
39681}
39682#endif
39683
39684int
39685main ()
39686{
39687return f != pthread_attr_getschedpolicy;
39688 ;
39689 return 0;
39690}
39691_ACEOF
39692rm -f conftest.$ac_objext conftest$ac_exeext
39693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39694 (eval $ac_link) 2>conftest.er1
a848cd7e 39695 ac_status=$?
ac1cb8d3
VS
39696 grep -v '^ *+' conftest.er1 >conftest.err
39697 rm -f conftest.er1
39698 cat conftest.err >&5
a848cd7e
SC
39699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39700 (exit $ac_status); } &&
7067783d
PC
39701 { ac_try='test -z "$ac_cxx_werror_flag"
39702 || test ! -s conftest.err'
ac1cb8d3
VS
39703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39704 (eval $ac_try) 2>&5
39705 ac_status=$?
39706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39707 (exit $ac_status); }; } &&
39708 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39710 (eval $ac_try) 2>&5
39711 ac_status=$?
39712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39713 (exit $ac_status); }; }; then
39714 ac_cv_func_pthread_attr_getschedpolicy=yes
39715else
39716 echo "$as_me: failed program was:" >&5
39717sed 's/^/| /' conftest.$ac_ext >&5
39718
39719ac_cv_func_pthread_attr_getschedpolicy=no
39720fi
ac1cb8d3
VS
39721rm -f conftest.err conftest.$ac_objext \
39722 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39723fi
39724echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39725echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
39726if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39727 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39728echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
39729if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39730 echo $ECHO_N "(cached) $ECHO_C" >&6
39731else
39732 cat >conftest.$ac_ext <<_ACEOF
39733/* confdefs.h. */
39734_ACEOF
39735cat confdefs.h >>conftest.$ac_ext
39736cat >>conftest.$ac_ext <<_ACEOF
39737/* end confdefs.h. */
ac1cb8d3
VS
39738/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39740#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39741
a848cd7e
SC
39742/* System header to define __stub macros and hopefully few prototypes,
39743 which can conflict with char pthread_attr_setschedparam (); below.
39744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39745 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39746
a848cd7e
SC
39747#ifdef __STDC__
39748# include <limits.h>
39749#else
39750# include <assert.h>
39751#endif
ac1cb8d3
VS
39752
39753#undef pthread_attr_setschedparam
39754
a848cd7e
SC
39755/* Override any gcc2 internal prototype to avoid an error. */
39756#ifdef __cplusplus
39757extern "C"
39758{
39759#endif
39760/* We use char because int might match the return type of a gcc2
39761 builtin and then its argument prototype would still apply. */
39762char pthread_attr_setschedparam ();
39763/* The GNU C library defines this for functions which it implements
39764 to always fail with ENOSYS. Some functions are actually named
39765 something starting with __ and the normal name is an alias. */
39766#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
39767choke me
39768#else
39769char (*f) () = pthread_attr_setschedparam;
39770#endif
39771#ifdef __cplusplus
39772}
39773#endif
39774
39775int
39776main ()
39777{
39778return f != pthread_attr_setschedparam;
39779 ;
39780 return 0;
39781}
39782_ACEOF
39783rm -f conftest.$ac_objext conftest$ac_exeext
39784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39785 (eval $ac_link) 2>conftest.er1
a848cd7e 39786 ac_status=$?
ac1cb8d3
VS
39787 grep -v '^ *+' conftest.er1 >conftest.err
39788 rm -f conftest.er1
39789 cat conftest.err >&5
a848cd7e
SC
39790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39791 (exit $ac_status); } &&
7067783d
PC
39792 { ac_try='test -z "$ac_cxx_werror_flag"
39793 || test ! -s conftest.err'
ac1cb8d3
VS
39794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39795 (eval $ac_try) 2>&5
39796 ac_status=$?
39797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39798 (exit $ac_status); }; } &&
39799 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39801 (eval $ac_try) 2>&5
39802 ac_status=$?
39803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39804 (exit $ac_status); }; }; then
39805 ac_cv_func_pthread_attr_setschedparam=yes
39806else
39807 echo "$as_me: failed program was:" >&5
39808sed 's/^/| /' conftest.$ac_ext >&5
39809
39810ac_cv_func_pthread_attr_setschedparam=no
39811fi
ac1cb8d3
VS
39812rm -f conftest.err conftest.$ac_objext \
39813 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39814fi
39815echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39816echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39817if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39818 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39819echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39820if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39821 echo $ECHO_N "(cached) $ECHO_C" >&6
39822else
39823 cat >conftest.$ac_ext <<_ACEOF
39824/* confdefs.h. */
39825_ACEOF
39826cat confdefs.h >>conftest.$ac_ext
39827cat >>conftest.$ac_ext <<_ACEOF
39828/* end confdefs.h. */
ac1cb8d3
VS
39829/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39831#define sched_get_priority_max innocuous_sched_get_priority_max
39832
a848cd7e
SC
39833/* System header to define __stub macros and hopefully few prototypes,
39834 which can conflict with char sched_get_priority_max (); below.
39835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39836 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39837
a848cd7e
SC
39838#ifdef __STDC__
39839# include <limits.h>
39840#else
39841# include <assert.h>
39842#endif
ac1cb8d3
VS
39843
39844#undef sched_get_priority_max
39845
a848cd7e
SC
39846/* Override any gcc2 internal prototype to avoid an error. */
39847#ifdef __cplusplus
39848extern "C"
39849{
39850#endif
39851/* We use char because int might match the return type of a gcc2
39852 builtin and then its argument prototype would still apply. */
39853char sched_get_priority_max ();
39854/* The GNU C library defines this for functions which it implements
39855 to always fail with ENOSYS. Some functions are actually named
39856 something starting with __ and the normal name is an alias. */
39857#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39858choke me
39859#else
39860char (*f) () = sched_get_priority_max;
39861#endif
39862#ifdef __cplusplus
39863}
39864#endif
39865
39866int
39867main ()
39868{
39869return f != sched_get_priority_max;
39870 ;
39871 return 0;
39872}
39873_ACEOF
39874rm -f conftest.$ac_objext conftest$ac_exeext
39875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39876 (eval $ac_link) 2>conftest.er1
a848cd7e 39877 ac_status=$?
ac1cb8d3
VS
39878 grep -v '^ *+' conftest.er1 >conftest.err
39879 rm -f conftest.er1
39880 cat conftest.err >&5
a848cd7e
SC
39881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39882 (exit $ac_status); } &&
7067783d
PC
39883 { ac_try='test -z "$ac_cxx_werror_flag"
39884 || test ! -s conftest.err'
ac1cb8d3
VS
39885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39886 (eval $ac_try) 2>&5
39887 ac_status=$?
39888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39889 (exit $ac_status); }; } &&
39890 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39892 (eval $ac_try) 2>&5
39893 ac_status=$?
39894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39895 (exit $ac_status); }; }; then
39896 ac_cv_func_sched_get_priority_max=yes
39897else
39898 echo "$as_me: failed program was:" >&5
39899sed 's/^/| /' conftest.$ac_ext >&5
39900
39901ac_cv_func_sched_get_priority_max=no
39902fi
ac1cb8d3
VS
39903rm -f conftest.err conftest.$ac_objext \
39904 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39905fi
39906echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39907echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
39908if test $ac_cv_func_sched_get_priority_max = yes; then
39909 HAVE_PRIOR_FUNCS=1
39910else
39911 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39912echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
39913if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39914 echo $ECHO_N "(cached) $ECHO_C" >&6
39915else
39916 ac_check_lib_save_LIBS=$LIBS
39917LIBS="-lposix4 $LIBS"
39918cat >conftest.$ac_ext <<_ACEOF
39919/* confdefs.h. */
39920_ACEOF
39921cat confdefs.h >>conftest.$ac_ext
39922cat >>conftest.$ac_ext <<_ACEOF
39923/* end confdefs.h. */
39924
39925/* Override any gcc2 internal prototype to avoid an error. */
39926#ifdef __cplusplus
39927extern "C"
39928#endif
39929/* We use char because int might match the return type of a gcc2
39930 builtin and then its argument prototype would still apply. */
39931char sched_get_priority_max ();
39932int
39933main ()
39934{
39935sched_get_priority_max ();
39936 ;
39937 return 0;
39938}
39939_ACEOF
39940rm -f conftest.$ac_objext conftest$ac_exeext
39941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39942 (eval $ac_link) 2>conftest.er1
a848cd7e 39943 ac_status=$?
ac1cb8d3
VS
39944 grep -v '^ *+' conftest.er1 >conftest.err
39945 rm -f conftest.er1
39946 cat conftest.err >&5
a848cd7e
SC
39947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39948 (exit $ac_status); } &&
7067783d
PC
39949 { ac_try='test -z "$ac_cxx_werror_flag"
39950 || test ! -s conftest.err'
ac1cb8d3
VS
39951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39952 (eval $ac_try) 2>&5
39953 ac_status=$?
39954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39955 (exit $ac_status); }; } &&
39956 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39958 (eval $ac_try) 2>&5
39959 ac_status=$?
39960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961 (exit $ac_status); }; }; then
39962 ac_cv_lib_posix4_sched_get_priority_max=yes
39963else
39964 echo "$as_me: failed program was:" >&5
39965sed 's/^/| /' conftest.$ac_ext >&5
39966
39967ac_cv_lib_posix4_sched_get_priority_max=no
39968fi
ac1cb8d3
VS
39969rm -f conftest.err conftest.$ac_objext \
39970 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39971LIBS=$ac_check_lib_save_LIBS
39972fi
39973echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39974echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
39975if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39976
39977 HAVE_PRIOR_FUNCS=1
39978 POSIX4_LINK=" -lposix4"
39979
39980fi
39981
39982
39983fi
39984
39985
39986fi
39987
39988
39989fi
39990
39991
39992 if test "$HAVE_PRIOR_FUNCS" = 1; then
39993 cat >>confdefs.h <<\_ACEOF
39994#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39995_ACEOF
39996
39997 else
39998 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39999echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40000 fi
40001
40002 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40003echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
40004if test "${ac_cv_func_pthread_cancel+set}" = set; then
40005 echo $ECHO_N "(cached) $ECHO_C" >&6
40006else
40007 cat >conftest.$ac_ext <<_ACEOF
40008/* confdefs.h. */
40009_ACEOF
40010cat confdefs.h >>conftest.$ac_ext
40011cat >>conftest.$ac_ext <<_ACEOF
40012/* end confdefs.h. */
ac1cb8d3
VS
40013/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40015#define pthread_cancel innocuous_pthread_cancel
40016
a848cd7e
SC
40017/* System header to define __stub macros and hopefully few prototypes,
40018 which can conflict with char pthread_cancel (); below.
40019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40020 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40021
a848cd7e
SC
40022#ifdef __STDC__
40023# include <limits.h>
40024#else
40025# include <assert.h>
40026#endif
ac1cb8d3
VS
40027
40028#undef pthread_cancel
40029
a848cd7e
SC
40030/* Override any gcc2 internal prototype to avoid an error. */
40031#ifdef __cplusplus
40032extern "C"
40033{
40034#endif
40035/* We use char because int might match the return type of a gcc2
40036 builtin and then its argument prototype would still apply. */
40037char pthread_cancel ();
40038/* The GNU C library defines this for functions which it implements
40039 to always fail with ENOSYS. Some functions are actually named
40040 something starting with __ and the normal name is an alias. */
40041#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
40042choke me
40043#else
40044char (*f) () = pthread_cancel;
40045#endif
40046#ifdef __cplusplus
40047}
40048#endif
40049
40050int
40051main ()
40052{
40053return f != pthread_cancel;
40054 ;
40055 return 0;
40056}
40057_ACEOF
40058rm -f conftest.$ac_objext conftest$ac_exeext
40059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40060 (eval $ac_link) 2>conftest.er1
a848cd7e 40061 ac_status=$?
ac1cb8d3
VS
40062 grep -v '^ *+' conftest.er1 >conftest.err
40063 rm -f conftest.er1
40064 cat conftest.err >&5
a848cd7e
SC
40065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40066 (exit $ac_status); } &&
7067783d
PC
40067 { ac_try='test -z "$ac_cxx_werror_flag"
40068 || test ! -s conftest.err'
ac1cb8d3
VS
40069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40070 (eval $ac_try) 2>&5
40071 ac_status=$?
40072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40073 (exit $ac_status); }; } &&
40074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40076 (eval $ac_try) 2>&5
40077 ac_status=$?
40078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40079 (exit $ac_status); }; }; then
40080 ac_cv_func_pthread_cancel=yes
40081else
40082 echo "$as_me: failed program was:" >&5
40083sed 's/^/| /' conftest.$ac_ext >&5
40084
40085ac_cv_func_pthread_cancel=no
40086fi
ac1cb8d3
VS
40087rm -f conftest.err conftest.$ac_objext \
40088 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40089fi
40090echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40091echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
40092if test $ac_cv_func_pthread_cancel = yes; then
40093 cat >>confdefs.h <<\_ACEOF
40094#define HAVE_PTHREAD_CANCEL 1
40095_ACEOF
40096
40097else
40098 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40099echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40100fi
40101
40102
abc736fd
MW
40103 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40104echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
40105if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40106 echo $ECHO_N "(cached) $ECHO_C" >&6
40107else
40108 cat >conftest.$ac_ext <<_ACEOF
40109/* confdefs.h. */
40110_ACEOF
40111cat confdefs.h >>conftest.$ac_ext
40112cat >>conftest.$ac_ext <<_ACEOF
40113/* end confdefs.h. */
40114/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40116#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40117
40118/* System header to define __stub macros and hopefully few prototypes,
40119 which can conflict with char pthread_attr_setstacksize (); below.
40120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40121 <limits.h> exists even on freestanding compilers. */
40122
40123#ifdef __STDC__
40124# include <limits.h>
40125#else
40126# include <assert.h>
40127#endif
40128
40129#undef pthread_attr_setstacksize
40130
40131/* Override any gcc2 internal prototype to avoid an error. */
40132#ifdef __cplusplus
40133extern "C"
40134{
40135#endif
40136/* We use char because int might match the return type of a gcc2
40137 builtin and then its argument prototype would still apply. */
40138char pthread_attr_setstacksize ();
40139/* The GNU C library defines this for functions which it implements
40140 to always fail with ENOSYS. Some functions are actually named
40141 something starting with __ and the normal name is an alias. */
40142#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
40143choke me
40144#else
40145char (*f) () = pthread_attr_setstacksize;
40146#endif
40147#ifdef __cplusplus
40148}
40149#endif
40150
40151int
40152main ()
40153{
40154return f != pthread_attr_setstacksize;
40155 ;
40156 return 0;
40157}
40158_ACEOF
40159rm -f conftest.$ac_objext conftest$ac_exeext
40160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40161 (eval $ac_link) 2>conftest.er1
40162 ac_status=$?
40163 grep -v '^ *+' conftest.er1 >conftest.err
40164 rm -f conftest.er1
40165 cat conftest.err >&5
40166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40167 (exit $ac_status); } &&
7067783d
PC
40168 { ac_try='test -z "$ac_cxx_werror_flag"
40169 || test ! -s conftest.err'
abc736fd
MW
40170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40171 (eval $ac_try) 2>&5
40172 ac_status=$?
40173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40174 (exit $ac_status); }; } &&
40175 { ac_try='test -s conftest$ac_exeext'
40176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40177 (eval $ac_try) 2>&5
40178 ac_status=$?
40179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180 (exit $ac_status); }; }; then
40181 ac_cv_func_pthread_attr_setstacksize=yes
40182else
40183 echo "$as_me: failed program was:" >&5
40184sed 's/^/| /' conftest.$ac_ext >&5
40185
40186ac_cv_func_pthread_attr_setstacksize=no
40187fi
40188rm -f conftest.err conftest.$ac_objext \
40189 conftest$ac_exeext conftest.$ac_ext
40190fi
40191echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40192echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
40193if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40194 cat >>confdefs.h <<\_ACEOF
40195#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40196_ACEOF
40197
40198fi
40199
a848cd7e
SC
40200
40201
40202 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40203echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
40204if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40205 echo $ECHO_N "(cached) $ECHO_C" >&6
40206else
40207
40208 cat >conftest.$ac_ext <<_ACEOF
40209/* confdefs.h. */
40210_ACEOF
40211cat confdefs.h >>conftest.$ac_ext
40212cat >>conftest.$ac_ext <<_ACEOF
40213/* end confdefs.h. */
40214#include <pthread.h>
40215int
40216main ()
40217{
40218
40219 pthread_mutexattr_t attr;
40220 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40221
40222 ;
40223 return 0;
40224}
40225_ACEOF
40226rm -f conftest.$ac_objext
40227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40228 (eval $ac_compile) 2>conftest.er1
a848cd7e 40229 ac_status=$?
ac1cb8d3
VS
40230 grep -v '^ *+' conftest.er1 >conftest.err
40231 rm -f conftest.er1
40232 cat conftest.err >&5
a848cd7e
SC
40233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40234 (exit $ac_status); } &&
7067783d
PC
40235 { ac_try='test -z "$ac_cxx_werror_flag"
40236 || test ! -s conftest.err'
ac1cb8d3
VS
40237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40238 (eval $ac_try) 2>&5
40239 ac_status=$?
40240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40241 (exit $ac_status); }; } &&
40242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40244 (eval $ac_try) 2>&5
40245 ac_status=$?
40246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40247 (exit $ac_status); }; }; then
123dca7d 40248 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
40249else
40250 echo "$as_me: failed program was:" >&5
40251sed 's/^/| /' conftest.$ac_ext >&5
40252
123dca7d 40253wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
40254
40255fi
ac1cb8d3 40256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40257
40258fi
40259echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40260echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
40261
40262 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40263 cat >>confdefs.h <<\_ACEOF
40264#define HAVE_PTHREAD_MUTEXATTR_T 1
40265_ACEOF
40266
123dca7d
VZ
40267
40268 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40269echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
40270if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40271 echo $ECHO_N "(cached) $ECHO_C" >&6
40272else
40273
40274 cat >conftest.$ac_ext <<_ACEOF
40275/* confdefs.h. */
40276_ACEOF
40277cat confdefs.h >>conftest.$ac_ext
40278cat >>conftest.$ac_ext <<_ACEOF
40279/* end confdefs.h. */
40280#include <pthread.h>
40281int
40282main ()
40283{
40284
40285 pthread_mutexattr_t attr;
40286 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40287
40288 ;
40289 return 0;
40290}
40291_ACEOF
40292rm -f conftest.$ac_objext
40293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40294 (eval $ac_compile) 2>conftest.er1
40295 ac_status=$?
40296 grep -v '^ *+' conftest.er1 >conftest.err
40297 rm -f conftest.er1
40298 cat conftest.err >&5
40299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40300 (exit $ac_status); } &&
7067783d
PC
40301 { ac_try='test -z "$ac_cxx_werror_flag"
40302 || test ! -s conftest.err'
123dca7d
VZ
40303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40304 (eval $ac_try) 2>&5
40305 ac_status=$?
40306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40307 (exit $ac_status); }; } &&
40308 { ac_try='test -s conftest.$ac_objext'
40309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40310 (eval $ac_try) 2>&5
40311 ac_status=$?
40312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40313 (exit $ac_status); }; }; then
40314 wx_cv_func_pthread_mutexattr_settype_decl=yes
40315else
40316 echo "$as_me: failed program was:" >&5
40317sed 's/^/| /' conftest.$ac_ext >&5
40318
40319wx_cv_func_pthread_mutexattr_settype_decl=no
40320
40321fi
40322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40323
40324fi
40325echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40326echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40327 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40328 cat >>confdefs.h <<\_ACEOF
40329#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40330_ACEOF
40331
40332 fi
a848cd7e
SC
40333 else
40334 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40335echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40336if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40337 echo $ECHO_N "(cached) $ECHO_C" >&6
40338else
40339
40340 cat >conftest.$ac_ext <<_ACEOF
40341/* confdefs.h. */
40342_ACEOF
40343cat confdefs.h >>conftest.$ac_ext
40344cat >>conftest.$ac_ext <<_ACEOF
40345/* end confdefs.h. */
40346#include <pthread.h>
40347int
40348main ()
40349{
40350
40351 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40352
40353 ;
40354 return 0;
40355}
40356_ACEOF
40357rm -f conftest.$ac_objext
40358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40359 (eval $ac_compile) 2>conftest.er1
a848cd7e 40360 ac_status=$?
ac1cb8d3
VS
40361 grep -v '^ *+' conftest.er1 >conftest.err
40362 rm -f conftest.er1
40363 cat conftest.err >&5
a848cd7e
SC
40364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365 (exit $ac_status); } &&
7067783d
PC
40366 { ac_try='test -z "$ac_cxx_werror_flag"
40367 || test ! -s conftest.err'
ac1cb8d3
VS
40368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40369 (eval $ac_try) 2>&5
40370 ac_status=$?
40371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40372 (exit $ac_status); }; } &&
40373 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40375 (eval $ac_try) 2>&5
40376 ac_status=$?
40377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40378 (exit $ac_status); }; }; then
40379
40380 wx_cv_type_pthread_rec_mutex_init=yes
40381
40382else
40383 echo "$as_me: failed program was:" >&5
40384sed 's/^/| /' conftest.$ac_ext >&5
40385
40386
40387 wx_cv_type_pthread_rec_mutex_init=no
40388
40389
40390fi
ac1cb8d3 40391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40392
40393fi
40394echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40395echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40396 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40397 cat >>confdefs.h <<\_ACEOF
40398#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40399_ACEOF
40400
40401 else
40402 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40403echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40404 fi
40405 fi
40406 fi
40407
40408else
40409 if test "$wxUSE_THREADS" = "yes" ; then
40410 case "${host}" in
40411 *-*-mingw32* )
40412 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40413echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40414if test "${wx_cv_cflags_mthread+set}" = set; then
40415 echo $ECHO_N "(cached) $ECHO_C" >&6
40416else
40417
e56f4f9e
VZ
40418 CXXFLAGS_OLD="$CXXFLAGS"
40419 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
40420 cat >conftest.$ac_ext <<_ACEOF
40421/* confdefs.h. */
40422_ACEOF
40423cat confdefs.h >>conftest.$ac_ext
40424cat >>conftest.$ac_ext <<_ACEOF
40425/* end confdefs.h. */
40426
40427int
40428main ()
40429{
40430
40431 ;
40432 return 0;
40433}
40434_ACEOF
40435rm -f conftest.$ac_objext
40436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40437 (eval $ac_compile) 2>conftest.er1
a848cd7e 40438 ac_status=$?
ac1cb8d3
VS
40439 grep -v '^ *+' conftest.er1 >conftest.err
40440 rm -f conftest.er1
40441 cat conftest.err >&5
a848cd7e
SC
40442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40443 (exit $ac_status); } &&
7067783d
PC
40444 { ac_try='test -z "$ac_cxx_werror_flag"
40445 || test ! -s conftest.err'
ac1cb8d3
VS
40446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40447 (eval $ac_try) 2>&5
40448 ac_status=$?
40449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40450 (exit $ac_status); }; } &&
40451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40453 (eval $ac_try) 2>&5
40454 ac_status=$?
40455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40456 (exit $ac_status); }; }; then
40457 wx_cv_cflags_mthread=yes
40458else
40459 echo "$as_me: failed program was:" >&5
40460sed 's/^/| /' conftest.$ac_ext >&5
40461
40462wx_cv_cflags_mthread=no
40463
40464fi
ac1cb8d3 40465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40466
40467
40468fi
40469echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40470echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40471
40472 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 40473 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
40474 LDFLAGS="$LDFLAGS -mthreads"
40475 else
e56f4f9e 40476 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40477 fi
40478 ;;
40479 *-pc-os2*emx )
5ff751d6
VZ
40480 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40481 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
40482 LDFLAGS="$LDFLAGS -Zmt"
40483 ;;
40484 esac
40485 fi
40486fi
40487
004ee6da
RL
40488echo "$as_me:$LINENO: checking for localtime_r" >&5
40489echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40490if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
40491 echo $ECHO_N "(cached) $ECHO_C" >&6
40492else
40493 cat >conftest.$ac_ext <<_ACEOF
40494/* confdefs.h. */
40495_ACEOF
40496cat confdefs.h >>conftest.$ac_ext
40497cat >>conftest.$ac_ext <<_ACEOF
40498/* end confdefs.h. */
004ee6da 40499/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 40500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 40501#define localtime_r innocuous_localtime_r
ac1cb8d3 40502
a848cd7e 40503/* System header to define __stub macros and hopefully few prototypes,
004ee6da 40504 which can conflict with char localtime_r (); below.
a848cd7e
SC
40505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40506 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40507
a848cd7e
SC
40508#ifdef __STDC__
40509# include <limits.h>
40510#else
40511# include <assert.h>
40512#endif
ac1cb8d3 40513
004ee6da 40514#undef localtime_r
ac1cb8d3 40515
a848cd7e
SC
40516/* Override any gcc2 internal prototype to avoid an error. */
40517#ifdef __cplusplus
40518extern "C"
40519{
40520#endif
40521/* We use char because int might match the return type of a gcc2
40522 builtin and then its argument prototype would still apply. */
004ee6da 40523char localtime_r ();
a848cd7e
SC
40524/* The GNU C library defines this for functions which it implements
40525 to always fail with ENOSYS. Some functions are actually named
40526 something starting with __ and the normal name is an alias. */
004ee6da 40527#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
40528choke me
40529#else
004ee6da 40530char (*f) () = localtime_r;
a848cd7e
SC
40531#endif
40532#ifdef __cplusplus
40533}
40534#endif
40535
40536int
40537main ()
40538{
004ee6da
RL
40539return f != localtime_r;
40540 ;
40541 return 0;
40542}
40543_ACEOF
40544rm -f conftest.$ac_objext conftest$ac_exeext
40545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40546 (eval $ac_link) 2>conftest.er1
40547 ac_status=$?
40548 grep -v '^ *+' conftest.er1 >conftest.err
40549 rm -f conftest.er1
40550 cat conftest.err >&5
40551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40552 (exit $ac_status); } &&
7067783d
PC
40553 { ac_try='test -z "$ac_cxx_werror_flag"
40554 || test ! -s conftest.err'
004ee6da
RL
40555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40556 (eval $ac_try) 2>&5
40557 ac_status=$?
40558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40559 (exit $ac_status); }; } &&
40560 { ac_try='test -s conftest$ac_exeext'
40561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40562 (eval $ac_try) 2>&5
40563 ac_status=$?
40564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40565 (exit $ac_status); }; }; then
40566 ac_cv_func_localtime_r=yes
40567else
40568 echo "$as_me: failed program was:" >&5
40569sed 's/^/| /' conftest.$ac_ext >&5
40570
40571ac_cv_func_localtime_r=no
40572fi
40573rm -f conftest.err conftest.$ac_objext \
40574 conftest$ac_exeext conftest.$ac_ext
40575fi
40576echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40577echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40578if test $ac_cv_func_localtime_r = yes; then
40579 cat >>confdefs.h <<\_ACEOF
40580#define HAVE_LOCALTIME_R 1
40581_ACEOF
40582
40583fi
40584
40585echo "$as_me:$LINENO: checking for gmtime_r" >&5
40586echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40587if test "${ac_cv_func_gmtime_r+set}" = set; then
40588 echo $ECHO_N "(cached) $ECHO_C" >&6
40589else
40590 cat >conftest.$ac_ext <<_ACEOF
40591/* confdefs.h. */
40592_ACEOF
40593cat confdefs.h >>conftest.$ac_ext
40594cat >>conftest.$ac_ext <<_ACEOF
40595/* end confdefs.h. */
40596/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40598#define gmtime_r innocuous_gmtime_r
40599
40600/* System header to define __stub macros and hopefully few prototypes,
40601 which can conflict with char gmtime_r (); below.
40602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40603 <limits.h> exists even on freestanding compilers. */
40604
40605#ifdef __STDC__
40606# include <limits.h>
40607#else
40608# include <assert.h>
40609#endif
40610
40611#undef gmtime_r
40612
40613/* Override any gcc2 internal prototype to avoid an error. */
40614#ifdef __cplusplus
40615extern "C"
40616{
40617#endif
40618/* We use char because int might match the return type of a gcc2
40619 builtin and then its argument prototype would still apply. */
40620char gmtime_r ();
40621/* The GNU C library defines this for functions which it implements
40622 to always fail with ENOSYS. Some functions are actually named
40623 something starting with __ and the normal name is an alias. */
40624#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40625choke me
40626#else
40627char (*f) () = gmtime_r;
40628#endif
40629#ifdef __cplusplus
40630}
40631#endif
40632
40633int
40634main ()
40635{
40636return f != gmtime_r;
40637 ;
40638 return 0;
40639}
40640_ACEOF
40641rm -f conftest.$ac_objext conftest$ac_exeext
40642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40643 (eval $ac_link) 2>conftest.er1
40644 ac_status=$?
40645 grep -v '^ *+' conftest.er1 >conftest.err
40646 rm -f conftest.er1
40647 cat conftest.err >&5
40648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40649 (exit $ac_status); } &&
7067783d
PC
40650 { ac_try='test -z "$ac_cxx_werror_flag"
40651 || test ! -s conftest.err'
004ee6da
RL
40652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40653 (eval $ac_try) 2>&5
40654 ac_status=$?
40655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40656 (exit $ac_status); }; } &&
40657 { ac_try='test -s conftest$ac_exeext'
40658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40659 (eval $ac_try) 2>&5
40660 ac_status=$?
40661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40662 (exit $ac_status); }; }; then
40663 ac_cv_func_gmtime_r=yes
40664else
40665 echo "$as_me: failed program was:" >&5
40666sed 's/^/| /' conftest.$ac_ext >&5
40667
40668ac_cv_func_gmtime_r=no
40669fi
40670rm -f conftest.err conftest.$ac_objext \
40671 conftest$ac_exeext conftest.$ac_ext
40672fi
40673echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40674echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
40675if test $ac_cv_func_gmtime_r = yes; then
40676 cat >>confdefs.h <<\_ACEOF
40677#define HAVE_GMTIME_R 1
40678_ACEOF
40679
40680fi
40681
40682echo "$as_me:$LINENO: checking for readdir_r" >&5
40683echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
40684if test "${ac_cv_func_readdir_r+set}" = set; then
40685 echo $ECHO_N "(cached) $ECHO_C" >&6
40686else
40687 cat >conftest.$ac_ext <<_ACEOF
40688/* confdefs.h. */
40689_ACEOF
40690cat confdefs.h >>conftest.$ac_ext
40691cat >>conftest.$ac_ext <<_ACEOF
40692/* end confdefs.h. */
40693/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
40694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40695#define readdir_r innocuous_readdir_r
40696
40697/* System header to define __stub macros and hopefully few prototypes,
40698 which can conflict with char readdir_r (); below.
40699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40700 <limits.h> exists even on freestanding compilers. */
40701
40702#ifdef __STDC__
40703# include <limits.h>
40704#else
40705# include <assert.h>
40706#endif
40707
40708#undef readdir_r
40709
40710/* Override any gcc2 internal prototype to avoid an error. */
40711#ifdef __cplusplus
40712extern "C"
40713{
40714#endif
40715/* We use char because int might match the return type of a gcc2
40716 builtin and then its argument prototype would still apply. */
40717char readdir_r ();
40718/* The GNU C library defines this for functions which it implements
40719 to always fail with ENOSYS. Some functions are actually named
40720 something starting with __ and the normal name is an alias. */
40721#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
40722choke me
40723#else
40724char (*f) () = readdir_r;
40725#endif
40726#ifdef __cplusplus
40727}
40728#endif
40729
40730int
40731main ()
40732{
40733return f != readdir_r;
40734 ;
40735 return 0;
40736}
40737_ACEOF
40738rm -f conftest.$ac_objext conftest$ac_exeext
40739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40740 (eval $ac_link) 2>conftest.er1
40741 ac_status=$?
40742 grep -v '^ *+' conftest.er1 >conftest.err
40743 rm -f conftest.er1
40744 cat conftest.err >&5
40745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40746 (exit $ac_status); } &&
7067783d
PC
40747 { ac_try='test -z "$ac_cxx_werror_flag"
40748 || test ! -s conftest.err'
004ee6da
RL
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); }; } &&
40754 { ac_try='test -s conftest$ac_exeext'
40755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40756 (eval $ac_try) 2>&5
40757 ac_status=$?
40758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40759 (exit $ac_status); }; }; then
40760 ac_cv_func_readdir_r=yes
40761else
40762 echo "$as_me: failed program was:" >&5
40763sed 's/^/| /' conftest.$ac_ext >&5
40764
40765ac_cv_func_readdir_r=no
40766fi
40767rm -f conftest.err conftest.$ac_objext \
40768 conftest$ac_exeext conftest.$ac_ext
40769fi
40770echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
40771echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
40772if test $ac_cv_func_readdir_r = yes; then
40773 cat >>confdefs.h <<\_ACEOF
40774#define HAVE_READDIR_R 1
40775_ACEOF
40776
40777fi
40778
004ee6da 40779
004ee6da
RL
40780
40781
40782 ac_ext=c
40783ac_cpp='$CPP $CPPFLAGS'
40784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40786ac_compiler_gnu=$ac_cv_c_compiler_gnu
40787
40788 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40789echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40790
40791 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40792 echo $ECHO_N "(cached) $ECHO_C" >&6
40793else
40794
40795
2f6c5bb5 40796################################################################
004ee6da
RL
40797
40798ac_cv_func_which_gethostbyname_r=unknown
40799
40800#
40801# ONE ARGUMENT (sanity check)
40802#
40803
40804# This should fail, as there is no variant of gethostbyname_r() that takes
40805# a single argument. If it actually compiles, then we can assume that
40806# netdb.h is not declaring the function, and the compiler is thereby
40807# assuming an implicit prototype. In which case, we're out of luck.
40808#
40809cat >conftest.$ac_ext <<_ACEOF
40810/* confdefs.h. */
40811_ACEOF
40812cat confdefs.h >>conftest.$ac_ext
40813cat >>conftest.$ac_ext <<_ACEOF
40814/* end confdefs.h. */
40815#include <netdb.h>
40816int
40817main ()
40818{
40819
40820 char *name = "www.gnu.org";
40821 (void)gethostbyname_r(name) /* ; */
40822
40823 ;
40824 return 0;
40825}
40826_ACEOF
40827rm -f conftest.$ac_objext
40828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40829 (eval $ac_compile) 2>conftest.er1
40830 ac_status=$?
40831 grep -v '^ *+' conftest.er1 >conftest.err
40832 rm -f conftest.er1
40833 cat conftest.err >&5
40834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40835 (exit $ac_status); } &&
7067783d
PC
40836 { ac_try='test -z "$ac_c_werror_flag"
40837 || test ! -s conftest.err'
004ee6da
RL
40838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40839 (eval $ac_try) 2>&5
40840 ac_status=$?
40841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40842 (exit $ac_status); }; } &&
40843 { ac_try='test -s conftest.$ac_objext'
40844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40845 (eval $ac_try) 2>&5
40846 ac_status=$?
40847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848 (exit $ac_status); }; }; then
40849 ac_cv_func_which_gethostbyname_r=no
40850else
40851 echo "$as_me: failed program was:" >&5
40852sed 's/^/| /' conftest.$ac_ext >&5
40853
40854fi
40855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40856
40857#
40858# SIX ARGUMENTS
40859# (e.g. Linux)
40860#
40861
40862if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40863
40864cat >conftest.$ac_ext <<_ACEOF
40865/* confdefs.h. */
40866_ACEOF
40867cat confdefs.h >>conftest.$ac_ext
40868cat >>conftest.$ac_ext <<_ACEOF
40869/* end confdefs.h. */
40870#include <netdb.h>
40871int
40872main ()
40873{
40874
40875 char *name = "www.gnu.org";
40876 struct hostent ret, *retp;
40877 char buf[1024];
40878 int buflen = 1024;
40879 int my_h_errno;
40880 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40881
40882 ;
40883 return 0;
40884}
40885_ACEOF
40886rm -f conftest.$ac_objext
40887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40888 (eval $ac_compile) 2>conftest.er1
40889 ac_status=$?
40890 grep -v '^ *+' conftest.er1 >conftest.err
40891 rm -f conftest.er1
40892 cat conftest.err >&5
40893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40894 (exit $ac_status); } &&
7067783d
PC
40895 { ac_try='test -z "$ac_c_werror_flag"
40896 || test ! -s conftest.err'
004ee6da
RL
40897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40898 (eval $ac_try) 2>&5
40899 ac_status=$?
40900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40901 (exit $ac_status); }; } &&
40902 { ac_try='test -s conftest.$ac_objext'
40903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40904 (eval $ac_try) 2>&5
40905 ac_status=$?
40906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40907 (exit $ac_status); }; }; then
40908 ac_cv_func_which_gethostbyname_r=six
40909else
40910 echo "$as_me: failed program was:" >&5
40911sed 's/^/| /' conftest.$ac_ext >&5
40912
40913fi
40914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40915
40916fi
40917
40918#
40919# FIVE ARGUMENTS
40920# (e.g. Solaris)
40921#
40922
40923if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40924
40925cat >conftest.$ac_ext <<_ACEOF
40926/* confdefs.h. */
40927_ACEOF
40928cat confdefs.h >>conftest.$ac_ext
40929cat >>conftest.$ac_ext <<_ACEOF
40930/* end confdefs.h. */
40931#include <netdb.h>
40932int
40933main ()
40934{
40935
40936 char *name = "www.gnu.org";
40937 struct hostent ret;
40938 char buf[1024];
40939 int buflen = 1024;
40940 int my_h_errno;
40941 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40942
40943 ;
40944 return 0;
40945}
40946_ACEOF
40947rm -f conftest.$ac_objext
40948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40949 (eval $ac_compile) 2>conftest.er1
40950 ac_status=$?
40951 grep -v '^ *+' conftest.er1 >conftest.err
40952 rm -f conftest.er1
40953 cat conftest.err >&5
40954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40955 (exit $ac_status); } &&
7067783d
PC
40956 { ac_try='test -z "$ac_c_werror_flag"
40957 || test ! -s conftest.err'
004ee6da
RL
40958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40959 (eval $ac_try) 2>&5
40960 ac_status=$?
40961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40962 (exit $ac_status); }; } &&
40963 { ac_try='test -s conftest.$ac_objext'
40964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40965 (eval $ac_try) 2>&5
40966 ac_status=$?
40967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40968 (exit $ac_status); }; }; then
40969 ac_cv_func_which_gethostbyname_r=five
40970else
40971 echo "$as_me: failed program was:" >&5
40972sed 's/^/| /' conftest.$ac_ext >&5
40973
40974fi
40975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40976
40977fi
40978
40979#
40980# THREE ARGUMENTS
40981# (e.g. AIX, HP-UX, Tru64)
40982#
40983
40984if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40985
40986cat >conftest.$ac_ext <<_ACEOF
40987/* confdefs.h. */
40988_ACEOF
40989cat confdefs.h >>conftest.$ac_ext
40990cat >>conftest.$ac_ext <<_ACEOF
40991/* end confdefs.h. */
40992#include <netdb.h>
40993int
40994main ()
40995{
40996
40997 char *name = "www.gnu.org";
40998 struct hostent ret;
40999 struct hostent_data data;
41000 (void)gethostbyname_r(name, &ret, &data) /* ; */
41001
41002 ;
41003 return 0;
41004}
41005_ACEOF
41006rm -f conftest.$ac_objext
41007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41008 (eval $ac_compile) 2>conftest.er1
41009 ac_status=$?
41010 grep -v '^ *+' conftest.er1 >conftest.err
41011 rm -f conftest.er1
41012 cat conftest.err >&5
41013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41014 (exit $ac_status); } &&
7067783d
PC
41015 { ac_try='test -z "$ac_c_werror_flag"
41016 || test ! -s conftest.err'
004ee6da
RL
41017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41018 (eval $ac_try) 2>&5
41019 ac_status=$?
41020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41021 (exit $ac_status); }; } &&
41022 { ac_try='test -s conftest.$ac_objext'
41023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41024 (eval $ac_try) 2>&5
41025 ac_status=$?
41026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41027 (exit $ac_status); }; }; then
41028 ac_cv_func_which_gethostbyname_r=three
41029else
41030 echo "$as_me: failed program was:" >&5
41031sed 's/^/| /' conftest.$ac_ext >&5
41032
41033fi
41034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41035
41036fi
41037
2f6c5bb5 41038################################################################
004ee6da
RL
41039
41040
41041fi
41042
41043case "$ac_cv_func_which_gethostbyname_r" in
41044 three)
41045 echo "$as_me:$LINENO: result: three" >&5
41046echo "${ECHO_T}three" >&6
41047 cat >>confdefs.h <<\_ACEOF
41048#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41049_ACEOF
41050
41051 ;;
41052
41053 five)
41054 echo "$as_me:$LINENO: result: five" >&5
41055echo "${ECHO_T}five" >&6
41056 cat >>confdefs.h <<\_ACEOF
41057#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41058_ACEOF
41059
41060 ;;
41061
41062 six)
41063 echo "$as_me:$LINENO: result: six" >&5
41064echo "${ECHO_T}six" >&6
41065 cat >>confdefs.h <<\_ACEOF
41066#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41067_ACEOF
41068
41069 ;;
41070
41071 no)
41072 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41073echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
41074 ;;
41075
41076 unknown)
41077 echo "$as_me:$LINENO: result: can't tell" >&5
41078echo "${ECHO_T}can't tell" >&6
41079 ;;
41080
41081 *)
41082 { { echo "$as_me:$LINENO: error: internal error" >&5
41083echo "$as_me: error: internal error" >&2;}
41084 { (exit 1); exit 1; }; }
41085 ;;
41086esac
41087
5ec3bc43
JS
41088ac_ext=cc
41089ac_cpp='$CXXCPP $CPPFLAGS'
41090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
41093
41094
41095
41096 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
41097 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
41098 echo "$as_me:$LINENO: checking for gethostbyname" >&5
41099echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
41100if test "${ac_cv_func_gethostbyname+set}" = set; then
41101 echo $ECHO_N "(cached) $ECHO_C" >&6
41102else
41103 cat >conftest.$ac_ext <<_ACEOF
41104/* confdefs.h. */
41105_ACEOF
41106cat confdefs.h >>conftest.$ac_ext
41107cat >>conftest.$ac_ext <<_ACEOF
41108/* end confdefs.h. */
41109/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41111#define gethostbyname innocuous_gethostbyname
41112
41113/* System header to define __stub macros and hopefully few prototypes,
41114 which can conflict with char gethostbyname (); below.
41115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41116 <limits.h> exists even on freestanding compilers. */
41117
41118#ifdef __STDC__
41119# include <limits.h>
41120#else
41121# include <assert.h>
41122#endif
41123
41124#undef gethostbyname
41125
41126/* Override any gcc2 internal prototype to avoid an error. */
41127#ifdef __cplusplus
41128extern "C"
41129{
41130#endif
41131/* We use char because int might match the return type of a gcc2
41132 builtin and then its argument prototype would still apply. */
41133char gethostbyname ();
41134/* The GNU C library defines this for functions which it implements
41135 to always fail with ENOSYS. Some functions are actually named
41136 something starting with __ and the normal name is an alias. */
41137#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
41138choke me
41139#else
41140char (*f) () = gethostbyname;
41141#endif
41142#ifdef __cplusplus
41143}
41144#endif
41145
41146int
41147main ()
41148{
41149return f != gethostbyname;
41150 ;
41151 return 0;
41152}
41153_ACEOF
41154rm -f conftest.$ac_objext conftest$ac_exeext
41155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41156 (eval $ac_link) 2>conftest.er1
41157 ac_status=$?
41158 grep -v '^ *+' conftest.er1 >conftest.err
41159 rm -f conftest.er1
41160 cat conftest.err >&5
41161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41162 (exit $ac_status); } &&
7067783d
PC
41163 { ac_try='test -z "$ac_cxx_werror_flag"
41164 || test ! -s conftest.err'
004ee6da
RL
41165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41166 (eval $ac_try) 2>&5
41167 ac_status=$?
41168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41169 (exit $ac_status); }; } &&
41170 { ac_try='test -s conftest$ac_exeext'
41171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41172 (eval $ac_try) 2>&5
41173 ac_status=$?
41174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41175 (exit $ac_status); }; }; then
41176 ac_cv_func_gethostbyname=yes
41177else
41178 echo "$as_me: failed program was:" >&5
41179sed 's/^/| /' conftest.$ac_ext >&5
41180
41181ac_cv_func_gethostbyname=no
41182fi
41183rm -f conftest.err conftest.$ac_objext \
41184 conftest$ac_exeext conftest.$ac_ext
41185fi
41186echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41187echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
41188if test $ac_cv_func_gethostbyname = yes; then
41189 cat >>confdefs.h <<\_ACEOF
41190#define HAVE_GETHOSTBYNAME 1
41191_ACEOF
41192
41193fi
41194
41195 fi
3ecd9f92 41196
81c330c6
VZ
41197echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41198echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
41199if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
004ee6da
RL
41200 echo $ECHO_N "(cached) $ECHO_C" >&6
41201else
3ecd9f92
MW
41202
41203 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41204/* confdefs.h. */
41205_ACEOF
41206cat confdefs.h >>conftest.$ac_ext
41207cat >>conftest.$ac_ext <<_ACEOF
41208/* end confdefs.h. */
81c330c6 41209#include <netdb.h>
004ee6da
RL
41210int
41211main ()
41212{
41213
81c330c6
VZ
41214 char *name;
41215 char *proto;
41216 struct servent *se, *res;
41217 char buffer[2048];
41218 int buflen = 2048;
41219 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
41220
41221 ;
41222 return 0;
41223}
41224_ACEOF
41225rm -f conftest.$ac_objext
41226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41227 (eval $ac_compile) 2>conftest.er1
41228 ac_status=$?
41229 grep -v '^ *+' conftest.er1 >conftest.err
41230 rm -f conftest.er1
41231 cat conftest.err >&5
41232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41233 (exit $ac_status); } &&
7067783d
PC
41234 { ac_try='test -z "$ac_cxx_werror_flag"
41235 || test ! -s conftest.err'
004ee6da
RL
41236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41237 (eval $ac_try) 2>&5
41238 ac_status=$?
41239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41240 (exit $ac_status); }; } &&
41241 { ac_try='test -s conftest.$ac_objext'
41242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41243 (eval $ac_try) 2>&5
41244 ac_status=$?
41245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41246 (exit $ac_status); }; }; then
81c330c6 41247 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
41248else
41249 echo "$as_me: failed program was:" >&5
41250sed 's/^/| /' conftest.$ac_ext >&5
41251
3ecd9f92 41252
81c330c6 41253 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41254/* confdefs.h. */
41255_ACEOF
41256cat confdefs.h >>conftest.$ac_ext
41257cat >>conftest.$ac_ext <<_ACEOF
41258/* end confdefs.h. */
81c330c6 41259#include <netdb.h>
004ee6da
RL
41260int
41261main ()
41262{
41263
81c330c6
VZ
41264 char *name;
41265 char *proto;
41266 struct servent *se;
41267 char buffer[2048];
41268 int buflen = 2048;
41269 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
41270
41271 ;
41272 return 0;
41273}
41274_ACEOF
41275rm -f conftest.$ac_objext
41276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41277 (eval $ac_compile) 2>conftest.er1
41278 ac_status=$?
41279 grep -v '^ *+' conftest.er1 >conftest.err
41280 rm -f conftest.er1
41281 cat conftest.err >&5
41282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41283 (exit $ac_status); } &&
7067783d
PC
41284 { ac_try='test -z "$ac_cxx_werror_flag"
41285 || test ! -s conftest.err'
004ee6da
RL
41286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41287 (eval $ac_try) 2>&5
41288 ac_status=$?
41289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41290 (exit $ac_status); }; } &&
41291 { ac_try='test -s conftest.$ac_objext'
41292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41293 (eval $ac_try) 2>&5
41294 ac_status=$?
41295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41296 (exit $ac_status); }; }; then
81c330c6 41297 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
41298else
41299 echo "$as_me: failed program was:" >&5
41300sed 's/^/| /' conftest.$ac_ext >&5
41301
3ecd9f92 41302
81c330c6 41303 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41304/* confdefs.h. */
41305_ACEOF
41306cat confdefs.h >>conftest.$ac_ext
41307cat >>conftest.$ac_ext <<_ACEOF
41308/* end confdefs.h. */
81c330c6 41309#include <netdb.h>
004ee6da
RL
41310int
41311main ()
41312{
41313
81c330c6
VZ
41314 char *name;
41315 char *proto;
41316 struct servent *se;
41317 struct servent_data data;
41318 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
41319
41320 ;
41321 return 0;
41322}
41323_ACEOF
41324rm -f conftest.$ac_objext
41325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41326 (eval $ac_compile) 2>conftest.er1
41327 ac_status=$?
41328 grep -v '^ *+' conftest.er1 >conftest.err
41329 rm -f conftest.er1
41330 cat conftest.err >&5
41331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41332 (exit $ac_status); } &&
7067783d
PC
41333 { ac_try='test -z "$ac_cxx_werror_flag"
41334 || test ! -s conftest.err'
004ee6da
RL
41335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41336 (eval $ac_try) 2>&5
41337 ac_status=$?
41338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41339 (exit $ac_status); }; } &&
41340 { ac_try='test -s conftest.$ac_objext'
41341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41342 (eval $ac_try) 2>&5
41343 ac_status=$?
41344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41345 (exit $ac_status); }; }; then
81c330c6 41346 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
41347else
41348 echo "$as_me: failed program was:" >&5
41349sed 's/^/| /' conftest.$ac_ext >&5
41350
41351ac_cv_func_which_getservbyname_r=no
81c330c6 41352
004ee6da
RL
41353fi
41354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41355
3ecd9f92 41356
004ee6da
RL
41357fi
41358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41359
3ecd9f92 41360
004ee6da
RL
41361fi
41362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 41363
004ee6da 41364
3ecd9f92
MW
41365fi
41366echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41367echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
41368
41369if test $ac_cv_func_which_getservbyname_r = six; then
41370 cat >>confdefs.h <<\_ACEOF
41371#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41372_ACEOF
41373
41374elif test $ac_cv_func_which_getservbyname_r = five; then
41375 cat >>confdefs.h <<\_ACEOF
41376#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41377_ACEOF
41378
41379elif test $ac_cv_func_which_getservbyname_r = four; then
41380 cat >>confdefs.h <<\_ACEOF
41381#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41382_ACEOF
41383
004ee6da
RL
41384fi
41385
41386
41387 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41388 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41389
41390for ac_func in getservbyname
41391do
41392as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41393echo "$as_me:$LINENO: checking for $ac_func" >&5
41394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41395if eval "test \"\${$as_ac_var+set}\" = set"; then
41396 echo $ECHO_N "(cached) $ECHO_C" >&6
41397else
41398 cat >conftest.$ac_ext <<_ACEOF
41399/* confdefs.h. */
41400_ACEOF
41401cat confdefs.h >>conftest.$ac_ext
41402cat >>conftest.$ac_ext <<_ACEOF
41403/* end confdefs.h. */
41404/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41406#define $ac_func innocuous_$ac_func
41407
41408/* System header to define __stub macros and hopefully few prototypes,
41409 which can conflict with char $ac_func (); below.
41410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41411 <limits.h> exists even on freestanding compilers. */
41412
41413#ifdef __STDC__
41414# include <limits.h>
41415#else
41416# include <assert.h>
41417#endif
41418
41419#undef $ac_func
41420
41421/* Override any gcc2 internal prototype to avoid an error. */
41422#ifdef __cplusplus
41423extern "C"
41424{
41425#endif
41426/* We use char because int might match the return type of a gcc2
41427 builtin and then its argument prototype would still apply. */
41428char $ac_func ();
41429/* The GNU C library defines this for functions which it implements
41430 to always fail with ENOSYS. Some functions are actually named
41431 something starting with __ and the normal name is an alias. */
41432#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41433choke me
41434#else
41435char (*f) () = $ac_func;
41436#endif
41437#ifdef __cplusplus
41438}
41439#endif
41440
41441int
41442main ()
41443{
41444return f != $ac_func;
41445 ;
41446 return 0;
41447}
41448_ACEOF
41449rm -f conftest.$ac_objext conftest$ac_exeext
41450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41451 (eval $ac_link) 2>conftest.er1
41452 ac_status=$?
41453 grep -v '^ *+' conftest.er1 >conftest.err
41454 rm -f conftest.er1
41455 cat conftest.err >&5
41456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41457 (exit $ac_status); } &&
7067783d
PC
41458 { ac_try='test -z "$ac_cxx_werror_flag"
41459 || test ! -s conftest.err'
004ee6da
RL
41460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41461 (eval $ac_try) 2>&5
41462 ac_status=$?
41463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41464 (exit $ac_status); }; } &&
41465 { ac_try='test -s conftest$ac_exeext'
41466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41467 (eval $ac_try) 2>&5
41468 ac_status=$?
41469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41470 (exit $ac_status); }; }; then
41471 eval "$as_ac_var=yes"
41472else
41473 echo "$as_me: failed program was:" >&5
41474sed 's/^/| /' conftest.$ac_ext >&5
41475
41476eval "$as_ac_var=no"
41477fi
41478rm -f conftest.err conftest.$ac_objext \
41479 conftest$ac_exeext conftest.$ac_ext
41480fi
41481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41482echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41483if test `eval echo '${'$as_ac_var'}'` = yes; then
41484 cat >>confdefs.h <<_ACEOF
41485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41486_ACEOF
41487 cat >>confdefs.h <<\_ACEOF
41488#define HAVE_GETSERVBYNAME 1
41489_ACEOF
41490
41491fi
41492done
41493
41494 fi
41495
004ee6da
RL
41496if test "$wxUSE_THREADS" = "yes"; then
41497 cat >>confdefs.h <<\_ACEOF
41498#define wxUSE_THREADS 1
41499_ACEOF
41500
41501
41502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41503else
56632e81 41504 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
41505 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41506echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41507 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41508 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41509 echo "$as_me:$LINENO: result: yes" >&5
41510echo "${ECHO_T}yes" >&6
41511 else
41512 echo "$as_me:$LINENO: result: no" >&5
41513echo "${ECHO_T}no" >&6
41514 fi
41515 fi
41516fi
41517
41518if test "$WXGTK20" = 1 ; then
41519 cat >>confdefs.h <<_ACEOF
41520#define __WXGTK20__ $WXGTK20
41521_ACEOF
41522
41523 WXGTK12=1
41524fi
41525
41526if test "$WXGTK12" = 1 ; then
41527 cat >>confdefs.h <<_ACEOF
41528#define __WXGTK12__ $WXGTK12
41529_ACEOF
41530
41531fi
41532
41533if test "$WXGTK127" = 1 ; then
41534 cat >>confdefs.h <<_ACEOF
41535#define __WXGTK127__ $WXGTK127
41536_ACEOF
41537
41538fi
41539
41540if test "$WXGPE" = 1 ; then
41541 cat >>confdefs.h <<_ACEOF
41542#define __WXGPE__ $WXGPE
41543_ACEOF
41544
41545fi
41546
41547DEBUG_CFLAGS=
41548if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41549 DEBUG_CFLAGS="-g"
41550 wxUSE_OPTIMISE=no
41551fi
41552
41553if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41554 wxUSE_DEBUG_INFO=yes
41555 if test "$GCC" = yes; then
41556 DEBUG_CFLAGS="-ggdb"
41557 fi
41558fi
41559
41560if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41561 cat >>confdefs.h <<\_ACEOF
41562#define WXDEBUG 1
41563_ACEOF
41564
41565 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41566else
41567 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
41568 if test "x$wxGTK_VERSION" = "x1" ; then
41569 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41570 fi
004ee6da
RL
41571 fi
41572fi
41573
41574if test "$wxUSE_MEM_TRACING" = "yes" ; then
41575 cat >>confdefs.h <<\_ACEOF
41576#define wxUSE_MEMORY_TRACING 1
41577_ACEOF
41578
41579 cat >>confdefs.h <<\_ACEOF
41580#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41581_ACEOF
41582
41583 cat >>confdefs.h <<\_ACEOF
41584#define wxUSE_DEBUG_NEW_ALWAYS 1
41585_ACEOF
41586
41587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41588fi
41589
41590if test "$wxUSE_DMALLOC" = "yes" ; then
41591 DMALLOC_LIBS="-ldmallocthcxx"
41592fi
41593
41594PROFILE_FLAGS=
41595if test "$wxUSE_PROFILE" = "yes" ; then
41596 PROFILE_FLAGS=" -pg"
41597fi
41598
41599if test "$GCC" = "yes" ; then
41600 if test "$wxUSE_NO_RTTI" = "yes" ; then
41601 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41602 fi
41603 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41604 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41605 fi
41606 if test "$wxUSE_PERMISSIVE" = "yes" ; then
41607 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41608 fi
41609
41610 case "${host}" in
41611 powerpc*-*-aix* )
41612 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41613 ;;
41614 *-hppa* )
41615 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41616 ;;
41617 esac
41618fi
41619
41620OPTIMISE_CFLAGS=
41621if test "$wxUSE_OPTIMISE" = "no" ; then
41622 if test "$GCC" = yes ; then
41623 OPTIMISE_CFLAGS="-O0"
41624 fi
41625else
41626 if test "$GCC" = yes ; then
e5efa97e
VZ
41627 case "${host}" in
41628 *-pc-os2_emx | *-pc-os2-emx )
41629 OPTIMISE_CFLAGS="-O2"
41630 ;;
41631 *)
41632 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41633 ;;
41634 esac
004ee6da
RL
41635 else
41636 OPTIMISE_CFLAGS="-O"
41637 fi
41638fi
41639
41640
41641if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41642 cat >>confdefs.h <<\_ACEOF
41643#define WXWIN_COMPATIBILITY_2_4 1
41644_ACEOF
41645
41646
41647 WXWIN_COMPATIBILITY_2_6="yes"
41648fi
41649
41650if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41651 cat >>confdefs.h <<\_ACEOF
41652#define WXWIN_COMPATIBILITY_2_6 1
41653_ACEOF
41654
41655fi
41656
41657
41658if test "$wxUSE_GUI" = "yes"; then
41659 cat >>confdefs.h <<\_ACEOF
41660#define wxUSE_GUI 1
41661_ACEOF
41662
41663
41664 fi
41665
41666
41667if test "$wxUSE_UNIX" = "yes"; then
41668 cat >>confdefs.h <<\_ACEOF
41669#define wxUSE_UNIX 1
41670_ACEOF
41671
41672fi
41673
41674
41675if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41676
41677 HAVE_DL_FUNCS=0
41678 HAVE_SHL_FUNCS=0
41679 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41680 if test "$USE_DARWIN" = 1; then
41681 HAVE_DL_FUNCS=1
41682 elif test "$USE_DOS" = 1; then
41683 HAVE_DL_FUNCS=0
41684 else
41685
41686for ac_func in dlopen
41687do
41688as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41689echo "$as_me:$LINENO: checking for $ac_func" >&5
41690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41691if eval "test \"\${$as_ac_var+set}\" = set"; then
41692 echo $ECHO_N "(cached) $ECHO_C" >&6
41693else
41694 cat >conftest.$ac_ext <<_ACEOF
41695/* confdefs.h. */
41696_ACEOF
41697cat confdefs.h >>conftest.$ac_ext
41698cat >>conftest.$ac_ext <<_ACEOF
41699/* end confdefs.h. */
41700/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41702#define $ac_func innocuous_$ac_func
41703
41704/* System header to define __stub macros and hopefully few prototypes,
41705 which can conflict with char $ac_func (); below.
41706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41707 <limits.h> exists even on freestanding compilers. */
41708
41709#ifdef __STDC__
41710# include <limits.h>
41711#else
41712# include <assert.h>
41713#endif
41714
41715#undef $ac_func
41716
41717/* Override any gcc2 internal prototype to avoid an error. */
41718#ifdef __cplusplus
41719extern "C"
41720{
41721#endif
41722/* We use char because int might match the return type of a gcc2
41723 builtin and then its argument prototype would still apply. */
41724char $ac_func ();
41725/* The GNU C library defines this for functions which it implements
41726 to always fail with ENOSYS. Some functions are actually named
41727 something starting with __ and the normal name is an alias. */
41728#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41729choke me
41730#else
41731char (*f) () = $ac_func;
41732#endif
41733#ifdef __cplusplus
41734}
41735#endif
41736
41737int
41738main ()
41739{
41740return f != $ac_func;
a848cd7e
SC
41741 ;
41742 return 0;
41743}
41744_ACEOF
41745rm -f conftest.$ac_objext conftest$ac_exeext
41746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41747 (eval $ac_link) 2>conftest.er1
a848cd7e 41748 ac_status=$?
ac1cb8d3
VS
41749 grep -v '^ *+' conftest.er1 >conftest.err
41750 rm -f conftest.er1
41751 cat conftest.err >&5
a848cd7e
SC
41752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41753 (exit $ac_status); } &&
7067783d
PC
41754 { ac_try='test -z "$ac_cxx_werror_flag"
41755 || test ! -s conftest.err'
ac1cb8d3
VS
41756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41757 (eval $ac_try) 2>&5
41758 ac_status=$?
41759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41760 (exit $ac_status); }; } &&
41761 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41763 (eval $ac_try) 2>&5
41764 ac_status=$?
41765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41766 (exit $ac_status); }; }; then
41767 eval "$as_ac_var=yes"
41768else
41769 echo "$as_me: failed program was:" >&5
41770sed 's/^/| /' conftest.$ac_ext >&5
41771
41772eval "$as_ac_var=no"
41773fi
ac1cb8d3
VS
41774rm -f conftest.err conftest.$ac_objext \
41775 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41776fi
41777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41778echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41779if test `eval echo '${'$as_ac_var'}'` = yes; then
41780 cat >>confdefs.h <<_ACEOF
41781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41782_ACEOF
41783
41784 cat >>confdefs.h <<\_ACEOF
41785#define HAVE_DLOPEN 1
41786_ACEOF
41787
41788 HAVE_DL_FUNCS=1
41789
41790else
41791
41792 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41793echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41794if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41795 echo $ECHO_N "(cached) $ECHO_C" >&6
41796else
41797 ac_check_lib_save_LIBS=$LIBS
41798LIBS="-ldl $LIBS"
41799cat >conftest.$ac_ext <<_ACEOF
41800/* confdefs.h. */
41801_ACEOF
41802cat confdefs.h >>conftest.$ac_ext
41803cat >>conftest.$ac_ext <<_ACEOF
41804/* end confdefs.h. */
41805
41806/* Override any gcc2 internal prototype to avoid an error. */
41807#ifdef __cplusplus
41808extern "C"
41809#endif
41810/* We use char because int might match the return type of a gcc2
41811 builtin and then its argument prototype would still apply. */
41812char dlopen ();
41813int
41814main ()
41815{
41816dlopen ();
41817 ;
41818 return 0;
41819}
41820_ACEOF
41821rm -f conftest.$ac_objext conftest$ac_exeext
41822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41823 (eval $ac_link) 2>conftest.er1
a848cd7e 41824 ac_status=$?
ac1cb8d3
VS
41825 grep -v '^ *+' conftest.er1 >conftest.err
41826 rm -f conftest.er1
41827 cat conftest.err >&5
a848cd7e
SC
41828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41829 (exit $ac_status); } &&
7067783d
PC
41830 { ac_try='test -z "$ac_cxx_werror_flag"
41831 || test ! -s conftest.err'
ac1cb8d3
VS
41832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41833 (eval $ac_try) 2>&5
41834 ac_status=$?
41835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836 (exit $ac_status); }; } &&
41837 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41839 (eval $ac_try) 2>&5
41840 ac_status=$?
41841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41842 (exit $ac_status); }; }; then
41843 ac_cv_lib_dl_dlopen=yes
41844else
41845 echo "$as_me: failed program was:" >&5
41846sed 's/^/| /' conftest.$ac_ext >&5
41847
41848ac_cv_lib_dl_dlopen=no
41849fi
ac1cb8d3
VS
41850rm -f conftest.err conftest.$ac_objext \
41851 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41852LIBS=$ac_check_lib_save_LIBS
41853fi
41854echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41855echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41856if test $ac_cv_lib_dl_dlopen = yes; then
41857
41858 cat >>confdefs.h <<\_ACEOF
41859#define HAVE_DLOPEN 1
41860_ACEOF
41861
41862 HAVE_DL_FUNCS=1
41863 DL_LINK=" -ldl$DL_LINK"
41864
41865else
41866
41867
41868for ac_func in shl_load
41869do
41870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41871echo "$as_me:$LINENO: checking for $ac_func" >&5
41872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41873if eval "test \"\${$as_ac_var+set}\" = set"; then
41874 echo $ECHO_N "(cached) $ECHO_C" >&6
41875else
41876 cat >conftest.$ac_ext <<_ACEOF
41877/* confdefs.h. */
41878_ACEOF
41879cat confdefs.h >>conftest.$ac_ext
41880cat >>conftest.$ac_ext <<_ACEOF
41881/* end confdefs.h. */
ac1cb8d3
VS
41882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41884#define $ac_func innocuous_$ac_func
41885
a848cd7e
SC
41886/* System header to define __stub macros and hopefully few prototypes,
41887 which can conflict with char $ac_func (); below.
41888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41889 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41890
a848cd7e
SC
41891#ifdef __STDC__
41892# include <limits.h>
41893#else
41894# include <assert.h>
41895#endif
ac1cb8d3
VS
41896
41897#undef $ac_func
41898
a848cd7e
SC
41899/* Override any gcc2 internal prototype to avoid an error. */
41900#ifdef __cplusplus
41901extern "C"
41902{
41903#endif
41904/* We use char because int might match the return type of a gcc2
41905 builtin and then its argument prototype would still apply. */
41906char $ac_func ();
41907/* The GNU C library defines this for functions which it implements
41908 to always fail with ENOSYS. Some functions are actually named
41909 something starting with __ and the normal name is an alias. */
41910#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41911choke me
41912#else
41913char (*f) () = $ac_func;
41914#endif
41915#ifdef __cplusplus
41916}
41917#endif
41918
41919int
41920main ()
41921{
41922return f != $ac_func;
41923 ;
41924 return 0;
41925}
41926_ACEOF
41927rm -f conftest.$ac_objext conftest$ac_exeext
41928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41929 (eval $ac_link) 2>conftest.er1
a848cd7e 41930 ac_status=$?
ac1cb8d3
VS
41931 grep -v '^ *+' conftest.er1 >conftest.err
41932 rm -f conftest.er1
41933 cat conftest.err >&5
a848cd7e
SC
41934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41935 (exit $ac_status); } &&
7067783d
PC
41936 { ac_try='test -z "$ac_cxx_werror_flag"
41937 || test ! -s conftest.err'
ac1cb8d3
VS
41938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41939 (eval $ac_try) 2>&5
41940 ac_status=$?
41941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41942 (exit $ac_status); }; } &&
41943 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41945 (eval $ac_try) 2>&5
41946 ac_status=$?
41947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41948 (exit $ac_status); }; }; then
41949 eval "$as_ac_var=yes"
41950else
41951 echo "$as_me: failed program was:" >&5
41952sed 's/^/| /' conftest.$ac_ext >&5
41953
41954eval "$as_ac_var=no"
41955fi
ac1cb8d3
VS
41956rm -f conftest.err conftest.$ac_objext \
41957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41958fi
41959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41960echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41961if test `eval echo '${'$as_ac_var'}'` = yes; then
41962 cat >>confdefs.h <<_ACEOF
41963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41964_ACEOF
41965
41966 cat >>confdefs.h <<\_ACEOF
41967#define HAVE_SHL_LOAD 1
41968_ACEOF
41969
41970 HAVE_SHL_FUNCS=1
41971
41972else
41973
41974 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41975echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41976if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41977 echo $ECHO_N "(cached) $ECHO_C" >&6
41978else
41979 ac_check_lib_save_LIBS=$LIBS
41980LIBS="-lshl_load $LIBS"
41981cat >conftest.$ac_ext <<_ACEOF
41982/* confdefs.h. */
41983_ACEOF
41984cat confdefs.h >>conftest.$ac_ext
41985cat >>conftest.$ac_ext <<_ACEOF
41986/* end confdefs.h. */
41987
41988/* Override any gcc2 internal prototype to avoid an error. */
41989#ifdef __cplusplus
41990extern "C"
41991#endif
41992/* We use char because int might match the return type of a gcc2
41993 builtin and then its argument prototype would still apply. */
41994char dld ();
41995int
41996main ()
41997{
41998dld ();
41999 ;
42000 return 0;
42001}
42002_ACEOF
42003rm -f conftest.$ac_objext conftest$ac_exeext
42004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42005 (eval $ac_link) 2>conftest.er1
a848cd7e 42006 ac_status=$?
ac1cb8d3
VS
42007 grep -v '^ *+' conftest.er1 >conftest.err
42008 rm -f conftest.er1
42009 cat conftest.err >&5
a848cd7e
SC
42010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42011 (exit $ac_status); } &&
7067783d
PC
42012 { ac_try='test -z "$ac_cxx_werror_flag"
42013 || test ! -s conftest.err'
ac1cb8d3
VS
42014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42015 (eval $ac_try) 2>&5
42016 ac_status=$?
42017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42018 (exit $ac_status); }; } &&
42019 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42021 (eval $ac_try) 2>&5
42022 ac_status=$?
42023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42024 (exit $ac_status); }; }; then
42025 ac_cv_lib_shl_load_dld=yes
42026else
42027 echo "$as_me: failed program was:" >&5
42028sed 's/^/| /' conftest.$ac_ext >&5
42029
42030ac_cv_lib_shl_load_dld=no
42031fi
ac1cb8d3
VS
42032rm -f conftest.err conftest.$ac_objext \
42033 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42034LIBS=$ac_check_lib_save_LIBS
42035fi
42036echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42037echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
42038if test $ac_cv_lib_shl_load_dld = yes; then
42039
42040 HAVE_SHL_FUNCS=1
42041 DL_LINK=" -ldld$DL_LINK"
42042
42043fi
42044
42045
42046fi
42047done
42048
42049
42050fi
42051
42052
42053fi
42054done
42055
42056
42057 if test "$HAVE_DL_FUNCS" = 1; then
42058
42059for ac_func in dlerror
42060do
42061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42062echo "$as_me:$LINENO: checking for $ac_func" >&5
42063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42064if eval "test \"\${$as_ac_var+set}\" = set"; then
42065 echo $ECHO_N "(cached) $ECHO_C" >&6
42066else
42067 cat >conftest.$ac_ext <<_ACEOF
42068/* confdefs.h. */
42069_ACEOF
42070cat confdefs.h >>conftest.$ac_ext
42071cat >>conftest.$ac_ext <<_ACEOF
42072/* end confdefs.h. */
ac1cb8d3
VS
42073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42075#define $ac_func innocuous_$ac_func
42076
a848cd7e
SC
42077/* System header to define __stub macros and hopefully few prototypes,
42078 which can conflict with char $ac_func (); below.
42079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42080 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42081
a848cd7e
SC
42082#ifdef __STDC__
42083# include <limits.h>
42084#else
42085# include <assert.h>
42086#endif
ac1cb8d3
VS
42087
42088#undef $ac_func
42089
a848cd7e
SC
42090/* Override any gcc2 internal prototype to avoid an error. */
42091#ifdef __cplusplus
42092extern "C"
42093{
42094#endif
42095/* We use char because int might match the return type of a gcc2
42096 builtin and then its argument prototype would still apply. */
42097char $ac_func ();
42098/* The GNU C library defines this for functions which it implements
42099 to always fail with ENOSYS. Some functions are actually named
42100 something starting with __ and the normal name is an alias. */
42101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42102choke me
42103#else
42104char (*f) () = $ac_func;
42105#endif
42106#ifdef __cplusplus
42107}
42108#endif
42109
42110int
42111main ()
42112{
42113return f != $ac_func;
42114 ;
42115 return 0;
42116}
42117_ACEOF
42118rm -f conftest.$ac_objext conftest$ac_exeext
42119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42120 (eval $ac_link) 2>conftest.er1
a848cd7e 42121 ac_status=$?
ac1cb8d3
VS
42122 grep -v '^ *+' conftest.er1 >conftest.err
42123 rm -f conftest.er1
42124 cat conftest.err >&5
a848cd7e
SC
42125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42126 (exit $ac_status); } &&
7067783d
PC
42127 { ac_try='test -z "$ac_cxx_werror_flag"
42128 || test ! -s conftest.err'
ac1cb8d3
VS
42129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42130 (eval $ac_try) 2>&5
42131 ac_status=$?
42132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42133 (exit $ac_status); }; } &&
42134 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42136 (eval $ac_try) 2>&5
42137 ac_status=$?
42138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42139 (exit $ac_status); }; }; then
42140 eval "$as_ac_var=yes"
42141else
42142 echo "$as_me: failed program was:" >&5
42143sed 's/^/| /' conftest.$ac_ext >&5
42144
42145eval "$as_ac_var=no"
42146fi
ac1cb8d3
VS
42147rm -f conftest.err conftest.$ac_objext \
42148 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42149fi
42150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42151echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42152if test `eval echo '${'$as_ac_var'}'` = yes; then
42153 cat >>confdefs.h <<_ACEOF
42154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42155_ACEOF
42156 cat >>confdefs.h <<\_ACEOF
42157#define HAVE_DLERROR 1
42158_ACEOF
42159
42160else
42161
42162 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42163echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
42164if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42165 echo $ECHO_N "(cached) $ECHO_C" >&6
42166else
42167 ac_check_lib_save_LIBS=$LIBS
42168LIBS="-ldl $LIBS"
42169cat >conftest.$ac_ext <<_ACEOF
42170/* confdefs.h. */
42171_ACEOF
42172cat confdefs.h >>conftest.$ac_ext
42173cat >>conftest.$ac_ext <<_ACEOF
42174/* end confdefs.h. */
42175
42176/* Override any gcc2 internal prototype to avoid an error. */
42177#ifdef __cplusplus
42178extern "C"
42179#endif
42180/* We use char because int might match the return type of a gcc2
42181 builtin and then its argument prototype would still apply. */
42182char dlerror ();
42183int
42184main ()
42185{
42186dlerror ();
42187 ;
42188 return 0;
42189}
42190_ACEOF
42191rm -f conftest.$ac_objext conftest$ac_exeext
42192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42193 (eval $ac_link) 2>conftest.er1
a848cd7e 42194 ac_status=$?
ac1cb8d3
VS
42195 grep -v '^ *+' conftest.er1 >conftest.err
42196 rm -f conftest.er1
42197 cat conftest.err >&5
a848cd7e
SC
42198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42199 (exit $ac_status); } &&
7067783d
PC
42200 { ac_try='test -z "$ac_cxx_werror_flag"
42201 || test ! -s conftest.err'
ac1cb8d3
VS
42202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42203 (eval $ac_try) 2>&5
42204 ac_status=$?
42205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42206 (exit $ac_status); }; } &&
42207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42209 (eval $ac_try) 2>&5
42210 ac_status=$?
42211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42212 (exit $ac_status); }; }; then
42213 ac_cv_lib_dl_dlerror=yes
42214else
42215 echo "$as_me: failed program was:" >&5
42216sed 's/^/| /' conftest.$ac_ext >&5
42217
42218ac_cv_lib_dl_dlerror=no
42219fi
ac1cb8d3
VS
42220rm -f conftest.err conftest.$ac_objext \
42221 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42222LIBS=$ac_check_lib_save_LIBS
42223fi
42224echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42225echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
42226if test $ac_cv_lib_dl_dlerror = yes; then
42227 cat >>confdefs.h <<\_ACEOF
42228#define HAVE_DLERROR 1
42229_ACEOF
42230
42231fi
42232
42233
42234
42235fi
42236done
42237
42238 fi
42239 fi
42240
42241 if test "$HAVE_DL_FUNCS" = 0; then
42242 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 42243 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
42244 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42245echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42246 wxUSE_DYNAMIC_LOADER=no
42247 wxUSE_DYNLIB_CLASS=no
42248 else
42249 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42250echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42251 fi
42252 fi
42253 fi
42254 fi
42255fi
42256
42257if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42258 cat >>confdefs.h <<\_ACEOF
42259#define wxUSE_DYNAMIC_LOADER 1
42260_ACEOF
42261
42262fi
42263if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42264 cat >>confdefs.h <<\_ACEOF
42265#define wxUSE_DYNLIB_CLASS 1
42266_ACEOF
42267
42268fi
42269
42270
42271
42272if test "$wxUSE_PLUGINS" = "yes" ; then
42273 if test "$wxUSE_SHARED" = "no" ; then
42274 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42275echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42276 wxUSE_PLUGINS=no
42277 fi
42278 if test "$wxUSE_MONOLITHIC" = "yes" ; then
42279 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42280echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42281 wxUSE_PLUGINS=no
42282 fi
42283 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42284 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42285echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42286 wxUSE_PLUGINS=no
42287 fi
42288 if test "$wxUSE_PLUGINS" = "yes" ; then
42289 cat >>confdefs.h <<\_ACEOF
42290#define wxUSE_PLUGINS 1
42291_ACEOF
42292
42293 fi
42294fi
42295
42296
42297if test "$wxUSE_STL" = "yes"; then
42298 cat >>confdefs.h <<\_ACEOF
42299#define wxUSE_STL 1
42300_ACEOF
42301
42302fi
42303
42304if test "$wxUSE_APPLE_IEEE" = "yes"; then
42305 cat >>confdefs.h <<\_ACEOF
42306#define wxUSE_APPLE_IEEE 1
42307_ACEOF
42308
42309fi
42310
42311if test "$wxUSE_TIMER" = "yes"; then
42312 cat >>confdefs.h <<\_ACEOF
42313#define wxUSE_TIMER 1
42314_ACEOF
42315
42316fi
42317
9c112555 42318if test "$USE_UNIX" = "1" ; then
31714590
VZ
42319 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42320echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 42321if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 42322 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 42323else
d12aef51
VZ
42324
42325 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42326/* confdefs.h. */
42327_ACEOF
42328cat confdefs.h >>conftest.$ac_ext
42329cat >>conftest.$ac_ext <<_ACEOF
42330/* end confdefs.h. */
d12aef51 42331
31714590 42332 #include <sys/ioctl.h>
d12aef51
VZ
42333 #include <sys/soundcard.h>
42334
42335int
42336main ()
42337{
42338
31714590 42339 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42340
42341 ;
42342 return 0;
42343}
a848cd7e 42344_ACEOF
d12aef51
VZ
42345rm -f conftest.$ac_objext conftest$ac_exeext
42346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42347 (eval $ac_link) 2>conftest.er1
a848cd7e 42348 ac_status=$?
ac1cb8d3
VS
42349 grep -v '^ *+' conftest.er1 >conftest.err
42350 rm -f conftest.er1
42351 cat conftest.err >&5
a848cd7e
SC
42352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42353 (exit $ac_status); } &&
7067783d
PC
42354 { ac_try='test -z "$ac_cxx_werror_flag"
42355 || test ! -s conftest.err'
ac1cb8d3
VS
42356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42357 (eval $ac_try) 2>&5
42358 ac_status=$?
42359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42360 (exit $ac_status); }; } &&
d12aef51 42361 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42363 (eval $ac_try) 2>&5
42364 ac_status=$?
42365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42366 (exit $ac_status); }; }; then
d12aef51 42367 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42368else
42369 echo "$as_me: failed program was:" >&5
42370sed 's/^/| /' conftest.$ac_ext >&5
42371
a848cd7e 42372
d12aef51
VZ
42373 saveLibs="$LIBS"
42374 LIBS="$saveLibs -lossaudio"
42375 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42376/* confdefs.h. */
42377_ACEOF
42378cat confdefs.h >>conftest.$ac_ext
42379cat >>conftest.$ac_ext <<_ACEOF
42380/* end confdefs.h. */
d12aef51 42381
31714590 42382 #include <sys/ioctl.h>
d12aef51
VZ
42383 #include <sys/soundcard.h>
42384
42385int
42386main ()
42387{
42388
31714590 42389 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42390
42391 ;
42392 return 0;
42393}
a848cd7e 42394_ACEOF
d12aef51
VZ
42395rm -f conftest.$ac_objext conftest$ac_exeext
42396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42397 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
42398 ac_status=$?
42399 grep -v '^ *+' conftest.er1 >conftest.err
42400 rm -f conftest.er1
42401 cat conftest.err >&5
42402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42403 (exit $ac_status); } &&
7067783d
PC
42404 { ac_try='test -z "$ac_cxx_werror_flag"
42405 || test ! -s conftest.err'
d12aef51
VZ
42406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42407 (eval $ac_try) 2>&5
42408 ac_status=$?
42409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42410 (exit $ac_status); }; } &&
42411 { ac_try='test -s conftest$ac_exeext'
42412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42413 (eval $ac_try) 2>&5
42414 ac_status=$?
42415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42416 (exit $ac_status); }; }; then
42417 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42418else
42419 echo "$as_me: failed program was:" >&5
42420sed 's/^/| /' conftest.$ac_ext >&5
42421
a848cd7e 42422
d12aef51
VZ
42423 LIBS="$saveLibs"
42424 ac_cv_header_sys_soundcard=no
42425
42426
a848cd7e 42427fi
d12aef51
VZ
42428rm -f conftest.err conftest.$ac_objext \
42429 conftest$ac_exeext conftest.$ac_ext
42430
a848cd7e
SC
42431
42432fi
d12aef51
VZ
42433rm -f conftest.err conftest.$ac_objext \
42434 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42435
42436fi
d12aef51
VZ
42437echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42438echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 42439
d12aef51
VZ
42440 if test "$ac_cv_header_sys_soundcard" = "yes"; then
42441 cat >>confdefs.h <<\_ACEOF
42442#define HAVE_SYS_SOUNDCARD_H 1
42443_ACEOF
a848cd7e 42444
d12aef51
VZ
42445 else
42446 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42447 fi
9c112555
MW
42448fi
42449WITH_PLUGIN_SDL=0
42450if test "$wxUSE_SOUND" = "yes"; then
42451 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
42452 if test "$wxUSE_LIBSDL" != "no"; then
42453
42454# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42455if test "${with_sdl_prefix+set}" = set; then
42456 withval="$with_sdl_prefix"
42457 sdl_prefix="$withval"
42458else
42459 sdl_prefix=""
42460fi;
42461
42462# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42463if test "${with_sdl_exec_prefix+set}" = set; then
42464 withval="$with_sdl_exec_prefix"
42465 sdl_exec_prefix="$withval"
42466else
42467 sdl_exec_prefix=""
42468fi;
42469# Check whether --enable-sdltest or --disable-sdltest was given.
42470if test "${enable_sdltest+set}" = set; then
42471 enableval="$enable_sdltest"
42472
42473else
42474 enable_sdltest=yes
42475fi;
42476
42477 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
42478 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42479 if test x${SDL_CONFIG+set} != xset ; then
42480 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42481 fi
a848cd7e
SC
42482 fi
42483 if test x$sdl_prefix != x ; then
3ecd9f92
MW
42484 sdl_args="$sdl_args --prefix=$sdl_prefix"
42485 if test x${SDL_CONFIG+set} != xset ; then
42486 SDL_CONFIG=$sdl_prefix/bin/sdl-config
42487 fi
a848cd7e
SC
42488 fi
42489
3ecd9f92
MW
42490 if test "x$prefix" != xNONE; then
42491 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42492 fi
a848cd7e
SC
42493 # Extract the first word of "sdl-config", so it can be a program name with args.
42494set dummy sdl-config; ac_word=$2
42495echo "$as_me:$LINENO: checking for $ac_word" >&5
42496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42497if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42498 echo $ECHO_N "(cached) $ECHO_C" >&6
42499else
42500 case $SDL_CONFIG in
42501 [\\/]* | ?:[\\/]*)
42502 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42503 ;;
42504 *)
42505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42506for as_dir in $PATH
42507do
42508 IFS=$as_save_IFS
42509 test -z "$as_dir" && as_dir=.
42510 for ac_exec_ext in '' $ac_executable_extensions; do
42511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42512 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42514 break 2
42515 fi
42516done
42517done
42518
42519 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42520 ;;
42521esac
42522fi
42523SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42524
42525if test -n "$SDL_CONFIG"; then
42526 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42527echo "${ECHO_T}$SDL_CONFIG" >&6
42528else
42529 echo "$as_me:$LINENO: result: no" >&5
42530echo "${ECHO_T}no" >&6
42531fi
42532
42533 min_sdl_version=1.2.0
42534 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42535echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42536 no_sdl=""
42537 if test "$SDL_CONFIG" = "no" ; then
42538 no_sdl=yes
42539 else
42540 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42541 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42542
42543 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42544 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42545 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42546 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42547 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42548 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42549 if test "x$enable_sdltest" = "xyes" ; then
42550 ac_save_CFLAGS="$CFLAGS"
94acd38e 42551 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
42552 ac_save_LIBS="$LIBS"
42553 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42554 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42555 LIBS="$LIBS $SDL_LIBS"
42556 rm -f conf.sdltest
42557 if test "$cross_compiling" = yes; then
42558 echo $ac_n "cross compiling; assumed OK... $ac_c"
42559else
42560 cat >conftest.$ac_ext <<_ACEOF
42561/* confdefs.h. */
42562_ACEOF
42563cat confdefs.h >>conftest.$ac_ext
42564cat >>conftest.$ac_ext <<_ACEOF
42565/* end confdefs.h. */
42566
42567#include <stdio.h>
42568#include <stdlib.h>
42569#include <string.h>
42570#include "SDL.h"
42571
42572char*
42573my_strdup (char *str)
42574{
42575 char *new_str;
42576
42577 if (str)
42578 {
42579 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42580 strcpy (new_str, str);
42581 }
42582 else
42583 new_str = NULL;
42584
42585 return new_str;
42586}
42587
42588int main (int argc, char *argv[])
42589{
42590 int major, minor, micro;
42591 char *tmp_version;
42592
42593 /* This hangs on some systems (?)
42594 system ("touch conf.sdltest");
42595 */
42596 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42597
42598 /* HP/UX 9 (%@#!) writes to sscanf strings */
42599 tmp_version = my_strdup("$min_sdl_version");
42600 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42601 printf("%s, bad version string\n", "$min_sdl_version");
42602 exit(1);
42603 }
42604
42605 if (($sdl_major_version > major) ||
42606 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42607 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42608 {
42609 return 0;
42610 }
42611 else
42612 {
42613 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42614 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42615 printf("*** best to upgrade to the required version.\n");
42616 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42617 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42618 printf("*** config.cache before re-running configure\n");
42619 return 1;
42620 }
42621}
42622
42623
42624_ACEOF
42625rm -f conftest$ac_exeext
42626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42627 (eval $ac_link) 2>&5
42628 ac_status=$?
42629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42632 (eval $ac_try) 2>&5
42633 ac_status=$?
42634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42635 (exit $ac_status); }; }; then
42636 :
42637else
42638 echo "$as_me: program exited with status $ac_status" >&5
42639echo "$as_me: failed program was:" >&5
42640sed 's/^/| /' conftest.$ac_ext >&5
42641
42642( exit $ac_status )
42643no_sdl=yes
42644fi
ac1cb8d3 42645rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42646fi
42647 CFLAGS="$ac_save_CFLAGS"
94acd38e 42648 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42649 LIBS="$ac_save_LIBS"
42650 fi
42651 fi
42652 if test "x$no_sdl" = x ; then
42653 echo "$as_me:$LINENO: result: yes" >&5
42654echo "${ECHO_T}yes" >&6
42655
42656 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 42657 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
42658 cat >>confdefs.h <<\_ACEOF
42659#define wxUSE_LIBSDL 1
42660_ACEOF
42661
42662
42663 else
42664 echo "$as_me:$LINENO: result: no" >&5
42665echo "${ECHO_T}no" >&6
42666 if test "$SDL_CONFIG" = "no" ; then
42667 echo "*** The sdl-config script installed by SDL could not be found"
42668 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42669 echo "*** your path, or set the SDL_CONFIG environment variable to the"
42670 echo "*** full path to sdl-config."
42671 else
42672 if test -f conf.sdltest ; then
42673 :
42674 else
42675 echo "*** Could not run SDL test program, checking why..."
42676 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42677 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42678 LIBS="$LIBS $SDL_LIBS"
42679 cat >conftest.$ac_ext <<_ACEOF
42680/* confdefs.h. */
42681_ACEOF
42682cat confdefs.h >>conftest.$ac_ext
42683cat >>conftest.$ac_ext <<_ACEOF
42684/* end confdefs.h. */
42685
42686#include <stdio.h>
42687#include "SDL.h"
42688
42689int main(int argc, char *argv[])
42690{ return 0; }
42691#undef main
42692#define main K_and_R_C_main
42693
42694int
42695main ()
42696{
42697 return 0;
42698 ;
42699 return 0;
42700}
42701_ACEOF
42702rm -f conftest.$ac_objext conftest$ac_exeext
42703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42704 (eval $ac_link) 2>conftest.er1
a848cd7e 42705 ac_status=$?
ac1cb8d3
VS
42706 grep -v '^ *+' conftest.er1 >conftest.err
42707 rm -f conftest.er1
42708 cat conftest.err >&5
a848cd7e
SC
42709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42710 (exit $ac_status); } &&
7067783d
PC
42711 { ac_try='test -z "$ac_cxx_werror_flag"
42712 || test ! -s conftest.err'
ac1cb8d3
VS
42713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42714 (eval $ac_try) 2>&5
42715 ac_status=$?
42716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42717 (exit $ac_status); }; } &&
42718 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42720 (eval $ac_try) 2>&5
42721 ac_status=$?
42722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42723 (exit $ac_status); }; }; then
42724 echo "*** The test program compiled, but did not run. This usually means"
42725 echo "*** that the run-time linker is not finding SDL or finding the wrong"
42726 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42727 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42728 echo "*** to the installed location Also, make sure you have run ldconfig if that"
42729 echo "*** is required on your system"
42730 echo "***"
42731 echo "*** If you have an old version installed, it is best to remove it, although"
42732 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42733else
42734 echo "$as_me: failed program was:" >&5
42735sed 's/^/| /' conftest.$ac_ext >&5
42736
42737 echo "*** The test program failed to compile or link. See the file config.log for the"
42738 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42739 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42740 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42741fi
ac1cb8d3
VS
42742rm -f conftest.err conftest.$ac_objext \
42743 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42744 CFLAGS="$ac_save_CFLAGS"
94acd38e 42745 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42746 LIBS="$ac_save_LIBS"
42747 fi
42748 fi
42749 SDL_CFLAGS=""
42750 SDL_LIBS=""
42751 wxUSE_LIBSDL="no"
42752 fi
42753
42754
42755 rm -f conf.sdltest
42756
42757 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42758 WITH_PLUGIN_SDL=1
42759 fi
42760 fi
42761 fi
42762
42763 cat >>confdefs.h <<\_ACEOF
42764#define wxUSE_SOUND 1
42765_ACEOF
42766
42767 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42768fi
42769
d1c38808
VZ
42770if test "$WXGTK20" = 1; then
42771 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42772 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42773
42774
3ecd9f92
MW
42775pkg_failed=no
42776echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42777echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 42778
3ecd9f92
MW
42779if test -n "$PKG_CONFIG"; then
42780 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42781 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42782 else
42783 if test -n "$PKG_CONFIG" && \
42784 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42785 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42786 ac_status=$?
42787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42788 (exit $ac_status); }; then
42789 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42790else
3ecd9f92
MW
42791 pkg_failed=yes
42792fi
42793 fi
42794else
42795 pkg_failed=untried
d1c38808 42796fi
d1c38808 42797if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42798 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42799 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42800 else
42801 if test -n "$PKG_CONFIG" && \
42802 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42803 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42804 ac_status=$?
42805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42806 (exit $ac_status); }; then
42807 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42808else
3ecd9f92
MW
42809 pkg_failed=yes
42810fi
42811 fi
42812else
42813 pkg_failed=untried
d1c38808
VZ
42814fi
42815
d1c38808 42816
d1c38808 42817
3ecd9f92 42818if test $pkg_failed = yes; then
d1c38808 42819
3ecd9f92
MW
42820if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42821 _pkg_short_errors_supported=yes
42822else
42823 _pkg_short_errors_supported=no
42824fi
42825 if test $_pkg_short_errors_supported = yes; then
42826 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42827 else
42828 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 42829 fi
3ecd9f92
MW
42830 # Put the nasty error message in config.log where it belongs
42831 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
42832
42833
3ecd9f92
MW
42834 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42835echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42836 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
42837
42838
3ecd9f92 42839elif test $pkg_failed = untried; then
d1c38808
VZ
42840
42841 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42842echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42843 wxUSE_LIBGNOMEPRINT="no"
42844
42845
3ecd9f92
MW
42846else
42847 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42848 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42849 echo "$as_me:$LINENO: result: yes" >&5
42850echo "${ECHO_T}yes" >&6
d1c38808 42851
3ecd9f92
MW
42852 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42853 cat >>confdefs.h <<\_ACEOF
42854#define wxUSE_LIBGNOMEPRINT 1
42855_ACEOF
42856
42857
42858fi
d1c38808
VZ
42859 fi
42860 fi
42861fi
42862
2b850ae1
RR
42863if test "$WXGTK20" = 1; then
42864 if test "$wxUSE_MIMETYPE" = "yes" ; then
42865 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42866
42867
3ecd9f92
MW
42868pkg_failed=no
42869echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42870echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 42871
3ecd9f92
MW
42872if test -n "$PKG_CONFIG"; then
42873 if test -n "$GNOMEVFS_CFLAGS"; then
42874 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42875 else
42876 if test -n "$PKG_CONFIG" && \
42877 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42878 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42879 ac_status=$?
42880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42881 (exit $ac_status); }; then
42882 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42883else
3ecd9f92
MW
42884 pkg_failed=yes
42885fi
42886 fi
42887else
42888 pkg_failed=untried
2b850ae1 42889fi
2b850ae1 42890if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42891 if test -n "$GNOMEVFS_LIBS"; then
42892 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42893 else
42894 if test -n "$PKG_CONFIG" && \
42895 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42896 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42897 ac_status=$?
42898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42899 (exit $ac_status); }; then
42900 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42901else
3ecd9f92
MW
42902 pkg_failed=yes
42903fi
42904 fi
42905else
42906 pkg_failed=untried
2b850ae1
RR
42907fi
42908
2b850ae1 42909
2b850ae1 42910
3ecd9f92 42911if test $pkg_failed = yes; then
2b850ae1 42912
3ecd9f92
MW
42913if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42914 _pkg_short_errors_supported=yes
42915else
42916 _pkg_short_errors_supported=no
42917fi
42918 if test $_pkg_short_errors_supported = yes; then
42919 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42920 else
42921 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 42922 fi
3ecd9f92
MW
42923 # Put the nasty error message in config.log where it belongs
42924 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
42925
42926
3ecd9f92
MW
42927 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42928echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42929 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
42930
42931
3ecd9f92 42932elif test $pkg_failed = untried; then
2b850ae1
RR
42933
42934 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42935echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42936 wxUSE_LIBGNOMEVFS="no"
42937
42938
3ecd9f92
MW
42939else
42940 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42941 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42942 echo "$as_me:$LINENO: result: yes" >&5
42943echo "${ECHO_T}yes" >&6
2b850ae1 42944
3ecd9f92
MW
42945 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42946 cat >>confdefs.h <<\_ACEOF
42947#define wxUSE_LIBGNOMEVFS 1
42948_ACEOF
42949
42950
42951fi
2b850ae1
RR
42952 fi
42953 fi
42954fi
42955
3565d135
RR
42956if test "$WXGTK20" = 1; then
42957 if test "$wxUSE_LIBHILDON" = "yes" ; then
42958
3ecd9f92
MW
42959pkg_failed=no
42960echo "$as_me:$LINENO: checking for HILDON" >&5
42961echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 42962
3ecd9f92
MW
42963if test -n "$PKG_CONFIG"; then
42964 if test -n "$HILDON_CFLAGS"; then
42965 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42966 else
42967 if test -n "$PKG_CONFIG" && \
42968 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42969 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42970 ac_status=$?
42971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42972 (exit $ac_status); }; then
42973 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42974else
3ecd9f92
MW
42975 pkg_failed=yes
42976fi
42977 fi
42978else
42979 pkg_failed=untried
3565d135 42980fi
3565d135 42981if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42982 if test -n "$HILDON_LIBS"; then
42983 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42984 else
42985 if test -n "$PKG_CONFIG" && \
42986 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42987 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42988 ac_status=$?
42989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42990 (exit $ac_status); }; then
42991 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42992else
3ecd9f92
MW
42993 pkg_failed=yes
42994fi
42995 fi
42996else
42997 pkg_failed=untried
3565d135
RR
42998fi
42999
3565d135 43000
3565d135 43001
3ecd9f92 43002if test $pkg_failed = yes; then
3565d135 43003
3ecd9f92
MW
43004if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43005 _pkg_short_errors_supported=yes
43006else
43007 _pkg_short_errors_supported=no
43008fi
43009 if test $_pkg_short_errors_supported = yes; then
43010 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43011 else
43012 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 43013 fi
3ecd9f92
MW
43014 # Put the nasty error message in config.log where it belongs
43015 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
43016
43017
3ecd9f92
MW
43018 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43019echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43020 wxUSE_LIBHILDON="no"
3565d135 43021
3565d135 43022
3ecd9f92
MW
43023elif test $pkg_failed = untried; then
43024
43025 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43026echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43027 wxUSE_LIBHILDON="no"
43028
43029
43030else
43031 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43032 HILDON_LIBS=$pkg_cv_HILDON_LIBS
43033 echo "$as_me:$LINENO: result: yes" >&5
43034echo "${ECHO_T}yes" >&6
3565d135
RR
43035
43036 EXTRALIBS_HILDON="$HILDON_LIBS"
43037 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43038 cat >>confdefs.h <<\_ACEOF
43039#define wxUSE_LIBHILDON 1
43040_ACEOF
43041
43042
3ecd9f92 43043fi
3565d135
RR
43044 fi
43045fi
d1c38808 43046
a848cd7e
SC
43047if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43048 cat >>confdefs.h <<\_ACEOF
43049#define wxUSE_CMDLINE_PARSER 1
43050_ACEOF
43051
43052fi
43053
43054if test "$wxUSE_STOPWATCH" = "yes"; then
43055 cat >>confdefs.h <<\_ACEOF
43056#define wxUSE_STOPWATCH 1
43057_ACEOF
43058
43059fi
43060
43061if test "$wxUSE_DATETIME" = "yes"; then
43062 cat >>confdefs.h <<\_ACEOF
43063#define wxUSE_DATETIME 1
43064_ACEOF
43065
43066fi
43067
43068if test "$wxUSE_FILE" = "yes"; then
43069 cat >>confdefs.h <<\_ACEOF
43070#define wxUSE_FILE 1
43071_ACEOF
43072
43073fi
43074
43075if test "$wxUSE_FFILE" = "yes"; then
43076 cat >>confdefs.h <<\_ACEOF
43077#define wxUSE_FFILE 1
43078_ACEOF
43079
43080fi
43081
43082if test "$wxUSE_FILESYSTEM" = "yes"; then
43083 cat >>confdefs.h <<\_ACEOF
43084#define wxUSE_FILESYSTEM 1
43085_ACEOF
43086
43087fi
43088
43089if test "$wxUSE_FS_ZIP" = "yes"; then
43090 cat >>confdefs.h <<\_ACEOF
43091#define wxUSE_FS_ZIP 1
43092_ACEOF
43093
43094fi
43095
9e8e867f 43096if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 43097 cat >>confdefs.h <<\_ACEOF
9e8e867f 43098#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
43099_ACEOF
43100
43101fi
43102
43103if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 43104 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
43105 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43106echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43107 elif test "$wxUSE_ZLIB" = "no"; then
43108 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43109echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43110 else
43111 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43112#define wxUSE_ZIPSTREAM 1
43113_ACEOF
43114
81f90336 43115 fi
a848cd7e
SC
43116fi
43117
a848cd7e 43118if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
43119 if test "$USE_UNIX" != 1; then
43120 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43121echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43122 wxUSE_ON_FATAL_EXCEPTION=no
43123 else
43124 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43125#define wxUSE_ON_FATAL_EXCEPTION 1
43126_ACEOF
43127
18228ab4 43128 fi
a848cd7e
SC
43129fi
43130
eaff0f0d
VZ
43131if test "$wxUSE_STACKWALKER" = "yes"; then
43132 cat >>confdefs.h <<\_ACEOF
43133#define wxUSE_STACKWALKER 1
43134_ACEOF
43135
43136fi
43137
36b6448c 43138if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
43139 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43140 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43141echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
43142 wxUSE_DEBUGREPORT=no
43143 else
43144 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
43145#define wxUSE_DEBUGREPORT 1
43146_ACEOF
43147
21dfc162
MW
43148 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43150 fi
dfe0c803 43151 fi
36b6448c
VZ
43152fi
43153
a848cd7e
SC
43154if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43155 cat >>confdefs.h <<\_ACEOF
43156#define wxUSE_SNGLINST_CHECKER 1
43157_ACEOF
43158
43159fi
43160
43161if test "$wxUSE_BUSYINFO" = "yes"; then
43162 cat >>confdefs.h <<\_ACEOF
43163#define wxUSE_BUSYINFO 1
43164_ACEOF
43165
43166fi
43167
43168if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43169 cat >>confdefs.h <<\_ACEOF
43170#define wxUSE_STD_IOSTREAM 1
43171_ACEOF
43172
43173fi
43174
59746b65
MW
43175if test "$wxUSE_STD_STRING" = "yes"; then
43176 cat >>confdefs.h <<\_ACEOF
43177#define wxUSE_STD_STRING 1
43178_ACEOF
43179
43180fi
43181
07158944
VZ
43182if test "$wxUSE_STDPATHS" = "yes"; then
43183 cat >>confdefs.h <<\_ACEOF
43184#define wxUSE_STDPATHS 1
43185_ACEOF
43186
43187fi
43188
a848cd7e
SC
43189if test "$wxUSE_TEXTBUFFER" = "yes"; then
43190 cat >>confdefs.h <<\_ACEOF
43191#define wxUSE_TEXTBUFFER 1
43192_ACEOF
43193
43194fi
43195
43196if test "$wxUSE_TEXTFILE" = "yes"; then
43197 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43198 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43199echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43200 else
43201 cat >>confdefs.h <<\_ACEOF
43202#define wxUSE_TEXTFILE 1
43203_ACEOF
43204
43205 fi
43206fi
43207
43208if test "$wxUSE_CONFIG" = "yes" ; then
43209 if test "$wxUSE_TEXTFILE" != "yes"; then
43210 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43211echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43212 else
43213 cat >>confdefs.h <<\_ACEOF
43214#define wxUSE_CONFIG 1
89be85c2
VS
43215_ACEOF
43216
43217 cat >>confdefs.h <<\_ACEOF
43218#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
43219_ACEOF
43220
43221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43222 fi
43223fi
43224
43225if test "$wxUSE_INTL" = "yes" ; then
43226 if test "$wxUSE_FILE" != "yes"; then
43227 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43228echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43229 else
43230 cat >>confdefs.h <<\_ACEOF
43231#define wxUSE_INTL 1
43232_ACEOF
43233
43234 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43235 GUIDIST="$GUIDIST INTL_DIST"
43236 fi
43237fi
43238
43239if test "$wxUSE_LOG" = "yes"; then
43240 cat >>confdefs.h <<\_ACEOF
43241#define wxUSE_LOG 1
43242_ACEOF
43243
43244
43245 if test "$wxUSE_LOGGUI" = "yes"; then
43246 cat >>confdefs.h <<\_ACEOF
43247#define wxUSE_LOGGUI 1
43248_ACEOF
43249
43250 fi
43251
43252 if test "$wxUSE_LOGWINDOW" = "yes"; then
43253 cat >>confdefs.h <<\_ACEOF
43254#define wxUSE_LOGWINDOW 1
43255_ACEOF
43256
43257 fi
43258
43259 if test "$wxUSE_LOGDIALOG" = "yes"; then
43260 cat >>confdefs.h <<\_ACEOF
43261#define wxUSE_LOG_DIALOG 1
43262_ACEOF
43263
43264 fi
0b78747f
MW
43265
43266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
43267fi
43268
43269if test "$wxUSE_LONGLONG" = "yes"; then
43270 cat >>confdefs.h <<\_ACEOF
43271#define wxUSE_LONGLONG 1
43272_ACEOF
43273
43274fi
43275
43276if test "$wxUSE_GEOMETRY" = "yes"; then
43277 cat >>confdefs.h <<\_ACEOF
43278#define wxUSE_GEOMETRY 1
43279_ACEOF
43280
43281fi
43282
a848cd7e
SC
43283if test "$wxUSE_STREAMS" = "yes" ; then
43284 cat >>confdefs.h <<\_ACEOF
43285#define wxUSE_STREAMS 1
43286_ACEOF
43287
43288fi
43289
8b6682b9
JS
43290if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43291 cat >>confdefs.h <<\_ACEOF
43292#define wxUSE_PRINTF_POS_PARAMS 1
43293_ACEOF
43294
43295fi
43296
43297
a848cd7e
SC
43298
43299if test "$wxUSE_DATETIME" = "yes"; then
43300
43301for ac_func in strptime
43302do
43303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43304echo "$as_me:$LINENO: checking for $ac_func" >&5
43305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43306if eval "test \"\${$as_ac_var+set}\" = set"; then
43307 echo $ECHO_N "(cached) $ECHO_C" >&6
43308else
43309 cat >conftest.$ac_ext <<_ACEOF
43310/* confdefs.h. */
43311_ACEOF
43312cat confdefs.h >>conftest.$ac_ext
43313cat >>conftest.$ac_ext <<_ACEOF
43314/* end confdefs.h. */
ac1cb8d3
VS
43315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43317#define $ac_func innocuous_$ac_func
43318
a848cd7e
SC
43319/* System header to define __stub macros and hopefully few prototypes,
43320 which can conflict with char $ac_func (); below.
43321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43322 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43323
a848cd7e
SC
43324#ifdef __STDC__
43325# include <limits.h>
43326#else
43327# include <assert.h>
43328#endif
ac1cb8d3
VS
43329
43330#undef $ac_func
43331
a848cd7e
SC
43332/* Override any gcc2 internal prototype to avoid an error. */
43333#ifdef __cplusplus
43334extern "C"
43335{
43336#endif
43337/* We use char because int might match the return type of a gcc2
43338 builtin and then its argument prototype would still apply. */
43339char $ac_func ();
43340/* The GNU C library defines this for functions which it implements
43341 to always fail with ENOSYS. Some functions are actually named
43342 something starting with __ and the normal name is an alias. */
43343#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43344choke me
43345#else
43346char (*f) () = $ac_func;
43347#endif
43348#ifdef __cplusplus
43349}
43350#endif
43351
43352int
43353main ()
43354{
43355return f != $ac_func;
43356 ;
43357 return 0;
43358}
43359_ACEOF
43360rm -f conftest.$ac_objext conftest$ac_exeext
43361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43362 (eval $ac_link) 2>conftest.er1
a848cd7e 43363 ac_status=$?
ac1cb8d3
VS
43364 grep -v '^ *+' conftest.er1 >conftest.err
43365 rm -f conftest.er1
43366 cat conftest.err >&5
a848cd7e
SC
43367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43368 (exit $ac_status); } &&
7067783d
PC
43369 { ac_try='test -z "$ac_cxx_werror_flag"
43370 || test ! -s conftest.err'
ac1cb8d3
VS
43371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43372 (eval $ac_try) 2>&5
43373 ac_status=$?
43374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43375 (exit $ac_status); }; } &&
43376 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43378 (eval $ac_try) 2>&5
43379 ac_status=$?
43380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43381 (exit $ac_status); }; }; then
43382 eval "$as_ac_var=yes"
43383else
43384 echo "$as_me: failed program was:" >&5
43385sed 's/^/| /' conftest.$ac_ext >&5
43386
43387eval "$as_ac_var=no"
43388fi
ac1cb8d3
VS
43389rm -f conftest.err conftest.$ac_objext \
43390 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43391fi
43392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43393echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43394if test `eval echo '${'$as_ac_var'}'` = yes; then
43395 cat >>confdefs.h <<_ACEOF
43396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43397_ACEOF
43398
43399fi
43400done
43401
f536f005
VZ
43402 if test "$ac_cv_func_strptime" = "yes"; then
43403 echo "$as_me:$LINENO: checking for strptime declaration" >&5
43404echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43405if test "${wx_cv_func_strptime_decl+set}" = set; then
43406 echo $ECHO_N "(cached) $ECHO_C" >&6
43407else
43408
f536f005
VZ
43409 cat >conftest.$ac_ext <<_ACEOF
43410/* confdefs.h. */
43411_ACEOF
43412cat confdefs.h >>conftest.$ac_ext
43413cat >>conftest.$ac_ext <<_ACEOF
43414/* end confdefs.h. */
43415
43416 #include <time.h>
43417
43418int
43419main ()
43420{
43421
43422 struct tm t;
43423 strptime("foo", "bar", &t);
43424
43425 ;
43426 return 0;
43427}
43428_ACEOF
43429rm -f conftest.$ac_objext
43430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43431 (eval $ac_compile) 2>conftest.er1
43432 ac_status=$?
43433 grep -v '^ *+' conftest.er1 >conftest.err
43434 rm -f conftest.er1
43435 cat conftest.err >&5
43436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43437 (exit $ac_status); } &&
7067783d
PC
43438 { ac_try='test -z "$ac_cxx_werror_flag"
43439 || test ! -s conftest.err'
f536f005
VZ
43440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43441 (eval $ac_try) 2>&5
43442 ac_status=$?
43443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43444 (exit $ac_status); }; } &&
43445 { ac_try='test -s conftest.$ac_objext'
43446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43447 (eval $ac_try) 2>&5
43448 ac_status=$?
43449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43450 (exit $ac_status); }; }; then
43451 wx_cv_func_strptime_decl=yes
43452else
43453 echo "$as_me: failed program was:" >&5
43454sed 's/^/| /' conftest.$ac_ext >&5
43455
43456wx_cv_func_strptime_decl=no
43457
43458fi
43459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
43460
43461
43462fi
43463echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43464echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43465 fi
43466 if test "$wx_cv_func_strptime_decl" = "yes"; then
43467 cat >>confdefs.h <<\_ACEOF
43468#define HAVE_STRPTIME_DECL 1
43469_ACEOF
43470
43471 fi
a848cd7e
SC
43472
43473 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43474echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43475if test "${wx_cv_var_timezone+set}" = set; then
43476 echo $ECHO_N "(cached) $ECHO_C" >&6
43477else
43478
43479 cat >conftest.$ac_ext <<_ACEOF
43480/* confdefs.h. */
43481_ACEOF
43482cat confdefs.h >>conftest.$ac_ext
43483cat >>conftest.$ac_ext <<_ACEOF
43484/* end confdefs.h. */
43485
43486 #include <time.h>
43487
43488int
43489main ()
43490{
43491
43492 int tz;
43493 tz = timezone;
43494
43495 ;
43496 return 0;
43497}
43498_ACEOF
43499rm -f conftest.$ac_objext
43500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43501 (eval $ac_compile) 2>conftest.er1
a848cd7e 43502 ac_status=$?
ac1cb8d3
VS
43503 grep -v '^ *+' conftest.er1 >conftest.err
43504 rm -f conftest.er1
43505 cat conftest.err >&5
a848cd7e
SC
43506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43507 (exit $ac_status); } &&
7067783d
PC
43508 { ac_try='test -z "$ac_cxx_werror_flag"
43509 || test ! -s conftest.err'
ac1cb8d3
VS
43510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43511 (eval $ac_try) 2>&5
43512 ac_status=$?
43513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43514 (exit $ac_status); }; } &&
43515 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43517 (eval $ac_try) 2>&5
43518 ac_status=$?
43519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43520 (exit $ac_status); }; }; then
43521
43522 wx_cv_var_timezone=timezone
43523
43524else
43525 echo "$as_me: failed program was:" >&5
43526sed 's/^/| /' conftest.$ac_ext >&5
43527
43528
43529 cat >conftest.$ac_ext <<_ACEOF
43530/* confdefs.h. */
43531_ACEOF
43532cat confdefs.h >>conftest.$ac_ext
43533cat >>conftest.$ac_ext <<_ACEOF
43534/* end confdefs.h. */
43535
43536 #include <time.h>
43537
43538int
43539main ()
43540{
43541
43542 int tz;
43543 tz = _timezone;
43544
43545 ;
43546 return 0;
43547}
43548_ACEOF
43549rm -f conftest.$ac_objext
43550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43551 (eval $ac_compile) 2>conftest.er1
a848cd7e 43552 ac_status=$?
ac1cb8d3
VS
43553 grep -v '^ *+' conftest.er1 >conftest.err
43554 rm -f conftest.er1
43555 cat conftest.err >&5
a848cd7e
SC
43556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43557 (exit $ac_status); } &&
7067783d
PC
43558 { ac_try='test -z "$ac_cxx_werror_flag"
43559 || test ! -s conftest.err'
ac1cb8d3
VS
43560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43561 (eval $ac_try) 2>&5
43562 ac_status=$?
43563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43564 (exit $ac_status); }; } &&
43565 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43567 (eval $ac_try) 2>&5
43568 ac_status=$?
43569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43570 (exit $ac_status); }; }; then
43571
43572 wx_cv_var_timezone=_timezone
43573
43574else
43575 echo "$as_me: failed program was:" >&5
43576sed 's/^/| /' conftest.$ac_ext >&5
43577
43578
43579 cat >conftest.$ac_ext <<_ACEOF
43580/* confdefs.h. */
43581_ACEOF
43582cat confdefs.h >>conftest.$ac_ext
43583cat >>conftest.$ac_ext <<_ACEOF
43584/* end confdefs.h. */
43585
43586 #include <time.h>
43587
43588int
43589main ()
43590{
43591
43592 int tz;
43593 tz = __timezone;
43594
43595 ;
43596 return 0;
43597}
43598_ACEOF
43599rm -f conftest.$ac_objext
43600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43601 (eval $ac_compile) 2>conftest.er1
a848cd7e 43602 ac_status=$?
ac1cb8d3
VS
43603 grep -v '^ *+' conftest.er1 >conftest.err
43604 rm -f conftest.er1
43605 cat conftest.err >&5
a848cd7e
SC
43606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43607 (exit $ac_status); } &&
7067783d
PC
43608 { ac_try='test -z "$ac_cxx_werror_flag"
43609 || test ! -s conftest.err'
ac1cb8d3
VS
43610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43611 (eval $ac_try) 2>&5
43612 ac_status=$?
43613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43614 (exit $ac_status); }; } &&
43615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43617 (eval $ac_try) 2>&5
43618 ac_status=$?
43619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43620 (exit $ac_status); }; }; then
43621
43622 wx_cv_var_timezone=__timezone
43623
43624else
43625 echo "$as_me: failed program was:" >&5
43626sed 's/^/| /' conftest.$ac_ext >&5
43627
43628
43629 if test "$USE_DOS" = 0 ; then
43630 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43631echo "$as_me: WARNING: no timezone variable" >&2;}
43632 fi
43633
43634
43635fi
ac1cb8d3 43636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43637
43638
43639fi
ac1cb8d3 43640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43641
43642
43643fi
ac1cb8d3 43644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43645
43646
43647fi
43648echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43649echo "${ECHO_T}$wx_cv_var_timezone" >&6
43650
43651 if test "x$wx_cv_var_timezone" != x ; then
43652 cat >>confdefs.h <<_ACEOF
43653#define WX_TIMEZONE $wx_cv_var_timezone
43654_ACEOF
43655
43656 fi
43657
43658
43659for ac_func in localtime
43660do
43661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43662echo "$as_me:$LINENO: checking for $ac_func" >&5
43663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43664if eval "test \"\${$as_ac_var+set}\" = set"; then
43665 echo $ECHO_N "(cached) $ECHO_C" >&6
43666else
43667 cat >conftest.$ac_ext <<_ACEOF
43668/* confdefs.h. */
43669_ACEOF
43670cat confdefs.h >>conftest.$ac_ext
43671cat >>conftest.$ac_ext <<_ACEOF
43672/* end confdefs.h. */
ac1cb8d3
VS
43673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43675#define $ac_func innocuous_$ac_func
43676
a848cd7e
SC
43677/* System header to define __stub macros and hopefully few prototypes,
43678 which can conflict with char $ac_func (); below.
43679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43680 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43681
a848cd7e
SC
43682#ifdef __STDC__
43683# include <limits.h>
43684#else
43685# include <assert.h>
43686#endif
ac1cb8d3
VS
43687
43688#undef $ac_func
43689
a848cd7e
SC
43690/* Override any gcc2 internal prototype to avoid an error. */
43691#ifdef __cplusplus
43692extern "C"
43693{
43694#endif
43695/* We use char because int might match the return type of a gcc2
43696 builtin and then its argument prototype would still apply. */
43697char $ac_func ();
43698/* The GNU C library defines this for functions which it implements
43699 to always fail with ENOSYS. Some functions are actually named
43700 something starting with __ and the normal name is an alias. */
43701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43702choke me
43703#else
43704char (*f) () = $ac_func;
43705#endif
43706#ifdef __cplusplus
43707}
43708#endif
43709
43710int
43711main ()
43712{
43713return f != $ac_func;
43714 ;
43715 return 0;
43716}
43717_ACEOF
43718rm -f conftest.$ac_objext conftest$ac_exeext
43719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43720 (eval $ac_link) 2>conftest.er1
a848cd7e 43721 ac_status=$?
ac1cb8d3
VS
43722 grep -v '^ *+' conftest.er1 >conftest.err
43723 rm -f conftest.er1
43724 cat conftest.err >&5
a848cd7e
SC
43725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43726 (exit $ac_status); } &&
7067783d
PC
43727 { ac_try='test -z "$ac_cxx_werror_flag"
43728 || test ! -s conftest.err'
ac1cb8d3
VS
43729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43730 (eval $ac_try) 2>&5
43731 ac_status=$?
43732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43733 (exit $ac_status); }; } &&
43734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43736 (eval $ac_try) 2>&5
43737 ac_status=$?
43738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43739 (exit $ac_status); }; }; then
43740 eval "$as_ac_var=yes"
43741else
43742 echo "$as_me: failed program was:" >&5
43743sed 's/^/| /' conftest.$ac_ext >&5
43744
43745eval "$as_ac_var=no"
43746fi
ac1cb8d3
VS
43747rm -f conftest.err conftest.$ac_objext \
43748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43749fi
43750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43752if test `eval echo '${'$as_ac_var'}'` = yes; then
43753 cat >>confdefs.h <<_ACEOF
43754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43755_ACEOF
43756
43757fi
43758done
43759
43760
43761 if test "$ac_cv_func_localtime" = "yes"; then
43762 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43763echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43764if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43765 echo $ECHO_N "(cached) $ECHO_C" >&6
43766else
43767
43768 cat >conftest.$ac_ext <<_ACEOF
43769/* confdefs.h. */
43770_ACEOF
43771cat confdefs.h >>conftest.$ac_ext
43772cat >>conftest.$ac_ext <<_ACEOF
43773/* end confdefs.h. */
43774
43775 #include <time.h>
43776
43777int
43778main ()
43779{
43780
43781 struct tm tm;
43782 tm.tm_gmtoff++;
43783
43784 ;
43785 return 0;
43786}
43787_ACEOF
43788rm -f conftest.$ac_objext
43789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43790 (eval $ac_compile) 2>conftest.er1
a848cd7e 43791 ac_status=$?
ac1cb8d3
VS
43792 grep -v '^ *+' conftest.er1 >conftest.err
43793 rm -f conftest.er1
43794 cat conftest.err >&5
a848cd7e
SC
43795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43796 (exit $ac_status); } &&
7067783d
PC
43797 { ac_try='test -z "$ac_cxx_werror_flag"
43798 || test ! -s conftest.err'
ac1cb8d3
VS
43799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43800 (eval $ac_try) 2>&5
43801 ac_status=$?
43802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43803 (exit $ac_status); }; } &&
43804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43806 (eval $ac_try) 2>&5
43807 ac_status=$?
43808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43809 (exit $ac_status); }; }; then
43810
43811 wx_cv_struct_tm_has_gmtoff=yes
43812
43813else
43814 echo "$as_me: failed program was:" >&5
43815sed 's/^/| /' conftest.$ac_ext >&5
43816
43817wx_cv_struct_tm_has_gmtoff=no
43818
43819fi
ac1cb8d3 43820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43821
43822fi
43823echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43824echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
43825 fi
43826
43827 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43828 cat >>confdefs.h <<\_ACEOF
43829#define WX_GMTOFF_IN_TM 1
43830_ACEOF
43831
43832 fi
43833
43834
43835
43836for ac_func in gettimeofday ftime
43837do
43838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43839echo "$as_me:$LINENO: checking for $ac_func" >&5
43840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43841if eval "test \"\${$as_ac_var+set}\" = set"; then
43842 echo $ECHO_N "(cached) $ECHO_C" >&6
43843else
43844 cat >conftest.$ac_ext <<_ACEOF
43845/* confdefs.h. */
43846_ACEOF
43847cat confdefs.h >>conftest.$ac_ext
43848cat >>conftest.$ac_ext <<_ACEOF
43849/* end confdefs.h. */
ac1cb8d3
VS
43850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43852#define $ac_func innocuous_$ac_func
43853
a848cd7e
SC
43854/* System header to define __stub macros and hopefully few prototypes,
43855 which can conflict with char $ac_func (); below.
43856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43857 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43858
a848cd7e
SC
43859#ifdef __STDC__
43860# include <limits.h>
43861#else
43862# include <assert.h>
43863#endif
ac1cb8d3
VS
43864
43865#undef $ac_func
43866
a848cd7e
SC
43867/* Override any gcc2 internal prototype to avoid an error. */
43868#ifdef __cplusplus
43869extern "C"
43870{
43871#endif
43872/* We use char because int might match the return type of a gcc2
43873 builtin and then its argument prototype would still apply. */
43874char $ac_func ();
43875/* The GNU C library defines this for functions which it implements
43876 to always fail with ENOSYS. Some functions are actually named
43877 something starting with __ and the normal name is an alias. */
43878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43879choke me
43880#else
43881char (*f) () = $ac_func;
43882#endif
43883#ifdef __cplusplus
43884}
43885#endif
43886
43887int
43888main ()
43889{
43890return f != $ac_func;
43891 ;
43892 return 0;
43893}
43894_ACEOF
43895rm -f conftest.$ac_objext conftest$ac_exeext
43896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43897 (eval $ac_link) 2>conftest.er1
a848cd7e 43898 ac_status=$?
ac1cb8d3
VS
43899 grep -v '^ *+' conftest.er1 >conftest.err
43900 rm -f conftest.er1
43901 cat conftest.err >&5
a848cd7e
SC
43902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43903 (exit $ac_status); } &&
7067783d
PC
43904 { ac_try='test -z "$ac_cxx_werror_flag"
43905 || test ! -s conftest.err'
ac1cb8d3
VS
43906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43907 (eval $ac_try) 2>&5
43908 ac_status=$?
43909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43910 (exit $ac_status); }; } &&
43911 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43913 (eval $ac_try) 2>&5
43914 ac_status=$?
43915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43916 (exit $ac_status); }; }; then
43917 eval "$as_ac_var=yes"
43918else
43919 echo "$as_me: failed program was:" >&5
43920sed 's/^/| /' conftest.$ac_ext >&5
43921
43922eval "$as_ac_var=no"
43923fi
ac1cb8d3
VS
43924rm -f conftest.err conftest.$ac_objext \
43925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43926fi
43927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43928echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43929if test `eval echo '${'$as_ac_var'}'` = yes; then
43930 cat >>confdefs.h <<_ACEOF
43931#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43932_ACEOF
43933 break
43934fi
43935done
43936
43937
43938 if test "$ac_cv_func_gettimeofday" = "yes"; then
43939 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43940echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
43941if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43942 echo $ECHO_N "(cached) $ECHO_C" >&6
43943else
43944
5d7b7554 43945 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
43946/* confdefs.h. */
43947_ACEOF
43948cat confdefs.h >>conftest.$ac_ext
43949cat >>conftest.$ac_ext <<_ACEOF
43950/* end confdefs.h. */
43951
43952 #include <sys/time.h>
43953 #include <unistd.h>
43954
43955int
43956main ()
43957{
43958
43959 struct timeval tv;
43960 gettimeofday(&tv, NULL);
43961
43962 ;
43963 return 0;
43964}
43965_ACEOF
43966rm -f conftest.$ac_objext
43967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43968 (eval $ac_compile) 2>conftest.er1
a848cd7e 43969 ac_status=$?
ac1cb8d3
VS
43970 grep -v '^ *+' conftest.er1 >conftest.err
43971 rm -f conftest.er1
43972 cat conftest.err >&5
a848cd7e
SC
43973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43974 (exit $ac_status); } &&
7067783d
PC
43975 { ac_try='test -z "$ac_cxx_werror_flag"
43976 || test ! -s conftest.err'
ac1cb8d3
VS
43977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43978 (eval $ac_try) 2>&5
43979 ac_status=$?
43980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43981 (exit $ac_status); }; } &&
43982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43984 (eval $ac_try) 2>&5
43985 ac_status=$?
43986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43987 (exit $ac_status); }; }; then
43988 wx_cv_func_gettimeofday_has_2_args=yes
43989else
43990 echo "$as_me: failed program was:" >&5
43991sed 's/^/| /' conftest.$ac_ext >&5
43992
43993cat >conftest.$ac_ext <<_ACEOF
43994/* confdefs.h. */
43995_ACEOF
43996cat confdefs.h >>conftest.$ac_ext
43997cat >>conftest.$ac_ext <<_ACEOF
43998/* end confdefs.h. */
43999
44000 #include <sys/time.h>
44001 #include <unistd.h>
44002
44003int
44004main ()
44005{
44006
44007 struct timeval tv;
44008 gettimeofday(&tv);
44009
44010 ;
44011 return 0;
44012}
44013_ACEOF
44014rm -f conftest.$ac_objext
44015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44016 (eval $ac_compile) 2>conftest.er1
a848cd7e 44017 ac_status=$?
ac1cb8d3
VS
44018 grep -v '^ *+' conftest.er1 >conftest.err
44019 rm -f conftest.er1
44020 cat conftest.err >&5
a848cd7e
SC
44021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44022 (exit $ac_status); } &&
7067783d
PC
44023 { ac_try='test -z "$ac_cxx_werror_flag"
44024 || test ! -s conftest.err'
ac1cb8d3
VS
44025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44026 (eval $ac_try) 2>&5
44027 ac_status=$?
44028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44029 (exit $ac_status); }; } &&
44030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44032 (eval $ac_try) 2>&5
44033 ac_status=$?
44034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44035 (exit $ac_status); }; }; then
44036 wx_cv_func_gettimeofday_has_2_args=no
44037else
44038 echo "$as_me: failed program was:" >&5
44039sed 's/^/| /' conftest.$ac_ext >&5
44040
44041
44042 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44043echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44044 wx_cv_func_gettimeofday_has_2_args=unknown
44045
44046
44047fi
ac1cb8d3 44048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44049
44050fi
ac1cb8d3 44051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44052
44053fi
44054echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44055echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
44056
44057 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44058 cat >>confdefs.h <<\_ACEOF
44059#define WX_GETTIMEOFDAY_NO_TZ 1
44060_ACEOF
44061
44062 fi
44063 fi
44064
44065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44066fi
44067
44068
44069if test "$wxUSE_SOCKETS" = "yes"; then
44070 if test "$wxUSE_MGL" = "1"; then
44071 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44072echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44073 wxUSE_SOCKETS="no"
44074 fi
44075fi
44076
44077if test "$wxUSE_SOCKETS" = "yes"; then
44078 if test "$TOOLKIT" != "MSW"; then
44079 echo "$as_me:$LINENO: checking for socket" >&5
44080echo $ECHO_N "checking for socket... $ECHO_C" >&6
44081if test "${ac_cv_func_socket+set}" = set; then
44082 echo $ECHO_N "(cached) $ECHO_C" >&6
44083else
44084 cat >conftest.$ac_ext <<_ACEOF
44085/* confdefs.h. */
44086_ACEOF
44087cat confdefs.h >>conftest.$ac_ext
44088cat >>conftest.$ac_ext <<_ACEOF
44089/* end confdefs.h. */
ac1cb8d3
VS
44090/* Define socket to an innocuous variant, in case <limits.h> declares socket.
44091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44092#define socket innocuous_socket
44093
a848cd7e
SC
44094/* System header to define __stub macros and hopefully few prototypes,
44095 which can conflict with char socket (); below.
44096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44097 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44098
a848cd7e
SC
44099#ifdef __STDC__
44100# include <limits.h>
44101#else
44102# include <assert.h>
44103#endif
ac1cb8d3
VS
44104
44105#undef socket
44106
a848cd7e
SC
44107/* Override any gcc2 internal prototype to avoid an error. */
44108#ifdef __cplusplus
44109extern "C"
44110{
44111#endif
44112/* We use char because int might match the return type of a gcc2
44113 builtin and then its argument prototype would still apply. */
44114char socket ();
44115/* The GNU C library defines this for functions which it implements
44116 to always fail with ENOSYS. Some functions are actually named
44117 something starting with __ and the normal name is an alias. */
44118#if defined (__stub_socket) || defined (__stub___socket)
44119choke me
44120#else
44121char (*f) () = socket;
44122#endif
44123#ifdef __cplusplus
44124}
44125#endif
44126
44127int
44128main ()
44129{
44130return f != socket;
44131 ;
44132 return 0;
44133}
44134_ACEOF
44135rm -f conftest.$ac_objext conftest$ac_exeext
44136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44137 (eval $ac_link) 2>conftest.er1
a848cd7e 44138 ac_status=$?
ac1cb8d3
VS
44139 grep -v '^ *+' conftest.er1 >conftest.err
44140 rm -f conftest.er1
44141 cat conftest.err >&5
a848cd7e
SC
44142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44143 (exit $ac_status); } &&
7067783d
PC
44144 { ac_try='test -z "$ac_cxx_werror_flag"
44145 || test ! -s conftest.err'
ac1cb8d3
VS
44146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44147 (eval $ac_try) 2>&5
44148 ac_status=$?
44149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44150 (exit $ac_status); }; } &&
44151 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44153 (eval $ac_try) 2>&5
44154 ac_status=$?
44155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44156 (exit $ac_status); }; }; then
44157 ac_cv_func_socket=yes
44158else
44159 echo "$as_me: failed program was:" >&5
44160sed 's/^/| /' conftest.$ac_ext >&5
44161
44162ac_cv_func_socket=no
44163fi
ac1cb8d3
VS
44164rm -f conftest.err conftest.$ac_objext \
44165 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44166fi
44167echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44168echo "${ECHO_T}$ac_cv_func_socket" >&6
44169if test $ac_cv_func_socket = yes; then
44170 :
44171else
44172
44173 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44174echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
44175if test "${ac_cv_lib_socket_socket+set}" = set; then
44176 echo $ECHO_N "(cached) $ECHO_C" >&6
44177else
44178 ac_check_lib_save_LIBS=$LIBS
44179LIBS="-lsocket $LIBS"
44180cat >conftest.$ac_ext <<_ACEOF
44181/* confdefs.h. */
44182_ACEOF
44183cat confdefs.h >>conftest.$ac_ext
44184cat >>conftest.$ac_ext <<_ACEOF
44185/* end confdefs.h. */
44186
44187/* Override any gcc2 internal prototype to avoid an error. */
44188#ifdef __cplusplus
44189extern "C"
44190#endif
44191/* We use char because int might match the return type of a gcc2
44192 builtin and then its argument prototype would still apply. */
44193char socket ();
44194int
44195main ()
44196{
44197socket ();
44198 ;
44199 return 0;
44200}
44201_ACEOF
44202rm -f conftest.$ac_objext conftest$ac_exeext
44203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44204 (eval $ac_link) 2>conftest.er1
a848cd7e 44205 ac_status=$?
ac1cb8d3
VS
44206 grep -v '^ *+' conftest.er1 >conftest.err
44207 rm -f conftest.er1
44208 cat conftest.err >&5
a848cd7e
SC
44209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44210 (exit $ac_status); } &&
7067783d
PC
44211 { ac_try='test -z "$ac_cxx_werror_flag"
44212 || test ! -s conftest.err'
ac1cb8d3
VS
44213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44214 (eval $ac_try) 2>&5
44215 ac_status=$?
44216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44217 (exit $ac_status); }; } &&
44218 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44220 (eval $ac_try) 2>&5
44221 ac_status=$?
44222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44223 (exit $ac_status); }; }; then
44224 ac_cv_lib_socket_socket=yes
44225else
44226 echo "$as_me: failed program was:" >&5
44227sed 's/^/| /' conftest.$ac_ext >&5
44228
44229ac_cv_lib_socket_socket=no
44230fi
ac1cb8d3
VS
44231rm -f conftest.err conftest.$ac_objext \
44232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44233LIBS=$ac_check_lib_save_LIBS
44234fi
44235echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44236echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
44237if test $ac_cv_lib_socket_socket = yes; then
44238 if test "$INET_LINK" != " -lsocket"; then
44239 INET_LINK="$INET_LINK -lsocket"
44240 fi
44241else
44242
44243 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44244echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44245 wxUSE_SOCKETS=no
44246
44247
44248fi
44249
44250
44251
44252fi
44253
44254 fi
44255fi
44256
44257if test "$wxUSE_SOCKETS" = "yes" ; then
44258 if test "$TOOLKIT" != "MSW"; then
5d7b7554 44259 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
44260echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
44261if test "${wx_cv_type_getsockname3+set}" = set; then
44262 echo $ECHO_N "(cached) $ECHO_C" >&6
44263else
44264
44265 cat >conftest.$ac_ext <<_ACEOF
44266/* confdefs.h. */
44267_ACEOF
44268cat confdefs.h >>conftest.$ac_ext
44269cat >>conftest.$ac_ext <<_ACEOF
44270/* end confdefs.h. */
44271
44272 #include <sys/types.h>
44273 #include <sys/socket.h>
44274
44275int
44276main ()
44277{
44278
44279 socklen_t len;
44280 getsockname(0, 0, &len);
44281
44282 ;
44283 return 0;
44284}
44285_ACEOF
44286rm -f conftest.$ac_objext
44287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44288 (eval $ac_compile) 2>conftest.er1
a848cd7e 44289 ac_status=$?
ac1cb8d3
VS
44290 grep -v '^ *+' conftest.er1 >conftest.err
44291 rm -f conftest.er1
44292 cat conftest.err >&5
a848cd7e
SC
44293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44294 (exit $ac_status); } &&
7067783d
PC
44295 { ac_try='test -z "$ac_cxx_werror_flag"
44296 || test ! -s conftest.err'
ac1cb8d3
VS
44297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44298 (eval $ac_try) 2>&5
44299 ac_status=$?
44300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44301 (exit $ac_status); }; } &&
44302 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44304 (eval $ac_try) 2>&5
44305 ac_status=$?
44306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44307 (exit $ac_status); }; }; then
44308 wx_cv_type_getsockname3=socklen_t
44309else
44310 echo "$as_me: failed program was:" >&5
44311sed 's/^/| /' conftest.$ac_ext >&5
44312
44313
6459a506 44314 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 44315 if test "$GCC" = yes ; then
c92ad099 44316 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
44317 fi
44318
44319 cat >conftest.$ac_ext <<_ACEOF
44320/* confdefs.h. */
44321_ACEOF
44322cat confdefs.h >>conftest.$ac_ext
44323cat >>conftest.$ac_ext <<_ACEOF
44324/* end confdefs.h. */
44325
44326 #include <sys/types.h>
44327 #include <sys/socket.h>
44328
44329int
44330main ()
44331{
44332
44333 size_t len;
44334 getsockname(0, 0, &len);
44335
44336 ;
44337 return 0;
44338}
44339_ACEOF
44340rm -f conftest.$ac_objext
44341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44342 (eval $ac_compile) 2>conftest.er1
a848cd7e 44343 ac_status=$?
ac1cb8d3
VS
44344 grep -v '^ *+' conftest.er1 >conftest.err
44345 rm -f conftest.er1
44346 cat conftest.err >&5
a848cd7e
SC
44347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44348 (exit $ac_status); } &&
7067783d
PC
44349 { ac_try='test -z "$ac_cxx_werror_flag"
44350 || test ! -s conftest.err'
ac1cb8d3
VS
44351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44352 (eval $ac_try) 2>&5
44353 ac_status=$?
44354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44355 (exit $ac_status); }; } &&
44356 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44358 (eval $ac_try) 2>&5
44359 ac_status=$?
44360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44361 (exit $ac_status); }; }; then
44362 wx_cv_type_getsockname3=size_t
44363else
44364 echo "$as_me: failed program was:" >&5
44365sed 's/^/| /' conftest.$ac_ext >&5
44366
44367cat >conftest.$ac_ext <<_ACEOF
44368/* confdefs.h. */
44369_ACEOF
44370cat confdefs.h >>conftest.$ac_ext
44371cat >>conftest.$ac_ext <<_ACEOF
44372/* end confdefs.h. */
44373
44374 #include <sys/types.h>
44375 #include <sys/socket.h>
44376
44377int
44378main ()
44379{
44380
44381 int len;
44382 getsockname(0, 0, &len);
44383
44384 ;
44385 return 0;
44386}
44387_ACEOF
44388rm -f conftest.$ac_objext
44389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44390 (eval $ac_compile) 2>conftest.er1
a848cd7e 44391 ac_status=$?
ac1cb8d3
VS
44392 grep -v '^ *+' conftest.er1 >conftest.err
44393 rm -f conftest.er1
44394 cat conftest.err >&5
a848cd7e
SC
44395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44396 (exit $ac_status); } &&
7067783d
PC
44397 { ac_try='test -z "$ac_cxx_werror_flag"
44398 || test ! -s conftest.err'
ac1cb8d3
VS
44399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44400 (eval $ac_try) 2>&5
44401 ac_status=$?
44402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44403 (exit $ac_status); }; } &&
44404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44406 (eval $ac_try) 2>&5
44407 ac_status=$?
44408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44409 (exit $ac_status); }; }; then
44410 wx_cv_type_getsockname3=int
44411else
44412 echo "$as_me: failed program was:" >&5
44413sed 's/^/| /' conftest.$ac_ext >&5
44414
44415wx_cv_type_getsockname3=unknown
44416
44417fi
ac1cb8d3 44418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44419
44420fi
ac1cb8d3 44421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44422
6459a506 44423 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
44424
44425
44426fi
ac1cb8d3 44427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44428
44429fi
44430echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44431echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44432
44433 if test "$wx_cv_type_getsockname3" = "unknown"; then
44434 wxUSE_SOCKETS=no
44435 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44436echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44437 else
44438 cat >>confdefs.h <<_ACEOF
9e03e02d 44439#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
44440_ACEOF
44441
44442 fi
44443 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44444echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44445if test "${wx_cv_type_getsockopt5+set}" = set; then
44446 echo $ECHO_N "(cached) $ECHO_C" >&6
44447else
44448
44449 cat >conftest.$ac_ext <<_ACEOF
44450/* confdefs.h. */
44451_ACEOF
44452cat confdefs.h >>conftest.$ac_ext
44453cat >>conftest.$ac_ext <<_ACEOF
44454/* end confdefs.h. */
44455
44456 #include <sys/types.h>
44457 #include <sys/socket.h>
44458
44459int
44460main ()
44461{
44462
44463 socklen_t len;
44464 getsockopt(0, 0, 0, 0, &len);
44465
44466 ;
44467 return 0;
44468}
44469_ACEOF
44470rm -f conftest.$ac_objext
44471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44472 (eval $ac_compile) 2>conftest.er1
44473 ac_status=$?
44474 grep -v '^ *+' conftest.er1 >conftest.err
44475 rm -f conftest.er1
44476 cat conftest.err >&5
44477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44478 (exit $ac_status); } &&
7067783d
PC
44479 { ac_try='test -z "$ac_cxx_werror_flag"
44480 || test ! -s conftest.err'
5b674b9d
DE
44481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44482 (eval $ac_try) 2>&5
44483 ac_status=$?
44484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44485 (exit $ac_status); }; } &&
44486 { ac_try='test -s conftest.$ac_objext'
44487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44488 (eval $ac_try) 2>&5
44489 ac_status=$?
44490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44491 (exit $ac_status); }; }; then
44492 wx_cv_type_getsockopt5=socklen_t
44493else
44494 echo "$as_me: failed program was:" >&5
44495sed 's/^/| /' conftest.$ac_ext >&5
44496
44497
6459a506 44498 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 44499 if test "$GCC" = yes ; then
c92ad099 44500 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
44501 fi
44502
44503 cat >conftest.$ac_ext <<_ACEOF
44504/* confdefs.h. */
44505_ACEOF
44506cat confdefs.h >>conftest.$ac_ext
44507cat >>conftest.$ac_ext <<_ACEOF
44508/* end confdefs.h. */
44509
44510 #include <sys/types.h>
44511 #include <sys/socket.h>
44512
44513int
44514main ()
44515{
44516
44517 size_t len;
44518 getsockopt(0, 0, 0, 0, &len);
44519
44520 ;
44521 return 0;
44522}
44523_ACEOF
44524rm -f conftest.$ac_objext
44525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44526 (eval $ac_compile) 2>conftest.er1
44527 ac_status=$?
44528 grep -v '^ *+' conftest.er1 >conftest.err
44529 rm -f conftest.er1
44530 cat conftest.err >&5
44531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44532 (exit $ac_status); } &&
7067783d
PC
44533 { ac_try='test -z "$ac_cxx_werror_flag"
44534 || test ! -s conftest.err'
5b674b9d
DE
44535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44536 (eval $ac_try) 2>&5
44537 ac_status=$?
44538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44539 (exit $ac_status); }; } &&
44540 { ac_try='test -s conftest.$ac_objext'
44541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44542 (eval $ac_try) 2>&5
44543 ac_status=$?
44544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44545 (exit $ac_status); }; }; then
44546 wx_cv_type_getsockopt5=size_t
44547else
44548 echo "$as_me: failed program was:" >&5
44549sed 's/^/| /' conftest.$ac_ext >&5
44550
44551cat >conftest.$ac_ext <<_ACEOF
44552/* confdefs.h. */
44553_ACEOF
44554cat confdefs.h >>conftest.$ac_ext
44555cat >>conftest.$ac_ext <<_ACEOF
44556/* end confdefs.h. */
44557
44558 #include <sys/types.h>
44559 #include <sys/socket.h>
44560
44561int
44562main ()
44563{
44564
44565 int len;
44566 getsockopt(0, 0, 0, 0, &len);
44567
44568 ;
44569 return 0;
44570}
44571_ACEOF
44572rm -f conftest.$ac_objext
44573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44574 (eval $ac_compile) 2>conftest.er1
44575 ac_status=$?
44576 grep -v '^ *+' conftest.er1 >conftest.err
44577 rm -f conftest.er1
44578 cat conftest.err >&5
44579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44580 (exit $ac_status); } &&
7067783d
PC
44581 { ac_try='test -z "$ac_cxx_werror_flag"
44582 || test ! -s conftest.err'
5b674b9d
DE
44583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44584 (eval $ac_try) 2>&5
44585 ac_status=$?
44586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44587 (exit $ac_status); }; } &&
44588 { ac_try='test -s conftest.$ac_objext'
44589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44590 (eval $ac_try) 2>&5
44591 ac_status=$?
44592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44593 (exit $ac_status); }; }; then
44594 wx_cv_type_getsockopt5=int
44595else
44596 echo "$as_me: failed program was:" >&5
44597sed 's/^/| /' conftest.$ac_ext >&5
44598
44599wx_cv_type_getsockopt5=unknown
44600
44601fi
44602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44603
44604fi
44605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44606
6459a506 44607 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
44608
44609
44610fi
44611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44612
44613fi
44614echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44615echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44616
44617 if test "$wx_cv_type_getsockopt5" = "unknown"; then
44618 wxUSE_SOCKETS=no
44619 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44620echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44621 else
44622 cat >>confdefs.h <<_ACEOF
44623#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
44624_ACEOF
44625
44626 fi
44627 fi
44628fi
44629
44630if test "$wxUSE_SOCKETS" = "yes" ; then
44631 cat >>confdefs.h <<\_ACEOF
44632#define wxUSE_SOCKETS 1
44633_ACEOF
44634
44635 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44636fi
44637
44638if test "$wxUSE_PROTOCOL" = "yes"; then
44639 if test "$wxUSE_SOCKETS" != "yes"; then
44640 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44641echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44642 wxUSE_PROTOCOL=no
44643 fi
44644fi
44645
44646if test "$wxUSE_PROTOCOL" = "yes"; then
44647 cat >>confdefs.h <<\_ACEOF
44648#define wxUSE_PROTOCOL 1
44649_ACEOF
44650
44651
44652 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44653 cat >>confdefs.h <<\_ACEOF
44654#define wxUSE_PROTOCOL_HTTP 1
44655_ACEOF
44656
44657 fi
44658 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44659 cat >>confdefs.h <<\_ACEOF
44660#define wxUSE_PROTOCOL_FTP 1
44661_ACEOF
44662
44663 fi
44664 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44665 cat >>confdefs.h <<\_ACEOF
44666#define wxUSE_PROTOCOL_FILE 1
44667_ACEOF
44668
44669 fi
44670else
44671 if test "$wxUSE_FS_INET" = "yes"; then
44672 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44673echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44674 wxUSE_FS_INET="no"
44675 fi
44676fi
44677
44678if test "$wxUSE_URL" = "yes"; then
44679 if test "$wxUSE_PROTOCOL" != "yes"; then
44680 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44681echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44682 wxUSE_URL=no
44683 fi
44684 if test "$wxUSE_URL" = "yes"; then
44685 cat >>confdefs.h <<\_ACEOF
44686#define wxUSE_URL 1
44687_ACEOF
44688
44689 fi
44690fi
44691
ca5c6ac3
VZ
44692if test "$wxUSE_VARIANT" = "yes"; then
44693 cat >>confdefs.h <<\_ACEOF
44694#define wxUSE_VARIANT 1
44695_ACEOF
44696
44697fi
44698
a848cd7e
SC
44699if test "$wxUSE_FS_INET" = "yes"; then
44700 cat >>confdefs.h <<\_ACEOF
44701#define wxUSE_FS_INET 1
44702_ACEOF
44703
44704fi
44705
44706
ee45c548
MW
44707if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44708 wxUSE_JOYSTICK=no
44709
44710 if test "$TOOLKIT" = "MSW"; then
44711 wxUSE_JOYSTICK=yes
44712
44713 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44714 if test "$USE_DARWIN" = 1; then
44715 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44716echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
44717 cat >conftest.$ac_ext <<_ACEOF
44718/* confdefs.h. */
44719_ACEOF
44720cat confdefs.h >>conftest.$ac_ext
44721cat >>conftest.$ac_ext <<_ACEOF
44722/* end confdefs.h. */
44723 #include <IOKit/hid/IOHIDLib.h>
44724int
44725main ()
44726{
44727 IOHIDQueueInterface *qi = NULL;
44728 IOHIDCallbackFunction cb = NULL;
44729 qi->setEventCallout(NULL, cb, NULL, NULL);
44730 ;
44731 return 0;
44732}
44733_ACEOF
44734rm -f conftest.$ac_objext
44735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44736 (eval $ac_compile) 2>conftest.er1
44737 ac_status=$?
44738 grep -v '^ *+' conftest.er1 >conftest.err
44739 rm -f conftest.er1
44740 cat conftest.err >&5
44741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44742 (exit $ac_status); } &&
7067783d
PC
44743 { ac_try='test -z "$ac_cxx_werror_flag"
44744 || test ! -s conftest.err'
ee45c548
MW
44745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44746 (eval $ac_try) 2>&5
44747 ac_status=$?
44748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44749 (exit $ac_status); }; } &&
44750 { ac_try='test -s conftest.$ac_objext'
44751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44752 (eval $ac_try) 2>&5
44753 ac_status=$?
44754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44755 (exit $ac_status); }; }; then
44756 wxUSE_JOYSTICK=yes
a848cd7e 44757
ee45c548
MW
44758else
44759 echo "$as_me: failed program was:" >&5
44760sed 's/^/| /' conftest.$ac_ext >&5
44761
44762fi
44763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
44764 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44765echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44766 fi
44767
44768 else
a848cd7e
SC
44769
44770for ac_header in linux/joystick.h
44771do
44772as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44773if eval "test \"\${$as_ac_Header+set}\" = set"; then
44774 echo "$as_me:$LINENO: checking for $ac_header" >&5
44775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44776if eval "test \"\${$as_ac_Header+set}\" = set"; then
44777 echo $ECHO_N "(cached) $ECHO_C" >&6
44778fi
44779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44781else
44782 # Is the header compilable?
44783echo "$as_me:$LINENO: checking $ac_header usability" >&5
44784echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44785cat >conftest.$ac_ext <<_ACEOF
44786/* confdefs.h. */
44787_ACEOF
44788cat confdefs.h >>conftest.$ac_ext
44789cat >>conftest.$ac_ext <<_ACEOF
44790/* end confdefs.h. */
44791$ac_includes_default
44792#include <$ac_header>
44793_ACEOF
44794rm -f conftest.$ac_objext
44795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44796 (eval $ac_compile) 2>conftest.er1
a848cd7e 44797 ac_status=$?
ac1cb8d3
VS
44798 grep -v '^ *+' conftest.er1 >conftest.err
44799 rm -f conftest.er1
44800 cat conftest.err >&5
a848cd7e
SC
44801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44802 (exit $ac_status); } &&
7067783d
PC
44803 { ac_try='test -z "$ac_cxx_werror_flag"
44804 || test ! -s conftest.err'
ac1cb8d3
VS
44805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44806 (eval $ac_try) 2>&5
44807 ac_status=$?
44808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44809 (exit $ac_status); }; } &&
44810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44812 (eval $ac_try) 2>&5
44813 ac_status=$?
44814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44815 (exit $ac_status); }; }; then
44816 ac_header_compiler=yes
44817else
44818 echo "$as_me: failed program was:" >&5
44819sed 's/^/| /' conftest.$ac_ext >&5
44820
44821ac_header_compiler=no
44822fi
ac1cb8d3 44823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44824echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44825echo "${ECHO_T}$ac_header_compiler" >&6
44826
44827# Is the header present?
44828echo "$as_me:$LINENO: checking $ac_header presence" >&5
44829echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44830cat >conftest.$ac_ext <<_ACEOF
44831/* confdefs.h. */
44832_ACEOF
44833cat confdefs.h >>conftest.$ac_ext
44834cat >>conftest.$ac_ext <<_ACEOF
44835/* end confdefs.h. */
44836#include <$ac_header>
44837_ACEOF
44838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44840 ac_status=$?
44841 grep -v '^ *+' conftest.er1 >conftest.err
44842 rm -f conftest.er1
44843 cat conftest.err >&5
44844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44845 (exit $ac_status); } >/dev/null; then
44846 if test -s conftest.err; then
5d7b7554
VZ
44847 ac_cpp_err=$ac_cxx_preproc_warn_flag
44848 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44849 else
44850 ac_cpp_err=
44851 fi
44852else
44853 ac_cpp_err=yes
44854fi
44855if test -z "$ac_cpp_err"; then
44856 ac_header_preproc=yes
44857else
44858 echo "$as_me: failed program was:" >&5
44859sed 's/^/| /' conftest.$ac_ext >&5
44860
44861 ac_header_preproc=no
44862fi
44863rm -f conftest.err conftest.$ac_ext
44864echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44865echo "${ECHO_T}$ac_header_preproc" >&6
44866
44867# So? What about this header?
5d7b7554 44868case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44869 yes:no: )
a848cd7e
SC
44870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44871echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44873echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44874 ac_header_preproc=yes
a848cd7e 44875 ;;
ac1cb8d3 44876 no:yes:* )
a848cd7e
SC
44877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44878echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44880echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44882echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44884echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44886echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44888echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44889 (
44890 cat <<\_ASBOX
ac1cb8d3
VS
44891## ----------------------------------------- ##
44892## Report this to wx-dev@lists.wxwidgets.org ##
44893## ----------------------------------------- ##
a848cd7e
SC
44894_ASBOX
44895 ) |
44896 sed "s/^/$as_me: WARNING: /" >&2
44897 ;;
44898esac
44899echo "$as_me:$LINENO: checking for $ac_header" >&5
44900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44901if eval "test \"\${$as_ac_Header+set}\" = set"; then
44902 echo $ECHO_N "(cached) $ECHO_C" >&6
44903else
ac1cb8d3 44904 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44905fi
44906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44908
44909fi
44910if test `eval echo '${'$as_ac_Header'}'` = yes; then
44911 cat >>confdefs.h <<_ACEOF
44912#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44913_ACEOF
ee45c548 44914 wxUSE_JOYSTICK=yes
a848cd7e
SC
44915fi
44916
44917done
44918
ee45c548 44919 fi
4cb1d3da 44920
ee45c548
MW
44921 if test "$wxUSE_JOYSTICK" = "yes"; then
44922 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44923#define wxUSE_JOYSTICK 1
44924_ACEOF
44925
ee45c548
MW
44926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44927 else
44928 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44929echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
44930 fi
44931fi
44932
44933
44934
44935if test "$wxUSE_FONTMAP" = "yes" ; then
44936 cat >>confdefs.h <<\_ACEOF
44937#define wxUSE_FONTMAP 1
44938_ACEOF
44939
44940fi
44941
44942if test "$wxUSE_UNICODE" = "yes" ; then
44943 cat >>confdefs.h <<\_ACEOF
44944#define wxUSE_UNICODE 1
44945_ACEOF
44946
44947
44948 if test "$USE_WIN32" != 1; then
44949 wxUSE_UNICODE_MSLU=no
44950 fi
44951
44952 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44953 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44954echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
44955if test "${ac_cv_lib_unicows_main+set}" = set; then
44956 echo $ECHO_N "(cached) $ECHO_C" >&6
44957else
44958 ac_check_lib_save_LIBS=$LIBS
44959LIBS="-lunicows $LIBS"
44960cat >conftest.$ac_ext <<_ACEOF
44961/* confdefs.h. */
44962_ACEOF
44963cat confdefs.h >>conftest.$ac_ext
44964cat >>conftest.$ac_ext <<_ACEOF
44965/* end confdefs.h. */
44966
44967
44968int
44969main ()
44970{
44971main ();
44972 ;
44973 return 0;
44974}
44975_ACEOF
44976rm -f conftest.$ac_objext conftest$ac_exeext
44977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44978 (eval $ac_link) 2>conftest.er1
a848cd7e 44979 ac_status=$?
ac1cb8d3
VS
44980 grep -v '^ *+' conftest.er1 >conftest.err
44981 rm -f conftest.er1
44982 cat conftest.err >&5
a848cd7e
SC
44983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44984 (exit $ac_status); } &&
7067783d
PC
44985 { ac_try='test -z "$ac_cxx_werror_flag"
44986 || test ! -s conftest.err'
ac1cb8d3
VS
44987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44988 (eval $ac_try) 2>&5
44989 ac_status=$?
44990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44991 (exit $ac_status); }; } &&
44992 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44994 (eval $ac_try) 2>&5
44995 ac_status=$?
44996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44997 (exit $ac_status); }; }; then
44998 ac_cv_lib_unicows_main=yes
44999else
45000 echo "$as_me: failed program was:" >&5
45001sed 's/^/| /' conftest.$ac_ext >&5
45002
45003ac_cv_lib_unicows_main=no
45004fi
ac1cb8d3
VS
45005rm -f conftest.err conftest.$ac_objext \
45006 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45007LIBS=$ac_check_lib_save_LIBS
45008fi
45009echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45010echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
45011if test $ac_cv_lib_unicows_main = yes; then
45012
45013 cat >>confdefs.h <<\_ACEOF
45014#define wxUSE_UNICODE_MSLU 1
45015_ACEOF
45016
45017
45018else
45019
45020 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45021 Applications will only run on Windows NT/2000/XP!" >&5
45022echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45023 Applications will only run on Windows NT/2000/XP!" >&2;}
45024 wxUSE_UNICODE_MSLU=no
45025
45026fi
45027
45028 fi
45029fi
45030
45031if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
45032 cat >>confdefs.h <<\_ACEOF
45033#define wxUSE_EXPERIMENTAL_PRINTF 1
45034_ACEOF
45035
45036fi
45037
45038
45039if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45040 cat >>confdefs.h <<\_ACEOF
45041#define wxUSE_POSTSCRIPT 1
45042_ACEOF
45043
45044fi
45045
45046cat >>confdefs.h <<\_ACEOF
45047#define wxUSE_AFM_FOR_POSTSCRIPT 1
45048_ACEOF
45049
45050
45051cat >>confdefs.h <<\_ACEOF
45052#define wxUSE_NORMALIZED_PS_FONTS 1
45053_ACEOF
45054
45055
45056
45057if test "$wxUSE_CONSTRAINTS" = "yes"; then
45058 cat >>confdefs.h <<\_ACEOF
45059#define wxUSE_CONSTRAINTS 1
45060_ACEOF
45061
45062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45063fi
45064
8a7b1113
VZ
45065if test "$wxUSE_MDI" = "yes"; then
45066 cat >>confdefs.h <<\_ACEOF
45067#define wxUSE_MDI 1
45068_ACEOF
45069
45070
45071 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45072 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45073#define wxUSE_MDI_ARCHITECTURE 1
45074_ACEOF
45075
8a7b1113
VZ
45076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45077 fi
a848cd7e
SC
45078fi
45079
45080if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45081 cat >>confdefs.h <<\_ACEOF
45082#define wxUSE_DOC_VIEW_ARCHITECTURE 1
45083_ACEOF
45084
45085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45086 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45087 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
45088 fi
45089fi
45090
45091if test "$wxUSE_HELP" = "yes"; then
45092 cat >>confdefs.h <<\_ACEOF
45093#define wxUSE_HELP 1
45094_ACEOF
45095
45096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45097
45098 if test "$wxUSE_MSW" = 1; then
45099 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45100 cat >>confdefs.h <<\_ACEOF
45101#define wxUSE_MS_HTML_HELP 1
45102_ACEOF
45103
45104 fi
45105 fi
45106
45107 if test "$wxUSE_WXHTML_HELP" = "yes"; then
45108 if test "$wxUSE_HTML" = "yes"; then
45109 cat >>confdefs.h <<\_ACEOF
45110#define wxUSE_WXHTML_HELP 1
45111_ACEOF
45112
45113 else
45114 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45115echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45116 wxUSE_WXHTML_HELP=no
45117 fi
45118 fi
45119fi
45120
45121if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45122 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45123 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45124echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45125 else
45126 cat >>confdefs.h <<\_ACEOF
45127#define wxUSE_PRINTING_ARCHITECTURE 1
45128_ACEOF
45129
45130 fi
45131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45132fi
45133
45134if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
45135 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45136echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45137 { (exit 1); exit 1; }; }
45138fi
45139
45140
efdf6afe
VZ
45141if test "$wxUSE_METAFILE" = "yes"; then
45142 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45143 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45144echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45145 wxUSE_METAFILE=no
45146 fi
45147fi
45148
45149
a848cd7e
SC
45150if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
45151 -o "$wxUSE_CLIPBOARD" = "yes" \
45152 -o "$wxUSE_OLE" = "yes" \
45153 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45154
45155for ac_header in ole2.h
45156do
45157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45158if eval "test \"\${$as_ac_Header+set}\" = set"; then
45159 echo "$as_me:$LINENO: checking for $ac_header" >&5
45160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45161if eval "test \"\${$as_ac_Header+set}\" = set"; then
45162 echo $ECHO_N "(cached) $ECHO_C" >&6
45163fi
45164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45166else
45167 # Is the header compilable?
45168echo "$as_me:$LINENO: checking $ac_header usability" >&5
45169echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45170cat >conftest.$ac_ext <<_ACEOF
45171/* confdefs.h. */
45172_ACEOF
45173cat confdefs.h >>conftest.$ac_ext
45174cat >>conftest.$ac_ext <<_ACEOF
45175/* end confdefs.h. */
45176$ac_includes_default
45177#include <$ac_header>
45178_ACEOF
45179rm -f conftest.$ac_objext
45180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45181 (eval $ac_compile) 2>conftest.er1
a848cd7e 45182 ac_status=$?
ac1cb8d3
VS
45183 grep -v '^ *+' conftest.er1 >conftest.err
45184 rm -f conftest.er1
45185 cat conftest.err >&5
a848cd7e
SC
45186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45187 (exit $ac_status); } &&
7067783d
PC
45188 { ac_try='test -z "$ac_cxx_werror_flag"
45189 || test ! -s conftest.err'
ac1cb8d3
VS
45190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45191 (eval $ac_try) 2>&5
45192 ac_status=$?
45193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45194 (exit $ac_status); }; } &&
45195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45197 (eval $ac_try) 2>&5
45198 ac_status=$?
45199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45200 (exit $ac_status); }; }; then
45201 ac_header_compiler=yes
45202else
45203 echo "$as_me: failed program was:" >&5
45204sed 's/^/| /' conftest.$ac_ext >&5
45205
45206ac_header_compiler=no
45207fi
ac1cb8d3 45208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45209echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45210echo "${ECHO_T}$ac_header_compiler" >&6
45211
45212# Is the header present?
45213echo "$as_me:$LINENO: checking $ac_header presence" >&5
45214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45215cat >conftest.$ac_ext <<_ACEOF
45216/* confdefs.h. */
45217_ACEOF
45218cat confdefs.h >>conftest.$ac_ext
45219cat >>conftest.$ac_ext <<_ACEOF
45220/* end confdefs.h. */
45221#include <$ac_header>
45222_ACEOF
45223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45225 ac_status=$?
45226 grep -v '^ *+' conftest.er1 >conftest.err
45227 rm -f conftest.er1
45228 cat conftest.err >&5
45229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45230 (exit $ac_status); } >/dev/null; then
45231 if test -s conftest.err; then
5d7b7554
VZ
45232 ac_cpp_err=$ac_cxx_preproc_warn_flag
45233 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
45234 else
45235 ac_cpp_err=
45236 fi
45237else
45238 ac_cpp_err=yes
45239fi
45240if test -z "$ac_cpp_err"; then
45241 ac_header_preproc=yes
45242else
45243 echo "$as_me: failed program was:" >&5
45244sed 's/^/| /' conftest.$ac_ext >&5
45245
45246 ac_header_preproc=no
45247fi
45248rm -f conftest.err conftest.$ac_ext
45249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45250echo "${ECHO_T}$ac_header_preproc" >&6
45251
45252# So? What about this header?
5d7b7554 45253case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 45254 yes:no: )
a848cd7e
SC
45255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45258echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45259 ac_header_preproc=yes
a848cd7e 45260 ;;
ac1cb8d3 45261 no:yes:* )
a848cd7e
SC
45262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45263echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45265echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45267echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45269echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45273echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45274 (
45275 cat <<\_ASBOX
ac1cb8d3
VS
45276## ----------------------------------------- ##
45277## Report this to wx-dev@lists.wxwidgets.org ##
45278## ----------------------------------------- ##
a848cd7e
SC
45279_ASBOX
45280 ) |
45281 sed "s/^/$as_me: WARNING: /" >&2
45282 ;;
45283esac
45284echo "$as_me:$LINENO: checking for $ac_header" >&5
45285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45286if eval "test \"\${$as_ac_Header+set}\" = set"; then
45287 echo $ECHO_N "(cached) $ECHO_C" >&6
45288else
ac1cb8d3 45289 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
45290fi
45291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45293
45294fi
45295if test `eval echo '${'$as_ac_Header'}'` = yes; then
45296 cat >>confdefs.h <<_ACEOF
45297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45298_ACEOF
45299
45300fi
45301
45302done
45303
45304
45305 if test "$ac_cv_header_ole2_h" = "yes" ; then
45306 if test "$GCC" = yes ; then
a848cd7e
SC
45307 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45308echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
45309 cat >conftest.$ac_ext <<_ACEOF
45310/* confdefs.h. */
45311_ACEOF
45312cat confdefs.h >>conftest.$ac_ext
45313cat >>conftest.$ac_ext <<_ACEOF
45314/* end confdefs.h. */
45315#include <windows.h>
45316 #include <ole2.h>
45317int
45318main ()
45319{
45320
45321 ;
45322 return 0;
45323}
45324_ACEOF
45325rm -f conftest.$ac_objext
45326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45327 (eval $ac_compile) 2>conftest.er1
a848cd7e 45328 ac_status=$?
ac1cb8d3
VS
45329 grep -v '^ *+' conftest.er1 >conftest.err
45330 rm -f conftest.er1
45331 cat conftest.err >&5
a848cd7e
SC
45332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45333 (exit $ac_status); } &&
7067783d
PC
45334 { ac_try='test -z "$ac_cxx_werror_flag"
45335 || test ! -s conftest.err'
ac1cb8d3
VS
45336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45337 (eval $ac_try) 2>&5
45338 ac_status=$?
45339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45340 (exit $ac_status); }; } &&
45341 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45343 (eval $ac_try) 2>&5
45344 ac_status=$?
45345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45346 (exit $ac_status); }; }; then
45347 echo "$as_me:$LINENO: result: no" >&5
45348echo "${ECHO_T}no" >&6
45349else
45350 echo "$as_me: failed program was:" >&5
45351sed 's/^/| /' conftest.$ac_ext >&5
45352
45353echo "$as_me:$LINENO: result: yes" >&5
45354echo "${ECHO_T}yes" >&6
5ff751d6 45355 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 45356fi
ac1cb8d3 45357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45358 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45359 if test "$wxUSE_OLE" = "yes" ; then
45360 cat >>confdefs.h <<\_ACEOF
45361#define wxUSE_OLE 1
f43426c1
RD
45362_ACEOF
45363
45364 cat >>confdefs.h <<\_ACEOF
45365#define wxUSE_OLE_AUTOMATION 1
45366_ACEOF
45367
45368 cat >>confdefs.h <<\_ACEOF
45369#define wxUSE_OLE_ACTIVEX 1
a848cd7e
SC
45370_ACEOF
45371
0b78747f 45372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
45373 fi
45374 fi
45375
45376 if test "$wxUSE_DATAOBJ" = "yes" ; then
45377 cat >>confdefs.h <<\_ACEOF
45378#define wxUSE_DATAOBJ 1
45379_ACEOF
45380
45381 fi
45382 else
45383 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45384echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45385
45386 wxUSE_CLIPBOARD=no
45387 wxUSE_DRAG_AND_DROP=no
45388 wxUSE_DATAOBJ=no
45389 wxUSE_OLE=no
45390 fi
45391
45392 if test "$wxUSE_METAFILE" = "yes"; then
45393 cat >>confdefs.h <<\_ACEOF
45394#define wxUSE_METAFILE 1
45395_ACEOF
45396
45397
45398 cat >>confdefs.h <<\_ACEOF
45399#define wxUSE_ENH_METAFILE 1
45400_ACEOF
45401
45402 fi
45403fi
45404
45405if test "$wxUSE_IPC" = "yes"; then
0b78747f 45406 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
45407 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45408echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 45409 wxUSE_IPC=no
a848cd7e
SC
45410 fi
45411
0b78747f
MW
45412 if test "$wxUSE_IPC" = "yes"; then
45413 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45414#define wxUSE_IPC 1
45415_ACEOF
45416
0b78747f
MW
45417 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45418 fi
a848cd7e
SC
45419fi
45420
eb730a0c 45421if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
45422 if test "$wxUSE_MGL" = 1; then
45423 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45424echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45425 wxUSE_DATAOBJ=no
45426 else
45427 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
45428#define wxUSE_DATAOBJ 1
45429_ACEOF
45430
2113bc77 45431 fi
eb730a0c
JS
45432else
45433 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45434echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45435 wxUSE_CLIPBOARD=no
45436 wxUSE_DRAG_AND_DROP=no
45437fi
45438
a848cd7e
SC
45439if test "$wxUSE_CLIPBOARD" = "yes"; then
45440 if test "$wxUSE_MGL" = 1; then
45441 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45442echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45443 wxUSE_CLIPBOARD=no
45444 fi
45445
45446 if test "$wxUSE_CLIPBOARD" = "yes"; then
45447 cat >>confdefs.h <<\_ACEOF
45448#define wxUSE_CLIPBOARD 1
45449_ACEOF
45450
a848cd7e
SC
45451 fi
45452fi
45453
45454if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45455 if test "$wxUSE_GTK" = 1; then
45456 if test "$WXGTK12" != 1; then
45457 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45458echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45459 wxUSE_DRAG_AND_DROP=no
45460 fi
45461 fi
45462
45463 if test "$wxUSE_MOTIF" = 1; then
45464 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45465echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45466 wxUSE_DRAG_AND_DROP=no
45467 fi
45468
45469 if test "$wxUSE_X11" = 1; then
45470 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45471echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45472 wxUSE_DRAG_AND_DROP=no
45473 fi
45474
45475 if test "$wxUSE_MGL" = 1; then
45476 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45477echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45478 wxUSE_DRAG_AND_DROP=no
45479 fi
45480
45481 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45482 cat >>confdefs.h <<\_ACEOF
45483#define wxUSE_DRAG_AND_DROP 1
45484_ACEOF
45485
45486 fi
45487
45488fi
45489
45490if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45491 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45492fi
45493
45494if test "$wxUSE_SPLINES" = "yes" ; then
45495 cat >>confdefs.h <<\_ACEOF
45496#define wxUSE_SPLINES 1
45497_ACEOF
45498
45499fi
45500
fbe2ca43
SN
45501if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45502 cat >>confdefs.h <<\_ACEOF
45503#define wxUSE_MOUSEWHEEL 1
45504_ACEOF
45505
45506fi
45507
a848cd7e
SC
45508
45509USES_CONTROLS=0
45510if test "$wxUSE_CONTROLS" = "yes"; then
45511 USES_CONTROLS=1
45512fi
45513
45514if test "$wxUSE_ACCEL" = "yes"; then
45515 cat >>confdefs.h <<\_ACEOF
45516#define wxUSE_ACCEL 1
45517_ACEOF
45518
45519 USES_CONTROLS=1
45520fi
45521
7067783d 45522if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
3ea50042
VZ
45523 cat >>confdefs.h <<\_ACEOF
45524#define wxUSE_ANIMATIONCTRL 1
45525_ACEOF
45526
45527 USES_CONTROLS=1
45528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45529fi
45530
a848cd7e
SC
45531if test "$wxUSE_BUTTON" = "yes"; then
45532 cat >>confdefs.h <<\_ACEOF
45533#define wxUSE_BUTTON 1
45534_ACEOF
45535
45536 USES_CONTROLS=1
45537fi
45538
45539if test "$wxUSE_BMPBUTTON" = "yes"; then
45540 cat >>confdefs.h <<\_ACEOF
45541#define wxUSE_BMPBUTTON 1
45542_ACEOF
45543
45544 USES_CONTROLS=1
45545fi
45546
45547if test "$wxUSE_CALCTRL" = "yes"; then
45548 cat >>confdefs.h <<\_ACEOF
45549#define wxUSE_CALENDARCTRL 1
45550_ACEOF
45551
45552 USES_CONTROLS=1
45553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45554fi
45555
45556if test "$wxUSE_CARET" = "yes"; then
45557 cat >>confdefs.h <<\_ACEOF
45558#define wxUSE_CARET 1
45559_ACEOF
45560
45561 USES_CONTROLS=1
45562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45563fi
45564
45565if test "$wxUSE_COMBOBOX" = "yes"; then
45566 cat >>confdefs.h <<\_ACEOF
45567#define wxUSE_COMBOBOX 1
45568_ACEOF
45569
45570 USES_CONTROLS=1
45571fi
45572
a57d600f 45573if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 45574 cat >>confdefs.h <<\_ACEOF
a57d600f 45575#define wxUSE_COMBOCTRL 1
642bcba9
VZ
45576_ACEOF
45577
45578 USES_CONTROLS=1
45579fi
45580
a848cd7e
SC
45581if test "$wxUSE_CHOICE" = "yes"; then
45582 cat >>confdefs.h <<\_ACEOF
45583#define wxUSE_CHOICE 1
45584_ACEOF
45585
45586 USES_CONTROLS=1
45587fi
45588
92bbdbcd
WS
45589if test "$wxUSE_CHOICEBOOK" = "yes"; then
45590 cat >>confdefs.h <<\_ACEOF
45591#define wxUSE_CHOICEBOOK 1
45592_ACEOF
45593
45594 USES_CONTROLS=1
45595fi
45596
a848cd7e
SC
45597if test "$wxUSE_CHECKBOX" = "yes"; then
45598 cat >>confdefs.h <<\_ACEOF
45599#define wxUSE_CHECKBOX 1
45600_ACEOF
45601
45602 USES_CONTROLS=1
45603fi
45604
45605if test "$wxUSE_CHECKLST" = "yes"; then
45606 cat >>confdefs.h <<\_ACEOF
45607#define wxUSE_CHECKLISTBOX 1
45608_ACEOF
45609
45610 USES_CONTROLS=1
45611 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45612fi
45613
e9263684
VZ
45614if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45615 cat >>confdefs.h <<\_ACEOF
45616#define wxUSE_COLOURPICKERCTRL 1
45617_ACEOF
45618
45619 USES_CONTROLS=1
45620fi
45621
da98e9be
VZ
45622if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45623 cat >>confdefs.h <<\_ACEOF
45624#define wxUSE_DATEPICKCTRL 1
45625_ACEOF
45626
45627 USES_CONTROLS=1
45628fi
45629
e9263684
VZ
45630if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45631 cat >>confdefs.h <<\_ACEOF
45632#define wxUSE_DIRPICKERCTRL 1
45633_ACEOF
45634
45635 USES_CONTROLS=1
45636fi
45637
45638if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45639 cat >>confdefs.h <<\_ACEOF
45640#define wxUSE_FILEPICKERCTRL 1
45641_ACEOF
45642
45643 USES_CONTROLS=1
45644fi
45645
45646if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45647 cat >>confdefs.h <<\_ACEOF
45648#define wxUSE_FONTPICKERCTRL 1
45649_ACEOF
45650
45651 USES_CONTROLS=1
45652fi
45653
a848cd7e
SC
45654if test "$wxUSE_DISPLAY" = "yes"; then
45655 cat >>confdefs.h <<\_ACEOF
45656#define wxUSE_DISPLAY 1
45657_ACEOF
45658
0b78747f 45659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
45660fi
45661
45662if test "$wxUSE_GAUGE" = "yes"; then
45663 cat >>confdefs.h <<\_ACEOF
45664#define wxUSE_GAUGE 1
45665_ACEOF
45666
45667 USES_CONTROLS=1
45668fi
45669
45670if test "$wxUSE_GRID" = "yes"; then
45671 cat >>confdefs.h <<\_ACEOF
45672#define wxUSE_GRID 1
45673_ACEOF
45674
45675 USES_CONTROLS=1
45676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45677fi
45678
6954625c
VZ
45679if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45680 cat >>confdefs.h <<\_ACEOF
45681#define wxUSE_HYPERLINKCTRL 1
45682_ACEOF
45683
45684 USES_CONTROLS=1
45685fi
45686
95a46303
RR
45687if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45688 cat >>confdefs.h <<\_ACEOF
45689#define wxUSE_BITMAPCOMBOBOX 1
45690_ACEOF
45691
45692 USES_CONTROLS=1
45693fi
45694
20e34ecc
RR
45695if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45696 cat >>confdefs.h <<\_ACEOF
45697#define wxUSE_DATAVIEWCTRL 1
45698_ACEOF
45699
45700 USES_CONTROLS=1
45701 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45702fi
45703
a848cd7e
SC
45704if test "$wxUSE_IMAGLIST" = "yes"; then
45705 cat >>confdefs.h <<\_ACEOF
45706#define wxUSE_IMAGLIST 1
45707_ACEOF
45708
45709fi
45710
45711if test "$wxUSE_LISTBOOK" = "yes"; then
45712 cat >>confdefs.h <<\_ACEOF
45713#define wxUSE_LISTBOOK 1
45714_ACEOF
45715
45716 USES_CONTROLS=1
45717fi
45718
45719if test "$wxUSE_LISTBOX" = "yes"; then
45720 cat >>confdefs.h <<\_ACEOF
45721#define wxUSE_LISTBOX 1
45722_ACEOF
45723
45724 USES_CONTROLS=1
0b78747f 45725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
45726fi
45727
45728if test "$wxUSE_LISTCTRL" = "yes"; then
45729 if test "$wxUSE_IMAGLIST" = "yes"; then
45730 cat >>confdefs.h <<\_ACEOF
45731#define wxUSE_LISTCTRL 1
45732_ACEOF
45733
45734 USES_CONTROLS=1
45735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45736 else
45737 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45738echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45739 fi
45740fi
45741
45742if test "$wxUSE_NOTEBOOK" = "yes"; then
45743 cat >>confdefs.h <<\_ACEOF
45744#define wxUSE_NOTEBOOK 1
45745_ACEOF
45746
45747 USES_CONTROLS=1
45748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45749fi
45750
a57d600f 45751if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 45752 cat >>confdefs.h <<\_ACEOF
a57d600f 45753#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
45754_ACEOF
45755
45756 USES_CONTROLS=1
45757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45758fi
45759
a848cd7e
SC
45760
45761if test "$wxUSE_RADIOBOX" = "yes"; then
45762 cat >>confdefs.h <<\_ACEOF
45763#define wxUSE_RADIOBOX 1
45764_ACEOF
45765
45766 USES_CONTROLS=1
45767fi
45768
45769if test "$wxUSE_RADIOBTN" = "yes"; then
45770 cat >>confdefs.h <<\_ACEOF
45771#define wxUSE_RADIOBTN 1
45772_ACEOF
45773
45774 USES_CONTROLS=1
45775fi
45776
45777if test "$wxUSE_SASH" = "yes"; then
45778 cat >>confdefs.h <<\_ACEOF
45779#define wxUSE_SASH 1
45780_ACEOF
45781
45782 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45783fi
45784
45785if test "$wxUSE_SCROLLBAR" = "yes"; then
45786 cat >>confdefs.h <<\_ACEOF
45787#define wxUSE_SCROLLBAR 1
45788_ACEOF
45789
45790 USES_CONTROLS=1
45791 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45792fi
45793
45794if test "$wxUSE_SLIDER" = "yes"; then
45795 cat >>confdefs.h <<\_ACEOF
45796#define wxUSE_SLIDER 1
45797_ACEOF
45798
45799 USES_CONTROLS=1
45800fi
45801
45802if test "$wxUSE_SPINBTN" = "yes"; then
45803 cat >>confdefs.h <<\_ACEOF
45804#define wxUSE_SPINBTN 1
45805_ACEOF
45806
45807 USES_CONTROLS=1
45808fi
45809
45810if test "$wxUSE_SPINCTRL" = "yes"; then
45811 cat >>confdefs.h <<\_ACEOF
45812#define wxUSE_SPINCTRL 1
45813_ACEOF
45814
45815 USES_CONTROLS=1
45816fi
45817
45818if test "$wxUSE_SPLITTER" = "yes"; then
45819 cat >>confdefs.h <<\_ACEOF
45820#define wxUSE_SPLITTER 1
45821_ACEOF
45822
45823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45824fi
45825
45826if test "$wxUSE_STATBMP" = "yes"; then
45827 cat >>confdefs.h <<\_ACEOF
45828#define wxUSE_STATBMP 1
45829_ACEOF
45830
45831 USES_CONTROLS=1
45832fi
45833
45834if test "$wxUSE_STATBOX" = "yes"; then
45835 cat >>confdefs.h <<\_ACEOF
45836#define wxUSE_STATBOX 1
45837_ACEOF
45838
45839 USES_CONTROLS=1
45840fi
45841
45842if test "$wxUSE_STATTEXT" = "yes"; then
45843 cat >>confdefs.h <<\_ACEOF
45844#define wxUSE_STATTEXT 1
45845_ACEOF
45846
45847 USES_CONTROLS=1
45848fi
45849
45850if test "$wxUSE_STATLINE" = "yes"; then
45851 cat >>confdefs.h <<\_ACEOF
45852#define wxUSE_STATLINE 1
45853_ACEOF
45854
45855 USES_CONTROLS=1
45856fi
45857
45858if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
45859 cat >>confdefs.h <<\_ACEOF
45860#define wxUSE_NATIVE_STATUSBAR 1
45861_ACEOF
45862
a848cd7e
SC
45863 cat >>confdefs.h <<\_ACEOF
45864#define wxUSE_STATUSBAR 1
45865_ACEOF
45866
45867 USES_CONTROLS=1
45868
45869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45870fi
45871
f10e38c4 45872if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
45873 cat >>confdefs.h <<\_ACEOF
45874#define wxUSE_TAB_DIALOG 1
45875_ACEOF
45876
a848cd7e
SC
45877fi
45878
45879if test "$wxUSE_TEXTCTRL" = "yes"; then
45880 cat >>confdefs.h <<\_ACEOF
45881#define wxUSE_TEXTCTRL 1
45882_ACEOF
45883
45884 USES_CONTROLS=1
45885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45886fi
45887
45888if test "$wxUSE_TOGGLEBTN" = "yes"; then
45889 if test "$wxUSE_COCOA" = 1 ; then
45890 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45891echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45892 wxUSE_TOGGLEBTN=no
45893 fi
a848cd7e
SC
45894
45895 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45896 cat >>confdefs.h <<\_ACEOF
45897#define wxUSE_TOGGLEBTN 1
45898_ACEOF
45899
45900 USES_CONTROLS=1
45901 fi
45902fi
45903
a848cd7e
SC
45904if test "$wxUSE_TOOLBAR" = "yes"; then
45905 cat >>confdefs.h <<\_ACEOF
45906#define wxUSE_TOOLBAR 1
45907_ACEOF
45908
45909 USES_CONTROLS=1
45910
452b6243
VS
45911 if test "$wxUSE_UNIVERSAL" = "yes"; then
45912 wxUSE_TOOLBAR_NATIVE="no"
45913 else
45914 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
45915 cat >>confdefs.h <<\_ACEOF
45916#define wxUSE_TOOLBAR_NATIVE 1
45917_ACEOF
45918
a848cd7e
SC
45919 fi
45920
45921 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45922fi
45923
45924if test "$wxUSE_TOOLTIPS" = "yes"; then
45925 if test "$wxUSE_MOTIF" = 1; then
45926 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45927echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45928 else
45929 if test "$wxUSE_UNIVERSAL" = "yes"; then
45930 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45931echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45932 else
45933 cat >>confdefs.h <<\_ACEOF
45934#define wxUSE_TOOLTIPS 1
45935_ACEOF
45936
45937 fi
45938 fi
45939fi
45940
0093c2fc
VZ
45941if test "$wxUSE_TREEBOOK" = "yes"; then
45942 cat >>confdefs.h <<\_ACEOF
45943#define wxUSE_TREEBOOK 1
45944_ACEOF
45945
45946 USES_CONTROLS=1
45947fi
45948
5ec3bc43
JS
45949if test "$wxUSE_TOOLBOOK" = "yes"; then
45950 cat >>confdefs.h <<\_ACEOF
45951#define wxUSE_TOOLBOOK 1
45952_ACEOF
45953
45954 USES_CONTROLS=1
45955fi
45956
a848cd7e
SC
45957if test "$wxUSE_TREECTRL" = "yes"; then
45958 if test "$wxUSE_IMAGLIST" = "yes"; then
45959 cat >>confdefs.h <<\_ACEOF
45960#define wxUSE_TREECTRL 1
45961_ACEOF
45962
45963 USES_CONTROLS=1
45964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45965 else
45966 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45967echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45968 fi
45969fi
45970
45971if test "$wxUSE_POPUPWIN" = "yes"; then
45972 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45973 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45974echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45975 else
45976 if test "$wxUSE_PM" = 1; then
45977 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45978echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45979 else
45980 cat >>confdefs.h <<\_ACEOF
45981#define wxUSE_POPUPWIN 1
45982_ACEOF
45983
0b78747f 45984 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
45985
45986 USES_CONTROLS=1
45987 fi
45988 fi
45989fi
45990
0dcd06dd 45991if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
45992 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45993 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
45994echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
45995 else
45996 cat >>confdefs.h <<\_ACEOF
45997#define wxUSE_DIALUP_MANAGER 1
45998_ACEOF
45999
46000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46001 fi
46002fi
46003
a848cd7e
SC
46004if test "$wxUSE_TIPWINDOW" = "yes"; then
46005 if test "$wxUSE_PM" = 1; then
46006 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46007echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46008 else
46009 cat >>confdefs.h <<\_ACEOF
46010#define wxUSE_TIPWINDOW 1
46011_ACEOF
46012
46013 fi
46014fi
46015
46016if test "$USES_CONTROLS" = 1; then
46017 cat >>confdefs.h <<\_ACEOF
46018#define wxUSE_CONTROLS 1
46019_ACEOF
46020
46021fi
46022
46023
46024if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46025 cat >>confdefs.h <<\_ACEOF
46026#define wxUSE_ACCESSIBILITY 1
46027_ACEOF
46028
46029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46030fi
46031
38b4a946
VZ
46032if test "$wxUSE_DC_CACHEING" = "yes"; then
46033 cat >>confdefs.h <<\_ACEOF
46034#define wxUSE_DC_CACHEING 1
46035_ACEOF
46036
46037fi
46038
a848cd7e
SC
46039if test "$wxUSE_DRAGIMAGE" = "yes"; then
46040 cat >>confdefs.h <<\_ACEOF
46041#define wxUSE_DRAGIMAGE 1
46042_ACEOF
46043
46044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46045fi
46046
46047if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
46048 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46049 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46050echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46051 else
46052 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46053#define wxUSE_EXCEPTIONS 1
46054_ACEOF
46055
07bea8f0
VS
46056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46057 fi
a848cd7e
SC
46058fi
46059
46060USE_HTML=0
46061if test "$wxUSE_HTML" = "yes"; then
46062 cat >>confdefs.h <<\_ACEOF
46063#define wxUSE_HTML 1
46064_ACEOF
46065
46066 USE_HTML=1
46067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
46068 if test "$wxUSE_MAC" = 1; then
46069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46070 fi
a848cd7e 46071fi
646b6ec1 46072if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 46073 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 46074 old_CPPFLAGS="$CPPFLAGS"
c92ad099 46075 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
46076 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46077echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
46078if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46079 echo $ECHO_N "(cached) $ECHO_C" >&6
46080else
46081 cat >conftest.$ac_ext <<_ACEOF
46082/* confdefs.h. */
46083_ACEOF
46084cat confdefs.h >>conftest.$ac_ext
46085cat >>conftest.$ac_ext <<_ACEOF
46086/* end confdefs.h. */
46087#include <Carbon/Carbon.h>
46088
46089#include <WebKit/HIWebView.h>
46090_ACEOF
46091rm -f conftest.$ac_objext
46092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46093 (eval $ac_compile) 2>conftest.er1
46094 ac_status=$?
46095 grep -v '^ *+' conftest.er1 >conftest.err
46096 rm -f conftest.er1
46097 cat conftest.err >&5
46098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46099 (exit $ac_status); } &&
7067783d
PC
46100 { ac_try='test -z "$ac_cxx_werror_flag"
46101 || test ! -s conftest.err'
07bea8f0
VS
46102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46103 (eval $ac_try) 2>&5
46104 ac_status=$?
46105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46106 (exit $ac_status); }; } &&
46107 { ac_try='test -s conftest.$ac_objext'
46108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46109 (eval $ac_try) 2>&5
46110 ac_status=$?
46111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46112 (exit $ac_status); }; }; then
46113 ac_cv_header_WebKit_HIWebView_h=yes
46114else
46115 echo "$as_me: failed program was:" >&5
46116sed 's/^/| /' conftest.$ac_ext >&5
46117
46118ac_cv_header_WebKit_HIWebView_h=no
46119fi
46120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46121fi
46122echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46123echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
46124if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46125
46126 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
46127#define wxUSE_WEBKIT 1
46128_ACEOF
46129
07bea8f0
VS
46130 WEBKIT_LINK="-framework WebKit"
46131
46132else
46133
46134 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46135echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46136 wxUSE_WEBKIT=no
46137
646b6ec1
VS
46138fi
46139
07bea8f0
VS
46140
46141 CPPFLAGS="$old_CPPFLAGS"
46142 elif test "$wxUSE_COCOA" = 1; then
46143 cat >>confdefs.h <<\_ACEOF
46144#define wxUSE_WEBKIT 1
46145_ACEOF
46146
46147 else
46148 wxUSE_WEBKIT=no
46149 fi
46150fi
46151
9a8f0513
VS
46152USE_XRC=0
46153if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
46154 if test "$wxUSE_XML" != "yes"; then
46155 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46156echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46157 wxUSE_XRC=no
46158 else
46159 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
46160#define wxUSE_XRC 1
46161_ACEOF
46162
d2ebf0b7
VS
46163 USE_XRC=1
46164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46165 fi
9a8f0513 46166fi
07bea8f0 46167
3f60522a
JS
46168USE_AUI=0
46169if test "$wxUSE_AUI" = "yes"; then
46170 cat >>confdefs.h <<\_ACEOF
46171#define wxUSE_AUI 1
46172_ACEOF
46173
46174 USE_AUI=1
46175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46176fi
46177
a848cd7e
SC
46178if test "$wxUSE_MENUS" = "yes"; then
46179 cat >>confdefs.h <<\_ACEOF
46180#define wxUSE_MENUS 1
46181_ACEOF
46182
46183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46184fi
46185
46186if test "$wxUSE_METAFILE" = "yes"; then
46187 cat >>confdefs.h <<\_ACEOF
46188#define wxUSE_METAFILE 1
46189_ACEOF
46190
46191fi
46192
46193if test "$wxUSE_MIMETYPE" = "yes"; then
46194 cat >>confdefs.h <<\_ACEOF
46195#define wxUSE_MIMETYPE 1
46196_ACEOF
46197
46198fi
46199
46200if test "$wxUSE_MINIFRAME" = "yes"; then
46201 cat >>confdefs.h <<\_ACEOF
46202#define wxUSE_MINIFRAME 1
46203_ACEOF
46204
46205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46206fi
46207
46208if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46209 cat >>confdefs.h <<\_ACEOF
46210#define wxUSE_SYSTEM_OPTIONS 1
46211_ACEOF
46212
46213 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 46214 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
46215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46216 fi
46217fi
46218
46219
46220if test "$wxUSE_VALIDATORS" = "yes"; then
46221 cat >>confdefs.h <<\_ACEOF
46222#define wxUSE_VALIDATORS 1
46223_ACEOF
46224
46225 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46226fi
46227
46228if test "$wxUSE_PALETTE" = "yes" ; then
46229 cat >>confdefs.h <<\_ACEOF
46230#define wxUSE_PALETTE 1
46231_ACEOF
46232
46233fi
46234
46235if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46236 LIBS=" -lunicows $LIBS"
46237fi
46238
91dea314
MW
46239USE_RICHTEXT=0
46240if test "$wxUSE_RICHTEXT" = "yes"; then
46241 cat >>confdefs.h <<\_ACEOF
46242#define wxUSE_RICHTEXT 1
46243_ACEOF
46244
46245 USE_RICHTEXT=1
46246 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46247fi
46248
f43426c1
RD
46249if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46250 cat >>confdefs.h <<\_ACEOF
46251#define wxUSE_GRAPHICS_CONTEXT 1
46252_ACEOF
46253
46254fi
46255
a848cd7e
SC
46256
46257if test "$wxUSE_IMAGE" = "yes" ; then
46258 cat >>confdefs.h <<\_ACEOF
46259#define wxUSE_IMAGE 1
46260_ACEOF
46261
46262
46263 if test "$wxUSE_GIF" = "yes" ; then
46264 cat >>confdefs.h <<\_ACEOF
46265#define wxUSE_GIF 1
46266_ACEOF
46267
46268 fi
46269
46270 if test "$wxUSE_PCX" = "yes" ; then
46271 cat >>confdefs.h <<\_ACEOF
46272#define wxUSE_PCX 1
46273_ACEOF
46274
46275 fi
46276
46277 if test "$wxUSE_IFF" = "yes" ; then
46278 cat >>confdefs.h <<\_ACEOF
46279#define wxUSE_IFF 1
46280_ACEOF
46281
46282 fi
46283
46284 if test "$wxUSE_PNM" = "yes" ; then
46285 cat >>confdefs.h <<\_ACEOF
46286#define wxUSE_PNM 1
46287_ACEOF
46288
46289 fi
46290
46291 if test "$wxUSE_XPM" = "yes" ; then
46292 cat >>confdefs.h <<\_ACEOF
46293#define wxUSE_XPM 1
46294_ACEOF
46295
46296 fi
46297
46298 if test "$wxUSE_ICO_CUR" = "yes" ; then
46299 cat >>confdefs.h <<\_ACEOF
46300#define wxUSE_ICO_CUR 1
46301_ACEOF
46302
46303 fi
46304fi
46305
46306
319c5ed4
VZ
46307if test "$wxUSE_ABOUTDLG" = "yes"; then
46308 cat >>confdefs.h <<\_ACEOF
46309#define wxUSE_ABOUTDLG 1
46310_ACEOF
46311
46312fi
46313
a848cd7e
SC
46314if test "$wxUSE_CHOICEDLG" = "yes"; then
46315 cat >>confdefs.h <<\_ACEOF
46316#define wxUSE_CHOICEDLG 1
46317_ACEOF
46318
46319fi
46320
46321if test "$wxUSE_COLOURDLG" = "yes"; then
46322 cat >>confdefs.h <<\_ACEOF
46323#define wxUSE_COLOURDLG 1
46324_ACEOF
46325
46326fi
46327
46328if test "$wxUSE_FILEDLG" = "yes"; then
46329 cat >>confdefs.h <<\_ACEOF
46330#define wxUSE_FILEDLG 1
46331_ACEOF
46332
46333fi
46334
46335if test "$wxUSE_FINDREPLDLG" = "yes"; then
46336 cat >>confdefs.h <<\_ACEOF
46337#define wxUSE_FINDREPLDLG 1
46338_ACEOF
46339
46340fi
46341
46342if test "$wxUSE_FONTDLG" = "yes"; then
46343 cat >>confdefs.h <<\_ACEOF
46344#define wxUSE_FONTDLG 1
46345_ACEOF
46346
46347fi
46348
46349if test "$wxUSE_DIRDLG" = "yes"; then
46350 if test "$wxUSE_TREECTRL" != "yes"; then
46351 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46352echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46353 else
46354 cat >>confdefs.h <<\_ACEOF
46355#define wxUSE_DIRDLG 1
46356_ACEOF
46357
46358 fi
46359fi
46360
46361if test "$wxUSE_MSGDLG" = "yes"; then
46362 cat >>confdefs.h <<\_ACEOF
46363#define wxUSE_MSGDLG 1
46364_ACEOF
46365
46366fi
46367
46368if test "$wxUSE_NUMBERDLG" = "yes"; then
46369 cat >>confdefs.h <<\_ACEOF
46370#define wxUSE_NUMBERDLG 1
46371_ACEOF
46372
46373fi
46374
46375if test "$wxUSE_PROGRESSDLG" = "yes"; then
46376 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46377 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46378echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46379 else
46380 cat >>confdefs.h <<\_ACEOF
46381#define wxUSE_PROGRESSDLG 1
46382_ACEOF
46383
46384 fi
46385fi
46386
46387if test "$wxUSE_SPLASH" = "yes"; then
46388 cat >>confdefs.h <<\_ACEOF
46389#define wxUSE_SPLASH 1
46390_ACEOF
46391
2057db16 46392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
46393fi
46394
46395if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46396 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46397 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46398echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46399 else
46400 cat >>confdefs.h <<\_ACEOF
46401#define wxUSE_STARTUP_TIPS 1
46402_ACEOF
46403
46404 fi
46405fi
46406
46407if test "$wxUSE_TEXTDLG" = "yes"; then
46408 cat >>confdefs.h <<\_ACEOF
46409#define wxUSE_TEXTDLG 1
46410_ACEOF
46411
46412fi
46413
46414if test "$wxUSE_WIZARDDLG" = "yes"; then
46415 cat >>confdefs.h <<\_ACEOF
46416#define wxUSE_WIZARDDLG 1
46417_ACEOF
46418
46419 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46420fi
46421
46422
f10e38c4
VZ
46423USE_MEDIA=0
46424
ce756cb0 46425if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
46426 USE_MEDIA=1
46427
ce756cb0 46428 if test "$wxUSE_GTK" = 1; then
c9a66001 46429 wxUSE_GSTREAMER="no"
ce756cb0 46430
f10e38c4
VZ
46431 GST_VERSION_MAJOR=0
46432 GST_VERSION_MINOR=10
2f6c5bb5 46433 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
46434
46435 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 46436
3ecd9f92
MW
46437pkg_failed=no
46438echo "$as_me:$LINENO: checking for GST" >&5
46439echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 46440
3ecd9f92
MW
46441if test -n "$PKG_CONFIG"; then
46442 if test -n "$GST_CFLAGS"; then
46443 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46444 else
46445 if test -n "$PKG_CONFIG" && \
46446 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46447 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46448 ac_status=$?
46449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46450 (exit $ac_status); }; then
46451 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46452else
3ecd9f92
MW
46453 pkg_failed=yes
46454fi
46455 fi
46456else
46457 pkg_failed=untried
dae87f93 46458fi
dae87f93 46459if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46460 if test -n "$GST_LIBS"; then
46461 pkg_cv_GST_LIBS="$GST_LIBS"
46462 else
46463 if test -n "$PKG_CONFIG" && \
46464 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46465 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46466 ac_status=$?
46467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46468 (exit $ac_status); }; then
46469 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46470else
3ecd9f92
MW
46471 pkg_failed=yes
46472fi
46473 fi
46474else
46475 pkg_failed=untried
dae87f93
RN
46476fi
46477
dae87f93 46478
2f6c5bb5 46479
3ecd9f92 46480if test $pkg_failed = yes; then
ce756cb0 46481
3ecd9f92
MW
46482if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46483 _pkg_short_errors_supported=yes
46484else
46485 _pkg_short_errors_supported=no
46486fi
46487 if test $_pkg_short_errors_supported = yes; then
46488 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46489 else
46490 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 46491 fi
3ecd9f92
MW
46492 # Put the nasty error message in config.log where it belongs
46493 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46494
46495
3ecd9f92
MW
46496 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46497echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46498 GST_VERSION_MINOR=8
dae87f93 46499
ce756cb0 46500
3ecd9f92 46501elif test $pkg_failed = untried; then
dae87f93 46502
2f6c5bb5
VZ
46503 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46504echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 46505 GST_VERSION_MINOR=8
dae87f93 46506
2f6c5bb5 46507
3ecd9f92
MW
46508else
46509 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46510 GST_LIBS=$pkg_cv_GST_LIBS
46511 echo "$as_me:$LINENO: result: yes" >&5
46512echo "${ECHO_T}yes" >&6
46513
46514 wxUSE_GSTREAMER="yes"
46515 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 46516
3ecd9f92 46517fi
2f6c5bb5
VZ
46518 else
46519 GST_VERSION_MINOR=8
f10e38c4 46520 fi
dae87f93 46521
2f6c5bb5
VZ
46522 if test $GST_VERSION_MINOR = "8"; then
46523 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 46524
3ecd9f92
MW
46525pkg_failed=no
46526echo "$as_me:$LINENO: checking for GST" >&5
46527echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 46528
3ecd9f92
MW
46529if test -n "$PKG_CONFIG"; then
46530 if test -n "$GST_CFLAGS"; then
46531 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46532 else
46533 if test -n "$PKG_CONFIG" && \
46534 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46535 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46536 ac_status=$?
46537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46538 (exit $ac_status); }; then
46539 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46540else
3ecd9f92
MW
46541 pkg_failed=yes
46542fi
46543 fi
46544else
46545 pkg_failed=untried
dae87f93 46546fi
f10e38c4 46547if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46548 if test -n "$GST_LIBS"; then
46549 pkg_cv_GST_LIBS="$GST_LIBS"
46550 else
46551 if test -n "$PKG_CONFIG" && \
46552 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46553 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46554 ac_status=$?
46555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46556 (exit $ac_status); }; then
46557 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46558else
3ecd9f92
MW
46559 pkg_failed=yes
46560fi
46561 fi
46562else
46563 pkg_failed=untried
dae87f93
RN
46564fi
46565
ce756cb0 46566
2f6c5bb5 46567
3ecd9f92 46568if test $pkg_failed = yes; then
dae87f93 46569
3ecd9f92
MW
46570if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46571 _pkg_short_errors_supported=yes
46572else
46573 _pkg_short_errors_supported=no
46574fi
46575 if test $_pkg_short_errors_supported = yes; then
46576 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46577 else
46578 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 46579 fi
3ecd9f92
MW
46580 # Put the nasty error message in config.log where it belongs
46581 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46582
46583
3ecd9f92
MW
46584 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46585echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46586
3ecd9f92 46587elif test $pkg_failed = untried; then
ce756cb0 46588
2f6c5bb5
VZ
46589 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46590echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46591
3ecd9f92
MW
46592else
46593 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46594 GST_LIBS=$pkg_cv_GST_LIBS
46595 echo "$as_me:$LINENO: result: yes" >&5
46596echo "${ECHO_T}yes" >&6
46597 wxUSE_GSTREAMER="yes"
46598fi
dae87f93 46599 fi
ce756cb0 46600
f10e38c4 46601
dae87f93 46602 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
46603 case "${host}" in
46604 *-*-solaris2* )
46605 if "$GCC" = yes; then
46606 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
46607 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
46608 fi
46609 esac
46610
46611 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46612 LIBS="$GST_LIBS $LIBS"
46613
dae87f93 46614 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46615#define wxUSE_GSTREAMER 1
46616_ACEOF
46617
2f6c5bb5
VZ
46618 else
46619 USE_MEDIA=0
ce756cb0
RN
46620 fi
46621 fi
2f6c5bb5
VZ
46622
46623 if test $USE_MEDIA = 1; then
46624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46625 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46626#define wxUSE_MEDIACTRL 1
46627_ACEOF
46628
2f6c5bb5 46629 fi
ce756cb0
RN
46630fi
46631
46632
a848cd7e
SC
46633if test "$cross_compiling" = "yes"; then
46634 OSINFO="\"$host\""
46635else
46636 OSINFO=`uname -s -r -m`
46637 OSINFO="\"$OSINFO\""
46638fi
46639
46640cat >>confdefs.h <<_ACEOF
46641#define WXWIN_OS_DESCRIPTION $OSINFO
46642_ACEOF
46643
46644
46645
46646if test "x$prefix" != "xNONE"; then
46647 wxPREFIX=$prefix
46648else
46649 wxPREFIX=$ac_default_prefix
46650fi
46651
46652cat >>confdefs.h <<_ACEOF
46653#define wxINSTALL_PREFIX "$wxPREFIX"
46654_ACEOF
46655
46656
a848cd7e
SC
46657
46658
46659CORE_BASE_LIBS="net base"
46660CORE_GUI_LIBS="adv core"
46661
46662if test "$wxUSE_XML" = "yes" ; then
46663 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
46664fi
46665if test "$wxUSE_ODBC" != "no" ; then
46666 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46667 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46668fi
46669if test "$wxUSE_HTML" = "yes" ; then
46670 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46671fi
61639efb
VZ
46672if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46673 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46674fi
9a8f0513
VS
46675if test "$wxUSE_XRC" = "yes" ; then
46676 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46677fi
3f60522a
JS
46678if test "$wxUSE_AUI" = "yes" ; then
46679 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46680fi
a848cd7e
SC
46681
46682if test "$wxUSE_GUI" != "yes"; then
46683 CORE_GUI_LIBS=""
46684fi
46685
46686
46687
46688
46689
5d7b7554
VZ
46690ac_ext=c
46691ac_cpp='$CPP $CPPFLAGS'
46692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46694ac_compiler_gnu=$ac_cv_c_compiler_gnu
46695
a848cd7e
SC
46696
46697
a848cd7e 46698if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 46699 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
46700 if test "$USE_DARWIN" = 1; then
46701 LDFLAGS="$LDFLAGS -framework QuickTime"
46702 else
46703 LDFLAGS="$LDFLAGS -lQuickTimeLib"
46704 fi
07bea8f0 46705 fi
5dcf30a0 46706 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
46707 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46708 else
46709 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 46710 fi
a848cd7e
SC
46711fi
46712if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 46713 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
46714 if test "$wxUSE_MEDIACTRL" = "yes"; then
46715 LDFLAGS="$LDFLAGS -framework QuickTime"
46716 fi
a848cd7e 46717fi
19b27e78
MW
46718if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46719 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46720fi
a848cd7e 46721
a848cd7e
SC
46722LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46723
a848cd7e
SC
46724if test "$wxUSE_GUI" = "yes"; then
46725
46726
8bce5cda
MW
46727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46728 dynamic erase event exec font image minimal mobile \
46729 mobile/wxedit mobile/styles propsize render \
9e39d889 46730 rotate shaped vscroll widgets"
a848cd7e
SC
46731
46732 if test "$wxUSE_MONOLITHIC" != "yes"; then
46733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46734 fi
0b78747f 46735 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
46736 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46737 if test "$wxUSE_UNIVERSAL" != "yes"; then
46738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46739 fi
46740 fi
46741 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46742 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 46743 fi
a848cd7e
SC
46744else
46745 SAMPLES_SUBDIRS="console"
46746fi
46747
46748
48f625bc 46749if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
46750 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46751elif test "$GCC" = yes ; then
46752 CWARNINGS="-Wall -Wundef"
46753fi
46754
48f625bc 46755if test "x$INTELCXX" = "xyes" ; then
7f47faf4 46756 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
46757elif test "$GXX" = yes ; then
46758 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 46759fi
a848cd7e 46760
a848cd7e 46761
5ff751d6
VZ
46762WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46763WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46764
46765
c92ad099 46766CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 46767 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
46768 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46769 $CPPFLAGS `
5ff751d6 46770
8aeeb05c 46771C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 46772CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 46773CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
46774
46775WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46776
a848cd7e 46777
95986553
DE
46778if test "x$MWCC" = "xyes"; then
46779
46780 CC="$CC -cwd source -I-"
46781 CXX="$CXX -cwd source -I-"
46782fi
46783
a848cd7e 46784
0c3c69fc 46785LIBS=`echo $LIBS`
a848cd7e
SC
46786EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46787EXTRALIBS_XML="$EXPAT_LINK"
46788EXTRALIBS_HTML="$MSPACK_LINK"
46789EXTRALIBS_ODBC="$ODBC_LINK"
46790if test "$wxUSE_GUI" = "yes"; then
2b850ae1 46791 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
46792fi
46793if test "$wxUSE_OPENGL" = "yes"; then
46794 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46795fi
46796
8aeeb05c 46797LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 46798
5ff751d6 46799WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
46800
46801if test "$wxUSE_REGEX" = "builtin" ; then
74802184 46802 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
46803fi
46804if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 46805 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
46806fi
46807if test "$wxUSE_ODBC" = "builtin" ; then
74802184 46808 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
46809fi
46810if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 46811 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
46812fi
46813if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 46814 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
46815fi
46816if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 46817 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
46818fi
46819if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 46820 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
46821fi
46822
46823for i in $wxconfig_3rdparty ; do
5ff751d6 46824 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
46825done
46826
46827
46828if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46829 WXUNIV=1
4353a8df
VZ
46830
46831 case "$wxUNIV_THEMES" in
46832 ''|all)
46833 cat >>confdefs.h <<\_ACEOF
46834#define wxUSE_ALL_THEMES 1
46835_ACEOF
46836
46837 ;;
46838
46839 *)
46840 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
46841 cat >>confdefs.h <<_ACEOF
46842#define wxUSE_THEME_$t 1
46843_ACEOF
46844
46845 done
46846 esac
a848cd7e
SC
46847else
46848 WXUNIV=0
46849fi
46850
46851
46852
46853
46854
46855
46856
46857
46858
46859if test $wxUSE_MONOLITHIC = "yes" ; then
46860 MONOLITHIC=1
46861else
46862 MONOLITHIC=0
46863fi
46864
46865if test $wxUSE_PLUGINS = "yes" ; then
46866 USE_PLUGINS=1
46867else
46868 USE_PLUGINS=0
46869fi
46870
46871if test $wxUSE_ODBC != "no" ; then
46872 USE_ODBC=1
46873else
46874 USE_ODBC=0
46875fi
46876
16358932
VZ
46877if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46878 USE_QA=1
46879else
46880 USE_QA=0
46881fi
46882
a848cd7e
SC
46883if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46884 OFFICIAL_BUILD=1
46885else
46886 OFFICIAL_BUILD=0
46887fi
46888
46889
46890
46891
46892
46893
46894
46895
46896
46897
46898
46899
46900
46901
46902
46903
46904
46905
46906
ceec2216 46907
d1c38808 46908
3565d135 46909
2b850ae1 46910
a848cd7e
SC
46911
46912
46913TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
46914
46915
46916
46917
46918
46919
46920
46921
4d4ff94c
VZ
46922case "$TOOLKIT" in
46923 GTK)
c2e9ada4 46924 TOOLKIT_DESC="GTK+"
4d4ff94c 46925 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
46926 TOOLKIT_DESC="$TOOLKIT_DESC 2"
46927 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46928 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46929 fi
46930 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46931 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46932 fi
46933 if test "$wxUSE_LIBHILDON" = "yes"; then
46934 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46935 fi
46936
46937 if test "$TOOLKIT_EXTRA" != ""; then
46938 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46939 fi
4d4ff94c 46940 fi
9a8f0513 46941 ;;
4d4ff94c 46942
c2e9ada4
VZ
46943 ?*)
46944 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46945 ;;
46946
4d4ff94c 46947 *)
c2e9ada4 46948 TOOLKIT_DESC="base only"
9a8f0513 46949 ;;
4d4ff94c 46950esac
a848cd7e 46951
fb00f58d
JS
46952if test "$wxUSE_WINE" = "yes"; then
46953 BAKEFILE_FORCE_PLATFORM=win32
46954fi
46955
7afc46ab 46956if test "$wxUSE_MAC" = 1 ; then
95768535
MW
46957 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
46958 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
46959 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
46960 else
46961 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
46962 fi
46963 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
46964 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
46965 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
46966 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
46967 bk_use_pch=no
46968 fi
46969 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
46970 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
46971fi
46972
9a8f0513 46973
1e9e8aba
DE
46974
46975
a848cd7e 46976 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
46977 if test "x${host}" = "x" ; then
46978 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46979echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46980 { (exit 1); exit 1; }; }
46981 fi
46982
a848cd7e
SC
46983 BAKEFILE_HOST="${host}"
46984 fi
46985
46986 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46987
46988 if test -n "$ac_tool_prefix"; then
46989 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46990set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46991echo "$as_me:$LINENO: checking for $ac_word" >&5
46992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46993if test "${ac_cv_prog_RANLIB+set}" = set; then
46994 echo $ECHO_N "(cached) $ECHO_C" >&6
46995else
46996 if test -n "$RANLIB"; then
46997 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46998else
46999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47000for as_dir in $PATH
47001do
47002 IFS=$as_save_IFS
47003 test -z "$as_dir" && as_dir=.
47004 for ac_exec_ext in '' $ac_executable_extensions; do
47005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47006 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47008 break 2
47009 fi
47010done
47011done
47012
47013fi
47014fi
47015RANLIB=$ac_cv_prog_RANLIB
47016if test -n "$RANLIB"; then
47017 echo "$as_me:$LINENO: result: $RANLIB" >&5
47018echo "${ECHO_T}$RANLIB" >&6
47019else
47020 echo "$as_me:$LINENO: result: no" >&5
47021echo "${ECHO_T}no" >&6
47022fi
47023
47024fi
47025if test -z "$ac_cv_prog_RANLIB"; then
47026 ac_ct_RANLIB=$RANLIB
47027 # Extract the first word of "ranlib", so it can be a program name with args.
47028set dummy ranlib; ac_word=$2
47029echo "$as_me:$LINENO: checking for $ac_word" >&5
47030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47031if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47032 echo $ECHO_N "(cached) $ECHO_C" >&6
47033else
47034 if test -n "$ac_ct_RANLIB"; then
47035 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47036else
47037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47038for as_dir in $PATH
47039do
47040 IFS=$as_save_IFS
47041 test -z "$as_dir" && as_dir=.
47042 for ac_exec_ext in '' $ac_executable_extensions; do
47043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47044 ac_cv_prog_ac_ct_RANLIB="ranlib"
47045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47046 break 2
47047 fi
47048done
47049done
47050
47051 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
47052fi
47053fi
47054ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47055if test -n "$ac_ct_RANLIB"; then
47056 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47057echo "${ECHO_T}$ac_ct_RANLIB" >&6
47058else
47059 echo "$as_me:$LINENO: result: no" >&5
47060echo "${ECHO_T}no" >&6
47061fi
47062
47063 RANLIB=$ac_ct_RANLIB
47064else
47065 RANLIB="$ac_cv_prog_RANLIB"
47066fi
47067
47068 # Find a good install program. We prefer a C program (faster),
47069# so one script is as good as another. But avoid the broken or
47070# incompatible versions:
47071# SysV /etc/install, /usr/sbin/install
47072# SunOS /usr/etc/install
47073# IRIX /sbin/install
47074# AIX /bin/install
47075# AmigaOS /C/install, which installs bootblocks on floppy discs
47076# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47077# AFS /usr/afsws/bin/install, which mishandles nonexistent args
47078# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 47079# OS/2's system install, which has a completely different semantic
a848cd7e
SC
47080# ./install, which can be erroneously created by make from ./install.sh.
47081echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47082echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
47083if test -z "$INSTALL"; then
47084if test "${ac_cv_path_install+set}" = set; then
47085 echo $ECHO_N "(cached) $ECHO_C" >&6
47086else
47087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47088for as_dir in $PATH
47089do
47090 IFS=$as_save_IFS
47091 test -z "$as_dir" && as_dir=.
47092 # Account for people who put trailing slashes in PATH elements.
47093case $as_dir/ in
47094 ./ | .// | /cC/* | \
47095 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 47096 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
47097 /usr/ucb/* ) ;;
47098 *)
47099 # OSF1 and SCO ODT 3.0 have their own names for install.
47100 # Don't use installbsd from OSF since it installs stuff as root
47101 # by default.
47102 for ac_prog in ginstall scoinst install; do
47103 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
47104 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
47105 if test $ac_prog = install &&
47106 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47107 # AIX install. It has an incompatible calling convention.
47108 :
47109 elif test $ac_prog = install &&
47110 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47111 # program-specific install script used by HP pwplus--don't use.
47112 :
47113 else
47114 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47115 break 3
47116 fi
47117 fi
a848cd7e
SC
47118 done
47119 done
47120 ;;
47121esac
47122done
47123
47124
47125fi
47126 if test "${ac_cv_path_install+set}" = set; then
47127 INSTALL=$ac_cv_path_install
47128 else
47129 # As a last resort, use the slow shell script. We don't cache a
47130 # path for INSTALL within a source directory, because that will
47131 # break other packages using the cache if that directory is
47132 # removed, or if the path is relative.
47133 INSTALL=$ac_install_sh
47134 fi
47135fi
47136echo "$as_me:$LINENO: result: $INSTALL" >&5
47137echo "${ECHO_T}$INSTALL" >&6
47138
47139# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47140# It thinks the first close brace ends the variable substitution.
47141test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47142
47143test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47144
47145test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47146
47147 echo "$as_me:$LINENO: checking whether ln -s works" >&5
47148echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
47149LN_S=$as_ln_s
47150if test "$LN_S" = "ln -s"; then
47151 echo "$as_me:$LINENO: result: yes" >&5
47152echo "${ECHO_T}yes" >&6
47153else
47154 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47155echo "${ECHO_T}no, using $LN_S" >&6
47156fi
47157
47158
47159 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47160echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 47161set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
47162if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47163 echo $ECHO_N "(cached) $ECHO_C" >&6
47164else
47165 cat >conftest.make <<\_ACEOF
47166all:
47167 @echo 'ac_maketemp="$(MAKE)"'
47168_ACEOF
47169# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47170eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47171if test -n "$ac_maketemp"; then
47172 eval ac_cv_prog_make_${ac_make}_set=yes
47173else
47174 eval ac_cv_prog_make_${ac_make}_set=no
47175fi
47176rm -f conftest.make
47177fi
47178if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47179 echo "$as_me:$LINENO: result: yes" >&5
47180echo "${ECHO_T}yes" >&6
47181 SET_MAKE=
47182else
47183 echo "$as_me:$LINENO: result: no" >&5
47184echo "${ECHO_T}no" >&6
47185 SET_MAKE="MAKE=${MAKE-make}"
47186fi
47187
47188
47189
47190 if test -n "$ac_tool_prefix"; then
47191 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47192set dummy ${ac_tool_prefix}ar; ac_word=$2
47193echo "$as_me:$LINENO: checking for $ac_word" >&5
47194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47195if test "${ac_cv_prog_AR+set}" = set; then
47196 echo $ECHO_N "(cached) $ECHO_C" >&6
47197else
47198 if test -n "$AR"; then
47199 ac_cv_prog_AR="$AR" # Let the user override the test.
47200else
47201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47202for as_dir in $PATH
47203do
47204 IFS=$as_save_IFS
47205 test -z "$as_dir" && as_dir=.
47206 for ac_exec_ext in '' $ac_executable_extensions; do
47207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47208 ac_cv_prog_AR="${ac_tool_prefix}ar"
47209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47210 break 2
47211 fi
47212done
47213done
47214
47215fi
47216fi
47217AR=$ac_cv_prog_AR
47218if test -n "$AR"; then
47219 echo "$as_me:$LINENO: result: $AR" >&5
47220echo "${ECHO_T}$AR" >&6
47221else
47222 echo "$as_me:$LINENO: result: no" >&5
47223echo "${ECHO_T}no" >&6
47224fi
47225
47226fi
47227if test -z "$ac_cv_prog_AR"; then
47228 ac_ct_AR=$AR
47229 # Extract the first word of "ar", so it can be a program name with args.
47230set dummy ar; ac_word=$2
47231echo "$as_me:$LINENO: checking for $ac_word" >&5
47232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47233if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47234 echo $ECHO_N "(cached) $ECHO_C" >&6
47235else
47236 if test -n "$ac_ct_AR"; then
47237 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47238else
47239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47240for as_dir in $PATH
47241do
47242 IFS=$as_save_IFS
47243 test -z "$as_dir" && as_dir=.
47244 for ac_exec_ext in '' $ac_executable_extensions; do
47245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47246 ac_cv_prog_ac_ct_AR="ar"
47247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47248 break 2
47249 fi
47250done
47251done
47252
47253 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
47254fi
47255fi
47256ac_ct_AR=$ac_cv_prog_ac_ct_AR
47257if test -n "$ac_ct_AR"; then
47258 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47259echo "${ECHO_T}$ac_ct_AR" >&6
47260else
47261 echo "$as_me:$LINENO: result: no" >&5
47262echo "${ECHO_T}no" >&6
47263fi
47264
47265 AR=$ac_ct_AR
47266else
47267 AR="$ac_cv_prog_AR"
47268fi
47269
47270 if test -n "$ac_tool_prefix"; then
47271 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47272set dummy ${ac_tool_prefix}strip; ac_word=$2
47273echo "$as_me:$LINENO: checking for $ac_word" >&5
47274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47275if test "${ac_cv_prog_STRIP+set}" = set; then
47276 echo $ECHO_N "(cached) $ECHO_C" >&6
47277else
47278 if test -n "$STRIP"; then
47279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47280else
47281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47282for as_dir in $PATH
47283do
47284 IFS=$as_save_IFS
47285 test -z "$as_dir" && as_dir=.
47286 for ac_exec_ext in '' $ac_executable_extensions; do
47287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47288 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47290 break 2
47291 fi
47292done
47293done
47294
47295fi
47296fi
47297STRIP=$ac_cv_prog_STRIP
47298if test -n "$STRIP"; then
47299 echo "$as_me:$LINENO: result: $STRIP" >&5
47300echo "${ECHO_T}$STRIP" >&6
47301else
47302 echo "$as_me:$LINENO: result: no" >&5
47303echo "${ECHO_T}no" >&6
47304fi
47305
47306fi
47307if test -z "$ac_cv_prog_STRIP"; then
47308 ac_ct_STRIP=$STRIP
47309 # Extract the first word of "strip", so it can be a program name with args.
47310set dummy strip; ac_word=$2
47311echo "$as_me:$LINENO: checking for $ac_word" >&5
47312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47313if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47314 echo $ECHO_N "(cached) $ECHO_C" >&6
47315else
47316 if test -n "$ac_ct_STRIP"; then
47317 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47318else
47319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47320for as_dir in $PATH
47321do
47322 IFS=$as_save_IFS
47323 test -z "$as_dir" && as_dir=.
47324 for ac_exec_ext in '' $ac_executable_extensions; do
47325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47326 ac_cv_prog_ac_ct_STRIP="strip"
47327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47328 break 2
47329 fi
47330done
47331done
47332
47333 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
47334fi
47335fi
47336ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47337if test -n "$ac_ct_STRIP"; then
47338 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47339echo "${ECHO_T}$ac_ct_STRIP" >&6
47340else
47341 echo "$as_me:$LINENO: result: no" >&5
47342echo "${ECHO_T}no" >&6
47343fi
47344
47345 STRIP=$ac_ct_STRIP
47346else
47347 STRIP="$ac_cv_prog_STRIP"
47348fi
47349
47350 if test -n "$ac_tool_prefix"; then
47351 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47352set dummy ${ac_tool_prefix}nm; ac_word=$2
47353echo "$as_me:$LINENO: checking for $ac_word" >&5
47354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47355if test "${ac_cv_prog_NM+set}" = set; then
47356 echo $ECHO_N "(cached) $ECHO_C" >&6
47357else
47358 if test -n "$NM"; then
47359 ac_cv_prog_NM="$NM" # Let the user override the test.
47360else
47361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47362for as_dir in $PATH
47363do
47364 IFS=$as_save_IFS
47365 test -z "$as_dir" && as_dir=.
47366 for ac_exec_ext in '' $ac_executable_extensions; do
47367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47368 ac_cv_prog_NM="${ac_tool_prefix}nm"
47369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47370 break 2
47371 fi
47372done
47373done
47374
47375fi
47376fi
47377NM=$ac_cv_prog_NM
47378if test -n "$NM"; then
47379 echo "$as_me:$LINENO: result: $NM" >&5
47380echo "${ECHO_T}$NM" >&6
47381else
47382 echo "$as_me:$LINENO: result: no" >&5
47383echo "${ECHO_T}no" >&6
47384fi
47385
47386fi
47387if test -z "$ac_cv_prog_NM"; then
47388 ac_ct_NM=$NM
47389 # Extract the first word of "nm", so it can be a program name with args.
47390set dummy nm; ac_word=$2
47391echo "$as_me:$LINENO: checking for $ac_word" >&5
47392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47393if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47394 echo $ECHO_N "(cached) $ECHO_C" >&6
47395else
47396 if test -n "$ac_ct_NM"; then
47397 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47398else
47399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47400for as_dir in $PATH
47401do
47402 IFS=$as_save_IFS
47403 test -z "$as_dir" && as_dir=.
47404 for ac_exec_ext in '' $ac_executable_extensions; do
47405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47406 ac_cv_prog_ac_ct_NM="nm"
47407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47408 break 2
47409 fi
47410done
47411done
47412
47413 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
47414fi
47415fi
47416ac_ct_NM=$ac_cv_prog_ac_ct_NM
47417if test -n "$ac_ct_NM"; then
47418 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47419echo "${ECHO_T}$ac_ct_NM" >&6
47420else
47421 echo "$as_me:$LINENO: result: no" >&5
47422echo "${ECHO_T}no" >&6
47423fi
47424
47425 NM=$ac_ct_NM
47426else
47427 NM="$ac_cv_prog_NM"
47428fi
47429
47430
47431 case ${BAKEFILE_HOST} in
47432 *-hp-hpux* )
1e9e8aba 47433 INSTALL_DIR="mkdir -p"
a848cd7e
SC
47434 ;;
47435 *) INSTALL_DIR="$INSTALL -d"
47436 ;;
47437 esac
47438
47439
47440 LDFLAGS_GUI=
47441 case ${BAKEFILE_HOST} in
47442 *-*-cygwin* | *-*-mingw32* )
47443 LDFLAGS_GUI="-mwindows"
47444 esac
47445
47446
47447 fi
47448
47449 echo "$as_me:$LINENO: checking if make is GNU make" >&5
47450echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47451if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47452 echo $ECHO_N "(cached) $ECHO_C" >&6
47453else
47454
47455 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47456 egrep -s GNU > /dev/null); then
47457 bakefile_cv_prog_makeisgnu="yes"
47458 else
47459 bakefile_cv_prog_makeisgnu="no"
47460 fi
47461
47462fi
47463echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47464echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
47465
47466 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47467 IF_GNU_MAKE=""
47468 else
47469 IF_GNU_MAKE="#"
47470 fi
47471
47472
47473
47474 PLATFORM_UNIX=0
47475 PLATFORM_WIN32=0
47476 PLATFORM_MSDOS=0
47477 PLATFORM_MAC=0
1e9e8aba 47478 PLATFORM_MACOS=0
a848cd7e
SC
47479 PLATFORM_MACOSX=0
47480 PLATFORM_OS2=0
1e9e8aba 47481 PLATFORM_BEOS=0
a848cd7e
SC
47482
47483 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47484 case "${BAKEFILE_HOST}" in
810b94f0 47485 *-*-mingw32* )
a848cd7e
SC
47486 PLATFORM_WIN32=1
47487 ;;
47488 *-pc-msdosdjgpp )
47489 PLATFORM_MSDOS=1
47490 ;;
47491 *-pc-os2_emx | *-pc-os2-emx )
47492 PLATFORM_OS2=1
47493 ;;
47bd5406 47494 *-*-darwin* )
a848cd7e
SC
47495 PLATFORM_MAC=1
47496 PLATFORM_MACOSX=1
47497 ;;
1e9e8aba
DE
47498 *-*-beos* )
47499 PLATFORM_BEOS=1
47500 ;;
47501 powerpc-apple-macos* )
47502 PLATFORM_MAC=1
47503 PLATFORM_MACOS=1
47504 ;;
a848cd7e
SC
47505 * )
47506 PLATFORM_UNIX=1
47507 ;;
47508 esac
47509 else
47510 case "$BAKEFILE_FORCE_PLATFORM" in
47511 win32 )
47512 PLATFORM_WIN32=1
47513 ;;
47514 msdos )
47515 PLATFORM_MSDOS=1
47516 ;;
47517 os2 )
47518 PLATFORM_OS2=1
47519 ;;
47520 darwin )
47521 PLATFORM_MAC=1
47522 PLATFORM_MACOSX=1
47523 ;;
47524 unix )
47525 PLATFORM_UNIX=1
47526 ;;
1e9e8aba
DE
47527 beos )
47528 PLATFORM_BEOS=1
47529 ;;
a848cd7e
SC
47530 * )
47531 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
47532echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
47533 { (exit 1); exit 1; }; }
47534 ;;
47535 esac
47536 fi
47537
47538
47539
47540
47541
47542
47543
47544
47545
1e9e8aba
DE
47546
47547
a848cd7e
SC
47548 # Check whether --enable-omf or --disable-omf was given.
47549if test "${enable_omf+set}" = set; then
47550 enableval="$enable_omf"
47551 bk_os2_use_omf="$enableval"
47552fi;
47553
47554 case "${BAKEFILE_HOST}" in
47555 *-*-darwin* )
47bd5406
VZ
47556 if test "x$GCC" = "xyes"; then
47557 CFLAGS="$CFLAGS -fno-common"
47558 CXXFLAGS="$CXXFLAGS -fno-common"
47559 fi
47560 if test "x$XLCC" = "xyes"; then
47561 CFLAGS="$CFLAGS -qnocommon"
47562 CXXFLAGS="$CXXFLAGS -qnocommon"
47563 fi
a848cd7e
SC
47564 ;;
47565
47566 *-pc-os2_emx | *-pc-os2-emx )
47567 if test "x$bk_os2_use_omf" = "xyes" ; then
47568 AR=emxomfar
47569 RANLIB=:
47570 LDFLAGS="-Zomf $LDFLAGS"
47571 CFLAGS="-Zomf $CFLAGS"
47572 CXXFLAGS="-Zomf $CXXFLAGS"
47573 OS2_LIBEXT="lib"
47574 else
47575 OS2_LIBEXT="a"
47576 fi
47577 ;;
1e9e8aba
DE
47578
47579 i*86-*-beos* )
47580 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47581 ;;
a848cd7e
SC
47582 esac
47583
47584
47585 SO_SUFFIX="so"
47586 SO_SUFFIX_MODULE="so"
47587 EXEEXT=""
47588 LIBPREFIX="lib"
47589 LIBEXT=".a"
47590 DLLPREFIX="lib"
47591 DLLPREFIX_MODULE=""
47592 DLLIMP_SUFFIX=""
810b94f0 47593 dlldir="$libdir"
a848cd7e
SC
47594
47595 case "${BAKEFILE_HOST}" in
47596 *-hp-hpux* )
47597 SO_SUFFIX="sl"
47598 SO_SUFFIX_MODULE="sl"
47599 ;;
47600 *-*-aix* )
47601 SO_SUFFIX="a"
47602 SO_SUFFIX_MODULE="a"
47603 ;;
810b94f0
MW
47604 *-*-cygwin* )
47605 SO_SUFFIX="dll"
47606 SO_SUFFIX_MODULE="dll"
47607 DLLIMP_SUFFIX="dll.a"
47608 EXEEXT=".exe"
47609 DLLPREFIX="cyg"
47610 dlldir="$bindir"
47611 ;;
47612 *-*-mingw32* )
a848cd7e
SC
47613 SO_SUFFIX="dll"
47614 SO_SUFFIX_MODULE="dll"
47615 DLLIMP_SUFFIX="dll.a"
47616 EXEEXT=".exe"
47617 DLLPREFIX=""
810b94f0 47618 dlldir="$bindir"
a848cd7e
SC
47619 ;;
47620 *-pc-msdosdjgpp )
47621 EXEEXT=".exe"
47622 DLLPREFIX=""
810b94f0 47623 dlldir="$bindir"
a848cd7e
SC
47624 ;;
47625 *-pc-os2_emx | *-pc-os2-emx )
47626 SO_SUFFIX="dll"
47627 SO_SUFFIX_MODULE="dll"
47628 DLLIMP_SUFFIX=$OS2_LIBEXT
47629 EXEEXT=".exe"
47630 DLLPREFIX=""
47631 LIBPREFIX=""
47632 LIBEXT=".$OS2_LIBEXT"
810b94f0 47633 dlldir="$bindir"
a848cd7e 47634 ;;
47bd5406 47635 *-*-darwin* )
a848cd7e
SC
47636 SO_SUFFIX="dylib"
47637 SO_SUFFIX_MODULE="bundle"
47638 ;;
47639 esac
47640
47641 if test "x$DLLIMP_SUFFIX" = "x" ; then
47642 DLLIMP_SUFFIX="$SO_SUFFIX"
47643 fi
47644
47645
47646
47647
47648
47649
47650
47651
47652
47653
47654
810b94f0 47655
1e9e8aba
DE
47656 PIC_FLAG=""
47657 if test "x$GCC" = "xyes"; then
a848cd7e
SC
47658 PIC_FLAG="-fPIC"
47659 fi
47660
1e9e8aba
DE
47661 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47662 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 47663 WINDOWS_IMPLIB=0
1e9e8aba 47664
a848cd7e
SC
47665 case "${BAKEFILE_HOST}" in
47666 *-hp-hpux* )
1e9e8aba 47667 if test "x$GCC" != "xyes"; then
a848cd7e
SC
47668 LDFLAGS="$LDFLAGS -L/usr/lib"
47669
47670 SHARED_LD_CC="${CC} -b -o"
47671 SHARED_LD_CXX="${CXX} -b -o"
47672 PIC_FLAG="+Z"
47673 fi
47674 ;;
47675
47676 *-*-linux* )
47677 if test "x$GCC" != "xyes"; then
47678 echo "$as_me:$LINENO: checking for Intel compiler" >&5
47679echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
47680if test "${bakefile_cv_prog_icc+set}" = set; then
47681 echo $ECHO_N "(cached) $ECHO_C" >&6
47682else
47683
47684 cat >conftest.$ac_ext <<_ACEOF
47685/* confdefs.h. */
47686_ACEOF
47687cat confdefs.h >>conftest.$ac_ext
47688cat >>conftest.$ac_ext <<_ACEOF
47689/* end confdefs.h. */
47690
47691int
47692main ()
47693{
47694
47695 #ifndef __INTEL_COMPILER
e5efa97e 47696 This is not ICC
a848cd7e
SC
47697 #endif
47698
47699 ;
47700 return 0;
47701}
47702_ACEOF
47703rm -f conftest.$ac_objext
47704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47705 (eval $ac_compile) 2>conftest.er1
a848cd7e 47706 ac_status=$?
ac1cb8d3
VS
47707 grep -v '^ *+' conftest.er1 >conftest.err
47708 rm -f conftest.er1
47709 cat conftest.err >&5
a848cd7e
SC
47710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47711 (exit $ac_status); } &&
7067783d
PC
47712 { ac_try='test -z "$ac_c_werror_flag"
47713 || test ! -s conftest.err'
ac1cb8d3
VS
47714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47715 (eval $ac_try) 2>&5
47716 ac_status=$?
47717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47718 (exit $ac_status); }; } &&
47719 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47721 (eval $ac_try) 2>&5
47722 ac_status=$?
47723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47724 (exit $ac_status); }; }; then
47725 bakefile_cv_prog_icc=yes
47726else
47727 echo "$as_me: failed program was:" >&5
47728sed 's/^/| /' conftest.$ac_ext >&5
47729
47730bakefile_cv_prog_icc=no
47731
47732fi
ac1cb8d3 47733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
47734
47735fi
47736echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
47737echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
47738 if test "$bakefile_cv_prog_icc" = "yes"; then
47739 PIC_FLAG="-KPIC"
47740 fi
47741 fi
47742 ;;
47743
47744 *-*-solaris2* )
47745 if test "x$GCC" != xyes ; then
47746 SHARED_LD_CC="${CC} -G -o"
47747 SHARED_LD_CXX="${CXX} -G -o"
47748 PIC_FLAG="-KPIC"
47749 fi
47750 ;;
47751
47752 *-*-darwin* )
47753
473276a9
VS
47754D='$'
47755cat <<EOF >shared-ld-sh
a848cd7e
SC
47756#!/bin/sh
47757#-----------------------------------------------------------------------------
47758#-- Name: distrib/mac/shared-ld-sh
47759#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
47760#-- Author: Gilles Depeyrot
47761#-- Copyright: (c) 2002 Gilles Depeyrot
47762#-- Licence: any use permitted
47763#-----------------------------------------------------------------------------
47764
47765verbose=0
47766args=""
47767objects=""
47768linking_flag="-dynamiclib"
810b94f0 47769ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 47770
473276a9
VS
47771while test ${D}# -gt 0; do
47772 case ${D}1 in
a848cd7e
SC
47773
47774 -v)
47775 verbose=1
47776 ;;
47777
47778 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47779 # collect these options and values
473276a9 47780 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
47781 shift
47782 ;;
47783
810b94f0
MW
47784 -s|-Wl,*)
47785 # collect these load args
47786 ldargs="${D}{ldargs} ${D}1"
2113bc77 47787 ;;
810b94f0
MW
47788
47789 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 47790 # collect these options
473276a9 47791 args="${D}{args} ${D}1"
a848cd7e
SC
47792 ;;
47793
47794 -dynamiclib|-bundle)
473276a9 47795 linking_flag="${D}1"
a848cd7e
SC
47796 ;;
47797
47798 -*)
473276a9 47799 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
47800 exit 1
47801 ;;
47802
47803 *.o | *.a | *.dylib)
47804 # collect object files
473276a9 47805 objects="${D}{objects} ${D}1"
a848cd7e
SC
47806 ;;
47807
47808 *)
473276a9 47809 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
47810 exit 1
47811 ;;
47812
47813 esac
47814 shift
47815done
47816
810b94f0
MW
47817status=0
47818
a848cd7e
SC
47819#
47820# Link one module containing all the others
47821#
473276a9 47822if test ${D}{verbose} = 1; then
810b94f0 47823 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 47824fi
810b94f0 47825c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 47826status=${D}?
a848cd7e
SC
47827
47828#
810b94f0
MW
47829# Link the shared library from the single module created, but only if the
47830# previous command didn't fail:
a848cd7e 47831#
810b94f0
MW
47832if test ${D}{status} = 0; then
47833 if test ${D}{verbose} = 1; then
47834 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47835 fi
47836 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47837 status=${D}?
a848cd7e
SC
47838fi
47839
47840#
47841# Remove intermediate module
47842#
473276a9 47843rm -f master.${D}${D}.o
a848cd7e 47844
810b94f0 47845exit ${D}status
a848cd7e 47846EOF
473276a9 47847
583d6b4b
VZ
47848 chmod +x shared-ld-sh
47849
47850 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47851 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
47852
47853
47854 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47855echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
47856if test "${bakefile_cv_gcc31+set}" = set; then
47857 echo $ECHO_N "(cached) $ECHO_C" >&6
47858else
47859
47860 cat >conftest.$ac_ext <<_ACEOF
47861/* confdefs.h. */
47862_ACEOF
47863cat confdefs.h >>conftest.$ac_ext
47864cat >>conftest.$ac_ext <<_ACEOF
47865/* end confdefs.h. */
47866
47867int
47868main ()
47869{
47870
47871 #if (__GNUC__ < 3) || \
47872 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 47873 This is old gcc
583d6b4b 47874 #endif
a848cd7e 47875
583d6b4b
VZ
47876 ;
47877 return 0;
47878}
47879_ACEOF
47880rm -f conftest.$ac_objext
47881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47882 (eval $ac_compile) 2>conftest.er1
47883 ac_status=$?
47884 grep -v '^ *+' conftest.er1 >conftest.err
47885 rm -f conftest.er1
47886 cat conftest.err >&5
47887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47888 (exit $ac_status); } &&
7067783d
PC
47889 { ac_try='test -z "$ac_c_werror_flag"
47890 || test ! -s conftest.err'
583d6b4b
VZ
47891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47892 (eval $ac_try) 2>&5
47893 ac_status=$?
47894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47895 (exit $ac_status); }; } &&
47896 { ac_try='test -s conftest.$ac_objext'
47897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47898 (eval $ac_try) 2>&5
47899 ac_status=$?
47900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47901 (exit $ac_status); }; }; then
47902
47903 bakefile_cv_gcc31=yes
47904
47905else
47906 echo "$as_me: failed program was:" >&5
47907sed 's/^/| /' conftest.$ac_ext >&5
47908
47909
47910 bakefile_cv_gcc31=no
47911
47912
47913fi
47914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47915
47916fi
47917echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47918echo "${ECHO_T}$bakefile_cv_gcc31" >&6
47919 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 47920 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 47921 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
47922 else
47923 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 47924 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
47925 fi
47926
47bd5406
VZ
47927 if test "x$GCC" == "xyes"; then
47928 PIC_FLAG="-dynamic -fPIC"
47929 fi
47930 if test "x$XLCC" = "xyes"; then
47931 PIC_FLAG="-dynamic -DPIC"
47932 fi
a848cd7e
SC
47933 ;;
47934
47935 *-*-aix* )
f6b50c59 47936 if test "x$GCC" = "xyes"; then
583d6b4b 47937 PIC_FLAG=""
f6b50c59 47938
583d6b4b
VZ
47939 case "${BAKEFILE_HOST}" in
47940 *-*-aix5* )
47941 LD_EXPFULL="-Wl,-bexpfull"
47942 ;;
47943 esac
f6b50c59 47944
583d6b4b
VZ
47945 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47946 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47947 else
47948 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
47949set dummy makeC++SharedLib; ac_word=$2
47950echo "$as_me:$LINENO: checking for $ac_word" >&5
47951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47952if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47953 echo $ECHO_N "(cached) $ECHO_C" >&6
47954else
47955 if test -n "$AIX_CXX_LD"; then
47956 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47957else
47958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47959for as_dir in $PATH
47960do
47961 IFS=$as_save_IFS
47962 test -z "$as_dir" && as_dir=.
47963 for ac_exec_ext in '' $ac_executable_extensions; do
47964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47965 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47967 break 2
47968 fi
47969done
47970done
47971
47972 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47973fi
47974fi
47975AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47976if test -n "$AIX_CXX_LD"; then
47977 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47978echo "${ECHO_T}$AIX_CXX_LD" >&6
47979else
47980 echo "$as_me:$LINENO: result: no" >&5
47981echo "${ECHO_T}no" >&6
47982fi
47983
f6b50c59 47984 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
47985 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47986 fi
47987 ;;
47988
47989 *-*-beos* )
1e9e8aba
DE
47990 SHARED_LD_CC="${LD} -nostart -o"
47991 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
47992 ;;
47993
47994 *-*-irix* )
47995 if test "x$GCC" != "xyes"; then
47996 PIC_FLAG="-KPIC"
47997 fi
47998 ;;
47999
48000 *-*-cygwin* | *-*-mingw32* )
48001 PIC_FLAG=""
1e9e8aba
DE
48002 SHARED_LD_CC="\$(CC) -shared -o"
48003 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 48004 WINDOWS_IMPLIB=1
a848cd7e
SC
48005 ;;
48006
48007 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
48008 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48009 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 48010 PIC_FLAG=""
473276a9
VS
48011
48012D='$'
48013cat <<EOF >dllar.sh
48014#!/bin/sh
48015#
48016# dllar - a tool to build both a .dll and an .a file
48017# from a set of object (.o) files for EMX/OS2.
48018#
48019# Written by Andrew Zabolotny, bit@freya.etu.ru
48020# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48021#
48022# This script will accept a set of files on the command line.
48023# All the public symbols from the .o files will be exported into
48024# a .DEF file, then linker will be run (through gcc) against them to
48025# build a shared library consisting of all given .o files. All libraries
48026# (.a) will be first decompressed into component .o files then act as
48027# described above. You can optionally give a description (-d "description")
48028# which will be put into .DLL. To see the list of accepted options (as well
48029# as command-line format) simply run this program without options. The .DLL
48030# is built to be imported by name (there is no guarantee that new versions
48031# of the library you build will have same ordinals for same symbols).
48032#
48033# dllar is free software; you can redistribute it and/or modify
48034# it under the terms of the GNU General Public License as published by
48035# the Free Software Foundation; either version 2, or (at your option)
48036# any later version.
48037#
48038# dllar is distributed in the hope that it will be useful,
48039# but WITHOUT ANY WARRANTY; without even the implied warranty of
48040# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48041# GNU General Public License for more details.
48042#
48043# You should have received a copy of the GNU General Public License
48044# along with dllar; see the file COPYING. If not, write to the Free
48045# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48046# 02111-1307, USA.
48047
48048# To successfuly run this program you will need:
48049# - Current drive should have LFN support (HPFS, ext2, network, etc)
48050# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48051# - gcc
48052# (used to build the .dll)
48053# - emxexp
48054# (used to create .def file from .o files)
48055# - emximp
48056# (used to create .a file from .def file)
48057# - GNU text utilites (cat, sort, uniq)
48058# used to process emxexp output
48059# - GNU file utilities (mv, rm)
48060# - GNU sed
48061# - lxlite (optional, see flag below)
48062# (used for general .dll cleanup)
48063#
48064
48065flag_USE_LXLITE=1;
48066
48067#
48068# helper functions
48069# basnam, variant of basename, which does _not_ remove the path, _iff_
48070# second argument (suffix to remove) is given
48071basnam(){
48072 case ${D}# in
48073 1)
1e9e8aba 48074 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
48075 ;;
48076 2)
48077 echo ${D}1 | sed 's/'${D}2'${D}//'
48078 ;;
48079 *)
48080 echo "error in basnam ${D}*"
48081 exit 8
48082 ;;
48083 esac
48084}
48085
48086# Cleanup temporary files and output
48087CleanUp() {
48088 cd ${D}curDir
48089 for i in ${D}inputFiles ; do
48090 case ${D}i in
48091 *!)
48092 rm -rf \`basnam ${D}i !\`
48093 ;;
48094 *)
48095 ;;
48096 esac
48097 done
48098
48099 # Kill result in case of failure as there is just to many stupid make/nmake
48100 # things out there which doesn't do this.
1e9e8aba 48101 if [ ${D}# -eq 0 ]; then
473276a9
VS
48102 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48103 fi
48104}
48105
48106# Print usage and exit script with rc=1.
48107PrintHelp() {
b1d22ded
DE
48108 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48109 echo ' [-name-mangler-script script.sh]'
48110 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48111 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
48112 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 48113 echo ' [*.o] [*.a]'
473276a9
VS
48114 echo '*> "output_file" should have no extension.'
48115 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
48116 echo ' The import library name is derived from this and is set to "name".a,'
48117 echo ' unless overridden by -import'
48118 echo '*> "importlib_name" should have no extension.'
48119 echo ' If it has the .o, or .a extension, it is automatically removed.'
48120 echo ' This name is used as the import library name and may be longer and'
48121 echo ' more descriptive than the DLL name which has to follow the old '
48122 echo ' 8.3 convention of FAT.'
b1d22ded
DE
48123 echo '*> "script.sh may be given to override the output_file name by a'
48124 echo ' different name. It is mainly useful if the regular make process'
48125 echo ' of some package does not take into account OS/2 restriction of'
48126 echo ' DLL name lengths. It takes the importlib name as input and is'
48127 echo ' supposed to procude a shorter name as output. The script should'
48128 echo ' expect to get importlib_name without extension and should produce'
48129 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
48130 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
48131 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48132 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
48133 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48134 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
48135 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48136 echo ' If the last character of a symbol is "*", all symbols beginning'
48137 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 48138 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 48139 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 48140 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 48141 echo ' C runtime DLLs.'
b1d22ded 48142 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
48143 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48144 echo ' unchanged to GCC at the end of command line.'
48145 echo '*> If you create a DLL from a library and you do not specify -o,'
48146 echo ' the basename for DLL and import library will be set to library name,'
48147 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
48148 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48149 echo ' library will be renamed into gcc_s.a.'
48150 echo '--------'
48151 echo 'Example:'
48152 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48153 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48154 CleanUp
48155 exit 1
48156}
48157
48158# Execute a command.
48159# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48160# @Uses Whatever CleanUp() uses.
48161doCommand() {
48162 echo "${D}*"
48163 eval ${D}*
48164 rcCmd=${D}?
48165
1e9e8aba 48166 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
48167 echo "command failed, exit code="${D}rcCmd
48168 CleanUp
48169 exit ${D}rcCmd
48170 fi
48171}
48172
48173# main routine
48174# setup globals
48175cmdLine=${D}*
48176outFile=""
48177outimpFile=""
48178inputFiles=""
b1d22ded 48179renameScript=""
473276a9
VS
48180description=""
48181CC=gcc.exe
48182CFLAGS="-s -Zcrtdll"
48183EXTRA_CFLAGS=""
48184EXPORT_BY_ORDINALS=0
48185exclude_symbols=""
48186library_flags=""
48187curDir=\`pwd\`
48188curDirS=curDir
48189case ${D}curDirS in
48190*/)
48191 ;;
48192*)
48193 curDirS=${D}{curDirS}"/"
48194 ;;
48195esac
48196# Parse commandline
48197libsToLink=0
b1d22ded 48198omfLinking=0
1e9e8aba 48199while [ ${D}1 ]; do
473276a9
VS
48200 case ${D}1 in
48201 -ord*)
48202 EXPORT_BY_ORDINALS=1;
48203 ;;
48204 -o*)
48205 shift
48206 outFile=${D}1
48207 ;;
48208 -i*)
48209 shift
48210 outimpFile=${D}1
48211 ;;
b1d22ded
DE
48212 -name-mangler-script)
48213 shift
48214 renameScript=${D}1
48215 ;;
473276a9
VS
48216 -d*)
48217 shift
48218 description=${D}1
48219 ;;
48220 -f*)
48221 shift
48222 CFLAGS=${D}1
48223 ;;
48224 -c*)
48225 shift
48226 CC=${D}1
48227 ;;
48228 -h*)
48229 PrintHelp
48230 ;;
48231 -ex*)
48232 shift
48233 exclude_symbols=${D}{exclude_symbols}${D}1" "
48234 ;;
48235 -libf*)
48236 shift
48237 library_flags=${D}{library_flags}${D}1" "
48238 ;;
48239 -nocrt*)
48240 CFLAGS="-s"
48241 ;;
48242 -nolxl*)
48243 flag_USE_LXLITE=0
48244 ;;
48245 -* | /*)
48246 case ${D}1 in
48247 -L* | -l*)
48248 libsToLink=1
48249 ;;
b1d22ded
DE
48250 -Zomf)
48251 omfLinking=1
48252 ;;
473276a9
VS
48253 *)
48254 ;;
48255 esac
48256 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48257 ;;
b1d22ded
DE
48258 *.dll)
48259 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48260 if [ ${D}omfLinking -eq 1 ]; then
48261 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48262 else
48263 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48264 fi
48265 ;;
473276a9
VS
48266 *)
48267 found=0;
1e9e8aba 48268 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
48269 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48270 else
48271 for file in ${D}1 ; do
1e9e8aba 48272 if [ -f ${D}file ]; then
473276a9
VS
48273 inputFiles="${D}{inputFiles} ${D}file"
48274 found=1
48275 fi
48276 done
1e9e8aba 48277 if [ ${D}found -eq 0 ]; then
473276a9
VS
48278 echo "ERROR: No file(s) found: "${D}1
48279 exit 8
48280 fi
48281 fi
48282 ;;
48283 esac
48284 shift
48285done # iterate cmdline words
48286
48287#
1e9e8aba 48288if [ -z "${D}inputFiles" ]; then
473276a9
VS
48289 echo "dllar: no input files"
48290 PrintHelp
48291fi
48292
48293# Now extract all .o files from .a files
48294newInputFiles=""
48295for file in ${D}inputFiles ; do
48296 case ${D}file in
48297 *.a | *.lib)
48298 case ${D}file in
48299 *.a)
48300 suffix=".a"
48301 AR="ar"
48302 ;;
48303 *.lib)
48304 suffix=".lib"
48305 AR="emxomfar"
48306 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48307 ;;
48308 *)
48309 ;;
48310 esac
48311 dirname=\`basnam ${D}file ${D}suffix\`"_%"
48312 mkdir ${D}dirname
1e9e8aba 48313 if [ ${D}? -ne 0 ]; then
473276a9
VS
48314 echo "Failed to create subdirectory ./${D}dirname"
48315 CleanUp
48316 exit 8;
48317 fi
48318 # Append '!' to indicate archive
48319 newInputFiles="${D}newInputFiles ${D}{dirname}!"
48320 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48321 cd ${D}curDir
48322 found=0;
48323 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 48324 if [ -f ${D}subfile ]; then
473276a9 48325 found=1
1e9e8aba 48326 if [ -s ${D}subfile ]; then
473276a9
VS
48327 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48328 newInputFiles="${D}newInputFiles ${D}subfile"
48329 fi
48330 fi
48331 done
1e9e8aba
DE
48332 if [ ${D}found -eq 0 ]; then
48333 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
48334 fi
48335 ;;
48336 *)
48337 newInputFiles="${D}{newInputFiles} ${D}file"
48338 ;;
48339 esac
48340done
48341inputFiles="${D}newInputFiles"
48342
48343# Output filename(s).
48344do_backup=0;
1e9e8aba 48345if [ -z ${D}outFile ]; then
473276a9
VS
48346 do_backup=1;
48347 set outFile ${D}inputFiles; outFile=${D}2
48348fi
48349
48350# If it is an archive, remove the '!' and the '_%' suffixes
48351case ${D}outFile in
48352*_%!)
48353 outFile=\`basnam ${D}outFile _%!\`
48354 ;;
48355*)
48356 ;;
48357esac
48358case ${D}outFile in
48359*.dll)
48360 outFile=\`basnam ${D}outFile .dll\`
48361 ;;
48362*.DLL)
48363 outFile=\`basnam ${D}outFile .DLL\`
48364 ;;
48365*.o)
48366 outFile=\`basnam ${D}outFile .o\`
48367 ;;
48368*.obj)
48369 outFile=\`basnam ${D}outFile .obj\`
48370 ;;
48371*.a)
48372 outFile=\`basnam ${D}outFile .a\`
48373 ;;
48374*.lib)
48375 outFile=\`basnam ${D}outFile .lib\`
48376 ;;
48377*)
48378 ;;
48379esac
48380case ${D}outimpFile in
48381*.a)
48382 outimpFile=\`basnam ${D}outimpFile .a\`
48383 ;;
48384*.lib)
48385 outimpFile=\`basnam ${D}outimpFile .lib\`
48386 ;;
48387*)
48388 ;;
48389esac
1e9e8aba 48390if [ -z ${D}outimpFile ]; then
473276a9
VS
48391 outimpFile=${D}outFile
48392fi
48393defFile="${D}{outFile}.def"
48394arcFile="${D}{outimpFile}.a"
48395arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
48396
48397#create ${D}dllFile as something matching 8.3 restrictions,
48398if [ -z ${D}renameScript ] ; then
48399 dllFile="${D}outFile"
48400else
48401 dllFile=\`${D}renameScript ${D}outimpFile\`
48402fi
473276a9 48403
1e9e8aba
DE
48404if [ ${D}do_backup -ne 0 ] ; then
48405 if [ -f ${D}arcFile ] ; then
473276a9
VS
48406 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48407 fi
1e9e8aba 48408 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
48409 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48410 fi
48411fi
48412
48413# Extract public symbols from all the object files.
48414tmpdefFile=${D}{defFile}_%
48415rm -f ${D}tmpdefFile
48416for file in ${D}inputFiles ; do
48417 case ${D}file in
48418 *!)
48419 ;;
48420 *)
48421 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48422 ;;
48423 esac
48424done
48425
48426# Create the def file.
48427rm -f ${D}defFile
48428echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
48429dllFile="${D}{dllFile}.dll"
48430if [ ! -z ${D}description ]; then
1e9e8aba 48431 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
48432fi
48433echo "EXPORTS" >> ${D}defFile
48434
48435doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48436grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48437
48438# Checks if the export is ok or not.
48439for word in ${D}exclude_symbols; do
48440 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48441 mv ${D}{tmpdefFile}% ${D}tmpdefFile
48442done
48443
48444
1e9e8aba
DE
48445if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48446 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
48447 sed '
48448 N
48449 : loop
1e9e8aba 48450 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
48451 t loop
48452 ' > ${D}{tmpdefFile}%
48453 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48454else
48455 rm -f ${D}{tmpdefFile}%
48456fi
48457cat ${D}tmpdefFile >> ${D}defFile
48458rm -f ${D}tmpdefFile
48459
48460# Do linking, create implib, and apply lxlite.
48461gccCmdl="";
48462for file in ${D}inputFiles ; do
48463 case ${D}file in
48464 *!)
48465 ;;
48466 *)
48467 gccCmdl="${D}gccCmdl ${D}file"
48468 ;;
48469 esac
48470done
48471doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48472touch "${D}{outFile}.dll"
48473
48474doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 48475if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 48476 add_flags="";
1e9e8aba 48477 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
48478 add_flags="-ynd"
48479 fi
48480 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48481fi
48482doCommand "emxomf -s -l ${D}arcFile"
48483
48484# Successful exit.
48485CleanUp 1
48486exit 0
48487EOF
48488
48489 chmod +x dllar.sh
a848cd7e
SC
48490 ;;
48491
1e9e8aba 48492 powerpc-apple-macos* | \
0ad5d837 48493 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
48494 *-*-sunos4* | \
48495 *-*-osf* | \
48496 *-*-dgux5* | \
47a7e797
MW
48497 *-*-sysv5* | \
48498 *-pc-msdosdjgpp )
a848cd7e
SC
48499 ;;
48500
48501 *)
3ecd9f92 48502 esac
a848cd7e 48503
2057db16
VS
48504 if test "x$PIC_FLAG" != "x" ; then
48505 PIC_FLAG="$PIC_FLAG -DPIC"
48506 fi
48507
a848cd7e
SC
48508 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48509 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48510 fi
48511 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48512 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48513 fi
48514
48515
48516
48517
48518
48519
48520
48521
810b94f0 48522
a848cd7e
SC
48523 USE_SOVERSION=0
48524 USE_SOVERLINUX=0
48525 USE_SOVERSOLARIS=0
810b94f0 48526 USE_SOVERCYGWIN=0
a848cd7e
SC
48527 USE_SOSYMLINKS=0
48528 USE_MACVERSION=0
48529 SONAME_FLAG=
48530
48531 case "${BAKEFILE_HOST}" in
0ad5d837 48532 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
48533 SONAME_FLAG="-Wl,-soname,"
48534 USE_SOVERSION=1
48535 USE_SOVERLINUX=1
48536 USE_SOSYMLINKS=1
48537 ;;
48538
a848cd7e
SC
48539 *-*-solaris2* )
48540 SONAME_FLAG="-h "
48541 USE_SOVERSION=1
48542 USE_SOVERSOLARIS=1
48543 USE_SOSYMLINKS=1
48544 ;;
48545
48546 *-*-darwin* )
48547 USE_MACVERSION=1
48548 USE_SOVERSION=1
48549 USE_SOSYMLINKS=1
48550 ;;
810b94f0
MW
48551
48552 *-*-cygwin* )
48553 USE_SOVERSION=1
48554 USE_SOVERCYGWIN=1
48555 ;;
a848cd7e
SC
48556 esac
48557
48558
48559
48560
48561
48562
48563
48564
48565
810b94f0 48566
f10e38c4
VZ
48567 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
48568if test "${enable_dependency_tracking+set}" = set; then
48569 enableval="$enable_dependency_tracking"
48570 bk_use_trackdeps="$enableval"
48571fi;
48572
a848cd7e
SC
48573 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48574echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 48575
f10e38c4
VZ
48576 if test "x$bk_use_trackdeps" = "xno" ; then
48577 DEPS_TRACKING=0
48578 echo "$as_me:$LINENO: result: disabled" >&5
48579echo "${ECHO_T}disabled" >&6
48580 else
48581 DEPS_TRACKING=1
48582
48583 if test "x$GCC" = "xyes"; then
48584 DEPSMODE=gcc
48585 case "${BAKEFILE_HOST}" in
48586 *-*-darwin* )
48587 DEPSFLAG="-no-cpp-precomp -MMD"
48588 ;;
48589 * )
48590 DEPSFLAG="-MMD"
48591 ;;
48592 esac
48593 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 48594echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
48595 elif test "x$MWCC" = "xyes"; then
48596 DEPSMODE=mwcc
48597 DEPSFLAG="-MM"
48598 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 48599echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
48600 elif test "x$SUNCC" = "xyes"; then
48601 DEPSMODE=unixcc
48602 DEPSFLAG="-xM1"
48603 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 48604echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
48605 elif test "x$SGICC" = "xyes"; then
48606 DEPSMODE=unixcc
48607 DEPSFLAG="-M"
48608 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 48609echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
48610 elif test "x$HPCC" = "xyes"; then
48611 DEPSMODE=unixcc
48612 DEPSFLAG="+make"
48613 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 48614echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
48615 elif test "x$COMPAQCC" = "xyes"; then
48616 DEPSMODE=gcc
48617 DEPSFLAG="-MD"
48618 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 48619echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
48620 else
48621 DEPS_TRACKING=0
48622 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 48623echo "${ECHO_T}none" >&6
f10e38c4 48624 fi
a848cd7e 48625
f10e38c4 48626 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
48627
48628D='$'
48629cat <<EOF >bk-deps
a848cd7e
SC
48630#!/bin/sh
48631
48632# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48633# script. It is used to track C/C++ files dependencies in portable way.
48634#
48635# Permission is given to use this file in any way.
48636
473276a9 48637DEPSMODE=${DEPSMODE}
a848cd7e 48638DEPSDIR=.deps
0ad5d837 48639DEPSFLAG="${DEPSFLAG}"
a848cd7e 48640
473276a9 48641mkdir -p ${D}DEPSDIR
a848cd7e 48642
473276a9 48643if test ${D}DEPSMODE = gcc ; then
0ad5d837 48644 ${D}* ${D}{DEPSFLAG}
473276a9
VS
48645 status=${D}?
48646 if test ${D}{status} != 0 ; then
48647 exit ${D}{status}
a848cd7e
SC
48648 fi
48649 # move created file to the location we want it in:
473276a9
VS
48650 while test ${D}# -gt 0; do
48651 case "${D}1" in
a848cd7e
SC
48652 -o )
48653 shift
473276a9 48654 objfile=${D}1
a848cd7e
SC
48655 ;;
48656 -* )
48657 ;;
48658 * )
473276a9 48659 srcfile=${D}1
a848cd7e
SC
48660 ;;
48661 esac
48662 shift
48663 done
1e9e8aba
DE
48664 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48665 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
48666 if test -f ${D}depfile ; then
48667 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48668 rm -f ${D}depfile
a848cd7e 48669 else
a1aa0349 48670 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 48671 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
48672 if test ! -f ${D}depfile ; then
48673 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48674 depfile="${D}objfile.d"
48675 fi
473276a9
VS
48676 if test -f ${D}depfile ; then
48677 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48678 rm -f ${D}depfile
a848cd7e
SC
48679 fi
48680 fi
48681 exit 0
81f90336 48682elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 48683 ${D}* || exit ${D}?
81f90336
MW
48684 # Run mwcc again with -MM and redirect into the dep file we want
48685 # NOTE: We can't use shift here because we need ${D}* to be valid
48686 prevarg=
48687 for arg in ${D}* ; do
48688 if test "${D}prevarg" = "-o"; then
48689 objfile=${D}arg
48690 else
48691 case "${D}arg" in
48692 -* )
48693 ;;
48694 * )
48695 srcfile=${D}arg
48696 ;;
48697 esac
48698 fi
48699 prevarg="${D}arg"
48700 done
0ad5d837 48701 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 48702 exit 0
0ad5d837 48703elif test ${D}DEPSMODE = unixcc; then
f6b50c59 48704 ${D}* || exit ${D}?
a9e5b1f0
MW
48705 # Run compiler again with deps flag and redirect into the dep file.
48706 # It doesn't work if the '-o FILE' option is used, but without it the
48707 # dependency file will contain the wrong name for the object. So it is
48708 # removed from the command line, and the dep file is fixed with sed.
48709 cmd=""
48710 while test ${D}# -gt 0; do
48711 case "${D}1" in
48712 -o )
48713 shift
48714 objfile=${D}1
48715 ;;
48716 * )
48717 eval arg${D}#=\\${D}1
48718 cmd="${D}cmd \\${D}arg${D}#"
48719 ;;
48720 esac
48721 shift
48722 done
0ad5d837 48723 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 48724 exit 0
a848cd7e 48725else
473276a9
VS
48726 ${D}*
48727 exit ${D}?
a848cd7e
SC
48728fi
48729EOF
473276a9 48730
f10e38c4
VZ
48731 chmod +x bk-deps
48732 fi
a848cd7e
SC
48733 fi
48734
48735
48736
48737
a848cd7e
SC
48738 case ${BAKEFILE_HOST} in
48739 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
48740 if test -n "$ac_tool_prefix"; then
48741 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48742set dummy ${ac_tool_prefix}windres; ac_word=$2
48743echo "$as_me:$LINENO: checking for $ac_word" >&5
48744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48745if test "${ac_cv_prog_WINDRES+set}" = set; then
48746 echo $ECHO_N "(cached) $ECHO_C" >&6
48747else
48748 if test -n "$WINDRES"; then
48749 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48750else
48751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48752for as_dir in $PATH
48753do
48754 IFS=$as_save_IFS
48755 test -z "$as_dir" && as_dir=.
48756 for ac_exec_ext in '' $ac_executable_extensions; do
48757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48758 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48760 break 2
48761 fi
48762done
48763done
48764
48765fi
48766fi
48767WINDRES=$ac_cv_prog_WINDRES
48768if test -n "$WINDRES"; then
48769 echo "$as_me:$LINENO: result: $WINDRES" >&5
48770echo "${ECHO_T}$WINDRES" >&6
48771else
48772 echo "$as_me:$LINENO: result: no" >&5
48773echo "${ECHO_T}no" >&6
48774fi
48775
48776fi
48777if test -z "$ac_cv_prog_WINDRES"; then
48778 ac_ct_WINDRES=$WINDRES
48779 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
48780set dummy windres; ac_word=$2
48781echo "$as_me:$LINENO: checking for $ac_word" >&5
48782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48783if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
48784 echo $ECHO_N "(cached) $ECHO_C" >&6
48785else
8ced02f6
DE
48786 if test -n "$ac_ct_WINDRES"; then
48787 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
48788else
48789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48790for as_dir in $PATH
48791do
48792 IFS=$as_save_IFS
48793 test -z "$as_dir" && as_dir=.
48794 for ac_exec_ext in '' $ac_executable_extensions; do
48795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48796 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
48797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48798 break 2
48799 fi
48800done
48801done
48802
a848cd7e
SC
48803fi
48804fi
8ced02f6
DE
48805ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48806if test -n "$ac_ct_WINDRES"; then
48807 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48808echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
48809else
48810 echo "$as_me:$LINENO: result: no" >&5
48811echo "${ECHO_T}no" >&6
48812fi
48813
8ced02f6
DE
48814 WINDRES=$ac_ct_WINDRES
48815else
48816 WINDRES="$ac_cv_prog_WINDRES"
48817fi
48818
a848cd7e
SC
48819 ;;
48820
1e9e8aba 48821 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
48822 # Extract the first word of "Rez", so it can be a program name with args.
48823set dummy Rez; ac_word=$2
48824echo "$as_me:$LINENO: checking for $ac_word" >&5
48825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48826if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
48827 echo $ECHO_N "(cached) $ECHO_C" >&6
48828else
8ced02f6
DE
48829 if test -n "$REZ"; then
48830 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
48831else
48832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48833for as_dir in $PATH
48834do
48835 IFS=$as_save_IFS
48836 test -z "$as_dir" && as_dir=.
48837 for ac_exec_ext in '' $ac_executable_extensions; do
48838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48839 ac_cv_prog_REZ="Rez"
a848cd7e
SC
48840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48841 break 2
48842 fi
48843done
48844done
48845
8ced02f6 48846 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
48847fi
48848fi
8ced02f6
DE
48849REZ=$ac_cv_prog_REZ
48850if test -n "$REZ"; then
48851 echo "$as_me:$LINENO: result: $REZ" >&5
48852echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
48853else
48854 echo "$as_me:$LINENO: result: no" >&5
48855echo "${ECHO_T}no" >&6
48856fi
48857
48858 # Extract the first word of "SetFile", so it can be a program name with args.
48859set dummy SetFile; ac_word=$2
48860echo "$as_me:$LINENO: checking for $ac_word" >&5
48861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48862if test "${ac_cv_prog_SETFILE+set}" = set; then
48863 echo $ECHO_N "(cached) $ECHO_C" >&6
48864else
48865 if test -n "$SETFILE"; then
48866 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48867else
48868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48869for as_dir in $PATH
48870do
48871 IFS=$as_save_IFS
48872 test -z "$as_dir" && as_dir=.
48873 for ac_exec_ext in '' $ac_executable_extensions; do
48874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48875 ac_cv_prog_SETFILE="SetFile"
48876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48877 break 2
48878 fi
48879done
48880done
48881
48882 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48883fi
48884fi
48885SETFILE=$ac_cv_prog_SETFILE
48886if test -n "$SETFILE"; then
48887 echo "$as_me:$LINENO: result: $SETFILE" >&5
48888echo "${ECHO_T}$SETFILE" >&6
48889else
48890 echo "$as_me:$LINENO: result: no" >&5
48891echo "${ECHO_T}no" >&6
48892fi
48893
48894 ;;
48895 esac
48896
48897
48898
48899
48900
8ced02f6 48901
f10e38c4 48902 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 48903
dcc1b6ad 48904
f10e38c4 48905BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 48906
646b6ec1 48907
74b84332 48908
a848cd7e
SC
48909 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
48910if test "${enable_precomp_headers+set}" = set; then
48911 enableval="$enable_precomp_headers"
48912 bk_use_pch="$enableval"
48913fi;
48914
48915 GCC_PCH=0
f10e38c4
VZ
48916 ICC_PCH=0
48917 USE_PCH=0
a848cd7e 48918
5c60e845
MW
48919 case ${BAKEFILE_HOST} in
48920 *-*-cygwin* )
48921 bk_use_pch="no"
48922 ;;
48923 esac
48924
a848cd7e
SC
48925 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48926 if test "x$GCC" = "xyes"; then
48927 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48928echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
48929 cat >conftest.$ac_ext <<_ACEOF
48930/* confdefs.h. */
48931_ACEOF
48932cat confdefs.h >>conftest.$ac_ext
48933cat >>conftest.$ac_ext <<_ACEOF
48934/* end confdefs.h. */
48935
48936int
48937main ()
48938{
48939
48940 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 48941 There is no PCH support
a848cd7e
SC
48942 #endif
48943 #if (__GNUC__ < 3)
e5efa97e 48944 There is no PCH support
a848cd7e
SC
48945 #endif
48946 #if (__GNUC__ == 3) && \
48947 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
48948 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48949 ( defined(__INTEL_COMPILER) )
e5efa97e 48950 There is no PCH support
a848cd7e
SC
48951 #endif
48952
48953 ;
48954 return 0;
48955}
48956_ACEOF
48957rm -f conftest.$ac_objext
48958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 48959 (eval $ac_compile) 2>conftest.er1
a848cd7e 48960 ac_status=$?
ac1cb8d3
VS
48961 grep -v '^ *+' conftest.er1 >conftest.err
48962 rm -f conftest.er1
48963 cat conftest.err >&5
a848cd7e
SC
48964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48965 (exit $ac_status); } &&
7067783d
PC
48966 { ac_try='test -z "$ac_c_werror_flag"
48967 || test ! -s conftest.err'
ac1cb8d3
VS
48968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48969 (eval $ac_try) 2>&5
48970 ac_status=$?
48971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48972 (exit $ac_status); }; } &&
48973 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
48974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48975 (eval $ac_try) 2>&5
48976 ac_status=$?
48977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48978 (exit $ac_status); }; }; then
48979
48980 echo "$as_me:$LINENO: result: yes" >&5
48981echo "${ECHO_T}yes" >&6
a848cd7e
SC
48982 GCC_PCH=1
48983
48984else
48985 echo "$as_me: failed program was:" >&5
48986sed 's/^/| /' conftest.$ac_ext >&5
48987
48988
f10e38c4
VZ
48989 cat >conftest.$ac_ext <<_ACEOF
48990/* confdefs.h. */
48991_ACEOF
48992cat confdefs.h >>conftest.$ac_ext
48993cat >>conftest.$ac_ext <<_ACEOF
48994/* end confdefs.h. */
48995
48996int
48997main ()
48998{
48999
49000 #if !defined(__INTEL_COMPILER) || \
49001 (__INTEL_COMPILER < 800)
e5efa97e 49002 There is no PCH support
f10e38c4
VZ
49003 #endif
49004
49005 ;
49006 return 0;
49007}
49008_ACEOF
49009rm -f conftest.$ac_objext
49010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49011 (eval $ac_compile) 2>conftest.er1
49012 ac_status=$?
49013 grep -v '^ *+' conftest.er1 >conftest.err
49014 rm -f conftest.er1
49015 cat conftest.err >&5
49016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49017 (exit $ac_status); } &&
7067783d
PC
49018 { ac_try='test -z "$ac_c_werror_flag"
49019 || test ! -s conftest.err'
f10e38c4
VZ
49020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49021 (eval $ac_try) 2>&5
49022 ac_status=$?
49023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49024 (exit $ac_status); }; } &&
49025 { ac_try='test -s conftest.$ac_objext'
49026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49027 (eval $ac_try) 2>&5
49028 ac_status=$?
49029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49030 (exit $ac_status); }; }; then
49031
49032 echo "$as_me:$LINENO: result: yes" >&5
49033echo "${ECHO_T}yes" >&6
49034 ICC_PCH=1
49035
49036else
49037 echo "$as_me: failed program was:" >&5
49038sed 's/^/| /' conftest.$ac_ext >&5
49039
49040
49041 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
49042echo "${ECHO_T}no" >&6
49043
49044fi
ac1cb8d3 49045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
49046
49047fi
49048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49049 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49050 USE_PCH=1
1e9e8aba
DE
49051
49052D='$'
49053cat <<EOF >bk-make-pch
a848cd7e
SC
49054#!/bin/sh
49055
49056# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49057# script. It is used to generated precompiled headers.
49058#
49059# Permission is given to use this file in any way.
49060
1e9e8aba
DE
49061outfile="${D}{1}"
49062header="${D}{2}"
a848cd7e
SC
49063shift
49064shift
49065
f10e38c4
VZ
49066compiler=""
49067headerfile=""
49068
1e9e8aba 49069while test ${D}{#} -gt 0; do
f10e38c4 49070 add_to_cmdline=1
1e9e8aba 49071 case "${D}{1}" in
a848cd7e 49072 -I* )
1e9e8aba
DE
49073 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49074 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49075 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
49076 fi
49077 ;;
f10e38c4
VZ
49078 -use-pch|-use_pch )
49079 shift
49080 add_to_cmdline=0
49081 ;;
a848cd7e 49082 esac
f10e38c4
VZ
49083 if test ${D}add_to_cmdline = 1 ; then
49084 compiler="${D}{compiler} ${D}{1}"
49085 fi
a848cd7e
SC
49086 shift
49087done
49088
1e9e8aba 49089if test "x${D}{headerfile}" = "x" ; then
f10e38c4 49090 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 49091else
1e9e8aba
DE
49092 if test -f ${D}{outfile} ; then
49093 rm -f ${D}{outfile}
a848cd7e 49094 else
1e9e8aba 49095 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 49096 fi
1e9e8aba 49097 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 49098 mkdir -p .deps
f10e38c4
VZ
49099 if test "x${GCC_PCH}" = "x1" ; then
49100 # can do this because gcc is >= 3.4:
49101 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49102 elif test "x${ICC_PCH}" = "x1" ; then
49103 filename=pch_gen-${D}${D}
49104 file=${D}{filename}.c
49105 dfile=${D}{filename}.d
49106 cat > ${D}file <<EOT
49107#include "${D}header"
49108EOT
49109 # using -MF icc complains about differing command lines in creation/use
49110 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49111 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49112 rm -f ${D}file ${D}dfile ${D}{filename}.o
49113 fi
1e9e8aba 49114 exit ${D}{?}
a848cd7e
SC
49115fi
49116EOF
1e9e8aba 49117
a848cd7e
SC
49118 chmod +x bk-make-pch
49119 fi
49120 fi
49121 fi
49122
49123
49124
f10e38c4 49125
a848cd7e
SC
49126 COND_BUILD_DEBUG="#"
49127 if test "x$BUILD" = "xdebug" ; then
49128 COND_BUILD_DEBUG=""
49129 fi
49130
49131 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49132 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49133 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49134 fi
49135
49136 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49137 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49138 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49139 fi
49140
49141 COND_BUILD_DEBUG_UNICODE_0="#"
49142 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49143 COND_BUILD_DEBUG_UNICODE_0=""
49144 fi
49145
49146 COND_BUILD_DEBUG_UNICODE_1="#"
49147 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49148 COND_BUILD_DEBUG_UNICODE_1=""
49149 fi
49150
49151 COND_BUILD_RELEASE="#"
49152 if test "x$BUILD" = "xrelease" ; then
49153 COND_BUILD_RELEASE=""
49154 fi
49155
49156 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49157 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49158 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49159 fi
49160
49161 COND_BUILD_RELEASE_UNICODE_0="#"
49162 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49163 COND_BUILD_RELEASE_UNICODE_0=""
49164 fi
49165
49166 COND_BUILD_RELEASE_UNICODE_1="#"
49167 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49168 COND_BUILD_RELEASE_UNICODE_1=""
49169 fi
49170
49171 COND_DEBUG_FLAG_1="#"
49172 if test "x$DEBUG_FLAG" = "x1" ; then
49173 COND_DEBUG_FLAG_1=""
49174 fi
49175
49176 COND_DEBUG_INFO_0="#"
49177 if test "x$DEBUG_INFO" = "x0" ; then
49178 COND_DEBUG_INFO_0=""
49179 fi
49180
49181 COND_DEBUG_INFO_1="#"
49182 if test "x$DEBUG_INFO" = "x1" ; then
49183 COND_DEBUG_INFO_1=""
49184 fi
49185
49186 COND_DEPS_TRACKING_0="#"
49187 if test "x$DEPS_TRACKING" = "x0" ; then
49188 COND_DEPS_TRACKING_0=""
49189 fi
49190
49191 COND_DEPS_TRACKING_1="#"
49192 if test "x$DEPS_TRACKING" = "x1" ; then
49193 COND_DEPS_TRACKING_1=""
49194 fi
49195
49196 COND_GCC_PCH_1="#"
49197 if test "x$GCC_PCH" = "x1" ; then
49198 COND_GCC_PCH_1=""
49199 fi
49200
f10e38c4
VZ
49201 COND_ICC_PCH_1="#"
49202 if test "x$ICC_PCH" = "x1" ; then
49203 COND_ICC_PCH_1=""
49204 fi
49205
a848cd7e
SC
49206 COND_MONOLITHIC_0="#"
49207 if test "x$MONOLITHIC" = "x0" ; then
49208 COND_MONOLITHIC_0=""
49209 fi
49210
49211 COND_MONOLITHIC_0_SHARED_0="#"
49212 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49213 COND_MONOLITHIC_0_SHARED_0=""
49214 fi
49215
3f60522a
JS
49216 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49217 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49218 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49219 fi
49220
a848cd7e
SC
49221 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49222 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49223 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49224 fi
49225
90970d69
DE
49226 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49227 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49228 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49229 fi
49230
f10e38c4
VZ
49231 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49232 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49233 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49234 fi
49235
a848cd7e
SC
49236 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
49237 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49238 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
49239 fi
49240
6671c68b
VZ
49241 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49242 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49243 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49244 fi
49245
a848cd7e
SC
49246 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
49247 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
49248 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
49249 fi
49250
8b6682b9
JS
49251 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49252 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49253 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49254 fi
49255
ceec2216
RL
49256 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49257 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49258 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49259 fi
49260
a848cd7e
SC
49261 COND_MONOLITHIC_0_SHARED_1="#"
49262 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49263 COND_MONOLITHIC_0_SHARED_1=""
49264 fi
49265
3f60522a
JS
49266 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49267 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49268 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49269 fi
49270
a848cd7e
SC
49271 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49272 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49273 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49274 fi
49275
90970d69
DE
49276 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49277 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49278 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49279 fi
49280
f10e38c4
VZ
49281 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49282 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49283 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49284 fi
49285
a848cd7e
SC
49286 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
49287 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49288 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
49289 fi
49290
6671c68b
VZ
49291 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49292 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49293 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49294 fi
49295
a848cd7e
SC
49296 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
49297 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
49298 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
49299 fi
49300
8b6682b9
JS
49301 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49302 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49303 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49304 fi
49305
ceec2216
RL
49306 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49307 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49308 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49309 fi
49310
e5efa97e
VZ
49311 COND_MONOLITHIC_0_USE_MEDIA_1="#"
49312 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49313 COND_MONOLITHIC_0_USE_MEDIA_1=""
49314 fi
49315
a848cd7e
SC
49316 COND_MONOLITHIC_0_USE_ODBC_1="#"
49317 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
49318 COND_MONOLITHIC_0_USE_ODBC_1=""
49319 fi
49320
49321 COND_MONOLITHIC_1="#"
49322 if test "x$MONOLITHIC" = "x1" ; then
49323 COND_MONOLITHIC_1=""
49324 fi
49325
49326 COND_MONOLITHIC_1_SHARED_0="#"
49327 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49328 COND_MONOLITHIC_1_SHARED_0=""
49329 fi
49330
49331 COND_MONOLITHIC_1_SHARED_1="#"
49332 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49333 COND_MONOLITHIC_1_SHARED_1=""
49334 fi
49335
49336 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49337 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49338 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49339 fi
49340
49341 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49342 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49343 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49344 fi
49345
eb730a0c
JS
49346 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49347 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49348 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49349 fi
49350
a848cd7e
SC
49351 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49352 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49353 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49354 fi
49355
49356 COND_PLATFORM_MACOSX_1="#"
49357 if test "x$PLATFORM_MACOSX" = "x1" ; then
49358 COND_PLATFORM_MACOSX_1=""
49359 fi
49360
a30f955f
VS
49361 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49362 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49363 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49364 fi
49365
a848cd7e
SC
49366 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49367 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49368 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49369 fi
49370
49371 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49372 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49373 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49374 fi
49375
49376 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49377 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49378 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49379 fi
49380
fc480dc1
DE
49381 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49382 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49383 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49384 fi
49385
1e9e8aba
DE
49386 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49387 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49388 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49389 fi
49390
ebee3cd0
VS
49391 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49392 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49393 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49394 fi
49395
49396 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49397 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49398 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49399 fi
49400
a848cd7e
SC
49401 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49402 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49403 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49404 fi
49405
49406 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49407 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49408 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49409 fi
49410
b48a2016
DE
49411 COND_PLATFORM_MACOS_1="#"
49412 if test "x$PLATFORM_MACOS" = "x1" ; then
49413 COND_PLATFORM_MACOS_1=""
49414 fi
49415
083508af
MW
49416 COND_PLATFORM_MAC_1="#"
49417 if test "x$PLATFORM_MAC" = "x1" ; then
49418 COND_PLATFORM_MAC_1=""
49419 fi
49420
e5efa97e
VZ
49421 COND_PLATFORM_MSDOS_0="#"
49422 if test "x$PLATFORM_MSDOS" = "x0" ; then
49423 COND_PLATFORM_MSDOS_0=""
49424 fi
49425
83d8eb47
MW
49426 COND_PLATFORM_MSDOS_1="#"
49427 if test "x$PLATFORM_MSDOS" = "x1" ; then
49428 COND_PLATFORM_MSDOS_1=""
49429 fi
49430
a848cd7e
SC
49431 COND_PLATFORM_OS2_1="#"
49432 if test "x$PLATFORM_OS2" = "x1" ; then
49433 COND_PLATFORM_OS2_1=""
49434 fi
49435
49436 COND_PLATFORM_UNIX_0="#"
49437 if test "x$PLATFORM_UNIX" = "x0" ; then
49438 COND_PLATFORM_UNIX_0=""
49439 fi
49440
49441 COND_PLATFORM_UNIX_1="#"
49442 if test "x$PLATFORM_UNIX" = "x1" ; then
49443 COND_PLATFORM_UNIX_1=""
49444 fi
49445
49446 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49447 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49448 COND_PLATFORM_UNIX_1_USE_GUI_1=""
49449 fi
49450
49451 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49452 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49453 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49454 fi
49455
49456 COND_PLATFORM_WIN32_0="#"
49457 if test "x$PLATFORM_WIN32" = "x0" ; then
49458 COND_PLATFORM_WIN32_0=""
49459 fi
49460
49461 COND_PLATFORM_WIN32_1="#"
49462 if test "x$PLATFORM_WIN32" = "x1" ; then
49463 COND_PLATFORM_WIN32_1=""
49464 fi
49465
49466 COND_SHARED_0="#"
49467 if test "x$SHARED" = "x0" ; then
49468 COND_SHARED_0=""
49469 fi
49470
083508af
MW
49471 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49472 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49473 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49474 fi
49475
49476 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49477 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49478 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49479 fi
49480
49481 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49482 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49483 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49484 fi
49485
a848cd7e
SC
49486 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49487 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49488 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49489 fi
49490
49491 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49492 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49493 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49494 fi
49495
49496 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49497 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49498 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49499 fi
49500
49501 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49502 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49503 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49504 fi
49505
083508af
MW
49506 COND_SHARED_0_USE_XRC_1="#"
49507 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49508 COND_SHARED_0_USE_XRC_1=""
49509 fi
49510
a848cd7e
SC
49511 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49512 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49513 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49514 fi
49515
49516 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49517 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49518 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49519 fi
49520
49521 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49522 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49523 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49524 fi
49525
49526 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49527 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49528 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49529 fi
49530
49531 COND_SHARED_1="#"
49532 if test "x$SHARED" = "x1" ; then
49533 COND_SHARED_1=""
49534 fi
49535
49536 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49537 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49538 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49539 fi
49540
083508af
MW
49541 COND_SHARED_1_USE_XRC_1="#"
49542 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49543 COND_SHARED_1_USE_XRC_1=""
49544 fi
49545
a30f955f
VS
49546 COND_TOOLKIT_="#"
49547 if test "x$TOOLKIT" = "x" ; then
49548 COND_TOOLKIT_=""
49549 fi
49550
a848cd7e
SC
49551 COND_TOOLKIT_COCOA="#"
49552 if test "x$TOOLKIT" = "xCOCOA" ; then
49553 COND_TOOLKIT_COCOA=""
49554 fi
49555
a49baeab
DE
49556 COND_TOOLKIT_COCOA_USE_GUI_1="#"
49557 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49558 COND_TOOLKIT_COCOA_USE_GUI_1=""
49559 fi
49560
a848cd7e
SC
49561 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49562 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49563 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49564 fi
49565
b3c86150
VS
49566 COND_TOOLKIT_DFB="#"
49567 if test "x$TOOLKIT" = "xDFB" ; then
49568 COND_TOOLKIT_DFB=""
49569 fi
49570
49571 COND_TOOLKIT_DFB_USE_GUI_1="#"
49572 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49573 COND_TOOLKIT_DFB_USE_GUI_1=""
49574 fi
49575
a848cd7e
SC
49576 COND_TOOLKIT_GTK="#"
49577 if test "x$TOOLKIT" = "xGTK" ; then
49578 COND_TOOLKIT_GTK=""
49579 fi
49580
d044deea
MW
49581 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49582 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49583 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49584 fi
49585
49586 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49587 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49588 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49589 fi
49590
49591 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49592 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49593 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49594 fi
49595
49596 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49597 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49598 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49599 fi
49600
49601 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49602 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49603 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49604 fi
49605
49606 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49607 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49608 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49609 fi
49610
a848cd7e
SC
49611 COND_TOOLKIT_GTK_USE_GUI_1="#"
49612 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49613 COND_TOOLKIT_GTK_USE_GUI_1=""
49614 fi
49615
a848cd7e
SC
49616 COND_TOOLKIT_MAC="#"
49617 if test "x$TOOLKIT" = "xMAC" ; then
49618 COND_TOOLKIT_MAC=""
49619 fi
49620
49621 COND_TOOLKIT_MAC_USE_GUI_1="#"
49622 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49623 COND_TOOLKIT_MAC_USE_GUI_1=""
49624 fi
49625
49626 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49627 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49628 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49629 fi
49630
49631 COND_TOOLKIT_MGL="#"
49632 if test "x$TOOLKIT" = "xMGL" ; then
49633 COND_TOOLKIT_MGL=""
49634 fi
49635
49636 COND_TOOLKIT_MGL_USE_GUI_1="#"
49637 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49638 COND_TOOLKIT_MGL_USE_GUI_1=""
49639 fi
49640
49641 COND_TOOLKIT_MOTIF="#"
49642 if test "x$TOOLKIT" = "xMOTIF" ; then
49643 COND_TOOLKIT_MOTIF=""
49644 fi
49645
49646 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49647 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49648 COND_TOOLKIT_MOTIF_USE_GUI_1=""
49649 fi
49650
49651 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49652 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49653 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49654 fi
49655
49656 COND_TOOLKIT_MSW="#"
49657 if test "x$TOOLKIT" = "xMSW" ; then
49658 COND_TOOLKIT_MSW=""
49659 fi
49660
49661 COND_TOOLKIT_MSW_USE_GUI_1="#"
49662 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49663 COND_TOOLKIT_MSW_USE_GUI_1=""
49664 fi
49665
49666 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49667 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49668 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49669 fi
49670
0ee4059d
DE
49671 COND_TOOLKIT_MSW_WXUNIV_0="#"
49672 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49673 COND_TOOLKIT_MSW_WXUNIV_0=""
49674 fi
49675
a848cd7e
SC
49676 COND_TOOLKIT_PM="#"
49677 if test "x$TOOLKIT" = "xPM" ; then
49678 COND_TOOLKIT_PM=""
49679 fi
49680
49681 COND_TOOLKIT_PM_USE_GUI_1="#"
49682 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49683 COND_TOOLKIT_PM_USE_GUI_1=""
49684 fi
49685
49686 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49687 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49688 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49689 fi
49690
3fd9c298
DE
49691 COND_TOOLKIT_WINCE="#"
49692 if test "x$TOOLKIT" = "xWINCE" ; then
49693 COND_TOOLKIT_WINCE=""
49694 fi
49695
49696 COND_TOOLKIT_WINCE_USE_GUI_1="#"
49697 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49698 COND_TOOLKIT_WINCE_USE_GUI_1=""
49699 fi
49700
49701 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49702 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49703 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49704 fi
49705
0ee4059d
DE
49706 COND_TOOLKIT_WINCE_WXUNIV_0="#"
49707 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49708 COND_TOOLKIT_WINCE_WXUNIV_0=""
49709 fi
49710
a848cd7e
SC
49711 COND_TOOLKIT_X11="#"
49712 if test "x$TOOLKIT" = "xX11" ; then
49713 COND_TOOLKIT_X11=""
49714 fi
49715
49716 COND_TOOLKIT_X11_USE_GUI_1="#"
49717 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49718 COND_TOOLKIT_X11_USE_GUI_1=""
49719 fi
49720
49721 COND_UNICODE_1="#"
49722 if test "x$UNICODE" = "x1" ; then
49723 COND_UNICODE_1=""
49724 fi
49725
49726 COND_USE_EXCEPTIONS_0="#"
49727 if test "x$USE_EXCEPTIONS" = "x0" ; then
49728 COND_USE_EXCEPTIONS_0=""
49729 fi
49730
49731 COND_USE_EXCEPTIONS_1="#"
49732 if test "x$USE_EXCEPTIONS" = "x1" ; then
49733 COND_USE_EXCEPTIONS_1=""
49734 fi
49735
49736 COND_USE_GUI_0="#"
49737 if test "x$USE_GUI" = "x0" ; then
49738 COND_USE_GUI_0=""
49739 fi
49740
49741 COND_USE_GUI_1="#"
49742 if test "x$USE_GUI" = "x1" ; then
49743 COND_USE_GUI_1=""
49744 fi
49745
49746 COND_USE_GUI_1_WXUNIV_0="#"
49747 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49748 COND_USE_GUI_1_WXUNIV_0=""
49749 fi
49750
49751 COND_USE_GUI_1_WXUNIV_1="#"
49752 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49753 COND_USE_GUI_1_WXUNIV_1=""
49754 fi
49755
49756 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49757 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49758 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49759 fi
49760
49761 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49762 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49763 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49764 fi
49765
49766 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49767 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49768 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49769 fi
49770
083508af
MW
49771 COND_USE_ODBC_1="#"
49772 if test "x$USE_ODBC" = "x1" ; then
49773 COND_USE_ODBC_1=""
49774 fi
49775
49776 COND_USE_OPENGL_1="#"
49777 if test "x$USE_OPENGL" = "x1" ; then
49778 COND_USE_OPENGL_1=""
49779 fi
49780
f10e38c4
VZ
49781 COND_USE_PCH_1="#"
49782 if test "x$USE_PCH" = "x1" ; then
49783 COND_USE_PCH_1=""
49784 fi
49785
a848cd7e
SC
49786 COND_USE_PLUGINS_0="#"
49787 if test "x$USE_PLUGINS" = "x0" ; then
49788 COND_USE_PLUGINS_0=""
49789 fi
49790
0b78747f
MW
49791 COND_USE_RTTI_0="#"
49792 if test "x$USE_RTTI" = "x0" ; then
49793 COND_USE_RTTI_0=""
49794 fi
49795
49796 COND_USE_RTTI_1="#"
49797 if test "x$USE_RTTI" = "x1" ; then
49798 COND_USE_RTTI_1=""
49799 fi
49800
a848cd7e
SC
49801 COND_USE_SOSYMLINKS_1="#"
49802 if test "x$USE_SOSYMLINKS" = "x1" ; then
49803 COND_USE_SOSYMLINKS_1=""
49804 fi
49805
eb730a0c
JS
49806 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49807 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49808 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49809 fi
49810
a848cd7e
SC
49811 COND_USE_SOVERLINUX_1="#"
49812 if test "x$USE_SOVERLINUX" = "x1" ; then
49813 COND_USE_SOVERLINUX_1=""
49814 fi
49815
49816 COND_USE_SOVERSION_0="#"
49817 if test "x$USE_SOVERSION" = "x0" ; then
49818 COND_USE_SOVERSION_0=""
49819 fi
49820
49821 COND_USE_SOVERSOLARIS_1="#"
49822 if test "x$USE_SOVERSOLARIS" = "x1" ; then
49823 COND_USE_SOVERSOLARIS_1=""
49824 fi
49825
0b78747f
MW
49826 COND_USE_THREADS_0="#"
49827 if test "x$USE_THREADS" = "x0" ; then
49828 COND_USE_THREADS_0=""
49829 fi
49830
49831 COND_USE_THREADS_1="#"
49832 if test "x$USE_THREADS" = "x1" ; then
49833 COND_USE_THREADS_1=""
49834 fi
49835
a13a7f89
RL
49836 COND_USE_XRC_1="#"
49837 if test "x$USE_XRC" = "x1" ; then
49838 COND_USE_XRC_1=""
49839 fi
49840
eb730a0c
JS
49841 COND_WINDOWS_IMPLIB_1="#"
49842 if test "x$WINDOWS_IMPLIB" = "x1" ; then
49843 COND_WINDOWS_IMPLIB_1=""
49844 fi
49845
a848cd7e
SC
49846 COND_WITH_PLUGIN_SDL_1="#"
49847 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49848 COND_WITH_PLUGIN_SDL_1=""
49849 fi
49850
1e6eb025
VZ
49851 COND_WXUNIV_0="#"
49852 if test "x$WXUNIV" = "x0" ; then
49853 COND_WXUNIV_0=""
49854 fi
49855
a848cd7e
SC
49856 COND_WXUNIV_1="#"
49857 if test "x$WXUNIV" = "x1" ; then
49858 COND_WXUNIV_1=""
49859 fi
49860
49861 COND_WXUSE_EXPAT_BUILTIN="#"
49862 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49863 COND_WXUSE_EXPAT_BUILTIN=""
49864 fi
49865
49866 COND_WXUSE_LIBJPEG_BUILTIN="#"
49867 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49868 COND_WXUSE_LIBJPEG_BUILTIN=""
49869 fi
49870
49871 COND_WXUSE_LIBPNG_BUILTIN="#"
49872 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49873 COND_WXUSE_LIBPNG_BUILTIN=""
49874 fi
49875
49876 COND_WXUSE_LIBTIFF_BUILTIN="#"
49877 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49878 COND_WXUSE_LIBTIFF_BUILTIN=""
49879 fi
49880
49881 COND_WXUSE_ODBC_BUILTIN="#"
49882 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
49883 COND_WXUSE_ODBC_BUILTIN=""
49884 fi
49885
49886 COND_WXUSE_REGEX_BUILTIN="#"
49887 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49888 COND_WXUSE_REGEX_BUILTIN=""
49889 fi
49890
49891 COND_WXUSE_ZLIB_BUILTIN="#"
49892 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49893 COND_WXUSE_ZLIB_BUILTIN=""
49894 fi
49895
49896
49897
810b94f0
MW
49898 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49899 { { 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
49900echo "$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;}
49901 { (exit 1); exit 1; }; }
49902 fi
49903
2057db16
VS
49904 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49905 { { 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
49906echo "$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;}
49907 { (exit 1); exit 1; }; }
49908 fi
49909
a848cd7e 49910
7afc46ab
KO
49911
49912if test "$wxUSE_MAC" = 1 ; then
95768535 49913 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
49914 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49915 mv temp bk-deps
49916 chmod +x bk-deps
49917 fi
49918fi
49919
ceec2216
RL
49920if test "$wxUSE_SHARED" = "yes"; then
49921
49922 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
49923 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
49924
5b674b9d
DE
49925 case "${host}" in
49926 *-pc-os2_emx | *-pc-os2-emx )
49927 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49928 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49929 cp -p ${srcdir}/src/os2/dllnames.sh .
49930 cp -p ${srcdir}/src/os2/dllar.sh .
49931 ;;
49932 esac
ceec2216
RL
49933else
49934
49935 EXE_LINKER="$CXX -o"
49936
49937fi
69120ee4
VZ
49938if test "$wxUSE_OMF" = "yes"; then
49939 case "${host}" in
49940 *-pc-os2_emx | *-pc-os2-emx )
49941 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49942 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49943 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49944 ;;
49945 esac
49946fi
a848cd7e 49947
c08ebc62 49948if test $GCC_PCH = 1 ; then
254e8e29 49949 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 49950fi
a848cd7e 49951
5ff751d6 49952WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
49953
49954SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49955
49956
49957
49958
49959
49960
49961
49962
49963
49964
49965
49966
49967
49968
49969
49970
49971
49972
49973
49974
49975
49976
49977
49978
49979
49980
49981
49982
49983
49984
49985
49986
49987
49988
49989
49990
49991
49992
49993
49994
49995
49996
a848cd7e
SC
49997
49998
49999
50000
50001
50002
50003
50004
50005
50006
50007
50008
a848cd7e
SC
50009
50010
ddd14b14 50011
370d2fd7 50012
8ced02f6 50013
a848cd7e
SC
50014
50015
50016echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50017echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 50018set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
50019if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
50020 echo $ECHO_N "(cached) $ECHO_C" >&6
50021else
50022 cat >conftest.make <<\_ACEOF
50023all:
50024 @echo 'ac_maketemp="$(MAKE)"'
50025_ACEOF
50026# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50027eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
50028if test -n "$ac_maketemp"; then
50029 eval ac_cv_prog_make_${ac_make}_set=yes
50030else
50031 eval ac_cv_prog_make_${ac_make}_set=no
50032fi
50033rm -f conftest.make
50034fi
50035if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
50036 echo "$as_me:$LINENO: result: yes" >&5
50037echo "${ECHO_T}yes" >&6
50038 SET_MAKE=
50039else
50040 echo "$as_me:$LINENO: result: no" >&5
50041echo "${ECHO_T}no" >&6
50042 SET_MAKE="MAKE=${MAKE-make}"
50043fi
50044
50045
a848cd7e 50046
ceec2216
RL
50047 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50048
a848cd7e 50049
5c60e845
MW
50050if test "$USE_WIN32" = 1; then
50051 ac_config_commands="$ac_config_commands
50052 rcdefs.h
50053 "
50054
50055fi
50056
ceec2216 50057 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 50058
a848cd7e 50059
ceec2216 50060 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 50061
ceec2216
RL
50062
50063 ac_config_files="$ac_config_files version-script Makefile"
50064
50065
5c60e845 50066 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
50067
50068
9103d280 50069
1c14217d 50070if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
50071if test "$wxUSE_GUI" = "yes"; then
50072 SUBDIRS="samples demos utils contrib"
50073else SUBDIRS="samples utils"
50074fi
50075
50076
50077
50078# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
50079if test "${with_cppunit_prefix+set}" = set; then
50080 withval="$with_cppunit_prefix"
50081 cppunit_config_prefix="$withval"
50082else
50083 cppunit_config_prefix=""
50084fi;
50085
50086# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
50087if test "${with_cppunit_exec_prefix+set}" = set; then
50088 withval="$with_cppunit_exec_prefix"
50089 cppunit_config_exec_prefix="$withval"
50090else
50091 cppunit_config_exec_prefix=""
50092fi;
50093
50094 if test x$cppunit_config_exec_prefix != x ; then
50095 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50096 if test x${CPPUNIT_CONFIG+set} != xset ; then
50097 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50098 fi
50099 fi
50100 if test x$cppunit_config_prefix != x ; then
50101 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50102 if test x${CPPUNIT_CONFIG+set} != xset ; then
50103 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50104 fi
50105 fi
50106
50107 # Extract the first word of "cppunit-config", so it can be a program name with args.
50108set dummy cppunit-config; ac_word=$2
50109echo "$as_me:$LINENO: checking for $ac_word" >&5
50110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50111if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50112 echo $ECHO_N "(cached) $ECHO_C" >&6
50113else
50114 case $CPPUNIT_CONFIG in
50115 [\\/]* | ?:[\\/]*)
50116 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50117 ;;
50118 *)
50119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50120for as_dir in $PATH
50121do
50122 IFS=$as_save_IFS
50123 test -z "$as_dir" && as_dir=.
50124 for ac_exec_ext in '' $ac_executable_extensions; do
50125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50126 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50128 break 2
50129 fi
50130done
50131done
50132
50133 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50134 ;;
50135esac
50136fi
50137CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50138
50139if test -n "$CPPUNIT_CONFIG"; then
50140 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50141echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
50142else
50143 echo "$as_me:$LINENO: result: no" >&5
50144echo "${ECHO_T}no" >&6
50145fi
50146
50147 cppunit_version_min=1.8.0
50148
50149 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50150echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
50151 no_cppunit=""
50152 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
50153 echo "$as_me:$LINENO: result: no" >&5
50154echo "${ECHO_T}no" >&6
a848cd7e
SC
50155 no_cppunit=yes
50156 else
50157 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50158 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50159 cppunit_version=`$CPPUNIT_CONFIG --version`
50160
50161 cppunit_major_version=`echo $cppunit_version | \
50162 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50163 cppunit_minor_version=`echo $cppunit_version | \
50164 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50165 cppunit_micro_version=`echo $cppunit_version | \
50166 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50167
50168 cppunit_major_min=`echo $cppunit_version_min | \
50169 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50170 cppunit_minor_min=`echo $cppunit_version_min | \
50171 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50172 cppunit_micro_min=`echo $cppunit_version_min | \
50173 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50174
50175 cppunit_version_proper=`expr \
50176 $cppunit_major_version \> $cppunit_major_min \| \
50177 $cppunit_major_version \= $cppunit_major_min \& \
50178 $cppunit_minor_version \> $cppunit_minor_min \| \
50179 $cppunit_major_version \= $cppunit_major_min \& \
50180 $cppunit_minor_version \= $cppunit_minor_min \& \
50181 $cppunit_micro_version \>= $cppunit_micro_min `
50182
50183 if test "$cppunit_version_proper" = "1" ; then
50184 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50185echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
50186 else
50187 echo "$as_me:$LINENO: result: no" >&5
50188echo "${ECHO_T}no" >&6
50189 no_cppunit=yes
50190 fi
50191 fi
50192
50193 if test "x$no_cppunit" = x ; then
c2218763 50194 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
50195 else
50196 CPPUNIT_CFLAGS=""
50197 CPPUNIT_LIBS=""
c2218763 50198 :
a848cd7e
SC
50199 fi
50200
50201
50202
50203
50204
50205for subdir in `echo $SUBDIRS`; do
50206 if test -d ${srcdir}/${subdir} ; then
50207 if test "$wxUSE_GUI" = "yes"; then
50208 if test ${subdir} = "samples"; then
50209 makefiles="samples/Makefile.in $makefiles"
50210 for sample in `echo $SAMPLES_SUBDIRS`; do
50211 if test -d $srcdir/samples/$sample; then
50212 makefiles="samples/$sample/Makefile.in $makefiles"
50213 fi
50214 done
9c112555
MW
50215 else
50216 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
50217 eval "disabled=\$$disabled_var"
50218 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50219 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
50220 fi
50221 else if test ${subdir} = "samples"; then
50222 makefiles="samples/Makefile.in samples/console/Makefile.in"
50223 elif test ${subdir} = "utils"; then
6537ccf8
VS
50224 makefiles=""
50225 for util in HelpGen tex2rtf ; do
50226 if test -d $srcdir/utils/$util ; then
50227 makefiles="utils/$util/Makefile.in \
50228 utils/$util/src/Makefile.in \
50229 $makefiles"
50230 fi
50231 done
a848cd7e
SC
50232 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50233 fi
50234 fi
50235
50236 for mkin in $makefiles ; do
50237 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50238 ac_config_files="$ac_config_files $mk"
50239
50240 done
50241 fi
50242done
1c14217d 50243fi
a848cd7e
SC
50244cat >confcache <<\_ACEOF
50245# This file is a shell script that caches the results of configure
50246# tests run on this system so they can be shared between configure
50247# scripts and configure runs, see configure's option --config-cache.
50248# It is not useful on other systems. If it contains results you don't
50249# want to keep, you may remove or edit it.
50250#
50251# config.status only pays attention to the cache file if you give it
50252# the --recheck option to rerun configure.
50253#
50254# `ac_cv_env_foo' variables (set or unset) will be overridden when
50255# loading this file, other *unset* `ac_cv_foo' will be assigned the
50256# following values.
50257
50258_ACEOF
50259
50260# The following way of writing the cache mishandles newlines in values,
50261# but we know of no workaround that is simple, portable, and efficient.
50262# So, don't put newlines in cache variables' values.
50263# Ultrix sh set writes to stderr and can't be redirected directly,
50264# and sets the high bit in the cache file unless we assign to the vars.
50265{
50266 (set) 2>&1 |
50267 case `(ac_space=' '; set | grep ac_space) 2>&1` in
50268 *ac_space=\ *)
50269 # `set' does not quote correctly, so add quotes (double-quote
50270 # substitution turns \\\\ into \\, and sed turns \\ into \).
50271 sed -n \
ac1cb8d3
VS
50272 "s/'/'\\\\''/g;
50273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
50274 ;;
50275 *)
50276 # `set' quotes correctly as required by POSIX, so do not add quotes.
50277 sed -n \
ac1cb8d3 50278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
50279 ;;
50280 esac;
50281} |
50282 sed '
50283 t clear
50284 : clear
50285 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50286 t end
50287 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50288 : end' >>confcache
50289if diff $cache_file confcache >/dev/null 2>&1; then :; else
50290 if test -w $cache_file; then
50291 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
50292 cat confcache >$cache_file
50293 else
50294 echo "not updating unwritable cache $cache_file"
50295 fi
50296fi
50297rm -f confcache
50298
50299test "x$prefix" = xNONE && prefix=$ac_default_prefix
50300# Let make expand exec_prefix.
50301test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50302
50303# VPATH may cause trouble with some makes, so we remove $(srcdir),
50304# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50305# trailing colons and then remove the whole line if VPATH becomes empty
50306# (actually we leave an empty line to preserve line numbers).
50307if test "x$srcdir" = x.; then
ac1cb8d3 50308 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
50309s/:*\$(srcdir):*/:/;
50310s/:*\${srcdir}:*/:/;
50311s/:*@srcdir@:*/:/;
ac1cb8d3 50312s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 50313s/:*$//;
ac1cb8d3 50314s/^[^=]*=[ ]*$//;
a848cd7e
SC
50315}'
50316fi
50317
50318DEFS=-DHAVE_CONFIG_H
50319
50320ac_libobjs=
50321ac_ltlibobjs=
50322for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50323 # 1. Remove the extension, and $U if already installed.
50324 ac_i=`echo "$ac_i" |
ac1cb8d3 50325 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
50326 # 2. Add them.
50327 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
50328 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
50329done
50330LIBOBJS=$ac_libobjs
50331
50332LTLIBOBJS=$ac_ltlibobjs
50333
50334
50335
50336: ${CONFIG_STATUS=./config.status}
50337ac_clean_files_save=$ac_clean_files
50338ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50339{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50340echo "$as_me: creating $CONFIG_STATUS" >&6;}
50341cat >$CONFIG_STATUS <<_ACEOF
50342#! $SHELL
50343# Generated by $as_me.
50344# Run this file to recreate the current configuration.
50345# Compiler output produced by configure, useful for debugging
50346# configure, is in config.log if it exists.
50347
50348debug=false
50349ac_cs_recheck=false
50350ac_cs_silent=false
50351SHELL=\${CONFIG_SHELL-$SHELL}
50352_ACEOF
50353
50354cat >>$CONFIG_STATUS <<\_ACEOF
50355## --------------------- ##
50356## M4sh Initialization. ##
50357## --------------------- ##
50358
50359# Be Bourne compatible
50360if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50361 emulate sh
50362 NULLCMD=:
50363 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50364 # is contrary to our usage. Disable this feature.
50365 alias -g '${1+"$@"}'='"$@"'
50366elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50367 set -o posix
50368fi
ac1cb8d3 50369DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
50370
50371# Support unset when possible.
ac1cb8d3 50372if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
50373 as_unset=unset
50374else
50375 as_unset=false
50376fi
50377
50378
50379# Work around bugs in pre-3.0 UWIN ksh.
50380$as_unset ENV MAIL MAILPATH
50381PS1='$ '
50382PS2='> '
50383PS4='+ '
50384
50385# NLS nuisances.
50386for as_var in \
50387 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50388 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50389 LC_TELEPHONE LC_TIME
50390do
ac1cb8d3 50391 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
50392 eval $as_var=C; export $as_var
50393 else
50394 $as_unset $as_var
50395 fi
50396done
50397
50398# Required to use basename.
50399if expr a : '\(a\)' >/dev/null 2>&1; then
50400 as_expr=expr
50401else
50402 as_expr=false
50403fi
50404
50405if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50406 as_basename=basename
50407else
50408 as_basename=false
50409fi
50410
50411
50412# Name of the executable.
50413as_me=`$as_basename "$0" ||
50414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50415 X"$0" : 'X\(//\)$' \| \
50416 X"$0" : 'X\(/\)$' \| \
50417 . : '\(.\)' 2>/dev/null ||
50418echo X/"$0" |
50419 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50420 /^X\/\(\/\/\)$/{ s//\1/; q; }
50421 /^X\/\(\/\).*/{ s//\1/; q; }
50422 s/.*/./; q'`
50423
50424
50425# PATH needs CR, and LINENO needs CR and PATH.
50426# Avoid depending upon Character Ranges.
50427as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50428as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50429as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50430as_cr_digits='0123456789'
50431as_cr_alnum=$as_cr_Letters$as_cr_digits
50432
50433# The user is always right.
50434if test "${PATH_SEPARATOR+set}" != set; then
50435 echo "#! /bin/sh" >conf$$.sh
50436 echo "exit 0" >>conf$$.sh
50437 chmod +x conf$$.sh
50438 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50439 PATH_SEPARATOR=';'
50440 else
50441 PATH_SEPARATOR=:
50442 fi
50443 rm -f conf$$.sh
50444fi
50445
50446
50447 as_lineno_1=$LINENO
50448 as_lineno_2=$LINENO
50449 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50450 test "x$as_lineno_1" != "x$as_lineno_2" &&
50451 test "x$as_lineno_3" = "x$as_lineno_2" || {
50452 # Find who we are. Look in the path if we contain no path at all
50453 # relative or not.
50454 case $0 in
50455 *[\\/]* ) as_myself=$0 ;;
50456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50457for as_dir in $PATH
50458do
50459 IFS=$as_save_IFS
50460 test -z "$as_dir" && as_dir=.
50461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50462done
50463
50464 ;;
50465 esac
50466 # We did not find ourselves, most probably we were run as `sh COMMAND'
50467 # in which case we are not to be found in the path.
50468 if test "x$as_myself" = x; then
50469 as_myself=$0
50470 fi
50471 if test ! -f "$as_myself"; then
50472 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50473echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50474 { (exit 1); exit 1; }; }
50475 fi
50476 case $CONFIG_SHELL in
50477 '')
50478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50479for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50480do
50481 IFS=$as_save_IFS
50482 test -z "$as_dir" && as_dir=.
50483 for as_base in sh bash ksh sh5; do
50484 case $as_dir in
50485 /*)
50486 if ("$as_dir/$as_base" -c '
50487 as_lineno_1=$LINENO
50488 as_lineno_2=$LINENO
50489 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50490 test "x$as_lineno_1" != "x$as_lineno_2" &&
50491 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
50492 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50493 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50494 CONFIG_SHELL=$as_dir/$as_base
50495 export CONFIG_SHELL
50496 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50497 fi;;
50498 esac
50499 done
50500done
50501;;
50502 esac
50503
50504 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50505 # uniformly replaced by the line number. The first 'sed' inserts a
50506 # line-number line before each line; the second 'sed' does the real
50507 # work. The second script uses 'N' to pair each line-number line
50508 # with the numbered line, and appends trailing '-' during
50509 # substitution so that $LINENO is not a special case at line end.
50510 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50511 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
50512 sed '=' <$as_myself |
50513 sed '
50514 N
50515 s,$,-,
50516 : loop
50517 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50518 t loop
50519 s,-$,,
50520 s,^['$as_cr_digits']*\n,,
50521 ' >$as_me.lineno &&
50522 chmod +x $as_me.lineno ||
50523 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50524echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50525 { (exit 1); exit 1; }; }
50526
50527 # Don't try to exec as it changes $[0], causing all sort of problems
50528 # (the dirname of $[0] is not the place where we might find the
50529 # original and so on. Autoconf is especially sensible to this).
50530 . ./$as_me.lineno
50531 # Exit status is that of the last command.
50532 exit
50533}
50534
50535
50536case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50537 *c*,-n*) ECHO_N= ECHO_C='
50538' ECHO_T=' ' ;;
50539 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50540 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
50541esac
50542
50543if expr a : '\(a\)' >/dev/null 2>&1; then
50544 as_expr=expr
50545else
50546 as_expr=false
50547fi
50548
50549rm -f conf$$ conf$$.exe conf$$.file
50550echo >conf$$.file
50551if ln -s conf$$.file conf$$ 2>/dev/null; then
50552 # We could just check for DJGPP; but this test a) works b) is more generic
50553 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50554 if test -f conf$$.exe; then
50555 # Don't use ln at all; we don't have any links
50556 as_ln_s='cp -p'
50557 else
50558 as_ln_s='ln -s'
50559 fi
50560elif ln conf$$.file conf$$ 2>/dev/null; then
50561 as_ln_s=ln
50562else
50563 as_ln_s='cp -p'
50564fi
50565rm -f conf$$ conf$$.exe conf$$.file
50566
50567if mkdir -p . 2>/dev/null; then
50568 as_mkdir_p=:
50569else
ac1cb8d3 50570 test -d ./-p && rmdir ./-p
a848cd7e
SC
50571 as_mkdir_p=false
50572fi
50573
50574as_executable_p="test -f"
50575
50576# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 50577as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50578
50579# Sed expression to map a string onto a valid variable name.
ac1cb8d3 50580as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50581
50582
50583# IFS
50584# We need space, tab and new line, in precisely that order.
50585as_nl='
50586'
50587IFS=" $as_nl"
50588
50589# CDPATH.
50590$as_unset CDPATH
50591
50592exec 6>&1
50593
50594# Open the log real soon, to keep \$[0] and so on meaningful, and to
50595# report actual input values of CONFIG_FILES etc. instead of their
50596# values after options handling. Logging --version etc. is OK.
50597exec 5>>config.log
50598{
50599 echo
50600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50601## Running $as_me. ##
50602_ASBOX
50603} >&5
50604cat >&5 <<_CSEOF
50605
f1e3914f 50606This file was extended by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 50607generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
50608
50609 CONFIG_FILES = $CONFIG_FILES
50610 CONFIG_HEADERS = $CONFIG_HEADERS
50611 CONFIG_LINKS = $CONFIG_LINKS
50612 CONFIG_COMMANDS = $CONFIG_COMMANDS
50613 $ $0 $@
50614
50615_CSEOF
50616echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50617echo >&5
50618_ACEOF
50619
50620# Files that config.status was made for.
50621if test -n "$ac_config_files"; then
50622 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50623fi
50624
50625if test -n "$ac_config_headers"; then
50626 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50627fi
50628
50629if test -n "$ac_config_links"; then
50630 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50631fi
50632
50633if test -n "$ac_config_commands"; then
50634 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50635fi
50636
50637cat >>$CONFIG_STATUS <<\_ACEOF
50638
50639ac_cs_usage="\
50640\`$as_me' instantiates files from templates according to the
50641current configuration.
50642
50643Usage: $0 [OPTIONS] [FILE]...
50644
50645 -h, --help print this help, then exit
50646 -V, --version print version number, then exit
50647 -q, --quiet do not print progress messages
50648 -d, --debug don't remove temporary files
50649 --recheck update $as_me by reconfiguring in the same conditions
50650 --file=FILE[:TEMPLATE]
ac1cb8d3 50651 instantiate the configuration file FILE
a848cd7e 50652 --header=FILE[:TEMPLATE]
ac1cb8d3 50653 instantiate the configuration header FILE
a848cd7e
SC
50654
50655Configuration files:
50656$config_files
50657
50658Configuration headers:
50659$config_headers
50660
50661Configuration commands:
50662$config_commands
50663
50664Report bugs to <bug-autoconf@gnu.org>."
50665_ACEOF
50666
50667cat >>$CONFIG_STATUS <<_ACEOF
50668ac_cs_version="\\
f1e3914f 50669wxWidgets config.status 2.7.1
ac1cb8d3 50670configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
50671 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50672
ac1cb8d3 50673Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
50674This config.status script is free software; the Free Software Foundation
50675gives unlimited permission to copy, distribute and modify it."
50676srcdir=$srcdir
50677INSTALL="$INSTALL"
50678_ACEOF
50679
50680cat >>$CONFIG_STATUS <<\_ACEOF
50681# If no file are specified by the user, then we need to provide default
50682# value. By we need to know if files were specified by the user.
50683ac_need_defaults=:
50684while test $# != 0
50685do
50686 case $1 in
50687 --*=*)
50688 ac_option=`expr "x$1" : 'x\([^=]*\)='`
50689 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50690 ac_shift=:
50691 ;;
50692 -*)
50693 ac_option=$1
50694 ac_optarg=$2
50695 ac_shift=shift
50696 ;;
50697 *) # This is not an option, so the user has probably given explicit
50698 # arguments.
50699 ac_option=$1
50700 ac_need_defaults=false;;
50701 esac
50702
50703 case $ac_option in
50704 # Handling of the options.
50705_ACEOF
50706cat >>$CONFIG_STATUS <<\_ACEOF
50707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50708 ac_cs_recheck=: ;;
50709 --version | --vers* | -V )
50710 echo "$ac_cs_version"; exit 0 ;;
50711 --he | --h)
50712 # Conflict between --help and --header
50713 { { echo "$as_me:$LINENO: error: ambiguous option: $1
50714Try \`$0 --help' for more information." >&5
50715echo "$as_me: error: ambiguous option: $1
50716Try \`$0 --help' for more information." >&2;}
50717 { (exit 1); exit 1; }; };;
50718 --help | --hel | -h )
50719 echo "$ac_cs_usage"; exit 0 ;;
50720 --debug | --d* | -d )
50721 debug=: ;;
50722 --file | --fil | --fi | --f )
50723 $ac_shift
50724 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50725 ac_need_defaults=false;;
50726 --header | --heade | --head | --hea )
50727 $ac_shift
50728 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50729 ac_need_defaults=false;;
50730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50731 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50732 ac_cs_silent=: ;;
50733
50734 # This is an error.
50735 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
50736Try \`$0 --help' for more information." >&5
50737echo "$as_me: error: unrecognized option: $1
50738Try \`$0 --help' for more information." >&2;}
50739 { (exit 1); exit 1; }; } ;;
50740
50741 *) ac_config_targets="$ac_config_targets $1" ;;
50742
50743 esac
50744 shift
50745done
50746
50747ac_configure_extra_args=
50748
50749if $ac_cs_silent; then
50750 exec 6>/dev/null
50751 ac_configure_extra_args="$ac_configure_extra_args --silent"
50752fi
50753
50754_ACEOF
50755cat >>$CONFIG_STATUS <<_ACEOF
50756if \$ac_cs_recheck; then
50757 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50758 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50759fi
50760
50761_ACEOF
50762
50763cat >>$CONFIG_STATUS <<_ACEOF
50764#
50765# INIT-COMMANDS section.
50766#
50767
5c60e845
MW
50768
50769 CPP="$CPP"
50770 infile="$srcdir/include/wx/msw/genrcdefs.h"
50771 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50772
50773
ceec2216
RL
50774 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50775 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50776 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50777 LN_S="${LN_S}"
a848cd7e
SC
50778
50779
50780_ACEOF
50781
50782
50783
50784cat >>$CONFIG_STATUS <<\_ACEOF
50785for ac_config_target in $ac_config_targets
50786do
50787 case "$ac_config_target" in
50788 # Handling of arguments.
ceec2216
RL
50789 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50790 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
50791 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
50792 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50793 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 50794 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
50795 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50796 "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
50797 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50798echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50799 { (exit 1); exit 1; }; };;
50800 esac
50801done
50802
50803# If the user did not use the arguments to specify the items to instantiate,
50804# then the envvar interface is used. Set only those that are not.
50805# We use the long form for the default assignment because of an extremely
50806# bizarre bug on SunOS 4.1.3.
50807if $ac_need_defaults; then
50808 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50809 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50810 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50811fi
50812
50813# Have a temporary directory for convenience. Make it in the build tree
50814# simply because there is no reason to put it here, and in addition,
50815# creating and moving files from /tmp can sometimes cause problems.
50816# Create a temporary directory, and hook for its removal unless debugging.
50817$debug ||
50818{
50819 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50820 trap '{ (exit 1); exit 1; }' 1 2 13 15
50821}
50822
50823# Create a (secure) tmp directory for tmp files.
50824
50825{
50826 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50827 test -n "$tmp" && test -d "$tmp"
50828} ||
50829{
50830 tmp=./confstat$$-$RANDOM
50831 (umask 077 && mkdir $tmp)
50832} ||
50833{
50834 echo "$me: cannot create a temporary directory in ." >&2
50835 { (exit 1); exit 1; }
50836}
50837
50838_ACEOF
50839
50840cat >>$CONFIG_STATUS <<_ACEOF
50841
50842#
50843# CONFIG_FILES section.
50844#
50845
50846# No need to generate the scripts if there are no CONFIG_FILES.
50847# This happens for instance when ./config.status config.h
50848if test -n "\$CONFIG_FILES"; then
50849 # Protect against being on the right side of a sed subst in config.status.
50850 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50851 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50852s,@SHELL@,$SHELL,;t t
50853s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50854s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50855s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50856s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50857s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50858s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50859s,@exec_prefix@,$exec_prefix,;t t
50860s,@prefix@,$prefix,;t t
50861s,@program_transform_name@,$program_transform_name,;t t
50862s,@bindir@,$bindir,;t t
50863s,@sbindir@,$sbindir,;t t
50864s,@libexecdir@,$libexecdir,;t t
50865s,@datadir@,$datadir,;t t
50866s,@sysconfdir@,$sysconfdir,;t t
50867s,@sharedstatedir@,$sharedstatedir,;t t
50868s,@localstatedir@,$localstatedir,;t t
50869s,@libdir@,$libdir,;t t
50870s,@includedir@,$includedir,;t t
50871s,@oldincludedir@,$oldincludedir,;t t
50872s,@infodir@,$infodir,;t t
50873s,@mandir@,$mandir,;t t
50874s,@build_alias@,$build_alias,;t t
50875s,@host_alias@,$host_alias,;t t
50876s,@target_alias@,$target_alias,;t t
50877s,@DEFS@,$DEFS,;t t
50878s,@ECHO_C@,$ECHO_C,;t t
50879s,@ECHO_N@,$ECHO_N,;t t
50880s,@ECHO_T@,$ECHO_T,;t t
50881s,@LIBS@,$LIBS,;t t
50882s,@build@,$build,;t t
50883s,@build_cpu@,$build_cpu,;t t
50884s,@build_vendor@,$build_vendor,;t t
50885s,@build_os@,$build_os,;t t
50886s,@host@,$host,;t t
50887s,@host_cpu@,$host_cpu,;t t
50888s,@host_vendor@,$host_vendor,;t t
50889s,@host_os@,$host_os,;t t
50890s,@target@,$target,;t t
50891s,@target_cpu@,$target_cpu,;t t
50892s,@target_vendor@,$target_vendor,;t t
50893s,@target_os@,$target_os,;t t
50894s,@CC@,$CC,;t t
50895s,@CFLAGS@,$CFLAGS,;t t
50896s,@LDFLAGS@,$LDFLAGS,;t t
50897s,@CPPFLAGS@,$CPPFLAGS,;t t
50898s,@ac_ct_CC@,$ac_ct_CC,;t t
50899s,@EXEEXT@,$EXEEXT,;t t
50900s,@OBJEXT@,$OBJEXT,;t t
50901s,@CPP@,$CPP,;t t
50902s,@EGREP@,$EGREP,;t t
50903s,@CXX@,$CXX,;t t
50904s,@CXXFLAGS@,$CXXFLAGS,;t t
50905s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50906s,@RANLIB@,$RANLIB,;t t
50907s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50908s,@AR@,$AR,;t t
8c80d384 50909s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
50910s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50911s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50912s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50913s,@STRIP@,$STRIP,;t t
8c80d384 50914s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
50915s,@WINDRES@,$WINDRES,;t t
50916s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
50917s,@DLLTOOL@,$DLLTOOL,;t t
50918s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
50919s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
50920s,@LN_S@,$LN_S,;t t
50921s,@CXXCPP@,$CXXCPP,;t t
50922s,@subdirs@,$subdirs,;t t
50923s,@PKG_CONFIG@,$PKG_CONFIG,;t t
50924s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
50925s,@GTK_LIBS@,$GTK_LIBS,;t t
50926s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
50927s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
50928s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
50929s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
50930s,@X_CFLAGS@,$X_CFLAGS,;t t
50931s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
50932s,@X_LIBS@,$X_LIBS,;t t
50933s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
50934s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
50935s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
50936s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
50937s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
50938s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
50939s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 50940s,@REZ@,$REZ,;t t
a848cd7e
SC
50941s,@DEREZ@,$DEREZ,;t t
50942s,@SETFILE@,$SETFILE,;t t
50943s,@LIBICONV@,$LIBICONV,;t t
50944s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
50945s,@SDL_CONFIG@,$SDL_CONFIG,;t t
50946s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
50947s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
50948s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
50949s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
50950s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
50951s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
50952s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
50953s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
50954s,@GST_CFLAGS@,$GST_CFLAGS,;t t
50955s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
50956s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
50957s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
50958s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
50959s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
50960s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
50961s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
50962s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
50963s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
50964s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
50965s,@VENDOR@,$VENDOR,;t t
50966s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
50967s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
50968s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
50969s,@WXUNIV@,$WXUNIV,;t t
50970s,@MONOLITHIC@,$MONOLITHIC,;t t
50971s,@USE_PLUGINS@,$USE_PLUGINS,;t t
50972s,@EXTRALIBS@,$EXTRALIBS,;t t
50973s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
50974s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
50975s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
50976s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
50977s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
50978s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
50979s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 50980s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 50981s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 50982s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
50983s,@UNICODE@,$UNICODE,;t t
50984s,@BUILD@,$BUILD,;t t
50985s,@DEBUG_INFO@,$DEBUG_INFO,;t t
50986s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
50987s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
50988s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
50989s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
50990s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
50991s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
50992s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
50993s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
50994s,@SET_MAKE@,$SET_MAKE,;t t
50995s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
50996s,@NM@,$NM,;t t
50997s,@ac_ct_NM@,$ac_ct_NM,;t t
50998s,@INSTALL_DIR@,$INSTALL_DIR,;t t
50999s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
51000s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
51001s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
51002s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
51003s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 51004s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
51005s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
51006s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 51007s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
51008s,@SO_SUFFIX@,$SO_SUFFIX,;t t
51009s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
51010s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
51011s,@LIBPREFIX@,$LIBPREFIX,;t t
51012s,@LIBEXT@,$LIBEXT,;t t
51013s,@DLLPREFIX@,$DLLPREFIX,;t t
51014s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 51015s,@dlldir@,$dlldir,;t t
a848cd7e
SC
51016s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
51017s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
51018s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
51019s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
51020s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
51021s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 51022s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
51023s,@USE_SOVERSION@,$USE_SOVERSION,;t t
51024s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
51025s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 51026s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
51027s,@USE_MACVERSION@,$USE_MACVERSION,;t t
51028s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
51029s,@SONAME_FLAG@,$SONAME_FLAG,;t t
51030s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
51031s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 51032s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
51033s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
51034s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
51035s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
51036s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
51037s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
51038s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
51039s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
51040s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
51041s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
51042s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
51043s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
51044s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
51045s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
51046s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
51047s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 51048s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
51049s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
51050s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 51051s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 51052s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 51053s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
f10e38c4 51054s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t
a848cd7e 51055s,@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 51056s,@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 51057s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 51058s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 51059s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 51060s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 51061s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 51062s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 51063s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
f10e38c4 51064s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t
a848cd7e 51065s,@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 51066s,@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 51067s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 51068s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 51069s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 51070s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
51071s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
51072s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
51073s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
51074s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
51075s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
51076s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 51077s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
51078s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
51079s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 51080s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
51081s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
51082s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
51083s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 51084s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 51085s,@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
51086s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
51087s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
51088s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
51089s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 51090s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 51091s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 51092s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 51093s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
51094s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
51095s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
51096s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
51097s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
51098s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
51099s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
51100s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
51101s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
51102s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
51103s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
51104s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
51105s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
51106s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51107s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51108s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 51109s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
51110s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
51111s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
51112s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
51113s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
51114s,@COND_SHARED_1@,$COND_SHARED_1,;t t
51115s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 51116s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 51117s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 51118s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 51119s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 51120s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
51121s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
51122s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 51123s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
51124s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
51125s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
51126s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
51127s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
51128s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
51129s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 51130s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
51131s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
51132s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
51133s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
51134s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
51135s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
51136s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
51137s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
51138s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
51139s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
51140s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
51141s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51142s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
51143s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
51144s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
51145s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
51146s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
51147s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
51148s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51149s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
51150s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
51151s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
51152s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
51153s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
51154s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
51155s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
51156s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
51157s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
51158s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
51159s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51160s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51161s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
51162s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
51163s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 51164s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 51165s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
51166s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
51167s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 51168s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 51169s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
51170s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
51171s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
51172s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
51173s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
51174s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 51175s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 51176s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 51177s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 51178s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
51179s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
51180s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
51181s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
51182s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
51183s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
51184s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
51185s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
51186s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 51187s,@SHARED@,$SHARED,;t t
a848cd7e
SC
51188s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
51189s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
51190s,@USE_GUI@,$USE_GUI,;t t
51191s,@AFMINSTALL@,$AFMINSTALL,;t t
51192s,@WIN32INSTALL@,$WIN32INSTALL,;t t
51193s,@TOOLKIT@,$TOOLKIT,;t t
51194s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 51195s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 51196s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 51197s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
51198s,@WIDGET_SET@,$WIDGET_SET,;t t
51199s,@WX_RELEASE@,$WX_RELEASE,;t t
51200s,@WX_VERSION@,$WX_VERSION,;t t
51201s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
51202s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
51203s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
51204s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
51205s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
51206s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
51207s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
51208s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
51209s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 51210s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 51211s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 51212s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
51213s,@DISTDIR@,$DISTDIR,;t t
51214s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
51215s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
51216s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
51217s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
51218s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 51219s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
51220s,@RESFLAGS@,$RESFLAGS,;t t
51221s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
51222s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
51223s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
51224s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 51225s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 51226s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 51227s,@GCC@,$GCC,;t t
a848cd7e
SC
51228s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
51229s,@LIBOBJS@,$LIBOBJS,;t t
51230s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51231CEOF
51232
51233_ACEOF
51234
51235 cat >>$CONFIG_STATUS <<\_ACEOF
51236 # Split the substitutions into bite-sized pieces for seds with
51237 # small command number limits, like on Digital OSF/1 and HP-UX.
51238 ac_max_sed_lines=48
51239 ac_sed_frag=1 # Number of current file.
51240 ac_beg=1 # First line for current file.
51241 ac_end=$ac_max_sed_lines # Line after last line for current file.
51242 ac_more_lines=:
51243 ac_sed_cmds=
51244 while $ac_more_lines; do
51245 if test $ac_beg -gt 1; then
51246 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51247 else
51248 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51249 fi
51250 if test ! -s $tmp/subs.frag; then
51251 ac_more_lines=false
51252 else
51253 # The purpose of the label and of the branching condition is to
51254 # speed up the sed processing (if there are no `@' at all, there
51255 # is no need to browse any of the substitutions).
51256 # These are the two extra sed commands mentioned above.
51257 (echo ':t
51258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51259 if test -z "$ac_sed_cmds"; then
ac1cb8d3 51260 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 51261 else
ac1cb8d3 51262 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
51263 fi
51264 ac_sed_frag=`expr $ac_sed_frag + 1`
51265 ac_beg=$ac_end
51266 ac_end=`expr $ac_end + $ac_max_sed_lines`
51267 fi
51268 done
51269 if test -z "$ac_sed_cmds"; then
51270 ac_sed_cmds=cat
51271 fi
51272fi # test -n "$CONFIG_FILES"
51273
51274_ACEOF
51275cat >>$CONFIG_STATUS <<\_ACEOF
51276for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51277 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51278 case $ac_file in
51279 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51280 cat >$tmp/stdin
51281 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51282 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51283 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51284 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51285 * ) ac_file_in=$ac_file.in ;;
51286 esac
51287
51288 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51289 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51290$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51291 X"$ac_file" : 'X\(//\)[^/]' \| \
51292 X"$ac_file" : 'X\(//\)$' \| \
51293 X"$ac_file" : 'X\(/\)' \| \
51294 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51295echo X"$ac_file" |
51296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51298 /^X\(\/\/\)$/{ s//\1/; q; }
51299 /^X\(\/\).*/{ s//\1/; q; }
51300 s/.*/./; q'`
51301 { if $as_mkdir_p; then
51302 mkdir -p "$ac_dir"
51303 else
51304 as_dir="$ac_dir"
51305 as_dirs=
51306 while test ! -d "$as_dir"; do
51307 as_dirs="$as_dir $as_dirs"
51308 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51309$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51310 X"$as_dir" : 'X\(//\)[^/]' \| \
51311 X"$as_dir" : 'X\(//\)$' \| \
51312 X"$as_dir" : 'X\(/\)' \| \
51313 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51314echo X"$as_dir" |
51315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51317 /^X\(\/\/\)$/{ s//\1/; q; }
51318 /^X\(\/\).*/{ s//\1/; q; }
51319 s/.*/./; q'`
51320 done
51321 test ! -n "$as_dirs" || mkdir $as_dirs
51322 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51323echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51324 { (exit 1); exit 1; }; }; }
51325
51326 ac_builddir=.
51327
51328if test "$ac_dir" != .; then
51329 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51330 # A "../" for each directory in $ac_dir_suffix.
51331 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51332else
51333 ac_dir_suffix= ac_top_builddir=
51334fi
51335
51336case $srcdir in
51337 .) # No --srcdir option. We are building in place.
51338 ac_srcdir=.
51339 if test -z "$ac_top_builddir"; then
51340 ac_top_srcdir=.
51341 else
51342 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51343 fi ;;
51344 [\\/]* | ?:[\\/]* ) # Absolute path.
51345 ac_srcdir=$srcdir$ac_dir_suffix;
51346 ac_top_srcdir=$srcdir ;;
51347 *) # Relative path.
51348 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51349 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51350esac
ac1cb8d3
VS
51351
51352# Do not use `cd foo && pwd` to compute absolute paths, because
51353# the directories may not exist.
51354case `pwd` in
51355.) ac_abs_builddir="$ac_dir";;
51356*)
51357 case "$ac_dir" in
51358 .) ac_abs_builddir=`pwd`;;
51359 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51360 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51361 esac;;
51362esac
51363case $ac_abs_builddir in
51364.) ac_abs_top_builddir=${ac_top_builddir}.;;
51365*)
51366 case ${ac_top_builddir}. in
51367 .) ac_abs_top_builddir=$ac_abs_builddir;;
51368 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51369 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51370 esac;;
51371esac
51372case $ac_abs_builddir in
51373.) ac_abs_srcdir=$ac_srcdir;;
51374*)
51375 case $ac_srcdir in
51376 .) ac_abs_srcdir=$ac_abs_builddir;;
51377 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51378 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51379 esac;;
51380esac
51381case $ac_abs_builddir in
51382.) ac_abs_top_srcdir=$ac_top_srcdir;;
51383*)
51384 case $ac_top_srcdir in
51385 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51386 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51387 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51388 esac;;
51389esac
a848cd7e
SC
51390
51391
51392 case $INSTALL in
51393 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51394 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51395 esac
51396
7067783d
PC
51397 if test x"$ac_file" != x-; then
51398 { echo "$as_me:$LINENO: creating $ac_file" >&5
51399echo "$as_me: creating $ac_file" >&6;}
51400 rm -f "$ac_file"
51401 fi
a848cd7e
SC
51402 # Let's still pretend it is `configure' which instantiates (i.e., don't
51403 # use $as_me), people would be surprised to read:
51404 # /* config.h. Generated by config.status. */
51405 if test x"$ac_file" = x-; then
51406 configure_input=
51407 else
51408 configure_input="$ac_file. "
51409 fi
51410 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 51411 sed 's,.*/,,'` by configure."
a848cd7e
SC
51412
51413 # First look for the input files in the build tree, otherwise in the
51414 # src tree.
51415 ac_file_inputs=`IFS=:
51416 for f in $ac_file_in; do
51417 case $f in
51418 -) echo $tmp/stdin ;;
51419 [\\/$]*)
ac1cb8d3
VS
51420 # Absolute (can't be DOS-style, as IFS=:)
51421 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51422echo "$as_me: error: cannot find input file: $f" >&2;}
51423 { (exit 1); exit 1; }; }
ac1cb8d3 51424 echo "$f";;
a848cd7e 51425 *) # Relative
ac1cb8d3
VS
51426 if test -f "$f"; then
51427 # Build tree
51428 echo "$f"
51429 elif test -f "$srcdir/$f"; then
51430 # Source tree
51431 echo "$srcdir/$f"
51432 else
51433 # /dev/null tree
51434 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51435echo "$as_me: error: cannot find input file: $f" >&2;}
51436 { (exit 1); exit 1; }; }
ac1cb8d3 51437 fi;;
a848cd7e
SC
51438 esac
51439 done` || { (exit 1); exit 1; }
51440_ACEOF
51441cat >>$CONFIG_STATUS <<_ACEOF
51442 sed "$ac_vpsub
51443$extrasub
51444_ACEOF
51445cat >>$CONFIG_STATUS <<\_ACEOF
51446:t
51447/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51448s,@configure_input@,$configure_input,;t t
51449s,@srcdir@,$ac_srcdir,;t t
51450s,@abs_srcdir@,$ac_abs_srcdir,;t t
51451s,@top_srcdir@,$ac_top_srcdir,;t t
51452s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51453s,@builddir@,$ac_builddir,;t t
51454s,@abs_builddir@,$ac_abs_builddir,;t t
51455s,@top_builddir@,$ac_top_builddir,;t t
51456s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51457s,@INSTALL@,$ac_INSTALL,;t t
51458" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51459 rm -f $tmp/stdin
51460 if test x"$ac_file" != x-; then
51461 mv $tmp/out $ac_file
51462 else
51463 cat $tmp/out
51464 rm -f $tmp/out
51465 fi
51466
ceec2216
RL
51467 # Run the commands associated with the file.
51468 case $ac_file in
51469 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
51470 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
51471 esac
a848cd7e
SC
51472done
51473_ACEOF
51474cat >>$CONFIG_STATUS <<\_ACEOF
51475
51476#
51477# CONFIG_HEADER section.
51478#
51479
51480# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51481# NAME is the cpp macro being defined and VALUE is the value it is being given.
51482#
51483# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
51484ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
51485ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
51486ac_dC=' '
51487ac_dD=',;t'
51488# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 51489ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
51490ac_uB='$,\1#\2define\3'
51491ac_uC=' '
51492ac_uD=',;t'
51493
51494for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51495 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51496 case $ac_file in
51497 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51498 cat >$tmp/stdin
51499 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51500 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51501 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51502 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51503 * ) ac_file_in=$ac_file.in ;;
51504 esac
51505
51506 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51507echo "$as_me: creating $ac_file" >&6;}
51508
51509 # First look for the input files in the build tree, otherwise in the
51510 # src tree.
51511 ac_file_inputs=`IFS=:
51512 for f in $ac_file_in; do
51513 case $f in
51514 -) echo $tmp/stdin ;;
51515 [\\/$]*)
ac1cb8d3
VS
51516 # Absolute (can't be DOS-style, as IFS=:)
51517 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51518echo "$as_me: error: cannot find input file: $f" >&2;}
51519 { (exit 1); exit 1; }; }
ac1cb8d3
VS
51520 # Do quote $f, to prevent DOS paths from being IFS'd.
51521 echo "$f";;
a848cd7e 51522 *) # Relative
ac1cb8d3
VS
51523 if test -f "$f"; then
51524 # Build tree
51525 echo "$f"
51526 elif test -f "$srcdir/$f"; then
51527 # Source tree
51528 echo "$srcdir/$f"
51529 else
51530 # /dev/null tree
51531 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51532echo "$as_me: error: cannot find input file: $f" >&2;}
51533 { (exit 1); exit 1; }; }
ac1cb8d3 51534 fi;;
a848cd7e
SC
51535 esac
51536 done` || { (exit 1); exit 1; }
51537 # Remove the trailing spaces.
ac1cb8d3 51538 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
51539
51540_ACEOF
51541
51542# Transform confdefs.h into two sed scripts, `conftest.defines' and
51543# `conftest.undefs', that substitutes the proper values into
51544# config.h.in to produce config.h. The first handles `#define'
51545# templates, and the second `#undef' templates.
51546# And first: Protect against being on the right side of a sed subst in
51547# config.status. Protect against being in an unquoted here document
51548# in config.status.
51549rm -f conftest.defines conftest.undefs
51550# Using a here document instead of a string reduces the quoting nightmare.
51551# Putting comments in sed scripts is not portable.
51552#
51553# `end' is used to avoid that the second main sed command (meant for
51554# 0-ary CPP macros) applies to n-ary macro definitions.
51555# See the Autoconf documentation for `clear'.
51556cat >confdef2sed.sed <<\_ACEOF
51557s/[\\&,]/\\&/g
51558s,[\\$`],\\&,g
51559t clear
51560: clear
ac1cb8d3 51561s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 51562t end
ac1cb8d3 51563s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
51564: end
51565_ACEOF
51566# If some macros were called several times there might be several times
51567# the same #defines, which is useless. Nevertheless, we may not want to
51568# sort them, since we want the *last* AC-DEFINE to be honored.
51569uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51570sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51571rm -f confdef2sed.sed
51572
51573# This sed command replaces #undef with comments. This is necessary, for
51574# example, in the case of _POSIX_SOURCE, which is predefined and required
51575# on some systems where configure will not decide to define it.
51576cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 51577s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
51578_ACEOF
51579
51580# Break up conftest.defines because some shells have a limit on the size
51581# of here documents, and old seds have small limits too (100 cmds).
51582echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 51583echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
51584echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51585echo ' :' >>$CONFIG_STATUS
51586rm -f conftest.tail
51587while grep . conftest.defines >/dev/null
51588do
51589 # Write a limited-size here document to $tmp/defines.sed.
51590 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51591 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 51592 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
51593 # Work around the forget-to-reset-the-flag bug.
51594 echo 't clr' >>$CONFIG_STATUS
51595 echo ': clr' >>$CONFIG_STATUS
51596 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51597 echo 'CEOF
51598 sed -f $tmp/defines.sed $tmp/in >$tmp/out
51599 rm -f $tmp/in
51600 mv $tmp/out $tmp/in
51601' >>$CONFIG_STATUS
51602 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51603 rm -f conftest.defines
51604 mv conftest.tail conftest.defines
51605done
51606rm -f conftest.defines
51607echo ' fi # grep' >>$CONFIG_STATUS
51608echo >>$CONFIG_STATUS
51609
51610# Break up conftest.undefs because some shells have a limit on the size
51611# of here documents, and old seds have small limits too (100 cmds).
51612echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
51613rm -f conftest.tail
51614while grep . conftest.undefs >/dev/null
51615do
51616 # Write a limited-size here document to $tmp/undefs.sed.
51617 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51618 # Speed up: don't consider the non `#undef'
ac1cb8d3 51619 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
51620 # Work around the forget-to-reset-the-flag bug.
51621 echo 't clr' >>$CONFIG_STATUS
51622 echo ': clr' >>$CONFIG_STATUS
51623 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51624 echo 'CEOF
51625 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51626 rm -f $tmp/in
51627 mv $tmp/out $tmp/in
51628' >>$CONFIG_STATUS
51629 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51630 rm -f conftest.undefs
51631 mv conftest.tail conftest.undefs
51632done
51633rm -f conftest.undefs
51634
51635cat >>$CONFIG_STATUS <<\_ACEOF
51636 # Let's still pretend it is `configure' which instantiates (i.e., don't
51637 # use $as_me), people would be surprised to read:
51638 # /* config.h. Generated by config.status. */
51639 if test x"$ac_file" = x-; then
51640 echo "/* Generated by configure. */" >$tmp/config.h
51641 else
51642 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
51643 fi
51644 cat $tmp/in >>$tmp/config.h
51645 rm -f $tmp/in
51646 if test x"$ac_file" != x-; then
51647 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51648 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51649echo "$as_me: $ac_file is unchanged" >&6;}
51650 else
51651 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51652$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51653 X"$ac_file" : 'X\(//\)[^/]' \| \
51654 X"$ac_file" : 'X\(//\)$' \| \
51655 X"$ac_file" : 'X\(/\)' \| \
51656 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51657echo X"$ac_file" |
51658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51660 /^X\(\/\/\)$/{ s//\1/; q; }
51661 /^X\(\/\).*/{ s//\1/; q; }
51662 s/.*/./; q'`
51663 { if $as_mkdir_p; then
51664 mkdir -p "$ac_dir"
51665 else
51666 as_dir="$ac_dir"
51667 as_dirs=
51668 while test ! -d "$as_dir"; do
51669 as_dirs="$as_dir $as_dirs"
51670 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51671$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51672 X"$as_dir" : 'X\(//\)[^/]' \| \
51673 X"$as_dir" : 'X\(//\)$' \| \
51674 X"$as_dir" : 'X\(/\)' \| \
51675 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51676echo X"$as_dir" |
51677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51679 /^X\(\/\/\)$/{ s//\1/; q; }
51680 /^X\(\/\).*/{ s//\1/; q; }
51681 s/.*/./; q'`
51682 done
51683 test ! -n "$as_dirs" || mkdir $as_dirs
51684 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51685echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51686 { (exit 1); exit 1; }; }; }
51687
51688 rm -f $ac_file
51689 mv $tmp/config.h $ac_file
51690 fi
51691 else
51692 cat $tmp/config.h
51693 rm -f $tmp/config.h
51694 fi
51695done
51696_ACEOF
51697cat >>$CONFIG_STATUS <<\_ACEOF
51698
51699#
51700# CONFIG_COMMANDS section.
51701#
51702for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51703 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51704 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51705 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51706$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51707 X"$ac_dest" : 'X\(//\)[^/]' \| \
51708 X"$ac_dest" : 'X\(//\)$' \| \
51709 X"$ac_dest" : 'X\(/\)' \| \
51710 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51711echo X"$ac_dest" |
51712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51714 /^X\(\/\/\)$/{ s//\1/; q; }
51715 /^X\(\/\).*/{ s//\1/; q; }
51716 s/.*/./; q'`
ac1cb8d3
VS
51717 { if $as_mkdir_p; then
51718 mkdir -p "$ac_dir"
51719 else
51720 as_dir="$ac_dir"
51721 as_dirs=
51722 while test ! -d "$as_dir"; do
51723 as_dirs="$as_dir $as_dirs"
51724 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51725$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51726 X"$as_dir" : 'X\(//\)[^/]' \| \
51727 X"$as_dir" : 'X\(//\)$' \| \
51728 X"$as_dir" : 'X\(/\)' \| \
51729 . : '\(.\)' 2>/dev/null ||
51730echo X"$as_dir" |
51731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51733 /^X\(\/\/\)$/{ s//\1/; q; }
51734 /^X\(\/\).*/{ s//\1/; q; }
51735 s/.*/./; q'`
51736 done
51737 test ! -n "$as_dirs" || mkdir $as_dirs
51738 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51739echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51740 { (exit 1); exit 1; }; }; }
51741
a848cd7e
SC
51742 ac_builddir=.
51743
51744if test "$ac_dir" != .; then
51745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51746 # A "../" for each directory in $ac_dir_suffix.
51747 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51748else
51749 ac_dir_suffix= ac_top_builddir=
51750fi
51751
51752case $srcdir in
51753 .) # No --srcdir option. We are building in place.
51754 ac_srcdir=.
51755 if test -z "$ac_top_builddir"; then
51756 ac_top_srcdir=.
51757 else
51758 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51759 fi ;;
51760 [\\/]* | ?:[\\/]* ) # Absolute path.
51761 ac_srcdir=$srcdir$ac_dir_suffix;
51762 ac_top_srcdir=$srcdir ;;
51763 *) # Relative path.
51764 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51765 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51766esac
ac1cb8d3
VS
51767
51768# Do not use `cd foo && pwd` to compute absolute paths, because
51769# the directories may not exist.
51770case `pwd` in
51771.) ac_abs_builddir="$ac_dir";;
51772*)
51773 case "$ac_dir" in
51774 .) ac_abs_builddir=`pwd`;;
51775 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51776 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51777 esac;;
51778esac
51779case $ac_abs_builddir in
51780.) ac_abs_top_builddir=${ac_top_builddir}.;;
51781*)
51782 case ${ac_top_builddir}. in
51783 .) ac_abs_top_builddir=$ac_abs_builddir;;
51784 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51785 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51786 esac;;
51787esac
51788case $ac_abs_builddir in
51789.) ac_abs_srcdir=$ac_srcdir;;
51790*)
51791 case $ac_srcdir in
51792 .) ac_abs_srcdir=$ac_abs_builddir;;
51793 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51794 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51795 esac;;
51796esac
51797case $ac_abs_builddir in
51798.) ac_abs_top_srcdir=$ac_top_srcdir;;
51799*)
51800 case $ac_top_srcdir in
51801 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51802 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51803 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51804 esac;;
51805esac
a848cd7e
SC
51806
51807
51808 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
51809echo "$as_me: executing $ac_dest commands" >&6;}
51810 case $ac_dest in
5c60e845
MW
51811 rcdefs.h )
51812 mkdir -p $outdir &&
51813 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51814 ;;
ceec2216
RL
51815 wx-config ) rm -f wx-config
51816 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51817 ;;
a848cd7e
SC
51818 esac
51819done
51820_ACEOF
51821
51822cat >>$CONFIG_STATUS <<\_ACEOF
51823
51824{ (exit 0); exit 0; }
51825_ACEOF
51826chmod +x $CONFIG_STATUS
51827ac_clean_files=$ac_clean_files_save
51828
51829
51830# configure is writing to config.log, and then calls config.status.
51831# config.status does its own redirection, appending to config.log.
51832# Unfortunately, on DOS this fails, as config.log is still kept open
51833# by configure, so config.status won't be able to write to it; its
51834# output is simply discarded. So we exec the FD to /dev/null,
51835# effectively closing config.log, so it can be properly (re)opened and
51836# appended to by config.status. When coming back to configure, we
51837# need to make the FD available again.
51838if test "$no_create" != yes; then
51839 ac_cs_success=:
51840 ac_config_status_args=
51841 test "$silent" = yes &&
51842 ac_config_status_args="$ac_config_status_args --quiet"
51843 exec 5>/dev/null
51844 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51845 exec 5>>config.log
51846 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51847 # would make configure fail if this is the last instruction.
51848 $ac_cs_success || { (exit 1); exit 1; }
51849fi
51850
51851#
51852# CONFIG_SUBDIRS section.
51853#
51854if test "$no_recursion" != yes; then
51855
51856 # Remove --cache-file and --srcdir arguments so they do not pile up.
51857 ac_sub_configure_args=
51858 ac_prev=
51859 for ac_arg in $ac_configure_args; do
51860 if test -n "$ac_prev"; then
51861 ac_prev=
51862 continue
51863 fi
51864 case $ac_arg in
51865 -cache-file | --cache-file | --cache-fil | --cache-fi \
51866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51867 ac_prev=cache_file ;;
51868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51870 | --c=*)
51871 ;;
51872 --config-cache | -C)
51873 ;;
51874 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51875 ac_prev=srcdir ;;
51876 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51877 ;;
51878 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51879 ac_prev=prefix ;;
51880 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51881 ;;
51882 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
51883 esac
51884 done
51885
51886 # Always prepend --prefix to ensure using the same prefix
51887 # in subdir configurations.
51888 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
51889
51890 ac_popdir=`pwd`
51891 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51892
51893 # Do not complain, so a configure script can configure whichever
51894 # parts of a large source tree are present.
51895 test -d $srcdir/$ac_dir || continue
51896
51897 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
51898echo "$as_me: configuring in $ac_dir" >&6;}
51899 { if $as_mkdir_p; then
51900 mkdir -p "$ac_dir"
51901 else
51902 as_dir="$ac_dir"
51903 as_dirs=
51904 while test ! -d "$as_dir"; do
51905 as_dirs="$as_dir $as_dirs"
51906 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51907$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51908 X"$as_dir" : 'X\(//\)[^/]' \| \
51909 X"$as_dir" : 'X\(//\)$' \| \
51910 X"$as_dir" : 'X\(/\)' \| \
51911 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51912echo X"$as_dir" |
51913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51914 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51915 /^X\(\/\/\)$/{ s//\1/; q; }
51916 /^X\(\/\).*/{ s//\1/; q; }
51917 s/.*/./; q'`
51918 done
51919 test ! -n "$as_dirs" || mkdir $as_dirs
51920 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51921echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51922 { (exit 1); exit 1; }; }; }
51923
51924 ac_builddir=.
51925
51926if test "$ac_dir" != .; then
51927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51928 # A "../" for each directory in $ac_dir_suffix.
51929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51930else
51931 ac_dir_suffix= ac_top_builddir=
51932fi
51933
51934case $srcdir in
51935 .) # No --srcdir option. We are building in place.
51936 ac_srcdir=.
51937 if test -z "$ac_top_builddir"; then
51938 ac_top_srcdir=.
51939 else
51940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51941 fi ;;
51942 [\\/]* | ?:[\\/]* ) # Absolute path.
51943 ac_srcdir=$srcdir$ac_dir_suffix;
51944 ac_top_srcdir=$srcdir ;;
51945 *) # Relative path.
51946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51948esac
ac1cb8d3
VS
51949
51950# Do not use `cd foo && pwd` to compute absolute paths, because
51951# the directories may not exist.
51952case `pwd` in
51953.) ac_abs_builddir="$ac_dir";;
51954*)
51955 case "$ac_dir" in
51956 .) ac_abs_builddir=`pwd`;;
51957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51959 esac;;
51960esac
51961case $ac_abs_builddir in
51962.) ac_abs_top_builddir=${ac_top_builddir}.;;
51963*)
51964 case ${ac_top_builddir}. in
51965 .) ac_abs_top_builddir=$ac_abs_builddir;;
51966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51968 esac;;
51969esac
51970case $ac_abs_builddir in
51971.) ac_abs_srcdir=$ac_srcdir;;
51972*)
51973 case $ac_srcdir in
51974 .) ac_abs_srcdir=$ac_abs_builddir;;
51975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51977 esac;;
51978esac
51979case $ac_abs_builddir in
51980.) ac_abs_top_srcdir=$ac_top_srcdir;;
51981*)
51982 case $ac_top_srcdir in
51983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51986 esac;;
51987esac
a848cd7e
SC
51988
51989
51990 cd $ac_dir
51991
51992 # Check for guested configure; otherwise get Cygnus style configure.
51993 if test -f $ac_srcdir/configure.gnu; then
51994 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
51995 elif test -f $ac_srcdir/configure; then
51996 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
51997 elif test -f $ac_srcdir/configure.in; then
51998 ac_sub_configure=$ac_configure
51999 else
52000 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52001echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52002 ac_sub_configure=
52003 fi
52004
52005 # The recursion is here.
52006 if test -n "$ac_sub_configure"; then
52007 # Make the cache file name correct relative to the subdirectory.
52008 case $cache_file in
52009 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52010 *) # Relative path.
ac1cb8d3 52011 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
52012 esac
52013
52014 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52015echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52016 # The eval makes quoting arguments work.
52017 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
52018 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
52019 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
52020echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52021 { (exit 1); exit 1; }; }
52022 fi
52023
7067783d 52024 cd $ac_popdir
a848cd7e
SC
52025 done
52026fi
52027
52028
52029echo
77ffb593 52030echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 52031echo ""
c2e9ada4 52032echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 52033echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 52034
77ffb593
JS
52035echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
52036echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
52037echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 52038
77ffb593 52039echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
52040echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
52041echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 52042
77ffb593 52043echo " Which libraries should wxWidgets use?"
a848cd7e
SC
52044echo " jpeg ${wxUSE_LIBJPEG-none}"
52045echo " png ${wxUSE_LIBPNG-none}"
52046echo " regex ${wxUSE_REGEX}"
52047echo " tiff ${wxUSE_LIBTIFF-none}"
52048if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52049echo " xpm ${wxUSE_LIBXPM-none}"
52050fi
52051echo " zlib ${wxUSE_ZLIB}"
52052echo " odbc ${wxUSE_ODBC}"
52053echo " expat ${wxUSE_EXPAT}"
52054echo " libmspack ${wxUSE_LIBMSPACK}"
52055echo " sdl ${wxUSE_LIBSDL}"
52056
52057echo ""
52058