]> git.saurik.com Git - wxWidgets.git/blame - configure
Added SetSheetStyle to property sheet dialog to allow specification
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
7afc46ab 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS HILDON_CFLAGS HILDON_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT 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 COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_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_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
7afc46ab 892 --enable-universal_binary create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
893 --enable-compat24 enable wxWidgets 2.4 compatibility
894 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 895 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
896 --enable-intl use internationalization system
897 --enable-config use wxConfig (and derived) classes
898 --enable-protocols use wxProtocol and derived classes
899 --enable-ftp use wxFTP (requires wxProtocol
900 --enable-http use wxHTTP (requires wxProtocol
901 --enable-fileproto use wxFileProto class (requires wxProtocol
902 --enable-sockets use socket/network classes
903 --enable-ole use OLE classes (Win32 only)
904 --enable-dataobj use data object classes
905 --enable-ipc use interprocess communication (wxSocket etc.)
906 --enable-apple_ieee use the Apple IEEE codec
81f90336 907 --enable-arcstream use wxArchive streams
eaff0f0d 908 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 909 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
910 --enable-cmdline use wxCmdLineParser class
911 --enable-datetime use wxDateTime class
36b6448c 912 --enable-debugreport use wxDebugReport class
a848cd7e
SC
913 --enable-dialupman use dialup network classes
914 --enable-dynlib use wxLibrary class for DLL loading
915 --enable-dynamicloader use (new) wxDynamicLibrary class
916 --enable-exceptions build exception-safe library
917 --enable-ffile use wxFFile class
918 --enable-file use wxFile class
919 --enable-filesystem use virtual file systems classes
920 --enable-fontmap use font encodings conversion classes
921 --enable-fs_inet use virtual HTTP/FTP filesystems
922 --enable-fs_zip use virtual ZIP filesystems
923 --enable-geometry use geometry class
924 --enable-log use logging system
925 --enable-longlong use wxLongLong class
926 --enable-mimetype use wxMimeTypesManager
927 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
928 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 929 --enable-std_iostreams use standard C++ stream classes
59746b65 930 --enable-std_string use standard C++ string classes
07158944 931 --enable-stdpaths use wxStandardPaths class
a848cd7e 932 --enable-stopwatch use wxStopWatch class
07158944 933 --enable-streams use wxStream etc classes
a848cd7e
SC
934 --enable-sysoptions use wxSystemOptions
935 --enable-textbuf use wxTextBuffer class
936 --enable-textfile use wxTextFile class
937 --enable-timer use wxTimer class
938 --enable-unicode compile wxString with Unicode support
939 --enable-sound use wxSound class
3b57de8b 940 --enable-mediactrl use wxMediaCtrl class
77ffb593 941 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 942 --enable-zipstream use wxZip streams
a848cd7e
SC
943 --enable-url use wxURL class
944 --enable-protocol use wxProtocol class
945 --enable-protocol-http HTTP support in wxProtocol
946 --enable-protocol-ftp FTP support in wxProtocol
947 --enable-protocol-file FILE support in wxProtocol
948 --enable-threads use threads
949 --enable-docview use document view architecture
950 --enable-help use help subsystem
951 --enable-mshtmlhelp use MS HTML Help (win32)
952 --enable-html use wxHTML sub-library
953 --enable-htmlhelp use wxHTML-based help
9a8f0513 954 --enable-xrc use XRC resources sub-library
a848cd7e
SC
955 --enable-constraints use layout-constraints system
956 --enable-printarch use printing architecture
957 --enable-mdi use multiple document interface architecture
8a7b1113 958 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
959 --enable-loggui use standard GUI logger
960 --enable-logwin use wxLogWindow
961 --enable-logdialog use wxLogDialog
646b6ec1 962 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 963 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
964 --enable-postscript use wxPostscriptDC device context (default for gtk+)
965 --enable-prologio not available; see contrib
966 --enable-resources not available; see contrib
967 --enable-clipboard use wxClipboard class
968 --enable-dnd use Drag'n'Drop classes
969 --enable-metafile use win32 metafiles
970 --enable-controls use all usual controls
971 --enable-accel use accelerators
972 --enable-button use wxButton class
973 --enable-bmpbutton use wxBitmapButton class
974 --enable-calendar use wxCalendarCtrl class
975 --enable-caret use wxCaret class
976 --enable-checkbox use wxCheckBox class
977 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
978 --enable-choice use wxChoice class
92bbdbcd 979 --enable-choicebook use wxChoicebook class
a848cd7e 980 --enable-combobox use wxComboBox class
da98e9be 981 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
982 --enable-display use wxDisplay class
983 --enable-gauge use wxGauge class
984 --enable-grid use wxGrid class
20e34ecc 985 --enable-dataviewctrl, use wxDataViewCtrl class
a848cd7e
SC
986 --enable-imaglist use wxImageList class
987 --enable-listbook use wxListbook class
988 --enable-listbox use wxListBox class
989 --enable-listctrl use wxListCtrl class
990 --enable-notebook use wxNotebook class
991 --enable-radiobox use wxRadioBox class
992 --enable-radiobtn use wxRadioButton class
993 --enable-sash use wxSashWindow class
994 --enable-scrollbar use wxScrollBar class and scrollable windows
995 --enable-slider use wxSlider class
996 --enable-spinbtn use wxSpinButton class
997 --enable-spinctrl use wxSpinCtrl class
998 --enable-splitter use wxSplitterWindow class
999 --enable-statbmp use wxStaticBitmap class
1000 --enable-statbox use wxStaticBox class
1001 --enable-statline use wxStaticLine class
1002 --enable-stattext use wxStaticText class
1003 --enable-statusbar use wxStatusBar class
1004 --enable-tabdialog use wxTabControl class
1005 --enable-textctrl use wxTextCtrl class
1006 --enable-togglebtn use wxToggleButton class
1007 --enable-toolbar use wxToolBar class
1008 --enable-tbarnative use native wxToolBar class
1009 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1010 --enable-treebook use wxTreebook class
a848cd7e
SC
1011 --enable-treectrl use wxTreeCtrl class
1012 --enable-tipwindow use wxTipWindow class
1013 --enable-popupwin use wxPopUpWindow class
1014 --enable-commondlg use all common dialogs
1015 --enable-choicedlg use wxChoiceDialog
1016 --enable-coldlg use wxColourDialog
1017 --enable-filedlg use wxFileDialog
1018 --enable-finddlg use wxFindReplaceDialog
1019 --enable-fontdlg use wxFontDialog
1020 --enable-dirdlg use wxDirDialog
1021 --enable-msgdlg use wxMessageDialog
1022 --enable-numberdlg use wxNumberEntryDialog
1023 --enable-splash use wxSplashScreen
1024 --enable-textdlg use wxTextDialog
1025 --enable-tipdlg use startup tips
1026 --enable-progressdlg use wxProgressDialog
1027 --enable-wizarddlg use wxWizard
1028 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1029 --enable-miniframe use wxMiniFrame class
1030 --enable-tooltips use wxToolTip class
1031 --enable-splines use spline drawing code
fbe2ca43 1032 --enable-mousewheel use mousewheel
a848cd7e
SC
1033 --enable-validators use wxValidator and derived classes
1034 --enable-busyinfo use wxBusyInfo
4cb1d3da 1035 --enable-joystick use wxJoystick
38b4a946 1036 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1037 --enable-dragimage use wxDragImage
1038 --enable-accessibility enable accessibility support
38b4a946 1039 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1040 --enable-palette use wxPalette class
1041 --enable-image use wxImage class
1042 --enable-gif use gif images (GIF file format)
1043 --enable-pcx use pcx images (PCX file format)
1044 --enable-iff use iff images (IFF file format)
1045 --enable-pnm use pnm images (PNM file format)
1046 --enable-xpm use xpm images (XPM file format)
1047 --enable-icocur use Windows ICO and CUR formats
77ffb593 1048 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1049 --enable-vendor=VENDOR vendor name (win32 DLL only)
1050 --disable-largefile omit support for large files
1051 --disable-gtktest do not try to compile and run a test GTK+ program
1052 --disable-gtktest Do not try to compile and run a test GTK program
1053 --disable-sdltest Do not try to compile and run a test SDL program
1054 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1055 --disable-precomp-headers
1056 don't use precompiled headers even if compiler can
a848cd7e
SC
1057
1058Optional Packages:
1059 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1060 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1061 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1062 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1063 --with-motif use Motif/Lesstif
1064 --with-mac use Mac OS X
1065 --with-cocoa use Cocoa
1066 --with-wine use Wine
1067 --with-msw use MS-Windows
1068 --with-pm use OS/2 Presentation Manager
1069 --with-mgl use SciTech MGL
1070 --with-microwin use MicroWindows
1071 --with-x11 use X11
1072 --with-libpng use libpng (PNG image format)
1073 --with-libjpeg use libjpeg (JPEG file format)
1074 --with-libtiff use libtiff (TIFF file format)
1075 --with-libxpm use libxpm (XPM file format)
1076 --with-libmspack use libmspack (CHM help files loading)
1077 --with-sdl use SDL for audio on Unix
d51253e8 1078 --with-gnomeprint use GNOME print for printing under Unix
3565d135 1079 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1080 --with-opengl use OpenGL (or Mesa)
1081 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1082 --with-regex enable support for wxRegEx class
1083 --with-zlib use zlib for LZW compression
1084 --with-odbc use the IODBC and wxODBC classes
1085 --with-expat enable XML support using expat parser
ceec2216 1086 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1087 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1088 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1089 --with-x use the X Window System
1090 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1091 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1092 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1093 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1094 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1095
1096Some influential environment variables:
dcc1b6ad
VS
1097 CC C compiler command
1098 CFLAGS C compiler flags
1099 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1100 nonstandard directory <lib dir>
1101 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1102 headers in a nonstandard directory <include dir>
1103 CPP C preprocessor
1104 CXX C++ compiler command
1105 CXXFLAGS C++ compiler flags
1106 CXXCPP C++ preprocessor
a848cd7e
SC
1107
1108Use these variables to override the choices made by `configure' or to help
1109it to find libraries and programs with nonstandard names/locations.
1110
77ffb593 1111Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1112_ACEOF
1113fi
1114
1115if test "$ac_init_help" = "recursive"; then
1116 # If there are subdirs, report their specific --help.
1117 ac_popdir=`pwd`
1118 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119 test -d $ac_dir || continue
1120 ac_builddir=.
1121
1122if test "$ac_dir" != .; then
1123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124 # A "../" for each directory in $ac_dir_suffix.
1125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1126else
1127 ac_dir_suffix= ac_top_builddir=
1128fi
1129
1130case $srcdir in
1131 .) # No --srcdir option. We are building in place.
1132 ac_srcdir=.
1133 if test -z "$ac_top_builddir"; then
1134 ac_top_srcdir=.
1135 else
1136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1137 fi ;;
1138 [\\/]* | ?:[\\/]* ) # Absolute path.
1139 ac_srcdir=$srcdir$ac_dir_suffix;
1140 ac_top_srcdir=$srcdir ;;
1141 *) # Relative path.
1142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144esac
ac1cb8d3
VS
1145
1146# Do not use `cd foo && pwd` to compute absolute paths, because
1147# the directories may not exist.
1148case `pwd` in
1149.) ac_abs_builddir="$ac_dir";;
1150*)
1151 case "$ac_dir" in
1152 .) ac_abs_builddir=`pwd`;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155 esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_top_builddir=${ac_top_builddir}.;;
1159*)
1160 case ${ac_top_builddir}. in
1161 .) ac_abs_top_builddir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164 esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_srcdir=$ac_srcdir;;
1168*)
1169 case $ac_srcdir in
1170 .) ac_abs_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173 esac;;
1174esac
1175case $ac_abs_builddir in
1176.) ac_abs_top_srcdir=$ac_top_srcdir;;
1177*)
1178 case $ac_top_srcdir in
1179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1182 esac;;
1183esac
a848cd7e
SC
1184
1185 cd $ac_dir
1186 # Check for guested configure; otherwise get Cygnus style configure.
1187 if test -f $ac_srcdir/configure.gnu; then
1188 echo
1189 $SHELL $ac_srcdir/configure.gnu --help=recursive
1190 elif test -f $ac_srcdir/configure; then
1191 echo
1192 $SHELL $ac_srcdir/configure --help=recursive
1193 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1194 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1195 echo
1196 $ac_configure --help
1197 else
1198 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1199 fi
3565d135 1200 cd $ac_popdir
a848cd7e
SC
1201 done
1202fi
1203
1204test -n "$ac_init_help" && exit 0
1205if $ac_init_version; then
1206 cat <<\_ACEOF
dd8df4fc 1207wxWidgets configure 2.7.0
ac1cb8d3 1208generated by GNU Autoconf 2.59
a848cd7e 1209
ac1cb8d3 1210Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1211This configure script is free software; the Free Software Foundation
1212gives unlimited permission to copy, distribute and modify it.
1213_ACEOF
1214 exit 0
1215fi
1216exec 5>config.log
1217cat >&5 <<_ACEOF
1218This file contains any messages produced by compilers while
1219running configure, to aid debugging if configure makes a mistake.
1220
dd8df4fc 1221It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1222generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1223
1224 $ $0 $@
1225
1226_ACEOF
1227{
1228cat <<_ASUNAME
1229## --------- ##
1230## Platform. ##
1231## --------- ##
1232
1233hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1234uname -m = `(uname -m) 2>/dev/null || echo unknown`
1235uname -r = `(uname -r) 2>/dev/null || echo unknown`
1236uname -s = `(uname -s) 2>/dev/null || echo unknown`
1237uname -v = `(uname -v) 2>/dev/null || echo unknown`
1238
1239/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1240/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1241
1242/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1243/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1244/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1245hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1246/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1247/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1248/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1249
1250_ASUNAME
1251
1252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1253for as_dir in $PATH
1254do
1255 IFS=$as_save_IFS
1256 test -z "$as_dir" && as_dir=.
1257 echo "PATH: $as_dir"
1258done
1259
1260} >&5
1261
1262cat >&5 <<_ACEOF
1263
1264
1265## ----------- ##
1266## Core tests. ##
1267## ----------- ##
1268
1269_ACEOF
1270
1271
1272# Keep a trace of the command line.
1273# Strip out --no-create and --no-recursion so they do not pile up.
1274# Strip out --silent because we don't want to record it for future runs.
1275# Also quote any args containing shell meta-characters.
1276# Make two passes to allow for proper duplicate-argument suppression.
1277ac_configure_args=
1278ac_configure_args0=
1279ac_configure_args1=
1280ac_sep=
1281ac_must_keep_next=false
1282for ac_pass in 1 2
1283do
1284 for ac_arg
1285 do
1286 case $ac_arg in
1287 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289 | -silent | --silent | --silen | --sile | --sil)
1290 continue ;;
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 esac
1294 case $ac_pass in
1295 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1296 2)
1297 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1298 if test $ac_must_keep_next = true; then
ac1cb8d3 1299 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1300 else
ac1cb8d3
VS
1301 case $ac_arg in
1302 *=* | --config-cache | -C | -disable-* | --disable-* \
1303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1305 | -with-* | --with-* | -without-* | --without-* | --x)
1306 case "$ac_configure_args0 " in
1307 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1308 esac
1309 ;;
1310 -* ) ac_must_keep_next=true ;;
1311 esac
a848cd7e
SC
1312 fi
1313 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1314 # Get rid of the leading space.
1315 ac_sep=" "
1316 ;;
1317 esac
1318 done
1319done
1320$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1321$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1322
1323# When interrupted or exit'd, cleanup temporary files, and complete
1324# config.log. We remove comments because anyway the quotes in there
1325# would cause problems or look ugly.
1326# WARNING: Be sure not to use single quotes in there, as some shells,
1327# such as our DU 5.0 friend, will then `close' the trap.
1328trap 'exit_status=$?
1329 # Save into config.log some information that might help in debugging.
1330 {
1331 echo
1332
1333 cat <<\_ASBOX
1334## ---------------- ##
1335## Cache variables. ##
1336## ---------------- ##
1337_ASBOX
1338 echo
1339 # The following way of writing the cache mishandles newlines in values,
1340{
1341 (set) 2>&1 |
1342 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1343 *ac_space=\ *)
1344 sed -n \
ac1cb8d3
VS
1345 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1347 ;;
1348 *)
1349 sed -n \
ac1cb8d3 1350 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1351 ;;
1352 esac;
1353}
1354 echo
1355
1356 cat <<\_ASBOX
1357## ----------------- ##
1358## Output variables. ##
1359## ----------------- ##
1360_ASBOX
1361 echo
1362 for ac_var in $ac_subst_vars
1363 do
1364 eval ac_val=$`echo $ac_var`
1365 echo "$ac_var='"'"'$ac_val'"'"'"
1366 done | sort
1367 echo
1368
1369 if test -n "$ac_subst_files"; then
1370 cat <<\_ASBOX
1371## ------------- ##
1372## Output files. ##
1373## ------------- ##
1374_ASBOX
1375 echo
1376 for ac_var in $ac_subst_files
1377 do
1378 eval ac_val=$`echo $ac_var`
ac1cb8d3 1379 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1380 done | sort
1381 echo
1382 fi
1383
1384 if test -s confdefs.h; then
1385 cat <<\_ASBOX
1386## ----------- ##
1387## confdefs.h. ##
1388## ----------- ##
1389_ASBOX
1390 echo
1391 sed "/^$/d" confdefs.h | sort
1392 echo
1393 fi
1394 test "$ac_signal" != 0 &&
1395 echo "$as_me: caught signal $ac_signal"
1396 echo "$as_me: exit $exit_status"
1397 } >&5
ac1cb8d3 1398 rm -f core *.core &&
a848cd7e
SC
1399 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1400 exit $exit_status
1401 ' 0
1402for ac_signal in 1 2 13 15; do
1403 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1404done
1405ac_signal=0
1406
1407# confdefs.h avoids OS command line length limits that DEFS can exceed.
1408rm -rf conftest* confdefs.h
1409# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1410echo >confdefs.h
1411
1412# Predefined preprocessor variables.
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_NAME "$PACKAGE_NAME"
1416_ACEOF
1417
1418
1419cat >>confdefs.h <<_ACEOF
1420#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1421_ACEOF
1422
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_VERSION "$PACKAGE_VERSION"
1426_ACEOF
1427
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_STRING "$PACKAGE_STRING"
1431_ACEOF
1432
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1436_ACEOF
1437
1438
1439# Let the site file select an alternate cache file if it wants to.
1440# Prefer explicitly selected file to automatically selected ones.
1441if test -z "$CONFIG_SITE"; then
1442 if test "x$prefix" != xNONE; then
1443 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444 else
1445 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1446 fi
1447fi
1448for ac_site_file in $CONFIG_SITE; do
1449 if test -r "$ac_site_file"; then
1450 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1451echo "$as_me: loading site script $ac_site_file" >&6;}
1452 sed 's/^/| /' "$ac_site_file" >&5
1453 . "$ac_site_file"
1454 fi
1455done
1456
1457if test -r "$cache_file"; then
1458 # Some versions of bash will fail to source /dev/null (special
1459 # files actually), so we avoid doing that.
1460 if test -f "$cache_file"; then
1461 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1462echo "$as_me: loading cache $cache_file" >&6;}
1463 case $cache_file in
1464 [\\/]* | ?:[\\/]* ) . $cache_file;;
1465 *) . ./$cache_file;;
1466 esac
1467 fi
1468else
1469 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1470echo "$as_me: creating cache $cache_file" >&6;}
1471 >$cache_file
1472fi
1473
1474# Check that the precious variables saved in the cache have kept the same
1475# value.
1476ac_cache_corrupted=false
1477for ac_var in `(set) 2>&1 |
ac1cb8d3 1478 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1479 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1480 eval ac_new_set=\$ac_env_${ac_var}_set
1481 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1482 eval ac_new_val="\$ac_env_${ac_var}_value"
1483 case $ac_old_set,$ac_new_set in
1484 set,)
1485 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1486echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1487 ac_cache_corrupted=: ;;
1488 ,set)
1489 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1490echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1491 ac_cache_corrupted=: ;;
1492 ,);;
1493 *)
1494 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1495 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1496echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1497 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1498echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1499 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1500echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1501 ac_cache_corrupted=:
a848cd7e
SC
1502 fi;;
1503 esac
1504 # Pass precious variables to config.status.
1505 if test "$ac_new_set" = set; then
1506 case $ac_new_val in
1507 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1508 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1509 *) ac_arg=$ac_var=$ac_new_val ;;
1510 esac
1511 case " $ac_configure_args " in
1512 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1513 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1514 esac
1515 fi
1516done
1517if $ac_cache_corrupted; then
1518 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1519echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1520 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1521echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1522 { (exit 1); exit 1; }; }
1523fi
1524
1525ac_ext=c
1526ac_cpp='$CPP $CPPFLAGS'
1527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1529ac_compiler_gnu=$ac_cv_c_compiler_gnu
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560ac_aux_dir=
1561for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1562 if test -f $ac_dir/install-sh; then
1563 ac_aux_dir=$ac_dir
1564 ac_install_sh="$ac_aux_dir/install-sh -c"
1565 break
1566 elif test -f $ac_dir/install.sh; then
1567 ac_aux_dir=$ac_dir
1568 ac_install_sh="$ac_aux_dir/install.sh -c"
1569 break
1570 elif test -f $ac_dir/shtool; then
1571 ac_aux_dir=$ac_dir
1572 ac_install_sh="$ac_aux_dir/shtool install -c"
1573 break
1574 fi
1575done
1576if test -z "$ac_aux_dir"; then
1577 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1578echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1579 { (exit 1); exit 1; }; }
1580fi
1581ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1582ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1583ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1584
1585# Make sure we can run config.sub.
1586$ac_config_sub sun4 >/dev/null 2>&1 ||
1587 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1588echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1589 { (exit 1); exit 1; }; }
1590
1591echo "$as_me:$LINENO: checking build system type" >&5
1592echo $ECHO_N "checking build system type... $ECHO_C" >&6
1593if test "${ac_cv_build+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595else
1596 ac_cv_build_alias=$build_alias
1597test -z "$ac_cv_build_alias" &&
1598 ac_cv_build_alias=`$ac_config_guess`
1599test -z "$ac_cv_build_alias" &&
1600 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1601echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1602 { (exit 1); exit 1; }; }
1603ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1604 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1605echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1606 { (exit 1); exit 1; }; }
1607
1608fi
1609echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1610echo "${ECHO_T}$ac_cv_build" >&6
1611build=$ac_cv_build
1612build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1613build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1614build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1615
1616
1617echo "$as_me:$LINENO: checking host system type" >&5
1618echo $ECHO_N "checking host system type... $ECHO_C" >&6
1619if test "${ac_cv_host+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1621else
1622 ac_cv_host_alias=$host_alias
1623test -z "$ac_cv_host_alias" &&
1624 ac_cv_host_alias=$ac_cv_build_alias
1625ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1626 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1627echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1628 { (exit 1); exit 1; }; }
1629
1630fi
1631echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1632echo "${ECHO_T}$ac_cv_host" >&6
1633host=$ac_cv_host
1634host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1635host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1636host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637
1638
1639echo "$as_me:$LINENO: checking target system type" >&5
1640echo $ECHO_N "checking target system type... $ECHO_C" >&6
1641if test "${ac_cv_target+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644 ac_cv_target_alias=$target_alias
1645test "x$ac_cv_target_alias" = "x" &&
1646 ac_cv_target_alias=$ac_cv_host_alias
1647ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1648 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1649echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1650 { (exit 1); exit 1; }; }
1651
1652fi
1653echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1654echo "${ECHO_T}$ac_cv_target" >&6
1655target=$ac_cv_target
1656target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1657target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1658target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659
1660
1661# The aliases save the names the user supplied, while $host etc.
1662# will get canonicalized.
1663test -n "$target_alias" &&
1664 test "$program_prefix$program_suffix$program_transform_name" = \
1665 NONENONEs,x,x, &&
1666 program_prefix=${target_alias}-
1667
1668
1669
ceec2216 1670wx_major_version_number=2
dd8df4fc
VZ
1671wx_minor_version_number=7
1672wx_release_number=0
1673wx_subrelease_number=0
a848cd7e 1674
ceec2216
RL
1675WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1676WX_VERSION=$WX_RELEASE.$wx_release_number
1677WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1678
ceec2216 1679WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1680
a848cd7e
SC
1681
1682
1683
1684USE_UNIX=1
1685USE_OS2=0
1686USE_WIN32=0
1687USE_DOS=0
1688USE_BEOS=0
1689USE_MAC=0
1690
1691USE_AIX=
1692USE_BSD= USE_DARWIN= USE_FREEBSD=
1693USE_GNU= USE_HPUX=
1694USE_LINUX=
1695USE_NETBSD=
1696USE_OPENBSD=
1697USE_OSF= USE_SGI=
1698USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1699USE_ULTRIX=
1700USE_UNIXWARE=
1701
1702USE_ALPHA=
1703
1704NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1705
1706ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1707
1708DEFAULT_wxUSE_COCOA=0
1709DEFAULT_wxUSE_GTK=0
1710DEFAULT_wxUSE_MAC=0
1711DEFAULT_wxUSE_MGL=0
1712DEFAULT_wxUSE_MICROWIN=0
1713DEFAULT_wxUSE_MOTIF=0
1714DEFAULT_wxUSE_MSW=0
1715DEFAULT_wxUSE_PM=0
1716DEFAULT_wxUSE_X11=0
1717
1718DEFAULT_DEFAULT_wxUSE_COCOA=0
1719DEFAULT_DEFAULT_wxUSE_GTK=0
1720DEFAULT_DEFAULT_wxUSE_MAC=0
1721DEFAULT_DEFAULT_wxUSE_MGL=0
1722DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1723DEFAULT_DEFAULT_wxUSE_MOTIF=0
1724DEFAULT_DEFAULT_wxUSE_MSW=0
1725DEFAULT_DEFAULT_wxUSE_PM=0
1726DEFAULT_DEFAULT_wxUSE_X11=0
1727
1728PROGRAM_EXT=
1729SO_SUFFIX=so
1730SAMPLES_RPATH_FLAG=
1731SAMPLES_RPATH_POSTLINK=
1732
a03b8b04
RD
1733DEFAULT_STD_FLAG=yes
1734
a848cd7e
SC
1735case "${host}" in
1736 *-hp-hpux* )
1737 USE_HPUX=1
1738 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1739 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1740 SO_SUFFIX=sl
1741 cat >>confdefs.h <<\_ACEOF
1742#define __HPUX__ 1
1743_ACEOF
1744
2eef8513 1745
c92ad099 1746 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1747 ;;
1748 *-*-linux* )
1749 USE_LINUX=1
1750 cat >>confdefs.h <<\_ACEOF
1751#define __LINUX__ 1
1752_ACEOF
1753
1754 TMP=`uname -m`
1755 if test "x$TMP" = "xalpha"; then
1756 USE_ALPHA=1
1757 cat >>confdefs.h <<\_ACEOF
1758#define __ALPHA__ 1
1759_ACEOF
1760
1761 fi
1762 DEFAULT_DEFAULT_wxUSE_GTK=1
1763 ;;
1764 *-*-gnu* | *-*-k*bsd*-gnu )
1765 USE_GNU=1
1766 TMP=`uname -m`
1767 if test "x$TMP" = "xalpha"; then
1768 USE_ALPHA=1
1769 cat >>confdefs.h <<\_ACEOF
1770#define __ALPHA__ 1
1771_ACEOF
1772
1773 fi
1774 DEFAULT_DEFAULT_wxUSE_GTK=1
1775 ;;
1776 *-*-irix5* | *-*-irix6* )
1777 USE_SGI=1
1778 USE_SVR4=1
1779 cat >>confdefs.h <<\_ACEOF
1780#define __SGI__ 1
1781_ACEOF
1782
1783 cat >>confdefs.h <<\_ACEOF
1784#define __SVR4__ 1
1785_ACEOF
1786
1787 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1788 ;;
1789 *-*-solaris2* )
1790 USE_SUN=1
1791 USE_SOLARIS=1
1792 USE_SVR4=1
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SUN__ 1
1795_ACEOF
1796
1797 cat >>confdefs.h <<\_ACEOF
1798#define __SOLARIS__ 1
1799_ACEOF
1800
1801 cat >>confdefs.h <<\_ACEOF
1802#define __SVR4__ 1
1803_ACEOF
1804
1805 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1806 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1807 ;;
1808 *-*-sunos4* )
1809 USE_SUN=1
1810 USE_SUNOS=1
1811 USE_BSD=1
1812 cat >>confdefs.h <<\_ACEOF
1813#define __SUN__ 1
1814_ACEOF
1815
1816 cat >>confdefs.h <<\_ACEOF
1817#define __SUNOS__ 1
1818_ACEOF
1819
1820 cat >>confdefs.h <<\_ACEOF
1821#define __BSD__ 1
1822_ACEOF
1823
1824 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1825 ;;
1826 *-*-freebsd*)
1827 USE_BSD=1
1828 USE_FREEBSD=1
1829 cat >>confdefs.h <<\_ACEOF
1830#define __FREEBSD__ 1
1831_ACEOF
1832
1833 cat >>confdefs.h <<\_ACEOF
1834#define __BSD__ 1
1835_ACEOF
1836
1837 DEFAULT_DEFAULT_wxUSE_GTK=1
1838 ;;
1839 *-*-openbsd*)
1840 USE_BSD=1
1841 USE_OPENBSD=1
1842 cat >>confdefs.h <<\_ACEOF
1843#define __OPENBSD__ 1
1844_ACEOF
1845
1846 cat >>confdefs.h <<\_ACEOF
1847#define __BSD__ 1
1848_ACEOF
1849
1850 DEFAULT_DEFAULT_wxUSE_GTK=1
1851 ;;
1852 *-*-netbsd*)
1853 USE_BSD=1
1854 USE_NETBSD=1
1855 cat >>confdefs.h <<\_ACEOF
1856#define __NETBSD__ 1
1857_ACEOF
1858
1859 cat >>confdefs.h <<\_ACEOF
1860#define __BSD__ 1
1861_ACEOF
1862
1863 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1864 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1865
def7c04a 1866 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1867 ;;
1868 *-*-osf* )
1869 USE_ALPHA=1
1870 USE_OSF=1
1871 cat >>confdefs.h <<\_ACEOF
1872#define __ALPHA__ 1
1873_ACEOF
1874
1875 cat >>confdefs.h <<\_ACEOF
1876#define __OSF__ 1
1877_ACEOF
1878
1879 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1880 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1881 ;;
1882 *-*-dgux5* )
1883 USE_ALPHA=1
1884 USE_SVR4=1
1885 cat >>confdefs.h <<\_ACEOF
1886#define __ALPHA__ 1
1887_ACEOF
1888
1889 cat >>confdefs.h <<\_ACEOF
1890#define __SVR4__ 1
1891_ACEOF
1892
1893 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1894 ;;
1895 *-*-sysv5* )
1896 USE_SYSV=1
1897 USE_SVR4=1
1898 cat >>confdefs.h <<\_ACEOF
1899#define __SYSV__ 1
1900_ACEOF
1901
1902 cat >>confdefs.h <<\_ACEOF
1903#define __SVR4__ 1
1904_ACEOF
1905
1906 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1907 ;;
1908 *-*-aix* )
1909 USE_AIX=1
1910 USE_SYSV=1
1911 USE_SVR4=1
1912 SO_SUFFIX=a
1913 cat >>confdefs.h <<\_ACEOF
1914#define __AIX__ 1
1915_ACEOF
1916
1917 cat >>confdefs.h <<\_ACEOF
1918#define __SYSV__ 1
1919_ACEOF
1920
1921 cat >>confdefs.h <<\_ACEOF
1922#define __SVR4__ 1
1923_ACEOF
1924
1925 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1926 ;;
1927
1928 *-*-*UnixWare*)
1929 USE_SYSV=1
1930 USE_SVR4=1
1931 USE_UNIXWARE=1
1932 cat >>confdefs.h <<\_ACEOF
1933#define __UNIXWARE__ 1
1934_ACEOF
1935
1936 ;;
1937
1938 *-*-cygwin* | *-*-mingw32* )
1939 SO_SUFFIX=dll
1940 PROGRAM_EXT=".exe"
a848cd7e 1941 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1942 DEFAULT_STD_FLAG=no
a848cd7e
SC
1943 ;;
1944
1945 *-pc-msdosdjgpp )
1946 USE_UNIX=0
1947 USE_DOS=1
1948 cat >>confdefs.h <<\_ACEOF
1949#define __DOS__ 1
1950_ACEOF
1951
1952 PROGRAM_EXT=".exe"
1953 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1954 ;;
1955
1956 *-pc-os2_emx | *-pc-os2-emx )
1957 cat >>confdefs.h <<\_ACEOF
1958#define __EMX__ 1
1959_ACEOF
1960
1961 USE_OS2=1
1962 cat >>confdefs.h <<\_ACEOF
1963#define __OS2__ 1
1964_ACEOF
1965
1966 PROGRAM_EXT=".exe"
1967 DEFAULT_DEFAULT_wxUSE_PM=1
1968 CXX=gcc
1969 LDFLAGS="$LDFLAGS -Zcrtdll"
1970 ac_executable_extensions=".exe"
1971 export ac_executable_extensions
1972 ac_save_IFS="$IFS"
1973 IFS='\\'
1974 ac_TEMP_PATH=
1975 for ac_dir in $PATH; do
1976 IFS=$ac_save_IFS
1977 if test -z "$ac_TEMP_PATH"; then
1978 ac_TEMP_PATH="$ac_dir"
1979 else
1980 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1981 fi
1982 done
1983 export PATH="$ac_TEMP_PATH"
1984 unset ac_TEMP_PATH
a03b8b04 1985 DEFAULT_STD_FLAG=no
a848cd7e
SC
1986 ;;
1987
cfda0ea8 1988 *-*-darwin* )
a848cd7e
SC
1989 USE_BSD=1
1990 USE_DARWIN=1
1991 SO_SUFFIX=dylib
1992 cat >>confdefs.h <<\_ACEOF
1993#define __BSD__ 1
1994_ACEOF
1995
1996 cat >>confdefs.h <<\_ACEOF
1997#define __DARWIN__ 1
a848cd7e
SC
1998_ACEOF
1999
2000 cat >>confdefs.h <<\_ACEOF
2001#define TARGET_CARBON 1
2002_ACEOF
2003
2004 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2005 DEFAULT_STD_FLAG=no
a848cd7e 2006 ;;
1e9e8aba
DE
2007 powerpc-apple-macos* )
2008 USE_UNIX=0
2009 ac_cv_c_bigendian=yes
2010 SO_SUFFIX=shlib
2011 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2012 DEFAULT_STD_FLAG=no
1e9e8aba 2013 ;;
a848cd7e
SC
2014
2015 *-*-beos* )
2016 USE_BEOS=1
2017 cat >>confdefs.h <<\_ACEOF
2018#define __BEOS__ 1
2019_ACEOF
2020
2021 ;;
2022
2023 *)
2024 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2025echo "$as_me: error: unknown system type ${host}." >&2;}
2026 { (exit 1); exit 1; }; }
2027esac
2028
2029
2030
2031
2032 wx_arg_cache_file="configarg.cache"
2033 echo "loading argument cache $wx_arg_cache_file"
2034 rm -f ${wx_arg_cache_file}.tmp
2035 touch ${wx_arg_cache_file}.tmp
2036 touch ${wx_arg_cache_file}
2037
2038
2039DEBUG_CONFIGURE=0
2040if test $DEBUG_CONFIGURE = 1; then
2041 DEFAULT_wxUSE_UNIVERSAL=no
2042 DEFAULT_wxUSE_STL=no
2043
2044 DEFAULT_wxUSE_NANOX=no
2045
2046 DEFAULT_wxUSE_THREADS=yes
2047
2048 DEFAULT_wxUSE_SHARED=yes
2049 DEFAULT_wxUSE_OPTIMISE=no
2050 DEFAULT_wxUSE_PROFILE=no
2051 DEFAULT_wxUSE_NO_DEPS=no
2052 DEFAULT_wxUSE_NO_RTTI=no
2053 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2054 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2055 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2056 DEFAULT_wxUSE_PERMISSIVE=no
2057 DEFAULT_wxUSE_DEBUG_FLAG=yes
2058 DEFAULT_wxUSE_DEBUG_INFO=yes
2059 DEFAULT_wxUSE_DEBUG_GDB=yes
2060 DEFAULT_wxUSE_MEM_TRACING=no
2061 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2062 DEFAULT_wxUSE_DMALLOC=no
2063 DEFAULT_wxUSE_APPLE_IEEE=no
2064
2065 DEFAULT_wxUSE_EXCEPTIONS=no
2066 DEFAULT_wxUSE_LOG=yes
2067 DEFAULT_wxUSE_LOGWINDOW=no
2068 DEFAULT_wxUSE_LOGGUI=no
2069 DEFAULT_wxUSE_LOGDIALOG=no
2070
2071 DEFAULT_wxUSE_GUI=yes
2072 DEFAULT_wxUSE_CONTROLS=no
2073
2074 DEFAULT_wxUSE_REGEX=no
2075 DEFAULT_wxUSE_XML=no
2076 DEFAULT_wxUSE_EXPAT=no
2077 DEFAULT_wxUSE_ZLIB=no
2078 DEFAULT_wxUSE_LIBPNG=no
2079 DEFAULT_wxUSE_LIBJPEG=no
2080 DEFAULT_wxUSE_LIBTIFF=no
2081 DEFAULT_wxUSE_LIBXPM=no
2082 DEFAULT_wxUSE_LIBMSPACK=no
2083 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2084 DEFAULT_wxUSE_LIBGNOMEPRINT=no
3565d135 2085 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2086 DEFAULT_wxUSE_ODBC=no
2087 DEFAULT_wxUSE_OPENGL=no
2088
2089 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2090 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2091 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2092 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2093 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2094 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2095 DEFAULT_wxUSE_CMDLINE_PARSER=no
2096 DEFAULT_wxUSE_DATETIME=no
2097 DEFAULT_wxUSE_TIMER=no
2098 DEFAULT_wxUSE_STOPWATCH=no
2099 DEFAULT_wxUSE_FILE=no
2100 DEFAULT_wxUSE_FFILE=no
07158944 2101 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2102 DEFAULT_wxUSE_TEXTBUFFER=no
2103 DEFAULT_wxUSE_TEXTFILE=no
2104 DEFAULT_wxUSE_SOUND=no
3b57de8b 2105 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2106 DEFAULT_wxUSE_INTL=no
2107 DEFAULT_wxUSE_CONFIG=no
2108 DEFAULT_wxUSE_FONTMAP=no
2109 DEFAULT_wxUSE_STREAMS=no
2110 DEFAULT_wxUSE_SOCKETS=no
2111 DEFAULT_wxUSE_OLE=no
2112 DEFAULT_wxUSE_DATAOBJ=no
2113 DEFAULT_wxUSE_DIALUP_MANAGER=no
2114 DEFAULT_wxUSE_JOYSTICK=no
2115 DEFAULT_wxUSE_DYNLIB_CLASS=no
2116 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2117 DEFAULT_wxUSE_LONGLONG=no
2118 DEFAULT_wxUSE_GEOMETRY=no
2119
2120 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2121 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2122 DEFAULT_wxUSE_POSTSCRIPT=no
2123
2124 DEFAULT_wxUSE_CLIPBOARD=no
2125 DEFAULT_wxUSE_TOOLTIPS=no
2126 DEFAULT_wxUSE_DRAG_AND_DROP=no
2127 DEFAULT_wxUSE_DRAGIMAGE=no
2128 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2129 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2130
8a7b1113 2131 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2132 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2133 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2134 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2135
2136 DEFAULT_wxUSE_RESOURCES=no
2137 DEFAULT_wxUSE_CONSTRAINTS=no
2138 DEFAULT_wxUSE_IPC=no
2139 DEFAULT_wxUSE_HELP=no
2140 DEFAULT_wxUSE_MS_HTML_HELP=no
2141 DEFAULT_wxUSE_WXHTML_HELP=no
2142 DEFAULT_wxUSE_TREELAYOUT=no
2143 DEFAULT_wxUSE_METAFILE=no
2144 DEFAULT_wxUSE_MIMETYPE=no
2145 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2146 DEFAULT_wxUSE_PROTOCOL=no
2147 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2148 DEFAULT_wxUSE_PROTOCOL_FTP=no
2149 DEFAULT_wxUSE_PROTOCOL_FILE=no
2150 DEFAULT_wxUSE_URL=no
2151
2152 DEFAULT_wxUSE_COMMONDLGS=no
2153 DEFAULT_wxUSE_CHOICEDLG=no
2154 DEFAULT_wxUSE_COLOURDLG=no
2155 DEFAULT_wxUSE_DIRDLG=no
2156 DEFAULT_wxUSE_FILEDLG=no
2157 DEFAULT_wxUSE_FINDREPLDLG=no
2158 DEFAULT_wxUSE_FONTDLG=no
2159 DEFAULT_wxUSE_MSGDLG=no
2160 DEFAULT_wxUSE_NUMBERDLG=no
2161 DEFAULT_wxUSE_TEXTDLG=no
2162 DEFAULT_wxUSE_SPLASH=no
2163 DEFAULT_wxUSE_STARTUP_TIPS=no
2164 DEFAULT_wxUSE_PROGRESSDLG=no
2165 DEFAULT_wxUSE_WIZARDDLG=no
2166
2167 DEFAULT_wxUSE_MENUS=no
2168 DEFAULT_wxUSE_MINIFRAME=no
2169 DEFAULT_wxUSE_HTML=no
91dea314 2170 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2171 DEFAULT_wxUSE_XRC=no
646b6ec1 2172 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2173 DEFAULT_wxUSE_FILESYSTEM=no
2174 DEFAULT_wxUSE_FS_INET=no
2175 DEFAULT_wxUSE_FS_ZIP=no
2176 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2177 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2178 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2179 DEFAULT_wxUSE_VALIDATORS=no
2180
2181 DEFAULT_wxUSE_ACCEL=no
2182 DEFAULT_wxUSE_BUTTON=no
2183 DEFAULT_wxUSE_BMPBUTTON=no
2184 DEFAULT_wxUSE_CALCTRL=no
2185 DEFAULT_wxUSE_CARET=no
2186 DEFAULT_wxUSE_CHECKBOX=no
2187 DEFAULT_wxUSE_CHECKLST=no
2188 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2189 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2190 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2191 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2192 DEFAULT_wxUSE_DISPLAY=no
2193 DEFAULT_wxUSE_GAUGE=no
2194 DEFAULT_wxUSE_GRID=no
20e34ecc 2195 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2196 DEFAULT_wxUSE_IMAGLIST=no
2197 DEFAULT_wxUSE_LISTBOOK=no
2198 DEFAULT_wxUSE_LISTBOX=no
2199 DEFAULT_wxUSE_LISTCTRL=no
2200 DEFAULT_wxUSE_NOTEBOOK=no
2201 DEFAULT_wxUSE_RADIOBOX=no
2202 DEFAULT_wxUSE_RADIOBTN=no
2203 DEFAULT_wxUSE_SASH=no
2204 DEFAULT_wxUSE_SCROLLBAR=no
2205 DEFAULT_wxUSE_SLIDER=no
2206 DEFAULT_wxUSE_SPINBTN=no
2207 DEFAULT_wxUSE_SPINCTRL=no
2208 DEFAULT_wxUSE_SPLITTER=no
2209 DEFAULT_wxUSE_STATBMP=no
2210 DEFAULT_wxUSE_STATBOX=no
2211 DEFAULT_wxUSE_STATLINE=no
2212 DEFAULT_wxUSE_STATTEXT=no
2213 DEFAULT_wxUSE_STATUSBAR=yes
2214 DEFAULT_wxUSE_TABDIALOG=no
2215 DEFAULT_wxUSE_TEXTCTRL=no
2216 DEFAULT_wxUSE_TOGGLEBTN=no
2217 DEFAULT_wxUSE_TOOLBAR=no
2218 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2219 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2220 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
2221 DEFAULT_wxUSE_TREECTRL=no
2222 DEFAULT_wxUSE_POPUPWIN=no
2223 DEFAULT_wxUSE_TIPWINDOW=no
2224
2225 DEFAULT_wxUSE_UNICODE=no
2226 DEFAULT_wxUSE_UNICODE_MSLU=no
2227 DEFAULT_wxUSE_WCSRTOMBS=no
2228
2229 DEFAULT_wxUSE_PALETTE=no
2230 DEFAULT_wxUSE_IMAGE=no
2231 DEFAULT_wxUSE_GIF=no
2232 DEFAULT_wxUSE_PCX=no
2233 DEFAULT_wxUSE_PNM=no
2234 DEFAULT_wxUSE_IFF=no
2235 DEFAULT_wxUSE_XPM=no
2236 DEFAULT_wxUSE_ICO_CUR=no
2237 DEFAULT_wxUSE_ACCESSIBILITY=no
2238
2239 DEFAULT_wxUSE_MONOLITHIC=no
2240 DEFAULT_wxUSE_PLUGINS=no
2241 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2242else
2243 DEFAULT_wxUSE_UNIVERSAL=no
2244 DEFAULT_wxUSE_STL=no
2245
2246 DEFAULT_wxUSE_NANOX=no
2247
2248 DEFAULT_wxUSE_THREADS=yes
2249
2250 DEFAULT_wxUSE_SHARED=yes
2251 DEFAULT_wxUSE_OPTIMISE=yes
2252 DEFAULT_wxUSE_PROFILE=no
2253 DEFAULT_wxUSE_NO_DEPS=no
2254 DEFAULT_wxUSE_NO_RTTI=no
2255 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2256 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2257 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2258 DEFAULT_wxUSE_PERMISSIVE=no
2259 DEFAULT_wxUSE_DEBUG_FLAG=no
2260 DEFAULT_wxUSE_DEBUG_INFO=no
2261 DEFAULT_wxUSE_DEBUG_GDB=no
2262 DEFAULT_wxUSE_MEM_TRACING=no
2263 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2264 DEFAULT_wxUSE_DMALLOC=no
2265 DEFAULT_wxUSE_APPLE_IEEE=yes
2266
2267 DEFAULT_wxUSE_EXCEPTIONS=yes
2268 DEFAULT_wxUSE_LOG=yes
2269 DEFAULT_wxUSE_LOGWINDOW=yes
2270 DEFAULT_wxUSE_LOGGUI=yes
2271 DEFAULT_wxUSE_LOGDIALOG=yes
2272
2273 DEFAULT_wxUSE_GUI=yes
2274
2275 DEFAULT_wxUSE_REGEX=yes
2276 DEFAULT_wxUSE_XML=yes
2277 DEFAULT_wxUSE_EXPAT=yes
2278 DEFAULT_wxUSE_ZLIB=yes
2279 DEFAULT_wxUSE_LIBPNG=yes
2280 DEFAULT_wxUSE_LIBJPEG=yes
2281 DEFAULT_wxUSE_LIBTIFF=yes
2282 DEFAULT_wxUSE_LIBXPM=yes
2283 DEFAULT_wxUSE_LIBMSPACK=yes
2284 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2285 DEFAULT_wxUSE_LIBGNOMEPRINT=no
3565d135 2286 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2287 DEFAULT_wxUSE_ODBC=no
52cb607e 2288 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2289
2290 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2291 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2292 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2293 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2294 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2295 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2296 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2297 DEFAULT_wxUSE_DATETIME=yes
2298 DEFAULT_wxUSE_TIMER=yes
2299 DEFAULT_wxUSE_STOPWATCH=yes
2300 DEFAULT_wxUSE_FILE=yes
2301 DEFAULT_wxUSE_FFILE=yes
07158944 2302 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2303 DEFAULT_wxUSE_TEXTBUFFER=yes
2304 DEFAULT_wxUSE_TEXTFILE=yes
2305 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2306 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2307 DEFAULT_wxUSE_INTL=yes
2308 DEFAULT_wxUSE_CONFIG=yes
2309 DEFAULT_wxUSE_FONTMAP=yes
2310 DEFAULT_wxUSE_STREAMS=yes
2311 DEFAULT_wxUSE_SOCKETS=yes
2312 DEFAULT_wxUSE_OLE=yes
2313 DEFAULT_wxUSE_DATAOBJ=yes
2314 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2315 DEFAULT_wxUSE_JOYSTICK=yes
2316 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2317 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2318 DEFAULT_wxUSE_LONGLONG=yes
2319 DEFAULT_wxUSE_GEOMETRY=yes
2320
2321 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2322 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2323 DEFAULT_wxUSE_POSTSCRIPT=yes
2324
2325 DEFAULT_wxUSE_CLIPBOARD=yes
2326 DEFAULT_wxUSE_TOOLTIPS=yes
2327 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2328 DEFAULT_wxUSE_DRAGIMAGE=yes
2329 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2330 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2331
8a7b1113 2332 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2333 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2334 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2335 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2336
2337 DEFAULT_wxUSE_RESOURCES=no
2338 DEFAULT_wxUSE_CONSTRAINTS=yes
2339 DEFAULT_wxUSE_IPC=yes
2340 DEFAULT_wxUSE_HELP=yes
2341 DEFAULT_wxUSE_MS_HTML_HELP=yes
2342 DEFAULT_wxUSE_WXHTML_HELP=yes
2343 DEFAULT_wxUSE_TREELAYOUT=yes
2344 DEFAULT_wxUSE_METAFILE=yes
2345 DEFAULT_wxUSE_MIMETYPE=yes
2346 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2347 DEFAULT_wxUSE_PROTOCOL=yes
2348 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2349 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2350 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2351 DEFAULT_wxUSE_URL=yes
2352
2353 DEFAULT_wxUSE_COMMONDLGS=yes
2354 DEFAULT_wxUSE_CHOICEDLG=yes
2355 DEFAULT_wxUSE_COLOURDLG=yes
2356 DEFAULT_wxUSE_DIRDLG=yes
2357 DEFAULT_wxUSE_FILEDLG=yes
2358 DEFAULT_wxUSE_FINDREPLDLG=yes
2359 DEFAULT_wxUSE_FONTDLG=yes
2360 DEFAULT_wxUSE_MSGDLG=yes
2361 DEFAULT_wxUSE_NUMBERDLG=yes
2362 DEFAULT_wxUSE_TEXTDLG=yes
2363 DEFAULT_wxUSE_SPLASH=yes
2364 DEFAULT_wxUSE_STARTUP_TIPS=yes
2365 DEFAULT_wxUSE_PROGRESSDLG=yes
2366 DEFAULT_wxUSE_WIZARDDLG=yes
2367
2368 DEFAULT_wxUSE_MENUS=yes
2369 DEFAULT_wxUSE_MINIFRAME=yes
2370 DEFAULT_wxUSE_HTML=yes
91dea314 2371 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2372 DEFAULT_wxUSE_XRC=yes
646b6ec1 2373 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2374 DEFAULT_wxUSE_FILESYSTEM=yes
2375 DEFAULT_wxUSE_FS_INET=yes
2376 DEFAULT_wxUSE_FS_ZIP=yes
2377 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2378 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2379 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2380 DEFAULT_wxUSE_VALIDATORS=yes
2381
2382 DEFAULT_wxUSE_ACCEL=yes
2383 DEFAULT_wxUSE_BUTTON=yes
2384 DEFAULT_wxUSE_BMPBUTTON=yes
2385 DEFAULT_wxUSE_CALCTRL=yes
2386 DEFAULT_wxUSE_CARET=yes
2387 DEFAULT_wxUSE_CHECKBOX=yes
2388 DEFAULT_wxUSE_CHECKLST=yes
2389 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2390 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2391 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2392 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2393 DEFAULT_wxUSE_DISPLAY=yes
2394 DEFAULT_wxUSE_GAUGE=yes
2395 DEFAULT_wxUSE_GRID=yes
20e34ecc 2396 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2397 DEFAULT_wxUSE_IMAGLIST=yes
2398 DEFAULT_wxUSE_LISTBOOK=yes
2399 DEFAULT_wxUSE_LISTBOX=yes
2400 DEFAULT_wxUSE_LISTCTRL=yes
2401 DEFAULT_wxUSE_NOTEBOOK=yes
2402 DEFAULT_wxUSE_RADIOBOX=yes
2403 DEFAULT_wxUSE_RADIOBTN=yes
2404 DEFAULT_wxUSE_SASH=yes
2405 DEFAULT_wxUSE_SCROLLBAR=yes
2406 DEFAULT_wxUSE_SLIDER=yes
2407 DEFAULT_wxUSE_SPINBTN=yes
2408 DEFAULT_wxUSE_SPINCTRL=yes
2409 DEFAULT_wxUSE_SPLITTER=yes
2410 DEFAULT_wxUSE_STATBMP=yes
2411 DEFAULT_wxUSE_STATBOX=yes
2412 DEFAULT_wxUSE_STATLINE=yes
2413 DEFAULT_wxUSE_STATTEXT=yes
2414 DEFAULT_wxUSE_STATUSBAR=yes
2415 DEFAULT_wxUSE_TABDIALOG=no
2416 DEFAULT_wxUSE_TEXTCTRL=yes
2417 DEFAULT_wxUSE_TOGGLEBTN=yes
2418 DEFAULT_wxUSE_TOOLBAR=yes
2419 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2420 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2421 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
2422 DEFAULT_wxUSE_TREECTRL=yes
2423 DEFAULT_wxUSE_POPUPWIN=yes
2424 DEFAULT_wxUSE_TIPWINDOW=yes
2425
78de529b 2426 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2427 DEFAULT_wxUSE_UNICODE_MSLU=yes
2428 DEFAULT_wxUSE_WCSRTOMBS=no
2429
2430 DEFAULT_wxUSE_PALETTE=yes
2431 DEFAULT_wxUSE_IMAGE=yes
2432 DEFAULT_wxUSE_GIF=yes
2433 DEFAULT_wxUSE_PCX=yes
2434 DEFAULT_wxUSE_IFF=no
2435 DEFAULT_wxUSE_PNM=yes
2436 DEFAULT_wxUSE_XPM=yes
2437 DEFAULT_wxUSE_ICO_CUR=yes
2438 DEFAULT_wxUSE_ACCESSIBILITY=no
2439
2440 DEFAULT_wxUSE_MONOLITHIC=no
2441 DEFAULT_wxUSE_PLUGINS=no
2442 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2443
f34ca037 2444 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2445fi
2446
2447
2448
f34ca037 2449
a848cd7e
SC
2450for toolkit in `echo $ALL_TOOLKITS`; do
2451 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2452 if test "x$LINE" != "x" ; then
2453 has_toolkit_in_cache=1
2454 eval "DEFAULT_$LINE"
2455 eval "CACHE_$toolkit=1"
f34ca037
MW
2456
2457 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2458 if test "x$LINE" != "x" ; then
2459 eval "DEFAULT_$LINE"
2460 fi
a848cd7e
SC
2461 fi
2462done
2463
2464
2465
2466 enablestring=
2467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2468echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2469 no_cache=0
2470 # Check whether --enable-gui or --disable-gui was given.
2471if test "${enable_gui+set}" = set; then
2472 enableval="$enable_gui"
2473
2474 if test "$enableval" = yes; then
2475 ac_cv_use_gui='wxUSE_GUI=yes'
2476 else
2477 ac_cv_use_gui='wxUSE_GUI=no'
2478 fi
2479
2480else
2481
2482 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2483 if test "x$LINE" != x ; then
2484 eval "DEFAULT_$LINE"
2485 else
2486 no_cache=1
2487 fi
2488
2489 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2490
2491fi;
2492
2493 eval "$ac_cv_use_gui"
2494 if test "$no_cache" != 1; then
2495 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2496 fi
2497
2498 if test "$wxUSE_GUI" = yes; then
2499 echo "$as_me:$LINENO: result: yes" >&5
2500echo "${ECHO_T}yes" >&6
2501 else
2502 echo "$as_me:$LINENO: result: no" >&5
2503echo "${ECHO_T}no" >&6
2504 fi
2505
2506
2507 enablestring=
2508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2509echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2510 no_cache=0
2511 # Check whether --enable-monolithic or --disable-monolithic was given.
2512if test "${enable_monolithic+set}" = set; then
2513 enableval="$enable_monolithic"
2514
2515 if test "$enableval" = yes; then
2516 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2517 else
2518 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2519 fi
2520
2521else
2522
2523 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2524 if test "x$LINE" != x ; then
2525 eval "DEFAULT_$LINE"
2526 else
2527 no_cache=1
2528 fi
2529
2530 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2531
2532fi;
2533
2534 eval "$ac_cv_use_monolithic"
2535 if test "$no_cache" != 1; then
2536 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2537 fi
2538
2539 if test "$wxUSE_MONOLITHIC" = yes; then
2540 echo "$as_me:$LINENO: result: yes" >&5
2541echo "${ECHO_T}yes" >&6
2542 else
2543 echo "$as_me:$LINENO: result: no" >&5
2544echo "${ECHO_T}no" >&6
2545 fi
2546
2547
2548 enablestring=
2549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2550echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2551 no_cache=0
2552 # Check whether --enable-plugins or --disable-plugins was given.
2553if test "${enable_plugins+set}" = set; then
2554 enableval="$enable_plugins"
2555
2556 if test "$enableval" = yes; then
2557 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2558 else
2559 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2560 fi
2561
2562else
2563
2564 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2565 if test "x$LINE" != x ; then
2566 eval "DEFAULT_$LINE"
2567 else
2568 no_cache=1
2569 fi
2570
2571 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2572
2573fi;
2574
2575 eval "$ac_cv_use_plugins"
2576 if test "$no_cache" != 1; then
2577 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2578 fi
2579
2580 if test "$wxUSE_PLUGINS" = yes; then
2581 echo "$as_me:$LINENO: result: yes" >&5
2582echo "${ECHO_T}yes" >&6
2583 else
2584 echo "$as_me:$LINENO: result: no" >&5
2585echo "${ECHO_T}no" >&6
2586 fi
2587
2588
1c14217d
VZ
2589 withstring=without
2590 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2591echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2592 no_cache=0
2593
2594# Check whether --with-subdirs or --without-subdirs was given.
2595if test "${with_subdirs+set}" = set; then
2596 withval="$with_subdirs"
2597
2598 if test "$withval" = yes; then
2599 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2600 else
2601 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2602 fi
2603
2604else
2605
2606 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2607 if test "x$LINE" != x ; then
2608 eval "DEFAULT_$LINE"
2609 else
2610 no_cache=1
2611 fi
2612
2613 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2614
2615fi;
2616
2617 eval "$ac_cv_use_subdirs"
2618 if test "$no_cache" != 1; then
2619 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2620 fi
2621
2622 if test "$wxWITH_SUBDIRS" = yes; then
2623 echo "$as_me:$LINENO: result: yes" >&5
2624echo "${ECHO_T}yes" >&6
2625 else
2626 echo "$as_me:$LINENO: result: no" >&5
2627echo "${ECHO_T}no" >&6
2628 fi
2629
2630
a848cd7e
SC
2631if test "$wxUSE_GUI" = "yes"; then
2632
2633
2634 enablestring=
2635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2636echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2637 no_cache=0
2638 # Check whether --enable-universal or --disable-universal was given.
2639if test "${enable_universal+set}" = set; then
2640 enableval="$enable_universal"
2641
2642 if test "$enableval" = yes; then
2643 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2644 else
2645 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2646 fi
2647
2648else
2649
2650 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2651 if test "x$LINE" != x ; then
2652 eval "DEFAULT_$LINE"
2653 else
2654 no_cache=1
2655 fi
2656
2657 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2658
2659fi;
2660
2661 eval "$ac_cv_use_universal"
2662 if test "$no_cache" != 1; then
2663 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2664 fi
2665
2666 if test "$wxUSE_UNIVERSAL" = yes; then
2667 echo "$as_me:$LINENO: result: yes" >&5
2668echo "${ECHO_T}yes" >&6
2669 else
2670 echo "$as_me:$LINENO: result: no" >&5
2671echo "${ECHO_T}no" >&6
2672 fi
2673
2674
2675# Check whether --with-gtk or --without-gtk was given.
2676if test "${with_gtk+set}" = set; then
2677 withval="$with_gtk"
2678 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2679fi;
2680
2681# Check whether --with-motif or --without-motif was given.
2682if test "${with_motif+set}" = set; then
2683 withval="$with_motif"
2684 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2685fi;
2686
2687# Check whether --with-mac or --without-mac was given.
2688if test "${with_mac+set}" = set; then
2689 withval="$with_mac"
c228d3a4 2690 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2691fi;
2692
2693# Check whether --with-cocoa or --without-cocoa was given.
2694if test "${with_cocoa+set}" = set; then
2695 withval="$with_cocoa"
c228d3a4 2696 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2697fi;
2698
2699# Check whether --with-wine or --without-wine was given.
2700if test "${with_wine+set}" = set; then
2701 withval="$with_wine"
2702 wxUSE_WINE="$withval" CACHE_WINE=1
2703fi;
2704
2705# Check whether --with-msw or --without-msw was given.
2706if test "${with_msw+set}" = set; then
2707 withval="$with_msw"
2708 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2709fi;
2710
2711# Check whether --with-pm or --without-pm was given.
2712if test "${with_pm+set}" = set; then
2713 withval="$with_pm"
2714 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2715fi;
2716
2717# Check whether --with-mgl or --without-mgl was given.
2718if test "${with_mgl+set}" = set; then
2719 withval="$with_mgl"
2720 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2721fi;
2722
2723# Check whether --with-microwin or --without-microwin was given.
2724if test "${with_microwin+set}" = set; then
2725 withval="$with_microwin"
2726 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2727fi;
2728
2729# Check whether --with-x11 or --without-x11 was given.
2730if test "${with_x11+set}" = set; then
2731 withval="$with_x11"
2732 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2733fi;
2734
2735 enablestring=
2736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2737echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2738 no_cache=0
2739 # Check whether --enable-nanox or --disable-nanox was given.
2740if test "${enable_nanox+set}" = set; then
2741 enableval="$enable_nanox"
2742
2743 if test "$enableval" = yes; then
2744 ac_cv_use_nanox='wxUSE_NANOX=yes'
2745 else
2746 ac_cv_use_nanox='wxUSE_NANOX=no'
2747 fi
2748
2749else
2750
2751 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
2758 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2759
2760fi;
2761
2762 eval "$ac_cv_use_nanox"
2763 if test "$no_cache" != 1; then
2764 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2765 fi
2766
2767 if test "$wxUSE_NANOX" = yes; then
2768 echo "$as_me:$LINENO: result: yes" >&5
2769echo "${ECHO_T}yes" >&6
2770 else
2771 echo "$as_me:$LINENO: result: no" >&5
2772echo "${ECHO_T}no" >&6
2773 fi
2774
2775
f34ca037
MW
2776# Check whether --enable-gtk2 or --disable-gtk2 was given.
2777if test "${enable_gtk2+set}" = set; then
2778 enableval="$enable_gtk2"
2779 wxUSE_GTK2="$enableval"
2780fi;
a848cd7e 2781
a848cd7e
SC
2782 enablestring=
2783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2784echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2785 no_cache=0
2786 # Check whether --enable-gpe or --disable-gpe was given.
2787if test "${enable_gpe+set}" = set; then
2788 enableval="$enable_gpe"
2789
2790 if test "$enableval" = yes; then
2791 ac_cv_use_gpe='wxUSE_GPE=yes'
2792 else
2793 ac_cv_use_gpe='wxUSE_GPE=no'
2794 fi
2795
2796else
2797
2798 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2799 if test "x$LINE" != x ; then
2800 eval "DEFAULT_$LINE"
2801 else
2802 no_cache=1
2803 fi
2804
2805 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2806
2807fi;
2808
2809 eval "$ac_cv_use_gpe"
2810 if test "$no_cache" != 1; then
2811 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2812 fi
2813
2814 if test "$wxUSE_GPE" = yes; then
2815 echo "$as_me:$LINENO: result: yes" >&5
2816echo "${ECHO_T}yes" >&6
2817 else
2818 echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6
2820 fi
2821
2822
2823
2824 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2825echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2826 no_cache=0
2827
2828# Check whether --with-libpng or --without-libpng was given.
2829if test "${with_libpng+set}" = set; then
2830 withval="$with_libpng"
2831
2832 if test "$withval" = yes; then
2833 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2834 elif test "$withval" = no; then
2835 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2836 elif test "$withval" = sys; then
2837 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2838 elif test "$withval" = builtin; then
2839 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2840 else
2841 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2842echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2843 { (exit 1); exit 1; }; }
2844 fi
2845
2846else
2847
2848 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2849 if test "x$LINE" != x ; then
2850 eval "DEFAULT_$LINE"
2851 else
2852 no_cache=1
2853 fi
2854
2855 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2856
2857fi;
2858
2859 eval "$ac_cv_use_libpng"
2860 if test "$no_cache" != 1; then
2861 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2862 fi
2863
2864 if test "$wxUSE_LIBPNG" = yes; then
2865 echo "$as_me:$LINENO: result: yes" >&5
2866echo "${ECHO_T}yes" >&6
2867 elif test "$wxUSE_LIBPNG" = no; then
2868 echo "$as_me:$LINENO: result: no" >&5
2869echo "${ECHO_T}no" >&6
2870 elif test "$wxUSE_LIBPNG" = sys; then
2871 echo "$as_me:$LINENO: result: system version" >&5
2872echo "${ECHO_T}system version" >&6
2873 elif test "$wxUSE_LIBPNG" = builtin; then
2874 echo "$as_me:$LINENO: result: builtin version" >&5
2875echo "${ECHO_T}builtin version" >&6
2876 else
2877 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2878echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2879 { (exit 1); exit 1; }; }
2880 fi
2881
2882
2883 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2884echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2885 no_cache=0
2886
2887# Check whether --with-libjpeg or --without-libjpeg was given.
2888if test "${with_libjpeg+set}" = set; then
2889 withval="$with_libjpeg"
2890
2891 if test "$withval" = yes; then
2892 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2893 elif test "$withval" = no; then
2894 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2895 elif test "$withval" = sys; then
2896 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2897 elif test "$withval" = builtin; then
2898 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2899 else
2900 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2901echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2902 { (exit 1); exit 1; }; }
2903 fi
2904
2905else
2906
2907 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2908 if test "x$LINE" != x ; then
2909 eval "DEFAULT_$LINE"
2910 else
2911 no_cache=1
2912 fi
2913
2914 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2915
2916fi;
2917
2918 eval "$ac_cv_use_libjpeg"
2919 if test "$no_cache" != 1; then
2920 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2921 fi
2922
2923 if test "$wxUSE_LIBJPEG" = yes; then
2924 echo "$as_me:$LINENO: result: yes" >&5
2925echo "${ECHO_T}yes" >&6
2926 elif test "$wxUSE_LIBJPEG" = no; then
2927 echo "$as_me:$LINENO: result: no" >&5
2928echo "${ECHO_T}no" >&6
2929 elif test "$wxUSE_LIBJPEG" = sys; then
2930 echo "$as_me:$LINENO: result: system version" >&5
2931echo "${ECHO_T}system version" >&6
2932 elif test "$wxUSE_LIBJPEG" = builtin; then
2933 echo "$as_me:$LINENO: result: builtin version" >&5
2934echo "${ECHO_T}builtin version" >&6
2935 else
2936 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2937echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2938 { (exit 1); exit 1; }; }
2939 fi
2940
2941
2942 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2943echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2944 no_cache=0
2945
2946# Check whether --with-libtiff or --without-libtiff was given.
2947if test "${with_libtiff+set}" = set; then
2948 withval="$with_libtiff"
2949
2950 if test "$withval" = yes; then
2951 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2952 elif test "$withval" = no; then
2953 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2954 elif test "$withval" = sys; then
2955 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2956 elif test "$withval" = builtin; then
2957 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2958 else
2959 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2960echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2961 { (exit 1); exit 1; }; }
2962 fi
2963
2964else
2965
2966 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2967 if test "x$LINE" != x ; then
2968 eval "DEFAULT_$LINE"
2969 else
2970 no_cache=1
2971 fi
2972
2973 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2974
2975fi;
2976
2977 eval "$ac_cv_use_libtiff"
2978 if test "$no_cache" != 1; then
2979 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2980 fi
2981
2982 if test "$wxUSE_LIBTIFF" = yes; then
2983 echo "$as_me:$LINENO: result: yes" >&5
2984echo "${ECHO_T}yes" >&6
2985 elif test "$wxUSE_LIBTIFF" = no; then
2986 echo "$as_me:$LINENO: result: no" >&5
2987echo "${ECHO_T}no" >&6
2988 elif test "$wxUSE_LIBTIFF" = sys; then
2989 echo "$as_me:$LINENO: result: system version" >&5
2990echo "${ECHO_T}system version" >&6
2991 elif test "$wxUSE_LIBTIFF" = builtin; then
2992 echo "$as_me:$LINENO: result: builtin version" >&5
2993echo "${ECHO_T}builtin version" >&6
2994 else
2995 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2996echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2997 { (exit 1); exit 1; }; }
2998 fi
2999
3000
3001 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3002echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3003 no_cache=0
3004
3005# Check whether --with-libxpm or --without-libxpm was given.
3006if test "${with_libxpm+set}" = set; then
3007 withval="$with_libxpm"
3008
3009 if test "$withval" = yes; then
3010 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3011 elif test "$withval" = no; then
3012 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3013 elif test "$withval" = sys; then
3014 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3015 elif test "$withval" = builtin; then
3016 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3017 else
3018 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3019echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3020 { (exit 1); exit 1; }; }
3021 fi
3022
3023else
3024
3025 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3026 if test "x$LINE" != x ; then
3027 eval "DEFAULT_$LINE"
3028 else
3029 no_cache=1
3030 fi
3031
3032 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3033
3034fi;
3035
3036 eval "$ac_cv_use_libxpm"
3037 if test "$no_cache" != 1; then
3038 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3039 fi
3040
3041 if test "$wxUSE_LIBXPM" = yes; then
3042 echo "$as_me:$LINENO: result: yes" >&5
3043echo "${ECHO_T}yes" >&6
3044 elif test "$wxUSE_LIBXPM" = no; then
3045 echo "$as_me:$LINENO: result: no" >&5
3046echo "${ECHO_T}no" >&6
3047 elif test "$wxUSE_LIBXPM" = sys; then
3048 echo "$as_me:$LINENO: result: system version" >&5
3049echo "${ECHO_T}system version" >&6
3050 elif test "$wxUSE_LIBXPM" = builtin; then
3051 echo "$as_me:$LINENO: result: builtin version" >&5
3052echo "${ECHO_T}builtin version" >&6
3053 else
3054 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3055echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3056 { (exit 1); exit 1; }; }
3057 fi
3058
3059
1c14217d
VZ
3060 withstring=
3061 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3062echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3063 no_cache=0
3064
3065# Check whether --with-libmspack or --without-libmspack was given.
3066if test "${with_libmspack+set}" = set; then
3067 withval="$with_libmspack"
3068
3069 if test "$withval" = yes; then
3070 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3071 else
3072 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3073 fi
3074
3075else
3076
3077 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3078 if test "x$LINE" != x ; then
3079 eval "DEFAULT_$LINE"
3080 else
3081 no_cache=1
3082 fi
3083
3084 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3085
3086fi;
3087
3088 eval "$ac_cv_use_libmspack"
3089 if test "$no_cache" != 1; then
3090 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3091 fi
3092
3093 if test "$wxUSE_LIBMSPACK" = yes; then
3094 echo "$as_me:$LINENO: result: yes" >&5
3095echo "${ECHO_T}yes" >&6
3096 else
3097 echo "$as_me:$LINENO: result: no" >&5
3098echo "${ECHO_T}no" >&6
3099 fi
3100
3101
1c14217d
VZ
3102 withstring=
3103 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3104echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3105 no_cache=0
3106
3107# Check whether --with-sdl or --without-sdl was given.
3108if test "${with_sdl+set}" = set; then
3109 withval="$with_sdl"
3110
3111 if test "$withval" = yes; then
3112 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3113 else
3114 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3115 fi
3116
3117else
3118
3119 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3120 if test "x$LINE" != x ; then
3121 eval "DEFAULT_$LINE"
3122 else
3123 no_cache=1
3124 fi
3125
3126 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3127
3128fi;
3129
3130 eval "$ac_cv_use_sdl"
3131 if test "$no_cache" != 1; then
3132 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3133 fi
3134
3135 if test "$wxUSE_LIBSDL" = yes; then
3136 echo "$as_me:$LINENO: result: yes" >&5
3137echo "${ECHO_T}yes" >&6
3138 else
3139 echo "$as_me:$LINENO: result: no" >&5
3140echo "${ECHO_T}no" >&6
3141 fi
3142
3143
1c14217d
VZ
3144 withstring=
3145 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3146echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3147 no_cache=0
3148
3149# Check whether --with-gnomeprint or --without-gnomeprint was given.
3150if test "${with_gnomeprint+set}" = set; then
3151 withval="$with_gnomeprint"
3152
3153 if test "$withval" = yes; then
3154 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3155 else
3156 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3157 fi
3158
3159else
3160
3161 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3162 if test "x$LINE" != x ; then
3163 eval "DEFAULT_$LINE"
3164 else
3165 no_cache=1
3166 fi
3167
3168 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3169
3170fi;
3171
3172 eval "$ac_cv_use_gnomeprint"
3173 if test "$no_cache" != 1; then
3174 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3175 fi
3176
3177 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3178 echo "$as_me:$LINENO: result: yes" >&5
3179echo "${ECHO_T}yes" >&6
3180 else
3181 echo "$as_me:$LINENO: result: no" >&5
3182echo "${ECHO_T}no" >&6
3183 fi
3184
3185
3565d135
RR
3186 withstring=
3187 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3188echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3189 no_cache=0
3190
3191# Check whether --with-hildon or --without-hildon was given.
3192if test "${with_hildon+set}" = set; then
3193 withval="$with_hildon"
3194
3195 if test "$withval" = yes; then
3196 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3197 else
3198 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3199 fi
3200
3201else
3202
3203 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3204 if test "x$LINE" != x ; then
3205 eval "DEFAULT_$LINE"
3206 else
3207 no_cache=1
3208 fi
3209
3210 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3211
3212fi;
3213
3214 eval "$ac_cv_use_hildon"
3215 if test "$no_cache" != 1; then
3216 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3217 fi
3218
3219 if test "$wxUSE_LIBHILDON" = yes; then
3220 echo "$as_me:$LINENO: result: yes" >&5
3221echo "${ECHO_T}yes" >&6
3222 else
3223 echo "$as_me:$LINENO: result: no" >&5
3224echo "${ECHO_T}no" >&6
3225 fi
3226
3227
1c14217d
VZ
3228 withstring=
3229 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3230echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3231 no_cache=0
3232
3233# Check whether --with-opengl or --without-opengl was given.
3234if test "${with_opengl+set}" = set; then
3235 withval="$with_opengl"
3236
3237 if test "$withval" = yes; then
3238 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3239 else
3240 ac_cv_use_opengl='wxUSE_OPENGL=no'
3241 fi
3242
3243else
3244
3245 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3246 if test "x$LINE" != x ; then
3247 eval "DEFAULT_$LINE"
3248 else
3249 no_cache=1
3250 fi
3251
3252 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3253
3254fi;
3255
3256 eval "$ac_cv_use_opengl"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_OPENGL" = yes; then
3262 echo "$as_me:$LINENO: result: yes" >&5
3263echo "${ECHO_T}yes" >&6
3264 else
3265 echo "$as_me:$LINENO: result: no" >&5
3266echo "${ECHO_T}no" >&6
3267 fi
3268
3269
3270fi
3271
3272
1c14217d
VZ
3273 withstring=
3274 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3275echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3276 no_cache=0
3277
3278# Check whether --with-dmalloc or --without-dmalloc was given.
3279if test "${with_dmalloc+set}" = set; then
3280 withval="$with_dmalloc"
3281
3282 if test "$withval" = yes; then
3283 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3284 else
3285 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3286 fi
3287
3288else
3289
3290 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3298
3299fi;
3300
3301 eval "$ac_cv_use_dmalloc"
3302 if test "$no_cache" != 1; then
3303 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3304 fi
3305
3306 if test "$wxUSE_DMALLOC" = yes; then
3307 echo "$as_me:$LINENO: result: yes" >&5
3308echo "${ECHO_T}yes" >&6
3309 else
3310 echo "$as_me:$LINENO: result: no" >&5
3311echo "${ECHO_T}no" >&6
3312 fi
3313
3314
3315 echo "$as_me:$LINENO: checking for --with-regex" >&5
3316echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3317 no_cache=0
3318
3319# Check whether --with-regex or --without-regex was given.
3320if test "${with_regex+set}" = set; then
3321 withval="$with_regex"
3322
3323 if test "$withval" = yes; then
3324 ac_cv_use_regex='wxUSE_REGEX=yes'
3325 elif test "$withval" = no; then
3326 ac_cv_use_regex='wxUSE_REGEX=no'
3327 elif test "$withval" = sys; then
3328 ac_cv_use_regex='wxUSE_REGEX=sys'
3329 elif test "$withval" = builtin; then
3330 ac_cv_use_regex='wxUSE_REGEX=builtin'
3331 else
3332 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3333echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3334 { (exit 1); exit 1; }; }
3335 fi
3336
3337else
3338
3339 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3340 if test "x$LINE" != x ; then
3341 eval "DEFAULT_$LINE"
3342 else
3343 no_cache=1
3344 fi
3345
3346 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3347
3348fi;
3349
3350 eval "$ac_cv_use_regex"
3351 if test "$no_cache" != 1; then
3352 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3353 fi
3354
3355 if test "$wxUSE_REGEX" = yes; then
3356 echo "$as_me:$LINENO: result: yes" >&5
3357echo "${ECHO_T}yes" >&6
3358 elif test "$wxUSE_REGEX" = no; then
3359 echo "$as_me:$LINENO: result: no" >&5
3360echo "${ECHO_T}no" >&6
3361 elif test "$wxUSE_REGEX" = sys; then
3362 echo "$as_me:$LINENO: result: system version" >&5
3363echo "${ECHO_T}system version" >&6
3364 elif test "$wxUSE_REGEX" = builtin; then
3365 echo "$as_me:$LINENO: result: builtin version" >&5
3366echo "${ECHO_T}builtin version" >&6
3367 else
3368 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3369echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3370 { (exit 1); exit 1; }; }
3371 fi
3372
3373
3374 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3375echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3376 no_cache=0
3377
3378# Check whether --with-zlib or --without-zlib was given.
3379if test "${with_zlib+set}" = set; then
3380 withval="$with_zlib"
3381
3382 if test "$withval" = yes; then
3383 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3384 elif test "$withval" = no; then
3385 ac_cv_use_zlib='wxUSE_ZLIB=no'
3386 elif test "$withval" = sys; then
3387 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3388 elif test "$withval" = builtin; then
3389 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3390 else
3391 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3392echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3393 { (exit 1); exit 1; }; }
3394 fi
3395
3396else
3397
3398 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3399 if test "x$LINE" != x ; then
3400 eval "DEFAULT_$LINE"
3401 else
3402 no_cache=1
3403 fi
3404
3405 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3406
3407fi;
3408
3409 eval "$ac_cv_use_zlib"
3410 if test "$no_cache" != 1; then
3411 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3412 fi
3413
3414 if test "$wxUSE_ZLIB" = yes; then
3415 echo "$as_me:$LINENO: result: yes" >&5
3416echo "${ECHO_T}yes" >&6
3417 elif test "$wxUSE_ZLIB" = no; then
3418 echo "$as_me:$LINENO: result: no" >&5
3419echo "${ECHO_T}no" >&6
3420 elif test "$wxUSE_ZLIB" = sys; then
3421 echo "$as_me:$LINENO: result: system version" >&5
3422echo "${ECHO_T}system version" >&6
3423 elif test "$wxUSE_ZLIB" = builtin; then
3424 echo "$as_me:$LINENO: result: builtin version" >&5
3425echo "${ECHO_T}builtin version" >&6
3426 else
3427 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3428echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3429 { (exit 1); exit 1; }; }
3430 fi
3431
3432
3433 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3434echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3435 no_cache=0
3436
3437# Check whether --with-odbc or --without-odbc was given.
3438if test "${with_odbc+set}" = set; then
3439 withval="$with_odbc"
3440
3441 if test "$withval" = yes; then
3442 ac_cv_use_odbc='wxUSE_ODBC=yes'
3443 elif test "$withval" = no; then
3444 ac_cv_use_odbc='wxUSE_ODBC=no'
3445 elif test "$withval" = sys; then
3446 ac_cv_use_odbc='wxUSE_ODBC=sys'
3447 elif test "$withval" = builtin; then
3448 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3449 else
3450 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3451echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3452 { (exit 1); exit 1; }; }
3453 fi
3454
3455else
3456
3457 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3458 if test "x$LINE" != x ; then
3459 eval "DEFAULT_$LINE"
3460 else
3461 no_cache=1
3462 fi
3463
3464 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3465
3466fi;
3467
3468 eval "$ac_cv_use_odbc"
3469 if test "$no_cache" != 1; then
3470 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3471 fi
3472
3473 if test "$wxUSE_ODBC" = yes; then
3474 echo "$as_me:$LINENO: result: yes" >&5
3475echo "${ECHO_T}yes" >&6
3476 elif test "$wxUSE_ODBC" = no; then
3477 echo "$as_me:$LINENO: result: no" >&5
3478echo "${ECHO_T}no" >&6
3479 elif test "$wxUSE_ODBC" = sys; then
3480 echo "$as_me:$LINENO: result: system version" >&5
3481echo "${ECHO_T}system version" >&6
3482 elif test "$wxUSE_ODBC" = builtin; then
3483 echo "$as_me:$LINENO: result: builtin version" >&5
3484echo "${ECHO_T}builtin version" >&6
3485 else
3486 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3487echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3488 { (exit 1); exit 1; }; }
3489 fi
3490
3491
3492 echo "$as_me:$LINENO: checking for --with-expat" >&5
3493echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3494 no_cache=0
3495
3496# Check whether --with-expat or --without-expat was given.
3497if test "${with_expat+set}" = set; then
3498 withval="$with_expat"
3499
3500 if test "$withval" = yes; then
3501 ac_cv_use_expat='wxUSE_EXPAT=yes'
3502 elif test "$withval" = no; then
3503 ac_cv_use_expat='wxUSE_EXPAT=no'
3504 elif test "$withval" = sys; then
3505 ac_cv_use_expat='wxUSE_EXPAT=sys'
3506 elif test "$withval" = builtin; then
3507 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3508 else
3509 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3510echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3511 { (exit 1); exit 1; }; }
3512 fi
3513
3514else
3515
3516 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3517 if test "x$LINE" != x ; then
3518 eval "DEFAULT_$LINE"
3519 else
3520 no_cache=1
3521 fi
3522
3523 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3524
3525fi;
3526
3527 eval "$ac_cv_use_expat"
3528 if test "$no_cache" != 1; then
3529 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3530 fi
3531
3532 if test "$wxUSE_EXPAT" = yes; then
3533 echo "$as_me:$LINENO: result: yes" >&5
3534echo "${ECHO_T}yes" >&6
3535 elif test "$wxUSE_EXPAT" = no; then
3536 echo "$as_me:$LINENO: result: no" >&5
3537echo "${ECHO_T}no" >&6
3538 elif test "$wxUSE_EXPAT" = sys; then
3539 echo "$as_me:$LINENO: result: system version" >&5
3540echo "${ECHO_T}system version" >&6
3541 elif test "$wxUSE_EXPAT" = builtin; then
3542 echo "$as_me:$LINENO: result: builtin version" >&5
3543echo "${ECHO_T}builtin version" >&6
3544 else
3545 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3546echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3547 { (exit 1); exit 1; }; }
3548 fi
3549
3550
3551
3552
3553 enablestring=
3554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3555echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3556 no_cache=0
3557 # Check whether --enable-shared or --disable-shared was given.
3558if test "${enable_shared+set}" = set; then
3559 enableval="$enable_shared"
3560
3561 if test "$enableval" = yes; then
3562 ac_cv_use_shared='wxUSE_SHARED=yes'
3563 else
3564 ac_cv_use_shared='wxUSE_SHARED=no'
3565 fi
3566
3567else
3568
3569 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3570 if test "x$LINE" != x ; then
3571 eval "DEFAULT_$LINE"
3572 else
3573 no_cache=1
3574 fi
3575
3576 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3577
3578fi;
3579
3580 eval "$ac_cv_use_shared"
3581 if test "$no_cache" != 1; then
3582 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3583 fi
3584
3585 if test "$wxUSE_SHARED" = yes; then
3586 echo "$as_me:$LINENO: result: yes" >&5
3587echo "${ECHO_T}yes" >&6
3588 else
3589 echo "$as_me:$LINENO: result: no" >&5
3590echo "${ECHO_T}no" >&6
3591 fi
3592
3593
3594 enablestring=
3595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3596echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3597 no_cache=0
3598 # Check whether --enable-optimise or --disable-optimise was given.
3599if test "${enable_optimise+set}" = set; then
3600 enableval="$enable_optimise"
3601
3602 if test "$enableval" = yes; then
3603 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3604 else
3605 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3606 fi
3607
3608else
3609
3610 LINE=`grep "wxUSE_OPTIMISE" ${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_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3618
3619fi;
3620
3621 eval "$ac_cv_use_optimise"
3622 if test "$no_cache" != 1; then
3623 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3624 fi
3625
3626 if test "$wxUSE_OPTIMISE" = yes; then
3627 echo "$as_me:$LINENO: result: yes" >&5
3628echo "${ECHO_T}yes" >&6
3629 else
3630 echo "$as_me:$LINENO: result: no" >&5
3631echo "${ECHO_T}no" >&6
3632 fi
3633
3634
3635 enablestring=
3636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3637echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3638 no_cache=0
3639 # Check whether --enable-debug or --disable-debug was given.
3640if test "${enable_debug+set}" = set; then
3641 enableval="$enable_debug"
3642
3643 if test "$enableval" = yes; then
3644 ac_cv_use_debug='wxUSE_DEBUG=yes'
3645 else
3646 ac_cv_use_debug='wxUSE_DEBUG=no'
3647 fi
3648
3649else
3650
3651 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3652 if test "x$LINE" != x ; then
3653 eval "DEFAULT_$LINE"
3654 else
3655 no_cache=1
3656 fi
3657
3658 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3659
3660fi;
3661
3662 eval "$ac_cv_use_debug"
3663 if test "$no_cache" != 1; then
3664 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3665 fi
3666
3667 if test "$wxUSE_DEBUG" = yes; then
3668 echo "$as_me:$LINENO: result: yes" >&5
3669echo "${ECHO_T}yes" >&6
3670 else
3671 echo "$as_me:$LINENO: result: no" >&5
3672echo "${ECHO_T}no" >&6
3673 fi
3674
3675
3676 enablestring=
3677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3678echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3679 no_cache=0
3680 # Check whether --enable-stl or --disable-stl was given.
3681if test "${enable_stl+set}" = set; then
3682 enableval="$enable_stl"
3683
3684 if test "$enableval" = yes; then
3685 ac_cv_use_stl='wxUSE_STL=yes'
3686 else
3687 ac_cv_use_stl='wxUSE_STL=no'
3688 fi
3689
3690else
3691
3692 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3693 if test "x$LINE" != x ; then
3694 eval "DEFAULT_$LINE"
3695 else
3696 no_cache=1
3697 fi
3698
3699 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3700
3701fi;
3702
3703 eval "$ac_cv_use_stl"
3704 if test "$no_cache" != 1; then
3705 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3706 fi
3707
3708 if test "$wxUSE_STL" = yes; then
3709 echo "$as_me:$LINENO: result: yes" >&5
3710echo "${ECHO_T}yes" >&6
3711 else
3712 echo "$as_me:$LINENO: result: no" >&5
3713echo "${ECHO_T}no" >&6
3714 fi
3715
3716if test "$USE_OS2" = "1"; then
69120ee4 3717 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3718
3719 enablestring=
3720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3721echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3722 no_cache=0
3723 # Check whether --enable-omf or --disable-omf was given.
3724if test "${enable_omf+set}" = set; then
3725 enableval="$enable_omf"
3726
3727 if test "$enableval" = yes; then
3728 ac_cv_use_omf='wxUSE_OMF=yes'
3729 else
3730 ac_cv_use_omf='wxUSE_OMF=no'
3731 fi
3732
3733else
3734
3735 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3736 if test "x$LINE" != x ; then
3737 eval "DEFAULT_$LINE"
3738 else
3739 no_cache=1
3740 fi
3741
3742 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3743
3744fi;
3745
3746 eval "$ac_cv_use_omf"
3747 if test "$no_cache" != 1; then
3748 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3749 fi
3750
3751 if test "$wxUSE_OMF" = yes; then
3752 echo "$as_me:$LINENO: result: yes" >&5
3753echo "${ECHO_T}yes" >&6
3754 else
3755 echo "$as_me:$LINENO: result: no" >&5
3756echo "${ECHO_T}no" >&6
3757 fi
3758
3759fi
3760
3761if test "$wxUSE_DEBUG" = "yes"; then
3762 DEFAULT_wxUSE_DEBUG_FLAG=yes
3763 DEFAULT_wxUSE_DEBUG_INFO=yes
3764 BUILD=debug
3765elif test "$wxUSE_DEBUG" = "no"; then
3766 DEFAULT_wxUSE_DEBUG_FLAG=no
3767 DEFAULT_wxUSE_DEBUG_INFO=no
3768 BUILD=release
3769fi
3770
3771
3772 enablestring=
3773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3774echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3775 no_cache=0
3776 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3777if test "${enable_debug_flag+set}" = set; then
3778 enableval="$enable_debug_flag"
3779
3780 if test "$enableval" = yes; then
3781 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3782 else
3783 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3784 fi
3785
3786else
3787
3788 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3789 if test "x$LINE" != x ; then
3790 eval "DEFAULT_$LINE"
3791 else
3792 no_cache=1
3793 fi
3794
3795 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3796
3797fi;
3798
3799 eval "$ac_cv_use_debug_flag"
3800 if test "$no_cache" != 1; then
3801 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3802 fi
3803
3804 if test "$wxUSE_DEBUG_FLAG" = yes; then
3805 echo "$as_me:$LINENO: result: yes" >&5
3806echo "${ECHO_T}yes" >&6
3807 else
3808 echo "$as_me:$LINENO: result: no" >&5
3809echo "${ECHO_T}no" >&6
3810 fi
3811
3812
3813 enablestring=
3814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3815echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3816 no_cache=0
3817 # Check whether --enable-debug_info or --disable-debug_info was given.
3818if test "${enable_debug_info+set}" = set; then
3819 enableval="$enable_debug_info"
3820
3821 if test "$enableval" = yes; then
3822 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3823 else
3824 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3825 fi
3826
3827else
3828
3829 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3830 if test "x$LINE" != x ; then
3831 eval "DEFAULT_$LINE"
3832 else
3833 no_cache=1
3834 fi
3835
3836 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3837
3838fi;
3839
3840 eval "$ac_cv_use_debug_info"
3841 if test "$no_cache" != 1; then
3842 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3843 fi
3844
3845 if test "$wxUSE_DEBUG_INFO" = yes; then
3846 echo "$as_me:$LINENO: result: yes" >&5
3847echo "${ECHO_T}yes" >&6
3848 else
3849 echo "$as_me:$LINENO: result: no" >&5
3850echo "${ECHO_T}no" >&6
3851 fi
3852
3853
3854 enablestring=
3855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3856echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3857 no_cache=0
3858 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3859if test "${enable_debug_gdb+set}" = set; then
3860 enableval="$enable_debug_gdb"
3861
3862 if test "$enableval" = yes; then
3863 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3864 else
3865 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3866 fi
3867
3868else
3869
3870 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3871 if test "x$LINE" != x ; then
3872 eval "DEFAULT_$LINE"
3873 else
3874 no_cache=1
3875 fi
3876
3877 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3878
3879fi;
3880
3881 eval "$ac_cv_use_debug_gdb"
3882 if test "$no_cache" != 1; then
3883 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3884 fi
3885
3886 if test "$wxUSE_DEBUG_GDB" = yes; then
3887 echo "$as_me:$LINENO: result: yes" >&5
3888echo "${ECHO_T}yes" >&6
3889 else
3890 echo "$as_me:$LINENO: result: no" >&5
3891echo "${ECHO_T}no" >&6
3892 fi
3893
3894
3895 enablestring=
3896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3897echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3898 no_cache=0
3899 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3900if test "${enable_debug_cntxt+set}" = set; then
3901 enableval="$enable_debug_cntxt"
3902
3903 if test "$enableval" = yes; then
3904 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3905 else
3906 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3907 fi
3908
3909else
3910
3911 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3919
3920fi;
3921
3922 eval "$ac_cv_use_debug_cntxt"
3923 if test "$no_cache" != 1; then
3924 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3925 fi
3926
3927 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3928 echo "$as_me:$LINENO: result: yes" >&5
3929echo "${ECHO_T}yes" >&6
3930 else
3931 echo "$as_me:$LINENO: result: no" >&5
3932echo "${ECHO_T}no" >&6
3933 fi
3934
3935
3936 enablestring=
3937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3938echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3939 no_cache=0
3940 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3941if test "${enable_mem_tracing+set}" = set; then
3942 enableval="$enable_mem_tracing"
3943
3944 if test "$enableval" = yes; then
3945 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3946 else
3947 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3948 fi
3949
3950else
3951
3952 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3953 if test "x$LINE" != x ; then
3954 eval "DEFAULT_$LINE"
3955 else
3956 no_cache=1
3957 fi
3958
3959 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3960
3961fi;
3962
3963 eval "$ac_cv_use_mem_tracing"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$wxUSE_MEM_TRACING" = yes; then
3969 echo "$as_me:$LINENO: result: yes" >&5
3970echo "${ECHO_T}yes" >&6
3971 else
3972 echo "$as_me:$LINENO: result: no" >&5
3973echo "${ECHO_T}no" >&6
3974 fi
3975
3976
3977 enablestring=
3978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3979echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3980 no_cache=0
3981 # Check whether --enable-profile or --disable-profile was given.
3982if test "${enable_profile+set}" = set; then
3983 enableval="$enable_profile"
3984
3985 if test "$enableval" = yes; then
3986 ac_cv_use_profile='wxUSE_PROFILE=yes'
3987 else
3988 ac_cv_use_profile='wxUSE_PROFILE=no'
3989 fi
3990
3991else
3992
3993 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3994 if test "x$LINE" != x ; then
3995 eval "DEFAULT_$LINE"
3996 else
3997 no_cache=1
3998 fi
3999
4000 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4001
4002fi;
4003
4004 eval "$ac_cv_use_profile"
4005 if test "$no_cache" != 1; then
4006 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4007 fi
4008
4009 if test "$wxUSE_PROFILE" = yes; then
4010 echo "$as_me:$LINENO: result: yes" >&5
4011echo "${ECHO_T}yes" >&6
4012 else
4013 echo "$as_me:$LINENO: result: no" >&5
4014echo "${ECHO_T}no" >&6
4015 fi
4016
4017
4018 enablestring=
4019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4020echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4021 no_cache=0
4022 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4023if test "${enable_no_rtti+set}" = set; then
4024 enableval="$enable_no_rtti"
4025
4026 if test "$enableval" = yes; then
4027 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4028 else
4029 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4030 fi
4031
4032else
4033
4034 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4035 if test "x$LINE" != x ; then
4036 eval "DEFAULT_$LINE"
4037 else
4038 no_cache=1
4039 fi
4040
4041 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4042
4043fi;
4044
4045 eval "$ac_cv_use_no_rtti"
4046 if test "$no_cache" != 1; then
4047 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4048 fi
4049
4050 if test "$wxUSE_NO_RTTI" = yes; then
4051 echo "$as_me:$LINENO: result: yes" >&5
4052echo "${ECHO_T}yes" >&6
4053 else
4054 echo "$as_me:$LINENO: result: no" >&5
4055echo "${ECHO_T}no" >&6
4056 fi
4057
4058
4059 enablestring=
4060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4061echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4062 no_cache=0
4063 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4064if test "${enable_no_exceptions+set}" = set; then
4065 enableval="$enable_no_exceptions"
4066
4067 if test "$enableval" = yes; then
4068 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4069 else
4070 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4071 fi
4072
4073else
4074
4075 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4076 if test "x$LINE" != x ; then
4077 eval "DEFAULT_$LINE"
4078 else
4079 no_cache=1
4080 fi
4081
4082 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4083
4084fi;
4085
4086 eval "$ac_cv_use_no_exceptions"
4087 if test "$no_cache" != 1; then
4088 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4089 fi
4090
4091 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4092 echo "$as_me:$LINENO: result: yes" >&5
4093echo "${ECHO_T}yes" >&6
4094 else
4095 echo "$as_me:$LINENO: result: no" >&5
4096echo "${ECHO_T}no" >&6
4097 fi
4098
4099
4100 enablestring=
4101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4102echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4103 no_cache=0
4104 # Check whether --enable-permissive or --disable-permissive was given.
4105if test "${enable_permissive+set}" = set; then
4106 enableval="$enable_permissive"
4107
4108 if test "$enableval" = yes; then
4109 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4110 else
4111 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4112 fi
4113
4114else
4115
4116 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4117 if test "x$LINE" != x ; then
4118 eval "DEFAULT_$LINE"
4119 else
4120 no_cache=1
4121 fi
4122
4123 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4124
4125fi;
4126
4127 eval "$ac_cv_use_permissive"
4128 if test "$no_cache" != 1; then
4129 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4130 fi
4131
4132 if test "$wxUSE_PERMISSIVE" = yes; then
4133 echo "$as_me:$LINENO: result: yes" >&5
4134echo "${ECHO_T}yes" >&6
4135 else
4136 echo "$as_me:$LINENO: result: no" >&5
4137echo "${ECHO_T}no" >&6
4138 fi
4139
4140
4141 enablestring=
4142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4143echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4144 no_cache=0
4145 # Check whether --enable-no_deps or --disable-no_deps was given.
4146if test "${enable_no_deps+set}" = set; then
4147 enableval="$enable_no_deps"
4148
4149 if test "$enableval" = yes; then
4150 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4151 else
4152 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4153 fi
4154
4155else
4156
4157 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4158 if test "x$LINE" != x ; then
4159 eval "DEFAULT_$LINE"
4160 else
4161 no_cache=1
4162 fi
4163
4164 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4165
4166fi;
4167
4168 eval "$ac_cv_use_no_deps"
4169 if test "$no_cache" != 1; then
4170 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4171 fi
4172
4173 if test "$wxUSE_NO_DEPS" = yes; then
4174 echo "$as_me:$LINENO: result: yes" >&5
4175echo "${ECHO_T}yes" >&6
4176 else
4177 echo "$as_me:$LINENO: result: no" >&5
4178echo "${ECHO_T}no" >&6
4179 fi
4180
4181
7afc46ab
KO
4182 enablestring=
4183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4184echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4185 no_cache=0
4186 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4187if test "${enable_universal_binary+set}" = set; then
4188 enableval="$enable_universal_binary"
4189
4190 if test "$enableval" = yes; then
4191 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes'
4192 else
4193 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no'
4194 fi
4195
4196else
4197
4198 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4199 if test "x$LINE" != x ; then
4200 eval "DEFAULT_$LINE"
4201 else
4202 no_cache=1
4203 fi
4204
4205 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4206
4207fi;
4208
4209 eval "$ac_cv_use_universal_binary"
4210 if test "$no_cache" != 1; then
4211 echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4212 fi
4213
4214 if test "$wxUSE_UNIVERSAL_BINARY" = yes; then
4215 echo "$as_me:$LINENO: result: yes" >&5
4216echo "${ECHO_T}yes" >&6
4217 else
4218 echo "$as_me:$LINENO: result: no" >&5
4219echo "${ECHO_T}no" >&6
4220 fi
4221
4222
a848cd7e 4223
dee1a63f
MB
4224 enablestring=enable
4225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4226echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4227 no_cache=0
dee1a63f
MB
4228 # Check whether --enable-compat24 or --disable-compat24 was given.
4229if test "${enable_compat24+set}" = set; then
4230 enableval="$enable_compat24"
a848cd7e
SC
4231
4232 if test "$enableval" = yes; then
dee1a63f 4233 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4234 else
dee1a63f 4235 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4236 fi
4237
4238else
4239
dee1a63f 4240 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4241 if test "x$LINE" != x ; then
4242 eval "DEFAULT_$LINE"
4243 else
4244 no_cache=1
4245 fi
4246
dee1a63f 4247 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4248
4249fi;
4250
dee1a63f 4251 eval "$ac_cv_use_compat24"
a848cd7e 4252 if test "$no_cache" != 1; then
dee1a63f 4253 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4254 fi
4255
dee1a63f 4256 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4257 echo "$as_me:$LINENO: result: yes" >&5
4258echo "${ECHO_T}yes" >&6
4259 else
4260 echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6
4262 fi
4263
4264
4265 enablestring=disable
dee1a63f
MB
4266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4267echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4268 no_cache=0
dee1a63f
MB
4269 # Check whether --enable-compat26 or --disable-compat26 was given.
4270if test "${enable_compat26+set}" = set; then
4271 enableval="$enable_compat26"
a848cd7e
SC
4272
4273 if test "$enableval" = yes; then
dee1a63f 4274 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4275 else
dee1a63f 4276 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4277 fi
4278
4279else
4280
dee1a63f 4281 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4282 if test "x$LINE" != x ; then
4283 eval "DEFAULT_$LINE"
4284 else
4285 no_cache=1
4286 fi
4287
dee1a63f 4288 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4289
4290fi;
4291
dee1a63f 4292 eval "$ac_cv_use_compat26"
a848cd7e 4293 if test "$no_cache" != 1; then
dee1a63f 4294 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4295 fi
4296
dee1a63f 4297 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4298 echo "$as_me:$LINENO: result: yes" >&5
4299echo "${ECHO_T}yes" >&6
4300 else
4301 echo "$as_me:$LINENO: result: no" >&5
4302echo "${ECHO_T}no" >&6
4303 fi
4304
4305
ffa0583f
RL
4306
4307 enablestring=
4308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4309echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4310 no_cache=0
4311 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4312if test "${enable_rpath+set}" = set; then
4313 enableval="$enable_rpath"
ffa0583f
RL
4314
4315 if test "$enableval" = yes; then
4316 ac_cv_use_rpath='wxUSE_RPATH=yes'
4317 else
4318 ac_cv_use_rpath='wxUSE_RPATH=no'
4319 fi
4320
4321else
4322
4323 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4324 if test "x$LINE" != x ; then
4325 eval "DEFAULT_$LINE"
4326 else
4327 no_cache=1
4328 fi
4329
4330 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4331
a848cd7e
SC
4332fi;
4333
ffa0583f
RL
4334 eval "$ac_cv_use_rpath"
4335 if test "$no_cache" != 1; then
4336 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4337 fi
4338
4339 if test "$wxUSE_RPATH" = yes; then
4340 echo "$as_me:$LINENO: result: yes" >&5
4341echo "${ECHO_T}yes" >&6
4342 else
4343 echo "$as_me:$LINENO: result: no" >&5
4344echo "${ECHO_T}no" >&6
4345 fi
4346
a848cd7e
SC
4347
4348
4349
4350
4351 enablestring=
4352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4353echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4354 no_cache=0
4355 # Check whether --enable-intl or --disable-intl was given.
4356if test "${enable_intl+set}" = set; then
4357 enableval="$enable_intl"
4358
4359 if test "$enableval" = yes; then
4360 ac_cv_use_intl='wxUSE_INTL=yes'
4361 else
4362 ac_cv_use_intl='wxUSE_INTL=no'
4363 fi
4364
4365else
4366
4367 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4368 if test "x$LINE" != x ; then
4369 eval "DEFAULT_$LINE"
4370 else
4371 no_cache=1
4372 fi
4373
4374 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4375
4376fi;
4377
4378 eval "$ac_cv_use_intl"
4379 if test "$no_cache" != 1; then
4380 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4381 fi
4382
4383 if test "$wxUSE_INTL" = yes; then
4384 echo "$as_me:$LINENO: result: yes" >&5
4385echo "${ECHO_T}yes" >&6
4386 else
4387 echo "$as_me:$LINENO: result: no" >&5
4388echo "${ECHO_T}no" >&6
4389 fi
4390
4391
4392 enablestring=
4393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4394echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4395 no_cache=0
4396 # Check whether --enable-config or --disable-config was given.
4397if test "${enable_config+set}" = set; then
4398 enableval="$enable_config"
4399
4400 if test "$enableval" = yes; then
4401 ac_cv_use_config='wxUSE_CONFIG=yes'
4402 else
4403 ac_cv_use_config='wxUSE_CONFIG=no'
4404 fi
4405
4406else
4407
4408 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4409 if test "x$LINE" != x ; then
4410 eval "DEFAULT_$LINE"
4411 else
4412 no_cache=1
4413 fi
4414
4415 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4416
4417fi;
4418
4419 eval "$ac_cv_use_config"
4420 if test "$no_cache" != 1; then
4421 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4422 fi
4423
4424 if test "$wxUSE_CONFIG" = yes; then
4425 echo "$as_me:$LINENO: result: yes" >&5
4426echo "${ECHO_T}yes" >&6
4427 else
4428 echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6
4430 fi
4431
4432
4433
4434 enablestring=
4435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4436echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4437 no_cache=0
4438 # Check whether --enable-protocols or --disable-protocols was given.
4439if test "${enable_protocols+set}" = set; then
4440 enableval="$enable_protocols"
4441
4442 if test "$enableval" = yes; then
4443 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4444 else
4445 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4446 fi
4447
4448else
4449
4450 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4451 if test "x$LINE" != x ; then
4452 eval "DEFAULT_$LINE"
4453 else
4454 no_cache=1
4455 fi
4456
4457 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4458
4459fi;
4460
4461 eval "$ac_cv_use_protocols"
4462 if test "$no_cache" != 1; then
4463 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4464 fi
4465
4466 if test "$wxUSE_PROTOCOL" = yes; then
4467 echo "$as_me:$LINENO: result: yes" >&5
4468echo "${ECHO_T}yes" >&6
4469 else
4470 echo "$as_me:$LINENO: result: no" >&5
4471echo "${ECHO_T}no" >&6
4472 fi
4473
4474
4475 enablestring=
4476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4477echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4478 no_cache=0
4479 # Check whether --enable-ftp or --disable-ftp was given.
4480if test "${enable_ftp+set}" = set; then
4481 enableval="$enable_ftp"
4482
4483 if test "$enableval" = yes; then
4484 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4485 else
4486 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4487 fi
4488
4489else
4490
4491 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4492 if test "x$LINE" != x ; then
4493 eval "DEFAULT_$LINE"
4494 else
4495 no_cache=1
4496 fi
4497
4498 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4499
4500fi;
4501
4502 eval "$ac_cv_use_ftp"
4503 if test "$no_cache" != 1; then
4504 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4505 fi
4506
4507 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4508 echo "$as_me:$LINENO: result: yes" >&5
4509echo "${ECHO_T}yes" >&6
4510 else
4511 echo "$as_me:$LINENO: result: no" >&5
4512echo "${ECHO_T}no" >&6
4513 fi
4514
4515
4516 enablestring=
4517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4518echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4519 no_cache=0
4520 # Check whether --enable-http or --disable-http was given.
4521if test "${enable_http+set}" = set; then
4522 enableval="$enable_http"
4523
4524 if test "$enableval" = yes; then
4525 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4526 else
4527 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4528 fi
4529
4530else
4531
4532 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4533 if test "x$LINE" != x ; then
4534 eval "DEFAULT_$LINE"
4535 else
4536 no_cache=1
4537 fi
4538
4539 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4540
4541fi;
4542
4543 eval "$ac_cv_use_http"
4544 if test "$no_cache" != 1; then
4545 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4546 fi
4547
4548 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4549 echo "$as_me:$LINENO: result: yes" >&5
4550echo "${ECHO_T}yes" >&6
4551 else
4552 echo "$as_me:$LINENO: result: no" >&5
4553echo "${ECHO_T}no" >&6
4554 fi
4555
4556
4557 enablestring=
4558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4559echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4560 no_cache=0
4561 # Check whether --enable-fileproto or --disable-fileproto was given.
4562if test "${enable_fileproto+set}" = set; then
4563 enableval="$enable_fileproto"
4564
4565 if test "$enableval" = yes; then
4566 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4567 else
4568 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4569 fi
4570
4571else
4572
4573 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4574 if test "x$LINE" != x ; then
4575 eval "DEFAULT_$LINE"
4576 else
4577 no_cache=1
4578 fi
4579
4580 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4581
4582fi;
4583
4584 eval "$ac_cv_use_fileproto"
4585 if test "$no_cache" != 1; then
4586 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4587 fi
4588
4589 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4590 echo "$as_me:$LINENO: result: yes" >&5
4591echo "${ECHO_T}yes" >&6
4592 else
4593 echo "$as_me:$LINENO: result: no" >&5
4594echo "${ECHO_T}no" >&6
4595 fi
4596
4597
4598 enablestring=
4599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4600echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4601 no_cache=0
4602 # Check whether --enable-sockets or --disable-sockets was given.
4603if test "${enable_sockets+set}" = set; then
4604 enableval="$enable_sockets"
4605
4606 if test "$enableval" = yes; then
4607 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4608 else
4609 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4610 fi
4611
4612else
4613
4614 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4615 if test "x$LINE" != x ; then
4616 eval "DEFAULT_$LINE"
4617 else
4618 no_cache=1
4619 fi
4620
4621 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4622
4623fi;
4624
4625 eval "$ac_cv_use_sockets"
4626 if test "$no_cache" != 1; then
4627 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4628 fi
4629
4630 if test "$wxUSE_SOCKETS" = yes; then
4631 echo "$as_me:$LINENO: result: yes" >&5
4632echo "${ECHO_T}yes" >&6
4633 else
4634 echo "$as_me:$LINENO: result: no" >&5
4635echo "${ECHO_T}no" >&6
4636 fi
4637
4638
4639 enablestring=
4640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4641echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4642 no_cache=0
4643 # Check whether --enable-ole or --disable-ole was given.
4644if test "${enable_ole+set}" = set; then
4645 enableval="$enable_ole"
4646
4647 if test "$enableval" = yes; then
4648 ac_cv_use_ole='wxUSE_OLE=yes'
4649 else
4650 ac_cv_use_ole='wxUSE_OLE=no'
4651 fi
4652
4653else
4654
4655 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4656 if test "x$LINE" != x ; then
4657 eval "DEFAULT_$LINE"
4658 else
4659 no_cache=1
4660 fi
4661
4662 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4663
4664fi;
4665
4666 eval "$ac_cv_use_ole"
4667 if test "$no_cache" != 1; then
4668 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4669 fi
4670
4671 if test "$wxUSE_OLE" = yes; then
4672 echo "$as_me:$LINENO: result: yes" >&5
4673echo "${ECHO_T}yes" >&6
4674 else
4675 echo "$as_me:$LINENO: result: no" >&5
4676echo "${ECHO_T}no" >&6
4677 fi
4678
4679
4680 enablestring=
4681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4682echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4683 no_cache=0
4684 # Check whether --enable-dataobj or --disable-dataobj was given.
4685if test "${enable_dataobj+set}" = set; then
4686 enableval="$enable_dataobj"
4687
4688 if test "$enableval" = yes; then
4689 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4690 else
4691 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4692 fi
4693
4694else
4695
4696 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4697 if test "x$LINE" != x ; then
4698 eval "DEFAULT_$LINE"
4699 else
4700 no_cache=1
4701 fi
4702
4703 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4704
4705fi;
4706
4707 eval "$ac_cv_use_dataobj"
4708 if test "$no_cache" != 1; then
4709 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4710 fi
4711
4712 if test "$wxUSE_DATAOBJ" = yes; then
4713 echo "$as_me:$LINENO: result: yes" >&5
4714echo "${ECHO_T}yes" >&6
4715 else
4716 echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6
4718 fi
4719
4720
4721
4722 enablestring=
4723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4724echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4725 no_cache=0
4726 # Check whether --enable-ipc or --disable-ipc was given.
4727if test "${enable_ipc+set}" = set; then
4728 enableval="$enable_ipc"
4729
4730 if test "$enableval" = yes; then
4731 ac_cv_use_ipc='wxUSE_IPC=yes'
4732 else
4733 ac_cv_use_ipc='wxUSE_IPC=no'
4734 fi
4735
4736else
4737
4738 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4739 if test "x$LINE" != x ; then
4740 eval "DEFAULT_$LINE"
4741 else
4742 no_cache=1
4743 fi
4744
4745 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4746
4747fi;
4748
4749 eval "$ac_cv_use_ipc"
4750 if test "$no_cache" != 1; then
4751 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4752 fi
4753
4754 if test "$wxUSE_IPC" = yes; then
4755 echo "$as_me:$LINENO: result: yes" >&5
4756echo "${ECHO_T}yes" >&6
4757 else
4758 echo "$as_me:$LINENO: result: no" >&5
4759echo "${ECHO_T}no" >&6
4760 fi
4761
4762
4763
4764 enablestring=
4765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4766echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4767 no_cache=0
4768 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4769if test "${enable_apple_ieee+set}" = set; then
4770 enableval="$enable_apple_ieee"
4771
4772 if test "$enableval" = yes; then
4773 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4774 else
4775 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4776 fi
4777
4778else
4779
4780 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4781 if test "x$LINE" != x ; then
4782 eval "DEFAULT_$LINE"
4783 else
4784 no_cache=1
4785 fi
4786
4787 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4788
4789fi;
4790
4791 eval "$ac_cv_use_apple_ieee"
4792 if test "$no_cache" != 1; then
4793 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4794 fi
4795
4796 if test "$wxUSE_APPLE_IEEE" = yes; then
4797 echo "$as_me:$LINENO: result: yes" >&5
4798echo "${ECHO_T}yes" >&6
4799 else
4800 echo "$as_me:$LINENO: result: no" >&5
4801echo "${ECHO_T}no" >&6
4802 fi
4803
4804
81f90336
MW
4805 enablestring=
4806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4807echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4808 no_cache=0
4809 # Check whether --enable-arcstream or --disable-arcstream was given.
4810if test "${enable_arcstream+set}" = set; then
4811 enableval="$enable_arcstream"
4812
4813 if test "$enableval" = yes; then
9e8e867f 4814 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4815 else
9e8e867f 4816 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4817 fi
4818
4819else
4820
9e8e867f 4821 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4822 if test "x$LINE" != x ; then
4823 eval "DEFAULT_$LINE"
4824 else
4825 no_cache=1
4826 fi
4827
9e8e867f 4828 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4829
4830fi;
4831
4832 eval "$ac_cv_use_arcstream"
4833 if test "$no_cache" != 1; then
4834 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4835 fi
4836
9e8e867f 4837 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4838 echo "$as_me:$LINENO: result: yes" >&5
4839echo "${ECHO_T}yes" >&6
4840 else
4841 echo "$as_me:$LINENO: result: no" >&5
4842echo "${ECHO_T}no" >&6
4843 fi
4844
4845
a848cd7e 4846 enablestring=
36b6448c
VZ
4847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4848echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4849 no_cache=0
36b6448c
VZ
4850 # Check whether --enable-backtrace or --disable-backtrace was given.
4851if test "${enable_backtrace+set}" = set; then
4852 enableval="$enable_backtrace"
a848cd7e
SC
4853
4854 if test "$enableval" = yes; then
36b6448c 4855 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4856 else
36b6448c 4857 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4858 fi
4859
4860else
4861
36b6448c 4862 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4863 if test "x$LINE" != x ; then
4864 eval "DEFAULT_$LINE"
4865 else
4866 no_cache=1
4867 fi
4868
36b6448c 4869 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4870
4871fi;
4872
36b6448c 4873 eval "$ac_cv_use_backtrace"
a848cd7e 4874 if test "$no_cache" != 1; then
36b6448c 4875 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4876 fi
4877
36b6448c 4878 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4879 echo "$as_me:$LINENO: result: yes" >&5
4880echo "${ECHO_T}yes" >&6
4881 else
4882 echo "$as_me:$LINENO: result: no" >&5
4883echo "${ECHO_T}no" >&6
4884 fi
4885
4886
eaff0f0d 4887 enablestring=
36b6448c
VZ
4888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4889echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4890 no_cache=0
36b6448c
VZ
4891 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4892if test "${enable_catch_segvs+set}" = set; then
4893 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4894
4895 if test "$enableval" = yes; then
36b6448c 4896 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4897 else
36b6448c 4898 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4899 fi
4900
4901else
4902
36b6448c 4903 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4904 if test "x$LINE" != x ; then
4905 eval "DEFAULT_$LINE"
4906 else
4907 no_cache=1
4908 fi
4909
36b6448c 4910 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4911
4912fi;
4913
36b6448c 4914 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4915 if test "$no_cache" != 1; then
36b6448c 4916 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4917 fi
4918
36b6448c 4919 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4920 echo "$as_me:$LINENO: result: yes" >&5
4921echo "${ECHO_T}yes" >&6
4922 else
4923 echo "$as_me:$LINENO: result: no" >&5
4924echo "${ECHO_T}no" >&6
4925 fi
4926
4927
a848cd7e
SC
4928 enablestring=
4929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4930echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4931 no_cache=0
4932 # Check whether --enable-cmdline or --disable-cmdline was given.
4933if test "${enable_cmdline+set}" = set; then
4934 enableval="$enable_cmdline"
4935
4936 if test "$enableval" = yes; then
4937 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4938 else
4939 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4940 fi
4941
4942else
4943
4944 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4945 if test "x$LINE" != x ; then
4946 eval "DEFAULT_$LINE"
4947 else
4948 no_cache=1
4949 fi
4950
4951 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4952
4953fi;
4954
4955 eval "$ac_cv_use_cmdline"
4956 if test "$no_cache" != 1; then
4957 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4958 fi
4959
4960 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4961 echo "$as_me:$LINENO: result: yes" >&5
4962echo "${ECHO_T}yes" >&6
4963 else
4964 echo "$as_me:$LINENO: result: no" >&5
4965echo "${ECHO_T}no" >&6
4966 fi
4967
4968
4969 enablestring=
4970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4971echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4972 no_cache=0
4973 # Check whether --enable-datetime or --disable-datetime was given.
4974if test "${enable_datetime+set}" = set; then
4975 enableval="$enable_datetime"
4976
4977 if test "$enableval" = yes; then
4978 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4979 else
4980 ac_cv_use_datetime='wxUSE_DATETIME=no'
4981 fi
4982
4983else
4984
4985 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4986 if test "x$LINE" != x ; then
4987 eval "DEFAULT_$LINE"
4988 else
4989 no_cache=1
4990 fi
4991
4992 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4993
4994fi;
4995
4996 eval "$ac_cv_use_datetime"
4997 if test "$no_cache" != 1; then
4998 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4999 fi
5000
5001 if test "$wxUSE_DATETIME" = yes; then
5002 echo "$as_me:$LINENO: result: yes" >&5
5003echo "${ECHO_T}yes" >&6
5004 else
5005 echo "$as_me:$LINENO: result: no" >&5
5006echo "${ECHO_T}no" >&6
5007 fi
5008
5009
36b6448c
VZ
5010 enablestring=
5011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5012echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5013 no_cache=0
5014 # Check whether --enable-debugreport or --disable-debugreport was given.
5015if test "${enable_debugreport+set}" = set; then
5016 enableval="$enable_debugreport"
5017
5018 if test "$enableval" = yes; then
5019 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5020 else
5021 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5022 fi
5023
5024else
5025
5026 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5027 if test "x$LINE" != x ; then
5028 eval "DEFAULT_$LINE"
5029 else
5030 no_cache=1
5031 fi
5032
5033 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5034
5035fi;
5036
5037 eval "$ac_cv_use_debugreport"
5038 if test "$no_cache" != 1; then
5039 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5040 fi
5041
5042 if test "$wxUSE_DEBUGREPORT" = yes; then
5043 echo "$as_me:$LINENO: result: yes" >&5
5044echo "${ECHO_T}yes" >&6
5045 else
5046 echo "$as_me:$LINENO: result: no" >&5
5047echo "${ECHO_T}no" >&6
5048 fi
5049
5050
a848cd7e
SC
5051 enablestring=
5052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5053echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5054 no_cache=0
5055 # Check whether --enable-dialupman or --disable-dialupman was given.
5056if test "${enable_dialupman+set}" = set; then
5057 enableval="$enable_dialupman"
5058
5059 if test "$enableval" = yes; then
5060 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5061 else
5062 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5063 fi
5064
5065else
5066
5067 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5068 if test "x$LINE" != x ; then
5069 eval "DEFAULT_$LINE"
5070 else
5071 no_cache=1
5072 fi
5073
5074 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5075
5076fi;
5077
5078 eval "$ac_cv_use_dialupman"
5079 if test "$no_cache" != 1; then
5080 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5081 fi
5082
5083 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5084 echo "$as_me:$LINENO: result: yes" >&5
5085echo "${ECHO_T}yes" >&6
5086 else
5087 echo "$as_me:$LINENO: result: no" >&5
5088echo "${ECHO_T}no" >&6
5089 fi
5090
5091
5092 enablestring=
5093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5094echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5095 no_cache=0
5096 # Check whether --enable-dynlib or --disable-dynlib was given.
5097if test "${enable_dynlib+set}" = set; then
5098 enableval="$enable_dynlib"
5099
5100 if test "$enableval" = yes; then
5101 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5102 else
5103 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5104 fi
5105
5106else
5107
5108 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5109 if test "x$LINE" != x ; then
5110 eval "DEFAULT_$LINE"
5111 else
5112 no_cache=1
5113 fi
5114
5115 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5116
5117fi;
5118
5119 eval "$ac_cv_use_dynlib"
5120 if test "$no_cache" != 1; then
5121 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5122 fi
5123
5124 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5125 echo "$as_me:$LINENO: result: yes" >&5
5126echo "${ECHO_T}yes" >&6
5127 else
5128 echo "$as_me:$LINENO: result: no" >&5
5129echo "${ECHO_T}no" >&6
5130 fi
5131
5132
5133 enablestring=
5134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5135echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5136 no_cache=0
5137 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5138if test "${enable_dynamicloader+set}" = set; then
5139 enableval="$enable_dynamicloader"
5140
5141 if test "$enableval" = yes; then
5142 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5143 else
5144 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5145 fi
5146
5147else
5148
5149 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5150 if test "x$LINE" != x ; then
5151 eval "DEFAULT_$LINE"
5152 else
5153 no_cache=1
5154 fi
5155
5156 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5157
5158fi;
5159
5160 eval "$ac_cv_use_dynamicloader"
5161 if test "$no_cache" != 1; then
5162 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5163 fi
5164
5165 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5166 echo "$as_me:$LINENO: result: yes" >&5
5167echo "${ECHO_T}yes" >&6
5168 else
5169 echo "$as_me:$LINENO: result: no" >&5
5170echo "${ECHO_T}no" >&6
5171 fi
5172
5173
5174 enablestring=
5175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5176echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5177 no_cache=0
5178 # Check whether --enable-exceptions or --disable-exceptions was given.
5179if test "${enable_exceptions+set}" = set; then
5180 enableval="$enable_exceptions"
5181
5182 if test "$enableval" = yes; then
5183 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5184 else
5185 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5186 fi
5187
5188else
5189
5190 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5191 if test "x$LINE" != x ; then
5192 eval "DEFAULT_$LINE"
5193 else
5194 no_cache=1
5195 fi
5196
5197 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5198
5199fi;
5200
5201 eval "$ac_cv_use_exceptions"
5202 if test "$no_cache" != 1; then
5203 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5204 fi
5205
5206 if test "$wxUSE_EXCEPTIONS" = yes; then
5207 echo "$as_me:$LINENO: result: yes" >&5
5208echo "${ECHO_T}yes" >&6
5209 else
5210 echo "$as_me:$LINENO: result: no" >&5
5211echo "${ECHO_T}no" >&6
5212 fi
5213
5214
5215 enablestring=
5216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5217echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5218 no_cache=0
5219 # Check whether --enable-ffile or --disable-ffile was given.
5220if test "${enable_ffile+set}" = set; then
5221 enableval="$enable_ffile"
5222
5223 if test "$enableval" = yes; then
5224 ac_cv_use_ffile='wxUSE_FFILE=yes'
5225 else
5226 ac_cv_use_ffile='wxUSE_FFILE=no'
5227 fi
5228
5229else
5230
5231 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5232 if test "x$LINE" != x ; then
5233 eval "DEFAULT_$LINE"
5234 else
5235 no_cache=1
5236 fi
5237
5238 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5239
5240fi;
5241
5242 eval "$ac_cv_use_ffile"
5243 if test "$no_cache" != 1; then
5244 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5245 fi
5246
5247 if test "$wxUSE_FFILE" = yes; then
5248 echo "$as_me:$LINENO: result: yes" >&5
5249echo "${ECHO_T}yes" >&6
5250 else
5251 echo "$as_me:$LINENO: result: no" >&5
5252echo "${ECHO_T}no" >&6
5253 fi
5254
5255
5256 enablestring=
5257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5258echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5259 no_cache=0
5260 # Check whether --enable-file or --disable-file was given.
5261if test "${enable_file+set}" = set; then
5262 enableval="$enable_file"
5263
5264 if test "$enableval" = yes; then
5265 ac_cv_use_file='wxUSE_FILE=yes'
5266 else
5267 ac_cv_use_file='wxUSE_FILE=no'
5268 fi
5269
5270else
5271
5272 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5273 if test "x$LINE" != x ; then
5274 eval "DEFAULT_$LINE"
5275 else
5276 no_cache=1
5277 fi
5278
5279 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5280
5281fi;
5282
5283 eval "$ac_cv_use_file"
5284 if test "$no_cache" != 1; then
5285 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5286 fi
5287
5288 if test "$wxUSE_FILE" = yes; then
5289 echo "$as_me:$LINENO: result: yes" >&5
5290echo "${ECHO_T}yes" >&6
5291 else
5292 echo "$as_me:$LINENO: result: no" >&5
5293echo "${ECHO_T}no" >&6
5294 fi
5295
5296
5297 enablestring=
5298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5299echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5300 no_cache=0
5301 # Check whether --enable-filesystem or --disable-filesystem was given.
5302if test "${enable_filesystem+set}" = set; then
5303 enableval="$enable_filesystem"
5304
5305 if test "$enableval" = yes; then
5306 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5307 else
5308 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5309 fi
5310
5311else
5312
5313 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5314 if test "x$LINE" != x ; then
5315 eval "DEFAULT_$LINE"
5316 else
5317 no_cache=1
5318 fi
5319
5320 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5321
5322fi;
5323
5324 eval "$ac_cv_use_filesystem"
5325 if test "$no_cache" != 1; then
5326 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5327 fi
5328
5329 if test "$wxUSE_FILESYSTEM" = yes; then
5330 echo "$as_me:$LINENO: result: yes" >&5
5331echo "${ECHO_T}yes" >&6
5332 else
5333 echo "$as_me:$LINENO: result: no" >&5
5334echo "${ECHO_T}no" >&6
5335 fi
5336
5337
5338 enablestring=
5339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5340echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5341 no_cache=0
5342 # Check whether --enable-fontmap or --disable-fontmap was given.
5343if test "${enable_fontmap+set}" = set; then
5344 enableval="$enable_fontmap"
5345
5346 if test "$enableval" = yes; then
5347 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5348 else
5349 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5350 fi
5351
5352else
5353
5354 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5355 if test "x$LINE" != x ; then
5356 eval "DEFAULT_$LINE"
5357 else
5358 no_cache=1
5359 fi
5360
5361 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5362
5363fi;
5364
5365 eval "$ac_cv_use_fontmap"
5366 if test "$no_cache" != 1; then
5367 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5368 fi
5369
5370 if test "$wxUSE_FONTMAP" = yes; then
5371 echo "$as_me:$LINENO: result: yes" >&5
5372echo "${ECHO_T}yes" >&6
5373 else
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
5376 fi
5377
5378
5379 enablestring=
5380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5381echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5382 no_cache=0
5383 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5384if test "${enable_fs_inet+set}" = set; then
5385 enableval="$enable_fs_inet"
5386
5387 if test "$enableval" = yes; then
5388 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5389 else
5390 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5391 fi
5392
5393else
5394
5395 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5396 if test "x$LINE" != x ; then
5397 eval "DEFAULT_$LINE"
5398 else
5399 no_cache=1
5400 fi
5401
5402 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5403
5404fi;
5405
5406 eval "$ac_cv_use_fs_inet"
5407 if test "$no_cache" != 1; then
5408 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5409 fi
5410
5411 if test "$wxUSE_FS_INET" = yes; then
5412 echo "$as_me:$LINENO: result: yes" >&5
5413echo "${ECHO_T}yes" >&6
5414 else
5415 echo "$as_me:$LINENO: result: no" >&5
5416echo "${ECHO_T}no" >&6
5417 fi
5418
5419
5420 enablestring=
5421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5422echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5423 no_cache=0
5424 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5425if test "${enable_fs_zip+set}" = set; then
5426 enableval="$enable_fs_zip"
5427
5428 if test "$enableval" = yes; then
5429 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5430 else
5431 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5432 fi
5433
5434else
5435
5436 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5437 if test "x$LINE" != x ; then
5438 eval "DEFAULT_$LINE"
5439 else
5440 no_cache=1
5441 fi
5442
5443 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5444
5445fi;
5446
5447 eval "$ac_cv_use_fs_zip"
5448 if test "$no_cache" != 1; then
5449 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5450 fi
5451
5452 if test "$wxUSE_FS_ZIP" = yes; then
5453 echo "$as_me:$LINENO: result: yes" >&5
5454echo "${ECHO_T}yes" >&6
5455 else
5456 echo "$as_me:$LINENO: result: no" >&5
5457echo "${ECHO_T}no" >&6
5458 fi
5459
5460
5461 enablestring=
5462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5463echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5464 no_cache=0
5465 # Check whether --enable-geometry or --disable-geometry was given.
5466if test "${enable_geometry+set}" = set; then
5467 enableval="$enable_geometry"
5468
5469 if test "$enableval" = yes; then
5470 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5471 else
5472 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5473 fi
5474
5475else
5476
5477 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5478 if test "x$LINE" != x ; then
5479 eval "DEFAULT_$LINE"
5480 else
5481 no_cache=1
5482 fi
5483
5484 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5485
5486fi;
5487
5488 eval "$ac_cv_use_geometry"
5489 if test "$no_cache" != 1; then
5490 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5491 fi
5492
5493 if test "$wxUSE_GEOMETRY" = yes; then
5494 echo "$as_me:$LINENO: result: yes" >&5
5495echo "${ECHO_T}yes" >&6
5496 else
5497 echo "$as_me:$LINENO: result: no" >&5
5498echo "${ECHO_T}no" >&6
5499 fi
5500
5501
5502 enablestring=
5503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5504echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5505 no_cache=0
5506 # Check whether --enable-log or --disable-log was given.
5507if test "${enable_log+set}" = set; then
5508 enableval="$enable_log"
5509
5510 if test "$enableval" = yes; then
5511 ac_cv_use_log='wxUSE_LOG=yes'
5512 else
5513 ac_cv_use_log='wxUSE_LOG=no'
5514 fi
5515
5516else
5517
5518 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5519 if test "x$LINE" != x ; then
5520 eval "DEFAULT_$LINE"
5521 else
5522 no_cache=1
5523 fi
5524
5525 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5526
5527fi;
5528
5529 eval "$ac_cv_use_log"
5530 if test "$no_cache" != 1; then
5531 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5532 fi
5533
5534 if test "$wxUSE_LOG" = yes; then
5535 echo "$as_me:$LINENO: result: yes" >&5
5536echo "${ECHO_T}yes" >&6
5537 else
5538 echo "$as_me:$LINENO: result: no" >&5
5539echo "${ECHO_T}no" >&6
5540 fi
5541
5542
5543 enablestring=
5544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5545echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5546 no_cache=0
5547 # Check whether --enable-longlong or --disable-longlong was given.
5548if test "${enable_longlong+set}" = set; then
5549 enableval="$enable_longlong"
5550
5551 if test "$enableval" = yes; then
5552 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5553 else
5554 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5555 fi
5556
5557else
5558
5559 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5560 if test "x$LINE" != x ; then
5561 eval "DEFAULT_$LINE"
5562 else
5563 no_cache=1
5564 fi
5565
5566 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5567
5568fi;
5569
5570 eval "$ac_cv_use_longlong"
5571 if test "$no_cache" != 1; then
5572 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5573 fi
5574
5575 if test "$wxUSE_LONGLONG" = yes; then
5576 echo "$as_me:$LINENO: result: yes" >&5
5577echo "${ECHO_T}yes" >&6
5578 else
5579 echo "$as_me:$LINENO: result: no" >&5
5580echo "${ECHO_T}no" >&6
5581 fi
5582
5583
5584 enablestring=
5585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5586echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5587 no_cache=0
5588 # Check whether --enable-mimetype or --disable-mimetype was given.
5589if test "${enable_mimetype+set}" = set; then
5590 enableval="$enable_mimetype"
5591
5592 if test "$enableval" = yes; then
5593 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5594 else
5595 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5596 fi
5597
5598else
5599
5600 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5601 if test "x$LINE" != x ; then
5602 eval "DEFAULT_$LINE"
5603 else
5604 no_cache=1
5605 fi
5606
5607 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5608
5609fi;
5610
5611 eval "$ac_cv_use_mimetype"
5612 if test "$no_cache" != 1; then
5613 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5614 fi
5615
5616 if test "$wxUSE_MIMETYPE" = yes; then
5617 echo "$as_me:$LINENO: result: yes" >&5
5618echo "${ECHO_T}yes" >&6
5619 else
5620 echo "$as_me:$LINENO: result: no" >&5
5621echo "${ECHO_T}no" >&6
5622 fi
5623
5624
5625 enablestring=
5626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5627echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5628 no_cache=0
5629 # Check whether --enable-mslu or --disable-mslu was given.
5630if test "${enable_mslu+set}" = set; then
5631 enableval="$enable_mslu"
5632
5633 if test "$enableval" = yes; then
5634 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5635 else
5636 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5637 fi
5638
5639else
5640
5641 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5642 if test "x$LINE" != x ; then
5643 eval "DEFAULT_$LINE"
5644 else
5645 no_cache=1
5646 fi
5647
5648 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5649
5650fi;
5651
5652 eval "$ac_cv_use_mslu"
5653 if test "$no_cache" != 1; then
5654 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5655 fi
5656
5657 if test "$wxUSE_UNICODE_MSLU" = yes; then
5658 echo "$as_me:$LINENO: result: yes" >&5
5659echo "${ECHO_T}yes" >&6
5660 else
5661 echo "$as_me:$LINENO: result: no" >&5
5662echo "${ECHO_T}no" >&6
5663 fi
5664
5665
5666 enablestring=
5667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5668echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5669 no_cache=0
5670 # Check whether --enable-snglinst or --disable-snglinst was given.
5671if test "${enable_snglinst+set}" = set; then
5672 enableval="$enable_snglinst"
5673
5674 if test "$enableval" = yes; then
5675 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5676 else
5677 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5678 fi
5679
5680else
5681
5682 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5683 if test "x$LINE" != x ; then
5684 eval "DEFAULT_$LINE"
5685 else
5686 no_cache=1
5687 fi
5688
5689 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5690
5691fi;
5692
5693 eval "$ac_cv_use_snglinst"
5694 if test "$no_cache" != 1; then
5695 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5696 fi
5697
5698 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5699 echo "$as_me:$LINENO: result: yes" >&5
5700echo "${ECHO_T}yes" >&6
5701 else
5702 echo "$as_me:$LINENO: result: no" >&5
5703echo "${ECHO_T}no" >&6
5704 fi
5705
5706
5707 enablestring=
07158944
VZ
5708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5709echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5710 no_cache=0
07158944
VZ
5711 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5712if test "${enable_std_iostreams+set}" = set; then
5713 enableval="$enable_std_iostreams"
a848cd7e
SC
5714
5715 if test "$enableval" = yes; then
07158944 5716 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5717 else
07158944 5718 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5719 fi
5720
5721else
5722
07158944 5723 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5724 if test "x$LINE" != x ; then
5725 eval "DEFAULT_$LINE"
5726 else
5727 no_cache=1
5728 fi
5729
07158944 5730 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5731
5732fi;
5733
07158944 5734 eval "$ac_cv_use_std_iostreams"
a848cd7e 5735 if test "$no_cache" != 1; then
07158944 5736 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5737 fi
5738
07158944 5739 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5740 echo "$as_me:$LINENO: result: yes" >&5
5741echo "${ECHO_T}yes" >&6
5742 else
5743 echo "$as_me:$LINENO: result: no" >&5
5744echo "${ECHO_T}no" >&6
5745 fi
5746
5747
59746b65
MW
5748 enablestring=
5749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5750echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5751 no_cache=0
5752 # Check whether --enable-std_string or --disable-std_string was given.
5753if test "${enable_std_string+set}" = set; then
5754 enableval="$enable_std_string"
5755
5756 if test "$enableval" = yes; then
5757 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5758 else
5759 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5760 fi
5761
5762else
5763
5764 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5765 if test "x$LINE" != x ; then
5766 eval "DEFAULT_$LINE"
5767 else
5768 no_cache=1
5769 fi
5770
5771 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5772
5773fi;
5774
5775 eval "$ac_cv_use_std_string"
5776 if test "$no_cache" != 1; then
5777 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5778 fi
5779
5780 if test "$wxUSE_STD_STRING" = yes; then
5781 echo "$as_me:$LINENO: result: yes" >&5
5782echo "${ECHO_T}yes" >&6
5783 else
5784 echo "$as_me:$LINENO: result: no" >&5
5785echo "${ECHO_T}no" >&6
5786 fi
5787
5788
a848cd7e 5789 enablestring=
07158944
VZ
5790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5791echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5792 no_cache=0
07158944
VZ
5793 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5794if test "${enable_stdpaths+set}" = set; then
5795 enableval="$enable_stdpaths"
a848cd7e
SC
5796
5797 if test "$enableval" = yes; then
07158944 5798 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5799 else
07158944 5800 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5801 fi
5802
5803else
5804
07158944 5805 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5806 if test "x$LINE" != x ; then
5807 eval "DEFAULT_$LINE"
5808 else
5809 no_cache=1
5810 fi
5811
07158944 5812 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5813
5814fi;
5815
07158944 5816 eval "$ac_cv_use_stdpaths"
a848cd7e 5817 if test "$no_cache" != 1; then
07158944 5818 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5819 fi
5820
07158944 5821 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5822 echo "$as_me:$LINENO: result: yes" >&5
5823echo "${ECHO_T}yes" >&6
5824 else
5825 echo "$as_me:$LINENO: result: no" >&5
5826echo "${ECHO_T}no" >&6
5827 fi
5828
5829
5830 enablestring=
5831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5832echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5833 no_cache=0
5834 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5835if test "${enable_stopwatch+set}" = set; then
5836 enableval="$enable_stopwatch"
5837
5838 if test "$enableval" = yes; then
5839 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5840 else
5841 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5842 fi
5843
5844else
5845
5846 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5847 if test "x$LINE" != x ; then
5848 eval "DEFAULT_$LINE"
5849 else
5850 no_cache=1
5851 fi
5852
5853 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5854
5855fi;
5856
5857 eval "$ac_cv_use_stopwatch"
5858 if test "$no_cache" != 1; then
5859 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5860 fi
5861
5862 if test "$wxUSE_STOPWATCH" = yes; then
5863 echo "$as_me:$LINENO: result: yes" >&5
5864echo "${ECHO_T}yes" >&6
5865 else
5866 echo "$as_me:$LINENO: result: no" >&5
5867echo "${ECHO_T}no" >&6
5868 fi
5869
5870
07158944
VZ
5871 enablestring=
5872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5873echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5874 no_cache=0
5875 # Check whether --enable-streams or --disable-streams was given.
5876if test "${enable_streams+set}" = set; then
5877 enableval="$enable_streams"
5878
5879 if test "$enableval" = yes; then
5880 ac_cv_use_streams='wxUSE_STREAMS=yes'
5881 else
5882 ac_cv_use_streams='wxUSE_STREAMS=no'
5883 fi
5884
5885else
5886
5887 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5888 if test "x$LINE" != x ; then
5889 eval "DEFAULT_$LINE"
5890 else
5891 no_cache=1
5892 fi
5893
5894 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5895
5896fi;
5897
5898 eval "$ac_cv_use_streams"
5899 if test "$no_cache" != 1; then
5900 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5901 fi
5902
5903 if test "$wxUSE_STREAMS" = yes; then
5904 echo "$as_me:$LINENO: result: yes" >&5
5905echo "${ECHO_T}yes" >&6
5906 else
5907 echo "$as_me:$LINENO: result: no" >&5
5908echo "${ECHO_T}no" >&6
5909 fi
5910
5911
a848cd7e
SC
5912 enablestring=
5913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5914echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5915 no_cache=0
5916 # Check whether --enable-system_options or --disable-system_options was given.
5917if test "${enable_system_options+set}" = set; then
5918 enableval="$enable_system_options"
5919
5920 if test "$enableval" = yes; then
5921 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5922 else
5923 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5924 fi
5925
5926else
5927
5928 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5929 if test "x$LINE" != x ; then
5930 eval "DEFAULT_$LINE"
5931 else
5932 no_cache=1
5933 fi
5934
5935 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5936
5937fi;
5938
5939 eval "$ac_cv_use_system_options"
5940 if test "$no_cache" != 1; then
5941 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5942 fi
5943
5944 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5945 echo "$as_me:$LINENO: result: yes" >&5
5946echo "${ECHO_T}yes" >&6
5947 else
5948 echo "$as_me:$LINENO: result: no" >&5
5949echo "${ECHO_T}no" >&6
5950 fi
5951
5952
5953 enablestring=
5954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5955echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5956 no_cache=0
5957 # Check whether --enable-textbuf or --disable-textbuf was given.
5958if test "${enable_textbuf+set}" = set; then
5959 enableval="$enable_textbuf"
5960
5961 if test "$enableval" = yes; then
5962 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5963 else
5964 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5965 fi
5966
5967else
5968
5969 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5970 if test "x$LINE" != x ; then
5971 eval "DEFAULT_$LINE"
5972 else
5973 no_cache=1
5974 fi
5975
5976 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5977
5978fi;
5979
5980 eval "$ac_cv_use_textbuf"
5981 if test "$no_cache" != 1; then
5982 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5983 fi
5984
5985 if test "$wxUSE_TEXTBUFFER" = yes; then
5986 echo "$as_me:$LINENO: result: yes" >&5
5987echo "${ECHO_T}yes" >&6
5988 else
5989 echo "$as_me:$LINENO: result: no" >&5
5990echo "${ECHO_T}no" >&6
5991 fi
5992
5993
5994 enablestring=
5995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5996echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5997 no_cache=0
5998 # Check whether --enable-textfile or --disable-textfile was given.
5999if test "${enable_textfile+set}" = set; then
6000 enableval="$enable_textfile"
6001
6002 if test "$enableval" = yes; then
6003 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6004 else
6005 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6006 fi
6007
6008else
6009
6010 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6011 if test "x$LINE" != x ; then
6012 eval "DEFAULT_$LINE"
6013 else
6014 no_cache=1
6015 fi
6016
6017 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6018
6019fi;
6020
6021 eval "$ac_cv_use_textfile"
6022 if test "$no_cache" != 1; then
6023 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6024 fi
6025
6026 if test "$wxUSE_TEXTFILE" = yes; then
6027 echo "$as_me:$LINENO: result: yes" >&5
6028echo "${ECHO_T}yes" >&6
6029 else
6030 echo "$as_me:$LINENO: result: no" >&5
6031echo "${ECHO_T}no" >&6
6032 fi
6033
6034
6035 enablestring=
6036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6037echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6038 no_cache=0
6039 # Check whether --enable-timer or --disable-timer was given.
6040if test "${enable_timer+set}" = set; then
6041 enableval="$enable_timer"
6042
6043 if test "$enableval" = yes; then
6044 ac_cv_use_timer='wxUSE_TIMER=yes'
6045 else
6046 ac_cv_use_timer='wxUSE_TIMER=no'
6047 fi
6048
6049else
6050
6051 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6052 if test "x$LINE" != x ; then
6053 eval "DEFAULT_$LINE"
6054 else
6055 no_cache=1
6056 fi
6057
6058 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6059
6060fi;
6061
6062 eval "$ac_cv_use_timer"
6063 if test "$no_cache" != 1; then
6064 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6065 fi
6066
6067 if test "$wxUSE_TIMER" = yes; then
6068 echo "$as_me:$LINENO: result: yes" >&5
6069echo "${ECHO_T}yes" >&6
6070 else
6071 echo "$as_me:$LINENO: result: no" >&5
6072echo "${ECHO_T}no" >&6
6073 fi
6074
6075
6076 enablestring=
6077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6078echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6079 no_cache=0
6080 # Check whether --enable-unicode or --disable-unicode was given.
6081if test "${enable_unicode+set}" = set; then
6082 enableval="$enable_unicode"
6083
6084 if test "$enableval" = yes; then
6085 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6086 else
6087 ac_cv_use_unicode='wxUSE_UNICODE=no'
6088 fi
6089
6090else
6091
6092 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6093 if test "x$LINE" != x ; then
6094 eval "DEFAULT_$LINE"
6095 else
6096 no_cache=1
6097 fi
6098
6099 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6100
6101fi;
6102
6103 eval "$ac_cv_use_unicode"
6104 if test "$no_cache" != 1; then
6105 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6106 fi
6107
6108 if test "$wxUSE_UNICODE" = yes; then
6109 echo "$as_me:$LINENO: result: yes" >&5
6110echo "${ECHO_T}yes" >&6
6111 else
6112 echo "$as_me:$LINENO: result: no" >&5
6113echo "${ECHO_T}no" >&6
6114 fi
6115
6116
6117 enablestring=
6118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6119echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6120 no_cache=0
6121 # Check whether --enable-sound or --disable-sound was given.
6122if test "${enable_sound+set}" = set; then
6123 enableval="$enable_sound"
6124
6125 if test "$enableval" = yes; then
6126 ac_cv_use_sound='wxUSE_SOUND=yes'
6127 else
6128 ac_cv_use_sound='wxUSE_SOUND=no'
6129 fi
6130
6131else
6132
6133 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6134 if test "x$LINE" != x ; then
6135 eval "DEFAULT_$LINE"
6136 else
6137 no_cache=1
6138 fi
6139
6140 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6141
6142fi;
6143
6144 eval "$ac_cv_use_sound"
6145 if test "$no_cache" != 1; then
6146 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6147 fi
6148
6149 if test "$wxUSE_SOUND" = yes; then
6150 echo "$as_me:$LINENO: result: yes" >&5
6151echo "${ECHO_T}yes" >&6
6152 else
6153 echo "$as_me:$LINENO: result: no" >&5
6154echo "${ECHO_T}no" >&6
6155 fi
6156
6157
3b57de8b
RL
6158 enablestring=
6159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6160echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6161 no_cache=0
6162 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6163if test "${enable_mediactrl+set}" = set; then
6164 enableval="$enable_mediactrl"
6165
6166 if test "$enableval" = yes; then
6167 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6168 else
6169 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6170 fi
6171
6172else
6173
6174 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6175 if test "x$LINE" != x ; then
6176 eval "DEFAULT_$LINE"
6177 else
6178 no_cache=1
6179 fi
6180
6181 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6182
6183fi;
6184
6185 eval "$ac_cv_use_mediactrl"
6186 if test "$no_cache" != 1; then
6187 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6188 fi
6189
6190 if test "$wxUSE_MEDIACTRL" = yes; then
6191 echo "$as_me:$LINENO: result: yes" >&5
6192echo "${ECHO_T}yes" >&6
6193 else
6194 echo "$as_me:$LINENO: result: no" >&5
6195echo "${ECHO_T}no" >&6
6196 fi
6197
6198
a848cd7e
SC
6199 enablestring=
6200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6201echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6202 no_cache=0
6203 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6204if test "${enable_wxprintfv+set}" = set; then
6205 enableval="$enable_wxprintfv"
6206
6207 if test "$enableval" = yes; then
6208 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6209 else
6210 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6211 fi
6212
6213else
6214
6215 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6216 if test "x$LINE" != x ; then
6217 eval "DEFAULT_$LINE"
6218 else
6219 no_cache=1
6220 fi
6221
6222 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6223
6224fi;
6225
6226 eval "$ac_cv_use_wxprintfv"
6227 if test "$no_cache" != 1; then
6228 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6229 fi
6230
6231 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6232 echo "$as_me:$LINENO: result: yes" >&5
6233echo "${ECHO_T}yes" >&6
6234 else
6235 echo "$as_me:$LINENO: result: no" >&5
6236echo "${ECHO_T}no" >&6
6237 fi
6238
6239
6240 enablestring=
6241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6242echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6243 no_cache=0
6244 # Check whether --enable-zipstream or --disable-zipstream was given.
6245if test "${enable_zipstream+set}" = set; then
6246 enableval="$enable_zipstream"
6247
6248 if test "$enableval" = yes; then
6249 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6250 else
6251 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6252 fi
6253
6254else
6255
6256 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6257 if test "x$LINE" != x ; then
6258 eval "DEFAULT_$LINE"
6259 else
6260 no_cache=1
6261 fi
6262
6263 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6264
6265fi;
6266
6267 eval "$ac_cv_use_zipstream"
6268 if test "$no_cache" != 1; then
6269 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6270 fi
6271
6272 if test "$wxUSE_ZIPSTREAM" = yes; then
6273 echo "$as_me:$LINENO: result: yes" >&5
6274echo "${ECHO_T}yes" >&6
6275 else
6276 echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6
6278 fi
6279
6280
a848cd7e
SC
6281
6282 enablestring=
6283 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6284echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6285 no_cache=0
6286 # Check whether --enable-url or --disable-url was given.
6287if test "${enable_url+set}" = set; then
6288 enableval="$enable_url"
6289
6290 if test "$enableval" = yes; then
6291 ac_cv_use_url='wxUSE_URL=yes'
6292 else
6293 ac_cv_use_url='wxUSE_URL=no'
6294 fi
6295
6296else
6297
6298 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6299 if test "x$LINE" != x ; then
6300 eval "DEFAULT_$LINE"
6301 else
6302 no_cache=1
6303 fi
6304
6305 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6306
6307fi;
6308
6309 eval "$ac_cv_use_url"
6310 if test "$no_cache" != 1; then
6311 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6312 fi
6313
6314 if test "$wxUSE_URL" = yes; then
6315 echo "$as_me:$LINENO: result: yes" >&5
6316echo "${ECHO_T}yes" >&6
6317 else
6318 echo "$as_me:$LINENO: result: no" >&5
6319echo "${ECHO_T}no" >&6
6320 fi
6321
6322
6323 enablestring=
6324 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6325echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6326 no_cache=0
6327 # Check whether --enable-protocol or --disable-protocol was given.
6328if test "${enable_protocol+set}" = set; then
6329 enableval="$enable_protocol"
6330
6331 if test "$enableval" = yes; then
6332 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6333 else
6334 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6335 fi
6336
6337else
6338
6339 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6340 if test "x$LINE" != x ; then
6341 eval "DEFAULT_$LINE"
6342 else
6343 no_cache=1
6344 fi
6345
6346 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6347
6348fi;
6349
6350 eval "$ac_cv_use_protocol"
6351 if test "$no_cache" != 1; then
6352 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6353 fi
6354
6355 if test "$wxUSE_PROTOCOL" = yes; then
6356 echo "$as_me:$LINENO: result: yes" >&5
6357echo "${ECHO_T}yes" >&6
6358 else
6359 echo "$as_me:$LINENO: result: no" >&5
6360echo "${ECHO_T}no" >&6
6361 fi
6362
6363
6364 enablestring=
6365 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6366echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6367 no_cache=0
6368 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6369if test "${enable_protocol_http+set}" = set; then
6370 enableval="$enable_protocol_http"
6371
6372 if test "$enableval" = yes; then
6373 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6374 else
6375 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6376 fi
6377
6378else
6379
6380 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6381 if test "x$LINE" != x ; then
6382 eval "DEFAULT_$LINE"
6383 else
6384 no_cache=1
6385 fi
6386
6387 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6388
6389fi;
6390
6391 eval "$ac_cv_use_protocol_http"
6392 if test "$no_cache" != 1; then
6393 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6394 fi
6395
6396 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6397 echo "$as_me:$LINENO: result: yes" >&5
6398echo "${ECHO_T}yes" >&6
6399 else
6400 echo "$as_me:$LINENO: result: no" >&5
6401echo "${ECHO_T}no" >&6
6402 fi
6403
6404
6405 enablestring=
6406 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6407echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6408 no_cache=0
6409 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6410if test "${enable_protocol_ftp+set}" = set; then
6411 enableval="$enable_protocol_ftp"
6412
6413 if test "$enableval" = yes; then
6414 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6415 else
6416 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6417 fi
6418
6419else
6420
6421 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6422 if test "x$LINE" != x ; then
6423 eval "DEFAULT_$LINE"
6424 else
6425 no_cache=1
6426 fi
6427
6428 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6429
6430fi;
6431
6432 eval "$ac_cv_use_protocol_ftp"
6433 if test "$no_cache" != 1; then
6434 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6435 fi
6436
6437 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6438 echo "$as_me:$LINENO: result: yes" >&5
6439echo "${ECHO_T}yes" >&6
6440 else
6441 echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6
6443 fi
6444
6445
6446 enablestring=
6447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6448echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6449 no_cache=0
6450 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6451if test "${enable_protocol_file+set}" = set; then
6452 enableval="$enable_protocol_file"
6453
6454 if test "$enableval" = yes; then
6455 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6456 else
6457 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6458 fi
6459
6460else
6461
6462 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6463 if test "x$LINE" != x ; then
6464 eval "DEFAULT_$LINE"
6465 else
6466 no_cache=1
6467 fi
6468
6469 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6470
6471fi;
6472
6473 eval "$ac_cv_use_protocol_file"
6474 if test "$no_cache" != 1; then
6475 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6476 fi
6477
6478 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6479 echo "$as_me:$LINENO: result: yes" >&5
6480echo "${ECHO_T}yes" >&6
6481 else
6482 echo "$as_me:$LINENO: result: no" >&5
6483echo "${ECHO_T}no" >&6
6484 fi
6485
6486
6487
6488
6489
6490 enablestring=
6491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6492echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6493 no_cache=0
6494 # Check whether --enable-threads or --disable-threads was given.
6495if test "${enable_threads+set}" = set; then
6496 enableval="$enable_threads"
6497
6498 if test "$enableval" = yes; then
6499 ac_cv_use_threads='wxUSE_THREADS=yes'
6500 else
6501 ac_cv_use_threads='wxUSE_THREADS=no'
6502 fi
6503
6504else
6505
6506 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6507 if test "x$LINE" != x ; then
6508 eval "DEFAULT_$LINE"
6509 else
6510 no_cache=1
6511 fi
6512
6513 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6514
6515fi;
6516
6517 eval "$ac_cv_use_threads"
6518 if test "$no_cache" != 1; then
6519 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6520 fi
6521
6522 if test "$wxUSE_THREADS" = yes; then
6523 echo "$as_me:$LINENO: result: yes" >&5
6524echo "${ECHO_T}yes" >&6
6525 else
6526 echo "$as_me:$LINENO: result: no" >&5
6527echo "${ECHO_T}no" >&6
6528 fi
6529
6530
6531if test "$wxUSE_GUI" = "yes"; then
6532
6533
6534
6535 enablestring=
6536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6537echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6538 no_cache=0
6539 # Check whether --enable-docview or --disable-docview was given.
6540if test "${enable_docview+set}" = set; then
6541 enableval="$enable_docview"
6542
6543 if test "$enableval" = yes; then
6544 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6545 else
6546 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6547 fi
6548
6549else
6550
6551 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6552 if test "x$LINE" != x ; then
6553 eval "DEFAULT_$LINE"
6554 else
6555 no_cache=1
6556 fi
6557
6558 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6559
6560fi;
6561
6562 eval "$ac_cv_use_docview"
6563 if test "$no_cache" != 1; then
6564 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6565 fi
6566
6567 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6568 echo "$as_me:$LINENO: result: yes" >&5
6569echo "${ECHO_T}yes" >&6
6570 else
6571 echo "$as_me:$LINENO: result: no" >&5
6572echo "${ECHO_T}no" >&6
6573 fi
6574
6575
6576 enablestring=
6577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6578echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6579 no_cache=0
6580 # Check whether --enable-help or --disable-help was given.
6581if test "${enable_help+set}" = set; then
6582 enableval="$enable_help"
6583
6584 if test "$enableval" = yes; then
6585 ac_cv_use_help='wxUSE_HELP=yes'
6586 else
6587 ac_cv_use_help='wxUSE_HELP=no'
6588 fi
6589
6590else
6591
6592 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6593 if test "x$LINE" != x ; then
6594 eval "DEFAULT_$LINE"
6595 else
6596 no_cache=1
6597 fi
6598
6599 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6600
6601fi;
6602
6603 eval "$ac_cv_use_help"
6604 if test "$no_cache" != 1; then
6605 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6606 fi
6607
6608 if test "$wxUSE_HELP" = yes; then
6609 echo "$as_me:$LINENO: result: yes" >&5
6610echo "${ECHO_T}yes" >&6
6611 else
6612 echo "$as_me:$LINENO: result: no" >&5
6613echo "${ECHO_T}no" >&6
6614 fi
6615
6616
6617 enablestring=
6618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6619echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6620 no_cache=0
6621 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6622if test "${enable_mshtmlhelp+set}" = set; then
6623 enableval="$enable_mshtmlhelp"
6624
6625 if test "$enableval" = yes; then
6626 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6627 else
6628 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6629 fi
6630
6631else
6632
6633 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6634 if test "x$LINE" != x ; then
6635 eval "DEFAULT_$LINE"
6636 else
6637 no_cache=1
6638 fi
6639
6640 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6641
6642fi;
6643
6644 eval "$ac_cv_use_mshtmlhelp"
6645 if test "$no_cache" != 1; then
6646 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6647 fi
6648
6649 if test "$wxUSE_MS_HTML_HELP" = yes; then
6650 echo "$as_me:$LINENO: result: yes" >&5
6651echo "${ECHO_T}yes" >&6
6652 else
6653 echo "$as_me:$LINENO: result: no" >&5
6654echo "${ECHO_T}no" >&6
6655 fi
6656
6657
6658 enablestring=
6659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6660echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6661 no_cache=0
6662 # Check whether --enable-html or --disable-html was given.
6663if test "${enable_html+set}" = set; then
6664 enableval="$enable_html"
6665
6666 if test "$enableval" = yes; then
6667 ac_cv_use_html='wxUSE_HTML=yes'
6668 else
6669 ac_cv_use_html='wxUSE_HTML=no'
6670 fi
6671
6672else
6673
6674 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6675 if test "x$LINE" != x ; then
6676 eval "DEFAULT_$LINE"
6677 else
6678 no_cache=1
6679 fi
6680
6681 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6682
6683fi;
6684
6685 eval "$ac_cv_use_html"
6686 if test "$no_cache" != 1; then
6687 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6688 fi
6689
6690 if test "$wxUSE_HTML" = yes; then
6691 echo "$as_me:$LINENO: result: yes" >&5
6692echo "${ECHO_T}yes" >&6
6693 else
6694 echo "$as_me:$LINENO: result: no" >&5
6695echo "${ECHO_T}no" >&6
6696 fi
6697
6698
6699 enablestring=
6700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6701echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6702 no_cache=0
6703 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6704if test "${enable_htmlhelp+set}" = set; then
6705 enableval="$enable_htmlhelp"
6706
6707 if test "$enableval" = yes; then
6708 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6709 else
6710 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6711 fi
6712
6713else
6714
6715 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6716 if test "x$LINE" != x ; then
6717 eval "DEFAULT_$LINE"
6718 else
6719 no_cache=1
6720 fi
6721
6722 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6723
6724fi;
6725
6726 eval "$ac_cv_use_htmlhelp"
6727 if test "$no_cache" != 1; then
6728 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6729 fi
6730
6731 if test "$wxUSE_WXHTML_HELP" = yes; then
6732 echo "$as_me:$LINENO: result: yes" >&5
6733echo "${ECHO_T}yes" >&6
6734 else
6735 echo "$as_me:$LINENO: result: no" >&5
6736echo "${ECHO_T}no" >&6
6737 fi
6738
6739
9a8f0513
VS
6740 enablestring=
6741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6742echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6743 no_cache=0
6744 # Check whether --enable-xrc or --disable-xrc was given.
6745if test "${enable_xrc+set}" = set; then
6746 enableval="$enable_xrc"
6747
6748 if test "$enableval" = yes; then
6749 ac_cv_use_xrc='wxUSE_XRC=yes'
6750 else
6751 ac_cv_use_xrc='wxUSE_XRC=no'
6752 fi
6753
6754else
6755
6756 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6757 if test "x$LINE" != x ; then
6758 eval "DEFAULT_$LINE"
6759 else
6760 no_cache=1
6761 fi
6762
6763 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6764
6765fi;
6766
6767 eval "$ac_cv_use_xrc"
6768 if test "$no_cache" != 1; then
6769 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6770 fi
6771
6772 if test "$wxUSE_XRC" = yes; then
6773 echo "$as_me:$LINENO: result: yes" >&5
6774echo "${ECHO_T}yes" >&6
6775 else
6776 echo "$as_me:$LINENO: result: no" >&5
6777echo "${ECHO_T}no" >&6
6778 fi
6779
6780
a848cd7e
SC
6781 enablestring=
6782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6783echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6784 no_cache=0
6785 # Check whether --enable-constraints or --disable-constraints was given.
6786if test "${enable_constraints+set}" = set; then
6787 enableval="$enable_constraints"
6788
6789 if test "$enableval" = yes; then
6790 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6791 else
6792 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6793 fi
6794
6795else
6796
6797 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6798 if test "x$LINE" != x ; then
6799 eval "DEFAULT_$LINE"
6800 else
6801 no_cache=1
6802 fi
6803
6804 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6805
6806fi;
6807
6808 eval "$ac_cv_use_constraints"
6809 if test "$no_cache" != 1; then
6810 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6811 fi
6812
6813 if test "$wxUSE_CONSTRAINTS" = yes; then
6814 echo "$as_me:$LINENO: result: yes" >&5
6815echo "${ECHO_T}yes" >&6
6816 else
6817 echo "$as_me:$LINENO: result: no" >&5
6818echo "${ECHO_T}no" >&6
6819 fi
6820
6821
6822 enablestring=
6823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6824echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6825 no_cache=0
6826 # Check whether --enable-printarch or --disable-printarch was given.
6827if test "${enable_printarch+set}" = set; then
6828 enableval="$enable_printarch"
6829
6830 if test "$enableval" = yes; then
6831 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6832 else
6833 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6834 fi
6835
6836else
6837
6838 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6839 if test "x$LINE" != x ; then
6840 eval "DEFAULT_$LINE"
6841 else
6842 no_cache=1
6843 fi
6844
6845 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6846
6847fi;
6848
6849 eval "$ac_cv_use_printarch"
6850 if test "$no_cache" != 1; then
6851 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6852 fi
6853
6854 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6855 echo "$as_me:$LINENO: result: yes" >&5
6856echo "${ECHO_T}yes" >&6
6857 else
6858 echo "$as_me:$LINENO: result: no" >&5
6859echo "${ECHO_T}no" >&6
6860 fi
6861
6862
6863 enablestring=
6864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6865echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6866 no_cache=0
6867 # Check whether --enable-mdi or --disable-mdi was given.
6868if test "${enable_mdi+set}" = set; then
6869 enableval="$enable_mdi"
6870
6871 if test "$enableval" = yes; then
8a7b1113 6872 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6873 else
8a7b1113 6874 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6875 fi
6876
6877else
6878
8a7b1113 6879 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6880 if test "x$LINE" != x ; then
6881 eval "DEFAULT_$LINE"
6882 else
6883 no_cache=1
6884 fi
6885
8a7b1113 6886 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6887
6888fi;
6889
6890 eval "$ac_cv_use_mdi"
6891 if test "$no_cache" != 1; then
6892 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6893 fi
6894
8a7b1113
VZ
6895 if test "$wxUSE_MDI" = yes; then
6896 echo "$as_me:$LINENO: result: yes" >&5
6897echo "${ECHO_T}yes" >&6
6898 else
6899 echo "$as_me:$LINENO: result: no" >&5
6900echo "${ECHO_T}no" >&6
6901 fi
6902
6903
6904 enablestring=
6905 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6906echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6907 no_cache=0
6908 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6909if test "${enable_mdidoc+set}" = set; then
6910 enableval="$enable_mdidoc"
6911
6912 if test "$enableval" = yes; then
6913 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6914 else
6915 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6916 fi
6917
6918else
6919
6920 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6921 if test "x$LINE" != x ; then
6922 eval "DEFAULT_$LINE"
6923 else
6924 no_cache=1
6925 fi
6926
6927 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6928
6929fi;
6930
6931 eval "$ac_cv_use_mdidoc"
6932 if test "$no_cache" != 1; then
6933 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6934 fi
6935
a848cd7e
SC
6936 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6937 echo "$as_me:$LINENO: result: yes" >&5
6938echo "${ECHO_T}yes" >&6
6939 else
6940 echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6
6942 fi
6943
6944
6945 enablestring=
6946 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6947echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6948 no_cache=0
6949 # Check whether --enable-loggui or --disable-loggui was given.
6950if test "${enable_loggui+set}" = set; then
6951 enableval="$enable_loggui"
6952
6953 if test "$enableval" = yes; then
6954 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6955 else
6956 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6957 fi
6958
6959else
6960
6961 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6962 if test "x$LINE" != x ; then
6963 eval "DEFAULT_$LINE"
6964 else
6965 no_cache=1
6966 fi
6967
6968 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6969
6970fi;
6971
6972 eval "$ac_cv_use_loggui"
6973 if test "$no_cache" != 1; then
6974 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6975 fi
6976
6977 if test "$wxUSE_LOGGUI" = yes; then
6978 echo "$as_me:$LINENO: result: yes" >&5
6979echo "${ECHO_T}yes" >&6
6980 else
6981 echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6
6983 fi
6984
6985
6986 enablestring=
6987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6988echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6989 no_cache=0
6990 # Check whether --enable-logwin or --disable-logwin was given.
6991if test "${enable_logwin+set}" = set; then
6992 enableval="$enable_logwin"
6993
6994 if test "$enableval" = yes; then
6995 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6996 else
6997 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6998 fi
6999
7000else
7001
7002 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7003 if test "x$LINE" != x ; then
7004 eval "DEFAULT_$LINE"
7005 else
7006 no_cache=1
7007 fi
7008
7009 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7010
7011fi;
7012
7013 eval "$ac_cv_use_logwin"
7014 if test "$no_cache" != 1; then
7015 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7016 fi
7017
7018 if test "$wxUSE_LOGWINDOW" = yes; then
7019 echo "$as_me:$LINENO: result: yes" >&5
7020echo "${ECHO_T}yes" >&6
7021 else
7022 echo "$as_me:$LINENO: result: no" >&5
7023echo "${ECHO_T}no" >&6
7024 fi
7025
7026
7027 enablestring=
7028 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7029echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7030 no_cache=0
7031 # Check whether --enable-logdialog or --disable-logdialog was given.
7032if test "${enable_logdialog+set}" = set; then
7033 enableval="$enable_logdialog"
7034
7035 if test "$enableval" = yes; then
7036 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7037 else
7038 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7039 fi
7040
7041else
7042
7043 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7044 if test "x$LINE" != x ; then
7045 eval "DEFAULT_$LINE"
7046 else
7047 no_cache=1
7048 fi
7049
7050 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7051
7052fi;
7053
7054 eval "$ac_cv_use_logdialog"
7055 if test "$no_cache" != 1; then
7056 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7057 fi
7058
7059 if test "$wxUSE_LOGDIALOG" = yes; then
7060 echo "$as_me:$LINENO: result: yes" >&5
7061echo "${ECHO_T}yes" >&6
7062 else
7063 echo "$as_me:$LINENO: result: no" >&5
7064echo "${ECHO_T}no" >&6
7065 fi
7066
7067
646b6ec1
VS
7068 enablestring=
7069 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7070echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7071 no_cache=0
7072 # Check whether --enable-webkit or --disable-webkit was given.
7073if test "${enable_webkit+set}" = set; then
7074 enableval="$enable_webkit"
7075
7076 if test "$enableval" = yes; then
7077 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7078 else
7079 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7080 fi
7081
7082else
7083
7084 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7085 if test "x$LINE" != x ; then
7086 eval "DEFAULT_$LINE"
7087 else
7088 no_cache=1
7089 fi
7090
7091 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7092
7093fi;
7094
7095 eval "$ac_cv_use_webkit"
7096 if test "$no_cache" != 1; then
7097 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7098 fi
7099
7100 if test "$wxUSE_WEBKIT" = yes; then
7101 echo "$as_me:$LINENO: result: yes" >&5
7102echo "${ECHO_T}yes" >&6
7103 else
7104 echo "$as_me:$LINENO: result: no" >&5
7105echo "${ECHO_T}no" >&6
7106 fi
7107
7108
91dea314
MW
7109 enablestring=
7110 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7111echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7112 no_cache=0
7113 # Check whether --enable-html or --disable-html was given.
7114if test "${enable_html+set}" = set; then
7115 enableval="$enable_html"
7116
7117 if test "$enableval" = yes; then
7118 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7119 else
7120 ac_cv_use_html='wxUSE_RICHTEXT=no'
7121 fi
7122
7123else
7124
7125 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7126 if test "x$LINE" != x ; then
7127 eval "DEFAULT_$LINE"
7128 else
7129 no_cache=1
7130 fi
7131
7132 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7133
7134fi;
7135
7136 eval "$ac_cv_use_html"
7137 if test "$no_cache" != 1; then
7138 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7139 fi
7140
7141 if test "$wxUSE_RICHTEXT" = yes; then
7142 echo "$as_me:$LINENO: result: yes" >&5
7143echo "${ECHO_T}yes" >&6
7144 else
7145 echo "$as_me:$LINENO: result: no" >&5
7146echo "${ECHO_T}no" >&6
7147 fi
7148
7149
a848cd7e
SC
7150
7151 enablestring=
7152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7153echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7154 no_cache=0
7155 # Check whether --enable-postscript or --disable-postscript was given.
7156if test "${enable_postscript+set}" = set; then
7157 enableval="$enable_postscript"
7158
7159 if test "$enableval" = yes; then
7160 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7161 else
7162 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7163 fi
7164
7165else
7166
7167 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7168 if test "x$LINE" != x ; then
7169 eval "DEFAULT_$LINE"
7170 else
7171 no_cache=1
7172 fi
7173
7174 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7175
7176fi;
7177
7178 eval "$ac_cv_use_postscript"
7179 if test "$no_cache" != 1; then
7180 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7181 fi
7182
7183 if test "$wxUSE_POSTSCRIPT" = yes; then
7184 echo "$as_me:$LINENO: result: yes" >&5
7185echo "${ECHO_T}yes" >&6
7186 else
7187 echo "$as_me:$LINENO: result: no" >&5
7188echo "${ECHO_T}no" >&6
7189 fi
7190
7191
7192
7193
7194
7195 enablestring=
7196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7197echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7198 no_cache=0
7199 # Check whether --enable-prologio or --disable-prologio was given.
7200if test "${enable_prologio+set}" = set; then
7201 enableval="$enable_prologio"
7202
7203 if test "$enableval" = yes; then
7204 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7205 else
7206 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7207 fi
7208
7209else
7210
7211 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7212 if test "x$LINE" != x ; then
7213 eval "DEFAULT_$LINE"
7214 else
7215 no_cache=1
7216 fi
7217
7218 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7219
7220fi;
7221
7222 eval "$ac_cv_use_prologio"
7223 if test "$no_cache" != 1; then
7224 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7225 fi
7226
7227 if test "$wxUSE_PROLOGIO" = yes; then
7228 echo "$as_me:$LINENO: result: yes" >&5
7229echo "${ECHO_T}yes" >&6
7230 else
7231 echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
7233 fi
7234
7235
7236 enablestring=
7237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7238echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7239 no_cache=0
7240 # Check whether --enable-resources or --disable-resources was given.
7241if test "${enable_resources+set}" = set; then
7242 enableval="$enable_resources"
7243
7244 if test "$enableval" = yes; then
7245 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7246 else
7247 ac_cv_use_resources='wxUSE_RESOURCES=no'
7248 fi
7249
7250else
7251
7252 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7253 if test "x$LINE" != x ; then
7254 eval "DEFAULT_$LINE"
7255 else
7256 no_cache=1
7257 fi
7258
7259 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7260
7261fi;
7262
7263 eval "$ac_cv_use_resources"
7264 if test "$no_cache" != 1; then
7265 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7266 fi
7267
7268 if test "$wxUSE_RESOURCES" = yes; then
7269 echo "$as_me:$LINENO: result: yes" >&5
7270echo "${ECHO_T}yes" >&6
7271 else
7272 echo "$as_me:$LINENO: result: no" >&5
7273echo "${ECHO_T}no" >&6
7274 fi
7275
7276
7277
7278
7279 enablestring=
7280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7281echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7282 no_cache=0
7283 # Check whether --enable-clipboard or --disable-clipboard was given.
7284if test "${enable_clipboard+set}" = set; then
7285 enableval="$enable_clipboard"
7286
7287 if test "$enableval" = yes; then
7288 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7289 else
7290 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7291 fi
7292
7293else
7294
7295 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7296 if test "x$LINE" != x ; then
7297 eval "DEFAULT_$LINE"
7298 else
7299 no_cache=1
7300 fi
7301
7302 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7303
7304fi;
7305
7306 eval "$ac_cv_use_clipboard"
7307 if test "$no_cache" != 1; then
7308 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7309 fi
7310
7311 if test "$wxUSE_CLIPBOARD" = yes; then
7312 echo "$as_me:$LINENO: result: yes" >&5
7313echo "${ECHO_T}yes" >&6
7314 else
7315 echo "$as_me:$LINENO: result: no" >&5
7316echo "${ECHO_T}no" >&6
7317 fi
7318
7319
7320 enablestring=
7321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7322echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7323 no_cache=0
7324 # Check whether --enable-dnd or --disable-dnd was given.
7325if test "${enable_dnd+set}" = set; then
7326 enableval="$enable_dnd"
7327
7328 if test "$enableval" = yes; then
7329 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7330 else
7331 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7332 fi
7333
7334else
7335
7336 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7337 if test "x$LINE" != x ; then
7338 eval "DEFAULT_$LINE"
7339 else
7340 no_cache=1
7341 fi
7342
7343 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7344
7345fi;
7346
7347 eval "$ac_cv_use_dnd"
7348 if test "$no_cache" != 1; then
7349 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7350 fi
7351
7352 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7353 echo "$as_me:$LINENO: result: yes" >&5
7354echo "${ECHO_T}yes" >&6
7355 else
7356 echo "$as_me:$LINENO: result: no" >&5
7357echo "${ECHO_T}no" >&6
7358 fi
7359
7360
7361 enablestring=
7362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7363echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7364 no_cache=0
7365 # Check whether --enable-metafile or --disable-metafile was given.
7366if test "${enable_metafile+set}" = set; then
7367 enableval="$enable_metafile"
7368
7369 if test "$enableval" = yes; then
7370 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7371 else
7372 ac_cv_use_metafile='wxUSE_METAFILE=no'
7373 fi
7374
7375else
7376
7377 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7378 if test "x$LINE" != x ; then
7379 eval "DEFAULT_$LINE"
7380 else
7381 no_cache=1
7382 fi
7383
7384 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7385
7386fi;
7387
7388 eval "$ac_cv_use_metafile"
7389 if test "$no_cache" != 1; then
7390 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7391 fi
7392
7393 if test "$wxUSE_METAFILE" = yes; then
7394 echo "$as_me:$LINENO: result: yes" >&5
7395echo "${ECHO_T}yes" >&6
7396 else
7397 echo "$as_me:$LINENO: result: no" >&5
7398echo "${ECHO_T}no" >&6
7399 fi
7400
7401
7402
7403
7404
7405 enablestring=
7406 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7407echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7408 no_cache=0
7409 # Check whether --enable-controls or --disable-controls was given.
7410if test "${enable_controls+set}" = set; then
7411 enableval="$enable_controls"
7412
7413 if test "$enableval" = yes; then
7414 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7415 else
7416 ac_cv_use_controls='wxUSE_CONTROLS=no'
7417 fi
7418
7419else
7420
7421 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7422 if test "x$LINE" != x ; then
7423 eval "DEFAULT_$LINE"
7424 else
7425 no_cache=1
7426 fi
7427
7428 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7429
7430fi;
7431
7432 eval "$ac_cv_use_controls"
7433 if test "$no_cache" != 1; then
7434 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7435 fi
7436
7437 if test "$wxUSE_CONTROLS" = yes; then
7438 echo "$as_me:$LINENO: result: yes" >&5
7439echo "${ECHO_T}yes" >&6
7440 else
7441 echo "$as_me:$LINENO: result: no" >&5
7442echo "${ECHO_T}no" >&6
7443 fi
7444
7445
7446if test "$wxUSE_CONTROLS" = "yes"; then
7447 DEFAULT_wxUSE_ACCEL=yes
7448 DEFAULT_wxUSE_BMPBUTTON=yes
7449 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7450 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7451 DEFAULT_wxUSE_CARET=yes
7452 DEFAULT_wxUSE_COMBOBOX=yes
7453 DEFAULT_wxUSE_CHECKBOX=yes
7454 DEFAULT_wxUSE_CHECKLISTBOX=yes
7455 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7456 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7457 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7458 DEFAULT_wxUSE_GAUGE=yes
7459 DEFAULT_wxUSE_GRID=yes
20e34ecc 7460 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7461 DEFAULT_wxUSE_IMAGLIST=yes
7462 DEFAULT_wxUSE_LISTBOOK=yes
7463 DEFAULT_wxUSE_LISTBOX=yes
7464 DEFAULT_wxUSE_LISTCTRL=yes
7465 DEFAULT_wxUSE_NOTEBOOK=yes
7466 DEFAULT_wxUSE_RADIOBOX=yes
7467 DEFAULT_wxUSE_RADIOBTN=yes
7468 DEFAULT_wxUSE_SASH=yes
7469 DEFAULT_wxUSE_SCROLLBAR=yes
7470 DEFAULT_wxUSE_SLIDER=yes
7471 DEFAULT_wxUSE_SPINBTN=yes
7472 DEFAULT_wxUSE_SPINCTRL=yes
7473 DEFAULT_wxUSE_SPLITTER=yes
7474 DEFAULT_wxUSE_STATBMP=yes
7475 DEFAULT_wxUSE_STATBOX=yes
7476 DEFAULT_wxUSE_STATLINE=yes
7477 DEFAULT_wxUSE_STATUSBAR=yes
7478 DEFAULT_wxUSE_TAB_DIALOG=yes
7479 DEFAULT_wxUSE_TOGGLEBTN=yes
7480 DEFAULT_wxUSE_TOOLBAR=yes
7481 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7482 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7483 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7484 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
7485 DEFAULT_wxUSE_TREECTRL=yes
7486 DEFAULT_wxUSE_POPUPWIN=yes
7487 DEFAULT_wxUSE_TIPWINDOW=yes
7488elif test "$wxUSE_CONTROLS" = "no"; then
7489 DEFAULT_wxUSE_ACCEL=no
7490 DEFAULT_wxUSE_BMPBUTTON=no
7491 DEFAULT_wxUSE_BUTTON=no
7492 DEFAULT_wxUSE_CALCTRL=no
7493 DEFAULT_wxUSE_CARET=no
7494 DEFAULT_wxUSE_COMBOBOX=no
7495 DEFAULT_wxUSE_CHECKBOX=no
7496 DEFAULT_wxUSE_CHECKLISTBOX=no
7497 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7498 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7499 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7500 DEFAULT_wxUSE_GAUGE=no
7501 DEFAULT_wxUSE_GRID=no
20e34ecc 7502 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7503 DEFAULT_wxUSE_IMAGLIST=no
7504 DEFAULT_wxUSE_LISTBOOK=no
7505 DEFAULT_wxUSE_LISTBOX=no
7506 DEFAULT_wxUSE_LISTCTRL=no
7507 DEFAULT_wxUSE_NOTEBOOK=no
7508 DEFAULT_wxUSE_RADIOBOX=no
7509 DEFAULT_wxUSE_RADIOBTN=no
7510 DEFAULT_wxUSE_SASH=no
7511 DEFAULT_wxUSE_SCROLLBAR=no
7512 DEFAULT_wxUSE_SLIDER=no
7513 DEFAULT_wxUSE_SPINBTN=no
7514 DEFAULT_wxUSE_SPINCTRL=no
7515 DEFAULT_wxUSE_SPLITTER=no
7516 DEFAULT_wxUSE_STATBMP=no
7517 DEFAULT_wxUSE_STATBOX=no
7518 DEFAULT_wxUSE_STATLINE=no
7519 DEFAULT_wxUSE_STATUSBAR=no
7520 DEFAULT_wxUSE_TAB_DIALOG=no
7521 DEFAULT_wxUSE_TOGGLEBTN=no
7522 DEFAULT_wxUSE_TOOLBAR=no
7523 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7524 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7525 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7526 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
7527 DEFAULT_wxUSE_TREECTRL=no
7528 DEFAULT_wxUSE_POPUPWIN=no
7529 DEFAULT_wxUSE_TIPWINDOW=no
7530fi
7531
a848cd7e
SC
7532
7533 enablestring=
7534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7535echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7536 no_cache=0
7537 # Check whether --enable-accel or --disable-accel was given.
7538if test "${enable_accel+set}" = set; then
7539 enableval="$enable_accel"
7540
7541 if test "$enableval" = yes; then
7542 ac_cv_use_accel='wxUSE_ACCEL=yes'
7543 else
7544 ac_cv_use_accel='wxUSE_ACCEL=no'
7545 fi
7546
7547else
7548
7549 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7550 if test "x$LINE" != x ; then
7551 eval "DEFAULT_$LINE"
7552 else
7553 no_cache=1
7554 fi
7555
7556 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7557
7558fi;
7559
7560 eval "$ac_cv_use_accel"
7561 if test "$no_cache" != 1; then
7562 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7563 fi
7564
7565 if test "$wxUSE_ACCEL" = yes; then
7566 echo "$as_me:$LINENO: result: yes" >&5
7567echo "${ECHO_T}yes" >&6
7568 else
7569 echo "$as_me:$LINENO: result: no" >&5
7570echo "${ECHO_T}no" >&6
7571 fi
7572
7573
7574 enablestring=
7575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7576echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7577 no_cache=0
7578 # Check whether --enable-button or --disable-button was given.
7579if test "${enable_button+set}" = set; then
7580 enableval="$enable_button"
7581
7582 if test "$enableval" = yes; then
7583 ac_cv_use_button='wxUSE_BUTTON=yes'
7584 else
7585 ac_cv_use_button='wxUSE_BUTTON=no'
7586 fi
7587
7588else
7589
7590 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7591 if test "x$LINE" != x ; then
7592 eval "DEFAULT_$LINE"
7593 else
7594 no_cache=1
7595 fi
7596
7597 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7598
7599fi;
7600
7601 eval "$ac_cv_use_button"
7602 if test "$no_cache" != 1; then
7603 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7604 fi
7605
7606 if test "$wxUSE_BUTTON" = yes; then
7607 echo "$as_me:$LINENO: result: yes" >&5
7608echo "${ECHO_T}yes" >&6
7609 else
7610 echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6
7612 fi
7613
7614
7615 enablestring=
7616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7617echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7618 no_cache=0
7619 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7620if test "${enable_bmpbutton+set}" = set; then
7621 enableval="$enable_bmpbutton"
7622
7623 if test "$enableval" = yes; then
7624 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7625 else
7626 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7627 fi
7628
7629else
7630
7631 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7632 if test "x$LINE" != x ; then
7633 eval "DEFAULT_$LINE"
7634 else
7635 no_cache=1
7636 fi
7637
7638 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7639
7640fi;
7641
7642 eval "$ac_cv_use_bmpbutton"
7643 if test "$no_cache" != 1; then
7644 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7645 fi
7646
7647 if test "$wxUSE_BMPBUTTON" = yes; then
7648 echo "$as_me:$LINENO: result: yes" >&5
7649echo "${ECHO_T}yes" >&6
7650 else
7651 echo "$as_me:$LINENO: result: no" >&5
7652echo "${ECHO_T}no" >&6
7653 fi
7654
7655
7656 enablestring=
7657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7658echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7659 no_cache=0
7660 # Check whether --enable-calendar or --disable-calendar was given.
7661if test "${enable_calendar+set}" = set; then
7662 enableval="$enable_calendar"
7663
7664 if test "$enableval" = yes; then
7665 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7666 else
7667 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7668 fi
7669
7670else
7671
7672 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7673 if test "x$LINE" != x ; then
7674 eval "DEFAULT_$LINE"
7675 else
7676 no_cache=1
7677 fi
7678
7679 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7680
7681fi;
7682
7683 eval "$ac_cv_use_calendar"
7684 if test "$no_cache" != 1; then
7685 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7686 fi
7687
7688 if test "$wxUSE_CALCTRL" = yes; then
7689 echo "$as_me:$LINENO: result: yes" >&5
7690echo "${ECHO_T}yes" >&6
7691 else
7692 echo "$as_me:$LINENO: result: no" >&5
7693echo "${ECHO_T}no" >&6
7694 fi
7695
7696
7697 enablestring=
7698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7699echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7700 no_cache=0
7701 # Check whether --enable-caret or --disable-caret was given.
7702if test "${enable_caret+set}" = set; then
7703 enableval="$enable_caret"
7704
7705 if test "$enableval" = yes; then
7706 ac_cv_use_caret='wxUSE_CARET=yes'
7707 else
7708 ac_cv_use_caret='wxUSE_CARET=no'
7709 fi
7710
7711else
7712
7713 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7714 if test "x$LINE" != x ; then
7715 eval "DEFAULT_$LINE"
7716 else
7717 no_cache=1
7718 fi
7719
7720 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7721
7722fi;
7723
7724 eval "$ac_cv_use_caret"
7725 if test "$no_cache" != 1; then
7726 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7727 fi
7728
7729 if test "$wxUSE_CARET" = yes; then
7730 echo "$as_me:$LINENO: result: yes" >&5
7731echo "${ECHO_T}yes" >&6
7732 else
7733 echo "$as_me:$LINENO: result: no" >&5
7734echo "${ECHO_T}no" >&6
7735 fi
7736
7737
7738 enablestring=
7739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7740echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7741 no_cache=0
7742 # Check whether --enable-checkbox or --disable-checkbox was given.
7743if test "${enable_checkbox+set}" = set; then
7744 enableval="$enable_checkbox"
7745
7746 if test "$enableval" = yes; then
7747 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7748 else
7749 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7750 fi
7751
7752else
7753
7754 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7755 if test "x$LINE" != x ; then
7756 eval "DEFAULT_$LINE"
7757 else
7758 no_cache=1
7759 fi
7760
7761 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7762
7763fi;
7764
7765 eval "$ac_cv_use_checkbox"
7766 if test "$no_cache" != 1; then
7767 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7768 fi
7769
7770 if test "$wxUSE_CHECKBOX" = yes; then
7771 echo "$as_me:$LINENO: result: yes" >&5
7772echo "${ECHO_T}yes" >&6
7773 else
7774 echo "$as_me:$LINENO: result: no" >&5
7775echo "${ECHO_T}no" >&6
7776 fi
7777
7778
7779 enablestring=
7780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7781echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7782 no_cache=0
7783 # Check whether --enable-checklst or --disable-checklst was given.
7784if test "${enable_checklst+set}" = set; then
7785 enableval="$enable_checklst"
7786
7787 if test "$enableval" = yes; then
7788 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7789 else
7790 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7791 fi
7792
7793else
7794
7795 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7796 if test "x$LINE" != x ; then
7797 eval "DEFAULT_$LINE"
7798 else
7799 no_cache=1
7800 fi
7801
7802 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7803
7804fi;
7805
7806 eval "$ac_cv_use_checklst"
7807 if test "$no_cache" != 1; then
7808 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7809 fi
7810
7811 if test "$wxUSE_CHECKLST" = yes; then
7812 echo "$as_me:$LINENO: result: yes" >&5
7813echo "${ECHO_T}yes" >&6
7814 else
7815 echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6
7817 fi
7818
7819
7820 enablestring=
7821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7822echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7823 no_cache=0
7824 # Check whether --enable-choice or --disable-choice was given.
7825if test "${enable_choice+set}" = set; then
7826 enableval="$enable_choice"
7827
7828 if test "$enableval" = yes; then
7829 ac_cv_use_choice='wxUSE_CHOICE=yes'
7830 else
7831 ac_cv_use_choice='wxUSE_CHOICE=no'
7832 fi
7833
7834else
7835
7836 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7837 if test "x$LINE" != x ; then
7838 eval "DEFAULT_$LINE"
7839 else
7840 no_cache=1
7841 fi
7842
7843 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7844
7845fi;
7846
7847 eval "$ac_cv_use_choice"
7848 if test "$no_cache" != 1; then
7849 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7850 fi
7851
7852 if test "$wxUSE_CHOICE" = yes; then
7853 echo "$as_me:$LINENO: result: yes" >&5
7854echo "${ECHO_T}yes" >&6
7855 else
7856 echo "$as_me:$LINENO: result: no" >&5
7857echo "${ECHO_T}no" >&6
7858 fi
7859
7860
92bbdbcd
WS
7861 enablestring=
7862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7863echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7864 no_cache=0
7865 # Check whether --enable-choicebook or --disable-choicebook was given.
7866if test "${enable_choicebook+set}" = set; then
7867 enableval="$enable_choicebook"
7868
7869 if test "$enableval" = yes; then
7870 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7871 else
7872 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7873 fi
7874
7875else
7876
7877 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7878 if test "x$LINE" != x ; then
7879 eval "DEFAULT_$LINE"
7880 else
7881 no_cache=1
7882 fi
7883
7884 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7885
7886fi;
7887
7888 eval "$ac_cv_use_choicebook"
7889 if test "$no_cache" != 1; then
7890 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7891 fi
7892
7893 if test "$wxUSE_CHOICEBOOK" = yes; then
7894 echo "$as_me:$LINENO: result: yes" >&5
7895echo "${ECHO_T}yes" >&6
7896 else
7897 echo "$as_me:$LINENO: result: no" >&5
7898echo "${ECHO_T}no" >&6
7899 fi
7900
7901
a848cd7e
SC
7902 enablestring=
7903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7904echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7905 no_cache=0
7906 # Check whether --enable-combobox or --disable-combobox was given.
7907if test "${enable_combobox+set}" = set; then
7908 enableval="$enable_combobox"
7909
7910 if test "$enableval" = yes; then
7911 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7912 else
7913 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7914 fi
7915
7916else
7917
7918 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7919 if test "x$LINE" != x ; then
7920 eval "DEFAULT_$LINE"
7921 else
7922 no_cache=1
7923 fi
7924
7925 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7926
7927fi;
7928
7929 eval "$ac_cv_use_combobox"
7930 if test "$no_cache" != 1; then
7931 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7932 fi
7933
7934 if test "$wxUSE_COMBOBOX" = yes; then
7935 echo "$as_me:$LINENO: result: yes" >&5
7936echo "${ECHO_T}yes" >&6
7937 else
7938 echo "$as_me:$LINENO: result: no" >&5
7939echo "${ECHO_T}no" >&6
7940 fi
7941
7942
da98e9be
VZ
7943 enablestring=
7944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7945echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7946 no_cache=0
7947 # Check whether --enable-datepick or --disable-datepick was given.
7948if test "${enable_datepick+set}" = set; then
7949 enableval="$enable_datepick"
7950
7951 if test "$enableval" = yes; then
7952 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7953 else
7954 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7955 fi
7956
7957else
7958
7959 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7960 if test "x$LINE" != x ; then
7961 eval "DEFAULT_$LINE"
7962 else
7963 no_cache=1
7964 fi
7965
7966 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7967
7968fi;
7969
7970 eval "$ac_cv_use_datepick"
7971 if test "$no_cache" != 1; then
7972 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7973 fi
7974
7975 if test "$wxUSE_DATEPICKCTRL" = yes; then
7976 echo "$as_me:$LINENO: result: yes" >&5
7977echo "${ECHO_T}yes" >&6
7978 else
7979 echo "$as_me:$LINENO: result: no" >&5
7980echo "${ECHO_T}no" >&6
7981 fi
7982
7983
a848cd7e
SC
7984 enablestring=
7985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7986echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7987 no_cache=0
7988 # Check whether --enable-display or --disable-display was given.
7989if test "${enable_display+set}" = set; then
7990 enableval="$enable_display"
7991
7992 if test "$enableval" = yes; then
7993 ac_cv_use_display='wxUSE_DISPLAY=yes'
7994 else
7995 ac_cv_use_display='wxUSE_DISPLAY=no'
7996 fi
7997
7998else
7999
8000 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8001 if test "x$LINE" != x ; then
8002 eval "DEFAULT_$LINE"
8003 else
8004 no_cache=1
8005 fi
8006
8007 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8008
8009fi;
8010
8011 eval "$ac_cv_use_display"
8012 if test "$no_cache" != 1; then
8013 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8014 fi
8015
8016 if test "$wxUSE_DISPLAY" = yes; then
8017 echo "$as_me:$LINENO: result: yes" >&5
8018echo "${ECHO_T}yes" >&6
8019 else
8020 echo "$as_me:$LINENO: result: no" >&5
8021echo "${ECHO_T}no" >&6
8022 fi
8023
8024
8025 enablestring=
8026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8027echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8028 no_cache=0
8029 # Check whether --enable-gauge or --disable-gauge was given.
8030if test "${enable_gauge+set}" = set; then
8031 enableval="$enable_gauge"
8032
8033 if test "$enableval" = yes; then
8034 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8035 else
8036 ac_cv_use_gauge='wxUSE_GAUGE=no'
8037 fi
8038
8039else
8040
8041 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8042 if test "x$LINE" != x ; then
8043 eval "DEFAULT_$LINE"
8044 else
8045 no_cache=1
8046 fi
8047
8048 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8049
8050fi;
8051
8052 eval "$ac_cv_use_gauge"
8053 if test "$no_cache" != 1; then
8054 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8055 fi
8056
8057 if test "$wxUSE_GAUGE" = yes; then
8058 echo "$as_me:$LINENO: result: yes" >&5
8059echo "${ECHO_T}yes" >&6
8060 else
8061 echo "$as_me:$LINENO: result: no" >&5
8062echo "${ECHO_T}no" >&6
8063 fi
8064
8065
8066 enablestring=
8067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8068echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8069 no_cache=0
8070 # Check whether --enable-grid or --disable-grid was given.
8071if test "${enable_grid+set}" = set; then
8072 enableval="$enable_grid"
8073
8074 if test "$enableval" = yes; then
8075 ac_cv_use_grid='wxUSE_GRID=yes'
8076 else
8077 ac_cv_use_grid='wxUSE_GRID=no'
8078 fi
8079
8080else
8081
8082 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8083 if test "x$LINE" != x ; then
8084 eval "DEFAULT_$LINE"
8085 else
8086 no_cache=1
8087 fi
8088
8089 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8090
8091fi;
8092
8093 eval "$ac_cv_use_grid"
8094 if test "$no_cache" != 1; then
8095 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8096 fi
8097
8098 if test "$wxUSE_GRID" = yes; then
8099 echo "$as_me:$LINENO: result: yes" >&5
8100echo "${ECHO_T}yes" >&6
8101 else
8102 echo "$as_me:$LINENO: result: no" >&5
8103echo "${ECHO_T}no" >&6
8104 fi
8105
8106
20e34ecc
RR
8107 enablestring=
8108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8109echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8110 no_cache=0
8111 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8112if test "${enable_dataviewctrl+set}" = set; then
8113 enableval="$enable_dataviewctrl"
8114
8115 if test "$enableval" = yes; then
8116 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8117 else
8118 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8119 fi
8120
8121else
8122
8123 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8124 if test "x$LINE" != x ; then
8125 eval "DEFAULT_$LINE"
8126 else
8127 no_cache=1
8128 fi
8129
8130 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8131
8132fi;
8133
8134 eval "$ac_cv_use_dataviewctrl"
8135 if test "$no_cache" != 1; then
8136 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8137 fi
8138
8139 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8140 echo "$as_me:$LINENO: result: yes" >&5
8141echo "${ECHO_T}yes" >&6
8142 else
8143 echo "$as_me:$LINENO: result: no" >&5
8144echo "${ECHO_T}no" >&6
8145 fi
8146
8147
a848cd7e
SC
8148 enablestring=
8149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8150echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8151 no_cache=0
8152 # Check whether --enable-imaglist or --disable-imaglist was given.
8153if test "${enable_imaglist+set}" = set; then
8154 enableval="$enable_imaglist"
8155
8156 if test "$enableval" = yes; then
8157 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8158 else
8159 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8160 fi
8161
8162else
8163
8164 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8165 if test "x$LINE" != x ; then
8166 eval "DEFAULT_$LINE"
8167 else
8168 no_cache=1
8169 fi
8170
8171 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8172
8173fi;
8174
8175 eval "$ac_cv_use_imaglist"
8176 if test "$no_cache" != 1; then
8177 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8178 fi
8179
8180 if test "$wxUSE_IMAGLIST" = yes; then
8181 echo "$as_me:$LINENO: result: yes" >&5
8182echo "${ECHO_T}yes" >&6
8183 else
8184 echo "$as_me:$LINENO: result: no" >&5
8185echo "${ECHO_T}no" >&6
8186 fi
8187
8188
8189 enablestring=
8190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8191echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8192 no_cache=0
8193 # Check whether --enable-listbook or --disable-listbook was given.
8194if test "${enable_listbook+set}" = set; then
8195 enableval="$enable_listbook"
8196
8197 if test "$enableval" = yes; then
8198 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8199 else
8200 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8201 fi
8202
8203else
8204
8205 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8206 if test "x$LINE" != x ; then
8207 eval "DEFAULT_$LINE"
8208 else
8209 no_cache=1
8210 fi
8211
8212 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8213
8214fi;
8215
8216 eval "$ac_cv_use_listbook"
8217 if test "$no_cache" != 1; then
8218 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8219 fi
8220
8221 if test "$wxUSE_LISTBOOK" = yes; then
8222 echo "$as_me:$LINENO: result: yes" >&5
8223echo "${ECHO_T}yes" >&6
8224 else
8225 echo "$as_me:$LINENO: result: no" >&5
8226echo "${ECHO_T}no" >&6
8227 fi
8228
8229
8230 enablestring=
8231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8232echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8233 no_cache=0
8234 # Check whether --enable-listbox or --disable-listbox was given.
8235if test "${enable_listbox+set}" = set; then
8236 enableval="$enable_listbox"
8237
8238 if test "$enableval" = yes; then
8239 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8240 else
8241 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8242 fi
8243
8244else
8245
8246 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8247 if test "x$LINE" != x ; then
8248 eval "DEFAULT_$LINE"
8249 else
8250 no_cache=1
8251 fi
8252
8253 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8254
8255fi;
8256
8257 eval "$ac_cv_use_listbox"
8258 if test "$no_cache" != 1; then
8259 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8260 fi
8261
8262 if test "$wxUSE_LISTBOX" = yes; then
8263 echo "$as_me:$LINENO: result: yes" >&5
8264echo "${ECHO_T}yes" >&6
8265 else
8266 echo "$as_me:$LINENO: result: no" >&5
8267echo "${ECHO_T}no" >&6
8268 fi
8269
8270
8271 enablestring=
8272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8273echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8274 no_cache=0
8275 # Check whether --enable-listctrl or --disable-listctrl was given.
8276if test "${enable_listctrl+set}" = set; then
8277 enableval="$enable_listctrl"
8278
8279 if test "$enableval" = yes; then
8280 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8281 else
8282 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8283 fi
8284
8285else
8286
8287 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8288 if test "x$LINE" != x ; then
8289 eval "DEFAULT_$LINE"
8290 else
8291 no_cache=1
8292 fi
8293
8294 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8295
8296fi;
8297
8298 eval "$ac_cv_use_listctrl"
8299 if test "$no_cache" != 1; then
8300 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8301 fi
8302
8303 if test "$wxUSE_LISTCTRL" = yes; then
8304 echo "$as_me:$LINENO: result: yes" >&5
8305echo "${ECHO_T}yes" >&6
8306 else
8307 echo "$as_me:$LINENO: result: no" >&5
8308echo "${ECHO_T}no" >&6
8309 fi
8310
8311
8312 enablestring=
8313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8314echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8315 no_cache=0
8316 # Check whether --enable-notebook or --disable-notebook was given.
8317if test "${enable_notebook+set}" = set; then
8318 enableval="$enable_notebook"
8319
8320 if test "$enableval" = yes; then
8321 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8322 else
8323 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8324 fi
8325
8326else
8327
8328 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8329 if test "x$LINE" != x ; then
8330 eval "DEFAULT_$LINE"
8331 else
8332 no_cache=1
8333 fi
8334
8335 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8336
8337fi;
8338
8339 eval "$ac_cv_use_notebook"
8340 if test "$no_cache" != 1; then
8341 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8342 fi
8343
8344 if test "$wxUSE_NOTEBOOK" = yes; then
8345 echo "$as_me:$LINENO: result: yes" >&5
8346echo "${ECHO_T}yes" >&6
8347 else
8348 echo "$as_me:$LINENO: result: no" >&5
8349echo "${ECHO_T}no" >&6
8350 fi
8351
8352
8353 enablestring=
8354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8355echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8356 no_cache=0
8357 # Check whether --enable-radiobox or --disable-radiobox was given.
8358if test "${enable_radiobox+set}" = set; then
8359 enableval="$enable_radiobox"
8360
8361 if test "$enableval" = yes; then
8362 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8363 else
8364 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8365 fi
8366
8367else
8368
8369 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8370 if test "x$LINE" != x ; then
8371 eval "DEFAULT_$LINE"
8372 else
8373 no_cache=1
8374 fi
8375
8376 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8377
8378fi;
8379
8380 eval "$ac_cv_use_radiobox"
8381 if test "$no_cache" != 1; then
8382 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8383 fi
8384
8385 if test "$wxUSE_RADIOBOX" = yes; then
8386 echo "$as_me:$LINENO: result: yes" >&5
8387echo "${ECHO_T}yes" >&6
8388 else
8389 echo "$as_me:$LINENO: result: no" >&5
8390echo "${ECHO_T}no" >&6
8391 fi
8392
8393
8394 enablestring=
8395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8396echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8397 no_cache=0
8398 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8399if test "${enable_radiobtn+set}" = set; then
8400 enableval="$enable_radiobtn"
8401
8402 if test "$enableval" = yes; then
8403 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8404 else
8405 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8406 fi
8407
8408else
8409
8410 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8411 if test "x$LINE" != x ; then
8412 eval "DEFAULT_$LINE"
8413 else
8414 no_cache=1
8415 fi
8416
8417 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8418
8419fi;
8420
8421 eval "$ac_cv_use_radiobtn"
8422 if test "$no_cache" != 1; then
8423 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8424 fi
8425
8426 if test "$wxUSE_RADIOBTN" = yes; then
8427 echo "$as_me:$LINENO: result: yes" >&5
8428echo "${ECHO_T}yes" >&6
8429 else
8430 echo "$as_me:$LINENO: result: no" >&5
8431echo "${ECHO_T}no" >&6
8432 fi
8433
8434
8435 enablestring=
8436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8437echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8438 no_cache=0
8439 # Check whether --enable-sash or --disable-sash was given.
8440if test "${enable_sash+set}" = set; then
8441 enableval="$enable_sash"
8442
8443 if test "$enableval" = yes; then
8444 ac_cv_use_sash='wxUSE_SASH=yes'
8445 else
8446 ac_cv_use_sash='wxUSE_SASH=no'
8447 fi
8448
8449else
8450
8451 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8452 if test "x$LINE" != x ; then
8453 eval "DEFAULT_$LINE"
8454 else
8455 no_cache=1
8456 fi
8457
8458 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8459
8460fi;
8461
8462 eval "$ac_cv_use_sash"
8463 if test "$no_cache" != 1; then
8464 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8465 fi
8466
8467 if test "$wxUSE_SASH" = yes; then
8468 echo "$as_me:$LINENO: result: yes" >&5
8469echo "${ECHO_T}yes" >&6
8470 else
8471 echo "$as_me:$LINENO: result: no" >&5
8472echo "${ECHO_T}no" >&6
8473 fi
8474
8475
8476 enablestring=
8477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8478echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8479 no_cache=0
8480 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8481if test "${enable_scrollbar+set}" = set; then
8482 enableval="$enable_scrollbar"
8483
8484 if test "$enableval" = yes; then
8485 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8486 else
8487 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8488 fi
8489
8490else
8491
8492 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8493 if test "x$LINE" != x ; then
8494 eval "DEFAULT_$LINE"
8495 else
8496 no_cache=1
8497 fi
8498
8499 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8500
8501fi;
8502
8503 eval "$ac_cv_use_scrollbar"
8504 if test "$no_cache" != 1; then
8505 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8506 fi
8507
8508 if test "$wxUSE_SCROLLBAR" = yes; then
8509 echo "$as_me:$LINENO: result: yes" >&5
8510echo "${ECHO_T}yes" >&6
8511 else
8512 echo "$as_me:$LINENO: result: no" >&5
8513echo "${ECHO_T}no" >&6
8514 fi
8515
8516
8517 enablestring=
8518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8519echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8520 no_cache=0
8521 # Check whether --enable-slider or --disable-slider was given.
8522if test "${enable_slider+set}" = set; then
8523 enableval="$enable_slider"
8524
8525 if test "$enableval" = yes; then
8526 ac_cv_use_slider='wxUSE_SLIDER=yes'
8527 else
8528 ac_cv_use_slider='wxUSE_SLIDER=no'
8529 fi
8530
8531else
8532
8533 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8534 if test "x$LINE" != x ; then
8535 eval "DEFAULT_$LINE"
8536 else
8537 no_cache=1
8538 fi
8539
8540 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8541
8542fi;
8543
8544 eval "$ac_cv_use_slider"
8545 if test "$no_cache" != 1; then
8546 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8547 fi
8548
8549 if test "$wxUSE_SLIDER" = yes; then
8550 echo "$as_me:$LINENO: result: yes" >&5
8551echo "${ECHO_T}yes" >&6
8552 else
8553 echo "$as_me:$LINENO: result: no" >&5
8554echo "${ECHO_T}no" >&6
8555 fi
8556
8557
8558 enablestring=
8559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8560echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8561 no_cache=0
8562 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8563if test "${enable_spinbtn+set}" = set; then
8564 enableval="$enable_spinbtn"
8565
8566 if test "$enableval" = yes; then
8567 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8568 else
8569 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8570 fi
8571
8572else
8573
8574 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8575 if test "x$LINE" != x ; then
8576 eval "DEFAULT_$LINE"
8577 else
8578 no_cache=1
8579 fi
8580
8581 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8582
8583fi;
8584
8585 eval "$ac_cv_use_spinbtn"
8586 if test "$no_cache" != 1; then
8587 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8588 fi
8589
8590 if test "$wxUSE_SPINBTN" = yes; then
8591 echo "$as_me:$LINENO: result: yes" >&5
8592echo "${ECHO_T}yes" >&6
8593 else
8594 echo "$as_me:$LINENO: result: no" >&5
8595echo "${ECHO_T}no" >&6
8596 fi
8597
8598
8599 enablestring=
8600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8601echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8602 no_cache=0
8603 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8604if test "${enable_spinctrl+set}" = set; then
8605 enableval="$enable_spinctrl"
8606
8607 if test "$enableval" = yes; then
8608 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8609 else
8610 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8611 fi
8612
8613else
8614
8615 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8616 if test "x$LINE" != x ; then
8617 eval "DEFAULT_$LINE"
8618 else
8619 no_cache=1
8620 fi
8621
8622 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8623
8624fi;
8625
8626 eval "$ac_cv_use_spinctrl"
8627 if test "$no_cache" != 1; then
8628 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8629 fi
8630
8631 if test "$wxUSE_SPINCTRL" = yes; then
8632 echo "$as_me:$LINENO: result: yes" >&5
8633echo "${ECHO_T}yes" >&6
8634 else
8635 echo "$as_me:$LINENO: result: no" >&5
8636echo "${ECHO_T}no" >&6
8637 fi
8638
8639
8640 enablestring=
8641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8642echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8643 no_cache=0
8644 # Check whether --enable-splitter or --disable-splitter was given.
8645if test "${enable_splitter+set}" = set; then
8646 enableval="$enable_splitter"
8647
8648 if test "$enableval" = yes; then
8649 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8650 else
8651 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8652 fi
8653
8654else
8655
8656 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8657 if test "x$LINE" != x ; then
8658 eval "DEFAULT_$LINE"
8659 else
8660 no_cache=1
8661 fi
8662
8663 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8664
8665fi;
8666
8667 eval "$ac_cv_use_splitter"
8668 if test "$no_cache" != 1; then
8669 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8670 fi
8671
8672 if test "$wxUSE_SPLITTER" = yes; then
8673 echo "$as_me:$LINENO: result: yes" >&5
8674echo "${ECHO_T}yes" >&6
8675 else
8676 echo "$as_me:$LINENO: result: no" >&5
8677echo "${ECHO_T}no" >&6
8678 fi
8679
8680
8681 enablestring=
8682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8683echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8684 no_cache=0
8685 # Check whether --enable-statbmp or --disable-statbmp was given.
8686if test "${enable_statbmp+set}" = set; then
8687 enableval="$enable_statbmp"
8688
8689 if test "$enableval" = yes; then
8690 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8691 else
8692 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8693 fi
8694
8695else
8696
8697 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8698 if test "x$LINE" != x ; then
8699 eval "DEFAULT_$LINE"
8700 else
8701 no_cache=1
8702 fi
8703
8704 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8705
8706fi;
8707
8708 eval "$ac_cv_use_statbmp"
8709 if test "$no_cache" != 1; then
8710 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8711 fi
8712
8713 if test "$wxUSE_STATBMP" = yes; then
8714 echo "$as_me:$LINENO: result: yes" >&5
8715echo "${ECHO_T}yes" >&6
8716 else
8717 echo "$as_me:$LINENO: result: no" >&5
8718echo "${ECHO_T}no" >&6
8719 fi
8720
8721
8722 enablestring=
8723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8724echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8725 no_cache=0
8726 # Check whether --enable-statbox or --disable-statbox was given.
8727if test "${enable_statbox+set}" = set; then
8728 enableval="$enable_statbox"
8729
8730 if test "$enableval" = yes; then
8731 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8732 else
8733 ac_cv_use_statbox='wxUSE_STATBOX=no'
8734 fi
8735
8736else
8737
8738 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8739 if test "x$LINE" != x ; then
8740 eval "DEFAULT_$LINE"
8741 else
8742 no_cache=1
8743 fi
8744
8745 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8746
8747fi;
8748
8749 eval "$ac_cv_use_statbox"
8750 if test "$no_cache" != 1; then
8751 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8752 fi
8753
8754 if test "$wxUSE_STATBOX" = yes; then
8755 echo "$as_me:$LINENO: result: yes" >&5
8756echo "${ECHO_T}yes" >&6
8757 else
8758 echo "$as_me:$LINENO: result: no" >&5
8759echo "${ECHO_T}no" >&6
8760 fi
8761
8762
8763 enablestring=
8764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8765echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8766 no_cache=0
8767 # Check whether --enable-statline or --disable-statline was given.
8768if test "${enable_statline+set}" = set; then
8769 enableval="$enable_statline"
8770
8771 if test "$enableval" = yes; then
8772 ac_cv_use_statline='wxUSE_STATLINE=yes'
8773 else
8774 ac_cv_use_statline='wxUSE_STATLINE=no'
8775 fi
8776
8777else
8778
8779 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8780 if test "x$LINE" != x ; then
8781 eval "DEFAULT_$LINE"
8782 else
8783 no_cache=1
8784 fi
8785
8786 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8787
8788fi;
8789
8790 eval "$ac_cv_use_statline"
8791 if test "$no_cache" != 1; then
8792 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8793 fi
8794
8795 if test "$wxUSE_STATLINE" = yes; then
8796 echo "$as_me:$LINENO: result: yes" >&5
8797echo "${ECHO_T}yes" >&6
8798 else
8799 echo "$as_me:$LINENO: result: no" >&5
8800echo "${ECHO_T}no" >&6
8801 fi
8802
8803
8804 enablestring=
8805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8806echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8807 no_cache=0
8808 # Check whether --enable-stattext or --disable-stattext was given.
8809if test "${enable_stattext+set}" = set; then
8810 enableval="$enable_stattext"
8811
8812 if test "$enableval" = yes; then
8813 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8814 else
8815 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8816 fi
8817
8818else
8819
8820 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8821 if test "x$LINE" != x ; then
8822 eval "DEFAULT_$LINE"
8823 else
8824 no_cache=1
8825 fi
8826
8827 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8828
8829fi;
8830
8831 eval "$ac_cv_use_stattext"
8832 if test "$no_cache" != 1; then
8833 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8834 fi
8835
8836 if test "$wxUSE_STATTEXT" = yes; then
8837 echo "$as_me:$LINENO: result: yes" >&5
8838echo "${ECHO_T}yes" >&6
8839 else
8840 echo "$as_me:$LINENO: result: no" >&5
8841echo "${ECHO_T}no" >&6
8842 fi
8843
8844
8845 enablestring=
8846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8847echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8848 no_cache=0
8849 # Check whether --enable-statusbar or --disable-statusbar was given.
8850if test "${enable_statusbar+set}" = set; then
8851 enableval="$enable_statusbar"
8852
8853 if test "$enableval" = yes; then
8854 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8855 else
8856 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8857 fi
8858
8859else
8860
8861 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8862 if test "x$LINE" != x ; then
8863 eval "DEFAULT_$LINE"
8864 else
8865 no_cache=1
8866 fi
8867
8868 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8869
8870fi;
8871
8872 eval "$ac_cv_use_statusbar"
8873 if test "$no_cache" != 1; then
8874 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8875 fi
8876
8877 if test "$wxUSE_STATUSBAR" = yes; then
8878 echo "$as_me:$LINENO: result: yes" >&5
8879echo "${ECHO_T}yes" >&6
8880 else
8881 echo "$as_me:$LINENO: result: no" >&5
8882echo "${ECHO_T}no" >&6
8883 fi
8884
8885
8886 enablestring=
8887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8888echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8889 no_cache=0
8890 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8891if test "${enable_tabdialog+set}" = set; then
8892 enableval="$enable_tabdialog"
8893
8894 if test "$enableval" = yes; then
8895 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8896 else
8897 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8898 fi
8899
8900else
8901
8902 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8903 if test "x$LINE" != x ; then
8904 eval "DEFAULT_$LINE"
8905 else
8906 no_cache=1
8907 fi
8908
8909 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8910
8911fi;
8912
8913 eval "$ac_cv_use_tabdialog"
8914 if test "$no_cache" != 1; then
8915 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8916 fi
8917
8918 if test "$wxUSE_TABDIALOG" = yes; then
8919 echo "$as_me:$LINENO: result: yes" >&5
8920echo "${ECHO_T}yes" >&6
8921 else
8922 echo "$as_me:$LINENO: result: no" >&5
8923echo "${ECHO_T}no" >&6
8924 fi
8925
8926
8927 enablestring=
8928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8929echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8930 no_cache=0
8931 # Check whether --enable-textctrl or --disable-textctrl was given.
8932if test "${enable_textctrl+set}" = set; then
8933 enableval="$enable_textctrl"
8934
8935 if test "$enableval" = yes; then
8936 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8937 else
8938 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8939 fi
8940
8941else
8942
8943 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8944 if test "x$LINE" != x ; then
8945 eval "DEFAULT_$LINE"
8946 else
8947 no_cache=1
8948 fi
8949
8950 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8951
8952fi;
8953
8954 eval "$ac_cv_use_textctrl"
8955 if test "$no_cache" != 1; then
8956 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8957 fi
8958
8959 if test "$wxUSE_TEXTCTRL" = yes; then
8960 echo "$as_me:$LINENO: result: yes" >&5
8961echo "${ECHO_T}yes" >&6
8962 else
8963 echo "$as_me:$LINENO: result: no" >&5
8964echo "${ECHO_T}no" >&6
8965 fi
8966
8967
8968 enablestring=
8969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8970echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8971 no_cache=0
8972 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8973if test "${enable_togglebtn+set}" = set; then
8974 enableval="$enable_togglebtn"
8975
8976 if test "$enableval" = yes; then
8977 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8978 else
8979 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8980 fi
8981
8982else
8983
8984 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8985 if test "x$LINE" != x ; then
8986 eval "DEFAULT_$LINE"
8987 else
8988 no_cache=1
8989 fi
8990
8991 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8992
8993fi;
8994
8995 eval "$ac_cv_use_togglebtn"
8996 if test "$no_cache" != 1; then
8997 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8998 fi
8999
9000 if test "$wxUSE_TOGGLEBTN" = yes; then
9001 echo "$as_me:$LINENO: result: yes" >&5
9002echo "${ECHO_T}yes" >&6
9003 else
9004 echo "$as_me:$LINENO: result: no" >&5
9005echo "${ECHO_T}no" >&6
9006 fi
9007
9008
9009 enablestring=
9010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9011echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9012 no_cache=0
9013 # Check whether --enable-toolbar or --disable-toolbar was given.
9014if test "${enable_toolbar+set}" = set; then
9015 enableval="$enable_toolbar"
9016
9017 if test "$enableval" = yes; then
9018 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9019 else
9020 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9021 fi
9022
9023else
9024
9025 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9026 if test "x$LINE" != x ; then
9027 eval "DEFAULT_$LINE"
9028 else
9029 no_cache=1
9030 fi
9031
9032 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9033
9034fi;
9035
9036 eval "$ac_cv_use_toolbar"
9037 if test "$no_cache" != 1; then
9038 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9039 fi
9040
9041 if test "$wxUSE_TOOLBAR" = yes; then
9042 echo "$as_me:$LINENO: result: yes" >&5
9043echo "${ECHO_T}yes" >&6
9044 else
9045 echo "$as_me:$LINENO: result: no" >&5
9046echo "${ECHO_T}no" >&6
9047 fi
9048
9049
9050 enablestring=
9051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9052echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9053 no_cache=0
9054 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9055if test "${enable_tbarnative+set}" = set; then
9056 enableval="$enable_tbarnative"
9057
9058 if test "$enableval" = yes; then
9059 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9060 else
9061 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9062 fi
9063
9064else
9065
9066 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9067 if test "x$LINE" != x ; then
9068 eval "DEFAULT_$LINE"
9069 else
9070 no_cache=1
9071 fi
9072
9073 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9074
9075fi;
9076
9077 eval "$ac_cv_use_tbarnative"
9078 if test "$no_cache" != 1; then
9079 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9080 fi
9081
9082 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9083 echo "$as_me:$LINENO: result: yes" >&5
9084echo "${ECHO_T}yes" >&6
9085 else
9086 echo "$as_me:$LINENO: result: no" >&5
9087echo "${ECHO_T}no" >&6
9088 fi
9089
9090
9091 enablestring=
9092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9093echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9094 no_cache=0
9095 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9096if test "${enable_tbarsmpl+set}" = set; then
9097 enableval="$enable_tbarsmpl"
9098
9099 if test "$enableval" = yes; then
9100 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9101 else
9102 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9103 fi
9104
9105else
9106
9107 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9108 if test "x$LINE" != x ; then
9109 eval "DEFAULT_$LINE"
9110 else
9111 no_cache=1
9112 fi
9113
9114 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9115
9116fi;
9117
9118 eval "$ac_cv_use_tbarsmpl"
9119 if test "$no_cache" != 1; then
9120 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9121 fi
9122
9123 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9124 echo "$as_me:$LINENO: result: yes" >&5
9125echo "${ECHO_T}yes" >&6
9126 else
9127 echo "$as_me:$LINENO: result: no" >&5
9128echo "${ECHO_T}no" >&6
9129 fi
9130
9131
0093c2fc
VZ
9132 enablestring=
9133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9134echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9135 no_cache=0
9136 # Check whether --enable-treebook or --disable-treebook was given.
9137if test "${enable_treebook+set}" = set; then
9138 enableval="$enable_treebook"
9139
9140 if test "$enableval" = yes; then
9141 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9142 else
9143 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9144 fi
9145
9146else
9147
9148 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9149 if test "x$LINE" != x ; then
9150 eval "DEFAULT_$LINE"
9151 else
9152 no_cache=1
9153 fi
9154
9155 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9156
9157fi;
9158
9159 eval "$ac_cv_use_treebook"
9160 if test "$no_cache" != 1; then
9161 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9162 fi
9163
9164 if test "$wxUSE_TREEBOOK" = yes; then
9165 echo "$as_me:$LINENO: result: yes" >&5
9166echo "${ECHO_T}yes" >&6
9167 else
9168 echo "$as_me:$LINENO: result: no" >&5
9169echo "${ECHO_T}no" >&6
9170 fi
9171
9172
a848cd7e
SC
9173 enablestring=
9174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9175echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9176 no_cache=0
9177 # Check whether --enable-treectrl or --disable-treectrl was given.
9178if test "${enable_treectrl+set}" = set; then
9179 enableval="$enable_treectrl"
9180
9181 if test "$enableval" = yes; then
9182 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9183 else
9184 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9185 fi
9186
9187else
9188
9189 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9190 if test "x$LINE" != x ; then
9191 eval "DEFAULT_$LINE"
9192 else
9193 no_cache=1
9194 fi
9195
9196 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9197
9198fi;
9199
9200 eval "$ac_cv_use_treectrl"
9201 if test "$no_cache" != 1; then
9202 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9203 fi
9204
9205 if test "$wxUSE_TREECTRL" = yes; then
9206 echo "$as_me:$LINENO: result: yes" >&5
9207echo "${ECHO_T}yes" >&6
9208 else
9209 echo "$as_me:$LINENO: result: no" >&5
9210echo "${ECHO_T}no" >&6
9211 fi
9212
9213
9214 enablestring=
9215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9216echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9217 no_cache=0
9218 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9219if test "${enable_tipwindow+set}" = set; then
9220 enableval="$enable_tipwindow"
9221
9222 if test "$enableval" = yes; then
9223 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9224 else
9225 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9226 fi
9227
9228else
9229
9230 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9231 if test "x$LINE" != x ; then
9232 eval "DEFAULT_$LINE"
9233 else
9234 no_cache=1
9235 fi
9236
9237 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9238
9239fi;
9240
9241 eval "$ac_cv_use_tipwindow"
9242 if test "$no_cache" != 1; then
9243 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9244 fi
9245
9246 if test "$wxUSE_TIPWINDOW" = yes; then
9247 echo "$as_me:$LINENO: result: yes" >&5
9248echo "${ECHO_T}yes" >&6
9249 else
9250 echo "$as_me:$LINENO: result: no" >&5
9251echo "${ECHO_T}no" >&6
9252 fi
9253
9254
9255 enablestring=
9256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9257echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9258 no_cache=0
9259 # Check whether --enable-popupwin or --disable-popupwin was given.
9260if test "${enable_popupwin+set}" = set; then
9261 enableval="$enable_popupwin"
9262
9263 if test "$enableval" = yes; then
9264 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9265 else
9266 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9267 fi
9268
9269else
9270
9271 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9272 if test "x$LINE" != x ; then
9273 eval "DEFAULT_$LINE"
9274 else
9275 no_cache=1
9276 fi
9277
9278 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9279
9280fi;
9281
9282 eval "$ac_cv_use_popupwin"
9283 if test "$no_cache" != 1; then
9284 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9285 fi
9286
9287 if test "$wxUSE_POPUPWIN" = yes; then
9288 echo "$as_me:$LINENO: result: yes" >&5
9289echo "${ECHO_T}yes" >&6
9290 else
9291 echo "$as_me:$LINENO: result: no" >&5
9292echo "${ECHO_T}no" >&6
9293 fi
9294
9295
9296
9297
9298 enablestring=
9299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9300echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9301 no_cache=0
9302 # Check whether --enable-commondlg or --disable-commondlg was given.
9303if test "${enable_commondlg+set}" = set; then
9304 enableval="$enable_commondlg"
9305
9306 if test "$enableval" = yes; then
9307 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9308 else
9309 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9310 fi
9311
9312else
9313
9314 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9315 if test "x$LINE" != x ; then
9316 eval "DEFAULT_$LINE"
9317 else
9318 no_cache=1
9319 fi
9320
9321 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9322
9323fi;
9324
9325 eval "$ac_cv_use_commondlg"
9326 if test "$no_cache" != 1; then
9327 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9328 fi
9329
9330 if test "$wxUSE_COMMONDLGS" = yes; then
9331 echo "$as_me:$LINENO: result: yes" >&5
9332echo "${ECHO_T}yes" >&6
9333 else
9334 echo "$as_me:$LINENO: result: no" >&5
9335echo "${ECHO_T}no" >&6
9336 fi
9337
9338
9339 enablestring=
9340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9341echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9342 no_cache=0
9343 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9344if test "${enable_choicedlg+set}" = set; then
9345 enableval="$enable_choicedlg"
9346
9347 if test "$enableval" = yes; then
9348 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9349 else
9350 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9351 fi
9352
9353else
9354
9355 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9356 if test "x$LINE" != x ; then
9357 eval "DEFAULT_$LINE"
9358 else
9359 no_cache=1
9360 fi
9361
9362 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9363
9364fi;
9365
9366 eval "$ac_cv_use_choicedlg"
9367 if test "$no_cache" != 1; then
9368 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9369 fi
9370
9371 if test "$wxUSE_CHOICEDLG" = yes; then
9372 echo "$as_me:$LINENO: result: yes" >&5
9373echo "${ECHO_T}yes" >&6
9374 else
9375 echo "$as_me:$LINENO: result: no" >&5
9376echo "${ECHO_T}no" >&6
9377 fi
9378
9379
9380 enablestring=
9381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9382echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9383 no_cache=0
9384 # Check whether --enable-coldlg or --disable-coldlg was given.
9385if test "${enable_coldlg+set}" = set; then
9386 enableval="$enable_coldlg"
9387
9388 if test "$enableval" = yes; then
9389 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9390 else
9391 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9392 fi
9393
9394else
9395
9396 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9397 if test "x$LINE" != x ; then
9398 eval "DEFAULT_$LINE"
9399 else
9400 no_cache=1
9401 fi
9402
9403 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9404
9405fi;
9406
9407 eval "$ac_cv_use_coldlg"
9408 if test "$no_cache" != 1; then
9409 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9410 fi
9411
9412 if test "$wxUSE_COLOURDLG" = yes; then
9413 echo "$as_me:$LINENO: result: yes" >&5
9414echo "${ECHO_T}yes" >&6
9415 else
9416 echo "$as_me:$LINENO: result: no" >&5
9417echo "${ECHO_T}no" >&6
9418 fi
9419
9420
9421 enablestring=
9422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9423echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9424 no_cache=0
9425 # Check whether --enable-filedlg or --disable-filedlg was given.
9426if test "${enable_filedlg+set}" = set; then
9427 enableval="$enable_filedlg"
9428
9429 if test "$enableval" = yes; then
9430 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9431 else
9432 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9433 fi
9434
9435else
9436
9437 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9438 if test "x$LINE" != x ; then
9439 eval "DEFAULT_$LINE"
9440 else
9441 no_cache=1
9442 fi
9443
9444 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9445
9446fi;
9447
9448 eval "$ac_cv_use_filedlg"
9449 if test "$no_cache" != 1; then
9450 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9451 fi
9452
9453 if test "$wxUSE_FILEDLG" = yes; then
9454 echo "$as_me:$LINENO: result: yes" >&5
9455echo "${ECHO_T}yes" >&6
9456 else
9457 echo "$as_me:$LINENO: result: no" >&5
9458echo "${ECHO_T}no" >&6
9459 fi
9460
9461
9462 enablestring=
9463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9464echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9465 no_cache=0
9466 # Check whether --enable-finddlg or --disable-finddlg was given.
9467if test "${enable_finddlg+set}" = set; then
9468 enableval="$enable_finddlg"
9469
9470 if test "$enableval" = yes; then
9471 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9472 else
9473 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9474 fi
9475
9476else
9477
9478 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9479 if test "x$LINE" != x ; then
9480 eval "DEFAULT_$LINE"
9481 else
9482 no_cache=1
9483 fi
9484
9485 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9486
9487fi;
9488
9489 eval "$ac_cv_use_finddlg"
9490 if test "$no_cache" != 1; then
9491 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9492 fi
9493
9494 if test "$wxUSE_FINDREPLDLG" = yes; then
9495 echo "$as_me:$LINENO: result: yes" >&5
9496echo "${ECHO_T}yes" >&6
9497 else
9498 echo "$as_me:$LINENO: result: no" >&5
9499echo "${ECHO_T}no" >&6
9500 fi
9501
9502
9503 enablestring=
9504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9505echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9506 no_cache=0
9507 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9508if test "${enable_fontdlg+set}" = set; then
9509 enableval="$enable_fontdlg"
9510
9511 if test "$enableval" = yes; then
9512 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9513 else
9514 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9515 fi
9516
9517else
9518
9519 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9520 if test "x$LINE" != x ; then
9521 eval "DEFAULT_$LINE"
9522 else
9523 no_cache=1
9524 fi
9525
9526 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9527
9528fi;
9529
9530 eval "$ac_cv_use_fontdlg"
9531 if test "$no_cache" != 1; then
9532 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9533 fi
9534
9535 if test "$wxUSE_FONTDLG" = yes; then
9536 echo "$as_me:$LINENO: result: yes" >&5
9537echo "${ECHO_T}yes" >&6
9538 else
9539 echo "$as_me:$LINENO: result: no" >&5
9540echo "${ECHO_T}no" >&6
9541 fi
9542
9543
9544 enablestring=
9545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9546echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9547 no_cache=0
9548 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9549if test "${enable_dirdlg+set}" = set; then
9550 enableval="$enable_dirdlg"
9551
9552 if test "$enableval" = yes; then
9553 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9554 else
9555 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9556 fi
9557
9558else
9559
9560 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9561 if test "x$LINE" != x ; then
9562 eval "DEFAULT_$LINE"
9563 else
9564 no_cache=1
9565 fi
9566
9567 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9568
9569fi;
9570
9571 eval "$ac_cv_use_dirdlg"
9572 if test "$no_cache" != 1; then
9573 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9574 fi
9575
9576 if test "$wxUSE_DIRDLG" = yes; then
9577 echo "$as_me:$LINENO: result: yes" >&5
9578echo "${ECHO_T}yes" >&6
9579 else
9580 echo "$as_me:$LINENO: result: no" >&5
9581echo "${ECHO_T}no" >&6
9582 fi
9583
9584
9585 enablestring=
9586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9587echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9588 no_cache=0
9589 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9590if test "${enable_msgdlg+set}" = set; then
9591 enableval="$enable_msgdlg"
9592
9593 if test "$enableval" = yes; then
9594 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9595 else
9596 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9597 fi
9598
9599else
9600
9601 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9602 if test "x$LINE" != x ; then
9603 eval "DEFAULT_$LINE"
9604 else
9605 no_cache=1
9606 fi
9607
9608 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9609
9610fi;
9611
9612 eval "$ac_cv_use_msgdlg"
9613 if test "$no_cache" != 1; then
9614 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9615 fi
9616
9617 if test "$wxUSE_MSGDLG" = yes; then
9618 echo "$as_me:$LINENO: result: yes" >&5
9619echo "${ECHO_T}yes" >&6
9620 else
9621 echo "$as_me:$LINENO: result: no" >&5
9622echo "${ECHO_T}no" >&6
9623 fi
9624
9625
9626 enablestring=
9627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9628echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9629 no_cache=0
9630 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9631if test "${enable_numberdlg+set}" = set; then
9632 enableval="$enable_numberdlg"
9633
9634 if test "$enableval" = yes; then
9635 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9636 else
9637 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9638 fi
9639
9640else
9641
9642 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9643 if test "x$LINE" != x ; then
9644 eval "DEFAULT_$LINE"
9645 else
9646 no_cache=1
9647 fi
9648
9649 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9650
9651fi;
9652
9653 eval "$ac_cv_use_numberdlg"
9654 if test "$no_cache" != 1; then
9655 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9656 fi
9657
9658 if test "$wxUSE_NUMBERDLG" = yes; then
9659 echo "$as_me:$LINENO: result: yes" >&5
9660echo "${ECHO_T}yes" >&6
9661 else
9662 echo "$as_me:$LINENO: result: no" >&5
9663echo "${ECHO_T}no" >&6
9664 fi
9665
9666
9667 enablestring=
9668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9669echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9670 no_cache=0
9671 # Check whether --enable-splash or --disable-splash was given.
9672if test "${enable_splash+set}" = set; then
9673 enableval="$enable_splash"
9674
9675 if test "$enableval" = yes; then
9676 ac_cv_use_splash='wxUSE_SPLASH=yes'
9677 else
9678 ac_cv_use_splash='wxUSE_SPLASH=no'
9679 fi
9680
9681else
9682
9683 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9684 if test "x$LINE" != x ; then
9685 eval "DEFAULT_$LINE"
9686 else
9687 no_cache=1
9688 fi
9689
9690 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9691
9692fi;
9693
9694 eval "$ac_cv_use_splash"
9695 if test "$no_cache" != 1; then
9696 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9697 fi
9698
9699 if test "$wxUSE_SPLASH" = yes; then
9700 echo "$as_me:$LINENO: result: yes" >&5
9701echo "${ECHO_T}yes" >&6
9702 else
9703 echo "$as_me:$LINENO: result: no" >&5
9704echo "${ECHO_T}no" >&6
9705 fi
9706
9707
9708 enablestring=
9709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9710echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9711 no_cache=0
9712 # Check whether --enable-textdlg or --disable-textdlg was given.
9713if test "${enable_textdlg+set}" = set; then
9714 enableval="$enable_textdlg"
9715
9716 if test "$enableval" = yes; then
9717 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9718 else
9719 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9720 fi
9721
9722else
9723
9724 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9725 if test "x$LINE" != x ; then
9726 eval "DEFAULT_$LINE"
9727 else
9728 no_cache=1
9729 fi
9730
9731 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9732
9733fi;
9734
9735 eval "$ac_cv_use_textdlg"
9736 if test "$no_cache" != 1; then
9737 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9738 fi
9739
9740 if test "$wxUSE_TEXTDLG" = yes; then
9741 echo "$as_me:$LINENO: result: yes" >&5
9742echo "${ECHO_T}yes" >&6
9743 else
9744 echo "$as_me:$LINENO: result: no" >&5
9745echo "${ECHO_T}no" >&6
9746 fi
9747
9748
9749 enablestring=
9750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9751echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9752 no_cache=0
9753 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9754if test "${enable_tipdlg+set}" = set; then
9755 enableval="$enable_tipdlg"
9756
9757 if test "$enableval" = yes; then
9758 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9759 else
9760 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9761 fi
9762
9763else
9764
9765 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9766 if test "x$LINE" != x ; then
9767 eval "DEFAULT_$LINE"
9768 else
9769 no_cache=1
9770 fi
9771
9772 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9773
9774fi;
9775
9776 eval "$ac_cv_use_tipdlg"
9777 if test "$no_cache" != 1; then
9778 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9779 fi
9780
9781 if test "$wxUSE_STARTUP_TIPS" = yes; then
9782 echo "$as_me:$LINENO: result: yes" >&5
9783echo "${ECHO_T}yes" >&6
9784 else
9785 echo "$as_me:$LINENO: result: no" >&5
9786echo "${ECHO_T}no" >&6
9787 fi
9788
9789
9790 enablestring=
9791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9792echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9793 no_cache=0
9794 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9795if test "${enable_progressdlg+set}" = set; then
9796 enableval="$enable_progressdlg"
9797
9798 if test "$enableval" = yes; then
9799 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9800 else
9801 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9802 fi
9803
9804else
9805
9806 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9807 if test "x$LINE" != x ; then
9808 eval "DEFAULT_$LINE"
9809 else
9810 no_cache=1
9811 fi
9812
9813 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9814
9815fi;
9816
9817 eval "$ac_cv_use_progressdlg"
9818 if test "$no_cache" != 1; then
9819 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9820 fi
9821
9822 if test "$wxUSE_PROGRESSDLG" = yes; then
9823 echo "$as_me:$LINENO: result: yes" >&5
9824echo "${ECHO_T}yes" >&6
9825 else
9826 echo "$as_me:$LINENO: result: no" >&5
9827echo "${ECHO_T}no" >&6
9828 fi
9829
9830
9831 enablestring=
9832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9833echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9834 no_cache=0
9835 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9836if test "${enable_wizarddlg+set}" = set; then
9837 enableval="$enable_wizarddlg"
9838
9839 if test "$enableval" = yes; then
9840 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9841 else
9842 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9843 fi
9844
9845else
9846
9847 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9848 if test "x$LINE" != x ; then
9849 eval "DEFAULT_$LINE"
9850 else
9851 no_cache=1
9852 fi
9853
9854 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9855
9856fi;
9857
9858 eval "$ac_cv_use_wizarddlg"
9859 if test "$no_cache" != 1; then
9860 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9861 fi
9862
9863 if test "$wxUSE_WIZARDDLG" = yes; then
9864 echo "$as_me:$LINENO: result: yes" >&5
9865echo "${ECHO_T}yes" >&6
9866 else
9867 echo "$as_me:$LINENO: result: no" >&5
9868echo "${ECHO_T}no" >&6
9869 fi
9870
9871
9872
9873
9874 enablestring=
9875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9876echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9877 no_cache=0
9878 # Check whether --enable-menus or --disable-menus was given.
9879if test "${enable_menus+set}" = set; then
9880 enableval="$enable_menus"
9881
9882 if test "$enableval" = yes; then
9883 ac_cv_use_menus='wxUSE_MENUS=yes'
9884 else
9885 ac_cv_use_menus='wxUSE_MENUS=no'
9886 fi
9887
9888else
9889
9890 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9891 if test "x$LINE" != x ; then
9892 eval "DEFAULT_$LINE"
9893 else
9894 no_cache=1
9895 fi
9896
9897 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9898
9899fi;
9900
9901 eval "$ac_cv_use_menus"
9902 if test "$no_cache" != 1; then
9903 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9904 fi
9905
9906 if test "$wxUSE_MENUS" = yes; then
9907 echo "$as_me:$LINENO: result: yes" >&5
9908echo "${ECHO_T}yes" >&6
9909 else
9910 echo "$as_me:$LINENO: result: no" >&5
9911echo "${ECHO_T}no" >&6
9912 fi
9913
9914
9915 enablestring=
9916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9917echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9918 no_cache=0
9919 # Check whether --enable-miniframe or --disable-miniframe was given.
9920if test "${enable_miniframe+set}" = set; then
9921 enableval="$enable_miniframe"
9922
9923 if test "$enableval" = yes; then
9924 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9925 else
9926 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9927 fi
9928
9929else
9930
9931 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9932 if test "x$LINE" != x ; then
9933 eval "DEFAULT_$LINE"
9934 else
9935 no_cache=1
9936 fi
9937
9938 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9939
9940fi;
9941
9942 eval "$ac_cv_use_miniframe"
9943 if test "$no_cache" != 1; then
9944 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9945 fi
9946
9947 if test "$wxUSE_MINIFRAME" = yes; then
9948 echo "$as_me:$LINENO: result: yes" >&5
9949echo "${ECHO_T}yes" >&6
9950 else
9951 echo "$as_me:$LINENO: result: no" >&5
9952echo "${ECHO_T}no" >&6
9953 fi
9954
9955
9956 enablestring=
9957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9958echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9959 no_cache=0
9960 # Check whether --enable-tooltips or --disable-tooltips was given.
9961if test "${enable_tooltips+set}" = set; then
9962 enableval="$enable_tooltips"
9963
9964 if test "$enableval" = yes; then
9965 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9966 else
9967 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9968 fi
9969
9970else
9971
9972 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9973 if test "x$LINE" != x ; then
9974 eval "DEFAULT_$LINE"
9975 else
9976 no_cache=1
9977 fi
9978
9979 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9980
9981fi;
9982
9983 eval "$ac_cv_use_tooltips"
9984 if test "$no_cache" != 1; then
9985 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9986 fi
9987
9988 if test "$wxUSE_TOOLTIPS" = yes; then
9989 echo "$as_me:$LINENO: result: yes" >&5
9990echo "${ECHO_T}yes" >&6
9991 else
9992 echo "$as_me:$LINENO: result: no" >&5
9993echo "${ECHO_T}no" >&6
9994 fi
9995
9996
9997 enablestring=
9998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9999echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10000 no_cache=0
10001 # Check whether --enable-splines or --disable-splines was given.
10002if test "${enable_splines+set}" = set; then
10003 enableval="$enable_splines"
10004
10005 if test "$enableval" = yes; then
10006 ac_cv_use_splines='wxUSE_SPLINES=yes'
10007 else
10008 ac_cv_use_splines='wxUSE_SPLINES=no'
10009 fi
10010
10011else
10012
10013 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10014 if test "x$LINE" != x ; then
10015 eval "DEFAULT_$LINE"
10016 else
10017 no_cache=1
10018 fi
10019
10020 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10021
10022fi;
10023
10024 eval "$ac_cv_use_splines"
10025 if test "$no_cache" != 1; then
10026 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10027 fi
10028
10029 if test "$wxUSE_SPLINES" = yes; then
10030 echo "$as_me:$LINENO: result: yes" >&5
10031echo "${ECHO_T}yes" >&6
10032 else
10033 echo "$as_me:$LINENO: result: no" >&5
10034echo "${ECHO_T}no" >&6
10035 fi
10036
10037
fbe2ca43
SN
10038 enablestring=
10039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10040echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10041 no_cache=0
10042 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10043if test "${enable_mousewheel+set}" = set; then
10044 enableval="$enable_mousewheel"
10045
10046 if test "$enableval" = yes; then
10047 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10048 else
10049 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10050 fi
10051
10052else
10053
10054 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10055 if test "x$LINE" != x ; then
10056 eval "DEFAULT_$LINE"
10057 else
10058 no_cache=1
10059 fi
10060
10061 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10062
10063fi;
10064
10065 eval "$ac_cv_use_mousewheel"
10066 if test "$no_cache" != 1; then
10067 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10068 fi
10069
10070 if test "$wxUSE_MOUSEWHEEL" = yes; then
10071 echo "$as_me:$LINENO: result: yes" >&5
10072echo "${ECHO_T}yes" >&6
10073 else
10074 echo "$as_me:$LINENO: result: no" >&5
10075echo "${ECHO_T}no" >&6
10076 fi
10077
10078
a848cd7e
SC
10079 enablestring=
10080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10081echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10082 no_cache=0
10083 # Check whether --enable-validators or --disable-validators was given.
10084if test "${enable_validators+set}" = set; then
10085 enableval="$enable_validators"
10086
10087 if test "$enableval" = yes; then
10088 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10089 else
10090 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10091 fi
10092
10093else
10094
10095 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10096 if test "x$LINE" != x ; then
10097 eval "DEFAULT_$LINE"
10098 else
10099 no_cache=1
10100 fi
10101
10102 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10103
10104fi;
10105
10106 eval "$ac_cv_use_validators"
10107 if test "$no_cache" != 1; then
10108 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10109 fi
10110
10111 if test "$wxUSE_VALIDATORS" = yes; then
10112 echo "$as_me:$LINENO: result: yes" >&5
10113echo "${ECHO_T}yes" >&6
10114 else
10115 echo "$as_me:$LINENO: result: no" >&5
10116echo "${ECHO_T}no" >&6
10117 fi
10118
10119
10120 enablestring=
10121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10122echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10123 no_cache=0
10124 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10125if test "${enable_busyinfo+set}" = set; then
10126 enableval="$enable_busyinfo"
10127
10128 if test "$enableval" = yes; then
10129 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10130 else
10131 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10132 fi
10133
10134else
10135
10136 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10137 if test "x$LINE" != x ; then
10138 eval "DEFAULT_$LINE"
10139 else
10140 no_cache=1
10141 fi
10142
10143 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10144
10145fi;
10146
10147 eval "$ac_cv_use_busyinfo"
10148 if test "$no_cache" != 1; then
10149 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10150 fi
10151
10152 if test "$wxUSE_BUSYINFO" = yes; then
10153 echo "$as_me:$LINENO: result: yes" >&5
10154echo "${ECHO_T}yes" >&6
10155 else
10156 echo "$as_me:$LINENO: result: no" >&5
10157echo "${ECHO_T}no" >&6
10158 fi
10159
10160
10161 enablestring=
10162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10163echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10164 no_cache=0
10165 # Check whether --enable-joystick or --disable-joystick was given.
10166if test "${enable_joystick+set}" = set; then
10167 enableval="$enable_joystick"
10168
10169 if test "$enableval" = yes; then
10170 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10171 else
10172 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10173 fi
10174
10175else
10176
10177 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10178 if test "x$LINE" != x ; then
10179 eval "DEFAULT_$LINE"
10180 else
10181 no_cache=1
10182 fi
10183
10184 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10185
10186fi;
10187
10188 eval "$ac_cv_use_joystick"
10189 if test "$no_cache" != 1; then
10190 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10191 fi
10192
10193 if test "$wxUSE_JOYSTICK" = yes; then
10194 echo "$as_me:$LINENO: result: yes" >&5
10195echo "${ECHO_T}yes" >&6
10196 else
10197 echo "$as_me:$LINENO: result: no" >&5
10198echo "${ECHO_T}no" >&6
10199 fi
10200
10201
10202 enablestring=
10203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10204echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10205 no_cache=0
10206 # Check whether --enable-metafile or --disable-metafile was given.
10207if test "${enable_metafile+set}" = set; then
10208 enableval="$enable_metafile"
10209
10210 if test "$enableval" = yes; then
10211 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10212 else
10213 ac_cv_use_metafile='wxUSE_METAFILE=no'
10214 fi
10215
10216else
10217
10218 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10219 if test "x$LINE" != x ; then
10220 eval "DEFAULT_$LINE"
10221 else
10222 no_cache=1
10223 fi
10224
10225 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10226
10227fi;
10228
10229 eval "$ac_cv_use_metafile"
10230 if test "$no_cache" != 1; then
10231 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10232 fi
10233
10234 if test "$wxUSE_METAFILE" = yes; then
10235 echo "$as_me:$LINENO: result: yes" >&5
10236echo "${ECHO_T}yes" >&6
10237 else
10238 echo "$as_me:$LINENO: result: no" >&5
10239echo "${ECHO_T}no" >&6
10240 fi
10241
10242
10243 enablestring=
10244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10245echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10246 no_cache=0
10247 # Check whether --enable-dragimage or --disable-dragimage was given.
10248if test "${enable_dragimage+set}" = set; then
10249 enableval="$enable_dragimage"
10250
10251 if test "$enableval" = yes; then
10252 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10253 else
10254 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10255 fi
10256
10257else
10258
10259 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10260 if test "x$LINE" != x ; then
10261 eval "DEFAULT_$LINE"
10262 else
10263 no_cache=1
10264 fi
10265
10266 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10267
10268fi;
10269
10270 eval "$ac_cv_use_dragimage"
10271 if test "$no_cache" != 1; then
10272 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10273 fi
10274
10275 if test "$wxUSE_DRAGIMAGE" = yes; then
10276 echo "$as_me:$LINENO: result: yes" >&5
10277echo "${ECHO_T}yes" >&6
10278 else
10279 echo "$as_me:$LINENO: result: no" >&5
10280echo "${ECHO_T}no" >&6
10281 fi
10282
10283
10284 enablestring=
10285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10286echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10287 no_cache=0
10288 # Check whether --enable-accessibility or --disable-accessibility was given.
10289if test "${enable_accessibility+set}" = set; then
10290 enableval="$enable_accessibility"
10291
10292 if test "$enableval" = yes; then
10293 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10294 else
10295 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10296 fi
10297
10298else
10299
10300 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10301 if test "x$LINE" != x ; then
10302 eval "DEFAULT_$LINE"
10303 else
10304 no_cache=1
10305 fi
10306
10307 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10308
10309fi;
10310
10311 eval "$ac_cv_use_accessibility"
10312 if test "$no_cache" != 1; then
10313 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10314 fi
10315
10316 if test "$wxUSE_ACCESSIBILITY" = yes; then
10317 echo "$as_me:$LINENO: result: yes" >&5
10318echo "${ECHO_T}yes" >&6
10319 else
10320 echo "$as_me:$LINENO: result: no" >&5
10321echo "${ECHO_T}no" >&6
10322 fi
10323
10324
38b4a946
VZ
10325if test "$wxUSE_MSW" = "1"; then
10326
10327 enablestring=
10328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10329echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10330 no_cache=0
10331 # Check whether --enable-dccache or --disable-dccache was given.
10332if test "${enable_dccache+set}" = set; then
10333 enableval="$enable_dccache"
10334
10335 if test "$enableval" = yes; then
10336 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10337 else
10338 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10339 fi
10340
10341else
10342
10343 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10344 if test "x$LINE" != x ; then
10345 eval "DEFAULT_$LINE"
10346 else
10347 no_cache=1
10348 fi
10349
10350 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10351
10352fi;
10353
10354 eval "$ac_cv_use_dccache"
10355 if test "$no_cache" != 1; then
10356 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10357 fi
10358
10359 if test "$wxUSE_DC_CACHEING" = yes; then
10360 echo "$as_me:$LINENO: result: yes" >&5
10361echo "${ECHO_T}yes" >&6
10362 else
10363 echo "$as_me:$LINENO: result: no" >&5
10364echo "${ECHO_T}no" >&6
10365 fi
10366
10367fi
10368
a848cd7e
SC
10369
10370
10371 enablestring=
10372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10373echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10374 no_cache=0
10375 # Check whether --enable-palette or --disable-palette was given.
10376if test "${enable_palette+set}" = set; then
10377 enableval="$enable_palette"
10378
10379 if test "$enableval" = yes; then
10380 ac_cv_use_palette='wxUSE_PALETTE=yes'
10381 else
10382 ac_cv_use_palette='wxUSE_PALETTE=no'
10383 fi
10384
10385else
10386
10387 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10388 if test "x$LINE" != x ; then
10389 eval "DEFAULT_$LINE"
10390 else
10391 no_cache=1
10392 fi
10393
10394 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10395
10396fi;
10397
10398 eval "$ac_cv_use_palette"
10399 if test "$no_cache" != 1; then
10400 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10401 fi
10402
10403 if test "$wxUSE_PALETTE" = yes; then
10404 echo "$as_me:$LINENO: result: yes" >&5
10405echo "${ECHO_T}yes" >&6
10406 else
10407 echo "$as_me:$LINENO: result: no" >&5
10408echo "${ECHO_T}no" >&6
10409 fi
10410
10411
10412 enablestring=
10413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10414echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10415 no_cache=0
10416 # Check whether --enable-image or --disable-image was given.
10417if test "${enable_image+set}" = set; then
10418 enableval="$enable_image"
10419
10420 if test "$enableval" = yes; then
10421 ac_cv_use_image='wxUSE_IMAGE=yes'
10422 else
10423 ac_cv_use_image='wxUSE_IMAGE=no'
10424 fi
10425
10426else
10427
10428 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10429 if test "x$LINE" != x ; then
10430 eval "DEFAULT_$LINE"
10431 else
10432 no_cache=1
10433 fi
10434
10435 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10436
10437fi;
10438
10439 eval "$ac_cv_use_image"
10440 if test "$no_cache" != 1; then
10441 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10442 fi
10443
10444 if test "$wxUSE_IMAGE" = yes; then
10445 echo "$as_me:$LINENO: result: yes" >&5
10446echo "${ECHO_T}yes" >&6
10447 else
10448 echo "$as_me:$LINENO: result: no" >&5
10449echo "${ECHO_T}no" >&6
10450 fi
10451
10452
10453 enablestring=
10454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10455echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10456 no_cache=0
10457 # Check whether --enable-gif or --disable-gif was given.
10458if test "${enable_gif+set}" = set; then
10459 enableval="$enable_gif"
10460
10461 if test "$enableval" = yes; then
10462 ac_cv_use_gif='wxUSE_GIF=yes'
10463 else
10464 ac_cv_use_gif='wxUSE_GIF=no'
10465 fi
10466
10467else
10468
10469 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10470 if test "x$LINE" != x ; then
10471 eval "DEFAULT_$LINE"
10472 else
10473 no_cache=1
10474 fi
10475
10476 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10477
10478fi;
10479
10480 eval "$ac_cv_use_gif"
10481 if test "$no_cache" != 1; then
10482 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10483 fi
10484
10485 if test "$wxUSE_GIF" = yes; then
10486 echo "$as_me:$LINENO: result: yes" >&5
10487echo "${ECHO_T}yes" >&6
10488 else
10489 echo "$as_me:$LINENO: result: no" >&5
10490echo "${ECHO_T}no" >&6
10491 fi
10492
10493
10494 enablestring=
10495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10496echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10497 no_cache=0
10498 # Check whether --enable-pcx or --disable-pcx was given.
10499if test "${enable_pcx+set}" = set; then
10500 enableval="$enable_pcx"
10501
10502 if test "$enableval" = yes; then
10503 ac_cv_use_pcx='wxUSE_PCX=yes'
10504 else
10505 ac_cv_use_pcx='wxUSE_PCX=no'
10506 fi
10507
10508else
10509
10510 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10511 if test "x$LINE" != x ; then
10512 eval "DEFAULT_$LINE"
10513 else
10514 no_cache=1
10515 fi
10516
10517 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10518
10519fi;
10520
10521 eval "$ac_cv_use_pcx"
10522 if test "$no_cache" != 1; then
10523 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10524 fi
10525
10526 if test "$wxUSE_PCX" = yes; then
10527 echo "$as_me:$LINENO: result: yes" >&5
10528echo "${ECHO_T}yes" >&6
10529 else
10530 echo "$as_me:$LINENO: result: no" >&5
10531echo "${ECHO_T}no" >&6
10532 fi
10533
10534
10535 enablestring=
10536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10537echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10538 no_cache=0
10539 # Check whether --enable-iff or --disable-iff was given.
10540if test "${enable_iff+set}" = set; then
10541 enableval="$enable_iff"
10542
10543 if test "$enableval" = yes; then
10544 ac_cv_use_iff='wxUSE_IFF=yes'
10545 else
10546 ac_cv_use_iff='wxUSE_IFF=no'
10547 fi
10548
10549else
10550
10551 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10552 if test "x$LINE" != x ; then
10553 eval "DEFAULT_$LINE"
10554 else
10555 no_cache=1
10556 fi
10557
10558 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10559
10560fi;
10561
10562 eval "$ac_cv_use_iff"
10563 if test "$no_cache" != 1; then
10564 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10565 fi
10566
10567 if test "$wxUSE_IFF" = yes; then
10568 echo "$as_me:$LINENO: result: yes" >&5
10569echo "${ECHO_T}yes" >&6
10570 else
10571 echo "$as_me:$LINENO: result: no" >&5
10572echo "${ECHO_T}no" >&6
10573 fi
10574
10575
10576 enablestring=
10577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10578echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10579 no_cache=0
10580 # Check whether --enable-pnm or --disable-pnm was given.
10581if test "${enable_pnm+set}" = set; then
10582 enableval="$enable_pnm"
10583
10584 if test "$enableval" = yes; then
10585 ac_cv_use_pnm='wxUSE_PNM=yes'
10586 else
10587 ac_cv_use_pnm='wxUSE_PNM=no'
10588 fi
10589
10590else
10591
10592 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10593 if test "x$LINE" != x ; then
10594 eval "DEFAULT_$LINE"
10595 else
10596 no_cache=1
10597 fi
10598
10599 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10600
10601fi;
10602
10603 eval "$ac_cv_use_pnm"
10604 if test "$no_cache" != 1; then
10605 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10606 fi
10607
10608 if test "$wxUSE_PNM" = yes; then
10609 echo "$as_me:$LINENO: result: yes" >&5
10610echo "${ECHO_T}yes" >&6
10611 else
10612 echo "$as_me:$LINENO: result: no" >&5
10613echo "${ECHO_T}no" >&6
10614 fi
10615
10616
10617 enablestring=
10618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10619echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10620 no_cache=0
10621 # Check whether --enable-xpm or --disable-xpm was given.
10622if test "${enable_xpm+set}" = set; then
10623 enableval="$enable_xpm"
10624
10625 if test "$enableval" = yes; then
10626 ac_cv_use_xpm='wxUSE_XPM=yes'
10627 else
10628 ac_cv_use_xpm='wxUSE_XPM=no'
10629 fi
10630
10631else
10632
10633 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10634 if test "x$LINE" != x ; then
10635 eval "DEFAULT_$LINE"
10636 else
10637 no_cache=1
10638 fi
10639
10640 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10641
10642fi;
10643
10644 eval "$ac_cv_use_xpm"
10645 if test "$no_cache" != 1; then
10646 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10647 fi
10648
10649 if test "$wxUSE_XPM" = yes; then
10650 echo "$as_me:$LINENO: result: yes" >&5
10651echo "${ECHO_T}yes" >&6
10652 else
10653 echo "$as_me:$LINENO: result: no" >&5
10654echo "${ECHO_T}no" >&6
10655 fi
10656
10657
10658 enablestring=
10659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10660echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10661 no_cache=0
10662 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10663if test "${enable_ico_cur+set}" = set; then
10664 enableval="$enable_ico_cur"
10665
10666 if test "$enableval" = yes; then
10667 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10668 else
10669 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10670 fi
10671
10672else
10673
10674 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10675 if test "x$LINE" != x ; then
10676 eval "DEFAULT_$LINE"
10677 else
10678 no_cache=1
10679 fi
10680
10681 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10682
10683fi;
10684
10685 eval "$ac_cv_use_ico_cur"
10686 if test "$no_cache" != 1; then
10687 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10688 fi
10689
10690 if test "$wxUSE_ICO_CUR" = yes; then
10691 echo "$as_me:$LINENO: result: yes" >&5
10692echo "${ECHO_T}yes" >&6
10693 else
10694 echo "$as_me:$LINENO: result: no" >&5
10695echo "${ECHO_T}no" >&6
10696 fi
10697
10698
10699fi
10700
10701
10702
ceec2216
RL
10703# Check whether --with-flavour or --without-flavour was given.
10704if test "${with_flavour+set}" = set; then
10705 withval="$with_flavour"
10706 WX_FLAVOUR="$withval"
10707fi;
10708
10709
10710
a848cd7e
SC
10711 enablestring=
10712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10713echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10714 no_cache=0
10715 # Check whether --enable-official_build or --disable-official_build was given.
10716if test "${enable_official_build+set}" = set; then
10717 enableval="$enable_official_build"
10718
10719 if test "$enableval" = yes; then
10720 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10721 else
10722 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10723 fi
10724
10725else
10726
10727 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10728 if test "x$LINE" != x ; then
10729 eval "DEFAULT_$LINE"
10730 else
10731 no_cache=1
10732 fi
10733
10734 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10735
10736fi;
10737
10738 eval "$ac_cv_use_official_build"
10739 if test "$no_cache" != 1; then
10740 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10741 fi
10742
10743 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10744 echo "$as_me:$LINENO: result: yes" >&5
10745echo "${ECHO_T}yes" >&6
10746 else
10747 echo "$as_me:$LINENO: result: no" >&5
10748echo "${ECHO_T}no" >&6
10749 fi
10750
10751# Check whether --enable-vendor or --disable-vendor was given.
10752if test "${enable_vendor+set}" = set; then
10753 enableval="$enable_vendor"
10754 VENDOR="$enableval"
10755fi;
10756if test "x$VENDOR" = "x"; then
10757 VENDOR="custom"
10758fi
10759
a848cd7e
SC
10760
10761
10762
10763 echo "saving argument cache $wx_arg_cache_file"
10764 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10765
10766
10767
10768echo "$as_me:$LINENO: checking for toolkit" >&5
10769echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10770
10771# In Wine, we need to default to MSW, not GTK or MOTIF
10772if test "$wxUSE_WINE" = "yes"; then
10773 DEFAULT_DEFAULT_wxUSE_GTK=0
10774 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10775 DEFAULT_DEFAULT_wxUSE_MSW=1
10776 wxUSE_SHARED=no
10777fi
10778
f597b41c 10779
a848cd7e
SC
10780if test "$wxUSE_GUI" = "yes"; then
10781
10782 if test "$USE_BEOS" = 1; then
10783 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10784echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10785 { (exit 1); exit 1; }; }
10786 fi
10787
10788 if test "$TOOLKIT_GIVEN" = 1; then
10789 for toolkit in `echo $ALL_TOOLKITS`; do
10790 var=wxUSE_$toolkit
10791 eval "value=\$${var}"
f34ca037
MW
10792 if test "x$value" = "xno"; then
10793 eval "$var=0"
10794 elif test "x$value" != "x"; then
10795 eval "$var=1"
10796 fi
10797
10798 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10799 eval "wx${toolkit}_VERSION=$value"
10800 fi
a848cd7e
SC
10801 done
10802 else
10803 for toolkit in `echo $ALL_TOOLKITS`; do
10804 if test "$has_toolkit_in_cache" != 1; then
10805 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10806 else
10807 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10808
10809 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10810 if test "x$version" != "x"; then
10811 eval "wx${toolkit}_VERSION=$version"
10812 fi
a848cd7e
SC
10813 fi
10814 eval "wxUSE_$toolkit=\$${var}"
10815 done
10816 fi
10817
10818 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10819 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10820 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10821
10822 case "${host}" in
10823 *-pc-os2_emx | *-pc-os2-emx )
10824 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10825 esac
10826
10827 case "$NUM_TOOLKITS" in
10828 1)
10829 ;;
10830 0)
10831 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10832echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10833 { (exit 1); exit 1; }; }
10834 ;;
10835 *)
10836 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10837echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10838 { (exit 1); exit 1; }; }
10839 esac
10840
f34ca037
MW
10841 # to be removed when --disable-gtk2 isn't needed
10842 if test "x$wxUSE_GTK2" = "xyes"; then
10843 wxGTK_VERSION=2
10844 elif test "x$wxUSE_GTK2" = "xno"; then
10845 wxGTK_VERSION=1
10846 fi
10847
a848cd7e
SC
10848 for toolkit in `echo $ALL_TOOLKITS`; do
10849 var=wxUSE_$toolkit
10850 eval "value=\$${var}"
10851 if test "x$value" != x; then
10852 cache_var=CACHE_$toolkit
10853 eval "cache=\$${cache_var}"
10854 if test "$cache" = 1; then
10855 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10856 eval "version=\$wx${toolkit}_VERSION"
10857 if test "x$version" != "x"; then
10858 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10859 fi
a848cd7e
SC
10860 fi
10861 if test "$value" = 1; then
10862 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10863 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10864echo "${ECHO_T}$toolkit_echo" >&6
10865 fi
10866 fi
10867 done
10868else
10869 if test "x$host_alias" != "x"; then
10870 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10871echo "${ECHO_T}base ($host_alias hosted) only" >&6
10872 else
10873 echo "$as_me:$LINENO: result: base only" >&5
10874echo "${ECHO_T}base only" >&6
10875 fi
10876fi
10877
10878wants_win32=0
10879doesnt_want_win32=0
10880case "${host}" in
10881 *-*-cygwin*)
10882 if test "$wxUSE_MSW" = 1 ; then
10883 wants_win32=1
7275146d 10884 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10885 else
10886 doesnt_want_win32=1
10887 fi
10888 ;;
10889 *-*-mingw*)
10890 wants_win32=1
10891 ;;
10892esac
10893
10894if test "$wxUSE_WINE" = "yes"; then
10895 wants_win32=1
10896 CC=winegcc
10897 CXX=wineg++
a848cd7e
SC
10898 LDFLAGS_GUI="-mwindows"
10899fi
10900
10901if test "$wants_win32" = 1 ; then
10902 USE_UNIX=0
10903 USE_WIN32=1
10904 cat >>confdefs.h <<\_ACEOF
10905#define __WIN32__ 1
10906_ACEOF
10907
10908 cat >>confdefs.h <<\_ACEOF
10909#define __WIN95__ 1
10910_ACEOF
10911
10912 cat >>confdefs.h <<\_ACEOF
10913#define __WINDOWS__ 1
10914_ACEOF
10915
10916 cat >>confdefs.h <<\_ACEOF
10917#define __GNUWIN32__ 1
10918_ACEOF
10919
10920 cat >>confdefs.h <<\_ACEOF
10921#define STRICT 1
10922_ACEOF
10923
10924 cat >>confdefs.h <<\_ACEOF
10925#define WINVER 0x0400
10926_ACEOF
10927
10928fi
10929if test "$doesnt_want_win32" = 1 ; then
10930 USE_UNIX=1
10931 USE_WIN32=0
10932fi
10933
10934if test "$USE_UNIX" = 1 ; then
10935 wxUSE_UNIX=yes
10936 cat >>confdefs.h <<\_ACEOF
10937#define __UNIX__ 1
10938_ACEOF
10939
10940fi
10941
10942
10943cat >confcache <<\_ACEOF
10944# This file is a shell script that caches the results of configure
10945# tests run on this system so they can be shared between configure
10946# scripts and configure runs, see configure's option --config-cache.
10947# It is not useful on other systems. If it contains results you don't
10948# want to keep, you may remove or edit it.
10949#
10950# config.status only pays attention to the cache file if you give it
10951# the --recheck option to rerun configure.
10952#
10953# `ac_cv_env_foo' variables (set or unset) will be overridden when
10954# loading this file, other *unset* `ac_cv_foo' will be assigned the
10955# following values.
10956
10957_ACEOF
10958
10959# The following way of writing the cache mishandles newlines in values,
10960# but we know of no workaround that is simple, portable, and efficient.
10961# So, don't put newlines in cache variables' values.
10962# Ultrix sh set writes to stderr and can't be redirected directly,
10963# and sets the high bit in the cache file unless we assign to the vars.
10964{
10965 (set) 2>&1 |
10966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10967 *ac_space=\ *)
10968 # `set' does not quote correctly, so add quotes (double-quote
10969 # substitution turns \\\\ into \\, and sed turns \\ into \).
10970 sed -n \
ac1cb8d3
VS
10971 "s/'/'\\\\''/g;
10972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10973 ;;
10974 *)
10975 # `set' quotes correctly as required by POSIX, so do not add quotes.
10976 sed -n \
ac1cb8d3 10977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10978 ;;
10979 esac;
10980} |
10981 sed '
10982 t clear
10983 : clear
10984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10985 t end
10986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10987 : end' >>confcache
10988if diff $cache_file confcache >/dev/null 2>&1; then :; else
10989 if test -w $cache_file; then
10990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10991 cat confcache >$cache_file
10992 else
10993 echo "not updating unwritable cache $cache_file"
10994 fi
10995fi
10996rm -f confcache
10997
a848cd7e 10998CFLAGS=${CFLAGS:=}
6dcfc289
DE
10999
11000
3006edc0 11001
6dcfc289 11002 ac_ext=c
a848cd7e
SC
11003ac_cpp='$CPP $CPPFLAGS'
11004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11006ac_compiler_gnu=$ac_cv_c_compiler_gnu
11007if test -n "$ac_tool_prefix"; then
11008 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11009set dummy ${ac_tool_prefix}gcc; ac_word=$2
11010echo "$as_me:$LINENO: checking for $ac_word" >&5
11011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11012if test "${ac_cv_prog_CC+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014else
11015 if test -n "$CC"; then
11016 ac_cv_prog_CC="$CC" # Let the user override the test.
11017else
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11025 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 break 2
11028 fi
11029done
11030done
11031
11032fi
11033fi
11034CC=$ac_cv_prog_CC
11035if test -n "$CC"; then
11036 echo "$as_me:$LINENO: result: $CC" >&5
11037echo "${ECHO_T}$CC" >&6
11038else
11039 echo "$as_me:$LINENO: result: no" >&5
11040echo "${ECHO_T}no" >&6
11041fi
11042
11043fi
11044if test -z "$ac_cv_prog_CC"; then
11045 ac_ct_CC=$CC
11046 # Extract the first word of "gcc", so it can be a program name with args.
11047set dummy gcc; ac_word=$2
11048echo "$as_me:$LINENO: checking for $ac_word" >&5
11049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11050if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052else
11053 if test -n "$ac_ct_CC"; then
11054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11055else
11056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057for as_dir in $PATH
11058do
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11063 ac_cv_prog_ac_ct_CC="gcc"
11064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11065 break 2
11066 fi
11067done
11068done
11069
11070fi
11071fi
11072ac_ct_CC=$ac_cv_prog_ac_ct_CC
11073if test -n "$ac_ct_CC"; then
11074 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11075echo "${ECHO_T}$ac_ct_CC" >&6
11076else
11077 echo "$as_me:$LINENO: result: no" >&5
11078echo "${ECHO_T}no" >&6
11079fi
11080
11081 CC=$ac_ct_CC
11082else
11083 CC="$ac_cv_prog_CC"
11084fi
11085
11086if test -z "$CC"; then
11087 if test -n "$ac_tool_prefix"; then
11088 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11089set dummy ${ac_tool_prefix}cc; ac_word=$2
11090echo "$as_me:$LINENO: checking for $ac_word" >&5
11091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11092if test "${ac_cv_prog_CC+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11094else
11095 if test -n "$CC"; then
11096 ac_cv_prog_CC="$CC" # Let the user override the test.
11097else
11098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099for as_dir in $PATH
11100do
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11105 ac_cv_prog_CC="${ac_tool_prefix}cc"
11106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11107 break 2
11108 fi
11109done
11110done
11111
11112fi
11113fi
11114CC=$ac_cv_prog_CC
11115if test -n "$CC"; then
11116 echo "$as_me:$LINENO: result: $CC" >&5
11117echo "${ECHO_T}$CC" >&6
11118else
11119 echo "$as_me:$LINENO: result: no" >&5
11120echo "${ECHO_T}no" >&6
11121fi
11122
11123fi
11124if test -z "$ac_cv_prog_CC"; then
11125 ac_ct_CC=$CC
11126 # Extract the first word of "cc", so it can be a program name with args.
11127set dummy cc; ac_word=$2
11128echo "$as_me:$LINENO: checking for $ac_word" >&5
11129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11130if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132else
11133 if test -n "$ac_ct_CC"; then
11134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11135else
11136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137for as_dir in $PATH
11138do
11139 IFS=$as_save_IFS
11140 test -z "$as_dir" && as_dir=.
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11143 ac_cv_prog_ac_ct_CC="cc"
11144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11145 break 2
11146 fi
11147done
11148done
11149
11150fi
11151fi
11152ac_ct_CC=$ac_cv_prog_ac_ct_CC
11153if test -n "$ac_ct_CC"; then
11154 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11155echo "${ECHO_T}$ac_ct_CC" >&6
11156else
11157 echo "$as_me:$LINENO: result: no" >&5
11158echo "${ECHO_T}no" >&6
11159fi
11160
11161 CC=$ac_ct_CC
11162else
11163 CC="$ac_cv_prog_CC"
11164fi
11165
11166fi
11167if test -z "$CC"; then
11168 # Extract the first word of "cc", so it can be a program name with args.
11169set dummy cc; ac_word=$2
11170echo "$as_me:$LINENO: checking for $ac_word" >&5
11171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11172if test "${ac_cv_prog_CC+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11174else
11175 if test -n "$CC"; then
11176 ac_cv_prog_CC="$CC" # Let the user override the test.
11177else
11178 ac_prog_rejected=no
11179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11180for as_dir in $PATH
11181do
11182 IFS=$as_save_IFS
11183 test -z "$as_dir" && as_dir=.
11184 for ac_exec_ext in '' $ac_executable_extensions; do
11185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11186 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11187 ac_prog_rejected=yes
11188 continue
11189 fi
11190 ac_cv_prog_CC="cc"
11191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11192 break 2
11193 fi
11194done
11195done
11196
11197if test $ac_prog_rejected = yes; then
11198 # We found a bogon in the path, so make sure we never use it.
11199 set dummy $ac_cv_prog_CC
11200 shift
11201 if test $# != 0; then
11202 # We chose a different compiler from the bogus one.
11203 # However, it has the same basename, so the bogon will be chosen
11204 # first if we set CC to just the basename; use the full file name.
11205 shift
11206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11207 fi
11208fi
11209fi
11210fi
11211CC=$ac_cv_prog_CC
11212if test -n "$CC"; then
11213 echo "$as_me:$LINENO: result: $CC" >&5
11214echo "${ECHO_T}$CC" >&6
11215else
11216 echo "$as_me:$LINENO: result: no" >&5
11217echo "${ECHO_T}no" >&6
11218fi
11219
11220fi
11221if test -z "$CC"; then
11222 if test -n "$ac_tool_prefix"; then
11223 for ac_prog in cl
11224 do
11225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11227echo "$as_me:$LINENO: checking for $ac_word" >&5
11228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11229if test "${ac_cv_prog_CC+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11231else
11232 if test -n "$CC"; then
11233 ac_cv_prog_CC="$CC" # Let the user override the test.
11234else
11235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236for as_dir in $PATH
11237do
11238 IFS=$as_save_IFS
11239 test -z "$as_dir" && as_dir=.
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 break 2
11245 fi
11246done
11247done
11248
11249fi
11250fi
11251CC=$ac_cv_prog_CC
11252if test -n "$CC"; then
11253 echo "$as_me:$LINENO: result: $CC" >&5
11254echo "${ECHO_T}$CC" >&6
11255else
11256 echo "$as_me:$LINENO: result: no" >&5
11257echo "${ECHO_T}no" >&6
11258fi
11259
11260 test -n "$CC" && break
11261 done
11262fi
11263if test -z "$CC"; then
11264 ac_ct_CC=$CC
11265 for ac_prog in cl
11266do
11267 # Extract the first word of "$ac_prog", so it can be a program name with args.
11268set dummy $ac_prog; ac_word=$2
11269echo "$as_me:$LINENO: checking for $ac_word" >&5
11270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11271if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273else
11274 if test -n "$ac_ct_CC"; then
11275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11276else
11277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278for as_dir in $PATH
11279do
11280 IFS=$as_save_IFS
11281 test -z "$as_dir" && as_dir=.
11282 for ac_exec_ext in '' $ac_executable_extensions; do
11283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11284 ac_cv_prog_ac_ct_CC="$ac_prog"
11285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11286 break 2
11287 fi
11288done
11289done
11290
11291fi
11292fi
11293ac_ct_CC=$ac_cv_prog_ac_ct_CC
11294if test -n "$ac_ct_CC"; then
11295 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11296echo "${ECHO_T}$ac_ct_CC" >&6
11297else
11298 echo "$as_me:$LINENO: result: no" >&5
11299echo "${ECHO_T}no" >&6
11300fi
11301
11302 test -n "$ac_ct_CC" && break
11303done
11304
11305 CC=$ac_ct_CC
11306fi
11307
11308fi
11309
11310
11311test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11312See \`config.log' for more details." >&5
11313echo "$as_me: error: no acceptable C compiler found in \$PATH
11314See \`config.log' for more details." >&2;}
11315 { (exit 1); exit 1; }; }
11316
11317# Provide some information about the compiler.
11318echo "$as_me:$LINENO:" \
11319 "checking for C compiler version" >&5
11320ac_compiler=`set X $ac_compile; echo $2`
11321{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11322 (eval $ac_compiler --version </dev/null >&5) 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }
11326{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11327 (eval $ac_compiler -v </dev/null >&5) 2>&5
11328 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }
11331{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11332 (eval $ac_compiler -V </dev/null >&5) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }
11336
11337cat >conftest.$ac_ext <<_ACEOF
11338/* confdefs.h. */
11339_ACEOF
11340cat confdefs.h >>conftest.$ac_ext
11341cat >>conftest.$ac_ext <<_ACEOF
11342/* end confdefs.h. */
11343
11344int
11345main ()
11346{
11347
11348 ;
11349 return 0;
11350}
11351_ACEOF
11352ac_clean_files_save=$ac_clean_files
11353ac_clean_files="$ac_clean_files a.out a.exe b.out"
11354# Try to create an executable without -o first, disregard a.out.
11355# It will help us diagnose broken compilers, and finding out an intuition
11356# of exeext.
ac1cb8d3
VS
11357echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11358echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11359ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11360if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11361 (eval $ac_link_default) 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; then
11365 # Find the output, starting from the most likely. This scheme is
11366# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11367# resort.
11368
11369# Be careful to initialize this variable, since it used to be cached.
11370# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11371ac_cv_exeext=
11372# b.out is created by i960 compilers.
11373for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11374do
11375 test -f "$ac_file" || continue
11376 case $ac_file in
11377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11378 ;;
a848cd7e 11379 conftest.$ac_ext )
ac1cb8d3
VS
11380 # This is the source file.
11381 ;;
a848cd7e 11382 [ab].out )
ac1cb8d3
VS
11383 # We found the default executable, but exeext='' is most
11384 # certainly right.
11385 break;;
a848cd7e 11386 *.* )
ac1cb8d3
VS
11387 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11388 # FIXME: I believe we export ac_cv_exeext for Libtool,
11389 # but it would be cool to find out if it's true. Does anybody
11390 # maintain Libtool? --akim.
11391 export ac_cv_exeext
11392 break;;
a848cd7e 11393 * )
ac1cb8d3 11394 break;;
a848cd7e
SC
11395 esac
11396done
11397else
11398 echo "$as_me: failed program was:" >&5
11399sed 's/^/| /' conftest.$ac_ext >&5
11400
11401{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11402See \`config.log' for more details." >&5
11403echo "$as_me: error: C compiler cannot create executables
11404See \`config.log' for more details." >&2;}
11405 { (exit 77); exit 77; }; }
11406fi
11407
11408ac_exeext=$ac_cv_exeext
11409echo "$as_me:$LINENO: result: $ac_file" >&5
11410echo "${ECHO_T}$ac_file" >&6
11411
11412# Check the compiler produces executables we can run. If not, either
11413# the compiler is broken, or we cross compile.
11414echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11415echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11416# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11417# If not cross compiling, check that we can run a simple program.
11418if test "$cross_compiling" != yes; then
11419 if { ac_try='./$ac_file'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11422 ac_status=$?
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 cross_compiling=no
11426 else
11427 if test "$cross_compiling" = maybe; then
11428 cross_compiling=yes
11429 else
11430 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11431If you meant to cross compile, use \`--host'.
11432See \`config.log' for more details." >&5
11433echo "$as_me: error: cannot run C compiled programs.
11434If you meant to cross compile, use \`--host'.
11435See \`config.log' for more details." >&2;}
11436 { (exit 1); exit 1; }; }
11437 fi
11438 fi
11439fi
11440echo "$as_me:$LINENO: result: yes" >&5
11441echo "${ECHO_T}yes" >&6
11442
11443rm -f a.out a.exe conftest$ac_cv_exeext b.out
11444ac_clean_files=$ac_clean_files_save
11445# Check the compiler produces executables we can run. If not, either
11446# the compiler is broken, or we cross compile.
11447echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11448echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11449echo "$as_me:$LINENO: result: $cross_compiling" >&5
11450echo "${ECHO_T}$cross_compiling" >&6
11451
11452echo "$as_me:$LINENO: checking for suffix of executables" >&5
11453echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11455 (eval $ac_link) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; then
11459 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11460# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11461# work properly (i.e., refer to `conftest.exe'), while it won't with
11462# `rm'.
11463for ac_file in conftest.exe conftest conftest.*; do
11464 test -f "$ac_file" || continue
11465 case $ac_file in
11466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11467 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11468 export ac_cv_exeext
11469 break;;
a848cd7e
SC
11470 * ) break;;
11471 esac
11472done
11473else
11474 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11475See \`config.log' for more details." >&5
11476echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11477See \`config.log' for more details." >&2;}
11478 { (exit 1); exit 1; }; }
11479fi
11480
11481rm -f conftest$ac_cv_exeext
11482echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11483echo "${ECHO_T}$ac_cv_exeext" >&6
11484
11485rm -f conftest.$ac_ext
11486EXEEXT=$ac_cv_exeext
11487ac_exeext=$EXEEXT
11488echo "$as_me:$LINENO: checking for suffix of object files" >&5
11489echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11490if test "${ac_cv_objext+set}" = set; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11492else
11493 cat >conftest.$ac_ext <<_ACEOF
11494/* confdefs.h. */
11495_ACEOF
11496cat confdefs.h >>conftest.$ac_ext
11497cat >>conftest.$ac_ext <<_ACEOF
11498/* end confdefs.h. */
11499
11500int
11501main ()
11502{
11503
11504 ;
11505 return 0;
11506}
11507_ACEOF
11508rm -f conftest.o conftest.obj
11509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11510 (eval $ac_compile) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; then
11514 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11515 case $ac_file in
11516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11518 break;;
11519 esac
11520done
11521else
11522 echo "$as_me: failed program was:" >&5
11523sed 's/^/| /' conftest.$ac_ext >&5
11524
11525{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11526See \`config.log' for more details." >&5
11527echo "$as_me: error: cannot compute suffix of object files: cannot compile
11528See \`config.log' for more details." >&2;}
11529 { (exit 1); exit 1; }; }
11530fi
11531
11532rm -f conftest.$ac_cv_objext conftest.$ac_ext
11533fi
11534echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11535echo "${ECHO_T}$ac_cv_objext" >&6
11536OBJEXT=$ac_cv_objext
11537ac_objext=$OBJEXT
11538echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11539echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11540if test "${ac_cv_c_compiler_gnu+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542else
11543 cat >conftest.$ac_ext <<_ACEOF
11544/* confdefs.h. */
11545_ACEOF
11546cat confdefs.h >>conftest.$ac_ext
11547cat >>conftest.$ac_ext <<_ACEOF
11548/* end confdefs.h. */
11549
11550int
11551main ()
11552{
11553#ifndef __GNUC__
11554 choke me
11555#endif
11556
11557 ;
11558 return 0;
11559}
11560_ACEOF
11561rm -f conftest.$ac_objext
11562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11563 (eval $ac_compile) 2>conftest.er1
a848cd7e 11564 ac_status=$?
ac1cb8d3
VS
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
a848cd7e
SC
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
3565d135
RR
11570 { ac_try='test -z "$ac_c_werror_flag"
11571 || test ! -s conftest.err'
ac1cb8d3
VS
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 ac_compiler_gnu=yes
11584else
11585 echo "$as_me: failed program was:" >&5
11586sed 's/^/| /' conftest.$ac_ext >&5
11587
11588ac_compiler_gnu=no
11589fi
ac1cb8d3 11590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11591ac_cv_c_compiler_gnu=$ac_compiler_gnu
11592
11593fi
11594echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11595echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11596GCC=`test $ac_compiler_gnu = yes && echo yes`
11597ac_test_CFLAGS=${CFLAGS+set}
11598ac_save_CFLAGS=$CFLAGS
8aeeb05c 11599CFLAGS="-g"
a848cd7e
SC
11600echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11601echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11602if test "${ac_cv_prog_cc_g+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604else
11605 cat >conftest.$ac_ext <<_ACEOF
11606/* confdefs.h. */
11607_ACEOF
11608cat confdefs.h >>conftest.$ac_ext
11609cat >>conftest.$ac_ext <<_ACEOF
11610/* end confdefs.h. */
11611
11612int
11613main ()
11614{
11615
11616 ;
11617 return 0;
11618}
11619_ACEOF
11620rm -f conftest.$ac_objext
11621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11622 (eval $ac_compile) 2>conftest.er1
a848cd7e 11623 ac_status=$?
ac1cb8d3
VS
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
a848cd7e
SC
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
3565d135
RR
11629 { ac_try='test -z "$ac_c_werror_flag"
11630 || test ! -s conftest.err'
ac1cb8d3
VS
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; } &&
11636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_cv_prog_cc_g=yes
11643else
11644 echo "$as_me: failed program was:" >&5
11645sed 's/^/| /' conftest.$ac_ext >&5
11646
11647ac_cv_prog_cc_g=no
11648fi
ac1cb8d3 11649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11650fi
11651echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11652echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11653if test "$ac_test_CFLAGS" = set; then
11654 CFLAGS=$ac_save_CFLAGS
11655elif test $ac_cv_prog_cc_g = yes; then
11656 if test "$GCC" = yes; then
11657 CFLAGS="-g -O2"
11658 else
11659 CFLAGS="-g"
11660 fi
11661else
11662 if test "$GCC" = yes; then
11663 CFLAGS="-O2"
11664 else
11665 CFLAGS=
11666 fi
11667fi
11668echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11669echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11670if test "${ac_cv_prog_cc_stdc+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11672else
11673 ac_cv_prog_cc_stdc=no
11674ac_save_CC=$CC
11675cat >conftest.$ac_ext <<_ACEOF
11676/* confdefs.h. */
11677_ACEOF
11678cat confdefs.h >>conftest.$ac_ext
11679cat >>conftest.$ac_ext <<_ACEOF
11680/* end confdefs.h. */
11681#include <stdarg.h>
11682#include <stdio.h>
11683#include <sys/types.h>
11684#include <sys/stat.h>
11685/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11686struct buf { int x; };
11687FILE * (*rcsopen) (struct buf *, struct stat *, int);
11688static char *e (p, i)
11689 char **p;
11690 int i;
11691{
11692 return p[i];
11693}
11694static char *f (char * (*g) (char **, int), char **p, ...)
11695{
11696 char *s;
11697 va_list v;
11698 va_start (v,p);
11699 s = g (p, va_arg (v,int));
11700 va_end (v);
11701 return s;
11702}
ac1cb8d3
VS
11703
11704/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11705 function prototypes and stuff, but not '\xHH' hex character constants.
11706 These don't provoke an error unfortunately, instead are silently treated
11707 as 'x'. The following induces an error, until -std1 is added to get
11708 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11709 array size at least. It's necessary to write '\x00'==0 to get something
11710 that's true only with -std1. */
11711int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11712
a848cd7e
SC
11713int test (int i, double x);
11714struct s1 {int (*f) (int a);};
11715struct s2 {int (*f) (double a);};
11716int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11717int argc;
11718char **argv;
11719int
11720main ()
11721{
11722return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11723 ;
11724 return 0;
11725}
11726_ACEOF
11727# Don't try gcc -ansi; that turns off useful extensions and
11728# breaks some systems' header files.
11729# AIX -qlanglvl=ansi
11730# Ultrix and OSF/1 -std1
11731# HP-UX 10.20 and later -Ae
11732# HP-UX older versions -Aa -D_HPUX_SOURCE
11733# SVR4 -Xc -D__EXTENSIONS__
11734for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11735do
11736 CC="$ac_save_CC $ac_arg"
11737 rm -f conftest.$ac_objext
11738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11739 (eval $ac_compile) 2>conftest.er1
a848cd7e 11740 ac_status=$?
ac1cb8d3
VS
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
a848cd7e
SC
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } &&
3565d135
RR
11746 { ac_try='test -z "$ac_c_werror_flag"
11747 || test ! -s conftest.err'
ac1cb8d3
VS
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; } &&
11753 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755 (eval $ac_try) 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; }; then
11759 ac_cv_prog_cc_stdc=$ac_arg
11760break
11761else
11762 echo "$as_me: failed program was:" >&5
11763sed 's/^/| /' conftest.$ac_ext >&5
11764
11765fi
ac1cb8d3 11766rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11767done
11768rm -f conftest.$ac_ext conftest.$ac_objext
11769CC=$ac_save_CC
11770
11771fi
11772
11773case "x$ac_cv_prog_cc_stdc" in
11774 x|xno)
11775 echo "$as_me:$LINENO: result: none needed" >&5
11776echo "${ECHO_T}none needed" >&6 ;;
11777 *)
11778 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11779echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11780 CC="$CC $ac_cv_prog_cc_stdc" ;;
11781esac
11782
11783# Some people use a C++ compiler to compile C. Since we use `exit',
11784# in C++ we need to declare it. In case someone uses the same compiler
11785# for both compiling C and C++ we need to have the C++ compiler decide
11786# the declaration of exit, since it's the most demanding environment.
11787cat >conftest.$ac_ext <<_ACEOF
11788#ifndef __cplusplus
11789 choke me
11790#endif
11791_ACEOF
11792rm -f conftest.$ac_objext
11793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11794 (eval $ac_compile) 2>conftest.er1
a848cd7e 11795 ac_status=$?
ac1cb8d3
VS
11796 grep -v '^ *+' conftest.er1 >conftest.err
11797 rm -f conftest.er1
11798 cat conftest.err >&5
a848cd7e
SC
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); } &&
3565d135
RR
11801 { ac_try='test -z "$ac_c_werror_flag"
11802 || test ! -s conftest.err'
ac1cb8d3
VS
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; } &&
11808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 for ac_declaration in \
ac1cb8d3 11815 '' \
a848cd7e
SC
11816 'extern "C" void std::exit (int) throw (); using std::exit;' \
11817 'extern "C" void std::exit (int); using std::exit;' \
11818 'extern "C" void exit (int) throw ();' \
11819 'extern "C" void exit (int);' \
11820 'void exit (int);'
11821do
11822 cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
de59c161 11828$ac_declaration
ac1cb8d3 11829#include <stdlib.h>
a848cd7e
SC
11830int
11831main ()
11832{
11833exit (42);
11834 ;
11835 return 0;
11836}
11837_ACEOF
11838rm -f conftest.$ac_objext
11839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11840 (eval $ac_compile) 2>conftest.er1
a848cd7e 11841 ac_status=$?
ac1cb8d3
VS
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
a848cd7e
SC
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
3565d135
RR
11847 { ac_try='test -z "$ac_c_werror_flag"
11848 || test ! -s conftest.err'
ac1cb8d3
VS
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; } &&
11854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 :
11861else
11862 echo "$as_me: failed program was:" >&5
11863sed 's/^/| /' conftest.$ac_ext >&5
11864
11865continue
11866fi
ac1cb8d3 11867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11868 cat >conftest.$ac_ext <<_ACEOF
11869/* confdefs.h. */
11870_ACEOF
11871cat confdefs.h >>conftest.$ac_ext
11872cat >>conftest.$ac_ext <<_ACEOF
11873/* end confdefs.h. */
11874$ac_declaration
11875int
11876main ()
11877{
11878exit (42);
11879 ;
11880 return 0;
11881}
11882_ACEOF
11883rm -f conftest.$ac_objext
11884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11885 (eval $ac_compile) 2>conftest.er1
a848cd7e 11886 ac_status=$?
ac1cb8d3
VS
11887 grep -v '^ *+' conftest.er1 >conftest.err
11888 rm -f conftest.er1
11889 cat conftest.err >&5
a848cd7e
SC
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
3565d135
RR
11892 { ac_try='test -z "$ac_c_werror_flag"
11893 || test ! -s conftest.err'
ac1cb8d3
VS
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 break
11906else
11907 echo "$as_me: failed program was:" >&5
11908sed 's/^/| /' conftest.$ac_ext >&5
11909
11910fi
ac1cb8d3 11911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11912done
11913rm -f conftest*
11914if test -n "$ac_declaration"; then
11915 echo '#ifdef __cplusplus' >>confdefs.h
11916 echo $ac_declaration >>confdefs.h
11917 echo '#endif' >>confdefs.h
11918fi
11919
11920else
11921 echo "$as_me: failed program was:" >&5
11922sed 's/^/| /' conftest.$ac_ext >&5
11923
11924fi
ac1cb8d3 11925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11926ac_ext=c
11927ac_cpp='$CPP $CPPFLAGS'
11928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11930ac_compiler_gnu=$ac_cv_c_compiler_gnu
11931
ab0ad5f1
VZ
11932
11933
11934 ac_ext=c
11935ac_cpp='$CPP $CPPFLAGS'
11936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11938ac_compiler_gnu=$ac_cv_c_compiler_gnu
11939
11940 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11941echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11942if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944else
11945 cat >conftest.$ac_ext <<_ACEOF
11946/* confdefs.h. */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h. */
11951
11952int
11953main ()
11954{
11955
11956 #ifndef __INTEL_COMPILER
11957 choke me
11958 #endif
11959
11960 ;
11961 return 0;
11962}
11963_ACEOF
11964rm -f conftest.$ac_objext
11965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>conftest.er1
11967 ac_status=$?
11968 grep -v '^ *+' conftest.er1 >conftest.err
11969 rm -f conftest.er1
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
3565d135
RR
11973 { ac_try='test -z "$ac_c_werror_flag"
11974 || test ! -s conftest.err'
ab0ad5f1
VZ
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try='test -s conftest.$ac_objext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11987else
11988 echo "$as_me: failed program was:" >&5
11989sed 's/^/| /' conftest.$ac_ext >&5
11990
11991bakefile_cv_c_compiler___INTEL_COMPILER=no
11992
11993fi
11994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11995
11996
11997fi
11998echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11999echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12000 ac_ext=c
12001ac_cpp='$CPP $CPPFLAGS'
12002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12004ac_compiler_gnu=$ac_cv_c_compiler_gnu
12005
12006 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12007 :; INTELCC=yes
12008 else
12009 :;
12010 fi
12011
12012
12013 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12014 if test "xCC" = "xC"; then
12015 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12016echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12017if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019else
12020 cat >conftest.$ac_ext <<_ACEOF
12021/* confdefs.h. */
12022_ACEOF
12023cat confdefs.h >>conftest.$ac_ext
12024cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h. */
12026
12027int
12028main ()
12029{
12030
12031 ;
12032 return 0;
12033}
12034_ACEOF
12035rm -f conftest.$ac_objext conftest.$ac_ext.o
12036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; then
12041 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12042 case $ac_file in
12043 conftest.$ac_ext.o)
0093c2fc 12044 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12045 ;;
12046 *)
12047 ;;
12048 esac
12049done
12050else
12051 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12052See \`config.log' for more details." >&5
12053echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12054See \`config.log' for more details." >&2;}
12055 { (exit 1); exit 1; }; }
12056
12057fi
12058
12059rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12060
12061fi
0093c2fc
VZ
12062echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12063echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12064if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12065 if test "c" = "c"; then
0093c2fc 12066 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12067 fi
12068 if test "c" = "cxx"; then
0093c2fc 12069 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12070 fi
12071fi
12072
0093c2fc 12073 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12074 unset ac_cv_prog_cc_g
12075 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12076ac_save_CFLAGS=$CFLAGS
8aeeb05c 12077CFLAGS="-g"
480ccd21
DE
12078echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12079echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12080if test "${ac_cv_prog_cc_g+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082else
12083 cat >conftest.$ac_ext <<_ACEOF
12084/* confdefs.h. */
12085_ACEOF
12086cat confdefs.h >>conftest.$ac_ext
12087cat >>conftest.$ac_ext <<_ACEOF
12088/* end confdefs.h. */
12089
12090int
12091main ()
12092{
12093
12094 ;
12095 return 0;
12096}
12097_ACEOF
12098rm -f conftest.$ac_objext
12099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12100 (eval $ac_compile) 2>conftest.er1
12101 ac_status=$?
12102 grep -v '^ *+' conftest.er1 >conftest.err
12103 rm -f conftest.er1
12104 cat conftest.err >&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
3565d135
RR
12107 { ac_try='test -z "$ac_c_werror_flag"
12108 || test ! -s conftest.err'
480ccd21
DE
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; } &&
12114 { ac_try='test -s conftest.$ac_objext'
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; }; then
12120 ac_cv_prog_cc_g=yes
12121else
12122 echo "$as_me: failed program was:" >&5
12123sed 's/^/| /' conftest.$ac_ext >&5
12124
12125ac_cv_prog_cc_g=no
12126fi
12127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12128fi
12129echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12130echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12131if test "$ac_test_CFLAGS" = set; then
12132 CFLAGS=$ac_save_CFLAGS
12133elif test $ac_cv_prog_cc_g = yes; then
12134 if test "$GCC" = yes; then
12135 CFLAGS="-g -O2"
12136 else
12137 CFLAGS="-g"
12138 fi
12139else
12140 if test "$GCC" = yes; then
12141 CFLAGS="-O2"
12142 else
12143 CFLAGS=
12144 fi
12145fi
3006edc0 12146 fi
ab0ad5f1 12147 fi
3006edc0
VZ
12148
12149 case `uname -s` in
12150 AIX*)
12151 ac_ext=c
12152ac_cpp='$CPP $CPPFLAGS'
12153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12155ac_compiler_gnu=$ac_cv_c_compiler_gnu
12156
12157echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12158echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12159if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161else
12162 cat >conftest.$ac_ext <<_ACEOF
12163/* confdefs.h. */
12164_ACEOF
12165cat confdefs.h >>conftest.$ac_ext
12166cat >>conftest.$ac_ext <<_ACEOF
12167/* end confdefs.h. */
12168
12169int
12170main ()
12171{
12172#ifndef __xlC__
12173 choke me
12174#endif
12175
12176 ;
12177 return 0;
12178}
12179_ACEOF
12180rm -f conftest.$ac_objext
12181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182 (eval $ac_compile) 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
3565d135
RR
12189 { ac_try='test -z "$ac_c_werror_flag"
12190 || test ! -s conftest.err'
3006edc0
VZ
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
0093c2fc 12202 bakefile_compiler_xlc=yes
3006edc0
VZ
12203else
12204 echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
12206
0093c2fc 12207bakefile_compiler_xlc=no
3006edc0
VZ
12208fi
12209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12210 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12211
12212fi
0093c2fc
VZ
12213echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12214echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12215
0093c2fc 12216XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12217ac_ext=c
12218ac_cpp='$CPP $CPPFLAGS'
12219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221ac_compiler_gnu=$ac_cv_c_compiler_gnu
12222
12223
12224 ;;
12225
12226 Darwin)
12227 ac_ext=c
95986553
DE
12228ac_cpp='$CPP $CPPFLAGS'
12229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12231ac_compiler_gnu=$ac_cv_c_compiler_gnu
12232
12233echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12234echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12235if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237else
12238 cat >conftest.$ac_ext <<_ACEOF
12239/* confdefs.h. */
12240_ACEOF
12241cat confdefs.h >>conftest.$ac_ext
12242cat >>conftest.$ac_ext <<_ACEOF
12243/* end confdefs.h. */
12244
12245int
12246main ()
12247{
12248#ifndef __MWERKS__
12249 choke me
12250#endif
12251
12252 ;
12253 return 0;
12254}
12255_ACEOF
12256rm -f conftest.$ac_objext
12257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12258 (eval $ac_compile) 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
3565d135
RR
12265 { ac_try='test -z "$ac_c_werror_flag"
12266 || test ! -s conftest.err'
95986553
DE
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; } &&
12272 { ac_try='test -s conftest.$ac_objext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 bakefile_compiler_mwerks=yes
12279else
12280 echo "$as_me: failed program was:" >&5
12281sed 's/^/| /' conftest.$ac_ext >&5
12282
12283bakefile_compiler_mwerks=no
12284fi
12285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12286 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12287
12288fi
12289echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12290echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12291
0e6fa1d9 12292MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12293ac_ext=c
12294ac_cpp='$CPP $CPPFLAGS'
12295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12297ac_compiler_gnu=$ac_cv_c_compiler_gnu
12298
12299
3006edc0 12300 ac_ext=c
9273ffba
DE
12301ac_cpp='$CPP $CPPFLAGS'
12302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12304ac_compiler_gnu=$ac_cv_c_compiler_gnu
12305
12306echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12307echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12308if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12310else
12311 cat >conftest.$ac_ext <<_ACEOF
12312/* confdefs.h. */
12313_ACEOF
12314cat confdefs.h >>conftest.$ac_ext
12315cat >>conftest.$ac_ext <<_ACEOF
12316/* end confdefs.h. */
12317
12318int
12319main ()
12320{
12321#ifndef __xlC__
12322 choke me
12323#endif
12324
12325 ;
12326 return 0;
12327}
12328_ACEOF
12329rm -f conftest.$ac_objext
12330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12331 (eval $ac_compile) 2>conftest.er1
12332 ac_status=$?
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
3565d135
RR
12338 { ac_try='test -z "$ac_c_werror_flag"
12339 || test ! -s conftest.err'
9273ffba
DE
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; } &&
12345 { ac_try='test -s conftest.$ac_objext'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
0093c2fc 12351 bakefile_compiler_xlc=yes
9273ffba
DE
12352else
12353 echo "$as_me: failed program was:" >&5
12354sed 's/^/| /' conftest.$ac_ext >&5
12355
0093c2fc 12356bakefile_compiler_xlc=no
9273ffba
DE
12357fi
12358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12359 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12360
12361fi
0093c2fc
VZ
12362echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12363echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12364
0093c2fc 12365XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12366ac_ext=c
12367ac_cpp='$CPP $CPPFLAGS'
12368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12370ac_compiler_gnu=$ac_cv_c_compiler_gnu
12371
12372
3006edc0
VZ
12373 ;;
12374
12375 IRIX*)
a848cd7e 12376
6dcfc289 12377
0ad5d837
VZ
12378 ac_ext=c
12379ac_cpp='$CPP $CPPFLAGS'
12380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12382ac_compiler_gnu=$ac_cv_c_compiler_gnu
12383
12384 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12385echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12386if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388else
12389 cat >conftest.$ac_ext <<_ACEOF
12390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h. */
12395
12396int
12397main ()
12398{
12399
12400 #ifndef _SGI_COMPILER_VERSION
12401 choke me
12402 #endif
12403
12404 ;
12405 return 0;
12406}
12407_ACEOF
12408rm -f conftest.$ac_objext
12409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12410 (eval $ac_compile) 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
3565d135
RR
12417 { ac_try='test -z "$ac_c_werror_flag"
12418 || test ! -s conftest.err'
0ad5d837
VZ
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest.$ac_objext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12430 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12431else
12432 echo "$as_me: failed program was:" >&5
12433sed 's/^/| /' conftest.$ac_ext >&5
12434
12435bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12436
12437fi
12438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12439
12440
12441fi
12442echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12443echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12444 ac_ext=c
12445ac_cpp='$CPP $CPPFLAGS'
12446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12448ac_compiler_gnu=$ac_cv_c_compiler_gnu
12449
12450 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12451 :; SGICC=yes
12452 else
12453 :;
12454 fi
12455
12456
3006edc0
VZ
12457 ;;
12458
0093c2fc 12459 HP-UX*)
3006edc0
VZ
12460
12461
12462 ac_ext=c
12463ac_cpp='$CPP $CPPFLAGS'
12464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12466ac_compiler_gnu=$ac_cv_c_compiler_gnu
12467
0093c2fc
VZ
12468 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12469echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12470if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472else
12473 cat >conftest.$ac_ext <<_ACEOF
12474/* confdefs.h. */
12475_ACEOF
12476cat confdefs.h >>conftest.$ac_ext
12477cat >>conftest.$ac_ext <<_ACEOF
12478/* end confdefs.h. */
12479
12480int
12481main ()
12482{
12483
0093c2fc 12484 #ifndef __HP_cc
3006edc0
VZ
12485 choke me
12486 #endif
12487
12488 ;
12489 return 0;
12490}
12491_ACEOF
12492rm -f conftest.$ac_objext
12493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12494 (eval $ac_compile) 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
3565d135
RR
12501 { ac_try='test -z "$ac_c_werror_flag"
12502 || test ! -s conftest.err'
3006edc0
VZ
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; } &&
12508 { ac_try='test -s conftest.$ac_objext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
0093c2fc 12514 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12515else
12516 echo "$as_me: failed program was:" >&5
12517sed 's/^/| /' conftest.$ac_ext >&5
12518
0093c2fc 12519bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12520
12521fi
12522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12523
12524
12525fi
0093c2fc
VZ
12526echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12527echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12528 ac_ext=c
12529ac_cpp='$CPP $CPPFLAGS'
12530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12532ac_compiler_gnu=$ac_cv_c_compiler_gnu
12533
0093c2fc
VZ
12534 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12535 :; HPCC=yes
a1aa0349
VZ
12536 else
12537 :;
12538 fi
12539
12540
12541 ;;
12542
0093c2fc 12543 OSF1)
a1aa0349
VZ
12544
12545
12546 ac_ext=c
12547ac_cpp='$CPP $CPPFLAGS'
12548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12550ac_compiler_gnu=$ac_cv_c_compiler_gnu
12551
0093c2fc
VZ
12552 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12553echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12554if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12556else
12557 cat >conftest.$ac_ext <<_ACEOF
12558/* confdefs.h. */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
12562/* end confdefs.h. */
12563
12564int
12565main ()
12566{
12567
0093c2fc 12568 #ifndef __DECC
a1aa0349
VZ
12569 choke me
12570 #endif
12571
12572 ;
12573 return 0;
12574}
12575_ACEOF
12576rm -f conftest.$ac_objext
12577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12578 (eval $ac_compile) 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } &&
3565d135
RR
12585 { ac_try='test -z "$ac_c_werror_flag"
12586 || test ! -s conftest.err'
a1aa0349
VZ
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12589 ac_status=$?
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; } &&
12592 { ac_try='test -s conftest.$ac_objext'
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; }; then
0093c2fc 12598 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12599else
12600 echo "$as_me: failed program was:" >&5
12601sed 's/^/| /' conftest.$ac_ext >&5
12602
0093c2fc 12603bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12604
12605fi
12606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12607
12608
12609fi
0093c2fc
VZ
12610echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12611echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12612 ac_ext=c
12613ac_cpp='$CPP $CPPFLAGS'
12614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12616ac_compiler_gnu=$ac_cv_c_compiler_gnu
12617
0093c2fc
VZ
12618 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12619 :; COMPAQCC=yes
12620 else
12621 :;
12622 fi
12623
12624
12625 ;;
12626
12627 SunOS)
12628
12629
12630 ac_ext=c
12631ac_cpp='$CPP $CPPFLAGS'
12632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12634ac_compiler_gnu=$ac_cv_c_compiler_gnu
12635
12636 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12637echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12638if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640else
12641 cat >conftest.$ac_ext <<_ACEOF
12642/* confdefs.h. */
12643_ACEOF
12644cat confdefs.h >>conftest.$ac_ext
12645cat >>conftest.$ac_ext <<_ACEOF
12646/* end confdefs.h. */
12647
12648int
12649main ()
12650{
12651
12652 #ifndef __SUNPRO_C
12653 choke me
12654 #endif
12655
12656 ;
12657 return 0;
12658}
12659_ACEOF
12660rm -f conftest.$ac_objext
12661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12662 (eval $ac_compile) 2>conftest.er1
12663 ac_status=$?
12664 grep -v '^ *+' conftest.er1 >conftest.err
12665 rm -f conftest.er1
12666 cat conftest.err >&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
3565d135
RR
12669 { ac_try='test -z "$ac_c_werror_flag"
12670 || test ! -s conftest.err'
0093c2fc
VZ
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; } &&
12676 { ac_try='test -s conftest.$ac_objext'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 bakefile_cv_c_compiler___SUNPRO_C=yes
12683else
12684 echo "$as_me: failed program was:" >&5
12685sed 's/^/| /' conftest.$ac_ext >&5
12686
12687bakefile_cv_c_compiler___SUNPRO_C=no
12688
12689fi
12690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12691
12692
12693fi
12694echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12695echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12696 ac_ext=c
12697ac_cpp='$CPP $CPPFLAGS'
12698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12700ac_compiler_gnu=$ac_cv_c_compiler_gnu
12701
12702 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12703 :; SUNCC=yes
3006edc0
VZ
12704 else
12705 :;
12706 fi
12707
12708
12709 ;;
12710 esac
ab0ad5f1 12711 fi
a9e5b1f0
MW
12712
12713
3006edc0 12714
a848cd7e
SC
12715ac_ext=c
12716ac_cpp='$CPP $CPPFLAGS'
12717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12719ac_compiler_gnu=$ac_cv_c_compiler_gnu
12720echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12721echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12722# On Suns, sometimes $CPP names a directory.
12723if test -n "$CPP" && test -d "$CPP"; then
12724 CPP=
12725fi
12726if test -z "$CPP"; then
12727 if test "${ac_cv_prog_CPP+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12729else
12730 # Double quotes because CPP needs to be expanded
12731 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12732 do
12733 ac_preproc_ok=false
12734for ac_c_preproc_warn_flag in '' yes
12735do
12736 # Use a header file that comes with gcc, so configuring glibc
12737 # with a fresh cross-compiler works.
12738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12739 # <limits.h> exists even on freestanding compilers.
12740 # On the NeXT, cc -E runs the code through the compiler's parser,
12741 # not just through cpp. "Syntax error" is here to catch this case.
12742 cat >conftest.$ac_ext <<_ACEOF
12743/* confdefs.h. */
12744_ACEOF
12745cat confdefs.h >>conftest.$ac_ext
12746cat >>conftest.$ac_ext <<_ACEOF
12747/* end confdefs.h. */
12748#ifdef __STDC__
12749# include <limits.h>
12750#else
12751# include <assert.h>
12752#endif
ac1cb8d3 12753 Syntax error
a848cd7e
SC
12754_ACEOF
12755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } >/dev/null; then
12763 if test -s conftest.err; then
12764 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12766 else
12767 ac_cpp_err=
12768 fi
12769else
12770 ac_cpp_err=yes
12771fi
12772if test -z "$ac_cpp_err"; then
12773 :
12774else
12775 echo "$as_me: failed program was:" >&5
12776sed 's/^/| /' conftest.$ac_ext >&5
12777
12778 # Broken: fails on valid input.
12779continue
12780fi
12781rm -f conftest.err conftest.$ac_ext
12782
12783 # OK, works on sane cases. Now check whether non-existent headers
12784 # can be detected and how.
12785 cat >conftest.$ac_ext <<_ACEOF
12786/* confdefs.h. */
12787_ACEOF
12788cat confdefs.h >>conftest.$ac_ext
12789cat >>conftest.$ac_ext <<_ACEOF
12790/* end confdefs.h. */
12791#include <ac_nonexistent.h>
12792_ACEOF
12793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } >/dev/null; then
12801 if test -s conftest.err; then
12802 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12804 else
12805 ac_cpp_err=
12806 fi
12807else
12808 ac_cpp_err=yes
12809fi
12810if test -z "$ac_cpp_err"; then
12811 # Broken: success on invalid input.
12812continue
12813else
12814 echo "$as_me: failed program was:" >&5
12815sed 's/^/| /' conftest.$ac_ext >&5
12816
12817 # Passes both tests.
12818ac_preproc_ok=:
12819break
12820fi
12821rm -f conftest.err conftest.$ac_ext
12822
12823done
12824# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12825rm -f conftest.err conftest.$ac_ext
12826if $ac_preproc_ok; then
12827 break
12828fi
12829
12830 done
12831 ac_cv_prog_CPP=$CPP
12832
12833fi
12834 CPP=$ac_cv_prog_CPP
12835else
12836 ac_cv_prog_CPP=$CPP
12837fi
12838echo "$as_me:$LINENO: result: $CPP" >&5
12839echo "${ECHO_T}$CPP" >&6
12840ac_preproc_ok=false
12841for ac_c_preproc_warn_flag in '' yes
12842do
12843 # Use a header file that comes with gcc, so configuring glibc
12844 # with a fresh cross-compiler works.
12845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12846 # <limits.h> exists even on freestanding compilers.
12847 # On the NeXT, cc -E runs the code through the compiler's parser,
12848 # not just through cpp. "Syntax error" is here to catch this case.
12849 cat >conftest.$ac_ext <<_ACEOF
12850/* confdefs.h. */
12851_ACEOF
12852cat confdefs.h >>conftest.$ac_ext
12853cat >>conftest.$ac_ext <<_ACEOF
12854/* end confdefs.h. */
12855#ifdef __STDC__
12856# include <limits.h>
12857#else
12858# include <assert.h>
12859#endif
ac1cb8d3 12860 Syntax error
a848cd7e
SC
12861_ACEOF
12862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12864 ac_status=$?
12865 grep -v '^ *+' conftest.er1 >conftest.err
12866 rm -f conftest.er1
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } >/dev/null; then
12870 if test -s conftest.err; then
12871 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12873 else
12874 ac_cpp_err=
12875 fi
12876else
12877 ac_cpp_err=yes
12878fi
12879if test -z "$ac_cpp_err"; then
12880 :
12881else
12882 echo "$as_me: failed program was:" >&5
12883sed 's/^/| /' conftest.$ac_ext >&5
12884
12885 # Broken: fails on valid input.
12886continue
12887fi
12888rm -f conftest.err conftest.$ac_ext
12889
12890 # OK, works on sane cases. Now check whether non-existent headers
12891 # can be detected and how.
12892 cat >conftest.$ac_ext <<_ACEOF
12893/* confdefs.h. */
12894_ACEOF
12895cat confdefs.h >>conftest.$ac_ext
12896cat >>conftest.$ac_ext <<_ACEOF
12897/* end confdefs.h. */
12898#include <ac_nonexistent.h>
12899_ACEOF
12900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } >/dev/null; then
12908 if test -s conftest.err; then
12909 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12911 else
12912 ac_cpp_err=
12913 fi
12914else
12915 ac_cpp_err=yes
12916fi
12917if test -z "$ac_cpp_err"; then
12918 # Broken: success on invalid input.
12919continue
12920else
12921 echo "$as_me: failed program was:" >&5
12922sed 's/^/| /' conftest.$ac_ext >&5
12923
12924 # Passes both tests.
12925ac_preproc_ok=:
12926break
12927fi
12928rm -f conftest.err conftest.$ac_ext
12929
12930done
12931# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12932rm -f conftest.err conftest.$ac_ext
12933if $ac_preproc_ok; then
12934 :
12935else
12936 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12937See \`config.log' for more details." >&5
12938echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12939See \`config.log' for more details." >&2;}
12940 { (exit 1); exit 1; }; }
12941fi
12942
12943ac_ext=c
12944ac_cpp='$CPP $CPPFLAGS'
12945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12947ac_compiler_gnu=$ac_cv_c_compiler_gnu
12948
12949
12950echo "$as_me:$LINENO: checking for egrep" >&5
12951echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12952if test "${ac_cv_prog_egrep+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954else
12955 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12956 then ac_cv_prog_egrep='grep -E'
12957 else ac_cv_prog_egrep='egrep'
12958 fi
12959fi
12960echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12961echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12962 EGREP=$ac_cv_prog_egrep
12963
12964
12965if test $ac_cv_c_compiler_gnu = yes; then
12966 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12967echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12968if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12970else
12971 ac_pattern="Autoconf.*'x'"
12972 cat >conftest.$ac_ext <<_ACEOF
12973/* confdefs.h. */
12974_ACEOF
12975cat confdefs.h >>conftest.$ac_ext
12976cat >>conftest.$ac_ext <<_ACEOF
12977/* end confdefs.h. */
12978#include <sgtty.h>
12979Autoconf TIOCGETP
12980_ACEOF
12981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12982 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12983 ac_cv_prog_gcc_traditional=yes
12984else
12985 ac_cv_prog_gcc_traditional=no
12986fi
12987rm -f conftest*
12988
12989
12990 if test $ac_cv_prog_gcc_traditional = no; then
12991 cat >conftest.$ac_ext <<_ACEOF
12992/* confdefs.h. */
12993_ACEOF
12994cat confdefs.h >>conftest.$ac_ext
12995cat >>conftest.$ac_ext <<_ACEOF
12996/* end confdefs.h. */
12997#include <termio.h>
12998Autoconf TCGETA
12999_ACEOF
13000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13001 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13002 ac_cv_prog_gcc_traditional=yes
13003fi
13004rm -f conftest*
13005
13006 fi
13007fi
13008echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13009echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13010 if test $ac_cv_prog_gcc_traditional = yes; then
13011 CC="$CC -traditional"
13012 fi
13013fi
13014
13015
13016
13017
13018ac_ext=cc
13019ac_cpp='$CXXCPP $CPPFLAGS'
13020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13023
13024
13025CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13026
13027
3006edc0 13028
6dcfc289 13029 ac_ext=cc
a848cd7e
SC
13030ac_cpp='$CXXCPP $CPPFLAGS'
13031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13034if test -n "$ac_tool_prefix"; then
13035 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13036 do
13037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13039echo "$as_me:$LINENO: checking for $ac_word" >&5
13040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13041if test "${ac_cv_prog_CXX+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043else
13044 if test -n "$CXX"; then
13045 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13046else
13047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048for as_dir in $PATH
13049do
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13057 fi
13058done
13059done
13060
13061fi
13062fi
13063CXX=$ac_cv_prog_CXX
13064if test -n "$CXX"; then
13065 echo "$as_me:$LINENO: result: $CXX" >&5
13066echo "${ECHO_T}$CXX" >&6
13067else
13068 echo "$as_me:$LINENO: result: no" >&5
13069echo "${ECHO_T}no" >&6
13070fi
13071
13072 test -n "$CXX" && break
13073 done
13074fi
13075if test -z "$CXX"; then
13076 ac_ct_CXX=$CXX
13077 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13078do
13079 # Extract the first word of "$ac_prog", so it can be a program name with args.
13080set dummy $ac_prog; ac_word=$2
13081echo "$as_me:$LINENO: checking for $ac_word" >&5
13082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13083if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13085else
13086 if test -n "$ac_ct_CXX"; then
13087 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13088else
13089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090for as_dir in $PATH
13091do
13092 IFS=$as_save_IFS
13093 test -z "$as_dir" && as_dir=.
13094 for ac_exec_ext in '' $ac_executable_extensions; do
13095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13096 ac_cv_prog_ac_ct_CXX="$ac_prog"
13097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13098 break 2
13099 fi
13100done
13101done
13102
13103fi
13104fi
13105ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13106if test -n "$ac_ct_CXX"; then
13107 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13108echo "${ECHO_T}$ac_ct_CXX" >&6
13109else
13110 echo "$as_me:$LINENO: result: no" >&5
13111echo "${ECHO_T}no" >&6
13112fi
13113
13114 test -n "$ac_ct_CXX" && break
13115done
13116test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13117
13118 CXX=$ac_ct_CXX
13119fi
13120
13121
13122# Provide some information about the compiler.
13123echo "$as_me:$LINENO:" \
13124 "checking for C++ compiler version" >&5
13125ac_compiler=`set X $ac_compile; echo $2`
13126{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13127 (eval $ac_compiler --version </dev/null >&5) 2>&5
13128 ac_status=$?
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }
13131{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13132 (eval $ac_compiler -v </dev/null >&5) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }
13136{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13137 (eval $ac_compiler -V </dev/null >&5) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }
13141
13142echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13143echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13144if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13146else
13147 cat >conftest.$ac_ext <<_ACEOF
13148/* confdefs.h. */
13149_ACEOF
13150cat confdefs.h >>conftest.$ac_ext
13151cat >>conftest.$ac_ext <<_ACEOF
13152/* end confdefs.h. */
13153
13154int
13155main ()
13156{
13157#ifndef __GNUC__
13158 choke me
13159#endif
13160
13161 ;
13162 return 0;
13163}
13164_ACEOF
13165rm -f conftest.$ac_objext
13166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13167 (eval $ac_compile) 2>conftest.er1
a848cd7e 13168 ac_status=$?
ac1cb8d3
VS
13169 grep -v '^ *+' conftest.er1 >conftest.err
13170 rm -f conftest.er1
13171 cat conftest.err >&5
a848cd7e
SC
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
3565d135
RR
13174 { ac_try='test -z "$ac_cxx_werror_flag"
13175 || test ! -s conftest.err'
ac1cb8d3
VS
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
13181 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; }; then
13187 ac_compiler_gnu=yes
13188else
13189 echo "$as_me: failed program was:" >&5
13190sed 's/^/| /' conftest.$ac_ext >&5
13191
13192ac_compiler_gnu=no
13193fi
ac1cb8d3 13194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13195ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13196
13197fi
13198echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13199echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13200GXX=`test $ac_compiler_gnu = yes && echo yes`
13201ac_test_CXXFLAGS=${CXXFLAGS+set}
13202ac_save_CXXFLAGS=$CXXFLAGS
13203CXXFLAGS="-g"
13204echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13205echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13206if test "${ac_cv_prog_cxx_g+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13208else
13209 cat >conftest.$ac_ext <<_ACEOF
13210/* confdefs.h. */
13211_ACEOF
13212cat confdefs.h >>conftest.$ac_ext
13213cat >>conftest.$ac_ext <<_ACEOF
13214/* end confdefs.h. */
13215
13216int
13217main ()
13218{
13219
13220 ;
13221 return 0;
13222}
13223_ACEOF
13224rm -f conftest.$ac_objext
13225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13226 (eval $ac_compile) 2>conftest.er1
a848cd7e 13227 ac_status=$?
ac1cb8d3
VS
13228 grep -v '^ *+' conftest.er1 >conftest.err
13229 rm -f conftest.er1
13230 cat conftest.err >&5
a848cd7e
SC
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } &&
3565d135
RR
13233 { ac_try='test -z "$ac_cxx_werror_flag"
13234 || test ! -s conftest.err'
ac1cb8d3
VS
13235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236 (eval $ac_try) 2>&5
13237 ac_status=$?
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; } &&
13240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13243 ac_status=$?
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; }; then
13246 ac_cv_prog_cxx_g=yes
13247else
13248 echo "$as_me: failed program was:" >&5
13249sed 's/^/| /' conftest.$ac_ext >&5
13250
13251ac_cv_prog_cxx_g=no
13252fi
ac1cb8d3 13253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13254fi
13255echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13256echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13257if test "$ac_test_CXXFLAGS" = set; then
13258 CXXFLAGS=$ac_save_CXXFLAGS
13259elif test $ac_cv_prog_cxx_g = yes; then
13260 if test "$GXX" = yes; then
8aeeb05c 13261 CXXFLAGS="-g -O2"
a848cd7e 13262 else
8aeeb05c 13263 CXXFLAGS="-g"
a848cd7e
SC
13264 fi
13265else
13266 if test "$GXX" = yes; then
13267 CXXFLAGS="-O2"
13268 else
13269 CXXFLAGS=
13270 fi
13271fi
13272for ac_declaration in \
ac1cb8d3 13273 '' \
a848cd7e
SC
13274 'extern "C" void std::exit (int) throw (); using std::exit;' \
13275 'extern "C" void std::exit (int); using std::exit;' \
13276 'extern "C" void exit (int) throw ();' \
13277 'extern "C" void exit (int);' \
13278 'void exit (int);'
13279do
13280 cat >conftest.$ac_ext <<_ACEOF
13281/* confdefs.h. */
13282_ACEOF
13283cat confdefs.h >>conftest.$ac_ext
13284cat >>conftest.$ac_ext <<_ACEOF
13285/* end confdefs.h. */
de59c161 13286$ac_declaration
ac1cb8d3 13287#include <stdlib.h>
a848cd7e
SC
13288int
13289main ()
13290{
13291exit (42);
13292 ;
13293 return 0;
13294}
13295_ACEOF
13296rm -f conftest.$ac_objext
13297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13298 (eval $ac_compile) 2>conftest.er1
a848cd7e 13299 ac_status=$?
ac1cb8d3
VS
13300 grep -v '^ *+' conftest.er1 >conftest.err
13301 rm -f conftest.er1
13302 cat conftest.err >&5
a848cd7e
SC
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } &&
3565d135
RR
13305 { ac_try='test -z "$ac_cxx_werror_flag"
13306 || test ! -s conftest.err'
ac1cb8d3
VS
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; } &&
13312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314 (eval $ac_try) 2>&5
13315 ac_status=$?
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; }; then
13318 :
13319else
13320 echo "$as_me: failed program was:" >&5
13321sed 's/^/| /' conftest.$ac_ext >&5
13322
13323continue
13324fi
ac1cb8d3 13325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13326 cat >conftest.$ac_ext <<_ACEOF
13327/* confdefs.h. */
13328_ACEOF
13329cat confdefs.h >>conftest.$ac_ext
13330cat >>conftest.$ac_ext <<_ACEOF
13331/* end confdefs.h. */
13332$ac_declaration
13333int
13334main ()
13335{
13336exit (42);
13337 ;
13338 return 0;
13339}
13340_ACEOF
13341rm -f conftest.$ac_objext
13342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13343 (eval $ac_compile) 2>conftest.er1
a848cd7e 13344 ac_status=$?
ac1cb8d3
VS
13345 grep -v '^ *+' conftest.er1 >conftest.err
13346 rm -f conftest.er1
13347 cat conftest.err >&5
a848cd7e
SC
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } &&
3565d135
RR
13350 { ac_try='test -z "$ac_cxx_werror_flag"
13351 || test ! -s conftest.err'
ac1cb8d3
VS
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; } &&
13357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; }; then
13363 break
13364else
13365 echo "$as_me: failed program was:" >&5
13366sed 's/^/| /' conftest.$ac_ext >&5
13367
13368fi
ac1cb8d3 13369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13370done
13371rm -f conftest*
13372if test -n "$ac_declaration"; then
13373 echo '#ifdef __cplusplus' >>confdefs.h
13374 echo $ac_declaration >>confdefs.h
13375 echo '#endif' >>confdefs.h
13376fi
13377
13378ac_ext=cc
13379ac_cpp='$CXXCPP $CPPFLAGS'
13380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13383
ab0ad5f1
VZ
13384
13385
13386 ac_ext=cc
13387ac_cpp='$CXXCPP $CPPFLAGS'
13388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13391
13392 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13393echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13394if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13396else
13397 cat >conftest.$ac_ext <<_ACEOF
13398/* confdefs.h. */
13399_ACEOF
13400cat confdefs.h >>conftest.$ac_ext
13401cat >>conftest.$ac_ext <<_ACEOF
13402/* end confdefs.h. */
13403
13404int
13405main ()
13406{
13407
13408 #ifndef __INTEL_COMPILER
13409 choke me
13410 #endif
13411
13412 ;
13413 return 0;
13414}
13415_ACEOF
13416rm -f conftest.$ac_objext
13417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13418 (eval $ac_compile) 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
3565d135
RR
13425 { ac_try='test -z "$ac_cxx_werror_flag"
13426 || test ! -s conftest.err'
ab0ad5f1
VZ
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; } &&
13432 { ac_try='test -s conftest.$ac_objext'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13439else
13440 echo "$as_me: failed program was:" >&5
13441sed 's/^/| /' conftest.$ac_ext >&5
13442
13443bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13444
13445fi
13446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13447
13448
13449fi
13450echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13451echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13452 ac_ext=cc
13453ac_cpp='$CXXCPP $CPPFLAGS'
13454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13457
13458 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13459 :; INTELCXX=yes
13460 else
13461 :;
13462 fi
13463
13464
3006edc0
VZ
13465 if test "x$GCXX" != "xyes"; then
13466 if test "xCXX" = "xC"; then
13467 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13468echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13469if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13471else
13472 cat >conftest.$ac_ext <<_ACEOF
13473/* confdefs.h. */
13474_ACEOF
13475cat confdefs.h >>conftest.$ac_ext
13476cat >>conftest.$ac_ext <<_ACEOF
13477/* end confdefs.h. */
13478
13479int
13480main ()
13481{
13482
13483 ;
13484 return 0;
13485}
13486_ACEOF
13487rm -f conftest.$ac_objext conftest.$ac_ext.o
13488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489 (eval $ac_compile) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; then
13493 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13494 case $ac_file in
13495 conftest.$ac_ext.o)
0093c2fc 13496 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13497 ;;
13498 *)
13499 ;;
13500 esac
13501done
13502else
13503 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13504See \`config.log' for more details." >&5
13505echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13506See \`config.log' for more details." >&2;}
13507 { (exit 1); exit 1; }; }
13508
13509fi
13510
13511rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13512
13513fi
0093c2fc
VZ
13514echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13515echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13516if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13517 if test "cxx" = "c"; then
0093c2fc 13518 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13519 fi
13520 if test "cxx" = "cxx"; then
0093c2fc 13521 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13522 fi
13523fi
13524
0093c2fc 13525 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13526 unset ac_cv_prog_cc_g
13527 ac_test_CFLAGS=${CFLAGS+set}
13528ac_save_CFLAGS=$CFLAGS
8aeeb05c 13529CFLAGS="-g"
3006edc0
VZ
13530echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13531echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13532if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13534else
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
13542int
13543main ()
13544{
13545
13546 ;
13547 return 0;
13548}
13549_ACEOF
13550rm -f conftest.$ac_objext
13551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13552 (eval $ac_compile) 2>conftest.er1
13553 ac_status=$?
13554 grep -v '^ *+' conftest.er1 >conftest.err
13555 rm -f conftest.er1
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
3565d135
RR
13559 { ac_try='test -z "$ac_cxx_werror_flag"
13560 || test ! -s conftest.err'
480ccd21
DE
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest.$ac_objext'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }; then
3006edc0 13572 ac_cv_prog_cc_g=yes
480ccd21
DE
13573else
13574 echo "$as_me: failed program was:" >&5
13575sed 's/^/| /' conftest.$ac_ext >&5
13576
3006edc0 13577ac_cv_prog_cc_g=no
480ccd21
DE
13578fi
13579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13580fi
3006edc0
VZ
13581echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13582echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13583if test "$ac_test_CFLAGS" = set; then
13584 CFLAGS=$ac_save_CFLAGS
13585elif test $ac_cv_prog_cc_g = yes; then
13586 if test "$GCC" = yes; then
13587 CFLAGS="-g -O2"
480ccd21 13588 else
3006edc0 13589 CFLAGS="-g"
480ccd21
DE
13590 fi
13591else
3006edc0
VZ
13592 if test "$GCC" = yes; then
13593 CFLAGS="-O2"
480ccd21 13594 else
3006edc0 13595 CFLAGS=
480ccd21
DE
13596 fi
13597fi
3006edc0 13598 fi
ab0ad5f1 13599 fi
3006edc0
VZ
13600
13601 case `uname -s` in
13602 AIX*)
13603 ac_ext=cc
13604ac_cpp='$CXXCPP $CPPFLAGS'
13605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13608
13609echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13610echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13611if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613else
13614 cat >conftest.$ac_ext <<_ACEOF
13615/* confdefs.h. */
13616_ACEOF
13617cat confdefs.h >>conftest.$ac_ext
13618cat >>conftest.$ac_ext <<_ACEOF
13619/* end confdefs.h. */
13620
13621int
13622main ()
13623{
13624#ifndef __xlC__
13625 choke me
13626#endif
13627
13628 ;
13629 return 0;
13630}
13631_ACEOF
13632rm -f conftest.$ac_objext
13633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13634 (eval $ac_compile) 2>conftest.er1
13635 ac_status=$?
13636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
3565d135
RR
13641 { ac_try='test -z "$ac_cxx_werror_flag"
13642 || test ! -s conftest.err'
3006edc0
VZ
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; } &&
13648 { ac_try='test -s conftest.$ac_objext'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
0093c2fc 13654 bakefile_compiler_xlc=yes
3006edc0
VZ
13655else
13656 echo "$as_me: failed program was:" >&5
13657sed 's/^/| /' conftest.$ac_ext >&5
13658
0093c2fc 13659bakefile_compiler_xlc=no
3006edc0
VZ
13660fi
13661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13662 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13663
13664fi
0093c2fc
VZ
13665echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13666echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13667
0093c2fc 13668XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13669ac_ext=cc
13670ac_cpp='$CXXCPP $CPPFLAGS'
13671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13674
13675
13676 ;;
13677
13678 Darwin)
13679 ac_ext=cc
95986553
DE
13680ac_cpp='$CXXCPP $CPPFLAGS'
13681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13684
13685echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13686echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13687if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13689else
13690 cat >conftest.$ac_ext <<_ACEOF
13691/* confdefs.h. */
13692_ACEOF
13693cat confdefs.h >>conftest.$ac_ext
13694cat >>conftest.$ac_ext <<_ACEOF
13695/* end confdefs.h. */
13696
13697int
13698main ()
13699{
13700#ifndef __MWERKS__
13701 choke me
13702#endif
13703
13704 ;
13705 return 0;
13706}
13707_ACEOF
13708rm -f conftest.$ac_objext
13709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13710 (eval $ac_compile) 2>conftest.er1
13711 ac_status=$?
13712 grep -v '^ *+' conftest.er1 >conftest.err
13713 rm -f conftest.er1
13714 cat conftest.err >&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
3565d135
RR
13717 { ac_try='test -z "$ac_cxx_werror_flag"
13718 || test ! -s conftest.err'
95986553
DE
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } &&
13724 { ac_try='test -s conftest.$ac_objext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 bakefile_compiler_mwerks=yes
13731else
13732 echo "$as_me: failed program was:" >&5
13733sed 's/^/| /' conftest.$ac_ext >&5
13734
13735bakefile_compiler_mwerks=no
13736fi
13737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13738 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13739
13740fi
13741echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13742echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13743
0e6fa1d9 13744MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13745ac_ext=cc
13746ac_cpp='$CXXCPP $CPPFLAGS'
13747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13750
13751
3006edc0 13752 ac_ext=cc
9273ffba
DE
13753ac_cpp='$CXXCPP $CPPFLAGS'
13754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13757
13758echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13759echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13760if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13762else
13763 cat >conftest.$ac_ext <<_ACEOF
13764/* confdefs.h. */
13765_ACEOF
13766cat confdefs.h >>conftest.$ac_ext
13767cat >>conftest.$ac_ext <<_ACEOF
13768/* end confdefs.h. */
13769
13770int
13771main ()
13772{
13773#ifndef __xlC__
13774 choke me
13775#endif
13776
13777 ;
13778 return 0;
13779}
13780_ACEOF
13781rm -f conftest.$ac_objext
13782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13783 (eval $ac_compile) 2>conftest.er1
13784 ac_status=$?
13785 grep -v '^ *+' conftest.er1 >conftest.err
13786 rm -f conftest.er1
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
3565d135
RR
13790 { ac_try='test -z "$ac_cxx_werror_flag"
13791 || test ! -s conftest.err'
9273ffba
DE
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; } &&
13797 { ac_try='test -s conftest.$ac_objext'
13798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799 (eval $ac_try) 2>&5
13800 ac_status=$?
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; }; then
0093c2fc 13803 bakefile_compiler_xlc=yes
9273ffba
DE
13804else
13805 echo "$as_me: failed program was:" >&5
13806sed 's/^/| /' conftest.$ac_ext >&5
13807
0093c2fc 13808bakefile_compiler_xlc=no
9273ffba
DE
13809fi
13810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13811 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13812
13813fi
0093c2fc
VZ
13814echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13815echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 13816
0093c2fc 13817XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13818ac_ext=cc
13819ac_cpp='$CXXCPP $CPPFLAGS'
13820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13823
13824
3006edc0
VZ
13825 ;;
13826
13827 IRIX*)
95986553 13828
6dcfc289 13829
0ad5d837
VZ
13830 ac_ext=cc
13831ac_cpp='$CXXCPP $CPPFLAGS'
13832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13835
13836 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13837echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13838if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13840else
13841 cat >conftest.$ac_ext <<_ACEOF
13842/* confdefs.h. */
13843_ACEOF
13844cat confdefs.h >>conftest.$ac_ext
13845cat >>conftest.$ac_ext <<_ACEOF
13846/* end confdefs.h. */
13847
13848int
13849main ()
13850{
13851
13852 #ifndef _SGI_COMPILER_VERSION
13853 choke me
13854 #endif
13855
13856 ;
13857 return 0;
13858}
13859_ACEOF
13860rm -f conftest.$ac_objext
13861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13862 (eval $ac_compile) 2>conftest.er1
13863 ac_status=$?
13864 grep -v '^ *+' conftest.er1 >conftest.err
13865 rm -f conftest.er1
13866 cat conftest.err >&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } &&
3565d135
RR
13869 { ac_try='test -z "$ac_cxx_werror_flag"
13870 || test ! -s conftest.err'
0ad5d837
VZ
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13873 ac_status=$?
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; } &&
13876 { ac_try='test -s conftest.$ac_objext'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13883else
13884 echo "$as_me: failed program was:" >&5
13885sed 's/^/| /' conftest.$ac_ext >&5
13886
13887bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13888
13889fi
13890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13891
13892
13893fi
13894echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13895echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13896 ac_ext=cc
13897ac_cpp='$CXXCPP $CPPFLAGS'
13898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13901
13902 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13903 :; SGICXX=yes
13904 else
13905 :;
13906 fi
13907
13908
3006edc0
VZ
13909 ;;
13910
0093c2fc 13911 HP-UX*)
3006edc0
VZ
13912
13913
13914 ac_ext=cc
13915ac_cpp='$CXXCPP $CPPFLAGS'
13916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13919
0093c2fc
VZ
13920 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13921echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13922if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13924else
13925 cat >conftest.$ac_ext <<_ACEOF
13926/* confdefs.h. */
13927_ACEOF
13928cat confdefs.h >>conftest.$ac_ext
13929cat >>conftest.$ac_ext <<_ACEOF
13930/* end confdefs.h. */
13931
13932int
13933main ()
13934{
13935
0093c2fc 13936 #ifndef __HP_aCC
3006edc0
VZ
13937 choke me
13938 #endif
13939
13940 ;
13941 return 0;
13942}
13943_ACEOF
13944rm -f conftest.$ac_objext
13945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13946 (eval $ac_compile) 2>conftest.er1
13947 ac_status=$?
13948 grep -v '^ *+' conftest.er1 >conftest.err
13949 rm -f conftest.er1
13950 cat conftest.err >&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
3565d135
RR
13953 { ac_try='test -z "$ac_cxx_werror_flag"
13954 || test ! -s conftest.err'
3006edc0
VZ
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; } &&
13960 { ac_try='test -s conftest.$ac_objext'
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
0093c2fc 13966 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
13967else
13968 echo "$as_me: failed program was:" >&5
13969sed 's/^/| /' conftest.$ac_ext >&5
13970
0093c2fc 13971bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
13972
13973fi
13974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13975
13976
13977fi
0093c2fc
VZ
13978echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
13979echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
13980 ac_ext=cc
13981ac_cpp='$CXXCPP $CPPFLAGS'
13982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13985
0093c2fc
VZ
13986 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
13987 :; HPCXX=yes
a1aa0349
VZ
13988 else
13989 :;
13990 fi
13991
13992
13993 ;;
13994
0093c2fc 13995 OSF1)
a1aa0349
VZ
13996
13997
13998 ac_ext=cc
13999ac_cpp='$CXXCPP $CPPFLAGS'
14000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14003
0093c2fc
VZ
14004 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14005echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14006if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14008else
14009 cat >conftest.$ac_ext <<_ACEOF
14010/* confdefs.h. */
14011_ACEOF
14012cat confdefs.h >>conftest.$ac_ext
14013cat >>conftest.$ac_ext <<_ACEOF
14014/* end confdefs.h. */
14015
14016int
14017main ()
14018{
14019
0093c2fc 14020 #ifndef __DECCXX
a1aa0349
VZ
14021 choke me
14022 #endif
14023
14024 ;
14025 return 0;
14026}
14027_ACEOF
14028rm -f conftest.$ac_objext
14029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030 (eval $ac_compile) 2>conftest.er1
14031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
3565d135
RR
14037 { ac_try='test -z "$ac_cxx_werror_flag"
14038 || test ! -s conftest.err'
a1aa0349
VZ
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; } &&
14044 { ac_try='test -s conftest.$ac_objext'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
0093c2fc 14050 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14051else
14052 echo "$as_me: failed program was:" >&5
14053sed 's/^/| /' conftest.$ac_ext >&5
14054
0093c2fc 14055bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14056
14057fi
14058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14059
14060
14061fi
0093c2fc
VZ
14062echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14063echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14064 ac_ext=cc
14065ac_cpp='$CXXCPP $CPPFLAGS'
14066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14069
0093c2fc
VZ
14070 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14071 :; COMPAQCXX=yes
14072 else
14073 :;
14074 fi
14075
14076
14077 ;;
14078
14079 SunOS)
14080
14081
14082 ac_ext=cc
14083ac_cpp='$CXXCPP $CPPFLAGS'
14084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14087
14088 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14089echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14090if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14092else
14093 cat >conftest.$ac_ext <<_ACEOF
14094/* confdefs.h. */
14095_ACEOF
14096cat confdefs.h >>conftest.$ac_ext
14097cat >>conftest.$ac_ext <<_ACEOF
14098/* end confdefs.h. */
14099
14100int
14101main ()
14102{
14103
14104 #ifndef __SUNPRO_CC
14105 choke me
14106 #endif
14107
14108 ;
14109 return 0;
14110}
14111_ACEOF
14112rm -f conftest.$ac_objext
14113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14114 (eval $ac_compile) 2>conftest.er1
14115 ac_status=$?
14116 grep -v '^ *+' conftest.er1 >conftest.err
14117 rm -f conftest.er1
14118 cat conftest.err >&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); } &&
3565d135
RR
14121 { ac_try='test -z "$ac_cxx_werror_flag"
14122 || test ! -s conftest.err'
0093c2fc
VZ
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; } &&
14128 { ac_try='test -s conftest.$ac_objext'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14135else
14136 echo "$as_me: failed program was:" >&5
14137sed 's/^/| /' conftest.$ac_ext >&5
14138
14139bakefile_cv_cxx_compiler___SUNPRO_CC=no
14140
14141fi
14142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14143
14144
14145fi
14146echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14147echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14148 ac_ext=cc
14149ac_cpp='$CXXCPP $CPPFLAGS'
14150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14153
14154 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14155 :; SUNCXX=yes
3006edc0
VZ
14156 else
14157 :;
ab0ad5f1 14158 fi
a9e5b1f0
MW
14159
14160
3006edc0
VZ
14161 ;;
14162 esac
14163 fi
14164
14165
14166
a848cd7e
SC
14167ac_ext=c
14168ac_cpp='$CPP $CPPFLAGS'
14169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14171ac_compiler_gnu=$ac_cv_c_compiler_gnu
14172
14173
a848cd7e
SC
14174if test -n "$ac_tool_prefix"; then
14175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14176set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14177echo "$as_me:$LINENO: checking for $ac_word" >&5
14178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14179if test "${ac_cv_prog_RANLIB+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14181else
14182 if test -n "$RANLIB"; then
14183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14184else
14185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14186for as_dir in $PATH
14187do
14188 IFS=$as_save_IFS
14189 test -z "$as_dir" && as_dir=.
14190 for ac_exec_ext in '' $ac_executable_extensions; do
14191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14192 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14194 break 2
14195 fi
14196done
14197done
14198
14199fi
14200fi
14201RANLIB=$ac_cv_prog_RANLIB
14202if test -n "$RANLIB"; then
14203 echo "$as_me:$LINENO: result: $RANLIB" >&5
14204echo "${ECHO_T}$RANLIB" >&6
14205else
14206 echo "$as_me:$LINENO: result: no" >&5
14207echo "${ECHO_T}no" >&6
14208fi
14209
14210fi
14211if test -z "$ac_cv_prog_RANLIB"; then
14212 ac_ct_RANLIB=$RANLIB
14213 # Extract the first word of "ranlib", so it can be a program name with args.
14214set dummy ranlib; ac_word=$2
14215echo "$as_me:$LINENO: checking for $ac_word" >&5
14216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14217if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219else
14220 if test -n "$ac_ct_RANLIB"; then
14221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14222else
14223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224for as_dir in $PATH
14225do
14226 IFS=$as_save_IFS
14227 test -z "$as_dir" && as_dir=.
14228 for ac_exec_ext in '' $ac_executable_extensions; do
14229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14230 ac_cv_prog_ac_ct_RANLIB="ranlib"
14231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14232 break 2
14233 fi
14234done
14235done
14236
14237 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14238fi
14239fi
14240ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14241if test -n "$ac_ct_RANLIB"; then
14242 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14243echo "${ECHO_T}$ac_ct_RANLIB" >&6
14244else
14245 echo "$as_me:$LINENO: result: no" >&5
14246echo "${ECHO_T}no" >&6
14247fi
14248
14249 RANLIB=$ac_ct_RANLIB
14250else
14251 RANLIB="$ac_cv_prog_RANLIB"
14252fi
14253
14254
8c80d384
DE
14255if test -n "$ac_tool_prefix"; then
14256 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14257set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14258echo "$as_me:$LINENO: checking for $ac_word" >&5
14259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14260if test "${ac_cv_prog_AR+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262else
14263 if test -n "$AR"; then
14264 ac_cv_prog_AR="$AR" # Let the user override the test.
14265else
14266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14267for as_dir in $PATH
14268do
14269 IFS=$as_save_IFS
14270 test -z "$as_dir" && as_dir=.
14271 for ac_exec_ext in '' $ac_executable_extensions; do
14272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14273 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14275 break 2
14276 fi
14277done
14278done
14279
14280fi
14281fi
14282AR=$ac_cv_prog_AR
14283if test -n "$AR"; then
14284 echo "$as_me:$LINENO: result: $AR" >&5
14285echo "${ECHO_T}$AR" >&6
14286else
14287 echo "$as_me:$LINENO: result: no" >&5
14288echo "${ECHO_T}no" >&6
14289fi
14290
8c80d384
DE
14291fi
14292if test -z "$ac_cv_prog_AR"; then
14293 ac_ct_AR=$AR
14294 # Extract the first word of "ar", so it can be a program name with args.
14295set dummy ar; ac_word=$2
14296echo "$as_me:$LINENO: checking for $ac_word" >&5
14297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14298if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300else
14301 if test -n "$ac_ct_AR"; then
14302 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14303else
14304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14305for as_dir in $PATH
14306do
14307 IFS=$as_save_IFS
14308 test -z "$as_dir" && as_dir=.
14309 for ac_exec_ext in '' $ac_executable_extensions; do
14310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14311 ac_cv_prog_ac_ct_AR="ar"
14312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14313 break 2
14314 fi
14315done
14316done
14317
14318fi
14319fi
14320ac_ct_AR=$ac_cv_prog_ac_ct_AR
14321if test -n "$ac_ct_AR"; then
14322 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14323echo "${ECHO_T}$ac_ct_AR" >&6
14324else
14325 echo "$as_me:$LINENO: result: no" >&5
14326echo "${ECHO_T}no" >&6
14327fi
14328
14329 AR=$ac_ct_AR
14330else
14331 AR="$ac_cv_prog_AR"
14332fi
14333
a848cd7e 14334if test "x$AR" = "x" ; then
77ffb593
JS
14335 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14336echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14337 { (exit 1); exit 1; }; }
14338fi
14339
14340# Find a good install program. We prefer a C program (faster),
14341# so one script is as good as another. But avoid the broken or
14342# incompatible versions:
14343# SysV /etc/install, /usr/sbin/install
14344# SunOS /usr/etc/install
14345# IRIX /sbin/install
14346# AIX /bin/install
14347# AmigaOS /C/install, which installs bootblocks on floppy discs
14348# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14349# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14350# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14351# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14352# ./install, which can be erroneously created by make from ./install.sh.
14353echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14354echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14355if test -z "$INSTALL"; then
14356if test "${ac_cv_path_install+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358else
14359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360for as_dir in $PATH
14361do
14362 IFS=$as_save_IFS
14363 test -z "$as_dir" && as_dir=.
14364 # Account for people who put trailing slashes in PATH elements.
14365case $as_dir/ in
14366 ./ | .// | /cC/* | \
14367 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14368 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14369 /usr/ucb/* ) ;;
14370 *)
14371 # OSF1 and SCO ODT 3.0 have their own names for install.
14372 # Don't use installbsd from OSF since it installs stuff as root
14373 # by default.
14374 for ac_prog in ginstall scoinst install; do
14375 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14376 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14377 if test $ac_prog = install &&
14378 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14379 # AIX install. It has an incompatible calling convention.
14380 :
14381 elif test $ac_prog = install &&
14382 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14383 # program-specific install script used by HP pwplus--don't use.
14384 :
14385 else
14386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14387 break 3
14388 fi
14389 fi
a848cd7e
SC
14390 done
14391 done
14392 ;;
14393esac
14394done
14395
14396
14397fi
14398 if test "${ac_cv_path_install+set}" = set; then
14399 INSTALL=$ac_cv_path_install
14400 else
14401 # As a last resort, use the slow shell script. We don't cache a
14402 # path for INSTALL within a source directory, because that will
14403 # break other packages using the cache if that directory is
14404 # removed, or if the path is relative.
14405 INSTALL=$ac_install_sh
14406 fi
14407fi
14408echo "$as_me:$LINENO: result: $INSTALL" >&5
14409echo "${ECHO_T}$INSTALL" >&6
14410
14411# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14412# It thinks the first close brace ends the variable substitution.
14413test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14414
14415test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14416
14417test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14418
14419
14420case ${INSTALL} in
14421 /* ) # Absolute
14422 ;;
14423 ?:* ) # Drive letter, considered as absolute.
14424 ;;
14425 *)
14426 INSTALL=`pwd`/${INSTALL} ;;
14427esac
14428
a848cd7e
SC
14429
14430case "${host}" in
14431
cfda0ea8 14432 *-*-darwin* )
a848cd7e
SC
14433 INSTALL_PROGRAM="cp -fp"
14434 INSTALL_DATA="cp -fp"
14435 ;;
14436 *)
14437 ;;
14438esac
14439
8c80d384
DE
14440if test -n "$ac_tool_prefix"; then
14441 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14442set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14443echo "$as_me:$LINENO: checking for $ac_word" >&5
14444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14445if test "${ac_cv_prog_STRIP+set}" = set; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14447else
14448 if test -n "$STRIP"; then
14449 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14450else
14451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14452for as_dir in $PATH
14453do
14454 IFS=$as_save_IFS
14455 test -z "$as_dir" && as_dir=.
14456 for ac_exec_ext in '' $ac_executable_extensions; do
14457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14458 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14460 break 2
14461 fi
14462done
14463done
14464
a848cd7e
SC
14465fi
14466fi
14467STRIP=$ac_cv_prog_STRIP
14468if test -n "$STRIP"; then
14469 echo "$as_me:$LINENO: result: $STRIP" >&5
14470echo "${ECHO_T}$STRIP" >&6
14471else
14472 echo "$as_me:$LINENO: result: no" >&5
14473echo "${ECHO_T}no" >&6
14474fi
14475
8c80d384
DE
14476fi
14477if test -z "$ac_cv_prog_STRIP"; then
14478 ac_ct_STRIP=$STRIP
14479 # Extract the first word of "strip", so it can be a program name with args.
14480set dummy strip; ac_word=$2
14481echo "$as_me:$LINENO: checking for $ac_word" >&5
14482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14483if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14485else
14486 if test -n "$ac_ct_STRIP"; then
14487 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14488else
14489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14490for as_dir in $PATH
14491do
14492 IFS=$as_save_IFS
14493 test -z "$as_dir" && as_dir=.
14494 for ac_exec_ext in '' $ac_executable_extensions; do
14495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14496 ac_cv_prog_ac_ct_STRIP="strip"
14497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14498 break 2
14499 fi
14500done
14501done
14502
14503 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14504fi
14505fi
14506ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14507if test -n "$ac_ct_STRIP"; then
14508 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14509echo "${ECHO_T}$ac_ct_STRIP" >&6
14510else
14511 echo "$as_me:$LINENO: result: no" >&5
14512echo "${ECHO_T}no" >&6
14513fi
14514
14515 STRIP=$ac_ct_STRIP
14516else
14517 STRIP="$ac_cv_prog_STRIP"
14518fi
14519
14520
14521if test "$wxUSE_WINE" = "yes"; then
14522 if test -n "$ac_tool_prefix"; then
14523 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14524set dummy ${ac_tool_prefix}wrc; ac_word=$2
14525echo "$as_me:$LINENO: checking for $ac_word" >&5
14526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14527if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14529else
8ced02f6
DE
14530 if test -n "$WINDRES"; then
14531 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14532else
14533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14534for as_dir in $PATH
14535do
14536 IFS=$as_save_IFS
14537 test -z "$as_dir" && as_dir=.
14538 for ac_exec_ext in '' $ac_executable_extensions; do
14539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14540 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
14541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14542 break 2
14543 fi
14544done
14545done
14546
14547fi
14548fi
8ced02f6
DE
14549WINDRES=$ac_cv_prog_WINDRES
14550if test -n "$WINDRES"; then
14551 echo "$as_me:$LINENO: result: $WINDRES" >&5
14552echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14553else
14554 echo "$as_me:$LINENO: result: no" >&5
14555echo "${ECHO_T}no" >&6
14556fi
14557
14558fi
8ced02f6
DE
14559if test -z "$ac_cv_prog_WINDRES"; then
14560 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14561 # Extract the first word of "wrc", so it can be a program name with args.
14562set dummy wrc; ac_word=$2
14563echo "$as_me:$LINENO: checking for $ac_word" >&5
14564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14565if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14567else
8ced02f6
DE
14568 if test -n "$ac_ct_WINDRES"; then
14569 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14570else
14571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14572for as_dir in $PATH
14573do
14574 IFS=$as_save_IFS
14575 test -z "$as_dir" && as_dir=.
14576 for ac_exec_ext in '' $ac_executable_extensions; do
14577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14578 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
14579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14580 break 2
14581 fi
14582done
14583done
14584
14585fi
14586fi
8ced02f6
DE
14587ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14588if test -n "$ac_ct_WINDRES"; then
14589 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14590echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
14591else
14592 echo "$as_me:$LINENO: result: no" >&5
14593echo "${ECHO_T}no" >&6
14594fi
14595
8ced02f6 14596 WINDRES=$ac_ct_WINDRES
8c80d384 14597else
8ced02f6 14598 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
14599fi
14600
004ee6da 14601 RESCOMP="$WINDRES"
8c80d384
DE
14602else
14603 case "${host}" in
14604 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
14605 if test -n "$ac_tool_prefix"; then
14606 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14607set dummy ${ac_tool_prefix}windres; ac_word=$2
14608echo "$as_me:$LINENO: checking for $ac_word" >&5
14609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14610if test "${ac_cv_prog_WINDRES+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14612else
14613 if test -n "$WINDRES"; then
14614 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14615else
14616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14617for as_dir in $PATH
14618do
14619 IFS=$as_save_IFS
14620 test -z "$as_dir" && as_dir=.
14621 for ac_exec_ext in '' $ac_executable_extensions; do
14622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14623 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14625 break 2
14626 fi
14627done
14628done
14629
14630fi
14631fi
14632WINDRES=$ac_cv_prog_WINDRES
14633if test -n "$WINDRES"; then
14634 echo "$as_me:$LINENO: result: $WINDRES" >&5
14635echo "${ECHO_T}$WINDRES" >&6
14636else
14637 echo "$as_me:$LINENO: result: no" >&5
14638echo "${ECHO_T}no" >&6
14639fi
14640
14641fi
14642if test -z "$ac_cv_prog_WINDRES"; then
14643 ac_ct_WINDRES=$WINDRES
14644 # Extract the first word of "windres", so it can be a program name with args.
14645set dummy windres; ac_word=$2
14646echo "$as_me:$LINENO: checking for $ac_word" >&5
14647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14648if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14650else
14651 if test -n "$ac_ct_WINDRES"; then
14652 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14653else
14654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14655for as_dir in $PATH
14656do
14657 IFS=$as_save_IFS
14658 test -z "$as_dir" && as_dir=.
14659 for ac_exec_ext in '' $ac_executable_extensions; do
14660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14661 ac_cv_prog_ac_ct_WINDRES="windres"
14662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14663 break 2
14664 fi
14665done
14666done
14667
14668fi
14669fi
14670ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14671if test -n "$ac_ct_WINDRES"; then
14672 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14673echo "${ECHO_T}$ac_ct_WINDRES" >&6
14674else
14675 echo "$as_me:$LINENO: result: no" >&5
14676echo "${ECHO_T}no" >&6
14677fi
14678
14679 WINDRES=$ac_ct_WINDRES
14680else
14681 WINDRES="$ac_cv_prog_WINDRES"
14682fi
14683
14684 RESCOMP="$WINDRES"
14685 if test -n "$ac_tool_prefix"; then
8c80d384
DE
14686 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14687set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14688echo "$as_me:$LINENO: checking for $ac_word" >&5
14689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14690if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14692else
14693 if test -n "$DLLTOOL"; then
14694 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14695else
14696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14697for as_dir in $PATH
14698do
14699 IFS=$as_save_IFS
14700 test -z "$as_dir" && as_dir=.
14701 for ac_exec_ext in '' $ac_executable_extensions; do
14702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14703 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14705 break 2
14706 fi
14707done
14708done
14709
14710fi
14711fi
14712DLLTOOL=$ac_cv_prog_DLLTOOL
14713if test -n "$DLLTOOL"; then
14714 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14715echo "${ECHO_T}$DLLTOOL" >&6
14716else
14717 echo "$as_me:$LINENO: result: no" >&5
14718echo "${ECHO_T}no" >&6
14719fi
14720
14721fi
14722if test -z "$ac_cv_prog_DLLTOOL"; then
14723 ac_ct_DLLTOOL=$DLLTOOL
14724 # Extract the first word of "dlltool", so it can be a program name with args.
14725set dummy dlltool; ac_word=$2
14726echo "$as_me:$LINENO: checking for $ac_word" >&5
14727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14728if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14730else
14731 if test -n "$ac_ct_DLLTOOL"; then
14732 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14733else
14734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14735for as_dir in $PATH
14736do
14737 IFS=$as_save_IFS
14738 test -z "$as_dir" && as_dir=.
14739 for ac_exec_ext in '' $ac_executable_extensions; do
14740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14741 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14743 break 2
14744 fi
14745done
14746done
14747
14748fi
14749fi
14750ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14751if test -n "$ac_ct_DLLTOOL"; then
14752 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14753echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14754else
14755 echo "$as_me:$LINENO: result: no" >&5
14756echo "${ECHO_T}no" >&6
14757fi
14758
14759 DLLTOOL=$ac_ct_DLLTOOL
14760else
14761 DLLTOOL="$ac_cv_prog_DLLTOOL"
14762fi
14763
14764 ;;
14765 esac
14766fi
a848cd7e
SC
14767
14768echo "$as_me:$LINENO: checking if make is GNU make" >&5
14769echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14770if test "${wx_cv_prog_makeisgnu+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772else
14773
14774 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14775 egrep -s GNU > /dev/null); then
14776 wx_cv_prog_makeisgnu="yes"
14777 else
14778 wx_cv_prog_makeisgnu="no"
14779 fi
14780
14781fi
14782echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14783echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14784
14785if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14786 IF_GNU_MAKE=""
14787else
14788 IF_GNU_MAKE="#"
14789fi
14790
14791
14792
14793if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14794echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14795echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14796if test "${wx_cv_prog_makevpath+set}" = set; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798else
14799
14800cat - << EOF > confMake
14801check : file
14802 cp \$? \$@
14803 cp \$? final_file
14804EOF
14805
14806if test ! -d sub ; then
14807 mkdir sub
14808fi
14809echo dummy > sub/file
14810${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14811RESULT=$?
14812rm -f sub/file check final_file confMake
14813rmdir sub
14814if test "$RESULT" = 0; then
14815 wx_cv_prog_makevpath="yes"
14816else
14817 wx_cv_prog_makevpath="no"
14818fi
14819
14820fi
14821echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14822echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14823
14824if test "x$wx_cv_prog_makevpath" != "xyes"; then
14825{ { echo "$as_me:$LINENO: error:
14826You need a make-utility that is able to use the variable
14827VPATH correctly.
14828If your version of make does not support VPATH correctly,
14829please install GNU-make (possibly as gmake), and start
14830configure with the following command:
14831export MAKE=gmake; ./configure for sh-type shells
14832setenv MAKE gmake; ./configure for csh-type shells
14833Also please do remember to use gmake in this case every time
14834you are trying to compile.
14835" >&5
14836echo "$as_me: error:
14837You need a make-utility that is able to use the variable
14838VPATH correctly.
14839If your version of make does not support VPATH correctly,
14840please install GNU-make (possibly as gmake), and start
14841configure with the following command:
14842export MAKE=gmake; ./configure for sh-type shells
14843setenv MAKE gmake; ./configure for csh-type shells
14844Also please do remember to use gmake in this case every time
14845you are trying to compile.
14846" >&2;}
14847 { (exit 1); exit 1; }; }
14848fi fi
14849echo "$as_me:$LINENO: checking whether ln -s works" >&5
14850echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14851LN_S=$as_ln_s
14852if test "$LN_S" = "ln -s"; then
14853 echo "$as_me:$LINENO: result: yes" >&5
14854echo "${ECHO_T}yes" >&6
14855else
14856 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14857echo "${ECHO_T}no, using $LN_S" >&6
14858fi
14859
14860
bcaab0f9 14861
a848cd7e 14862
2113bc77 14863if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 14864 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
14865fi
14866
4d7ec9f1
DE
14867case "${host}" in
14868 powerpc-*-darwin* )
14869 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14870echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14871 cat >conftest.$ac_ext <<_ACEOF
14872/* confdefs.h. */
14873_ACEOF
14874cat confdefs.h >>conftest.$ac_ext
14875cat >>conftest.$ac_ext <<_ACEOF
14876/* end confdefs.h. */
14877
14878int
14879main ()
14880{
14881#ifndef __POWERPC__
14882 choke me for lack of PowerPC
14883#endif
14884
14885 ;
14886 return 0;
14887}
14888_ACEOF
14889rm -f conftest.$ac_objext
14890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14891 (eval $ac_compile) 2>conftest.er1
14892 ac_status=$?
14893 grep -v '^ *+' conftest.er1 >conftest.err
14894 rm -f conftest.er1
14895 cat conftest.err >&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } &&
3565d135
RR
14898 { ac_try='test -z "$ac_c_werror_flag"
14899 || test ! -s conftest.err'
4d7ec9f1
DE
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } &&
14905 { ac_try='test -s conftest.$ac_objext'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 echo "$as_me:$LINENO: result: yes" >&5
14912echo "${ECHO_T}yes" >&6
14913else
14914 echo "$as_me: failed program was:" >&5
14915sed 's/^/| /' conftest.$ac_ext >&5
14916
14917echo "$as_me:$LINENO: result: no" >&5
14918echo "${ECHO_T}no" >&6
14919 cat >>confdefs.h <<\_ACEOF
14920#define __POWERPC__ 1
14921_ACEOF
14922
14923
14924fi
14925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14926 ;;
14927esac
14928
14929case "${host}" in
14930 *-*-darwin* )
4d7ec9f1
DE
14931 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14932echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14933 cat >conftest.$ac_ext <<_ACEOF
14934/* confdefs.h. */
14935_ACEOF
14936cat confdefs.h >>conftest.$ac_ext
14937cat >>conftest.$ac_ext <<_ACEOF
14938/* end confdefs.h. */
14939#include <CoreFoundation/CFBase.h>
14940
14941int
14942main ()
14943{
14944
14945 ;
14946 return 0;
14947}
14948_ACEOF
14949rm -f conftest.$ac_objext
14950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14951 (eval $ac_compile) 2>conftest.er1
14952 ac_status=$?
14953 grep -v '^ *+' conftest.er1 >conftest.err
14954 rm -f conftest.er1
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } &&
3565d135
RR
14958 { ac_try='test -z "$ac_c_werror_flag"
14959 || test ! -s conftest.err'
4d7ec9f1
DE
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; } &&
14965 { ac_try='test -s conftest.$ac_objext'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 echo "$as_me:$LINENO: result: yes" >&5
14972echo "${ECHO_T}yes" >&6
14973else
14974 echo "$as_me: failed program was:" >&5
14975sed 's/^/| /' conftest.$ac_ext >&5
14976
14977echo "$as_me:$LINENO: result: no" >&5
14978echo "${ECHO_T}no" >&6
14979 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14980echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14981 cat >conftest.$ac_ext <<_ACEOF
14982/* confdefs.h. */
14983_ACEOF
14984cat confdefs.h >>conftest.$ac_ext
14985cat >>conftest.$ac_ext <<_ACEOF
14986/* end confdefs.h. */
14987#define __CF_USE_FRAMEWORK_INCLUDES__
14988#include <CoreFoundation/CFBase.h>
14989
14990int
14991main ()
14992{
14993
14994 ;
14995 return 0;
14996}
14997_ACEOF
14998rm -f conftest.$ac_objext
14999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15000 (eval $ac_compile) 2>conftest.er1
15001 ac_status=$?
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
3565d135
RR
15007 { ac_try='test -z "$ac_c_werror_flag"
15008 || test ! -s conftest.err'
4d7ec9f1
DE
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; } &&
15014 { ac_try='test -s conftest.$ac_objext'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; }; then
15020 echo "$as_me:$LINENO: result: yes" >&5
15021echo "${ECHO_T}yes" >&6
c92ad099 15022 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15023else
15024 echo "$as_me: failed program was:" >&5
15025sed 's/^/| /' conftest.$ac_ext >&5
15026
15027{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15028See \`config.log' for more details." >&5
15029echo "$as_me: error: no. CoreFoundation not available.
15030See \`config.log' for more details." >&2;}
15031 { (exit 1); exit 1; }; }
15032
15033fi
15034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15035
15036
15037fi
15038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15039 ;;
15040esac
15041
a848cd7e
SC
15042case "${host}" in
15043 *-pc-os2_emx | *-pc-os2-emx )
15044 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15045 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15046echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15047if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15049else
15050 ac_check_lib_save_LIBS=$LIBS
15051LIBS="-lcExt $LIBS"
15052cat >conftest.$ac_ext <<_ACEOF
15053/* confdefs.h. */
15054_ACEOF
15055cat confdefs.h >>conftest.$ac_ext
15056cat >>conftest.$ac_ext <<_ACEOF
15057/* end confdefs.h. */
15058
15059/* Override any gcc2 internal prototype to avoid an error. */
15060#ifdef __cplusplus
15061extern "C"
15062#endif
15063/* We use char because int might match the return type of a gcc2
15064 builtin and then its argument prototype would still apply. */
15065char drand48 ();
15066int
15067main ()
15068{
15069drand48 ();
15070 ;
15071 return 0;
15072}
15073_ACEOF
15074rm -f conftest.$ac_objext conftest$ac_exeext
15075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15076 (eval $ac_link) 2>conftest.er1
a848cd7e 15077 ac_status=$?
ac1cb8d3
VS
15078 grep -v '^ *+' conftest.er1 >conftest.err
15079 rm -f conftest.er1
15080 cat conftest.err >&5
a848cd7e
SC
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } &&
3565d135
RR
15083 { ac_try='test -z "$ac_c_werror_flag"
15084 || test ! -s conftest.err'
ac1cb8d3
VS
15085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086 (eval $ac_try) 2>&5
15087 ac_status=$?
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; } &&
15090 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; }; then
15096 ac_cv_lib_cExt_drand48=yes
15097else
15098 echo "$as_me: failed program was:" >&5
15099sed 's/^/| /' conftest.$ac_ext >&5
15100
15101ac_cv_lib_cExt_drand48=no
15102fi
ac1cb8d3
VS
15103rm -f conftest.err conftest.$ac_objext \
15104 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15105LIBS=$ac_check_lib_save_LIBS
15106fi
15107echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15108echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15109if test $ac_cv_lib_cExt_drand48 = yes; then
15110 LIBS="$LIBS -lcExt"
15111fi
15112
15113 else
15114 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15115 fi
69120ee4
VZ
15116 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15117echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15118if test "${wx_cv_gccversion+set}" = set; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15120else
15121
391a765e
VS
15122 if test "$cross_compiling" = yes; then
15123 wx_cv_gccversion="EMX2"
15124
15125else
15126 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15127/* confdefs.h. */
15128_ACEOF
15129cat confdefs.h >>conftest.$ac_ext
15130cat >>conftest.$ac_ext <<_ACEOF
15131/* end confdefs.h. */
15132
391a765e 15133 #include <stdio.h>
a848cd7e 15134
391a765e
VS
15135 int main()
15136 {
15137 FILE *f=fopen("conftestval", "w");
15138 if (!f) exit(1);
15139 fprintf(f,
a848cd7e 15140 #if (__GNUC__ < 3)
391a765e
VS
15141 "EMX2"
15142 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15143 "EMX3"
15144 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15145 "Innotek5"
15146 #else
15147 "Innotek6"
a848cd7e 15148 #endif
391a765e
VS
15149 );
15150 exit(0);
15151 }
a848cd7e 15152
a848cd7e 15153_ACEOF
391a765e
VS
15154rm -f conftest$ac_exeext
15155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15156 (eval $ac_link) 2>&5
ac1cb8d3
VS
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
391a765e 15165 wx_cv_gccversion=`cat conftestval`
a848cd7e 15166else
391a765e
VS
15167 echo "$as_me: program exited with status $ac_status" >&5
15168echo "$as_me: failed program was:" >&5
a848cd7e
SC
15169sed 's/^/| /' conftest.$ac_ext >&5
15170
391a765e
VS
15171( exit $ac_status )
15172wx_cv_gccversion="EMX2"
a848cd7e 15173fi
391a765e 15174rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15175fi
a848cd7e
SC
15176
15177fi
15178echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15179echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 15180 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15181 LIBS="$LIBS -lstdcpp"
15182 LDFLAGS="$LDFLAGS -Zsysv-signals"
15183 else
391a765e 15184 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15185 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15186 LDFLAGS="$LDFLAGS -Zsysv-signals"
15187 else
15188 LIBS="$LIBS -lstdc++"
15189 fi
15190 fi
94acd38e
DE
15191 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15192 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15193echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15194 wxUSE_OMF=yes
2da0c077 15195 enable_omf=yes
a848cd7e
SC
15196 fi
15197 ;;
15198 *)
15199
15200
15201
15202 ac_ext=cc
15203ac_cpp='$CXXCPP $CPPFLAGS'
15204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15207
15208
95986553 15209 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15210echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15211if test "${ac_cv_string_strcasecmp+set}" = set; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15213else
15214
15215 cat >conftest.$ac_ext <<_ACEOF
15216/* confdefs.h. */
15217_ACEOF
15218cat confdefs.h >>conftest.$ac_ext
15219cat >>conftest.$ac_ext <<_ACEOF
15220/* end confdefs.h. */
15221
15222 #include <string.h>
15223
15224int
15225main ()
15226{
15227
15228 strcasecmp("foo", "bar");
15229
15230 ;
15231 return 0;
15232}
15233_ACEOF
15234rm -f conftest.$ac_objext conftest$ac_exeext
15235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15236 (eval $ac_link) 2>conftest.er1
a848cd7e 15237 ac_status=$?
ac1cb8d3
VS
15238 grep -v '^ *+' conftest.er1 >conftest.err
15239 rm -f conftest.er1
15240 cat conftest.err >&5
a848cd7e
SC
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
3565d135
RR
15243 { ac_try='test -z "$ac_cxx_werror_flag"
15244 || test ! -s conftest.err'
ac1cb8d3
VS
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } &&
15250 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15256 ac_cv_string_strcasecmp=yes
15257else
15258 echo "$as_me: failed program was:" >&5
15259sed 's/^/| /' conftest.$ac_ext >&5
15260
15261ac_cv_string_strcasecmp=no
15262
15263fi
ac1cb8d3
VS
15264rm -f conftest.err conftest.$ac_objext \
15265 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15266
15267fi
15268echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15269echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15270
15271 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15272 cat >>confdefs.h <<\_ACEOF
15273#define HAVE_STRCASECMP_IN_STRING_H 1
15274_ACEOF
15275
15276 else
15277 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15278echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15279if test "${ac_cv_strings_strcasecmp+set}" = set; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
15281else
15282
15283 cat >conftest.$ac_ext <<_ACEOF
15284/* confdefs.h. */
15285_ACEOF
15286cat confdefs.h >>conftest.$ac_ext
15287cat >>conftest.$ac_ext <<_ACEOF
15288/* end confdefs.h. */
15289
15290 #include <strings.h>
15291
15292int
15293main ()
15294{
15295
15296 strcasecmp("foo", "bar");
15297
15298 ;
15299 return 0;
15300}
15301_ACEOF
15302rm -f conftest.$ac_objext conftest$ac_exeext
15303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15304 (eval $ac_link) 2>conftest.er1
a848cd7e 15305 ac_status=$?
ac1cb8d3
VS
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
a848cd7e
SC
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
3565d135
RR
15311 { ac_try='test -z "$ac_cxx_werror_flag"
15312 || test ! -s conftest.err'
ac1cb8d3
VS
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; } &&
15318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_cv_strings_strcasecmp=yes
15325else
15326 echo "$as_me: failed program was:" >&5
15327sed 's/^/| /' conftest.$ac_ext >&5
15328
15329ac_cv_strings_strcasecmp=no
15330
15331fi
ac1cb8d3
VS
15332rm -f conftest.err conftest.$ac_objext \
15333 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15334
15335fi
15336echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15337echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15338
0c3c69fc 15339 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15340 cat >>confdefs.h <<\_ACEOF
15341#define HAVE_STRCASECMP_IN_STRINGS_H 1
15342_ACEOF
15343
15344 else
15345 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15346echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15347 { (exit 1); exit 1; }; }
15348 fi
15349 fi
15350
15351 ac_ext=c
15352ac_cpp='$CPP $CPPFLAGS'
15353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15355ac_compiler_gnu=$ac_cv_c_compiler_gnu
15356
15357 ;;
15358esac
15359
15360
15361echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15362echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15363if test "${ac_cv_header_stdc+set}" = set; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15365else
15366 cat >conftest.$ac_ext <<_ACEOF
15367/* confdefs.h. */
15368_ACEOF
15369cat confdefs.h >>conftest.$ac_ext
15370cat >>conftest.$ac_ext <<_ACEOF
15371/* end confdefs.h. */
15372#include <stdlib.h>
15373#include <stdarg.h>
15374#include <string.h>
15375#include <float.h>
15376
15377int
15378main ()
15379{
15380
15381 ;
15382 return 0;
15383}
15384_ACEOF
15385rm -f conftest.$ac_objext
15386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15387 (eval $ac_compile) 2>conftest.er1
a848cd7e 15388 ac_status=$?
ac1cb8d3
VS
15389 grep -v '^ *+' conftest.er1 >conftest.err
15390 rm -f conftest.er1
15391 cat conftest.err >&5
a848cd7e
SC
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
3565d135
RR
15394 { ac_try='test -z "$ac_c_werror_flag"
15395 || test ! -s conftest.err'
ac1cb8d3
VS
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15398 ac_status=$?
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; } &&
15401 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407 ac_cv_header_stdc=yes
15408else
15409 echo "$as_me: failed program was:" >&5
15410sed 's/^/| /' conftest.$ac_ext >&5
15411
15412ac_cv_header_stdc=no
15413fi
ac1cb8d3 15414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15415
15416if test $ac_cv_header_stdc = yes; then
15417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15418 cat >conftest.$ac_ext <<_ACEOF
15419/* confdefs.h. */
15420_ACEOF
15421cat confdefs.h >>conftest.$ac_ext
15422cat >>conftest.$ac_ext <<_ACEOF
15423/* end confdefs.h. */
15424#include <string.h>
15425
15426_ACEOF
15427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15428 $EGREP "memchr" >/dev/null 2>&1; then
15429 :
15430else
15431 ac_cv_header_stdc=no
15432fi
15433rm -f conftest*
15434
15435fi
15436
15437if test $ac_cv_header_stdc = yes; then
15438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15439 cat >conftest.$ac_ext <<_ACEOF
15440/* confdefs.h. */
15441_ACEOF
15442cat confdefs.h >>conftest.$ac_ext
15443cat >>conftest.$ac_ext <<_ACEOF
15444/* end confdefs.h. */
15445#include <stdlib.h>
15446
15447_ACEOF
15448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15449 $EGREP "free" >/dev/null 2>&1; then
15450 :
15451else
15452 ac_cv_header_stdc=no
15453fi
15454rm -f conftest*
15455
15456fi
15457
15458if test $ac_cv_header_stdc = yes; then
15459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15460 if test "$cross_compiling" = yes; then
15461 :
15462else
15463 cat >conftest.$ac_ext <<_ACEOF
15464/* confdefs.h. */
15465_ACEOF
15466cat confdefs.h >>conftest.$ac_ext
15467cat >>conftest.$ac_ext <<_ACEOF
15468/* end confdefs.h. */
15469#include <ctype.h>
15470#if ((' ' & 0x0FF) == 0x020)
15471# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15472# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15473#else
15474# define ISLOWER(c) \
ac1cb8d3
VS
15475 (('a' <= (c) && (c) <= 'i') \
15476 || ('j' <= (c) && (c) <= 'r') \
15477 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15478# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15479#endif
15480
15481#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15482int
15483main ()
15484{
15485 int i;
15486 for (i = 0; i < 256; i++)
15487 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15488 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15489 exit(2);
15490 exit (0);
15491}
15492_ACEOF
15493rm -f conftest$ac_exeext
15494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15495 (eval $ac_link) 2>&5
15496 ac_status=$?
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 :
15505else
15506 echo "$as_me: program exited with status $ac_status" >&5
15507echo "$as_me: failed program was:" >&5
15508sed 's/^/| /' conftest.$ac_ext >&5
15509
15510( exit $ac_status )
15511ac_cv_header_stdc=no
15512fi
ac1cb8d3 15513rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15514fi
15515fi
15516fi
15517echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15518echo "${ECHO_T}$ac_cv_header_stdc" >&6
15519if test $ac_cv_header_stdc = yes; then
15520
15521cat >>confdefs.h <<\_ACEOF
15522#define STDC_HEADERS 1
15523_ACEOF
15524
15525fi
15526
15527# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15538 inttypes.h stdint.h unistd.h
a848cd7e
SC
15539do
15540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15541echo "$as_me:$LINENO: checking for $ac_header" >&5
15542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15543if eval "test \"\${$as_ac_Header+set}\" = set"; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15545else
15546 cat >conftest.$ac_ext <<_ACEOF
15547/* confdefs.h. */
15548_ACEOF
15549cat confdefs.h >>conftest.$ac_ext
15550cat >>conftest.$ac_ext <<_ACEOF
15551/* end confdefs.h. */
15552$ac_includes_default
15553
15554#include <$ac_header>
15555_ACEOF
15556rm -f conftest.$ac_objext
15557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15558 (eval $ac_compile) 2>conftest.er1
a848cd7e 15559 ac_status=$?
ac1cb8d3
VS
15560 grep -v '^ *+' conftest.er1 >conftest.err
15561 rm -f conftest.er1
15562 cat conftest.err >&5
a848cd7e
SC
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
3565d135
RR
15565 { ac_try='test -z "$ac_c_werror_flag"
15566 || test ! -s conftest.err'
ac1cb8d3
VS
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; } &&
15572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15578 eval "$as_ac_Header=yes"
15579else
15580 echo "$as_me: failed program was:" >&5
15581sed 's/^/| /' conftest.$ac_ext >&5
15582
15583eval "$as_ac_Header=no"
15584fi
ac1cb8d3 15585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15586fi
15587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15589if test `eval echo '${'$as_ac_Header'}'` = yes; then
15590 cat >>confdefs.h <<_ACEOF
15591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15592_ACEOF
15593
15594fi
15595
15596done
15597
15598
15599
15600for ac_header in stdlib.h
15601do
15602as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15603if eval "test \"\${$as_ac_Header+set}\" = set"; then
15604 echo "$as_me:$LINENO: checking for $ac_header" >&5
15605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15606if eval "test \"\${$as_ac_Header+set}\" = set"; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15608fi
15609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15611else
15612 # Is the header compilable?
15613echo "$as_me:$LINENO: checking $ac_header usability" >&5
15614echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15615cat >conftest.$ac_ext <<_ACEOF
15616/* confdefs.h. */
15617_ACEOF
15618cat confdefs.h >>conftest.$ac_ext
15619cat >>conftest.$ac_ext <<_ACEOF
15620/* end confdefs.h. */
15621$ac_includes_default
15622#include <$ac_header>
15623_ACEOF
15624rm -f conftest.$ac_objext
15625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15626 (eval $ac_compile) 2>conftest.er1
a848cd7e 15627 ac_status=$?
ac1cb8d3
VS
15628 grep -v '^ *+' conftest.er1 >conftest.err
15629 rm -f conftest.er1
15630 cat conftest.err >&5
a848cd7e
SC
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } &&
3565d135
RR
15633 { ac_try='test -z "$ac_c_werror_flag"
15634 || test ! -s conftest.err'
ac1cb8d3
VS
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; } &&
15640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15646 ac_header_compiler=yes
15647else
15648 echo "$as_me: failed program was:" >&5
15649sed 's/^/| /' conftest.$ac_ext >&5
15650
15651ac_header_compiler=no
15652fi
ac1cb8d3 15653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15654echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15655echo "${ECHO_T}$ac_header_compiler" >&6
15656
15657# Is the header present?
15658echo "$as_me:$LINENO: checking $ac_header presence" >&5
15659echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15660cat >conftest.$ac_ext <<_ACEOF
15661/* confdefs.h. */
15662_ACEOF
15663cat confdefs.h >>conftest.$ac_ext
15664cat >>conftest.$ac_ext <<_ACEOF
15665/* end confdefs.h. */
15666#include <$ac_header>
15667_ACEOF
15668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15670 ac_status=$?
15671 grep -v '^ *+' conftest.er1 >conftest.err
15672 rm -f conftest.er1
15673 cat conftest.err >&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } >/dev/null; then
15676 if test -s conftest.err; then
15677 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15679 else
15680 ac_cpp_err=
15681 fi
15682else
15683 ac_cpp_err=yes
15684fi
15685if test -z "$ac_cpp_err"; then
15686 ac_header_preproc=yes
15687else
15688 echo "$as_me: failed program was:" >&5
15689sed 's/^/| /' conftest.$ac_ext >&5
15690
15691 ac_header_preproc=no
15692fi
15693rm -f conftest.err conftest.$ac_ext
15694echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15695echo "${ECHO_T}$ac_header_preproc" >&6
15696
15697# So? What about this header?
ac1cb8d3
VS
15698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15699 yes:no: )
a848cd7e
SC
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15701echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15703echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15704 ac_header_preproc=yes
a848cd7e 15705 ;;
ac1cb8d3 15706 no:yes:* )
a848cd7e
SC
15707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15712echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15714echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15716echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15718echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15719 (
15720 cat <<\_ASBOX
ac1cb8d3
VS
15721## ----------------------------------------- ##
15722## Report this to wx-dev@lists.wxwidgets.org ##
15723## ----------------------------------------- ##
a848cd7e
SC
15724_ASBOX
15725 ) |
15726 sed "s/^/$as_me: WARNING: /" >&2
15727 ;;
15728esac
15729echo "$as_me:$LINENO: checking for $ac_header" >&5
15730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15731if eval "test \"\${$as_ac_Header+set}\" = set"; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15733else
ac1cb8d3 15734 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15735fi
15736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15738
15739fi
15740if test `eval echo '${'$as_ac_Header'}'` = yes; then
15741 cat >>confdefs.h <<_ACEOF
15742#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15743_ACEOF
15744
15745fi
15746
15747done
15748
15749
15750for ac_header in malloc.h
15751do
15752as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15753if eval "test \"\${$as_ac_Header+set}\" = set"; then
15754 echo "$as_me:$LINENO: checking for $ac_header" >&5
15755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15756if eval "test \"\${$as_ac_Header+set}\" = set"; then
15757 echo $ECHO_N "(cached) $ECHO_C" >&6
15758fi
15759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15760echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15761else
15762 # Is the header compilable?
15763echo "$as_me:$LINENO: checking $ac_header usability" >&5
15764echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15765cat >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$ac_includes_default
15772#include <$ac_header>
15773_ACEOF
15774rm -f conftest.$ac_objext
15775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15776 (eval $ac_compile) 2>conftest.er1
a848cd7e 15777 ac_status=$?
ac1cb8d3
VS
15778 grep -v '^ *+' conftest.er1 >conftest.err
15779 rm -f conftest.er1
15780 cat conftest.err >&5
a848cd7e
SC
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
3565d135
RR
15783 { ac_try='test -z "$ac_c_werror_flag"
15784 || test ! -s conftest.err'
ac1cb8d3
VS
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; } &&
15790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15796 ac_header_compiler=yes
15797else
15798 echo "$as_me: failed program was:" >&5
15799sed 's/^/| /' conftest.$ac_ext >&5
15800
15801ac_header_compiler=no
15802fi
ac1cb8d3 15803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15804echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15805echo "${ECHO_T}$ac_header_compiler" >&6
15806
15807# Is the header present?
15808echo "$as_me:$LINENO: checking $ac_header presence" >&5
15809echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15810cat >conftest.$ac_ext <<_ACEOF
15811/* confdefs.h. */
15812_ACEOF
15813cat confdefs.h >>conftest.$ac_ext
15814cat >>conftest.$ac_ext <<_ACEOF
15815/* end confdefs.h. */
15816#include <$ac_header>
15817_ACEOF
15818if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15820 ac_status=$?
15821 grep -v '^ *+' conftest.er1 >conftest.err
15822 rm -f conftest.er1
15823 cat conftest.err >&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } >/dev/null; then
15826 if test -s conftest.err; then
15827 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15829 else
15830 ac_cpp_err=
15831 fi
15832else
15833 ac_cpp_err=yes
15834fi
15835if test -z "$ac_cpp_err"; then
15836 ac_header_preproc=yes
15837else
15838 echo "$as_me: failed program was:" >&5
15839sed 's/^/| /' conftest.$ac_ext >&5
15840
15841 ac_header_preproc=no
15842fi
15843rm -f conftest.err conftest.$ac_ext
15844echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15845echo "${ECHO_T}$ac_header_preproc" >&6
15846
15847# So? What about this header?
ac1cb8d3
VS
15848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15849 yes:no: )
a848cd7e
SC
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15851echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15853echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15854 ac_header_preproc=yes
a848cd7e 15855 ;;
ac1cb8d3 15856 no:yes:* )
a848cd7e
SC
15857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15858echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15860echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15862echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15864echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15866echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15868echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15869 (
15870 cat <<\_ASBOX
ac1cb8d3
VS
15871## ----------------------------------------- ##
15872## Report this to wx-dev@lists.wxwidgets.org ##
15873## ----------------------------------------- ##
a848cd7e
SC
15874_ASBOX
15875 ) |
15876 sed "s/^/$as_me: WARNING: /" >&2
15877 ;;
15878esac
15879echo "$as_me:$LINENO: checking for $ac_header" >&5
15880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15881if eval "test \"\${$as_ac_Header+set}\" = set"; then
15882 echo $ECHO_N "(cached) $ECHO_C" >&6
15883else
ac1cb8d3 15884 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15885fi
15886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15887echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15888
15889fi
15890if test `eval echo '${'$as_ac_Header'}'` = yes; then
15891 cat >>confdefs.h <<_ACEOF
15892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15893_ACEOF
15894
15895fi
15896
15897done
15898
15899
15900for ac_header in unistd.h
15901do
15902as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15903if eval "test \"\${$as_ac_Header+set}\" = set"; then
15904 echo "$as_me:$LINENO: checking for $ac_header" >&5
15905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15906if eval "test \"\${$as_ac_Header+set}\" = set"; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15908fi
15909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15911else
15912 # Is the header compilable?
15913echo "$as_me:$LINENO: checking $ac_header usability" >&5
15914echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15915cat >conftest.$ac_ext <<_ACEOF
15916/* confdefs.h. */
15917_ACEOF
15918cat confdefs.h >>conftest.$ac_ext
15919cat >>conftest.$ac_ext <<_ACEOF
15920/* end confdefs.h. */
15921$ac_includes_default
15922#include <$ac_header>
15923_ACEOF
15924rm -f conftest.$ac_objext
15925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15926 (eval $ac_compile) 2>conftest.er1
a848cd7e 15927 ac_status=$?
ac1cb8d3
VS
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
a848cd7e
SC
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } &&
3565d135
RR
15933 { ac_try='test -z "$ac_c_werror_flag"
15934 || test ! -s conftest.err'
ac1cb8d3
VS
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15937 ac_status=$?
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; } &&
15940 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; }; then
15946 ac_header_compiler=yes
15947else
15948 echo "$as_me: failed program was:" >&5
15949sed 's/^/| /' conftest.$ac_ext >&5
15950
15951ac_header_compiler=no
15952fi
ac1cb8d3 15953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15954echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15955echo "${ECHO_T}$ac_header_compiler" >&6
15956
15957# Is the header present?
15958echo "$as_me:$LINENO: checking $ac_header presence" >&5
15959echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15960cat >conftest.$ac_ext <<_ACEOF
15961/* confdefs.h. */
15962_ACEOF
15963cat confdefs.h >>conftest.$ac_ext
15964cat >>conftest.$ac_ext <<_ACEOF
15965/* end confdefs.h. */
15966#include <$ac_header>
15967_ACEOF
15968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15970 ac_status=$?
15971 grep -v '^ *+' conftest.er1 >conftest.err
15972 rm -f conftest.er1
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } >/dev/null; then
15976 if test -s conftest.err; then
15977 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15979 else
15980 ac_cpp_err=
15981 fi
15982else
15983 ac_cpp_err=yes
15984fi
15985if test -z "$ac_cpp_err"; then
15986 ac_header_preproc=yes
15987else
15988 echo "$as_me: failed program was:" >&5
15989sed 's/^/| /' conftest.$ac_ext >&5
15990
15991 ac_header_preproc=no
15992fi
15993rm -f conftest.err conftest.$ac_ext
15994echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15995echo "${ECHO_T}$ac_header_preproc" >&6
15996
15997# So? What about this header?
ac1cb8d3
VS
15998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15999 yes:no: )
a848cd7e
SC
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16001echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16003echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16004 ac_header_preproc=yes
a848cd7e 16005 ;;
ac1cb8d3 16006 no:yes:* )
a848cd7e
SC
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16008echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16010echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16012echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16014echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16016echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16018echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16019 (
16020 cat <<\_ASBOX
ac1cb8d3
VS
16021## ----------------------------------------- ##
16022## Report this to wx-dev@lists.wxwidgets.org ##
16023## ----------------------------------------- ##
a848cd7e
SC
16024_ASBOX
16025 ) |
16026 sed "s/^/$as_me: WARNING: /" >&2
16027 ;;
16028esac
16029echo "$as_me:$LINENO: checking for $ac_header" >&5
16030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16031if eval "test \"\${$as_ac_Header+set}\" = set"; then
16032 echo $ECHO_N "(cached) $ECHO_C" >&6
16033else
ac1cb8d3 16034 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16035fi
16036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16037echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16038
16039fi
16040if test `eval echo '${'$as_ac_Header'}'` = yes; then
16041 cat >>confdefs.h <<_ACEOF
16042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16043_ACEOF
16044
16045fi
16046
16047done
16048
16049
16050for ac_header in wchar.h
16051do
16052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16053if eval "test \"\${$as_ac_Header+set}\" = set"; then
16054 echo "$as_me:$LINENO: checking for $ac_header" >&5
16055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16056if eval "test \"\${$as_ac_Header+set}\" = set"; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16058fi
16059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16061else
16062 # Is the header compilable?
16063echo "$as_me:$LINENO: checking $ac_header usability" >&5
16064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16065cat >conftest.$ac_ext <<_ACEOF
16066/* confdefs.h. */
16067_ACEOF
16068cat confdefs.h >>conftest.$ac_ext
16069cat >>conftest.$ac_ext <<_ACEOF
16070/* end confdefs.h. */
16071$ac_includes_default
16072#include <$ac_header>
16073_ACEOF
16074rm -f conftest.$ac_objext
16075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16076 (eval $ac_compile) 2>conftest.er1
a848cd7e 16077 ac_status=$?
ac1cb8d3
VS
16078 grep -v '^ *+' conftest.er1 >conftest.err
16079 rm -f conftest.er1
16080 cat conftest.err >&5
a848cd7e
SC
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } &&
3565d135
RR
16083 { ac_try='test -z "$ac_c_werror_flag"
16084 || test ! -s conftest.err'
ac1cb8d3
VS
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16096 ac_header_compiler=yes
16097else
16098 echo "$as_me: failed program was:" >&5
16099sed 's/^/| /' conftest.$ac_ext >&5
16100
16101ac_header_compiler=no
16102fi
ac1cb8d3 16103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16104echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16105echo "${ECHO_T}$ac_header_compiler" >&6
16106
16107# Is the header present?
16108echo "$as_me:$LINENO: checking $ac_header presence" >&5
16109echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16110cat >conftest.$ac_ext <<_ACEOF
16111/* confdefs.h. */
16112_ACEOF
16113cat confdefs.h >>conftest.$ac_ext
16114cat >>conftest.$ac_ext <<_ACEOF
16115/* end confdefs.h. */
16116#include <$ac_header>
16117_ACEOF
16118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16120 ac_status=$?
16121 grep -v '^ *+' conftest.er1 >conftest.err
16122 rm -f conftest.er1
16123 cat conftest.err >&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); } >/dev/null; then
16126 if test -s conftest.err; then
16127 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16129 else
16130 ac_cpp_err=
16131 fi
16132else
16133 ac_cpp_err=yes
16134fi
16135if test -z "$ac_cpp_err"; then
16136 ac_header_preproc=yes
16137else
16138 echo "$as_me: failed program was:" >&5
16139sed 's/^/| /' conftest.$ac_ext >&5
16140
16141 ac_header_preproc=no
16142fi
16143rm -f conftest.err conftest.$ac_ext
16144echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16145echo "${ECHO_T}$ac_header_preproc" >&6
16146
16147# So? What about this header?
ac1cb8d3
VS
16148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16149 yes:no: )
a848cd7e
SC
16150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16151echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16153echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16154 ac_header_preproc=yes
a848cd7e 16155 ;;
ac1cb8d3 16156 no:yes:* )
a848cd7e
SC
16157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16158echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16160echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16162echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16164echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16166echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16168echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16169 (
16170 cat <<\_ASBOX
ac1cb8d3
VS
16171## ----------------------------------------- ##
16172## Report this to wx-dev@lists.wxwidgets.org ##
16173## ----------------------------------------- ##
a848cd7e
SC
16174_ASBOX
16175 ) |
16176 sed "s/^/$as_me: WARNING: /" >&2
16177 ;;
16178esac
16179echo "$as_me:$LINENO: checking for $ac_header" >&5
16180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16181if eval "test \"\${$as_ac_Header+set}\" = set"; then
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16183else
ac1cb8d3 16184 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16185fi
16186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16187echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16188
16189fi
16190if test `eval echo '${'$as_ac_Header'}'` = yes; then
16191 cat >>confdefs.h <<_ACEOF
16192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16193_ACEOF
16194
16195fi
16196
16197done
16198
16199
16200if test "$ac_cv_header_wchar_h" != "yes"; then
16201
16202for ac_header in wcstr.h
16203do
16204as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16205if eval "test \"\${$as_ac_Header+set}\" = set"; then
16206 echo "$as_me:$LINENO: checking for $ac_header" >&5
16207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16208if eval "test \"\${$as_ac_Header+set}\" = set"; then
16209 echo $ECHO_N "(cached) $ECHO_C" >&6
16210fi
16211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16213else
16214 # Is the header compilable?
16215echo "$as_me:$LINENO: checking $ac_header usability" >&5
16216echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16217cat >conftest.$ac_ext <<_ACEOF
16218/* confdefs.h. */
16219_ACEOF
16220cat confdefs.h >>conftest.$ac_ext
16221cat >>conftest.$ac_ext <<_ACEOF
16222/* end confdefs.h. */
16223$ac_includes_default
16224#include <$ac_header>
16225_ACEOF
16226rm -f conftest.$ac_objext
16227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16228 (eval $ac_compile) 2>conftest.er1
a848cd7e 16229 ac_status=$?
ac1cb8d3
VS
16230 grep -v '^ *+' conftest.er1 >conftest.err
16231 rm -f conftest.er1
16232 cat conftest.err >&5
a848cd7e
SC
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } &&
3565d135
RR
16235 { ac_try='test -z "$ac_c_werror_flag"
16236 || test ! -s conftest.err'
ac1cb8d3
VS
16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16239 ac_status=$?
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; } &&
16242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; }; then
16248 ac_header_compiler=yes
16249else
16250 echo "$as_me: failed program was:" >&5
16251sed 's/^/| /' conftest.$ac_ext >&5
16252
16253ac_header_compiler=no
16254fi
ac1cb8d3 16255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16256echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16257echo "${ECHO_T}$ac_header_compiler" >&6
16258
16259# Is the header present?
16260echo "$as_me:$LINENO: checking $ac_header presence" >&5
16261echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16262cat >conftest.$ac_ext <<_ACEOF
16263/* confdefs.h. */
16264_ACEOF
16265cat confdefs.h >>conftest.$ac_ext
16266cat >>conftest.$ac_ext <<_ACEOF
16267/* end confdefs.h. */
16268#include <$ac_header>
16269_ACEOF
16270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16272 ac_status=$?
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } >/dev/null; then
16278 if test -s conftest.err; then
16279 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16281 else
16282 ac_cpp_err=
16283 fi
16284else
16285 ac_cpp_err=yes
16286fi
16287if test -z "$ac_cpp_err"; then
16288 ac_header_preproc=yes
16289else
16290 echo "$as_me: failed program was:" >&5
16291sed 's/^/| /' conftest.$ac_ext >&5
16292
16293 ac_header_preproc=no
16294fi
16295rm -f conftest.err conftest.$ac_ext
16296echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16297echo "${ECHO_T}$ac_header_preproc" >&6
16298
16299# So? What about this header?
ac1cb8d3
VS
16300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16301 yes:no: )
a848cd7e
SC
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16303echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16305echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16306 ac_header_preproc=yes
a848cd7e 16307 ;;
ac1cb8d3 16308 no:yes:* )
a848cd7e
SC
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16310echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16312echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16314echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16316echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16318echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16320echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16321 (
16322 cat <<\_ASBOX
ac1cb8d3
VS
16323## ----------------------------------------- ##
16324## Report this to wx-dev@lists.wxwidgets.org ##
16325## ----------------------------------------- ##
a848cd7e
SC
16326_ASBOX
16327 ) |
16328 sed "s/^/$as_me: WARNING: /" >&2
16329 ;;
16330esac
16331echo "$as_me:$LINENO: checking for $ac_header" >&5
16332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16333if eval "test \"\${$as_ac_Header+set}\" = set"; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16335else
ac1cb8d3 16336 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16337fi
16338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16340
16341fi
16342if test `eval echo '${'$as_ac_Header'}'` = yes; then
16343 cat >>confdefs.h <<_ACEOF
16344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16345_ACEOF
16346
16347fi
16348
16349done
16350
16351fi
16352
16353
16354for ac_header in fnmatch.h
16355do
16356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16357if eval "test \"\${$as_ac_Header+set}\" = set"; then
16358 echo "$as_me:$LINENO: checking for $ac_header" >&5
16359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16360if eval "test \"\${$as_ac_Header+set}\" = set"; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16362fi
16363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16364echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16365else
16366 # Is the header compilable?
16367echo "$as_me:$LINENO: checking $ac_header usability" >&5
16368echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16369cat >conftest.$ac_ext <<_ACEOF
16370/* confdefs.h. */
16371_ACEOF
16372cat confdefs.h >>conftest.$ac_ext
16373cat >>conftest.$ac_ext <<_ACEOF
16374/* end confdefs.h. */
16375$ac_includes_default
16376#include <$ac_header>
16377_ACEOF
16378rm -f conftest.$ac_objext
16379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16380 (eval $ac_compile) 2>conftest.er1
a848cd7e 16381 ac_status=$?
ac1cb8d3
VS
16382 grep -v '^ *+' conftest.er1 >conftest.err
16383 rm -f conftest.er1
16384 cat conftest.err >&5
a848cd7e
SC
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } &&
3565d135
RR
16387 { ac_try='test -z "$ac_c_werror_flag"
16388 || test ! -s conftest.err'
ac1cb8d3
VS
16389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16390 (eval $ac_try) 2>&5
16391 ac_status=$?
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); }; } &&
16394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16396 (eval $ac_try) 2>&5
16397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; }; then
16400 ac_header_compiler=yes
16401else
16402 echo "$as_me: failed program was:" >&5
16403sed 's/^/| /' conftest.$ac_ext >&5
16404
16405ac_header_compiler=no
16406fi
ac1cb8d3 16407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16408echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16409echo "${ECHO_T}$ac_header_compiler" >&6
16410
16411# Is the header present?
16412echo "$as_me:$LINENO: checking $ac_header presence" >&5
16413echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16414cat >conftest.$ac_ext <<_ACEOF
16415/* confdefs.h. */
16416_ACEOF
16417cat confdefs.h >>conftest.$ac_ext
16418cat >>conftest.$ac_ext <<_ACEOF
16419/* end confdefs.h. */
16420#include <$ac_header>
16421_ACEOF
16422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16424 ac_status=$?
16425 grep -v '^ *+' conftest.er1 >conftest.err
16426 rm -f conftest.er1
16427 cat conftest.err >&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); } >/dev/null; then
16430 if test -s conftest.err; then
16431 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16433 else
16434 ac_cpp_err=
16435 fi
16436else
16437 ac_cpp_err=yes
16438fi
16439if test -z "$ac_cpp_err"; then
16440 ac_header_preproc=yes
16441else
16442 echo "$as_me: failed program was:" >&5
16443sed 's/^/| /' conftest.$ac_ext >&5
16444
16445 ac_header_preproc=no
16446fi
16447rm -f conftest.err conftest.$ac_ext
16448echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16449echo "${ECHO_T}$ac_header_preproc" >&6
16450
16451# So? What about this header?
ac1cb8d3
VS
16452case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16453 yes:no: )
a848cd7e
SC
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16455echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16457echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16458 ac_header_preproc=yes
a848cd7e 16459 ;;
ac1cb8d3 16460 no:yes:* )
a848cd7e
SC
16461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16462echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16464echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16466echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16468echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16470echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16472echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16473 (
16474 cat <<\_ASBOX
ac1cb8d3
VS
16475## ----------------------------------------- ##
16476## Report this to wx-dev@lists.wxwidgets.org ##
16477## ----------------------------------------- ##
a848cd7e
SC
16478_ASBOX
16479 ) |
16480 sed "s/^/$as_me: WARNING: /" >&2
16481 ;;
16482esac
16483echo "$as_me:$LINENO: checking for $ac_header" >&5
16484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16485if eval "test \"\${$as_ac_Header+set}\" = set"; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16487else
ac1cb8d3 16488 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16489fi
16490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16492
16493fi
16494if test `eval echo '${'$as_ac_Header'}'` = yes; then
16495 cat >>confdefs.h <<_ACEOF
16496#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16497_ACEOF
16498
16499fi
16500
16501done
16502
16503
a848cd7e
SC
16504
16505for ac_header in langinfo.h
16506do
16507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16508if eval "test \"\${$as_ac_Header+set}\" = set"; then
16509 echo "$as_me:$LINENO: checking for $ac_header" >&5
16510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16511if eval "test \"\${$as_ac_Header+set}\" = set"; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16513fi
16514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16516else
16517 # Is the header compilable?
16518echo "$as_me:$LINENO: checking $ac_header usability" >&5
16519echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16520cat >conftest.$ac_ext <<_ACEOF
16521/* confdefs.h. */
16522_ACEOF
16523cat confdefs.h >>conftest.$ac_ext
16524cat >>conftest.$ac_ext <<_ACEOF
16525/* end confdefs.h. */
16526$ac_includes_default
16527#include <$ac_header>
16528_ACEOF
16529rm -f conftest.$ac_objext
16530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16531 (eval $ac_compile) 2>conftest.er1
a848cd7e 16532 ac_status=$?
ac1cb8d3
VS
16533 grep -v '^ *+' conftest.er1 >conftest.err
16534 rm -f conftest.er1
16535 cat conftest.err >&5
a848cd7e
SC
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
3565d135
RR
16538 { ac_try='test -z "$ac_c_werror_flag"
16539 || test ! -s conftest.err'
ac1cb8d3
VS
16540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; }; then
16551 ac_header_compiler=yes
16552else
16553 echo "$as_me: failed program was:" >&5
16554sed 's/^/| /' conftest.$ac_ext >&5
16555
16556ac_header_compiler=no
16557fi
ac1cb8d3 16558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16560echo "${ECHO_T}$ac_header_compiler" >&6
16561
16562# Is the header present?
16563echo "$as_me:$LINENO: checking $ac_header presence" >&5
16564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16565cat >conftest.$ac_ext <<_ACEOF
16566/* confdefs.h. */
16567_ACEOF
16568cat confdefs.h >>conftest.$ac_ext
16569cat >>conftest.$ac_ext <<_ACEOF
16570/* end confdefs.h. */
16571#include <$ac_header>
16572_ACEOF
16573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16575 ac_status=$?
16576 grep -v '^ *+' conftest.er1 >conftest.err
16577 rm -f conftest.er1
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } >/dev/null; then
16581 if test -s conftest.err; then
16582 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16584 else
16585 ac_cpp_err=
16586 fi
16587else
16588 ac_cpp_err=yes
16589fi
16590if test -z "$ac_cpp_err"; then
16591 ac_header_preproc=yes
16592else
16593 echo "$as_me: failed program was:" >&5
16594sed 's/^/| /' conftest.$ac_ext >&5
16595
16596 ac_header_preproc=no
16597fi
16598rm -f conftest.err conftest.$ac_ext
16599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16600echo "${ECHO_T}$ac_header_preproc" >&6
16601
16602# So? What about this header?
ac1cb8d3
VS
16603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16604 yes:no: )
a848cd7e
SC
16605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16608echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16609 ac_header_preproc=yes
a848cd7e 16610 ;;
ac1cb8d3 16611 no:yes:* )
a848cd7e
SC
16612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16613echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16615echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16617echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16619echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16623echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16624 (
16625 cat <<\_ASBOX
ac1cb8d3
VS
16626## ----------------------------------------- ##
16627## Report this to wx-dev@lists.wxwidgets.org ##
16628## ----------------------------------------- ##
a848cd7e
SC
16629_ASBOX
16630 ) |
16631 sed "s/^/$as_me: WARNING: /" >&2
16632 ;;
16633esac
16634echo "$as_me:$LINENO: checking for $ac_header" >&5
16635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16636if eval "test \"\${$as_ac_Header+set}\" = set"; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16638else
ac1cb8d3 16639 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16640fi
16641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16643
16644fi
16645if test `eval echo '${'$as_ac_Header'}'` = yes; then
16646 cat >>confdefs.h <<_ACEOF
16647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16648_ACEOF
16649
16650fi
16651
16652done
16653
16654
16655case "${host}" in
16656 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16657 if test $ac_cv_header_langinfo_h = "yes" \
16658 -a \( "$wx_cv_gccversion" = "EMX2" \
16659 -o "$wx_cv_gccversion" = "EMX3" \
16660 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16661 LIBS="$LIBS -lintl"
16662 fi
16663 ;;
16664esac
16665
a848cd7e
SC
16666
16667echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16668echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16669if test "${ac_cv_c_const+set}" = set; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16671else
16672 cat >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
16679int
16680main ()
16681{
16682/* FIXME: Include the comments suggested by Paul. */
16683#ifndef __cplusplus
16684 /* Ultrix mips cc rejects this. */
16685 typedef int charset[2];
16686 const charset x;
16687 /* SunOS 4.1.1 cc rejects this. */
16688 char const *const *ccp;
16689 char **p;
16690 /* NEC SVR4.0.2 mips cc rejects this. */
16691 struct point {int x, y;};
16692 static struct point const zero = {0,0};
16693 /* AIX XL C 1.02.0.0 rejects this.
16694 It does not let you subtract one const X* pointer from another in
16695 an arm of an if-expression whose if-part is not a constant
16696 expression */
16697 const char *g = "string";
16698 ccp = &g + (g ? g-g : 0);
16699 /* HPUX 7.0 cc rejects these. */
16700 ++ccp;
16701 p = (char**) ccp;
16702 ccp = (char const *const *) p;
16703 { /* SCO 3.2v4 cc rejects this. */
16704 char *t;
16705 char const *s = 0 ? (char *) 0 : (char const *) 0;
16706
16707 *t++ = 0;
16708 }
16709 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16710 int x[] = {25, 17};
16711 const int *foo = &x[0];
16712 ++foo;
16713 }
16714 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16715 typedef const int *iptr;
16716 iptr p = 0;
16717 ++p;
16718 }
16719 { /* AIX XL C 1.02.0.0 rejects this saying
16720 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16721 struct s { int j; const int *ap[3]; };
16722 struct s *b; b->j = 5;
16723 }
16724 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16725 const int foo = 10;
16726 }
16727#endif
16728
16729 ;
16730 return 0;
16731}
16732_ACEOF
16733rm -f conftest.$ac_objext
16734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16735 (eval $ac_compile) 2>conftest.er1
a848cd7e 16736 ac_status=$?
ac1cb8d3
VS
16737 grep -v '^ *+' conftest.er1 >conftest.err
16738 rm -f conftest.er1
16739 cat conftest.err >&5
a848cd7e
SC
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } &&
3565d135
RR
16742 { ac_try='test -z "$ac_c_werror_flag"
16743 || test ! -s conftest.err'
ac1cb8d3
VS
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; } &&
16749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16755 ac_cv_c_const=yes
16756else
16757 echo "$as_me: failed program was:" >&5
16758sed 's/^/| /' conftest.$ac_ext >&5
16759
16760ac_cv_c_const=no
16761fi
ac1cb8d3 16762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16763fi
16764echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16765echo "${ECHO_T}$ac_cv_c_const" >&6
16766if test $ac_cv_c_const = no; then
16767
16768cat >>confdefs.h <<\_ACEOF
16769#define const
16770_ACEOF
16771
16772fi
16773
16774echo "$as_me:$LINENO: checking for inline" >&5
16775echo $ECHO_N "checking for inline... $ECHO_C" >&6
16776if test "${ac_cv_c_inline+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16778else
16779 ac_cv_c_inline=no
16780for ac_kw in inline __inline__ __inline; do
16781 cat >conftest.$ac_ext <<_ACEOF
16782/* confdefs.h. */
16783_ACEOF
16784cat confdefs.h >>conftest.$ac_ext
16785cat >>conftest.$ac_ext <<_ACEOF
16786/* end confdefs.h. */
16787#ifndef __cplusplus
16788typedef int foo_t;
16789static $ac_kw foo_t static_foo () {return 0; }
16790$ac_kw foo_t foo () {return 0; }
16791#endif
16792
16793_ACEOF
16794rm -f conftest.$ac_objext
16795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16796 (eval $ac_compile) 2>conftest.er1
a848cd7e 16797 ac_status=$?
ac1cb8d3
VS
16798 grep -v '^ *+' conftest.er1 >conftest.err
16799 rm -f conftest.er1
16800 cat conftest.err >&5
a848cd7e
SC
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
3565d135
RR
16803 { ac_try='test -z "$ac_c_werror_flag"
16804 || test ! -s conftest.err'
ac1cb8d3
VS
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; } &&
16810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; }; then
16816 ac_cv_c_inline=$ac_kw; break
16817else
16818 echo "$as_me: failed program was:" >&5
16819sed 's/^/| /' conftest.$ac_ext >&5
16820
16821fi
ac1cb8d3 16822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16823done
16824
16825fi
16826echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16827echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16828
16829
a848cd7e
SC
16830case $ac_cv_c_inline in
16831 inline | yes) ;;
ac1cb8d3
VS
16832 *)
16833 case $ac_cv_c_inline in
16834 no) ac_val=;;
16835 *) ac_val=$ac_cv_c_inline;;
16836 esac
16837 cat >>confdefs.h <<_ACEOF
16838#ifndef __cplusplus
16839#define inline $ac_val
16840#endif
de59c161 16841_ACEOF
ac1cb8d3 16842 ;;
a848cd7e
SC
16843esac
16844
16845
16846echo "$as_me:$LINENO: checking for char" >&5
16847echo $ECHO_N "checking for char... $ECHO_C" >&6
16848if test "${ac_cv_type_char+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16850else
16851 cat >conftest.$ac_ext <<_ACEOF
16852/* confdefs.h. */
16853_ACEOF
16854cat confdefs.h >>conftest.$ac_ext
16855cat >>conftest.$ac_ext <<_ACEOF
16856/* end confdefs.h. */
16857$ac_includes_default
16858int
16859main ()
16860{
16861if ((char *) 0)
16862 return 0;
16863if (sizeof (char))
16864 return 0;
16865 ;
16866 return 0;
16867}
16868_ACEOF
16869rm -f conftest.$ac_objext
16870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16871 (eval $ac_compile) 2>conftest.er1
a848cd7e 16872 ac_status=$?
ac1cb8d3
VS
16873 grep -v '^ *+' conftest.er1 >conftest.err
16874 rm -f conftest.er1
16875 cat conftest.err >&5
a848cd7e
SC
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); } &&
3565d135
RR
16878 { ac_try='test -z "$ac_c_werror_flag"
16879 || test ! -s conftest.err'
ac1cb8d3
VS
16880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; } &&
16885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16888 ac_status=$?
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891 ac_cv_type_char=yes
16892else
16893 echo "$as_me: failed program was:" >&5
16894sed 's/^/| /' conftest.$ac_ext >&5
16895
16896ac_cv_type_char=no
16897fi
ac1cb8d3 16898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16899fi
16900echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16901echo "${ECHO_T}$ac_cv_type_char" >&6
16902
16903echo "$as_me:$LINENO: checking size of char" >&5
16904echo $ECHO_N "checking size of char... $ECHO_C" >&6
16905if test "${ac_cv_sizeof_char+set}" = set; then
16906 echo $ECHO_N "(cached) $ECHO_C" >&6
16907else
16908 if test "$ac_cv_type_char" = yes; then
16909 # The cast to unsigned long works around a bug in the HP C Compiler
16910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16912 # This bug is HP SR number 8606223364.
16913 if test "$cross_compiling" = yes; then
16914 # Depending upon the size, compute the lo and hi bounds.
16915cat >conftest.$ac_ext <<_ACEOF
16916/* confdefs.h. */
16917_ACEOF
16918cat confdefs.h >>conftest.$ac_ext
16919cat >>conftest.$ac_ext <<_ACEOF
16920/* end confdefs.h. */
16921$ac_includes_default
16922int
16923main ()
16924{
16925static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16926test_array [0] = 0
16927
16928 ;
16929 return 0;
16930}
16931_ACEOF
16932rm -f conftest.$ac_objext
16933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16934 (eval $ac_compile) 2>conftest.er1
a848cd7e 16935 ac_status=$?
ac1cb8d3
VS
16936 grep -v '^ *+' conftest.er1 >conftest.err
16937 rm -f conftest.er1
16938 cat conftest.err >&5
a848cd7e
SC
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } &&
3565d135
RR
16941 { ac_try='test -z "$ac_c_werror_flag"
16942 || test ! -s conftest.err'
ac1cb8d3
VS
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; } &&
16948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_lo=0 ac_mid=0
16955 while :; do
16956 cat >conftest.$ac_ext <<_ACEOF
16957/* confdefs.h. */
16958_ACEOF
16959cat confdefs.h >>conftest.$ac_ext
16960cat >>conftest.$ac_ext <<_ACEOF
16961/* end confdefs.h. */
16962$ac_includes_default
16963int
16964main ()
16965{
16966static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16967test_array [0] = 0
16968
16969 ;
16970 return 0;
16971}
16972_ACEOF
16973rm -f conftest.$ac_objext
16974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16975 (eval $ac_compile) 2>conftest.er1
a848cd7e 16976 ac_status=$?
ac1cb8d3
VS
16977 grep -v '^ *+' conftest.er1 >conftest.err
16978 rm -f conftest.er1
16979 cat conftest.err >&5
a848cd7e
SC
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
3565d135
RR
16982 { ac_try='test -z "$ac_c_werror_flag"
16983 || test ! -s conftest.err'
ac1cb8d3
VS
16984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16986 ac_status=$?
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; } &&
16989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995 ac_hi=$ac_mid; break
16996else
16997 echo "$as_me: failed program was:" >&5
16998sed 's/^/| /' conftest.$ac_ext >&5
16999
17000ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17001 if test $ac_lo -le $ac_mid; then
17002 ac_lo= ac_hi=
17003 break
17004 fi
17005 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17006fi
ac1cb8d3 17007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17008 done
17009else
17010 echo "$as_me: failed program was:" >&5
17011sed 's/^/| /' conftest.$ac_ext >&5
17012
17013cat >conftest.$ac_ext <<_ACEOF
17014/* confdefs.h. */
17015_ACEOF
17016cat confdefs.h >>conftest.$ac_ext
17017cat >>conftest.$ac_ext <<_ACEOF
17018/* end confdefs.h. */
17019$ac_includes_default
17020int
17021main ()
17022{
17023static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17024test_array [0] = 0
17025
17026 ;
17027 return 0;
17028}
17029_ACEOF
17030rm -f conftest.$ac_objext
17031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17032 (eval $ac_compile) 2>conftest.er1
a848cd7e 17033 ac_status=$?
ac1cb8d3
VS
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
a848cd7e
SC
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
3565d135
RR
17039 { ac_try='test -z "$ac_c_werror_flag"
17040 || test ! -s conftest.err'
ac1cb8d3
VS
17041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17042 (eval $ac_try) 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; } &&
17046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; }; then
17052 ac_hi=-1 ac_mid=-1
17053 while :; do
17054 cat >conftest.$ac_ext <<_ACEOF
17055/* confdefs.h. */
17056_ACEOF
17057cat confdefs.h >>conftest.$ac_ext
17058cat >>conftest.$ac_ext <<_ACEOF
17059/* end confdefs.h. */
17060$ac_includes_default
17061int
17062main ()
17063{
17064static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17065test_array [0] = 0
17066
17067 ;
17068 return 0;
17069}
17070_ACEOF
17071rm -f conftest.$ac_objext
17072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17073 (eval $ac_compile) 2>conftest.er1
a848cd7e 17074 ac_status=$?
ac1cb8d3
VS
17075 grep -v '^ *+' conftest.er1 >conftest.err
17076 rm -f conftest.er1
17077 cat conftest.err >&5
a848cd7e
SC
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
3565d135
RR
17080 { ac_try='test -z "$ac_c_werror_flag"
17081 || test ! -s conftest.err'
ac1cb8d3
VS
17082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083 (eval $ac_try) 2>&5
17084 ac_status=$?
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; } &&
17087 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089 (eval $ac_try) 2>&5
17090 ac_status=$?
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; }; then
17093 ac_lo=$ac_mid; break
17094else
17095 echo "$as_me: failed program was:" >&5
17096sed 's/^/| /' conftest.$ac_ext >&5
17097
17098ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17099 if test $ac_mid -le $ac_hi; then
17100 ac_lo= ac_hi=
17101 break
17102 fi
17103 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17104fi
ac1cb8d3 17105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17106 done
17107else
17108 echo "$as_me: failed program was:" >&5
17109sed 's/^/| /' conftest.$ac_ext >&5
17110
17111ac_lo= ac_hi=
17112fi
ac1cb8d3 17113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17114fi
ac1cb8d3 17115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17116# Binary search between lo and hi bounds.
17117while test "x$ac_lo" != "x$ac_hi"; do
17118 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17119 cat >conftest.$ac_ext <<_ACEOF
17120/* confdefs.h. */
17121_ACEOF
17122cat confdefs.h >>conftest.$ac_ext
17123cat >>conftest.$ac_ext <<_ACEOF
17124/* end confdefs.h. */
17125$ac_includes_default
17126int
17127main ()
17128{
17129static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17130test_array [0] = 0
17131
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext
17137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17138 (eval $ac_compile) 2>conftest.er1
a848cd7e 17139 ac_status=$?
ac1cb8d3
VS
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
a848cd7e
SC
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
3565d135
RR
17145 { ac_try='test -z "$ac_c_werror_flag"
17146 || test ! -s conftest.err'
ac1cb8d3
VS
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 ac_hi=$ac_mid
17159else
17160 echo "$as_me: failed program was:" >&5
17161sed 's/^/| /' conftest.$ac_ext >&5
17162
17163ac_lo=`expr '(' $ac_mid ')' + 1`
17164fi
ac1cb8d3 17165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17166done
17167case $ac_lo in
17168?*) ac_cv_sizeof_char=$ac_lo;;
17169'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17170See \`config.log' for more details." >&5
17171echo "$as_me: error: cannot compute sizeof (char), 77
17172See \`config.log' for more details." >&2;}
17173 { (exit 1); exit 1; }; } ;;
17174esac
17175else
17176 if test "$cross_compiling" = yes; then
3565d135
RR
17177 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17178See \`config.log' for more details." >&5
17179echo "$as_me: error: cannot run test program while cross compiling
17180See \`config.log' for more details." >&2;}
a848cd7e
SC
17181 { (exit 1); exit 1; }; }
17182else
17183 cat >conftest.$ac_ext <<_ACEOF
17184/* confdefs.h. */
17185_ACEOF
17186cat confdefs.h >>conftest.$ac_ext
17187cat >>conftest.$ac_ext <<_ACEOF
17188/* end confdefs.h. */
17189$ac_includes_default
17190long longval () { return (long) (sizeof (char)); }
17191unsigned long ulongval () { return (long) (sizeof (char)); }
17192#include <stdio.h>
17193#include <stdlib.h>
17194int
17195main ()
17196{
17197
17198 FILE *f = fopen ("conftest.val", "w");
17199 if (! f)
17200 exit (1);
17201 if (((long) (sizeof (char))) < 0)
17202 {
17203 long i = longval ();
17204 if (i != ((long) (sizeof (char))))
17205 exit (1);
17206 fprintf (f, "%ld\n", i);
17207 }
17208 else
17209 {
17210 unsigned long i = ulongval ();
17211 if (i != ((long) (sizeof (char))))
17212 exit (1);
17213 fprintf (f, "%lu\n", i);
17214 }
17215 exit (ferror (f) || fclose (f) != 0);
17216
17217 ;
17218 return 0;
17219}
17220_ACEOF
17221rm -f conftest$ac_exeext
17222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17223 (eval $ac_link) 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17232 ac_cv_sizeof_char=`cat conftest.val`
17233else
17234 echo "$as_me: program exited with status $ac_status" >&5
17235echo "$as_me: failed program was:" >&5
17236sed 's/^/| /' conftest.$ac_ext >&5
17237
17238( exit $ac_status )
17239{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17240See \`config.log' for more details." >&5
17241echo "$as_me: error: cannot compute sizeof (char), 77
17242See \`config.log' for more details." >&2;}
17243 { (exit 1); exit 1; }; }
17244fi
ac1cb8d3 17245rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17246fi
17247fi
17248rm -f conftest.val
17249else
17250 ac_cv_sizeof_char=0
17251fi
17252fi
17253echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17254echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17255cat >>confdefs.h <<_ACEOF
17256#define SIZEOF_CHAR $ac_cv_sizeof_char
17257_ACEOF
17258
17259
17260echo "$as_me:$LINENO: checking for short" >&5
17261echo $ECHO_N "checking for short... $ECHO_C" >&6
17262if test "${ac_cv_type_short+set}" = set; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17264else
17265 cat >conftest.$ac_ext <<_ACEOF
17266/* confdefs.h. */
17267_ACEOF
17268cat confdefs.h >>conftest.$ac_ext
17269cat >>conftest.$ac_ext <<_ACEOF
17270/* end confdefs.h. */
17271$ac_includes_default
17272int
17273main ()
17274{
17275if ((short *) 0)
17276 return 0;
17277if (sizeof (short))
17278 return 0;
17279 ;
17280 return 0;
17281}
17282_ACEOF
17283rm -f conftest.$ac_objext
17284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17285 (eval $ac_compile) 2>conftest.er1
a848cd7e 17286 ac_status=$?
ac1cb8d3
VS
17287 grep -v '^ *+' conftest.er1 >conftest.err
17288 rm -f conftest.er1
17289 cat conftest.err >&5
a848cd7e
SC
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } &&
3565d135
RR
17292 { ac_try='test -z "$ac_c_werror_flag"
17293 || test ! -s conftest.err'
ac1cb8d3
VS
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 ac_cv_type_short=yes
17306else
17307 echo "$as_me: failed program was:" >&5
17308sed 's/^/| /' conftest.$ac_ext >&5
17309
17310ac_cv_type_short=no
17311fi
ac1cb8d3 17312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17313fi
17314echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17315echo "${ECHO_T}$ac_cv_type_short" >&6
17316
17317echo "$as_me:$LINENO: checking size of short" >&5
17318echo $ECHO_N "checking size of short... $ECHO_C" >&6
17319if test "${ac_cv_sizeof_short+set}" = set; then
17320 echo $ECHO_N "(cached) $ECHO_C" >&6
17321else
17322 if test "$ac_cv_type_short" = yes; then
17323 # The cast to unsigned long works around a bug in the HP C Compiler
17324 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17325 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17326 # This bug is HP SR number 8606223364.
17327 if test "$cross_compiling" = yes; then
17328 # Depending upon the size, compute the lo and hi bounds.
17329cat >conftest.$ac_ext <<_ACEOF
17330/* confdefs.h. */
17331_ACEOF
17332cat confdefs.h >>conftest.$ac_ext
17333cat >>conftest.$ac_ext <<_ACEOF
17334/* end confdefs.h. */
17335$ac_includes_default
17336int
17337main ()
17338{
17339static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17340test_array [0] = 0
17341
17342 ;
17343 return 0;
17344}
17345_ACEOF
17346rm -f conftest.$ac_objext
17347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17348 (eval $ac_compile) 2>conftest.er1
a848cd7e 17349 ac_status=$?
ac1cb8d3
VS
17350 grep -v '^ *+' conftest.er1 >conftest.err
17351 rm -f conftest.er1
17352 cat conftest.err >&5
a848cd7e
SC
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
3565d135
RR
17355 { ac_try='test -z "$ac_c_werror_flag"
17356 || test ! -s conftest.err'
ac1cb8d3
VS
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 ac_lo=0 ac_mid=0
17369 while :; do
17370 cat >conftest.$ac_ext <<_ACEOF
17371/* confdefs.h. */
17372_ACEOF
17373cat confdefs.h >>conftest.$ac_ext
17374cat >>conftest.$ac_ext <<_ACEOF
17375/* end confdefs.h. */
17376$ac_includes_default
17377int
17378main ()
17379{
17380static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17381test_array [0] = 0
17382
17383 ;
17384 return 0;
17385}
17386_ACEOF
17387rm -f conftest.$ac_objext
17388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17389 (eval $ac_compile) 2>conftest.er1
a848cd7e 17390 ac_status=$?
ac1cb8d3
VS
17391 grep -v '^ *+' conftest.er1 >conftest.err
17392 rm -f conftest.er1
17393 cat conftest.err >&5
a848cd7e
SC
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
3565d135
RR
17396 { ac_try='test -z "$ac_c_werror_flag"
17397 || test ! -s conftest.err'
ac1cb8d3
VS
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 ac_hi=$ac_mid; break
17410else
17411 echo "$as_me: failed program was:" >&5
17412sed 's/^/| /' conftest.$ac_ext >&5
17413
17414ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17415 if test $ac_lo -le $ac_mid; then
17416 ac_lo= ac_hi=
17417 break
17418 fi
17419 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17420fi
ac1cb8d3 17421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17422 done
17423else
17424 echo "$as_me: failed program was:" >&5
17425sed 's/^/| /' conftest.$ac_ext >&5
17426
17427cat >conftest.$ac_ext <<_ACEOF
17428/* confdefs.h. */
17429_ACEOF
17430cat confdefs.h >>conftest.$ac_ext
17431cat >>conftest.$ac_ext <<_ACEOF
17432/* end confdefs.h. */
17433$ac_includes_default
17434int
17435main ()
17436{
17437static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17438test_array [0] = 0
17439
17440 ;
17441 return 0;
17442}
17443_ACEOF
17444rm -f conftest.$ac_objext
17445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17446 (eval $ac_compile) 2>conftest.er1
a848cd7e 17447 ac_status=$?
ac1cb8d3
VS
17448 grep -v '^ *+' conftest.er1 >conftest.err
17449 rm -f conftest.er1
17450 cat conftest.err >&5
a848cd7e
SC
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
3565d135
RR
17453 { ac_try='test -z "$ac_c_werror_flag"
17454 || test ! -s conftest.err'
ac1cb8d3
VS
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17457 ac_status=$?
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } &&
17460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17466 ac_hi=-1 ac_mid=-1
17467 while :; do
17468 cat >conftest.$ac_ext <<_ACEOF
17469/* confdefs.h. */
17470_ACEOF
17471cat confdefs.h >>conftest.$ac_ext
17472cat >>conftest.$ac_ext <<_ACEOF
17473/* end confdefs.h. */
17474$ac_includes_default
17475int
17476main ()
17477{
17478static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17479test_array [0] = 0
17480
17481 ;
17482 return 0;
17483}
17484_ACEOF
17485rm -f conftest.$ac_objext
17486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17487 (eval $ac_compile) 2>conftest.er1
a848cd7e 17488 ac_status=$?
ac1cb8d3
VS
17489 grep -v '^ *+' conftest.er1 >conftest.err
17490 rm -f conftest.er1
17491 cat conftest.err >&5
a848cd7e
SC
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
3565d135
RR
17494 { ac_try='test -z "$ac_c_werror_flag"
17495 || test ! -s conftest.err'
ac1cb8d3
VS
17496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497 (eval $ac_try) 2>&5
17498 ac_status=$?
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; } &&
17501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; }; then
17507 ac_lo=$ac_mid; break
17508else
17509 echo "$as_me: failed program was:" >&5
17510sed 's/^/| /' conftest.$ac_ext >&5
17511
17512ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17513 if test $ac_mid -le $ac_hi; then
17514 ac_lo= ac_hi=
17515 break
17516 fi
17517 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17518fi
ac1cb8d3 17519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17520 done
17521else
17522 echo "$as_me: failed program was:" >&5
17523sed 's/^/| /' conftest.$ac_ext >&5
17524
17525ac_lo= ac_hi=
17526fi
ac1cb8d3 17527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17528fi
ac1cb8d3 17529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17530# Binary search between lo and hi bounds.
17531while test "x$ac_lo" != "x$ac_hi"; do
17532 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17533 cat >conftest.$ac_ext <<_ACEOF
17534/* confdefs.h. */
17535_ACEOF
17536cat confdefs.h >>conftest.$ac_ext
17537cat >>conftest.$ac_ext <<_ACEOF
17538/* end confdefs.h. */
17539$ac_includes_default
17540int
17541main ()
17542{
17543static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17544test_array [0] = 0
17545
17546 ;
17547 return 0;
17548}
17549_ACEOF
17550rm -f conftest.$ac_objext
17551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17552 (eval $ac_compile) 2>conftest.er1
a848cd7e 17553 ac_status=$?
ac1cb8d3
VS
17554 grep -v '^ *+' conftest.er1 >conftest.err
17555 rm -f conftest.er1
17556 cat conftest.err >&5
a848cd7e
SC
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
3565d135
RR
17559 { ac_try='test -z "$ac_c_werror_flag"
17560 || test ! -s conftest.err'
ac1cb8d3
VS
17561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562 (eval $ac_try) 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; } &&
17566 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; }; then
17572 ac_hi=$ac_mid
17573else
17574 echo "$as_me: failed program was:" >&5
17575sed 's/^/| /' conftest.$ac_ext >&5
17576
17577ac_lo=`expr '(' $ac_mid ')' + 1`
17578fi
ac1cb8d3 17579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17580done
17581case $ac_lo in
17582?*) ac_cv_sizeof_short=$ac_lo;;
17583'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17584See \`config.log' for more details." >&5
17585echo "$as_me: error: cannot compute sizeof (short), 77
17586See \`config.log' for more details." >&2;}
17587 { (exit 1); exit 1; }; } ;;
17588esac
17589else
17590 if test "$cross_compiling" = yes; then
3565d135
RR
17591 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17592See \`config.log' for more details." >&5
17593echo "$as_me: error: cannot run test program while cross compiling
17594See \`config.log' for more details." >&2;}
a848cd7e
SC
17595 { (exit 1); exit 1; }; }
17596else
17597 cat >conftest.$ac_ext <<_ACEOF
17598/* confdefs.h. */
17599_ACEOF
17600cat confdefs.h >>conftest.$ac_ext
17601cat >>conftest.$ac_ext <<_ACEOF
17602/* end confdefs.h. */
17603$ac_includes_default
17604long longval () { return (long) (sizeof (short)); }
17605unsigned long ulongval () { return (long) (sizeof (short)); }
17606#include <stdio.h>
17607#include <stdlib.h>
17608int
17609main ()
17610{
17611
17612 FILE *f = fopen ("conftest.val", "w");
17613 if (! f)
17614 exit (1);
17615 if (((long) (sizeof (short))) < 0)
17616 {
17617 long i = longval ();
17618 if (i != ((long) (sizeof (short))))
17619 exit (1);
17620 fprintf (f, "%ld\n", i);
17621 }
17622 else
17623 {
17624 unsigned long i = ulongval ();
17625 if (i != ((long) (sizeof (short))))
17626 exit (1);
17627 fprintf (f, "%lu\n", i);
17628 }
17629 exit (ferror (f) || fclose (f) != 0);
17630
17631 ;
17632 return 0;
17633}
17634_ACEOF
17635rm -f conftest$ac_exeext
17636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17637 (eval $ac_link) 2>&5
17638 ac_status=$?
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_sizeof_short=`cat conftest.val`
17647else
17648 echo "$as_me: program exited with status $ac_status" >&5
17649echo "$as_me: failed program was:" >&5
17650sed 's/^/| /' conftest.$ac_ext >&5
17651
17652( exit $ac_status )
17653{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17654See \`config.log' for more details." >&5
17655echo "$as_me: error: cannot compute sizeof (short), 77
17656See \`config.log' for more details." >&2;}
17657 { (exit 1); exit 1; }; }
17658fi
ac1cb8d3 17659rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17660fi
17661fi
17662rm -f conftest.val
17663else
17664 ac_cv_sizeof_short=0
17665fi
17666fi
17667echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17668echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17669cat >>confdefs.h <<_ACEOF
17670#define SIZEOF_SHORT $ac_cv_sizeof_short
17671_ACEOF
17672
17673
17674echo "$as_me:$LINENO: checking for void *" >&5
17675echo $ECHO_N "checking for void *... $ECHO_C" >&6
17676if test "${ac_cv_type_void_p+set}" = set; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17678else
17679 cat >conftest.$ac_ext <<_ACEOF
17680/* confdefs.h. */
17681_ACEOF
17682cat confdefs.h >>conftest.$ac_ext
17683cat >>conftest.$ac_ext <<_ACEOF
17684/* end confdefs.h. */
17685$ac_includes_default
17686int
17687main ()
17688{
17689if ((void * *) 0)
17690 return 0;
17691if (sizeof (void *))
17692 return 0;
17693 ;
17694 return 0;
17695}
17696_ACEOF
17697rm -f conftest.$ac_objext
17698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17699 (eval $ac_compile) 2>conftest.er1
a848cd7e 17700 ac_status=$?
ac1cb8d3
VS
17701 grep -v '^ *+' conftest.er1 >conftest.err
17702 rm -f conftest.er1
17703 cat conftest.err >&5
a848cd7e
SC
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } &&
3565d135
RR
17706 { ac_try='test -z "$ac_c_werror_flag"
17707 || test ! -s conftest.err'
ac1cb8d3
VS
17708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17709 (eval $ac_try) 2>&5
17710 ac_status=$?
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); }; } &&
17713 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; }; then
17719 ac_cv_type_void_p=yes
17720else
17721 echo "$as_me: failed program was:" >&5
17722sed 's/^/| /' conftest.$ac_ext >&5
17723
17724ac_cv_type_void_p=no
17725fi
ac1cb8d3 17726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17727fi
17728echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17729echo "${ECHO_T}$ac_cv_type_void_p" >&6
17730
17731echo "$as_me:$LINENO: checking size of void *" >&5
17732echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17733if test "${ac_cv_sizeof_void_p+set}" = set; then
17734 echo $ECHO_N "(cached) $ECHO_C" >&6
17735else
17736 if test "$ac_cv_type_void_p" = yes; then
17737 # The cast to unsigned long works around a bug in the HP C Compiler
17738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17740 # This bug is HP SR number 8606223364.
17741 if test "$cross_compiling" = yes; then
17742 # Depending upon the size, compute the lo and hi bounds.
17743cat >conftest.$ac_ext <<_ACEOF
17744/* confdefs.h. */
17745_ACEOF
17746cat confdefs.h >>conftest.$ac_ext
17747cat >>conftest.$ac_ext <<_ACEOF
17748/* end confdefs.h. */
17749$ac_includes_default
17750int
17751main ()
17752{
17753static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17754test_array [0] = 0
17755
17756 ;
17757 return 0;
17758}
17759_ACEOF
17760rm -f conftest.$ac_objext
17761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17762 (eval $ac_compile) 2>conftest.er1
a848cd7e 17763 ac_status=$?
ac1cb8d3
VS
17764 grep -v '^ *+' conftest.er1 >conftest.err
17765 rm -f conftest.er1
17766 cat conftest.err >&5
a848cd7e
SC
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
3565d135
RR
17769 { ac_try='test -z "$ac_c_werror_flag"
17770 || test ! -s conftest.err'
ac1cb8d3
VS
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; } &&
17776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
17782 ac_lo=0 ac_mid=0
17783 while :; do
17784 cat >conftest.$ac_ext <<_ACEOF
17785/* confdefs.h. */
17786_ACEOF
17787cat confdefs.h >>conftest.$ac_ext
17788cat >>conftest.$ac_ext <<_ACEOF
17789/* end confdefs.h. */
17790$ac_includes_default
17791int
17792main ()
17793{
17794static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17795test_array [0] = 0
17796
17797 ;
17798 return 0;
17799}
17800_ACEOF
17801rm -f conftest.$ac_objext
17802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17803 (eval $ac_compile) 2>conftest.er1
a848cd7e 17804 ac_status=$?
ac1cb8d3
VS
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
a848cd7e
SC
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
3565d135
RR
17810 { ac_try='test -z "$ac_c_werror_flag"
17811 || test ! -s conftest.err'
ac1cb8d3
VS
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17823 ac_hi=$ac_mid; break
17824else
17825 echo "$as_me: failed program was:" >&5
17826sed 's/^/| /' conftest.$ac_ext >&5
17827
17828ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17829 if test $ac_lo -le $ac_mid; then
17830 ac_lo= ac_hi=
17831 break
17832 fi
17833 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17834fi
ac1cb8d3 17835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17836 done
17837else
17838 echo "$as_me: failed program was:" >&5
17839sed 's/^/| /' conftest.$ac_ext >&5
17840
17841cat >conftest.$ac_ext <<_ACEOF
17842/* confdefs.h. */
17843_ACEOF
17844cat confdefs.h >>conftest.$ac_ext
17845cat >>conftest.$ac_ext <<_ACEOF
17846/* end confdefs.h. */
17847$ac_includes_default
17848int
17849main ()
17850{
17851static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17852test_array [0] = 0
17853
17854 ;
17855 return 0;
17856}
17857_ACEOF
17858rm -f conftest.$ac_objext
17859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17860 (eval $ac_compile) 2>conftest.er1
a848cd7e 17861 ac_status=$?
ac1cb8d3
VS
17862 grep -v '^ *+' conftest.er1 >conftest.err
17863 rm -f conftest.er1
17864 cat conftest.err >&5
a848cd7e
SC
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } &&
3565d135
RR
17867 { ac_try='test -z "$ac_c_werror_flag"
17868 || test ! -s conftest.err'
ac1cb8d3
VS
17869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870 (eval $ac_try) 2>&5
17871 ac_status=$?
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); }; } &&
17874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876 (eval $ac_try) 2>&5
17877 ac_status=$?
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; }; then
17880 ac_hi=-1 ac_mid=-1
17881 while :; do
17882 cat >conftest.$ac_ext <<_ACEOF
17883/* confdefs.h. */
17884_ACEOF
17885cat confdefs.h >>conftest.$ac_ext
17886cat >>conftest.$ac_ext <<_ACEOF
17887/* end confdefs.h. */
17888$ac_includes_default
17889int
17890main ()
17891{
17892static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17893test_array [0] = 0
17894
17895 ;
17896 return 0;
17897}
17898_ACEOF
17899rm -f conftest.$ac_objext
17900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17901 (eval $ac_compile) 2>conftest.er1
a848cd7e 17902 ac_status=$?
ac1cb8d3
VS
17903 grep -v '^ *+' conftest.er1 >conftest.err
17904 rm -f conftest.er1
17905 cat conftest.err >&5
a848cd7e
SC
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } &&
3565d135
RR
17908 { ac_try='test -z "$ac_c_werror_flag"
17909 || test ! -s conftest.err'
ac1cb8d3
VS
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; } &&
17915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917 (eval $ac_try) 2>&5
17918 ac_status=$?
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; }; then
17921 ac_lo=$ac_mid; break
17922else
17923 echo "$as_me: failed program was:" >&5
17924sed 's/^/| /' conftest.$ac_ext >&5
17925
17926ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17927 if test $ac_mid -le $ac_hi; then
17928 ac_lo= ac_hi=
17929 break
17930 fi
17931 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17932fi
ac1cb8d3 17933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17934 done
17935else
17936 echo "$as_me: failed program was:" >&5
17937sed 's/^/| /' conftest.$ac_ext >&5
17938
17939ac_lo= ac_hi=
17940fi
ac1cb8d3 17941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17942fi
ac1cb8d3 17943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17944# Binary search between lo and hi bounds.
17945while test "x$ac_lo" != "x$ac_hi"; do
17946 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17947 cat >conftest.$ac_ext <<_ACEOF
17948/* confdefs.h. */
17949_ACEOF
17950cat confdefs.h >>conftest.$ac_ext
17951cat >>conftest.$ac_ext <<_ACEOF
17952/* end confdefs.h. */
17953$ac_includes_default
17954int
17955main ()
17956{
17957static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17958test_array [0] = 0
17959
17960 ;
17961 return 0;
17962}
17963_ACEOF
17964rm -f conftest.$ac_objext
17965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17966 (eval $ac_compile) 2>conftest.er1
a848cd7e 17967 ac_status=$?
ac1cb8d3
VS
17968 grep -v '^ *+' conftest.er1 >conftest.err
17969 rm -f conftest.er1
17970 cat conftest.err >&5
a848cd7e
SC
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } &&
3565d135
RR
17973 { ac_try='test -z "$ac_c_werror_flag"
17974 || test ! -s conftest.err'
ac1cb8d3
VS
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; } &&
17980 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17983 ac_status=$?
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; }; then
17986 ac_hi=$ac_mid
17987else
17988 echo "$as_me: failed program was:" >&5
17989sed 's/^/| /' conftest.$ac_ext >&5
17990
17991ac_lo=`expr '(' $ac_mid ')' + 1`
17992fi
ac1cb8d3 17993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17994done
17995case $ac_lo in
17996?*) ac_cv_sizeof_void_p=$ac_lo;;
17997'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17998See \`config.log' for more details." >&5
17999echo "$as_me: error: cannot compute sizeof (void *), 77
18000See \`config.log' for more details." >&2;}
18001 { (exit 1); exit 1; }; } ;;
18002esac
18003else
18004 if test "$cross_compiling" = yes; then
3565d135
RR
18005 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18006See \`config.log' for more details." >&5
18007echo "$as_me: error: cannot run test program while cross compiling
18008See \`config.log' for more details." >&2;}
a848cd7e
SC
18009 { (exit 1); exit 1; }; }
18010else
18011 cat >conftest.$ac_ext <<_ACEOF
18012/* confdefs.h. */
18013_ACEOF
18014cat confdefs.h >>conftest.$ac_ext
18015cat >>conftest.$ac_ext <<_ACEOF
18016/* end confdefs.h. */
18017$ac_includes_default
18018long longval () { return (long) (sizeof (void *)); }
18019unsigned long ulongval () { return (long) (sizeof (void *)); }
18020#include <stdio.h>
18021#include <stdlib.h>
18022int
18023main ()
18024{
18025
18026 FILE *f = fopen ("conftest.val", "w");
18027 if (! f)
18028 exit (1);
18029 if (((long) (sizeof (void *))) < 0)
18030 {
18031 long i = longval ();
18032 if (i != ((long) (sizeof (void *))))
18033 exit (1);
18034 fprintf (f, "%ld\n", i);
18035 }
18036 else
18037 {
18038 unsigned long i = ulongval ();
18039 if (i != ((long) (sizeof (void *))))
18040 exit (1);
18041 fprintf (f, "%lu\n", i);
18042 }
18043 exit (ferror (f) || fclose (f) != 0);
18044
18045 ;
18046 return 0;
18047}
18048_ACEOF
18049rm -f conftest$ac_exeext
18050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18051 (eval $ac_link) 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18060 ac_cv_sizeof_void_p=`cat conftest.val`
18061else
18062 echo "$as_me: program exited with status $ac_status" >&5
18063echo "$as_me: failed program was:" >&5
18064sed 's/^/| /' conftest.$ac_ext >&5
18065
18066( exit $ac_status )
18067{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18068See \`config.log' for more details." >&5
18069echo "$as_me: error: cannot compute sizeof (void *), 77
18070See \`config.log' for more details." >&2;}
18071 { (exit 1); exit 1; }; }
18072fi
ac1cb8d3 18073rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18074fi
18075fi
18076rm -f conftest.val
18077else
18078 ac_cv_sizeof_void_p=0
18079fi
18080fi
18081echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18082echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18083cat >>confdefs.h <<_ACEOF
18084#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18085_ACEOF
18086
18087
18088echo "$as_me:$LINENO: checking for int" >&5
18089echo $ECHO_N "checking for int... $ECHO_C" >&6
18090if test "${ac_cv_type_int+set}" = set; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18092else
18093 cat >conftest.$ac_ext <<_ACEOF
18094/* confdefs.h. */
18095_ACEOF
18096cat confdefs.h >>conftest.$ac_ext
18097cat >>conftest.$ac_ext <<_ACEOF
18098/* end confdefs.h. */
18099$ac_includes_default
18100int
18101main ()
18102{
18103if ((int *) 0)
18104 return 0;
18105if (sizeof (int))
18106 return 0;
18107 ;
18108 return 0;
18109}
18110_ACEOF
18111rm -f conftest.$ac_objext
18112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18113 (eval $ac_compile) 2>conftest.er1
a848cd7e 18114 ac_status=$?
ac1cb8d3
VS
18115 grep -v '^ *+' conftest.er1 >conftest.err
18116 rm -f conftest.er1
18117 cat conftest.err >&5
a848cd7e
SC
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } &&
3565d135
RR
18120 { ac_try='test -z "$ac_c_werror_flag"
18121 || test ! -s conftest.err'
ac1cb8d3
VS
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; } &&
18127 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129 (eval $ac_try) 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 ac_cv_type_int=yes
18134else
18135 echo "$as_me: failed program was:" >&5
18136sed 's/^/| /' conftest.$ac_ext >&5
18137
18138ac_cv_type_int=no
18139fi
ac1cb8d3 18140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18141fi
18142echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18143echo "${ECHO_T}$ac_cv_type_int" >&6
18144
18145echo "$as_me:$LINENO: checking size of int" >&5
18146echo $ECHO_N "checking size of int... $ECHO_C" >&6
18147if test "${ac_cv_sizeof_int+set}" = set; then
18148 echo $ECHO_N "(cached) $ECHO_C" >&6
18149else
18150 if test "$ac_cv_type_int" = yes; then
18151 # The cast to unsigned long works around a bug in the HP C Compiler
18152 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18153 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18154 # This bug is HP SR number 8606223364.
18155 if test "$cross_compiling" = yes; then
18156 # Depending upon the size, compute the lo and hi bounds.
18157cat >conftest.$ac_ext <<_ACEOF
18158/* confdefs.h. */
18159_ACEOF
18160cat confdefs.h >>conftest.$ac_ext
18161cat >>conftest.$ac_ext <<_ACEOF
18162/* end confdefs.h. */
18163$ac_includes_default
18164int
18165main ()
18166{
18167static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18168test_array [0] = 0
18169
18170 ;
18171 return 0;
18172}
18173_ACEOF
18174rm -f conftest.$ac_objext
18175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18176 (eval $ac_compile) 2>conftest.er1
a848cd7e 18177 ac_status=$?
ac1cb8d3
VS
18178 grep -v '^ *+' conftest.er1 >conftest.err
18179 rm -f conftest.er1
18180 cat conftest.err >&5
a848cd7e
SC
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } &&
3565d135
RR
18183 { ac_try='test -z "$ac_c_werror_flag"
18184 || test ! -s conftest.err'
ac1cb8d3
VS
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; } &&
18190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 ac_lo=0 ac_mid=0
18197 while :; do
18198 cat >conftest.$ac_ext <<_ACEOF
18199/* confdefs.h. */
18200_ACEOF
18201cat confdefs.h >>conftest.$ac_ext
18202cat >>conftest.$ac_ext <<_ACEOF
18203/* end confdefs.h. */
18204$ac_includes_default
18205int
18206main ()
18207{
18208static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18209test_array [0] = 0
18210
18211 ;
18212 return 0;
18213}
18214_ACEOF
18215rm -f conftest.$ac_objext
18216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18217 (eval $ac_compile) 2>conftest.er1
a848cd7e 18218 ac_status=$?
ac1cb8d3
VS
18219 grep -v '^ *+' conftest.er1 >conftest.err
18220 rm -f conftest.er1
18221 cat conftest.err >&5
a848cd7e
SC
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
3565d135
RR
18224 { ac_try='test -z "$ac_c_werror_flag"
18225 || test ! -s conftest.err'
ac1cb8d3
VS
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18237 ac_hi=$ac_mid; break
18238else
18239 echo "$as_me: failed program was:" >&5
18240sed 's/^/| /' conftest.$ac_ext >&5
18241
18242ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18243 if test $ac_lo -le $ac_mid; then
18244 ac_lo= ac_hi=
18245 break
18246 fi
18247 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18248fi
ac1cb8d3 18249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18250 done
18251else
18252 echo "$as_me: failed program was:" >&5
18253sed 's/^/| /' conftest.$ac_ext >&5
18254
18255cat >conftest.$ac_ext <<_ACEOF
18256/* confdefs.h. */
18257_ACEOF
18258cat confdefs.h >>conftest.$ac_ext
18259cat >>conftest.$ac_ext <<_ACEOF
18260/* end confdefs.h. */
18261$ac_includes_default
18262int
18263main ()
18264{
18265static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18266test_array [0] = 0
18267
18268 ;
18269 return 0;
18270}
18271_ACEOF
18272rm -f conftest.$ac_objext
18273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18274 (eval $ac_compile) 2>conftest.er1
a848cd7e 18275 ac_status=$?
ac1cb8d3
VS
18276 grep -v '^ *+' conftest.er1 >conftest.err
18277 rm -f conftest.er1
18278 cat conftest.err >&5
a848cd7e
SC
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } &&
3565d135
RR
18281 { ac_try='test -z "$ac_c_werror_flag"
18282 || test ! -s conftest.err'
ac1cb8d3
VS
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; } &&
18288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
18294 ac_hi=-1 ac_mid=-1
18295 while :; do
18296 cat >conftest.$ac_ext <<_ACEOF
18297/* confdefs.h. */
18298_ACEOF
18299cat confdefs.h >>conftest.$ac_ext
18300cat >>conftest.$ac_ext <<_ACEOF
18301/* end confdefs.h. */
18302$ac_includes_default
18303int
18304main ()
18305{
18306static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18307test_array [0] = 0
18308
18309 ;
18310 return 0;
18311}
18312_ACEOF
18313rm -f conftest.$ac_objext
18314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18315 (eval $ac_compile) 2>conftest.er1
a848cd7e 18316 ac_status=$?
ac1cb8d3
VS
18317 grep -v '^ *+' conftest.er1 >conftest.err
18318 rm -f conftest.er1
18319 cat conftest.err >&5
a848cd7e
SC
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } &&
3565d135
RR
18322 { ac_try='test -z "$ac_c_werror_flag"
18323 || test ! -s conftest.err'
ac1cb8d3
VS
18324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; } &&
18329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; }; then
18335 ac_lo=$ac_mid; break
18336else
18337 echo "$as_me: failed program was:" >&5
18338sed 's/^/| /' conftest.$ac_ext >&5
18339
18340ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18341 if test $ac_mid -le $ac_hi; then
18342 ac_lo= ac_hi=
18343 break
18344 fi
18345 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18346fi
ac1cb8d3 18347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18348 done
18349else
18350 echo "$as_me: failed program was:" >&5
18351sed 's/^/| /' conftest.$ac_ext >&5
18352
18353ac_lo= ac_hi=
18354fi
ac1cb8d3 18355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18356fi
ac1cb8d3 18357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18358# Binary search between lo and hi bounds.
18359while test "x$ac_lo" != "x$ac_hi"; do
18360 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18361 cat >conftest.$ac_ext <<_ACEOF
18362/* confdefs.h. */
18363_ACEOF
18364cat confdefs.h >>conftest.$ac_ext
18365cat >>conftest.$ac_ext <<_ACEOF
18366/* end confdefs.h. */
18367$ac_includes_default
18368int
18369main ()
18370{
18371static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18372test_array [0] = 0
18373
18374 ;
18375 return 0;
18376}
18377_ACEOF
18378rm -f conftest.$ac_objext
18379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18380 (eval $ac_compile) 2>conftest.er1
a848cd7e 18381 ac_status=$?
ac1cb8d3
VS
18382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
a848cd7e
SC
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } &&
3565d135
RR
18387 { ac_try='test -z "$ac_c_werror_flag"
18388 || test ! -s conftest.err'
ac1cb8d3
VS
18389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390 (eval $ac_try) 2>&5
18391 ac_status=$?
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; } &&
18394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396 (eval $ac_try) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; }; then
18400 ac_hi=$ac_mid
18401else
18402 echo "$as_me: failed program was:" >&5
18403sed 's/^/| /' conftest.$ac_ext >&5
18404
18405ac_lo=`expr '(' $ac_mid ')' + 1`
18406fi
ac1cb8d3 18407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18408done
18409case $ac_lo in
18410?*) ac_cv_sizeof_int=$ac_lo;;
18411'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18412See \`config.log' for more details." >&5
18413echo "$as_me: error: cannot compute sizeof (int), 77
18414See \`config.log' for more details." >&2;}
18415 { (exit 1); exit 1; }; } ;;
18416esac
18417else
18418 if test "$cross_compiling" = yes; then
3565d135
RR
18419 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18420See \`config.log' for more details." >&5
18421echo "$as_me: error: cannot run test program while cross compiling
18422See \`config.log' for more details." >&2;}
a848cd7e
SC
18423 { (exit 1); exit 1; }; }
18424else
18425 cat >conftest.$ac_ext <<_ACEOF
18426/* confdefs.h. */
18427_ACEOF
18428cat confdefs.h >>conftest.$ac_ext
18429cat >>conftest.$ac_ext <<_ACEOF
18430/* end confdefs.h. */
18431$ac_includes_default
18432long longval () { return (long) (sizeof (int)); }
18433unsigned long ulongval () { return (long) (sizeof (int)); }
18434#include <stdio.h>
18435#include <stdlib.h>
18436int
18437main ()
18438{
18439
18440 FILE *f = fopen ("conftest.val", "w");
18441 if (! f)
18442 exit (1);
18443 if (((long) (sizeof (int))) < 0)
18444 {
18445 long i = longval ();
18446 if (i != ((long) (sizeof (int))))
18447 exit (1);
18448 fprintf (f, "%ld\n", i);
18449 }
18450 else
18451 {
18452 unsigned long i = ulongval ();
18453 if (i != ((long) (sizeof (int))))
18454 exit (1);
18455 fprintf (f, "%lu\n", i);
18456 }
18457 exit (ferror (f) || fclose (f) != 0);
18458
18459 ;
18460 return 0;
18461}
18462_ACEOF
18463rm -f conftest$ac_exeext
18464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18465 (eval $ac_link) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 ac_cv_sizeof_int=`cat conftest.val`
18475else
18476 echo "$as_me: program exited with status $ac_status" >&5
18477echo "$as_me: failed program was:" >&5
18478sed 's/^/| /' conftest.$ac_ext >&5
18479
18480( exit $ac_status )
18481{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18482See \`config.log' for more details." >&5
18483echo "$as_me: error: cannot compute sizeof (int), 77
18484See \`config.log' for more details." >&2;}
18485 { (exit 1); exit 1; }; }
18486fi
ac1cb8d3 18487rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18488fi
18489fi
18490rm -f conftest.val
18491else
18492 ac_cv_sizeof_int=0
18493fi
18494fi
18495echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18496echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18497cat >>confdefs.h <<_ACEOF
18498#define SIZEOF_INT $ac_cv_sizeof_int
18499_ACEOF
18500
18501
18502echo "$as_me:$LINENO: checking for long" >&5
18503echo $ECHO_N "checking for long... $ECHO_C" >&6
18504if test "${ac_cv_type_long+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506else
18507 cat >conftest.$ac_ext <<_ACEOF
18508/* confdefs.h. */
18509_ACEOF
18510cat confdefs.h >>conftest.$ac_ext
18511cat >>conftest.$ac_ext <<_ACEOF
18512/* end confdefs.h. */
18513$ac_includes_default
18514int
18515main ()
18516{
18517if ((long *) 0)
18518 return 0;
18519if (sizeof (long))
18520 return 0;
18521 ;
18522 return 0;
18523}
18524_ACEOF
18525rm -f conftest.$ac_objext
18526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18527 (eval $ac_compile) 2>conftest.er1
a848cd7e 18528 ac_status=$?
ac1cb8d3
VS
18529 grep -v '^ *+' conftest.er1 >conftest.err
18530 rm -f conftest.er1
18531 cat conftest.err >&5
a848cd7e
SC
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } &&
3565d135
RR
18534 { ac_try='test -z "$ac_c_werror_flag"
18535 || test ! -s conftest.err'
ac1cb8d3
VS
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; } &&
18541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 ac_cv_type_long=yes
18548else
18549 echo "$as_me: failed program was:" >&5
18550sed 's/^/| /' conftest.$ac_ext >&5
18551
18552ac_cv_type_long=no
18553fi
ac1cb8d3 18554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18555fi
18556echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18557echo "${ECHO_T}$ac_cv_type_long" >&6
18558
18559echo "$as_me:$LINENO: checking size of long" >&5
18560echo $ECHO_N "checking size of long... $ECHO_C" >&6
18561if test "${ac_cv_sizeof_long+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18563else
18564 if test "$ac_cv_type_long" = yes; then
18565 # The cast to unsigned long works around a bug in the HP C Compiler
18566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18568 # This bug is HP SR number 8606223364.
18569 if test "$cross_compiling" = yes; then
18570 # Depending upon the size, compute the lo and hi bounds.
18571cat >conftest.$ac_ext <<_ACEOF
18572/* confdefs.h. */
18573_ACEOF
18574cat confdefs.h >>conftest.$ac_ext
18575cat >>conftest.$ac_ext <<_ACEOF
18576/* end confdefs.h. */
18577$ac_includes_default
18578int
18579main ()
18580{
18581static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18582test_array [0] = 0
18583
18584 ;
18585 return 0;
18586}
18587_ACEOF
18588rm -f conftest.$ac_objext
18589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18590 (eval $ac_compile) 2>conftest.er1
a848cd7e 18591 ac_status=$?
ac1cb8d3
VS
18592 grep -v '^ *+' conftest.er1 >conftest.err
18593 rm -f conftest.er1
18594 cat conftest.err >&5
a848cd7e
SC
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
3565d135
RR
18597 { ac_try='test -z "$ac_c_werror_flag"
18598 || test ! -s conftest.err'
ac1cb8d3
VS
18599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600 (eval $ac_try) 2>&5
18601 ac_status=$?
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; } &&
18604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18606 (eval $ac_try) 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; }; then
18610 ac_lo=0 ac_mid=0
18611 while :; do
18612 cat >conftest.$ac_ext <<_ACEOF
18613/* confdefs.h. */
18614_ACEOF
18615cat confdefs.h >>conftest.$ac_ext
18616cat >>conftest.$ac_ext <<_ACEOF
18617/* end confdefs.h. */
18618$ac_includes_default
18619int
18620main ()
18621{
18622static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18623test_array [0] = 0
18624
18625 ;
18626 return 0;
18627}
18628_ACEOF
18629rm -f conftest.$ac_objext
18630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18631 (eval $ac_compile) 2>conftest.er1
a848cd7e 18632 ac_status=$?
ac1cb8d3
VS
18633 grep -v '^ *+' conftest.er1 >conftest.err
18634 rm -f conftest.er1
18635 cat conftest.err >&5
a848cd7e
SC
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } &&
3565d135
RR
18638 { ac_try='test -z "$ac_c_werror_flag"
18639 || test ! -s conftest.err'
ac1cb8d3
VS
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18642 ac_status=$?
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; } &&
18645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
18651 ac_hi=$ac_mid; break
18652else
18653 echo "$as_me: failed program was:" >&5
18654sed 's/^/| /' conftest.$ac_ext >&5
18655
18656ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18657 if test $ac_lo -le $ac_mid; then
18658 ac_lo= ac_hi=
18659 break
18660 fi
18661 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18662fi
ac1cb8d3 18663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18664 done
18665else
18666 echo "$as_me: failed program was:" >&5
18667sed 's/^/| /' conftest.$ac_ext >&5
18668
18669cat >conftest.$ac_ext <<_ACEOF
18670/* confdefs.h. */
18671_ACEOF
18672cat confdefs.h >>conftest.$ac_ext
18673cat >>conftest.$ac_ext <<_ACEOF
18674/* end confdefs.h. */
18675$ac_includes_default
18676int
18677main ()
18678{
18679static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18680test_array [0] = 0
18681
18682 ;
18683 return 0;
18684}
18685_ACEOF
18686rm -f conftest.$ac_objext
18687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18688 (eval $ac_compile) 2>conftest.er1
a848cd7e 18689 ac_status=$?
ac1cb8d3
VS
18690 grep -v '^ *+' conftest.er1 >conftest.err
18691 rm -f conftest.er1
18692 cat conftest.err >&5
a848cd7e
SC
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); } &&
3565d135
RR
18695 { ac_try='test -z "$ac_c_werror_flag"
18696 || test ! -s conftest.err'
ac1cb8d3
VS
18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698 (eval $ac_try) 2>&5
18699 ac_status=$?
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; } &&
18702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704 (eval $ac_try) 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; }; then
18708 ac_hi=-1 ac_mid=-1
18709 while :; do
18710 cat >conftest.$ac_ext <<_ACEOF
18711/* confdefs.h. */
18712_ACEOF
18713cat confdefs.h >>conftest.$ac_ext
18714cat >>conftest.$ac_ext <<_ACEOF
18715/* end confdefs.h. */
18716$ac_includes_default
18717int
18718main ()
18719{
18720static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18721test_array [0] = 0
18722
18723 ;
18724 return 0;
18725}
18726_ACEOF
18727rm -f conftest.$ac_objext
18728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18729 (eval $ac_compile) 2>conftest.er1
a848cd7e 18730 ac_status=$?
ac1cb8d3
VS
18731 grep -v '^ *+' conftest.er1 >conftest.err
18732 rm -f conftest.er1
18733 cat conftest.err >&5
a848cd7e
SC
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } &&
3565d135
RR
18736 { ac_try='test -z "$ac_c_werror_flag"
18737 || test ! -s conftest.err'
ac1cb8d3
VS
18738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739 (eval $ac_try) 2>&5
18740 ac_status=$?
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); }; } &&
18743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; }; then
18749 ac_lo=$ac_mid; break
18750else
18751 echo "$as_me: failed program was:" >&5
18752sed 's/^/| /' conftest.$ac_ext >&5
18753
18754ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18755 if test $ac_mid -le $ac_hi; then
18756 ac_lo= ac_hi=
18757 break
18758 fi
18759 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18760fi
ac1cb8d3 18761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18762 done
18763else
18764 echo "$as_me: failed program was:" >&5
18765sed 's/^/| /' conftest.$ac_ext >&5
18766
18767ac_lo= ac_hi=
18768fi
ac1cb8d3 18769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18770fi
ac1cb8d3 18771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18772# Binary search between lo and hi bounds.
18773while test "x$ac_lo" != "x$ac_hi"; do
18774 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18775 cat >conftest.$ac_ext <<_ACEOF
18776/* confdefs.h. */
18777_ACEOF
18778cat confdefs.h >>conftest.$ac_ext
18779cat >>conftest.$ac_ext <<_ACEOF
18780/* end confdefs.h. */
18781$ac_includes_default
18782int
18783main ()
18784{
18785static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18786test_array [0] = 0
18787
18788 ;
18789 return 0;
18790}
18791_ACEOF
18792rm -f conftest.$ac_objext
18793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18794 (eval $ac_compile) 2>conftest.er1
a848cd7e 18795 ac_status=$?
ac1cb8d3
VS
18796 grep -v '^ *+' conftest.er1 >conftest.err
18797 rm -f conftest.er1
18798 cat conftest.err >&5
a848cd7e
SC
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } &&
3565d135
RR
18801 { ac_try='test -z "$ac_c_werror_flag"
18802 || test ! -s conftest.err'
ac1cb8d3
VS
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18805 ac_status=$?
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; } &&
18808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18810 (eval $ac_try) 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; }; then
18814 ac_hi=$ac_mid
18815else
18816 echo "$as_me: failed program was:" >&5
18817sed 's/^/| /' conftest.$ac_ext >&5
18818
18819ac_lo=`expr '(' $ac_mid ')' + 1`
18820fi
ac1cb8d3 18821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18822done
18823case $ac_lo in
18824?*) ac_cv_sizeof_long=$ac_lo;;
18825'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18826See \`config.log' for more details." >&5
18827echo "$as_me: error: cannot compute sizeof (long), 77
18828See \`config.log' for more details." >&2;}
18829 { (exit 1); exit 1; }; } ;;
18830esac
18831else
18832 if test "$cross_compiling" = yes; then
3565d135
RR
18833 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18834See \`config.log' for more details." >&5
18835echo "$as_me: error: cannot run test program while cross compiling
18836See \`config.log' for more details." >&2;}
a848cd7e
SC
18837 { (exit 1); exit 1; }; }
18838else
18839 cat >conftest.$ac_ext <<_ACEOF
18840/* confdefs.h. */
18841_ACEOF
18842cat confdefs.h >>conftest.$ac_ext
18843cat >>conftest.$ac_ext <<_ACEOF
18844/* end confdefs.h. */
18845$ac_includes_default
18846long longval () { return (long) (sizeof (long)); }
18847unsigned long ulongval () { return (long) (sizeof (long)); }
18848#include <stdio.h>
18849#include <stdlib.h>
18850int
18851main ()
18852{
18853
18854 FILE *f = fopen ("conftest.val", "w");
18855 if (! f)
18856 exit (1);
18857 if (((long) (sizeof (long))) < 0)
18858 {
18859 long i = longval ();
18860 if (i != ((long) (sizeof (long))))
18861 exit (1);
18862 fprintf (f, "%ld\n", i);
18863 }
18864 else
18865 {
18866 unsigned long i = ulongval ();
18867 if (i != ((long) (sizeof (long))))
18868 exit (1);
18869 fprintf (f, "%lu\n", i);
18870 }
18871 exit (ferror (f) || fclose (f) != 0);
18872
18873 ;
18874 return 0;
18875}
18876_ACEOF
18877rm -f conftest$ac_exeext
18878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18879 (eval $ac_link) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_cv_sizeof_long=`cat conftest.val`
18889else
18890 echo "$as_me: program exited with status $ac_status" >&5
18891echo "$as_me: failed program was:" >&5
18892sed 's/^/| /' conftest.$ac_ext >&5
18893
18894( exit $ac_status )
18895{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18896See \`config.log' for more details." >&5
18897echo "$as_me: error: cannot compute sizeof (long), 77
18898See \`config.log' for more details." >&2;}
18899 { (exit 1); exit 1; }; }
18900fi
ac1cb8d3 18901rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18902fi
18903fi
18904rm -f conftest.val
18905else
18906 ac_cv_sizeof_long=0
18907fi
18908fi
18909echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18910echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18911cat >>confdefs.h <<_ACEOF
18912#define SIZEOF_LONG $ac_cv_sizeof_long
18913_ACEOF
18914
18915
18916echo "$as_me:$LINENO: checking for size_t" >&5
18917echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18918if test "${ac_cv_type_size_t+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920else
18921 cat >conftest.$ac_ext <<_ACEOF
18922/* confdefs.h. */
18923_ACEOF
18924cat confdefs.h >>conftest.$ac_ext
18925cat >>conftest.$ac_ext <<_ACEOF
18926/* end confdefs.h. */
18927$ac_includes_default
18928int
18929main ()
18930{
18931if ((size_t *) 0)
18932 return 0;
18933if (sizeof (size_t))
18934 return 0;
18935 ;
18936 return 0;
18937}
18938_ACEOF
18939rm -f conftest.$ac_objext
18940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18941 (eval $ac_compile) 2>conftest.er1
a848cd7e 18942 ac_status=$?
ac1cb8d3
VS
18943 grep -v '^ *+' conftest.er1 >conftest.err
18944 rm -f conftest.er1
18945 cat conftest.err >&5
a848cd7e
SC
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
3565d135
RR
18948 { ac_try='test -z "$ac_c_werror_flag"
18949 || test ! -s conftest.err'
ac1cb8d3
VS
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; } &&
18955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18961 ac_cv_type_size_t=yes
18962else
18963 echo "$as_me: failed program was:" >&5
18964sed 's/^/| /' conftest.$ac_ext >&5
18965
18966ac_cv_type_size_t=no
18967fi
ac1cb8d3 18968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18969fi
18970echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18971echo "${ECHO_T}$ac_cv_type_size_t" >&6
18972
18973echo "$as_me:$LINENO: checking size of size_t" >&5
18974echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18975if test "${ac_cv_sizeof_size_t+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18977else
18978 if test "$ac_cv_type_size_t" = yes; then
18979 # The cast to unsigned long works around a bug in the HP C Compiler
18980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18982 # This bug is HP SR number 8606223364.
18983 if test "$cross_compiling" = yes; then
18984 # Depending upon the size, compute the lo and hi bounds.
18985cat >conftest.$ac_ext <<_ACEOF
18986/* confdefs.h. */
18987_ACEOF
18988cat confdefs.h >>conftest.$ac_ext
18989cat >>conftest.$ac_ext <<_ACEOF
18990/* end confdefs.h. */
18991$ac_includes_default
18992int
18993main ()
18994{
18995static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18996test_array [0] = 0
18997
18998 ;
18999 return 0;
19000}
19001_ACEOF
19002rm -f conftest.$ac_objext
19003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19004 (eval $ac_compile) 2>conftest.er1
a848cd7e 19005 ac_status=$?
ac1cb8d3
VS
19006 grep -v '^ *+' conftest.er1 >conftest.err
19007 rm -f conftest.er1
19008 cat conftest.err >&5
a848cd7e
SC
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } &&
3565d135
RR
19011 { ac_try='test -z "$ac_c_werror_flag"
19012 || test ! -s conftest.err'
ac1cb8d3
VS
19013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19015 ac_status=$?
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; } &&
19018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 ac_lo=0 ac_mid=0
19025 while :; do
19026 cat >conftest.$ac_ext <<_ACEOF
19027/* confdefs.h. */
19028_ACEOF
19029cat confdefs.h >>conftest.$ac_ext
19030cat >>conftest.$ac_ext <<_ACEOF
19031/* end confdefs.h. */
19032$ac_includes_default
19033int
19034main ()
19035{
19036static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19037test_array [0] = 0
19038
19039 ;
19040 return 0;
19041}
19042_ACEOF
19043rm -f conftest.$ac_objext
19044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19045 (eval $ac_compile) 2>conftest.er1
a848cd7e 19046 ac_status=$?
ac1cb8d3
VS
19047 grep -v '^ *+' conftest.er1 >conftest.err
19048 rm -f conftest.er1
19049 cat conftest.err >&5
a848cd7e
SC
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
3565d135
RR
19052 { ac_try='test -z "$ac_c_werror_flag"
19053 || test ! -s conftest.err'
ac1cb8d3
VS
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19056 ac_status=$?
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; } &&
19059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; }; then
19065 ac_hi=$ac_mid; break
19066else
19067 echo "$as_me: failed program was:" >&5
19068sed 's/^/| /' conftest.$ac_ext >&5
19069
19070ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19071 if test $ac_lo -le $ac_mid; then
19072 ac_lo= ac_hi=
19073 break
19074 fi
19075 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19076fi
ac1cb8d3 19077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19078 done
19079else
19080 echo "$as_me: failed program was:" >&5
19081sed 's/^/| /' conftest.$ac_ext >&5
19082
19083cat >conftest.$ac_ext <<_ACEOF
19084/* confdefs.h. */
19085_ACEOF
19086cat confdefs.h >>conftest.$ac_ext
19087cat >>conftest.$ac_ext <<_ACEOF
19088/* end confdefs.h. */
19089$ac_includes_default
19090int
19091main ()
19092{
19093static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19094test_array [0] = 0
19095
19096 ;
19097 return 0;
19098}
19099_ACEOF
19100rm -f conftest.$ac_objext
19101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19102 (eval $ac_compile) 2>conftest.er1
a848cd7e 19103 ac_status=$?
ac1cb8d3
VS
19104 grep -v '^ *+' conftest.er1 >conftest.err
19105 rm -f conftest.er1
19106 cat conftest.err >&5
a848cd7e
SC
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
3565d135
RR
19109 { ac_try='test -z "$ac_c_werror_flag"
19110 || test ! -s conftest.err'
ac1cb8d3
VS
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; } &&
19116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19119 ac_status=$?
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; }; then
19122 ac_hi=-1 ac_mid=-1
19123 while :; do
19124 cat >conftest.$ac_ext <<_ACEOF
19125/* confdefs.h. */
19126_ACEOF
19127cat confdefs.h >>conftest.$ac_ext
19128cat >>conftest.$ac_ext <<_ACEOF
19129/* end confdefs.h. */
19130$ac_includes_default
19131int
19132main ()
19133{
19134static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19135test_array [0] = 0
19136
19137 ;
19138 return 0;
19139}
19140_ACEOF
19141rm -f conftest.$ac_objext
19142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19143 (eval $ac_compile) 2>conftest.er1
a848cd7e 19144 ac_status=$?
ac1cb8d3
VS
19145 grep -v '^ *+' conftest.er1 >conftest.err
19146 rm -f conftest.er1
19147 cat conftest.err >&5
a848cd7e
SC
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } &&
3565d135
RR
19150 { ac_try='test -z "$ac_c_werror_flag"
19151 || test ! -s conftest.err'
ac1cb8d3
VS
19152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19153 (eval $ac_try) 2>&5
19154 ac_status=$?
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); }; } &&
19157 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159 (eval $ac_try) 2>&5
19160 ac_status=$?
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; }; then
19163 ac_lo=$ac_mid; break
19164else
19165 echo "$as_me: failed program was:" >&5
19166sed 's/^/| /' conftest.$ac_ext >&5
19167
19168ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19169 if test $ac_mid -le $ac_hi; then
19170 ac_lo= ac_hi=
19171 break
19172 fi
19173 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19174fi
ac1cb8d3 19175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19176 done
19177else
19178 echo "$as_me: failed program was:" >&5
19179sed 's/^/| /' conftest.$ac_ext >&5
19180
19181ac_lo= ac_hi=
19182fi
ac1cb8d3 19183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19184fi
ac1cb8d3 19185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19186# Binary search between lo and hi bounds.
19187while test "x$ac_lo" != "x$ac_hi"; do
19188 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19189 cat >conftest.$ac_ext <<_ACEOF
19190/* confdefs.h. */
19191_ACEOF
19192cat confdefs.h >>conftest.$ac_ext
19193cat >>conftest.$ac_ext <<_ACEOF
19194/* end confdefs.h. */
19195$ac_includes_default
19196int
19197main ()
19198{
19199static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19200test_array [0] = 0
19201
19202 ;
19203 return 0;
19204}
19205_ACEOF
19206rm -f conftest.$ac_objext
19207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19208 (eval $ac_compile) 2>conftest.er1
a848cd7e 19209 ac_status=$?
ac1cb8d3
VS
19210 grep -v '^ *+' conftest.er1 >conftest.err
19211 rm -f conftest.er1
19212 cat conftest.err >&5
a848cd7e
SC
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } &&
3565d135
RR
19215 { ac_try='test -z "$ac_c_werror_flag"
19216 || test ! -s conftest.err'
ac1cb8d3
VS
19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19219 ac_status=$?
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; } &&
19222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; }; then
19228 ac_hi=$ac_mid
19229else
19230 echo "$as_me: failed program was:" >&5
19231sed 's/^/| /' conftest.$ac_ext >&5
19232
19233ac_lo=`expr '(' $ac_mid ')' + 1`
19234fi
ac1cb8d3 19235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19236done
19237case $ac_lo in
19238?*) ac_cv_sizeof_size_t=$ac_lo;;
19239'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19240See \`config.log' for more details." >&5
19241echo "$as_me: error: cannot compute sizeof (size_t), 77
19242See \`config.log' for more details." >&2;}
19243 { (exit 1); exit 1; }; } ;;
19244esac
19245else
19246 if test "$cross_compiling" = yes; then
3565d135
RR
19247 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19248See \`config.log' for more details." >&5
19249echo "$as_me: error: cannot run test program while cross compiling
19250See \`config.log' for more details." >&2;}
a848cd7e
SC
19251 { (exit 1); exit 1; }; }
19252else
19253 cat >conftest.$ac_ext <<_ACEOF
19254/* confdefs.h. */
19255_ACEOF
19256cat confdefs.h >>conftest.$ac_ext
19257cat >>conftest.$ac_ext <<_ACEOF
19258/* end confdefs.h. */
19259$ac_includes_default
19260long longval () { return (long) (sizeof (size_t)); }
19261unsigned long ulongval () { return (long) (sizeof (size_t)); }
19262#include <stdio.h>
19263#include <stdlib.h>
19264int
19265main ()
19266{
19267
19268 FILE *f = fopen ("conftest.val", "w");
19269 if (! f)
19270 exit (1);
19271 if (((long) (sizeof (size_t))) < 0)
19272 {
19273 long i = longval ();
19274 if (i != ((long) (sizeof (size_t))))
19275 exit (1);
19276 fprintf (f, "%ld\n", i);
19277 }
19278 else
19279 {
19280 unsigned long i = ulongval ();
19281 if (i != ((long) (sizeof (size_t))))
19282 exit (1);
19283 fprintf (f, "%lu\n", i);
19284 }
19285 exit (ferror (f) || fclose (f) != 0);
19286
19287 ;
19288 return 0;
19289}
19290_ACEOF
19291rm -f conftest$ac_exeext
19292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19293 (eval $ac_link) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298 (eval $ac_try) 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; }; then
19302 ac_cv_sizeof_size_t=`cat conftest.val`
19303else
19304 echo "$as_me: program exited with status $ac_status" >&5
19305echo "$as_me: failed program was:" >&5
19306sed 's/^/| /' conftest.$ac_ext >&5
19307
19308( exit $ac_status )
19309{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19310See \`config.log' for more details." >&5
19311echo "$as_me: error: cannot compute sizeof (size_t), 77
19312See \`config.log' for more details." >&2;}
19313 { (exit 1); exit 1; }; }
19314fi
ac1cb8d3 19315rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19316fi
19317fi
19318rm -f conftest.val
19319else
19320 ac_cv_sizeof_size_t=0
19321fi
19322fi
19323echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19324echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19325cat >>confdefs.h <<_ACEOF
19326#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19327_ACEOF
19328
19329
19330
19331case "${host}" in
19332 arm-*-linux* )
19333 echo "$as_me:$LINENO: checking for long long" >&5
19334echo $ECHO_N "checking for long long... $ECHO_C" >&6
19335if test "${ac_cv_type_long_long+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19337else
19338 cat >conftest.$ac_ext <<_ACEOF
19339/* confdefs.h. */
19340_ACEOF
19341cat confdefs.h >>conftest.$ac_ext
19342cat >>conftest.$ac_ext <<_ACEOF
19343/* end confdefs.h. */
19344$ac_includes_default
19345int
19346main ()
19347{
19348if ((long long *) 0)
19349 return 0;
19350if (sizeof (long long))
19351 return 0;
19352 ;
19353 return 0;
19354}
19355_ACEOF
19356rm -f conftest.$ac_objext
19357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19358 (eval $ac_compile) 2>conftest.er1
a848cd7e 19359 ac_status=$?
ac1cb8d3
VS
19360 grep -v '^ *+' conftest.er1 >conftest.err
19361 rm -f conftest.er1
19362 cat conftest.err >&5
a848cd7e
SC
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } &&
3565d135
RR
19365 { ac_try='test -z "$ac_c_werror_flag"
19366 || test ! -s conftest.err'
ac1cb8d3
VS
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; } &&
19372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; }; then
19378 ac_cv_type_long_long=yes
19379else
19380 echo "$as_me: failed program was:" >&5
19381sed 's/^/| /' conftest.$ac_ext >&5
19382
19383ac_cv_type_long_long=no
19384fi
ac1cb8d3 19385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19386fi
19387echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19388echo "${ECHO_T}$ac_cv_type_long_long" >&6
19389
19390echo "$as_me:$LINENO: checking size of long long" >&5
19391echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19392if test "${ac_cv_sizeof_long_long+set}" = set; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
19394else
19395 if test "$ac_cv_type_long_long" = yes; then
19396 # The cast to unsigned long works around a bug in the HP C Compiler
19397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19399 # This bug is HP SR number 8606223364.
19400 if test "$cross_compiling" = yes; then
19401 # Depending upon the size, compute the lo and hi bounds.
19402cat >conftest.$ac_ext <<_ACEOF
19403/* confdefs.h. */
19404_ACEOF
19405cat confdefs.h >>conftest.$ac_ext
19406cat >>conftest.$ac_ext <<_ACEOF
19407/* end confdefs.h. */
19408$ac_includes_default
19409int
19410main ()
19411{
19412static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19413test_array [0] = 0
19414
19415 ;
19416 return 0;
19417}
19418_ACEOF
19419rm -f conftest.$ac_objext
19420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19421 (eval $ac_compile) 2>conftest.er1
a848cd7e 19422 ac_status=$?
ac1cb8d3
VS
19423 grep -v '^ *+' conftest.er1 >conftest.err
19424 rm -f conftest.er1
19425 cat conftest.err >&5
a848cd7e
SC
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } &&
3565d135
RR
19428 { ac_try='test -z "$ac_c_werror_flag"
19429 || test ! -s conftest.err'
ac1cb8d3
VS
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; } &&
19435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 ac_lo=0 ac_mid=0
19442 while :; do
19443 cat >conftest.$ac_ext <<_ACEOF
19444/* confdefs.h. */
19445_ACEOF
19446cat confdefs.h >>conftest.$ac_ext
19447cat >>conftest.$ac_ext <<_ACEOF
19448/* end confdefs.h. */
19449$ac_includes_default
19450int
19451main ()
19452{
19453static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19454test_array [0] = 0
19455
19456 ;
19457 return 0;
19458}
19459_ACEOF
19460rm -f conftest.$ac_objext
19461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19462 (eval $ac_compile) 2>conftest.er1
a848cd7e 19463 ac_status=$?
ac1cb8d3
VS
19464 grep -v '^ *+' conftest.er1 >conftest.err
19465 rm -f conftest.er1
19466 cat conftest.err >&5
a848cd7e
SC
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } &&
3565d135
RR
19469 { ac_try='test -z "$ac_c_werror_flag"
19470 || test ! -s conftest.err'
ac1cb8d3
VS
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_hi=$ac_mid; break
19483else
19484 echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19488 if test $ac_lo -le $ac_mid; then
19489 ac_lo= ac_hi=
19490 break
19491 fi
19492 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19493fi
ac1cb8d3 19494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19495 done
19496else
19497 echo "$as_me: failed program was:" >&5
19498sed 's/^/| /' conftest.$ac_ext >&5
19499
19500cat >conftest.$ac_ext <<_ACEOF
19501/* confdefs.h. */
19502_ACEOF
19503cat confdefs.h >>conftest.$ac_ext
19504cat >>conftest.$ac_ext <<_ACEOF
19505/* end confdefs.h. */
19506$ac_includes_default
19507int
19508main ()
19509{
19510static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19511test_array [0] = 0
19512
19513 ;
19514 return 0;
19515}
19516_ACEOF
19517rm -f conftest.$ac_objext
19518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19519 (eval $ac_compile) 2>conftest.er1
a848cd7e 19520 ac_status=$?
ac1cb8d3
VS
19521 grep -v '^ *+' conftest.er1 >conftest.err
19522 rm -f conftest.er1
19523 cat conftest.err >&5
a848cd7e
SC
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } &&
3565d135
RR
19526 { ac_try='test -z "$ac_c_werror_flag"
19527 || test ! -s conftest.err'
ac1cb8d3
VS
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; } &&
19533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; }; then
19539 ac_hi=-1 ac_mid=-1
19540 while :; do
19541 cat >conftest.$ac_ext <<_ACEOF
19542/* confdefs.h. */
19543_ACEOF
19544cat confdefs.h >>conftest.$ac_ext
19545cat >>conftest.$ac_ext <<_ACEOF
19546/* end confdefs.h. */
19547$ac_includes_default
19548int
19549main ()
19550{
19551static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19552test_array [0] = 0
19553
19554 ;
19555 return 0;
19556}
19557_ACEOF
19558rm -f conftest.$ac_objext
19559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19560 (eval $ac_compile) 2>conftest.er1
a848cd7e 19561 ac_status=$?
ac1cb8d3
VS
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
a848cd7e
SC
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } &&
3565d135
RR
19567 { ac_try='test -z "$ac_c_werror_flag"
19568 || test ! -s conftest.err'
ac1cb8d3
VS
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; } &&
19574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 ac_lo=$ac_mid; break
19581else
19582 echo "$as_me: failed program was:" >&5
19583sed 's/^/| /' conftest.$ac_ext >&5
19584
19585ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19586 if test $ac_mid -le $ac_hi; then
19587 ac_lo= ac_hi=
19588 break
19589 fi
19590 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19591fi
ac1cb8d3 19592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19593 done
19594else
19595 echo "$as_me: failed program was:" >&5
19596sed 's/^/| /' conftest.$ac_ext >&5
19597
19598ac_lo= ac_hi=
19599fi
ac1cb8d3 19600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19601fi
ac1cb8d3 19602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19603# Binary search between lo and hi bounds.
19604while test "x$ac_lo" != "x$ac_hi"; do
19605 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19606 cat >conftest.$ac_ext <<_ACEOF
19607/* confdefs.h. */
19608_ACEOF
19609cat confdefs.h >>conftest.$ac_ext
19610cat >>conftest.$ac_ext <<_ACEOF
19611/* end confdefs.h. */
19612$ac_includes_default
19613int
19614main ()
19615{
19616static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19617test_array [0] = 0
19618
19619 ;
19620 return 0;
19621}
19622_ACEOF
19623rm -f conftest.$ac_objext
19624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19625 (eval $ac_compile) 2>conftest.er1
a848cd7e 19626 ac_status=$?
ac1cb8d3
VS
19627 grep -v '^ *+' conftest.er1 >conftest.err
19628 rm -f conftest.er1
19629 cat conftest.err >&5
a848cd7e
SC
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } &&
3565d135
RR
19632 { ac_try='test -z "$ac_c_werror_flag"
19633 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
19639 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; }; then
19645 ac_hi=$ac_mid
19646else
19647 echo "$as_me: failed program was:" >&5
19648sed 's/^/| /' conftest.$ac_ext >&5
19649
19650ac_lo=`expr '(' $ac_mid ')' + 1`
19651fi
ac1cb8d3 19652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19653done
19654case $ac_lo in
19655?*) ac_cv_sizeof_long_long=$ac_lo;;
19656'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19657See \`config.log' for more details." >&5
19658echo "$as_me: error: cannot compute sizeof (long long), 77
19659See \`config.log' for more details." >&2;}
19660 { (exit 1); exit 1; }; } ;;
19661esac
19662else
19663 if test "$cross_compiling" = yes; then
3565d135
RR
19664 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19665See \`config.log' for more details." >&5
19666echo "$as_me: error: cannot run test program while cross compiling
19667See \`config.log' for more details." >&2;}
a848cd7e
SC
19668 { (exit 1); exit 1; }; }
19669else
19670 cat >conftest.$ac_ext <<_ACEOF
19671/* confdefs.h. */
19672_ACEOF
19673cat confdefs.h >>conftest.$ac_ext
19674cat >>conftest.$ac_ext <<_ACEOF
19675/* end confdefs.h. */
19676$ac_includes_default
19677long longval () { return (long) (sizeof (long long)); }
19678unsigned long ulongval () { return (long) (sizeof (long long)); }
19679#include <stdio.h>
19680#include <stdlib.h>
19681int
19682main ()
19683{
19684
19685 FILE *f = fopen ("conftest.val", "w");
19686 if (! f)
19687 exit (1);
19688 if (((long) (sizeof (long long))) < 0)
19689 {
19690 long i = longval ();
19691 if (i != ((long) (sizeof (long long))))
19692 exit (1);
19693 fprintf (f, "%ld\n", i);
19694 }
19695 else
19696 {
19697 unsigned long i = ulongval ();
19698 if (i != ((long) (sizeof (long long))))
19699 exit (1);
19700 fprintf (f, "%lu\n", i);
19701 }
19702 exit (ferror (f) || fclose (f) != 0);
19703
19704 ;
19705 return 0;
19706}
19707_ACEOF
19708rm -f conftest$ac_exeext
19709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19710 (eval $ac_link) 2>&5
19711 ac_status=$?
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
19719 ac_cv_sizeof_long_long=`cat conftest.val`
19720else
19721 echo "$as_me: program exited with status $ac_status" >&5
19722echo "$as_me: failed program was:" >&5
19723sed 's/^/| /' conftest.$ac_ext >&5
19724
19725( exit $ac_status )
19726{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19727See \`config.log' for more details." >&5
19728echo "$as_me: error: cannot compute sizeof (long long), 77
19729See \`config.log' for more details." >&2;}
19730 { (exit 1); exit 1; }; }
19731fi
ac1cb8d3 19732rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19733fi
19734fi
19735rm -f conftest.val
19736else
19737 ac_cv_sizeof_long_long=0
19738fi
19739fi
19740echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19741echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19742cat >>confdefs.h <<_ACEOF
19743#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19744_ACEOF
19745
19746
19747 ;;
19748 *-hp-hpux* )
19749 echo "$as_me:$LINENO: checking for long long" >&5
19750echo $ECHO_N "checking for long long... $ECHO_C" >&6
19751if test "${ac_cv_type_long_long+set}" = set; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19753else
19754 cat >conftest.$ac_ext <<_ACEOF
19755/* confdefs.h. */
19756_ACEOF
19757cat confdefs.h >>conftest.$ac_ext
19758cat >>conftest.$ac_ext <<_ACEOF
19759/* end confdefs.h. */
19760$ac_includes_default
19761int
19762main ()
19763{
19764if ((long long *) 0)
19765 return 0;
19766if (sizeof (long long))
19767 return 0;
19768 ;
19769 return 0;
19770}
19771_ACEOF
19772rm -f conftest.$ac_objext
19773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19774 (eval $ac_compile) 2>conftest.er1
a848cd7e 19775 ac_status=$?
ac1cb8d3
VS
19776 grep -v '^ *+' conftest.er1 >conftest.err
19777 rm -f conftest.er1
19778 cat conftest.err >&5
a848cd7e
SC
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } &&
3565d135
RR
19781 { ac_try='test -z "$ac_c_werror_flag"
19782 || test ! -s conftest.err'
ac1cb8d3
VS
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; } &&
19788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19791 ac_status=$?
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; }; then
19794 ac_cv_type_long_long=yes
19795else
19796 echo "$as_me: failed program was:" >&5
19797sed 's/^/| /' conftest.$ac_ext >&5
19798
19799ac_cv_type_long_long=no
19800fi
ac1cb8d3 19801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19802fi
19803echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19804echo "${ECHO_T}$ac_cv_type_long_long" >&6
19805
19806echo "$as_me:$LINENO: checking size of long long" >&5
19807echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19808if test "${ac_cv_sizeof_long_long+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19810else
19811 if test "$ac_cv_type_long_long" = yes; then
19812 # The cast to unsigned long works around a bug in the HP C Compiler
19813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19815 # This bug is HP SR number 8606223364.
19816 if test "$cross_compiling" = yes; then
19817 # Depending upon the size, compute the lo and hi bounds.
19818cat >conftest.$ac_ext <<_ACEOF
19819/* confdefs.h. */
19820_ACEOF
19821cat confdefs.h >>conftest.$ac_ext
19822cat >>conftest.$ac_ext <<_ACEOF
19823/* end confdefs.h. */
19824$ac_includes_default
19825int
19826main ()
19827{
19828static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19829test_array [0] = 0
19830
19831 ;
19832 return 0;
19833}
19834_ACEOF
19835rm -f conftest.$ac_objext
19836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19837 (eval $ac_compile) 2>conftest.er1
a848cd7e 19838 ac_status=$?
ac1cb8d3
VS
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
a848cd7e
SC
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
3565d135
RR
19844 { ac_try='test -z "$ac_c_werror_flag"
19845 || test ! -s conftest.err'
ac1cb8d3
VS
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 ac_lo=0 ac_mid=0
19858 while :; do
19859 cat >conftest.$ac_ext <<_ACEOF
19860/* confdefs.h. */
19861_ACEOF
19862cat confdefs.h >>conftest.$ac_ext
19863cat >>conftest.$ac_ext <<_ACEOF
19864/* end confdefs.h. */
19865$ac_includes_default
19866int
19867main ()
19868{
19869static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19870test_array [0] = 0
19871
19872 ;
19873 return 0;
19874}
19875_ACEOF
19876rm -f conftest.$ac_objext
19877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19878 (eval $ac_compile) 2>conftest.er1
a848cd7e 19879 ac_status=$?
ac1cb8d3
VS
19880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
a848cd7e
SC
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } &&
3565d135
RR
19885 { ac_try='test -z "$ac_c_werror_flag"
19886 || test ! -s conftest.err'
ac1cb8d3
VS
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; } &&
19892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19895 ac_status=$?
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_hi=$ac_mid; break
19899else
19900 echo "$as_me: failed program was:" >&5
19901sed 's/^/| /' conftest.$ac_ext >&5
19902
19903ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19904 if test $ac_lo -le $ac_mid; then
19905 ac_lo= ac_hi=
19906 break
19907 fi
19908 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19909fi
ac1cb8d3 19910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19911 done
19912else
19913 echo "$as_me: failed program was:" >&5
19914sed 's/^/| /' conftest.$ac_ext >&5
19915
19916cat >conftest.$ac_ext <<_ACEOF
19917/* confdefs.h. */
19918_ACEOF
19919cat confdefs.h >>conftest.$ac_ext
19920cat >>conftest.$ac_ext <<_ACEOF
19921/* end confdefs.h. */
19922$ac_includes_default
19923int
19924main ()
19925{
19926static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19927test_array [0] = 0
19928
19929 ;
19930 return 0;
19931}
19932_ACEOF
19933rm -f conftest.$ac_objext
19934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19935 (eval $ac_compile) 2>conftest.er1
a848cd7e 19936 ac_status=$?
ac1cb8d3
VS
19937 grep -v '^ *+' conftest.er1 >conftest.err
19938 rm -f conftest.er1
19939 cat conftest.err >&5
a848cd7e
SC
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } &&
3565d135
RR
19942 { ac_try='test -z "$ac_c_werror_flag"
19943 || test ! -s conftest.err'
ac1cb8d3
VS
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19946 ac_status=$?
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; } &&
19949 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19952 ac_status=$?
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; }; then
19955 ac_hi=-1 ac_mid=-1
19956 while :; do
19957 cat >conftest.$ac_ext <<_ACEOF
19958/* confdefs.h. */
19959_ACEOF
19960cat confdefs.h >>conftest.$ac_ext
19961cat >>conftest.$ac_ext <<_ACEOF
19962/* end confdefs.h. */
19963$ac_includes_default
19964int
19965main ()
19966{
19967static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19968test_array [0] = 0
19969
19970 ;
19971 return 0;
19972}
19973_ACEOF
19974rm -f conftest.$ac_objext
19975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19976 (eval $ac_compile) 2>conftest.er1
a848cd7e 19977 ac_status=$?
ac1cb8d3
VS
19978 grep -v '^ *+' conftest.er1 >conftest.err
19979 rm -f conftest.er1
19980 cat conftest.err >&5
a848cd7e
SC
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
3565d135
RR
19983 { ac_try='test -z "$ac_c_werror_flag"
19984 || test ! -s conftest.err'
ac1cb8d3
VS
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; }; then
19996 ac_lo=$ac_mid; break
19997else
19998 echo "$as_me: failed program was:" >&5
19999sed 's/^/| /' conftest.$ac_ext >&5
20000
20001ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20002 if test $ac_mid -le $ac_hi; then
20003 ac_lo= ac_hi=
20004 break
20005 fi
20006 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20007fi
ac1cb8d3 20008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20009 done
20010else
20011 echo "$as_me: failed program was:" >&5
20012sed 's/^/| /' conftest.$ac_ext >&5
20013
20014ac_lo= ac_hi=
20015fi
ac1cb8d3 20016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20017fi
ac1cb8d3 20018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20019# Binary search between lo and hi bounds.
20020while test "x$ac_lo" != "x$ac_hi"; do
20021 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20022 cat >conftest.$ac_ext <<_ACEOF
20023/* confdefs.h. */
20024_ACEOF
20025cat confdefs.h >>conftest.$ac_ext
20026cat >>conftest.$ac_ext <<_ACEOF
20027/* end confdefs.h. */
20028$ac_includes_default
20029int
20030main ()
20031{
20032static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20033test_array [0] = 0
20034
20035 ;
20036 return 0;
20037}
20038_ACEOF
20039rm -f conftest.$ac_objext
20040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20041 (eval $ac_compile) 2>conftest.er1
a848cd7e 20042 ac_status=$?
ac1cb8d3
VS
20043 grep -v '^ *+' conftest.er1 >conftest.err
20044 rm -f conftest.er1
20045 cat conftest.err >&5
a848cd7e
SC
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
3565d135
RR
20048 { ac_try='test -z "$ac_c_werror_flag"
20049 || test ! -s conftest.err'
ac1cb8d3
VS
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20052 ac_status=$?
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 ac_hi=$ac_mid
20062else
20063 echo "$as_me: failed program was:" >&5
20064sed 's/^/| /' conftest.$ac_ext >&5
20065
20066ac_lo=`expr '(' $ac_mid ')' + 1`
20067fi
ac1cb8d3 20068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20069done
20070case $ac_lo in
20071?*) ac_cv_sizeof_long_long=$ac_lo;;
20072'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20073See \`config.log' for more details." >&5
20074echo "$as_me: error: cannot compute sizeof (long long), 77
20075See \`config.log' for more details." >&2;}
20076 { (exit 1); exit 1; }; } ;;
20077esac
20078else
20079 if test "$cross_compiling" = yes; then
3565d135
RR
20080 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20081See \`config.log' for more details." >&5
20082echo "$as_me: error: cannot run test program while cross compiling
20083See \`config.log' for more details." >&2;}
a848cd7e
SC
20084 { (exit 1); exit 1; }; }
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
20093long longval () { return (long) (sizeof (long long)); }
20094unsigned long ulongval () { return (long) (sizeof (long long)); }
20095#include <stdio.h>
20096#include <stdlib.h>
20097int
20098main ()
20099{
20100
20101 FILE *f = fopen ("conftest.val", "w");
20102 if (! f)
20103 exit (1);
20104 if (((long) (sizeof (long long))) < 0)
20105 {
20106 long i = longval ();
20107 if (i != ((long) (sizeof (long long))))
20108 exit (1);
20109 fprintf (f, "%ld\n", i);
20110 }
20111 else
20112 {
20113 unsigned long i = ulongval ();
20114 if (i != ((long) (sizeof (long long))))
20115 exit (1);
20116 fprintf (f, "%lu\n", i);
20117 }
20118 exit (ferror (f) || fclose (f) != 0);
20119
20120 ;
20121 return 0;
20122}
20123_ACEOF
20124rm -f conftest$ac_exeext
20125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20126 (eval $ac_link) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; }; then
20135 ac_cv_sizeof_long_long=`cat conftest.val`
20136else
20137 echo "$as_me: program exited with status $ac_status" >&5
20138echo "$as_me: failed program was:" >&5
20139sed 's/^/| /' conftest.$ac_ext >&5
20140
20141( exit $ac_status )
20142{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20143See \`config.log' for more details." >&5
20144echo "$as_me: error: cannot compute sizeof (long long), 77
20145See \`config.log' for more details." >&2;}
20146 { (exit 1); exit 1; }; }
20147fi
ac1cb8d3 20148rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20149fi
20150fi
20151rm -f conftest.val
20152else
20153 ac_cv_sizeof_long_long=0
20154fi
20155fi
20156echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20157echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20158cat >>confdefs.h <<_ACEOF
20159#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20160_ACEOF
20161
20162
20163 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20164 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20165 fi
20166 ;;
20167 * )
20168 echo "$as_me:$LINENO: checking for long long" >&5
20169echo $ECHO_N "checking for long long... $ECHO_C" >&6
20170if test "${ac_cv_type_long_long+set}" = set; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
20172else
20173 cat >conftest.$ac_ext <<_ACEOF
20174/* confdefs.h. */
20175_ACEOF
20176cat confdefs.h >>conftest.$ac_ext
20177cat >>conftest.$ac_ext <<_ACEOF
20178/* end confdefs.h. */
20179$ac_includes_default
20180int
20181main ()
20182{
20183if ((long long *) 0)
20184 return 0;
20185if (sizeof (long long))
20186 return 0;
20187 ;
20188 return 0;
20189}
20190_ACEOF
20191rm -f conftest.$ac_objext
20192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20193 (eval $ac_compile) 2>conftest.er1
a848cd7e 20194 ac_status=$?
ac1cb8d3
VS
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
a848cd7e
SC
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } &&
3565d135
RR
20200 { ac_try='test -z "$ac_c_werror_flag"
20201 || test ! -s conftest.err'
ac1cb8d3
VS
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; } &&
20207 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_type_long_long=yes
20214else
20215 echo "$as_me: failed program was:" >&5
20216sed 's/^/| /' conftest.$ac_ext >&5
20217
20218ac_cv_type_long_long=no
20219fi
ac1cb8d3 20220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20221fi
20222echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20223echo "${ECHO_T}$ac_cv_type_long_long" >&6
20224
20225echo "$as_me:$LINENO: checking size of long long" >&5
20226echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20227if test "${ac_cv_sizeof_long_long+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20229else
20230 if test "$ac_cv_type_long_long" = yes; then
20231 # The cast to unsigned long works around a bug in the HP C Compiler
20232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20234 # This bug is HP SR number 8606223364.
20235 if test "$cross_compiling" = yes; then
20236 # Depending upon the size, compute the lo and hi bounds.
20237cat >conftest.$ac_ext <<_ACEOF
20238/* confdefs.h. */
20239_ACEOF
20240cat confdefs.h >>conftest.$ac_ext
20241cat >>conftest.$ac_ext <<_ACEOF
20242/* end confdefs.h. */
20243$ac_includes_default
20244int
20245main ()
20246{
20247static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20248test_array [0] = 0
20249
20250 ;
20251 return 0;
20252}
20253_ACEOF
20254rm -f conftest.$ac_objext
20255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20256 (eval $ac_compile) 2>conftest.er1
a848cd7e 20257 ac_status=$?
ac1cb8d3
VS
20258 grep -v '^ *+' conftest.er1 >conftest.err
20259 rm -f conftest.er1
20260 cat conftest.err >&5
a848cd7e
SC
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } &&
3565d135
RR
20263 { ac_try='test -z "$ac_c_werror_flag"
20264 || test ! -s conftest.err'
ac1cb8d3
VS
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266 (eval $ac_try) 2>&5
20267 ac_status=$?
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; } &&
20270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272 (eval $ac_try) 2>&5
20273 ac_status=$?
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; }; then
20276 ac_lo=0 ac_mid=0
20277 while :; do
20278 cat >conftest.$ac_ext <<_ACEOF
20279/* confdefs.h. */
20280_ACEOF
20281cat confdefs.h >>conftest.$ac_ext
20282cat >>conftest.$ac_ext <<_ACEOF
20283/* end confdefs.h. */
20284$ac_includes_default
20285int
20286main ()
20287{
20288static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20289test_array [0] = 0
20290
20291 ;
20292 return 0;
20293}
20294_ACEOF
20295rm -f conftest.$ac_objext
20296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20297 (eval $ac_compile) 2>conftest.er1
a848cd7e 20298 ac_status=$?
ac1cb8d3
VS
20299 grep -v '^ *+' conftest.er1 >conftest.err
20300 rm -f conftest.er1
20301 cat conftest.err >&5
a848cd7e
SC
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); } &&
3565d135
RR
20304 { ac_try='test -z "$ac_c_werror_flag"
20305 || test ! -s conftest.err'
ac1cb8d3
VS
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; } &&
20311 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313 (eval $ac_try) 2>&5
20314 ac_status=$?
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; }; then
20317 ac_hi=$ac_mid; break
20318else
20319 echo "$as_me: failed program was:" >&5
20320sed 's/^/| /' conftest.$ac_ext >&5
20321
20322ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20323 if test $ac_lo -le $ac_mid; then
20324 ac_lo= ac_hi=
20325 break
20326 fi
20327 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20328fi
ac1cb8d3 20329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20330 done
20331else
20332 echo "$as_me: failed program was:" >&5
20333sed 's/^/| /' conftest.$ac_ext >&5
20334
20335cat >conftest.$ac_ext <<_ACEOF
20336/* confdefs.h. */
20337_ACEOF
20338cat confdefs.h >>conftest.$ac_ext
20339cat >>conftest.$ac_ext <<_ACEOF
20340/* end confdefs.h. */
20341$ac_includes_default
20342int
20343main ()
20344{
20345static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20346test_array [0] = 0
20347
20348 ;
20349 return 0;
20350}
20351_ACEOF
20352rm -f conftest.$ac_objext
20353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20354 (eval $ac_compile) 2>conftest.er1
a848cd7e 20355 ac_status=$?
ac1cb8d3
VS
20356 grep -v '^ *+' conftest.er1 >conftest.err
20357 rm -f conftest.er1
20358 cat conftest.err >&5
a848cd7e
SC
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } &&
3565d135
RR
20361 { ac_try='test -z "$ac_c_werror_flag"
20362 || test ! -s conftest.err'
ac1cb8d3
VS
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; } &&
20368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370 (eval $ac_try) 2>&5
20371 ac_status=$?
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20374 ac_hi=-1 ac_mid=-1
20375 while :; do
20376 cat >conftest.$ac_ext <<_ACEOF
20377/* confdefs.h. */
20378_ACEOF
20379cat confdefs.h >>conftest.$ac_ext
20380cat >>conftest.$ac_ext <<_ACEOF
20381/* end confdefs.h. */
20382$ac_includes_default
20383int
20384main ()
20385{
20386static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20387test_array [0] = 0
20388
20389 ;
20390 return 0;
20391}
20392_ACEOF
20393rm -f conftest.$ac_objext
20394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20395 (eval $ac_compile) 2>conftest.er1
a848cd7e 20396 ac_status=$?
ac1cb8d3
VS
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
a848cd7e
SC
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } &&
3565d135
RR
20402 { ac_try='test -z "$ac_c_werror_flag"
20403 || test ! -s conftest.err'
ac1cb8d3
VS
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405 (eval $ac_try) 2>&5
20406 ac_status=$?
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; } &&
20409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411 (eval $ac_try) 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); }; }; then
20415 ac_lo=$ac_mid; break
20416else
20417 echo "$as_me: failed program was:" >&5
20418sed 's/^/| /' conftest.$ac_ext >&5
20419
20420ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20421 if test $ac_mid -le $ac_hi; then
20422 ac_lo= ac_hi=
20423 break
20424 fi
20425 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20426fi
ac1cb8d3 20427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20428 done
20429else
20430 echo "$as_me: failed program was:" >&5
20431sed 's/^/| /' conftest.$ac_ext >&5
20432
20433ac_lo= ac_hi=
20434fi
ac1cb8d3 20435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20436fi
ac1cb8d3 20437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20438# Binary search between lo and hi bounds.
20439while test "x$ac_lo" != "x$ac_hi"; do
20440 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20441 cat >conftest.$ac_ext <<_ACEOF
20442/* confdefs.h. */
20443_ACEOF
20444cat confdefs.h >>conftest.$ac_ext
20445cat >>conftest.$ac_ext <<_ACEOF
20446/* end confdefs.h. */
20447$ac_includes_default
20448int
20449main ()
20450{
20451static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20452test_array [0] = 0
20453
20454 ;
20455 return 0;
20456}
20457_ACEOF
20458rm -f conftest.$ac_objext
20459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20460 (eval $ac_compile) 2>conftest.er1
a848cd7e 20461 ac_status=$?
ac1cb8d3
VS
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
a848cd7e
SC
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } &&
3565d135
RR
20467 { ac_try='test -z "$ac_c_werror_flag"
20468 || test ! -s conftest.err'
ac1cb8d3
VS
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; } &&
20474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; }; then
20480 ac_hi=$ac_mid
20481else
20482 echo "$as_me: failed program was:" >&5
20483sed 's/^/| /' conftest.$ac_ext >&5
20484
20485ac_lo=`expr '(' $ac_mid ')' + 1`
20486fi
ac1cb8d3 20487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20488done
20489case $ac_lo in
20490?*) ac_cv_sizeof_long_long=$ac_lo;;
20491'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20492See \`config.log' for more details." >&5
20493echo "$as_me: error: cannot compute sizeof (long long), 77
20494See \`config.log' for more details." >&2;}
20495 { (exit 1); exit 1; }; } ;;
20496esac
20497else
20498 if test "$cross_compiling" = yes; then
3565d135
RR
20499 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20500See \`config.log' for more details." >&5
20501echo "$as_me: error: cannot run test program while cross compiling
20502See \`config.log' for more details." >&2;}
a848cd7e
SC
20503 { (exit 1); exit 1; }; }
20504else
20505 cat >conftest.$ac_ext <<_ACEOF
20506/* confdefs.h. */
20507_ACEOF
20508cat confdefs.h >>conftest.$ac_ext
20509cat >>conftest.$ac_ext <<_ACEOF
20510/* end confdefs.h. */
20511$ac_includes_default
20512long longval () { return (long) (sizeof (long long)); }
20513unsigned long ulongval () { return (long) (sizeof (long long)); }
20514#include <stdio.h>
20515#include <stdlib.h>
20516int
20517main ()
20518{
20519
20520 FILE *f = fopen ("conftest.val", "w");
20521 if (! f)
20522 exit (1);
20523 if (((long) (sizeof (long long))) < 0)
20524 {
20525 long i = longval ();
20526 if (i != ((long) (sizeof (long long))))
20527 exit (1);
20528 fprintf (f, "%ld\n", i);
20529 }
20530 else
20531 {
20532 unsigned long i = ulongval ();
20533 if (i != ((long) (sizeof (long long))))
20534 exit (1);
20535 fprintf (f, "%lu\n", i);
20536 }
20537 exit (ferror (f) || fclose (f) != 0);
20538
20539 ;
20540 return 0;
20541}
20542_ACEOF
20543rm -f conftest$ac_exeext
20544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20545 (eval $ac_link) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 ac_cv_sizeof_long_long=`cat conftest.val`
20555else
20556 echo "$as_me: program exited with status $ac_status" >&5
20557echo "$as_me: failed program was:" >&5
20558sed 's/^/| /' conftest.$ac_ext >&5
20559
20560( exit $ac_status )
20561{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20562See \`config.log' for more details." >&5
20563echo "$as_me: error: cannot compute sizeof (long long), 77
20564See \`config.log' for more details." >&2;}
20565 { (exit 1); exit 1; }; }
20566fi
ac1cb8d3 20567rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20568fi
20569fi
20570rm -f conftest.val
20571else
20572 ac_cv_sizeof_long_long=0
20573fi
20574fi
20575echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20576echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20577cat >>confdefs.h <<_ACEOF
20578#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20579_ACEOF
20580
20581
20582esac
20583
238ecede
MW
20584echo "$as_me:$LINENO: checking for wchar_t" >&5
20585echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20586if test "${ac_cv_type_wchar_t+set}" = set; then
20587 echo $ECHO_N "(cached) $ECHO_C" >&6
20588else
20589 cat >conftest.$ac_ext <<_ACEOF
20590/* confdefs.h. */
20591_ACEOF
20592cat confdefs.h >>conftest.$ac_ext
20593cat >>conftest.$ac_ext <<_ACEOF
20594/* end confdefs.h. */
20595
83d8eb47
MW
20596 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20597 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20598 # error "fake wchar_t"
20599 #endif
20600 #ifdef HAVE_WCHAR_H
20601 # ifdef __CYGWIN__
20602 # include <stddef.h>
20603 # endif
20604 # include <wchar.h>
20605 #endif
20606 #ifdef HAVE_STDLIB_H
20607 # include <stdlib.h>
20608 #endif
20609 #include <stdio.h>
20610
20611
20612
20613int
20614main ()
20615{
20616if ((wchar_t *) 0)
20617 return 0;
20618if (sizeof (wchar_t))
20619 return 0;
20620 ;
20621 return 0;
20622}
20623_ACEOF
20624rm -f conftest.$ac_objext
20625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20626 (eval $ac_compile) 2>conftest.er1
20627 ac_status=$?
20628 grep -v '^ *+' conftest.er1 >conftest.err
20629 rm -f conftest.er1
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
3565d135
RR
20633 { ac_try='test -z "$ac_c_werror_flag"
20634 || test ! -s conftest.err'
238ecede
MW
20635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636 (eval $ac_try) 2>&5
20637 ac_status=$?
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; } &&
20640 { ac_try='test -s conftest.$ac_objext'
20641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642 (eval $ac_try) 2>&5
20643 ac_status=$?
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; }; then
20646 ac_cv_type_wchar_t=yes
20647else
20648 echo "$as_me: failed program was:" >&5
20649sed 's/^/| /' conftest.$ac_ext >&5
20650
20651ac_cv_type_wchar_t=no
20652fi
20653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20654fi
20655echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20656echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20657
a848cd7e
SC
20658echo "$as_me:$LINENO: checking size of wchar_t" >&5
20659echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20660if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662else
238ecede
MW
20663 if test "$ac_cv_type_wchar_t" = yes; then
20664 # The cast to unsigned long works around a bug in the HP C Compiler
20665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20667 # This bug is HP SR number 8606223364.
20668 if test "$cross_compiling" = yes; then
20669 # Depending upon the size, compute the lo and hi bounds.
20670cat >conftest.$ac_ext <<_ACEOF
20671/* confdefs.h. */
20672_ACEOF
20673cat confdefs.h >>conftest.$ac_ext
20674cat >>conftest.$ac_ext <<_ACEOF
20675/* end confdefs.h. */
20676
83d8eb47
MW
20677 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20678 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20679 # error "fake wchar_t"
20680 #endif
20681 #ifdef HAVE_WCHAR_H
20682 # ifdef __CYGWIN__
20683 # include <stddef.h>
20684 # endif
20685 # include <wchar.h>
20686 #endif
20687 #ifdef HAVE_STDLIB_H
20688 # include <stdlib.h>
20689 #endif
20690 #include <stdio.h>
20691
20692
20693
20694int
20695main ()
20696{
20697static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20698test_array [0] = 0
20699
20700 ;
20701 return 0;
20702}
20703_ACEOF
20704rm -f conftest.$ac_objext
20705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20706 (eval $ac_compile) 2>conftest.er1
20707 ac_status=$?
20708 grep -v '^ *+' conftest.er1 >conftest.err
20709 rm -f conftest.er1
20710 cat conftest.err >&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); } &&
3565d135
RR
20713 { ac_try='test -z "$ac_c_werror_flag"
20714 || test ! -s conftest.err'
238ecede
MW
20715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716 (eval $ac_try) 2>&5
20717 ac_status=$?
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; } &&
20720 { ac_try='test -s conftest.$ac_objext'
20721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20722 (eval $ac_try) 2>&5
20723 ac_status=$?
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); }; }; then
20726 ac_lo=0 ac_mid=0
20727 while :; do
20728 cat >conftest.$ac_ext <<_ACEOF
20729/* confdefs.h. */
20730_ACEOF
20731cat confdefs.h >>conftest.$ac_ext
20732cat >>conftest.$ac_ext <<_ACEOF
20733/* end confdefs.h. */
20734
83d8eb47
MW
20735 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20736 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20737 # error "fake wchar_t"
20738 #endif
20739 #ifdef HAVE_WCHAR_H
20740 # ifdef __CYGWIN__
20741 # include <stddef.h>
20742 # endif
20743 # include <wchar.h>
20744 #endif
20745 #ifdef HAVE_STDLIB_H
20746 # include <stdlib.h>
20747 #endif
20748 #include <stdio.h>
20749
20750
20751
20752int
20753main ()
20754{
20755static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20756test_array [0] = 0
20757
20758 ;
20759 return 0;
20760}
20761_ACEOF
20762rm -f conftest.$ac_objext
20763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20764 (eval $ac_compile) 2>conftest.er1
20765 ac_status=$?
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
3565d135
RR
20771 { ac_try='test -z "$ac_c_werror_flag"
20772 || test ! -s conftest.err'
238ecede
MW
20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20775 ac_status=$?
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; } &&
20778 { ac_try='test -s conftest.$ac_objext'
20779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780 (eval $ac_try) 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
20784 ac_hi=$ac_mid; break
20785else
20786 echo "$as_me: failed program was:" >&5
20787sed 's/^/| /' conftest.$ac_ext >&5
20788
20789ac_lo=`expr $ac_mid + 1`
20790 if test $ac_lo -le $ac_mid; then
20791 ac_lo= ac_hi=
20792 break
20793 fi
20794 ac_mid=`expr 2 '*' $ac_mid + 1`
20795fi
20796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20797 done
20798else
20799 echo "$as_me: failed program was:" >&5
20800sed 's/^/| /' conftest.$ac_ext >&5
20801
20802cat >conftest.$ac_ext <<_ACEOF
20803/* confdefs.h. */
20804_ACEOF
20805cat confdefs.h >>conftest.$ac_ext
20806cat >>conftest.$ac_ext <<_ACEOF
20807/* end confdefs.h. */
20808
83d8eb47
MW
20809 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20810 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20811 # error "fake wchar_t"
20812 #endif
20813 #ifdef HAVE_WCHAR_H
20814 # ifdef __CYGWIN__
20815 # include <stddef.h>
20816 # endif
20817 # include <wchar.h>
20818 #endif
20819 #ifdef HAVE_STDLIB_H
20820 # include <stdlib.h>
20821 #endif
20822 #include <stdio.h>
20823
20824
20825
20826int
20827main ()
20828{
20829static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20830test_array [0] = 0
20831
20832 ;
20833 return 0;
20834}
20835_ACEOF
20836rm -f conftest.$ac_objext
20837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20838 (eval $ac_compile) 2>conftest.er1
20839 ac_status=$?
20840 grep -v '^ *+' conftest.er1 >conftest.err
20841 rm -f conftest.er1
20842 cat conftest.err >&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } &&
3565d135
RR
20845 { ac_try='test -z "$ac_c_werror_flag"
20846 || test ! -s conftest.err'
238ecede
MW
20847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20848 (eval $ac_try) 2>&5
20849 ac_status=$?
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); }; } &&
20852 { ac_try='test -s conftest.$ac_objext'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20855 ac_status=$?
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 ac_hi=-1 ac_mid=-1
20859 while :; do
20860 cat >conftest.$ac_ext <<_ACEOF
20861/* confdefs.h. */
20862_ACEOF
20863cat confdefs.h >>conftest.$ac_ext
20864cat >>conftest.$ac_ext <<_ACEOF
20865/* end confdefs.h. */
20866
83d8eb47
MW
20867 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20868 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20869 # error "fake wchar_t"
20870 #endif
20871 #ifdef HAVE_WCHAR_H
20872 # ifdef __CYGWIN__
20873 # include <stddef.h>
20874 # endif
20875 # include <wchar.h>
20876 #endif
20877 #ifdef HAVE_STDLIB_H
20878 # include <stdlib.h>
20879 #endif
20880 #include <stdio.h>
20881
20882
20883
20884int
20885main ()
20886{
20887static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20888test_array [0] = 0
20889
20890 ;
20891 return 0;
20892}
20893_ACEOF
20894rm -f conftest.$ac_objext
20895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20896 (eval $ac_compile) 2>conftest.er1
20897 ac_status=$?
20898 grep -v '^ *+' conftest.er1 >conftest.err
20899 rm -f conftest.er1
20900 cat conftest.err >&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } &&
3565d135
RR
20903 { ac_try='test -z "$ac_c_werror_flag"
20904 || test ! -s conftest.err'
238ecede
MW
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; } &&
20910 { ac_try='test -s conftest.$ac_objext'
20911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20912 (eval $ac_try) 2>&5
20913 ac_status=$?
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; }; then
20916 ac_lo=$ac_mid; break
20917else
20918 echo "$as_me: failed program was:" >&5
20919sed 's/^/| /' conftest.$ac_ext >&5
20920
20921ac_hi=`expr '(' $ac_mid ')' - 1`
20922 if test $ac_mid -le $ac_hi; then
20923 ac_lo= ac_hi=
20924 break
20925 fi
20926 ac_mid=`expr 2 '*' $ac_mid`
20927fi
20928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20929 done
20930else
20931 echo "$as_me: failed program was:" >&5
20932sed 's/^/| /' conftest.$ac_ext >&5
20933
20934ac_lo= ac_hi=
20935fi
20936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20937fi
20938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20939# Binary search between lo and hi bounds.
20940while test "x$ac_lo" != "x$ac_hi"; do
20941 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20942 cat >conftest.$ac_ext <<_ACEOF
20943/* confdefs.h. */
20944_ACEOF
20945cat confdefs.h >>conftest.$ac_ext
20946cat >>conftest.$ac_ext <<_ACEOF
20947/* end confdefs.h. */
20948
83d8eb47
MW
20949 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20950 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20951 # error "fake wchar_t"
20952 #endif
20953 #ifdef HAVE_WCHAR_H
20954 # ifdef __CYGWIN__
20955 # include <stddef.h>
20956 # endif
20957 # include <wchar.h>
20958 #endif
20959 #ifdef HAVE_STDLIB_H
20960 # include <stdlib.h>
20961 #endif
20962 #include <stdio.h>
a848cd7e 20963
a848cd7e 20964
a848cd7e 20965
238ecede
MW
20966int
20967main ()
20968{
20969static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20970test_array [0] = 0
a848cd7e 20971
238ecede
MW
20972 ;
20973 return 0;
20974}
20975_ACEOF
20976rm -f conftest.$ac_objext
20977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20978 (eval $ac_compile) 2>conftest.er1
20979 ac_status=$?
20980 grep -v '^ *+' conftest.er1 >conftest.err
20981 rm -f conftest.er1
20982 cat conftest.err >&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); } &&
3565d135
RR
20985 { ac_try='test -z "$ac_c_werror_flag"
20986 || test ! -s conftest.err'
238ecede
MW
20987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20988 (eval $ac_try) 2>&5
20989 ac_status=$?
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); }; } &&
20992 { ac_try='test -s conftest.$ac_objext'
20993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20994 (eval $ac_try) 2>&5
20995 ac_status=$?
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); }; }; then
20998 ac_hi=$ac_mid
20999else
21000 echo "$as_me: failed program was:" >&5
21001sed 's/^/| /' conftest.$ac_ext >&5
21002
21003ac_lo=`expr '(' $ac_mid ')' + 1`
21004fi
21005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21006done
21007case $ac_lo in
21008?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21009'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21010See \`config.log' for more details." >&5
21011echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21012See \`config.log' for more details." >&2;}
21013 { (exit 1); exit 1; }; } ;;
21014esac
21015else
21016 if test "$cross_compiling" = yes; then
3565d135
RR
21017 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21018See \`config.log' for more details." >&5
21019echo "$as_me: error: cannot run test program while cross compiling
21020See \`config.log' for more details." >&2;}
238ecede 21021 { (exit 1); exit 1; }; }
a848cd7e
SC
21022else
21023 cat >conftest.$ac_ext <<_ACEOF
21024/* confdefs.h. */
21025_ACEOF
21026cat confdefs.h >>conftest.$ac_ext
21027cat >>conftest.$ac_ext <<_ACEOF
21028/* end confdefs.h. */
21029
83d8eb47
MW
21030 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21031 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21032 # error "fake wchar_t"
21033 #endif
21034 #ifdef HAVE_WCHAR_H
21035 # ifdef __CYGWIN__
21036 # include <stddef.h>
21037 # endif
21038 # include <wchar.h>
21039 #endif
21040 #ifdef HAVE_STDLIB_H
21041 # include <stdlib.h>
21042 #endif
21043 #include <stdio.h>
21044
21045
21046
21047long longval () { return (long) (sizeof (wchar_t)); }
21048unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21049#include <stdio.h>
21050#include <stdlib.h>
21051int
21052main ()
21053{
a848cd7e 21054
238ecede
MW
21055 FILE *f = fopen ("conftest.val", "w");
21056 if (! f)
21057 exit (1);
21058 if (((long) (sizeof (wchar_t))) < 0)
21059 {
21060 long i = longval ();
21061 if (i != ((long) (sizeof (wchar_t))))
21062 exit (1);
21063 fprintf (f, "%ld\n", i);
21064 }
21065 else
21066 {
21067 unsigned long i = ulongval ();
21068 if (i != ((long) (sizeof (wchar_t))))
21069 exit (1);
21070 fprintf (f, "%lu\n", i);
21071 }
21072 exit (ferror (f) || fclose (f) != 0);
21073
21074 ;
21075 return 0;
21076}
a848cd7e
SC
21077_ACEOF
21078rm -f conftest$ac_exeext
21079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21080 (eval $ac_link) 2>&5
21081 ac_status=$?
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
238ecede 21089 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21090else
21091 echo "$as_me: program exited with status $ac_status" >&5
21092echo "$as_me: failed program was:" >&5
21093sed 's/^/| /' conftest.$ac_ext >&5
21094
21095( exit $ac_status )
238ecede
MW
21096{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21097See \`config.log' for more details." >&5
21098echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21099See \`config.log' for more details." >&2;}
21100 { (exit 1); exit 1; }; }
a848cd7e 21101fi
ac1cb8d3 21102rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21103fi
a848cd7e 21104fi
238ecede
MW
21105rm -f conftest.val
21106else
21107 ac_cv_sizeof_wchar_t=0
21108fi
21109fi
21110echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21111echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21112cat >>confdefs.h <<_ACEOF
238ecede 21113#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21114_ACEOF
21115
21116
47a7e797
MW
21117if test "$ac_cv_sizeof_wchar_t" != "0"; then
21118 wxUSE_WCHAR_T=yes
21119else
21120 wxUSE_WCHAR_T=no
21121fi
238ecede 21122
ba3d13e1
VZ
21123echo "$as_me:$LINENO: checking for va_copy" >&5
21124echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21125if test "${wx_cv_func_va_copy+set}" = set; then
21126 echo $ECHO_N "(cached) $ECHO_C" >&6
21127else
21128
21129 cat >conftest.$ac_ext <<_ACEOF
21130
21131 #include <stdarg.h>
21132 void foo(char *f, ...)
21133 {
21134 va_list ap1, ap2;
21135 va_start(ap1, f);
21136 va_copy(ap2, ap1);
21137 va_end(ap2);
21138 va_end(ap1);
21139 }
5886b072
VZ
21140 int main()
21141 {
b902e639
VZ
21142 foo("hi", 17);
21143 return 0;
5886b072 21144 }
ba3d13e1
VZ
21145_ACEOF
21146rm -f conftest.$ac_objext conftest$ac_exeext
21147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21148 (eval $ac_link) 2>conftest.er1
21149 ac_status=$?
21150 grep -v '^ *+' conftest.er1 >conftest.err
21151 rm -f conftest.er1
21152 cat conftest.err >&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } &&
3565d135
RR
21155 { ac_try='test -z "$ac_c_werror_flag"
21156 || test ! -s conftest.err'
ba3d13e1
VZ
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21159 ac_status=$?
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; } &&
21162 { ac_try='test -s conftest$ac_exeext'
21163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164 (eval $ac_try) 2>&5
21165 ac_status=$?
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); }; }; then
21168 wx_cv_func_va_copy=yes
21169else
21170 echo "$as_me: failed program was:" >&5
21171sed 's/^/| /' conftest.$ac_ext >&5
21172
21173wx_cv_func_va_copy=no
21174
21175fi
21176rm -f conftest.err conftest.$ac_objext \
21177 conftest$ac_exeext conftest.$ac_ext
21178
21179
21180fi
21181echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21182echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21183
21184if test $wx_cv_func_va_copy = "yes"; then
21185 cat >>confdefs.h <<\_ACEOF
21186#define HAVE_VA_COPY 1
21187_ACEOF
21188
21189else
21190 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21191echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21192if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21194else
21195
21196 if test "$cross_compiling" = yes; then
21197 wx_cv_type_va_list_lvalue=yes
21198
21199else
21200 cat >conftest.$ac_ext <<_ACEOF
21201
21202 #include <stdarg.h>
21203 int foo(char *f, ...)
21204 {
21205 va_list ap1, ap2;
21206 va_start(ap1, f);
21207 ap2 = ap1;
21208 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21209 return 1;
21210 va_end(ap2);
21211 va_end(ap1);
21212 return 0;
21213 }
21214 int main()
21215 {
21216 return foo("hi", 17);
21217 }
21218_ACEOF
21219rm -f conftest$ac_exeext
21220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21221 (eval $ac_link) 2>&5
21222 ac_status=$?
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226 (eval $ac_try) 2>&5
21227 ac_status=$?
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230 wx_cv_type_va_list_lvalue=yes
21231else
21232 echo "$as_me: program exited with status $ac_status" >&5
21233echo "$as_me: failed program was:" >&5
21234sed 's/^/| /' conftest.$ac_ext >&5
21235
21236( exit $ac_status )
21237wx_cv_type_va_list_lvalue=no
21238fi
21239rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21240fi
21241
21242
21243fi
21244echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21245echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21246
21247 if test $wx_cv_type_va_list_lvalue != "yes"; then
21248 cat >>confdefs.h <<\_ACEOF
21249#define VA_LIST_IS_ARRAY 1
21250_ACEOF
21251
21252 fi
21253fi
21254
a848cd7e
SC
21255# Check whether --enable-largefile or --disable-largefile was given.
21256if test "${enable_largefile+set}" = set; then
21257 enableval="$enable_largefile"
21258
21259fi;
21260if test "$enable_largefile" != no; then
21261 wx_largefile=no
21262
21263 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21264echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21265if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21267else
21268
21269 cat >conftest.$ac_ext <<_ACEOF
21270/* confdefs.h. */
21271_ACEOF
21272cat confdefs.h >>conftest.$ac_ext
21273cat >>conftest.$ac_ext <<_ACEOF
21274/* end confdefs.h. */
21275#define _FILE_OFFSET_BITS 64
21276 #include <sys/types.h>
21277int
21278main ()
21279{
21280typedef struct {
21281 unsigned int field: sizeof(off_t) == 8;
21282} wxlf;
21283
21284 ;
21285 return 0;
21286}
21287_ACEOF
21288rm -f conftest.$ac_objext
21289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21290 (eval $ac_compile) 2>conftest.er1
a848cd7e 21291 ac_status=$?
ac1cb8d3
VS
21292 grep -v '^ *+' conftest.er1 >conftest.err
21293 rm -f conftest.er1
21294 cat conftest.err >&5
a848cd7e
SC
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } &&
3565d135
RR
21297 { ac_try='test -z "$ac_c_werror_flag"
21298 || test ! -s conftest.err'
ac1cb8d3
VS
21299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300 (eval $ac_try) 2>&5
21301 ac_status=$?
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); }; } &&
21304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21306 (eval $ac_try) 2>&5
21307 ac_status=$?
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); }; }; then
21310 ac_cv_sys_file_offset_bits=64
21311else
21312 echo "$as_me: failed program was:" >&5
21313sed 's/^/| /' conftest.$ac_ext >&5
21314
21315ac_cv_sys_file_offset_bits=no
21316fi
ac1cb8d3 21317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21318
21319
21320fi
21321echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21322echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21323
21324 if test "$ac_cv_sys_file_offset_bits" != no; then
21325 wx_largefile=yes
21326 cat >>confdefs.h <<_ACEOF
21327#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21328_ACEOF
21329
21330 fi
21331
21332 if test "x$wx_largefile" != "xyes"; then
21333
21334 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21335echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21336if test "${ac_cv_sys_large_files+set}" = set; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21338else
21339
21340 cat >conftest.$ac_ext <<_ACEOF
21341/* confdefs.h. */
21342_ACEOF
21343cat confdefs.h >>conftest.$ac_ext
21344cat >>conftest.$ac_ext <<_ACEOF
21345/* end confdefs.h. */
21346#define _LARGE_FILES 1
21347 #include <sys/types.h>
21348int
21349main ()
21350{
21351typedef struct {
21352 unsigned int field: sizeof(off_t) == 8;
21353} wxlf;
21354
21355 ;
21356 return 0;
21357}
21358_ACEOF
21359rm -f conftest.$ac_objext
21360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21361 (eval $ac_compile) 2>conftest.er1
a848cd7e 21362 ac_status=$?
ac1cb8d3
VS
21363 grep -v '^ *+' conftest.er1 >conftest.err
21364 rm -f conftest.er1
21365 cat conftest.err >&5
a848cd7e
SC
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); } &&
3565d135
RR
21368 { ac_try='test -z "$ac_c_werror_flag"
21369 || test ! -s conftest.err'
ac1cb8d3
VS
21370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371 (eval $ac_try) 2>&5
21372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; } &&
21375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; }; then
21381 ac_cv_sys_large_files=1
21382else
21383 echo "$as_me: failed program was:" >&5
21384sed 's/^/| /' conftest.$ac_ext >&5
21385
21386ac_cv_sys_large_files=no
21387fi
ac1cb8d3 21388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21389
21390
21391fi
21392echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21393echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21394
21395 if test "$ac_cv_sys_large_files" != no; then
21396 wx_largefile=yes
21397 cat >>confdefs.h <<_ACEOF
21398#define _LARGE_FILES $ac_cv_sys_large_files
21399_ACEOF
21400
21401 fi
21402
21403 fi
21404
21405 echo "$as_me:$LINENO: checking if large file support is available" >&5
21406echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21407 if test "x$wx_largefile" = "xyes"; then
21408 cat >>confdefs.h <<\_ACEOF
21409#define HAVE_LARGEFILE_SUPPORT 1
21410_ACEOF
21411
21412 fi
21413 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21414echo "${ECHO_T}$wx_largefile" >&6
21415fi
21416
5b674b9d
DE
21417
21418if test "x$wx_largefile" = "xyes"; then
21419 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21420 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21421
21422 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21423 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21424echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21425if test "${wx_cv_STDC_EXT_required+set}" = set; then
21426 echo $ECHO_N "(cached) $ECHO_C" >&6
21427else
21428
21429
21430
21431 ac_ext=cc
21432ac_cpp='$CXXCPP $CPPFLAGS'
21433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21436
21437 cat >conftest.$ac_ext <<_ACEOF
21438/* confdefs.h. */
21439_ACEOF
21440cat confdefs.h >>conftest.$ac_ext
21441cat >>conftest.$ac_ext <<_ACEOF
21442/* end confdefs.h. */
21443
21444int
21445main ()
21446{
21447
21448 #ifndef __STDC_EXT__
21449 choke me
21450 #endif
21451
21452 ;
21453 return 0;
21454}
21455_ACEOF
21456rm -f conftest.$ac_objext
21457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21458 (eval $ac_compile) 2>conftest.er1
21459 ac_status=$?
21460 grep -v '^ *+' conftest.er1 >conftest.err
21461 rm -f conftest.er1
21462 cat conftest.err >&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); } &&
3565d135
RR
21465 { ac_try='test -z "$ac_cxx_werror_flag"
21466 || test ! -s conftest.err'
00421666
MW
21467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21468 (eval $ac_try) 2>&5
21469 ac_status=$?
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); }; } &&
21472 { ac_try='test -s conftest.$ac_objext'
21473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21474 (eval $ac_try) 2>&5
21475 ac_status=$?
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); }; }; then
21478 wx_cv_STDC_EXT_required=no
21479else
21480 echo "$as_me: failed program was:" >&5
21481sed 's/^/| /' conftest.$ac_ext >&5
21482
21483wx_cv_STDC_EXT_required=yes
21484
21485fi
21486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21487 ac_ext=c
21488ac_cpp='$CPP $CPPFLAGS'
21489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21491ac_compiler_gnu=$ac_cv_c_compiler_gnu
21492
21493
21494
21495fi
21496echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21497echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21498 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21499 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21500 fi
21501 fi
5b674b9d 21502 else
5ff751d6 21503 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21504 fi
21505 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21506echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21507if test "${ac_cv_sys_largefile_source+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21509else
21510 while :; do
21511 ac_cv_sys_largefile_source=no
21512 cat >conftest.$ac_ext <<_ACEOF
21513/* confdefs.h. */
21514_ACEOF
21515cat confdefs.h >>conftest.$ac_ext
21516cat >>conftest.$ac_ext <<_ACEOF
21517/* end confdefs.h. */
21518#include <stdio.h>
21519int
21520main ()
21521{
21522return !fseeko;
21523 ;
21524 return 0;
21525}
21526_ACEOF
21527rm -f conftest.$ac_objext
21528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21529 (eval $ac_compile) 2>conftest.er1
21530 ac_status=$?
21531 grep -v '^ *+' conftest.er1 >conftest.err
21532 rm -f conftest.er1
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } &&
3565d135
RR
21536 { ac_try='test -z "$ac_c_werror_flag"
21537 || test ! -s conftest.err'
5294a27e
VZ
21538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539 (eval $ac_try) 2>&5
21540 ac_status=$?
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); }; } &&
21543 { ac_try='test -s conftest.$ac_objext'
21544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545 (eval $ac_try) 2>&5
21546 ac_status=$?
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; }; then
21549 break
21550else
21551 echo "$as_me: failed program was:" >&5
21552sed 's/^/| /' conftest.$ac_ext >&5
21553
21554fi
21555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21556 cat >conftest.$ac_ext <<_ACEOF
21557/* confdefs.h. */
21558_ACEOF
21559cat confdefs.h >>conftest.$ac_ext
21560cat >>conftest.$ac_ext <<_ACEOF
21561/* end confdefs.h. */
21562#define _LARGEFILE_SOURCE 1
21563#include <stdio.h>
21564int
21565main ()
21566{
21567return !fseeko;
21568 ;
21569 return 0;
21570}
21571_ACEOF
21572rm -f conftest.$ac_objext
21573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21574 (eval $ac_compile) 2>conftest.er1
21575 ac_status=$?
21576 grep -v '^ *+' conftest.er1 >conftest.err
21577 rm -f conftest.er1
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } &&
3565d135
RR
21581 { ac_try='test -z "$ac_c_werror_flag"
21582 || test ! -s conftest.err'
5294a27e
VZ
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21585 ac_status=$?
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; } &&
21588 { ac_try='test -s conftest.$ac_objext'
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21591 ac_status=$?
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; }; then
21594 ac_cv_sys_largefile_source=1; break
21595else
21596 echo "$as_me: failed program was:" >&5
21597sed 's/^/| /' conftest.$ac_ext >&5
21598
21599fi
21600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21601 break
21602done
21603fi
21604echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21605echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21606if test "$ac_cv_sys_largefile_source" != no; then
21607
21608cat >>confdefs.h <<_ACEOF
21609#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21610_ACEOF
21611
21612fi
21613rm -f conftest*
21614
21615# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21616# in glibc 2.1.3, but that breaks too many other things.
21617# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21618echo "$as_me:$LINENO: checking for fseeko" >&5
21619echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21620if test "${ac_cv_func_fseeko+set}" = set; then
21621 echo $ECHO_N "(cached) $ECHO_C" >&6
21622else
21623 cat >conftest.$ac_ext <<_ACEOF
21624/* confdefs.h. */
21625_ACEOF
21626cat confdefs.h >>conftest.$ac_ext
21627cat >>conftest.$ac_ext <<_ACEOF
21628/* end confdefs.h. */
21629#include <stdio.h>
21630int
21631main ()
21632{
21633return fseeko && fseeko (stdin, 0, 0);
21634 ;
21635 return 0;
21636}
21637_ACEOF
21638rm -f conftest.$ac_objext conftest$ac_exeext
21639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21640 (eval $ac_link) 2>conftest.er1
21641 ac_status=$?
21642 grep -v '^ *+' conftest.er1 >conftest.err
21643 rm -f conftest.er1
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } &&
3565d135
RR
21647 { ac_try='test -z "$ac_c_werror_flag"
21648 || test ! -s conftest.err'
5294a27e
VZ
21649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650 (eval $ac_try) 2>&5
21651 ac_status=$?
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; } &&
21654 { ac_try='test -s conftest$ac_exeext'
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21657 ac_status=$?
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; }; then
21660 ac_cv_func_fseeko=yes
21661else
21662 echo "$as_me: failed program was:" >&5
21663sed 's/^/| /' conftest.$ac_ext >&5
21664
21665ac_cv_func_fseeko=no
21666fi
21667rm -f conftest.err conftest.$ac_objext \
21668 conftest$ac_exeext conftest.$ac_ext
21669fi
21670echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21671echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21672if test $ac_cv_func_fseeko = yes; then
21673
21674cat >>confdefs.h <<\_ACEOF
21675#define HAVE_FSEEKO 1
21676_ACEOF
21677
21678fi
21679
5b674b9d 21680 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 21681 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 21682 fi
a848cd7e
SC
21683fi
21684
21685echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21686echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21687if test "${ac_cv_c_bigendian+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21689else
21690 ac_cv_c_bigendian=unknown
21691# See if sys/param.h defines the BYTE_ORDER macro.
21692cat >conftest.$ac_ext <<_ACEOF
21693/* confdefs.h. */
21694_ACEOF
21695cat confdefs.h >>conftest.$ac_ext
21696cat >>conftest.$ac_ext <<_ACEOF
21697/* end confdefs.h. */
21698#include <sys/types.h>
21699#include <sys/param.h>
21700int
21701main ()
21702{
21703
21704#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21705 bogus endian macros
21706#endif
21707 ;
21708 return 0;
21709}
21710_ACEOF
21711rm -f conftest.$ac_objext
21712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21713 (eval $ac_compile) 2>conftest.er1
a848cd7e 21714 ac_status=$?
ac1cb8d3
VS
21715 grep -v '^ *+' conftest.er1 >conftest.err
21716 rm -f conftest.er1
21717 cat conftest.err >&5
a848cd7e
SC
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } &&
3565d135
RR
21720 { ac_try='test -z "$ac_c_werror_flag"
21721 || test ! -s conftest.err'
ac1cb8d3
VS
21722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723 (eval $ac_try) 2>&5
21724 ac_status=$?
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; } &&
21727 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21729 (eval $ac_try) 2>&5
21730 ac_status=$?
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); }; }; then
21733 # It does; now see whether it defined to BIG_ENDIAN or not.
21734cat >conftest.$ac_ext <<_ACEOF
21735/* confdefs.h. */
21736_ACEOF
21737cat confdefs.h >>conftest.$ac_ext
21738cat >>conftest.$ac_ext <<_ACEOF
21739/* end confdefs.h. */
21740#include <sys/types.h>
21741#include <sys/param.h>
21742int
21743main ()
21744{
21745
21746#if BYTE_ORDER != BIG_ENDIAN
21747 not big endian
21748#endif
21749 ;
21750 return 0;
21751}
21752_ACEOF
21753rm -f conftest.$ac_objext
21754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21755 (eval $ac_compile) 2>conftest.er1
a848cd7e 21756 ac_status=$?
ac1cb8d3
VS
21757 grep -v '^ *+' conftest.er1 >conftest.err
21758 rm -f conftest.er1
21759 cat conftest.err >&5
a848cd7e
SC
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); } &&
3565d135
RR
21762 { ac_try='test -z "$ac_c_werror_flag"
21763 || test ! -s conftest.err'
ac1cb8d3
VS
21764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21765 (eval $ac_try) 2>&5
21766 ac_status=$?
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; } &&
21769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21771 (eval $ac_try) 2>&5
21772 ac_status=$?
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); }; }; then
21775 ac_cv_c_bigendian=yes
21776else
21777 echo "$as_me: failed program was:" >&5
21778sed 's/^/| /' conftest.$ac_ext >&5
21779
21780ac_cv_c_bigendian=no
21781fi
ac1cb8d3 21782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21783else
21784 echo "$as_me: failed program was:" >&5
21785sed 's/^/| /' conftest.$ac_ext >&5
21786
21787fi
ac1cb8d3 21788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21789if test $ac_cv_c_bigendian = unknown; then
21790if test "$cross_compiling" = yes; then
21791 ac_cv_c_bigendian=unknown
21792else
21793 cat >conftest.$ac_ext <<_ACEOF
21794/* confdefs.h. */
21795_ACEOF
21796cat confdefs.h >>conftest.$ac_ext
21797cat >>conftest.$ac_ext <<_ACEOF
21798/* end confdefs.h. */
21799main () {
21800 /* Are we little or big endian? From Harbison&Steele. */
21801 union
21802 {
21803 long l;
21804 char c[sizeof (long)];
21805 } u;
21806 u.l = 1;
21807 exit (u.c[sizeof (long) - 1] == 1);
21808}
21809_ACEOF
21810rm -f conftest$ac_exeext
21811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21812 (eval $ac_link) 2>&5
21813 ac_status=$?
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5
21818 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; }; then
21821 ac_cv_c_bigendian=no
21822else
21823 echo "$as_me: program exited with status $ac_status" >&5
21824echo "$as_me: failed program was:" >&5
21825sed 's/^/| /' conftest.$ac_ext >&5
21826
21827( exit $ac_status )
21828ac_cv_c_bigendian=yes
21829fi
ac1cb8d3 21830rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21831fi
21832fi
21833fi
21834echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21835echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21836if test $ac_cv_c_bigendian = unknown; then
21837 { 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
21838echo "$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;}
21839fi
21840if test $ac_cv_c_bigendian = yes; then
21841 cat >>confdefs.h <<\_ACEOF
21842#define WORDS_BIGENDIAN 1
21843_ACEOF
21844
21845fi
21846
21847
21848ac_ext=cc
21849ac_cpp='$CXXCPP $CPPFLAGS'
21850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21853echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21854echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21855if test -z "$CXXCPP"; then
21856 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21858else
21859 # Double quotes because CXXCPP needs to be expanded
21860 for CXXCPP in "$CXX -E" "/lib/cpp"
21861 do
21862 ac_preproc_ok=false
21863for ac_cxx_preproc_warn_flag in '' yes
21864do
21865 # Use a header file that comes with gcc, so configuring glibc
21866 # with a fresh cross-compiler works.
21867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21868 # <limits.h> exists even on freestanding compilers.
21869 # On the NeXT, cc -E runs the code through the compiler's parser,
21870 # not just through cpp. "Syntax error" is here to catch this case.
21871 cat >conftest.$ac_ext <<_ACEOF
21872/* confdefs.h. */
21873_ACEOF
21874cat confdefs.h >>conftest.$ac_ext
21875cat >>conftest.$ac_ext <<_ACEOF
21876/* end confdefs.h. */
21877#ifdef __STDC__
21878# include <limits.h>
21879#else
21880# include <assert.h>
21881#endif
ac1cb8d3 21882 Syntax error
a848cd7e
SC
21883_ACEOF
21884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21886 ac_status=$?
21887 grep -v '^ *+' conftest.er1 >conftest.err
21888 rm -f conftest.er1
21889 cat conftest.err >&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); } >/dev/null; then
21892 if test -s conftest.err; then
21893 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21894 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21895 else
21896 ac_cpp_err=
21897 fi
21898else
21899 ac_cpp_err=yes
21900fi
21901if test -z "$ac_cpp_err"; then
21902 :
21903else
21904 echo "$as_me: failed program was:" >&5
21905sed 's/^/| /' conftest.$ac_ext >&5
21906
21907 # Broken: fails on valid input.
21908continue
21909fi
21910rm -f conftest.err conftest.$ac_ext
21911
21912 # OK, works on sane cases. Now check whether non-existent headers
21913 # can be detected and how.
21914 cat >conftest.$ac_ext <<_ACEOF
21915/* confdefs.h. */
21916_ACEOF
21917cat confdefs.h >>conftest.$ac_ext
21918cat >>conftest.$ac_ext <<_ACEOF
21919/* end confdefs.h. */
21920#include <ac_nonexistent.h>
21921_ACEOF
21922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21924 ac_status=$?
21925 grep -v '^ *+' conftest.er1 >conftest.err
21926 rm -f conftest.er1
21927 cat conftest.err >&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); } >/dev/null; then
21930 if test -s conftest.err; then
21931 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21932 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21933 else
21934 ac_cpp_err=
21935 fi
21936else
21937 ac_cpp_err=yes
21938fi
21939if test -z "$ac_cpp_err"; then
21940 # Broken: success on invalid input.
21941continue
21942else
21943 echo "$as_me: failed program was:" >&5
21944sed 's/^/| /' conftest.$ac_ext >&5
21945
21946 # Passes both tests.
21947ac_preproc_ok=:
21948break
21949fi
21950rm -f conftest.err conftest.$ac_ext
21951
21952done
21953# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21954rm -f conftest.err conftest.$ac_ext
21955if $ac_preproc_ok; then
21956 break
21957fi
21958
21959 done
21960 ac_cv_prog_CXXCPP=$CXXCPP
21961
21962fi
21963 CXXCPP=$ac_cv_prog_CXXCPP
21964else
21965 ac_cv_prog_CXXCPP=$CXXCPP
21966fi
21967echo "$as_me:$LINENO: result: $CXXCPP" >&5
21968echo "${ECHO_T}$CXXCPP" >&6
21969ac_preproc_ok=false
21970for ac_cxx_preproc_warn_flag in '' yes
21971do
21972 # Use a header file that comes with gcc, so configuring glibc
21973 # with a fresh cross-compiler works.
21974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21975 # <limits.h> exists even on freestanding compilers.
21976 # On the NeXT, cc -E runs the code through the compiler's parser,
21977 # not just through cpp. "Syntax error" is here to catch this case.
21978 cat >conftest.$ac_ext <<_ACEOF
21979/* confdefs.h. */
21980_ACEOF
21981cat confdefs.h >>conftest.$ac_ext
21982cat >>conftest.$ac_ext <<_ACEOF
21983/* end confdefs.h. */
21984#ifdef __STDC__
21985# include <limits.h>
21986#else
21987# include <assert.h>
21988#endif
ac1cb8d3 21989 Syntax error
a848cd7e
SC
21990_ACEOF
21991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21993 ac_status=$?
21994 grep -v '^ *+' conftest.er1 >conftest.err
21995 rm -f conftest.er1
21996 cat conftest.err >&5
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); } >/dev/null; then
21999 if test -s conftest.err; then
22000 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22001 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22002 else
22003 ac_cpp_err=
22004 fi
22005else
22006 ac_cpp_err=yes
22007fi
22008if test -z "$ac_cpp_err"; then
22009 :
22010else
22011 echo "$as_me: failed program was:" >&5
22012sed 's/^/| /' conftest.$ac_ext >&5
22013
22014 # Broken: fails on valid input.
22015continue
22016fi
22017rm -f conftest.err conftest.$ac_ext
22018
22019 # OK, works on sane cases. Now check whether non-existent headers
22020 # can be detected and how.
22021 cat >conftest.$ac_ext <<_ACEOF
22022/* confdefs.h. */
22023_ACEOF
22024cat confdefs.h >>conftest.$ac_ext
22025cat >>conftest.$ac_ext <<_ACEOF
22026/* end confdefs.h. */
22027#include <ac_nonexistent.h>
22028_ACEOF
22029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22031 ac_status=$?
22032 grep -v '^ *+' conftest.er1 >conftest.err
22033 rm -f conftest.er1
22034 cat conftest.err >&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } >/dev/null; then
22037 if test -s conftest.err; then
22038 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22039 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22040 else
22041 ac_cpp_err=
22042 fi
22043else
22044 ac_cpp_err=yes
22045fi
22046if test -z "$ac_cpp_err"; then
22047 # Broken: success on invalid input.
22048continue
22049else
22050 echo "$as_me: failed program was:" >&5
22051sed 's/^/| /' conftest.$ac_ext >&5
22052
22053 # Passes both tests.
22054ac_preproc_ok=:
22055break
22056fi
22057rm -f conftest.err conftest.$ac_ext
22058
22059done
22060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22061rm -f conftest.err conftest.$ac_ext
22062if $ac_preproc_ok; then
22063 :
22064else
22065 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22066See \`config.log' for more details." >&5
22067echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22068See \`config.log' for more details." >&2;}
22069 { (exit 1); exit 1; }; }
22070fi
22071
22072ac_ext=cc
22073ac_cpp='$CXXCPP $CPPFLAGS'
22074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22077
22078
22079
22080
22081
22082 ac_ext=cc
22083ac_cpp='$CXXCPP $CPPFLAGS'
22084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22087
22088
22089
22090for ac_header in iostream
22091do
22092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22093if eval "test \"\${$as_ac_Header+set}\" = set"; then
22094 echo "$as_me:$LINENO: checking for $ac_header" >&5
22095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22096if eval "test \"\${$as_ac_Header+set}\" = set"; then
22097 echo $ECHO_N "(cached) $ECHO_C" >&6
22098fi
22099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22101else
22102 # Is the header compilable?
22103echo "$as_me:$LINENO: checking $ac_header usability" >&5
22104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22105cat >conftest.$ac_ext <<_ACEOF
22106/* confdefs.h. */
22107_ACEOF
22108cat confdefs.h >>conftest.$ac_ext
22109cat >>conftest.$ac_ext <<_ACEOF
22110/* end confdefs.h. */
22111$ac_includes_default
22112#include <$ac_header>
22113_ACEOF
22114rm -f conftest.$ac_objext
22115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22116 (eval $ac_compile) 2>conftest.er1
a848cd7e 22117 ac_status=$?
ac1cb8d3
VS
22118 grep -v '^ *+' conftest.er1 >conftest.err
22119 rm -f conftest.er1
22120 cat conftest.err >&5
a848cd7e
SC
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); } &&
3565d135
RR
22123 { ac_try='test -z "$ac_cxx_werror_flag"
22124 || test ! -s conftest.err'
ac1cb8d3
VS
22125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22126 (eval $ac_try) 2>&5
22127 ac_status=$?
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; } &&
22130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22132 (eval $ac_try) 2>&5
22133 ac_status=$?
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); }; }; then
22136 ac_header_compiler=yes
22137else
22138 echo "$as_me: failed program was:" >&5
22139sed 's/^/| /' conftest.$ac_ext >&5
22140
22141ac_header_compiler=no
22142fi
ac1cb8d3 22143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22145echo "${ECHO_T}$ac_header_compiler" >&6
22146
22147# Is the header present?
22148echo "$as_me:$LINENO: checking $ac_header presence" >&5
22149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22150cat >conftest.$ac_ext <<_ACEOF
22151/* confdefs.h. */
22152_ACEOF
22153cat confdefs.h >>conftest.$ac_ext
22154cat >>conftest.$ac_ext <<_ACEOF
22155/* end confdefs.h. */
22156#include <$ac_header>
22157_ACEOF
22158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22160 ac_status=$?
22161 grep -v '^ *+' conftest.er1 >conftest.err
22162 rm -f conftest.er1
22163 cat conftest.err >&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); } >/dev/null; then
22166 if test -s conftest.err; then
22167 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22168 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22169 else
22170 ac_cpp_err=
22171 fi
22172else
22173 ac_cpp_err=yes
22174fi
22175if test -z "$ac_cpp_err"; then
22176 ac_header_preproc=yes
22177else
22178 echo "$as_me: failed program was:" >&5
22179sed 's/^/| /' conftest.$ac_ext >&5
22180
22181 ac_header_preproc=no
22182fi
22183rm -f conftest.err conftest.$ac_ext
22184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22185echo "${ECHO_T}$ac_header_preproc" >&6
22186
22187# So? What about this header?
ac1cb8d3
VS
22188case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22189 yes:no: )
a848cd7e
SC
22190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22194 ac_header_preproc=yes
a848cd7e 22195 ;;
ac1cb8d3 22196 no:yes:* )
a848cd7e
SC
22197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22200echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22204echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22209 (
22210 cat <<\_ASBOX
ac1cb8d3
VS
22211## ----------------------------------------- ##
22212## Report this to wx-dev@lists.wxwidgets.org ##
22213## ----------------------------------------- ##
a848cd7e
SC
22214_ASBOX
22215 ) |
22216 sed "s/^/$as_me: WARNING: /" >&2
22217 ;;
22218esac
22219echo "$as_me:$LINENO: checking for $ac_header" >&5
22220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22221if eval "test \"\${$as_ac_Header+set}\" = set"; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22223else
ac1cb8d3 22224 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22225fi
22226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22228
22229fi
22230if test `eval echo '${'$as_ac_Header'}'` = yes; then
22231 cat >>confdefs.h <<_ACEOF
22232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22233_ACEOF
22234
22235fi
22236
22237done
22238
22239
22240 if test "$ac_cv_header_iostream" = "yes" ; then
22241 :
22242 else
22243 cat >>confdefs.h <<\_ACEOF
22244#define wxUSE_IOSTREAMH 1
22245_ACEOF
22246
22247 fi
22248
22249 ac_ext=c
22250ac_cpp='$CPP $CPPFLAGS'
22251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22253ac_compiler_gnu=$ac_cv_c_compiler_gnu
22254
22255
22256
22257
22258 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22259echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22260if test "${wx_cv_cpp_bool+set}" = set; then
22261 echo $ECHO_N "(cached) $ECHO_C" >&6
22262else
22263
22264
22265
22266 ac_ext=cc
22267ac_cpp='$CXXCPP $CPPFLAGS'
22268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22271
22272
22273 cat >conftest.$ac_ext <<_ACEOF
22274/* confdefs.h. */
22275_ACEOF
22276cat confdefs.h >>conftest.$ac_ext
22277cat >>conftest.$ac_ext <<_ACEOF
22278/* end confdefs.h. */
22279
22280
22281int
22282main ()
22283{
22284
22285 bool b = true;
22286
22287 return 0;
22288
22289 ;
22290 return 0;
22291}
22292_ACEOF
22293rm -f conftest.$ac_objext
22294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22295 (eval $ac_compile) 2>conftest.er1
a848cd7e 22296 ac_status=$?
ac1cb8d3
VS
22297 grep -v '^ *+' conftest.er1 >conftest.err
22298 rm -f conftest.er1
22299 cat conftest.err >&5
a848cd7e
SC
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } &&
3565d135
RR
22302 { ac_try='test -z "$ac_cxx_werror_flag"
22303 || test ! -s conftest.err'
ac1cb8d3
VS
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22306 ac_status=$?
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; } &&
22309 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22311 (eval $ac_try) 2>&5
22312 ac_status=$?
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); }; }; then
22315
22316 wx_cv_cpp_bool=yes
22317
22318else
22319 echo "$as_me: failed program was:" >&5
22320sed 's/^/| /' conftest.$ac_ext >&5
22321
22322
22323 wx_cv_cpp_bool=no
22324
22325
22326fi
ac1cb8d3 22327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22328
22329 ac_ext=c
22330ac_cpp='$CPP $CPPFLAGS'
22331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22333ac_compiler_gnu=$ac_cv_c_compiler_gnu
22334
22335
22336fi
22337echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22338echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22339
22340 if test "$wx_cv_cpp_bool" = "yes"; then
22341 cat >>confdefs.h <<\_ACEOF
22342#define HAVE_BOOL 1
22343_ACEOF
22344
22345 fi
22346
22347
22348
22349 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22350echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22351if test "${wx_cv_explicit+set}" = set; then
22352 echo $ECHO_N "(cached) $ECHO_C" >&6
22353else
22354
22355
22356
22357 ac_ext=cc
22358ac_cpp='$CXXCPP $CPPFLAGS'
22359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22362
22363
22364 cat >conftest.$ac_ext <<_ACEOF
22365/* confdefs.h. */
22366_ACEOF
22367cat confdefs.h >>conftest.$ac_ext
22368cat >>conftest.$ac_ext <<_ACEOF
22369/* end confdefs.h. */
22370
22371 class Foo { public: explicit Foo(int) {} };
22372
22373int
22374main ()
22375{
22376
22377 return 0;
22378
22379 ;
22380 return 0;
22381}
22382_ACEOF
22383rm -f conftest.$ac_objext
22384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22385 (eval $ac_compile) 2>conftest.er1
a848cd7e 22386 ac_status=$?
ac1cb8d3
VS
22387 grep -v '^ *+' conftest.er1 >conftest.err
22388 rm -f conftest.er1
22389 cat conftest.err >&5
a848cd7e
SC
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); } &&
3565d135
RR
22392 { ac_try='test -z "$ac_cxx_werror_flag"
22393 || test ! -s conftest.err'
ac1cb8d3
VS
22394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395 (eval $ac_try) 2>&5
22396 ac_status=$?
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; } &&
22399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401 (eval $ac_try) 2>&5
22402 ac_status=$?
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); }; }; then
22405
22406 cat >conftest.$ac_ext <<_ACEOF
22407/* confdefs.h. */
22408_ACEOF
22409cat confdefs.h >>conftest.$ac_ext
22410cat >>conftest.$ac_ext <<_ACEOF
22411/* end confdefs.h. */
22412
22413 class Foo { public: explicit Foo(int) {} };
22414 static void TakeFoo(const Foo& foo) { }
22415
22416int
22417main ()
22418{
22419
22420 TakeFoo(17);
22421 return 0;
22422
22423 ;
22424 return 0;
22425}
22426_ACEOF
22427rm -f conftest.$ac_objext
22428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22429 (eval $ac_compile) 2>conftest.er1
a848cd7e 22430 ac_status=$?
ac1cb8d3
VS
22431 grep -v '^ *+' conftest.er1 >conftest.err
22432 rm -f conftest.er1
22433 cat conftest.err >&5
a848cd7e
SC
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); } &&
3565d135
RR
22436 { ac_try='test -z "$ac_cxx_werror_flag"
22437 || test ! -s conftest.err'
ac1cb8d3
VS
22438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439 (eval $ac_try) 2>&5
22440 ac_status=$?
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); }; } &&
22443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445 (eval $ac_try) 2>&5
22446 ac_status=$?
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); }; }; then
22449 wx_cv_explicit=no
22450else
22451 echo "$as_me: failed program was:" >&5
22452sed 's/^/| /' conftest.$ac_ext >&5
22453
22454wx_cv_explicit=yes
22455
22456fi
ac1cb8d3 22457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22458
22459else
22460 echo "$as_me: failed program was:" >&5
22461sed 's/^/| /' conftest.$ac_ext >&5
22462
22463wx_cv_explicit=no
22464
22465fi
ac1cb8d3 22466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22467
22468 ac_ext=c
22469ac_cpp='$CPP $CPPFLAGS'
22470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22472ac_compiler_gnu=$ac_cv_c_compiler_gnu
22473
22474
22475fi
22476echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22477echo "${ECHO_T}$wx_cv_explicit" >&6
22478
22479 if test "$wx_cv_explicit" = "yes"; then
22480 cat >>confdefs.h <<\_ACEOF
22481#define HAVE_EXPLICIT 1
22482_ACEOF
22483
22484 fi
22485
22486
22487echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22488echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22489if test "${ac_cv_cxx_const_cast+set}" = set; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22491else
22492
22493
22494 ac_ext=cc
22495ac_cpp='$CXXCPP $CPPFLAGS'
22496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22499
22500 cat >conftest.$ac_ext <<_ACEOF
22501/* confdefs.h. */
22502_ACEOF
22503cat confdefs.h >>conftest.$ac_ext
22504cat >>conftest.$ac_ext <<_ACEOF
22505/* end confdefs.h. */
22506
22507int
22508main ()
22509{
22510int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22511 ;
22512 return 0;
22513}
22514_ACEOF
22515rm -f conftest.$ac_objext
22516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22517 (eval $ac_compile) 2>conftest.er1
a848cd7e 22518 ac_status=$?
ac1cb8d3
VS
22519 grep -v '^ *+' conftest.er1 >conftest.err
22520 rm -f conftest.er1
22521 cat conftest.err >&5
a848cd7e
SC
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); } &&
3565d135
RR
22524 { ac_try='test -z "$ac_cxx_werror_flag"
22525 || test ! -s conftest.err'
ac1cb8d3
VS
22526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22527 (eval $ac_try) 2>&5
22528 ac_status=$?
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); }; } &&
22531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22534 ac_status=$?
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; }; then
22537 ac_cv_cxx_const_cast=yes
22538else
22539 echo "$as_me: failed program was:" >&5
22540sed 's/^/| /' conftest.$ac_ext >&5
22541
22542ac_cv_cxx_const_cast=no
22543fi
ac1cb8d3 22544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22545 ac_ext=c
22546ac_cpp='$CPP $CPPFLAGS'
22547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22549ac_compiler_gnu=$ac_cv_c_compiler_gnu
22550
22551
22552fi
22553echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22554echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22555if test "$ac_cv_cxx_const_cast" = yes; then
22556
22557cat >>confdefs.h <<\_ACEOF
22558#define HAVE_CONST_CAST
22559_ACEOF
22560
22561fi
22562
7714864e
RL
22563echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22564echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22565if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22566 echo $ECHO_N "(cached) $ECHO_C" >&6
22567else
22568
22569
22570 ac_ext=cc
22571ac_cpp='$CXXCPP $CPPFLAGS'
22572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
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#include <typeinfo>
22583class Base { public : Base () {} virtual void f () = 0;};
22584class Derived : public Base { public : Derived () {} virtual void f () {} };
22585class Unrelated { public : Unrelated () {} };
22586int g (Unrelated&) { return 0; }
22587int
22588main ()
22589{
22590
22591Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22592 ;
22593 return 0;
22594}
22595_ACEOF
22596rm -f conftest.$ac_objext
22597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22598 (eval $ac_compile) 2>conftest.er1
22599 ac_status=$?
22600 grep -v '^ *+' conftest.er1 >conftest.err
22601 rm -f conftest.er1
22602 cat conftest.err >&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } &&
3565d135
RR
22605 { ac_try='test -z "$ac_cxx_werror_flag"
22606 || test ! -s conftest.err'
7714864e
RL
22607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22608 (eval $ac_try) 2>&5
22609 ac_status=$?
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); }; } &&
22612 { ac_try='test -s conftest.$ac_objext'
22613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614 (eval $ac_try) 2>&5
22615 ac_status=$?
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); }; }; then
22618 ac_cv_cxx_reinterpret_cast=yes
22619else
22620 echo "$as_me: failed program was:" >&5
22621sed 's/^/| /' conftest.$ac_ext >&5
22622
22623ac_cv_cxx_reinterpret_cast=no
22624fi
22625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22626 ac_ext=c
22627ac_cpp='$CPP $CPPFLAGS'
22628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22630ac_compiler_gnu=$ac_cv_c_compiler_gnu
22631
22632
22633fi
22634echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22635echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22636if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22637
22638cat >>confdefs.h <<\_ACEOF
22639#define HAVE_REINTERPRET_CAST
22640_ACEOF
22641
22642fi
22643
a848cd7e
SC
22644echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22645echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22646if test "${ac_cv_cxx_static_cast+set}" = set; then
22647 echo $ECHO_N "(cached) $ECHO_C" >&6
22648else
22649
22650
22651 ac_ext=cc
22652ac_cpp='$CXXCPP $CPPFLAGS'
22653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22656
22657 cat >conftest.$ac_ext <<_ACEOF
22658/* confdefs.h. */
22659_ACEOF
22660cat confdefs.h >>conftest.$ac_ext
22661cat >>conftest.$ac_ext <<_ACEOF
22662/* end confdefs.h. */
22663#include <typeinfo>
22664class Base { public : Base () {} virtual void f () = 0; };
22665class Derived : public Base { public : Derived () {} virtual void f () {} };
22666int g (Derived&) { return 0; }
22667int
22668main ()
22669{
22670
22671Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22672 ;
22673 return 0;
22674}
22675_ACEOF
22676rm -f conftest.$ac_objext
22677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22678 (eval $ac_compile) 2>conftest.er1
a848cd7e 22679 ac_status=$?
ac1cb8d3
VS
22680 grep -v '^ *+' conftest.er1 >conftest.err
22681 rm -f conftest.er1
22682 cat conftest.err >&5
a848cd7e
SC
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } &&
3565d135
RR
22685 { ac_try='test -z "$ac_cxx_werror_flag"
22686 || test ! -s conftest.err'
ac1cb8d3
VS
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22689 ac_status=$?
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; } &&
22692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694 (eval $ac_try) 2>&5
22695 ac_status=$?
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; }; then
22698 ac_cv_cxx_static_cast=yes
22699else
22700 echo "$as_me: failed program was:" >&5
22701sed 's/^/| /' conftest.$ac_ext >&5
22702
22703ac_cv_cxx_static_cast=no
22704fi
ac1cb8d3 22705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22706 ac_ext=c
22707ac_cpp='$CPP $CPPFLAGS'
22708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22710ac_compiler_gnu=$ac_cv_c_compiler_gnu
22711
22712
22713fi
22714echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22715echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22716if test "$ac_cv_cxx_static_cast" = yes; then
22717
22718cat >>confdefs.h <<\_ACEOF
22719#define HAVE_STATIC_CAST
22720_ACEOF
22721
22722fi
22723
22724
3c28b7cb 22725if test "x$SUNCXX" = xyes; then
c92ad099 22726 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
22727fi
22728
9122d155 22729if test "x$SUNCC" = xyes; then
c92ad099 22730 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
22731fi
22732
0ad5d837 22733if test "x$SGICC" = "xyes"; then
c92ad099 22734 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
22735fi
22736if test "x$SGICXX" = "xyes"; then
c92ad099 22737 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
22738fi
22739
2eef8513 22740if test "x$HPCC" = "xyes"; then
c92ad099 22741 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
22742fi
22743if test "x$HPCXX" = "xyes"; then
c92ad099 22744 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
22745fi
22746
22747if test "x$COMPAQCXX" = "xyes"; then
22748 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22749fi
22750
f56c22b4 22751if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22752 ac_ext=cc
22753ac_cpp='$CXXCPP $CPPFLAGS'
22754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22757
22758
f56c22b4
MW
22759 if test "$wxUSE_UNICODE" = "yes"; then
22760 std_string="std::wstring"
22761 char_type="wchar_t"
22762 else
22763 std_string="std::string"
22764 char_type="char"
22765 fi
22766
22767 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22768echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22769 cat >conftest.$ac_ext <<_ACEOF
22770/* confdefs.h. */
22771_ACEOF
22772cat confdefs.h >>conftest.$ac_ext
22773cat >>conftest.$ac_ext <<_ACEOF
22774/* end confdefs.h. */
22775#include <string>
a848cd7e
SC
22776int
22777main ()
22778{
f56c22b4 22779$std_string foo;
a848cd7e
SC
22780 ;
22781 return 0;
22782}
22783_ACEOF
22784rm -f conftest.$ac_objext
22785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22786 (eval $ac_compile) 2>conftest.er1
a848cd7e 22787 ac_status=$?
ac1cb8d3
VS
22788 grep -v '^ *+' conftest.er1 >conftest.err
22789 rm -f conftest.er1
22790 cat conftest.err >&5
a848cd7e
SC
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } &&
3565d135
RR
22793 { ac_try='test -z "$ac_cxx_werror_flag"
22794 || test ! -s conftest.err'
ac1cb8d3
VS
22795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22796 (eval $ac_try) 2>&5
22797 ac_status=$?
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); }; } &&
22800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22802 (eval $ac_try) 2>&5
22803 ac_status=$?
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); }; }; then
22806 echo "$as_me:$LINENO: result: yes" >&5
22807echo "${ECHO_T}yes" >&6
0a08f02a
MB
22808 cat >>confdefs.h <<\_ACEOF
22809#define HAVE_STD_WSTRING 1
22810_ACEOF
22811
a848cd7e
SC
22812else
22813 echo "$as_me: failed program was:" >&5
22814sed 's/^/| /' conftest.$ac_ext >&5
22815
22816echo "$as_me:$LINENO: result: no" >&5
22817echo "${ECHO_T}no" >&6
f56c22b4
MW
22818 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22819echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22820 cat >conftest.$ac_ext <<_ACEOF
22821/* confdefs.h. */
22822_ACEOF
22823cat confdefs.h >>conftest.$ac_ext
22824cat >>conftest.$ac_ext <<_ACEOF
22825/* end confdefs.h. */
22826
22827 #ifdef HAVE_WCHAR_H
22828 # ifdef __CYGWIN__
22829 # include <stddef.h>
22830 # endif
22831 # include <wchar.h>
22832 #endif
22833 #ifdef HAVE_STDLIB_H
22834 # include <stdlib.h>
22835 #endif
22836 #include <stdio.h>
22837 #include <string>
22838
22839int
22840main ()
22841{
f56c22b4
MW
22842std::basic_string<$char_type> foo;
22843 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22844 ;
22845 return 0;
22846}
22847_ACEOF
22848rm -f conftest.$ac_objext
22849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22850 (eval $ac_compile) 2>conftest.er1
22851 ac_status=$?
22852 grep -v '^ *+' conftest.er1 >conftest.err
22853 rm -f conftest.er1
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } &&
3565d135
RR
22857 { ac_try='test -z "$ac_cxx_werror_flag"
22858 || test ! -s conftest.err'
0a08f02a
MB
22859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860 (eval $ac_try) 2>&5
22861 ac_status=$?
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }; } &&
22864 { ac_try='test -s conftest.$ac_objext'
22865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866 (eval $ac_try) 2>&5
22867 ac_status=$?
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); }; }; then
22870 echo "$as_me:$LINENO: result: yes" >&5
22871echo "${ECHO_T}yes" >&6
22872else
22873 echo "$as_me: failed program was:" >&5
22874sed 's/^/| /' conftest.$ac_ext >&5
22875
22876echo "$as_me:$LINENO: result: no" >&5
22877echo "${ECHO_T}no" >&6
f56c22b4 22878 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22879 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22880echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22881 { (exit 1); exit 1; }; }
22882 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22883 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22884echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22885 { (exit 1); exit 1; }; }
f56c22b4
MW
22886 else
22887 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22888echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22889 wxUSE_STD_STRING=no
22890 fi
22891
0a08f02a 22892
a848cd7e 22893fi
ac1cb8d3 22894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22895
0a08f02a
MB
22896fi
22897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22898
22899 ac_ext=c
22900ac_cpp='$CPP $CPPFLAGS'
22901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22903ac_compiler_gnu=$ac_cv_c_compiler_gnu
22904
22905fi
22906
22907if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22908 ac_ext=cc
22909ac_cpp='$CXXCPP $CPPFLAGS'
22910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22913
22914
22915 echo "$as_me:$LINENO: checking for std::istream" >&5
22916echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22917if test "${ac_cv_type_std__istream+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22919else
22920 cat >conftest.$ac_ext <<_ACEOF
22921/* confdefs.h. */
22922_ACEOF
22923cat confdefs.h >>conftest.$ac_ext
22924cat >>conftest.$ac_ext <<_ACEOF
22925/* end confdefs.h. */
22926#include <iostream>
22927
22928int
22929main ()
22930{
22931if ((std::istream *) 0)
22932 return 0;
22933if (sizeof (std::istream))
22934 return 0;
22935 ;
22936 return 0;
22937}
22938_ACEOF
22939rm -f conftest.$ac_objext
22940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22941 (eval $ac_compile) 2>conftest.er1
22942 ac_status=$?
22943 grep -v '^ *+' conftest.er1 >conftest.err
22944 rm -f conftest.er1
22945 cat conftest.err >&5
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); } &&
3565d135
RR
22948 { ac_try='test -z "$ac_cxx_werror_flag"
22949 || test ! -s conftest.err'
f56c22b4
MW
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); }; } &&
22955 { ac_try='test -s conftest.$ac_objext'
22956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957 (eval $ac_try) 2>&5
22958 ac_status=$?
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); }; }; then
22961 ac_cv_type_std__istream=yes
22962else
22963 echo "$as_me: failed program was:" >&5
22964sed 's/^/| /' conftest.$ac_ext >&5
22965
22966ac_cv_type_std__istream=no
22967fi
22968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22969fi
22970echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22971echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22972if test $ac_cv_type_std__istream = yes; then
22973
22974cat >>confdefs.h <<_ACEOF
22975#define HAVE_STD__ISTREAM 1
22976_ACEOF
22977
22978
22979else
22980 wxUSE_STD_IOSTREAM=no
22981fi
22982echo "$as_me:$LINENO: checking for std::ostream" >&5
22983echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22984if test "${ac_cv_type_std__ostream+set}" = set; then
22985 echo $ECHO_N "(cached) $ECHO_C" >&6
22986else
22987 cat >conftest.$ac_ext <<_ACEOF
22988/* confdefs.h. */
22989_ACEOF
22990cat confdefs.h >>conftest.$ac_ext
22991cat >>conftest.$ac_ext <<_ACEOF
22992/* end confdefs.h. */
22993#include <iostream>
22994
22995int
22996main ()
22997{
22998if ((std::ostream *) 0)
22999 return 0;
23000if (sizeof (std::ostream))
23001 return 0;
23002 ;
23003 return 0;
23004}
23005_ACEOF
23006rm -f conftest.$ac_objext
23007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23008 (eval $ac_compile) 2>conftest.er1
23009 ac_status=$?
23010 grep -v '^ *+' conftest.er1 >conftest.err
23011 rm -f conftest.er1
23012 cat conftest.err >&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } &&
3565d135
RR
23015 { ac_try='test -z "$ac_cxx_werror_flag"
23016 || test ! -s conftest.err'
f56c22b4
MW
23017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23018 (eval $ac_try) 2>&5
23019 ac_status=$?
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); }; } &&
23022 { ac_try='test -s conftest.$ac_objext'
23023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024 (eval $ac_try) 2>&5
23025 ac_status=$?
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); }; }; then
23028 ac_cv_type_std__ostream=yes
23029else
23030 echo "$as_me: failed program was:" >&5
23031sed 's/^/| /' conftest.$ac_ext >&5
23032
23033ac_cv_type_std__ostream=no
23034fi
23035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23036fi
23037echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23038echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23039if test $ac_cv_type_std__ostream = yes; then
23040
23041cat >>confdefs.h <<_ACEOF
23042#define HAVE_STD__OSTREAM 1
23043_ACEOF
23044
23045
23046else
23047 wxUSE_STD_IOSTREAM=no
23048fi
23049
23050
23051 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23052 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23053 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23054echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23055 { (exit 1); exit 1; }; }
23056 else
23057 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23058echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23059 fi
f56c22b4
MW
23060 fi
23061
23062 ac_ext=c
23063ac_cpp='$CPP $CPPFLAGS'
23064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
23066ac_compiler_gnu=$ac_cv_c_compiler_gnu
23067
23068fi
23069
23070if test "$wxUSE_STL" = "yes"; then
23071 ac_ext=cc
23072ac_cpp='$CXXCPP $CPPFLAGS'
23073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23076
23077
23078 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23079echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23080 cat >conftest.$ac_ext <<_ACEOF
23081/* confdefs.h. */
23082_ACEOF
23083cat confdefs.h >>conftest.$ac_ext
23084cat >>conftest.$ac_ext <<_ACEOF
23085/* end confdefs.h. */
23086#include <string>
0a08f02a
MB
23087 #include <functional>
23088 #include <algorithm>
23089 #include <vector>
23090 #include <list>
a848cd7e
SC
23091int
23092main ()
23093{
0a08f02a
MB
23094std::vector<int> moo;
23095 std::list<int> foo;
23096 std::vector<int>::iterator it =
23097 std::find_if(moo.begin(), moo.end(),
23098 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23099 ;
23100 return 0;
23101}
23102_ACEOF
23103rm -f conftest.$ac_objext
23104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23105 (eval $ac_compile) 2>conftest.er1
a848cd7e 23106 ac_status=$?
ac1cb8d3
VS
23107 grep -v '^ *+' conftest.er1 >conftest.err
23108 rm -f conftest.er1
23109 cat conftest.err >&5
a848cd7e
SC
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); } &&
3565d135
RR
23112 { ac_try='test -z "$ac_cxx_werror_flag"
23113 || test ! -s conftest.err'
ac1cb8d3
VS
23114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23115 (eval $ac_try) 2>&5
23116 ac_status=$?
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); }; } &&
23119 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23121 (eval $ac_try) 2>&5
23122 ac_status=$?
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); }; }; then
23125 echo "$as_me:$LINENO: result: yes" >&5
23126echo "${ECHO_T}yes" >&6
a848cd7e
SC
23127else
23128 echo "$as_me: failed program was:" >&5
23129sed 's/^/| /' conftest.$ac_ext >&5
23130
23131echo "$as_me:$LINENO: result: no" >&5
23132echo "${ECHO_T}no" >&6
0a08f02a
MB
23133 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23134echo "$as_me: error: Basic STL functionality missing" >&2;}
23135 { (exit 1); exit 1; }; }
a848cd7e 23136fi
ac1cb8d3 23137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23138
23139 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23140echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23141 cat >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 <string>
23148int
23149main ()
23150{
23151std::string foo, bar;
23152 foo.compare(bar);
23153 foo.compare(1, 1, bar);
23154 foo.compare(1, 1, bar, 1, 1);
23155 foo.compare("");
23156 foo.compare(1, 1, "");
23157 foo.compare(1, 1, "", 2);
23158 ;
23159 return 0;
23160}
23161_ACEOF
23162rm -f conftest.$ac_objext
23163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23164 (eval $ac_compile) 2>conftest.er1
a848cd7e 23165 ac_status=$?
ac1cb8d3
VS
23166 grep -v '^ *+' conftest.er1 >conftest.err
23167 rm -f conftest.er1
23168 cat conftest.err >&5
a848cd7e
SC
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); } &&
3565d135
RR
23171 { ac_try='test -z "$ac_cxx_werror_flag"
23172 || test ! -s conftest.err'
ac1cb8d3
VS
23173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174 (eval $ac_try) 2>&5
23175 ac_status=$?
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; } &&
23178 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23181 ac_status=$?
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; }; then
23184 echo "$as_me:$LINENO: result: yes" >&5
23185echo "${ECHO_T}yes" >&6
23186 cat >>confdefs.h <<\_ACEOF
23187#define HAVE_STD_STRING_COMPARE 1
23188_ACEOF
23189
23190else
23191 echo "$as_me: failed program was:" >&5
23192sed 's/^/| /' conftest.$ac_ext >&5
23193
23194echo "$as_me:$LINENO: result: no" >&5
23195echo "${ECHO_T}no" >&6
23196fi
ac1cb8d3 23197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23198
23199 if test "${ac_cv_header_hash_map+set}" = set; then
23200 echo "$as_me:$LINENO: checking for hash_map" >&5
23201echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23202if test "${ac_cv_header_hash_map+set}" = set; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23204fi
23205echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23206echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23207else
23208 # Is the header compilable?
23209echo "$as_me:$LINENO: checking hash_map usability" >&5
23210echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23211cat >conftest.$ac_ext <<_ACEOF
23212/* confdefs.h. */
23213_ACEOF
23214cat confdefs.h >>conftest.$ac_ext
23215cat >>conftest.$ac_ext <<_ACEOF
23216/* end confdefs.h. */
23217$ac_includes_default
23218#include <hash_map>
23219_ACEOF
23220rm -f conftest.$ac_objext
23221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23222 (eval $ac_compile) 2>conftest.er1
bdcade0a 23223 ac_status=$?
ac1cb8d3
VS
23224 grep -v '^ *+' conftest.er1 >conftest.err
23225 rm -f conftest.er1
23226 cat conftest.err >&5
bdcade0a
MB
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); } &&
3565d135
RR
23229 { ac_try='test -z "$ac_cxx_werror_flag"
23230 || test ! -s conftest.err'
ac1cb8d3
VS
23231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232 (eval $ac_try) 2>&5
23233 ac_status=$?
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); }; } &&
23236 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; }; then
23242 ac_header_compiler=yes
23243else
23244 echo "$as_me: failed program was:" >&5
23245sed 's/^/| /' conftest.$ac_ext >&5
23246
23247ac_header_compiler=no
23248fi
ac1cb8d3 23249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23250echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23251echo "${ECHO_T}$ac_header_compiler" >&6
23252
23253# Is the header present?
23254echo "$as_me:$LINENO: checking hash_map presence" >&5
23255echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23256cat >conftest.$ac_ext <<_ACEOF
23257/* confdefs.h. */
23258_ACEOF
23259cat confdefs.h >>conftest.$ac_ext
23260cat >>conftest.$ac_ext <<_ACEOF
23261/* end confdefs.h. */
23262#include <hash_map>
23263_ACEOF
23264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23266 ac_status=$?
23267 grep -v '^ *+' conftest.er1 >conftest.err
23268 rm -f conftest.er1
23269 cat conftest.err >&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); } >/dev/null; then
23272 if test -s conftest.err; then
23273 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23274 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23275 else
23276 ac_cpp_err=
23277 fi
23278else
23279 ac_cpp_err=yes
23280fi
23281if test -z "$ac_cpp_err"; then
23282 ac_header_preproc=yes
23283else
23284 echo "$as_me: failed program was:" >&5
23285sed 's/^/| /' conftest.$ac_ext >&5
23286
23287 ac_header_preproc=no
23288fi
23289rm -f conftest.err conftest.$ac_ext
23290echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23291echo "${ECHO_T}$ac_header_preproc" >&6
23292
23293# So? What about this header?
ac1cb8d3
VS
23294case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23295 yes:no: )
bdcade0a
MB
23296 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23297echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23298 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23299echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23300 ac_header_preproc=yes
bdcade0a 23301 ;;
ac1cb8d3 23302 no:yes:* )
bdcade0a
MB
23303 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23304echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23305 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23306echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23307 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23308echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23309 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23310echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23311 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23312echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23313 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23314echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23315 (
23316 cat <<\_ASBOX
ac1cb8d3
VS
23317## ----------------------------------------- ##
23318## Report this to wx-dev@lists.wxwidgets.org ##
23319## ----------------------------------------- ##
bdcade0a
MB
23320_ASBOX
23321 ) |
23322 sed "s/^/$as_me: WARNING: /" >&2
23323 ;;
23324esac
23325echo "$as_me:$LINENO: checking for hash_map" >&5
23326echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23327if test "${ac_cv_header_hash_map+set}" = set; then
23328 echo $ECHO_N "(cached) $ECHO_C" >&6
23329else
23330 ac_cv_header_hash_map=$ac_header_preproc
23331fi
23332echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23333echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23334
23335fi
23336if test $ac_cv_header_hash_map = yes; then
23337 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23338echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23339 cat >conftest.$ac_ext <<_ACEOF
23340/* confdefs.h. */
23341_ACEOF
23342cat confdefs.h >>conftest.$ac_ext
23343cat >>conftest.$ac_ext <<_ACEOF
23344/* end confdefs.h. */
23345#include <hash_map>
23346 #include <hash_set>
23347int
23348main ()
23349{
23350std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23351 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23352 ;
23353 return 0;
23354}
23355_ACEOF
23356rm -f conftest.$ac_objext
23357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23358 (eval $ac_compile) 2>conftest.er1
bdcade0a 23359 ac_status=$?
ac1cb8d3
VS
23360 grep -v '^ *+' conftest.er1 >conftest.err
23361 rm -f conftest.er1
23362 cat conftest.err >&5
bdcade0a
MB
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } &&
3565d135
RR
23365 { ac_try='test -z "$ac_cxx_werror_flag"
23366 || test ! -s conftest.err'
ac1cb8d3
VS
23367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368 (eval $ac_try) 2>&5
23369 ac_status=$?
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); }; } &&
23372 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374 (eval $ac_try) 2>&5
23375 ac_status=$?
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); }; }; then
23378 echo "$as_me:$LINENO: result: yes" >&5
23379echo "${ECHO_T}yes" >&6
23380 cat >>confdefs.h <<\_ACEOF
23381#define HAVE_HASH_MAP 1
23382_ACEOF
23383
23384 cat >>confdefs.h <<\_ACEOF
23385#define HAVE_STD_HASH_MAP 1
23386_ACEOF
23387
23388else
23389 echo "$as_me: failed program was:" >&5
23390sed 's/^/| /' conftest.$ac_ext >&5
23391
23392echo "$as_me:$LINENO: result: no" >&5
23393echo "${ECHO_T}no" >&6
23394fi
ac1cb8d3 23395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23396
23397fi
23398
23399
23400
23401 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23402 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23403echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23404if test "${ac_cv_header_ext_hash_map+set}" = set; then
23405 echo $ECHO_N "(cached) $ECHO_C" >&6
23406fi
23407echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23408echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23409else
23410 # Is the header compilable?
23411echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23412echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23413cat >conftest.$ac_ext <<_ACEOF
23414/* confdefs.h. */
23415_ACEOF
23416cat confdefs.h >>conftest.$ac_ext
23417cat >>conftest.$ac_ext <<_ACEOF
23418/* end confdefs.h. */
23419$ac_includes_default
23420#include <ext/hash_map>
23421_ACEOF
23422rm -f conftest.$ac_objext
23423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23424 (eval $ac_compile) 2>conftest.er1
bdcade0a 23425 ac_status=$?
ac1cb8d3
VS
23426 grep -v '^ *+' conftest.er1 >conftest.err
23427 rm -f conftest.er1
23428 cat conftest.err >&5
bdcade0a
MB
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); } &&
3565d135
RR
23431 { ac_try='test -z "$ac_cxx_werror_flag"
23432 || test ! -s conftest.err'
ac1cb8d3
VS
23433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434 (eval $ac_try) 2>&5
23435 ac_status=$?
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); }; } &&
23438 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440 (eval $ac_try) 2>&5
23441 ac_status=$?
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); }; }; then
23444 ac_header_compiler=yes
23445else
23446 echo "$as_me: failed program was:" >&5
23447sed 's/^/| /' conftest.$ac_ext >&5
23448
23449ac_header_compiler=no
23450fi
ac1cb8d3 23451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23453echo "${ECHO_T}$ac_header_compiler" >&6
23454
23455# Is the header present?
23456echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23457echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23458cat >conftest.$ac_ext <<_ACEOF
23459/* confdefs.h. */
23460_ACEOF
23461cat confdefs.h >>conftest.$ac_ext
23462cat >>conftest.$ac_ext <<_ACEOF
23463/* end confdefs.h. */
23464#include <ext/hash_map>
23465_ACEOF
23466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } >/dev/null; then
23474 if test -s conftest.err; then
23475 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23476 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23477 else
23478 ac_cpp_err=
23479 fi
23480else
23481 ac_cpp_err=yes
23482fi
23483if test -z "$ac_cpp_err"; then
23484 ac_header_preproc=yes
23485else
23486 echo "$as_me: failed program was:" >&5
23487sed 's/^/| /' conftest.$ac_ext >&5
23488
23489 ac_header_preproc=no
23490fi
23491rm -f conftest.err conftest.$ac_ext
23492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23493echo "${ECHO_T}$ac_header_preproc" >&6
23494
23495# So? What about this header?
ac1cb8d3
VS
23496case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23497 yes:no: )
bdcade0a
MB
23498 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23499echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23500 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23501echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23502 ac_header_preproc=yes
bdcade0a 23503 ;;
ac1cb8d3 23504 no:yes:* )
bdcade0a
MB
23505 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23506echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23507 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23508echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23509 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23510echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23511 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23512echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23513 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23514echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23515 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23516echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23517 (
23518 cat <<\_ASBOX
ac1cb8d3
VS
23519## ----------------------------------------- ##
23520## Report this to wx-dev@lists.wxwidgets.org ##
23521## ----------------------------------------- ##
bdcade0a
MB
23522_ASBOX
23523 ) |
23524 sed "s/^/$as_me: WARNING: /" >&2
23525 ;;
23526esac
23527echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23528echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23529if test "${ac_cv_header_ext_hash_map+set}" = set; then
23530 echo $ECHO_N "(cached) $ECHO_C" >&6
23531else
23532 ac_cv_header_ext_hash_map=$ac_header_preproc
23533fi
23534echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23535echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23536
23537fi
23538if test $ac_cv_header_ext_hash_map = yes; then
23539 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23540echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23541 cat >conftest.$ac_ext <<_ACEOF
23542/* confdefs.h. */
23543_ACEOF
23544cat confdefs.h >>conftest.$ac_ext
23545cat >>conftest.$ac_ext <<_ACEOF
23546/* end confdefs.h. */
23547#include <ext/hash_map>
23548 #include <ext/hash_set>
23549int
23550main ()
23551{
23552__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23553 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23554 ;
23555 return 0;
23556}
23557_ACEOF
23558rm -f conftest.$ac_objext
23559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23560 (eval $ac_compile) 2>conftest.er1
bdcade0a 23561 ac_status=$?
ac1cb8d3
VS
23562 grep -v '^ *+' conftest.er1 >conftest.err
23563 rm -f conftest.er1
23564 cat conftest.err >&5
bdcade0a
MB
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } &&
3565d135
RR
23567 { ac_try='test -z "$ac_cxx_werror_flag"
23568 || test ! -s conftest.err'
ac1cb8d3
VS
23569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570 (eval $ac_try) 2>&5
23571 ac_status=$?
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); }; } &&
23574 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576 (eval $ac_try) 2>&5
23577 ac_status=$?
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; }; then
23580 echo "$as_me:$LINENO: result: yes" >&5
23581echo "${ECHO_T}yes" >&6
23582 cat >>confdefs.h <<\_ACEOF
23583#define HAVE_EXT_HASH_MAP 1
23584_ACEOF
23585
23586 cat >>confdefs.h <<\_ACEOF
23587#define HAVE_GNU_CXX_HASH_MAP 1
23588_ACEOF
23589
23590else
23591 echo "$as_me: failed program was:" >&5
23592sed 's/^/| /' conftest.$ac_ext >&5
23593
23594echo "$as_me:$LINENO: result: no" >&5
23595echo "${ECHO_T}no" >&6
23596fi
ac1cb8d3 23597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23598
23599fi
23600
23601
a848cd7e
SC
23602
23603 ac_ext=c
23604ac_cpp='$CPP $CPPFLAGS'
23605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23607ac_compiler_gnu=$ac_cv_c_compiler_gnu
23608
23609fi
23610
23611
23612SEARCH_INCLUDE="\
23613 /usr/local/include \
23614 \
23615 /usr/Motif-2.1/include \
23616 /usr/Motif-1.2/include \
23617 /usr/include/Motif1.2 \
a848cd7e
SC
23618 \
23619 /usr/dt/include \
23620 /usr/openwin/include \
23621 \
23622 /usr/include/Xm \
23623 \
23624 /usr/X11R6/include \
23625 /usr/X11R6.4/include \
23626 /usr/X11R5/include \
23627 /usr/X11R4/include \
23628 \
23629 /usr/include/X11R6 \
23630 /usr/include/X11R5 \
23631 /usr/include/X11R4 \
23632 \
23633 /usr/local/X11R6/include \
23634 /usr/local/X11R5/include \
23635 /usr/local/X11R4/include \
23636 \
23637 /usr/local/include/X11R6 \
23638 /usr/local/include/X11R5 \
23639 /usr/local/include/X11R4 \
23640 \
23641 /usr/X11/include \
23642 /usr/include/X11 \
23643 /usr/local/X11/include \
23644 /usr/local/include/X11 \
23645 \
a848cd7e 23646 /usr/XFree86/include/X11 \
e051b34e
MW
23647 /usr/pkg/include \
23648 \
a848cd7e
SC
23649 /usr/openwin/share/include"
23650
6f9cf1e6 23651echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23652echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23653
23654case "${host}" in
23655 *-*-irix6* )
23656 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23658else
23659
c687b303
VZ
23660 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23661 for e in a so sl dylib dll.a; do
23662 libc="$d/libc.$e"
23663 if test -f $libc; then
23664 save_LIBS="$LIBS"
23665 LIBS="$libc"
23666 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23667int main() { return 0; }
23668_ACEOF
23669rm -f conftest.$ac_objext conftest$ac_exeext
23670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23671 (eval $ac_link) 2>conftest.er1
23672 ac_status=$?
23673 grep -v '^ *+' conftest.er1 >conftest.err
23674 rm -f conftest.er1
23675 cat conftest.err >&5
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } &&
3565d135
RR
23678 { ac_try='test -z "$ac_c_werror_flag"
23679 || test ! -s conftest.err'
0ad5d837
VZ
23680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23681 (eval $ac_try) 2>&5
23682 ac_status=$?
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); }; } &&
23685 { ac_try='test -s conftest$ac_exeext'
23686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23687 (eval $ac_try) 2>&5
23688 ac_status=$?
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); }; }; then
23691 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23692else
23693 echo "$as_me: failed program was:" >&5
23694sed 's/^/| /' conftest.$ac_ext >&5
23695
23696fi
23697rm -f conftest.err conftest.$ac_objext \
23698 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23699 LIBS="$save_LIBS"
23700 if test "x$wx_cv_std_libpath" != "x"; then
23701 break 2
23702 fi
23703 fi
23704 done
23705 done
23706 if test "x$wx_cv_std_libpath" = "x"; then
23707 wx_cv_std_libpath="lib"
0ad5d837 23708 fi
0ad5d837
VZ
23709
23710
23711fi
6f9cf1e6
MW
23712
23713 ;;
23714
23715 *-*-solaris2* )
23716 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23717 wx_cv_std_libpath="lib/64"
23718 else
23719 wx_cv_std_libpath="lib"
23720 fi
23721 ;;
23722
23723 *-*-linux* )
23724 if test "$ac_cv_sizeof_void_p" = 8 -a \
23725 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23726 wx_cv_std_libpath="lib64"
23727 else
23728 wx_cv_std_libpath="lib"
23729 fi
c687b303
VZ
23730 ;;
23731
23732 *)
23733 wx_cv_std_libpath="lib";
23734 ;;
23735esac
0ad5d837 23736
6f9cf1e6
MW
23737echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23738echo "${ECHO_T}$wx_cv_std_libpath" >&6
23739
23740SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23741
3eca31dc
MW
23742if test "$build" != "$host" -a "$GCC" = yes; then
23743 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23744 cross_root=`dirname $cross_root`
23745 cross_root=`dirname $cross_root`
23746
23747 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23748 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23749 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23750
23751 if test -z "$PKG_CONFIG_PATH"; then
23752 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23753 export PKG_CONFIG_PATH
23754 fi
23755
23756 if test -z "$x_includes" -o "$x_includes" = NONE; then
23757
23758ac_find_includes=
23759for ac_dir in $SEARCH_INCLUDE /usr/include;
23760 do
23761 if test -f "$ac_dir/X11/Intrinsic.h"; then
23762 ac_find_includes=$ac_dir
23763 break
23764 fi
23765 done
23766
23767 x_includes=$ac_find_includes
23768 fi
23769 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23770
0ad5d837
VZ
23771 ac_find_libraries=
23772 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23773 do
23774 for ac_extension in a so sl dylib dll.a; do
23775 if test -f "$ac_dir/libXt.$ac_extension"; then
23776 ac_find_libraries=$ac_dir
23777 break 2
23778 fi
23779 done
23780 done
23781
23782 x_libraries=$ac_find_libraries
23783 fi
23784 fi
23785fi
23786
a848cd7e
SC
23787
23788cat >confcache <<\_ACEOF
23789# This file is a shell script that caches the results of configure
23790# tests run on this system so they can be shared between configure
23791# scripts and configure runs, see configure's option --config-cache.
23792# It is not useful on other systems. If it contains results you don't
23793# want to keep, you may remove or edit it.
23794#
23795# config.status only pays attention to the cache file if you give it
23796# the --recheck option to rerun configure.
23797#
23798# `ac_cv_env_foo' variables (set or unset) will be overridden when
23799# loading this file, other *unset* `ac_cv_foo' will be assigned the
23800# following values.
23801
23802_ACEOF
23803
23804# The following way of writing the cache mishandles newlines in values,
23805# but we know of no workaround that is simple, portable, and efficient.
23806# So, don't put newlines in cache variables' values.
23807# Ultrix sh set writes to stderr and can't be redirected directly,
23808# and sets the high bit in the cache file unless we assign to the vars.
23809{
23810 (set) 2>&1 |
23811 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23812 *ac_space=\ *)
23813 # `set' does not quote correctly, so add quotes (double-quote
23814 # substitution turns \\\\ into \\, and sed turns \\ into \).
23815 sed -n \
ac1cb8d3
VS
23816 "s/'/'\\\\''/g;
23817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23818 ;;
23819 *)
23820 # `set' quotes correctly as required by POSIX, so do not add quotes.
23821 sed -n \
ac1cb8d3 23822 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23823 ;;
23824 esac;
23825} |
23826 sed '
23827 t clear
23828 : clear
23829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23830 t end
23831 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23832 : end' >>confcache
23833if diff $cache_file confcache >/dev/null 2>&1; then :; else
23834 if test -w $cache_file; then
23835 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23836 cat confcache >$cache_file
23837 else
23838 echo "not updating unwritable cache $cache_file"
23839 fi
23840fi
23841rm -f confcache
23842
23843if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23844 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23845echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23846if test "${wx_cv_lib_glibc21+set}" = set; then
23847 echo $ECHO_N "(cached) $ECHO_C" >&6
23848else
23849
23850 cat >conftest.$ac_ext <<_ACEOF
23851/* confdefs.h. */
23852_ACEOF
23853cat confdefs.h >>conftest.$ac_ext
23854cat >>conftest.$ac_ext <<_ACEOF
23855/* end confdefs.h. */
23856#include <features.h>
23857int
23858main ()
23859{
23860
23861 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23862 not glibc 2.1
a848cd7e
SC
23863 #endif
23864
23865 ;
23866 return 0;
23867}
23868_ACEOF
23869rm -f conftest.$ac_objext
23870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23871 (eval $ac_compile) 2>conftest.er1
a848cd7e 23872 ac_status=$?
ac1cb8d3
VS
23873 grep -v '^ *+' conftest.er1 >conftest.err
23874 rm -f conftest.er1
23875 cat conftest.err >&5
a848cd7e
SC
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); } &&
3565d135
RR
23878 { ac_try='test -z "$ac_c_werror_flag"
23879 || test ! -s conftest.err'
ac1cb8d3
VS
23880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23881 (eval $ac_try) 2>&5
23882 ac_status=$?
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); }; } &&
23885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23887 (eval $ac_try) 2>&5
23888 ac_status=$?
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); }; }; then
23891
23892 wx_cv_lib_glibc21=yes
23893
23894else
23895 echo "$as_me: failed program was:" >&5
23896sed 's/^/| /' conftest.$ac_ext >&5
23897
23898
23899 wx_cv_lib_glibc21=no
23900
23901
23902fi
ac1cb8d3 23903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23904
23905fi
23906echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23907echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23908 if test "$wx_cv_lib_glibc21" = "yes"; then
23909 cat >>confdefs.h <<\_ACEOF
23910#define wxHAVE_GLIBC2 1
23911_ACEOF
23912
23913 fi
23914fi
23915
23916if test "x$wx_cv_lib_glibc21" = "xyes"; then
23917 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23918 cat >>confdefs.h <<\_ACEOF
23919#define _GNU_SOURCE 1
23920_ACEOF
23921
23922 fi
23923fi
23924
23925
23926
23927if test "$wxUSE_REGEX" != "no"; then
23928 cat >>confdefs.h <<\_ACEOF
23929#define wxUSE_REGEX 1
23930_ACEOF
23931
23932
23933 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23934 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23935echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23936 wxUSE_REGEX=builtin
23937 fi
23938
23939 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23940 if test "${ac_cv_header_regex_h+set}" = set; then
23941 echo "$as_me:$LINENO: checking for regex.h" >&5
23942echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23943if test "${ac_cv_header_regex_h+set}" = set; then
23944 echo $ECHO_N "(cached) $ECHO_C" >&6
23945fi
23946echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23947echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23948else
23949 # Is the header compilable?
23950echo "$as_me:$LINENO: checking regex.h usability" >&5
23951echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23952cat >conftest.$ac_ext <<_ACEOF
23953/* confdefs.h. */
23954_ACEOF
23955cat confdefs.h >>conftest.$ac_ext
23956cat >>conftest.$ac_ext <<_ACEOF
23957/* end confdefs.h. */
23958$ac_includes_default
23959#include <regex.h>
23960_ACEOF
23961rm -f conftest.$ac_objext
23962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23963 (eval $ac_compile) 2>conftest.er1
a848cd7e 23964 ac_status=$?
ac1cb8d3
VS
23965 grep -v '^ *+' conftest.er1 >conftest.err
23966 rm -f conftest.er1
23967 cat conftest.err >&5
a848cd7e
SC
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); } &&
3565d135
RR
23970 { ac_try='test -z "$ac_c_werror_flag"
23971 || test ! -s conftest.err'
ac1cb8d3
VS
23972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23973 (eval $ac_try) 2>&5
23974 ac_status=$?
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); }; } &&
23977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23979 (eval $ac_try) 2>&5
23980 ac_status=$?
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); }; }; then
23983 ac_header_compiler=yes
23984else
23985 echo "$as_me: failed program was:" >&5
23986sed 's/^/| /' conftest.$ac_ext >&5
23987
23988ac_header_compiler=no
23989fi
ac1cb8d3 23990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23992echo "${ECHO_T}$ac_header_compiler" >&6
23993
23994# Is the header present?
23995echo "$as_me:$LINENO: checking regex.h presence" >&5
23996echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23997cat >conftest.$ac_ext <<_ACEOF
23998/* confdefs.h. */
23999_ACEOF
24000cat confdefs.h >>conftest.$ac_ext
24001cat >>conftest.$ac_ext <<_ACEOF
24002/* end confdefs.h. */
24003#include <regex.h>
24004_ACEOF
24005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24007 ac_status=$?
24008 grep -v '^ *+' conftest.er1 >conftest.err
24009 rm -f conftest.er1
24010 cat conftest.err >&5
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); } >/dev/null; then
24013 if test -s conftest.err; then
24014 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24016 else
24017 ac_cpp_err=
24018 fi
24019else
24020 ac_cpp_err=yes
24021fi
24022if test -z "$ac_cpp_err"; then
24023 ac_header_preproc=yes
24024else
24025 echo "$as_me: failed program was:" >&5
24026sed 's/^/| /' conftest.$ac_ext >&5
24027
24028 ac_header_preproc=no
24029fi
24030rm -f conftest.err conftest.$ac_ext
24031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24032echo "${ECHO_T}$ac_header_preproc" >&6
24033
24034# So? What about this header?
ac1cb8d3
VS
24035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24036 yes:no: )
a848cd7e
SC
24037 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24038echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24039 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24040echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24041 ac_header_preproc=yes
a848cd7e 24042 ;;
ac1cb8d3 24043 no:yes:* )
a848cd7e
SC
24044 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24045echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24046 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24047echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24048 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24049echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24050 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24051echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24052 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24053echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24054 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24055echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24056 (
24057 cat <<\_ASBOX
ac1cb8d3
VS
24058## ----------------------------------------- ##
24059## Report this to wx-dev@lists.wxwidgets.org ##
24060## ----------------------------------------- ##
a848cd7e
SC
24061_ASBOX
24062 ) |
24063 sed "s/^/$as_me: WARNING: /" >&2
24064 ;;
24065esac
24066echo "$as_me:$LINENO: checking for regex.h" >&5
24067echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24068if test "${ac_cv_header_regex_h+set}" = set; then
24069 echo $ECHO_N "(cached) $ECHO_C" >&6
24070else
24071 ac_cv_header_regex_h=$ac_header_preproc
24072fi
24073echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24074echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24075
24076fi
24077if test $ac_cv_header_regex_h = yes; then
24078
ab0f0edd
MW
24079
24080for ac_func in regcomp re_search
a848cd7e
SC
24081do
24082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24083echo "$as_me:$LINENO: checking for $ac_func" >&5
24084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24085if eval "test \"\${$as_ac_var+set}\" = set"; then
24086 echo $ECHO_N "(cached) $ECHO_C" >&6
24087else
24088 cat >conftest.$ac_ext <<_ACEOF
24089/* confdefs.h. */
24090_ACEOF
24091cat confdefs.h >>conftest.$ac_ext
24092cat >>conftest.$ac_ext <<_ACEOF
24093/* end confdefs.h. */
ac1cb8d3
VS
24094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24096#define $ac_func innocuous_$ac_func
24097
a848cd7e
SC
24098/* System header to define __stub macros and hopefully few prototypes,
24099 which can conflict with char $ac_func (); below.
24100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24101 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24102
a848cd7e
SC
24103#ifdef __STDC__
24104# include <limits.h>
24105#else
24106# include <assert.h>
24107#endif
ac1cb8d3
VS
24108
24109#undef $ac_func
24110
a848cd7e
SC
24111/* Override any gcc2 internal prototype to avoid an error. */
24112#ifdef __cplusplus
24113extern "C"
24114{
24115#endif
24116/* We use char because int might match the return type of a gcc2
24117 builtin and then its argument prototype would still apply. */
24118char $ac_func ();
24119/* The GNU C library defines this for functions which it implements
24120 to always fail with ENOSYS. Some functions are actually named
24121 something starting with __ and the normal name is an alias. */
24122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24123choke me
24124#else
24125char (*f) () = $ac_func;
24126#endif
24127#ifdef __cplusplus
24128}
24129#endif
24130
24131int
24132main ()
24133{
24134return f != $ac_func;
24135 ;
24136 return 0;
24137}
24138_ACEOF
24139rm -f conftest.$ac_objext conftest$ac_exeext
24140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24141 (eval $ac_link) 2>conftest.er1
a848cd7e 24142 ac_status=$?
ac1cb8d3
VS
24143 grep -v '^ *+' conftest.er1 >conftest.err
24144 rm -f conftest.er1
24145 cat conftest.err >&5
a848cd7e
SC
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); } &&
3565d135
RR
24148 { ac_try='test -z "$ac_c_werror_flag"
24149 || test ! -s conftest.err'
ac1cb8d3
VS
24150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24151 (eval $ac_try) 2>&5
24152 ac_status=$?
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); }; } &&
24155 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24157 (eval $ac_try) 2>&5
24158 ac_status=$?
24159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160 (exit $ac_status); }; }; then
24161 eval "$as_ac_var=yes"
24162else
24163 echo "$as_me: failed program was:" >&5
24164sed 's/^/| /' conftest.$ac_ext >&5
24165
24166eval "$as_ac_var=no"
24167fi
ac1cb8d3
VS
24168rm -f conftest.err conftest.$ac_objext \
24169 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24170fi
24171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24172echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24173if test `eval echo '${'$as_ac_var'}'` = yes; then
24174 cat >>confdefs.h <<_ACEOF
24175#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24176_ACEOF
24177
24178fi
24179done
24180
24181fi
24182
24183
24184
24185 if test "x$ac_cv_func_regcomp" != "xyes"; then
24186 if test "$wxUSE_REGEX" = "sys" ; then
24187 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24188echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24189 { (exit 1); exit 1; }; }
24190 else
24191 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24192echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24193 wxUSE_REGEX=builtin
24194 fi
24195 else
24196 wxUSE_REGEX=sys
24197 cat >>confdefs.h <<\_ACEOF
24198#define WX_NO_REGEX_ADVANCED 1
24199_ACEOF
24200
24201 fi
24202 fi
24203fi
24204
24205
24206ZLIB_LINK=
24207if test "$wxUSE_ZLIB" != "no" ; then
24208 cat >>confdefs.h <<\_ACEOF
24209#define wxUSE_ZLIB 1
24210_ACEOF
24211
24212
24213 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24214 if test "$USE_DARWIN" = 1; then
24215 system_zlib_h_ok="yes"
24216 else
24217 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24218echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24219if test "${ac_cv_header_zlib_h+set}" = set; then
24220 echo $ECHO_N "(cached) $ECHO_C" >&6
24221else
24222 if test "$cross_compiling" = yes; then
24223 unset ac_cv_header_zlib_h
24224
24225else
24226 cat >conftest.$ac_ext <<_ACEOF
24227/* confdefs.h. */
24228_ACEOF
24229cat confdefs.h >>conftest.$ac_ext
24230cat >>conftest.$ac_ext <<_ACEOF
24231/* end confdefs.h. */
24232
24233 #include <zlib.h>
24234 #include <stdio.h>
24235
24236 int main()
24237 {
24238 FILE *f=fopen("conftestval", "w");
24239 if (!f) exit(1);
24240 fprintf(f, "%s",
24241 ZLIB_VERSION[0] == '1' &&
24242 (ZLIB_VERSION[2] > '1' ||
24243 (ZLIB_VERSION[2] == '1' &&
24244 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24245 exit(0);
24246 }
24247
24248_ACEOF
24249rm -f conftest$ac_exeext
24250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24251 (eval $ac_link) 2>&5
24252 ac_status=$?
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24256 (eval $ac_try) 2>&5
24257 ac_status=$?
24258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259 (exit $ac_status); }; }; then
24260 ac_cv_header_zlib_h=`cat conftestval`
24261else
24262 echo "$as_me: program exited with status $ac_status" >&5
24263echo "$as_me: failed program was:" >&5
24264sed 's/^/| /' conftest.$ac_ext >&5
24265
24266( exit $ac_status )
24267ac_cv_header_zlib_h=no
24268fi
ac1cb8d3 24269rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24270fi
24271
24272fi
24273echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24274echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24275 if test "${ac_cv_header_zlib_h+set}" = set; then
24276 echo "$as_me:$LINENO: checking for zlib.h" >&5
24277echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24278if test "${ac_cv_header_zlib_h+set}" = set; then
24279 echo $ECHO_N "(cached) $ECHO_C" >&6
24280fi
24281echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24282echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24283else
24284 # Is the header compilable?
24285echo "$as_me:$LINENO: checking zlib.h usability" >&5
24286echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24287cat >conftest.$ac_ext <<_ACEOF
24288/* confdefs.h. */
24289_ACEOF
24290cat confdefs.h >>conftest.$ac_ext
24291cat >>conftest.$ac_ext <<_ACEOF
24292/* end confdefs.h. */
24293$ac_includes_default
24294#include <zlib.h>
24295_ACEOF
24296rm -f conftest.$ac_objext
24297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24298 (eval $ac_compile) 2>conftest.er1
a848cd7e 24299 ac_status=$?
ac1cb8d3
VS
24300 grep -v '^ *+' conftest.er1 >conftest.err
24301 rm -f conftest.er1
24302 cat conftest.err >&5
a848cd7e
SC
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } &&
3565d135
RR
24305 { ac_try='test -z "$ac_c_werror_flag"
24306 || test ! -s conftest.err'
ac1cb8d3
VS
24307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308 (eval $ac_try) 2>&5
24309 ac_status=$?
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; } &&
24312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24314 (eval $ac_try) 2>&5
24315 ac_status=$?
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); }; }; then
24318 ac_header_compiler=yes
24319else
24320 echo "$as_me: failed program was:" >&5
24321sed 's/^/| /' conftest.$ac_ext >&5
24322
24323ac_header_compiler=no
24324fi
ac1cb8d3 24325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24326echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24327echo "${ECHO_T}$ac_header_compiler" >&6
24328
24329# Is the header present?
24330echo "$as_me:$LINENO: checking zlib.h presence" >&5
24331echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24332cat >conftest.$ac_ext <<_ACEOF
24333/* confdefs.h. */
24334_ACEOF
24335cat confdefs.h >>conftest.$ac_ext
24336cat >>conftest.$ac_ext <<_ACEOF
24337/* end confdefs.h. */
24338#include <zlib.h>
24339_ACEOF
24340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24342 ac_status=$?
24343 grep -v '^ *+' conftest.er1 >conftest.err
24344 rm -f conftest.er1
24345 cat conftest.err >&5
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); } >/dev/null; then
24348 if test -s conftest.err; then
24349 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24351 else
24352 ac_cpp_err=
24353 fi
24354else
24355 ac_cpp_err=yes
24356fi
24357if test -z "$ac_cpp_err"; then
24358 ac_header_preproc=yes
24359else
24360 echo "$as_me: failed program was:" >&5
24361sed 's/^/| /' conftest.$ac_ext >&5
24362
24363 ac_header_preproc=no
24364fi
24365rm -f conftest.err conftest.$ac_ext
24366echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24367echo "${ECHO_T}$ac_header_preproc" >&6
24368
24369# So? What about this header?
ac1cb8d3
VS
24370case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24371 yes:no: )
a848cd7e
SC
24372 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24373echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24374 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24375echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24376 ac_header_preproc=yes
a848cd7e 24377 ;;
ac1cb8d3 24378 no:yes:* )
a848cd7e
SC
24379 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24380echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24381 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24382echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24383 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24384echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24385 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24386echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24387 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24388echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24389 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24390echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24391 (
24392 cat <<\_ASBOX
ac1cb8d3
VS
24393## ----------------------------------------- ##
24394## Report this to wx-dev@lists.wxwidgets.org ##
24395## ----------------------------------------- ##
a848cd7e
SC
24396_ASBOX
24397 ) |
24398 sed "s/^/$as_me: WARNING: /" >&2
24399 ;;
24400esac
24401echo "$as_me:$LINENO: checking for zlib.h" >&5
24402echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24403if test "${ac_cv_header_zlib_h+set}" = set; then
24404 echo $ECHO_N "(cached) $ECHO_C" >&6
24405else
24406 ac_cv_header_zlib_h=$ac_header_preproc
24407fi
24408echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24409echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24410
24411fi
24412
24413
24414
24415 system_zlib_h_ok=$ac_cv_header_zlib_h
24416 fi
24417
24418 if test "$system_zlib_h_ok" = "yes"; then
24419 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24420echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24421if test "${ac_cv_lib_z_deflate+set}" = set; then
24422 echo $ECHO_N "(cached) $ECHO_C" >&6
24423else
24424 ac_check_lib_save_LIBS=$LIBS
24425LIBS="-lz $LIBS"
24426cat >conftest.$ac_ext <<_ACEOF
24427/* confdefs.h. */
24428_ACEOF
24429cat confdefs.h >>conftest.$ac_ext
24430cat >>conftest.$ac_ext <<_ACEOF
24431/* end confdefs.h. */
24432
24433/* Override any gcc2 internal prototype to avoid an error. */
24434#ifdef __cplusplus
24435extern "C"
24436#endif
24437/* We use char because int might match the return type of a gcc2
24438 builtin and then its argument prototype would still apply. */
24439char deflate ();
24440int
24441main ()
24442{
24443deflate ();
24444 ;
24445 return 0;
24446}
24447_ACEOF
24448rm -f conftest.$ac_objext conftest$ac_exeext
24449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24450 (eval $ac_link) 2>conftest.er1
a848cd7e 24451 ac_status=$?
ac1cb8d3
VS
24452 grep -v '^ *+' conftest.er1 >conftest.err
24453 rm -f conftest.er1
24454 cat conftest.err >&5
a848cd7e
SC
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); } &&
3565d135
RR
24457 { ac_try='test -z "$ac_c_werror_flag"
24458 || test ! -s conftest.err'
ac1cb8d3
VS
24459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24460 (eval $ac_try) 2>&5
24461 ac_status=$?
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); }; } &&
24464 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24466 (eval $ac_try) 2>&5
24467 ac_status=$?
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); }; }; then
24470 ac_cv_lib_z_deflate=yes
24471else
24472 echo "$as_me: failed program was:" >&5
24473sed 's/^/| /' conftest.$ac_ext >&5
24474
24475ac_cv_lib_z_deflate=no
24476fi
ac1cb8d3
VS
24477rm -f conftest.err conftest.$ac_objext \
24478 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24479LIBS=$ac_check_lib_save_LIBS
24480fi
24481echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24482echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24483if test $ac_cv_lib_z_deflate = yes; then
24484 ZLIB_LINK=" -lz"
24485fi
24486
24487 fi
24488
24489 if test "x$ZLIB_LINK" = "x" ; then
24490 if test "$wxUSE_ZLIB" = "sys" ; then
24491 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24492echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24493 { (exit 1); exit 1; }; }
24494 else
24495 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24496echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24497 wxUSE_ZLIB=builtin
24498 fi
24499 else
24500 wxUSE_ZLIB=sys
24501 fi
24502 fi
24503fi
24504
24505
24506PNG_LINK=
24507if test "$wxUSE_LIBPNG" != "no" ; then
24508 cat >>confdefs.h <<\_ACEOF
24509#define wxUSE_LIBPNG 1
24510_ACEOF
24511
24512
24513 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24514 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24515echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24516 wxUSE_LIBPNG=sys
24517 fi
24518
24519 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24520 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24521echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24522 wxUSE_LIBPNG=builtin
24523 fi
24524
24525 if test "$wxUSE_MGL" != 1 ; then
24526 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24527 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24528echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24529if test "${ac_cv_header_png_h+set}" = set; then
24530 echo $ECHO_N "(cached) $ECHO_C" >&6
24531else
24532 if test "$cross_compiling" = yes; then
24533 unset ac_cv_header_png_h
24534
24535else
24536 cat >conftest.$ac_ext <<_ACEOF
24537/* confdefs.h. */
24538_ACEOF
24539cat confdefs.h >>conftest.$ac_ext
24540cat >>conftest.$ac_ext <<_ACEOF
24541/* end confdefs.h. */
24542
24543 #include <png.h>
24544 #include <stdio.h>
24545
24546 int main()
24547 {
24548 FILE *f=fopen("conftestval", "w");
24549 if (!f) exit(1);
24550 fprintf(f, "%s",
24551 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24552 exit(0);
24553 }
24554
24555_ACEOF
24556rm -f conftest$ac_exeext
24557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24558 (eval $ac_link) 2>&5
24559 ac_status=$?
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24563 (eval $ac_try) 2>&5
24564 ac_status=$?
24565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566 (exit $ac_status); }; }; then
24567 ac_cv_header_png_h=`cat conftestval`
24568else
24569 echo "$as_me: program exited with status $ac_status" >&5
24570echo "$as_me: failed program was:" >&5
24571sed 's/^/| /' conftest.$ac_ext >&5
24572
24573( exit $ac_status )
24574ac_cv_header_png_h=no
24575fi
ac1cb8d3 24576rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24577fi
24578
24579fi
24580echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24581echo "${ECHO_T}$ac_cv_header_png_h" >&6
24582 if test "${ac_cv_header_png_h+set}" = set; then
24583 echo "$as_me:$LINENO: checking for png.h" >&5
24584echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24585if test "${ac_cv_header_png_h+set}" = set; then
24586 echo $ECHO_N "(cached) $ECHO_C" >&6
24587fi
24588echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24589echo "${ECHO_T}$ac_cv_header_png_h" >&6
24590else
24591 # Is the header compilable?
24592echo "$as_me:$LINENO: checking png.h usability" >&5
24593echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24594cat >conftest.$ac_ext <<_ACEOF
24595/* confdefs.h. */
24596_ACEOF
24597cat confdefs.h >>conftest.$ac_ext
24598cat >>conftest.$ac_ext <<_ACEOF
24599/* end confdefs.h. */
24600$ac_includes_default
24601#include <png.h>
24602_ACEOF
24603rm -f conftest.$ac_objext
24604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24605 (eval $ac_compile) 2>conftest.er1
a848cd7e 24606 ac_status=$?
ac1cb8d3
VS
24607 grep -v '^ *+' conftest.er1 >conftest.err
24608 rm -f conftest.er1
24609 cat conftest.err >&5
a848cd7e
SC
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); } &&
3565d135
RR
24612 { ac_try='test -z "$ac_c_werror_flag"
24613 || test ! -s conftest.err'
ac1cb8d3
VS
24614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615 (eval $ac_try) 2>&5
24616 ac_status=$?
24617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; } &&
24619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24621 (eval $ac_try) 2>&5
24622 ac_status=$?
24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); }; }; then
24625 ac_header_compiler=yes
24626else
24627 echo "$as_me: failed program was:" >&5
24628sed 's/^/| /' conftest.$ac_ext >&5
24629
24630ac_header_compiler=no
24631fi
ac1cb8d3 24632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24633echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24634echo "${ECHO_T}$ac_header_compiler" >&6
24635
24636# Is the header present?
24637echo "$as_me:$LINENO: checking png.h presence" >&5
24638echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24639cat >conftest.$ac_ext <<_ACEOF
24640/* confdefs.h. */
24641_ACEOF
24642cat confdefs.h >>conftest.$ac_ext
24643cat >>conftest.$ac_ext <<_ACEOF
24644/* end confdefs.h. */
24645#include <png.h>
24646_ACEOF
24647if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24649 ac_status=$?
24650 grep -v '^ *+' conftest.er1 >conftest.err
24651 rm -f conftest.er1
24652 cat conftest.err >&5
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); } >/dev/null; then
24655 if test -s conftest.err; then
24656 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24658 else
24659 ac_cpp_err=
24660 fi
24661else
24662 ac_cpp_err=yes
24663fi
24664if test -z "$ac_cpp_err"; then
24665 ac_header_preproc=yes
24666else
24667 echo "$as_me: failed program was:" >&5
24668sed 's/^/| /' conftest.$ac_ext >&5
24669
24670 ac_header_preproc=no
24671fi
24672rm -f conftest.err conftest.$ac_ext
24673echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24674echo "${ECHO_T}$ac_header_preproc" >&6
24675
24676# So? What about this header?
ac1cb8d3
VS
24677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24678 yes:no: )
a848cd7e
SC
24679 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24680echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24681 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24682echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24683 ac_header_preproc=yes
a848cd7e 24684 ;;
ac1cb8d3 24685 no:yes:* )
a848cd7e
SC
24686 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24687echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24688 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24689echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24690 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24691echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24692 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24693echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24694 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24695echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24696 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24697echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24698 (
24699 cat <<\_ASBOX
ac1cb8d3
VS
24700## ----------------------------------------- ##
24701## Report this to wx-dev@lists.wxwidgets.org ##
24702## ----------------------------------------- ##
a848cd7e
SC
24703_ASBOX
24704 ) |
24705 sed "s/^/$as_me: WARNING: /" >&2
24706 ;;
24707esac
24708echo "$as_me:$LINENO: checking for png.h" >&5
24709echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24710if test "${ac_cv_header_png_h+set}" = set; then
24711 echo $ECHO_N "(cached) $ECHO_C" >&6
24712else
24713 ac_cv_header_png_h=$ac_header_preproc
24714fi
24715echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24716echo "${ECHO_T}$ac_cv_header_png_h" >&6
24717
24718fi
24719
24720
24721
24722 if test "$ac_cv_header_png_h" = "yes"; then
24723 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24724echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24725if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24726 echo $ECHO_N "(cached) $ECHO_C" >&6
24727else
24728 ac_check_lib_save_LIBS=$LIBS
24729LIBS="-lpng -lz -lm $LIBS"
24730cat >conftest.$ac_ext <<_ACEOF
24731/* confdefs.h. */
24732_ACEOF
24733cat confdefs.h >>conftest.$ac_ext
24734cat >>conftest.$ac_ext <<_ACEOF
24735/* end confdefs.h. */
24736
24737/* Override any gcc2 internal prototype to avoid an error. */
24738#ifdef __cplusplus
24739extern "C"
24740#endif
24741/* We use char because int might match the return type of a gcc2
24742 builtin and then its argument prototype would still apply. */
24743char png_check_sig ();
24744int
24745main ()
24746{
24747png_check_sig ();
24748 ;
24749 return 0;
24750}
24751_ACEOF
24752rm -f conftest.$ac_objext conftest$ac_exeext
24753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24754 (eval $ac_link) 2>conftest.er1
a848cd7e 24755 ac_status=$?
ac1cb8d3
VS
24756 grep -v '^ *+' conftest.er1 >conftest.err
24757 rm -f conftest.er1
24758 cat conftest.err >&5
a848cd7e
SC
24759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); } &&
3565d135
RR
24761 { ac_try='test -z "$ac_c_werror_flag"
24762 || test ! -s conftest.err'
ac1cb8d3
VS
24763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); }; } &&
24768 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24770 (eval $ac_try) 2>&5
24771 ac_status=$?
24772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773 (exit $ac_status); }; }; then
24774 ac_cv_lib_png_png_check_sig=yes
24775else
24776 echo "$as_me: failed program was:" >&5
24777sed 's/^/| /' conftest.$ac_ext >&5
24778
24779ac_cv_lib_png_png_check_sig=no
24780fi
ac1cb8d3
VS
24781rm -f conftest.err conftest.$ac_objext \
24782 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24783LIBS=$ac_check_lib_save_LIBS
24784fi
24785echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24786echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24787if test $ac_cv_lib_png_png_check_sig = yes; then
24788 PNG_LINK=" -lpng -lz"
24789fi
24790
24791 fi
24792
24793 if test "x$PNG_LINK" = "x" ; then
24794 if test "$wxUSE_LIBPNG" = "sys" ; then
24795 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24796echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24797 { (exit 1); exit 1; }; }
24798 else
24799 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24800echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24801 wxUSE_LIBPNG=builtin
24802 fi
24803 else
24804 wxUSE_LIBPNG=sys
24805 fi
24806 fi
24807 fi
24808
24809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24810fi
24811
24812
24813JPEG_LINK=
24814if test "$wxUSE_LIBJPEG" != "no" ; then
24815 cat >>confdefs.h <<\_ACEOF
24816#define wxUSE_LIBJPEG 1
24817_ACEOF
24818
24819
24820 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24821 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24822echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24823 wxUSE_LIBJPEG=sys
24824 fi
24825
24826 if test "$wxUSE_MGL" != 1 ; then
24827 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24828 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24829echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24830 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24831 echo $ECHO_N "(cached) $ECHO_C" >&6
24832else
24833 cat >conftest.$ac_ext <<_ACEOF
24834/* confdefs.h. */
24835_ACEOF
24836cat confdefs.h >>conftest.$ac_ext
24837cat >>conftest.$ac_ext <<_ACEOF
24838/* end confdefs.h. */
24839
24840 #undef HAVE_STDLIB_H
24841 #include <stdio.h>
24842 #include <jpeglib.h>
24843
24844int
24845main ()
24846{
24847
24848
24849 ;
24850 return 0;
24851}
24852_ACEOF
24853rm -f conftest.$ac_objext
24854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24855 (eval $ac_compile) 2>conftest.er1
a848cd7e 24856 ac_status=$?
ac1cb8d3
VS
24857 grep -v '^ *+' conftest.er1 >conftest.err
24858 rm -f conftest.er1
24859 cat conftest.err >&5
a848cd7e
SC
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } &&
3565d135
RR
24862 { ac_try='test -z "$ac_c_werror_flag"
24863 || test ! -s conftest.err'
ac1cb8d3
VS
24864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24865 (eval $ac_try) 2>&5
24866 ac_status=$?
24867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); }; } &&
24869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24871 (eval $ac_try) 2>&5
24872 ac_status=$?
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; }; then
24875 ac_cv_header_jpeglib_h=yes
24876else
24877 echo "$as_me: failed program was:" >&5
24878sed 's/^/| /' conftest.$ac_ext >&5
24879
24880ac_cv_header_jpeglib_h=no
24881
24882fi
ac1cb8d3 24883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24884
24885fi
24886
24887 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24888echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24889
24890 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24891 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24892echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24893if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24894 echo $ECHO_N "(cached) $ECHO_C" >&6
24895else
24896 ac_check_lib_save_LIBS=$LIBS
24897LIBS="-ljpeg $LIBS"
24898cat >conftest.$ac_ext <<_ACEOF
24899/* confdefs.h. */
24900_ACEOF
24901cat confdefs.h >>conftest.$ac_ext
24902cat >>conftest.$ac_ext <<_ACEOF
24903/* end confdefs.h. */
24904
24905/* Override any gcc2 internal prototype to avoid an error. */
24906#ifdef __cplusplus
24907extern "C"
24908#endif
24909/* We use char because int might match the return type of a gcc2
24910 builtin and then its argument prototype would still apply. */
24911char jpeg_read_header ();
24912int
24913main ()
24914{
24915jpeg_read_header ();
24916 ;
24917 return 0;
24918}
24919_ACEOF
24920rm -f conftest.$ac_objext conftest$ac_exeext
24921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24922 (eval $ac_link) 2>conftest.er1
a848cd7e 24923 ac_status=$?
ac1cb8d3
VS
24924 grep -v '^ *+' conftest.er1 >conftest.err
24925 rm -f conftest.er1
24926 cat conftest.err >&5
a848cd7e
SC
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); } &&
3565d135
RR
24929 { ac_try='test -z "$ac_c_werror_flag"
24930 || test ! -s conftest.err'
ac1cb8d3
VS
24931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24932 (eval $ac_try) 2>&5
24933 ac_status=$?
24934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); }; } &&
24936 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24938 (eval $ac_try) 2>&5
24939 ac_status=$?
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); }; }; then
24942 ac_cv_lib_jpeg_jpeg_read_header=yes
24943else
24944 echo "$as_me: failed program was:" >&5
24945sed 's/^/| /' conftest.$ac_ext >&5
24946
24947ac_cv_lib_jpeg_jpeg_read_header=no
24948fi
ac1cb8d3
VS
24949rm -f conftest.err conftest.$ac_objext \
24950 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24951LIBS=$ac_check_lib_save_LIBS
24952fi
24953echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24954echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24955if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24956 JPEG_LINK=" -ljpeg"
24957fi
24958
24959 fi
24960
24961 if test "x$JPEG_LINK" = "x" ; then
24962 if test "$wxUSE_LIBJPEG" = "sys" ; then
24963 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24964echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24965 { (exit 1); exit 1; }; }
24966 else
24967 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24968echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24969 wxUSE_LIBJPEG=builtin
24970 fi
24971 else
24972 wxUSE_LIBJPEG=sys
24973 fi
24974 fi
24975 fi
24976fi
24977
24978
24979TIFF_LINK=
24980TIFF_PREREQ_LINKS=-lm
24981if test "$wxUSE_LIBTIFF" != "no" ; then
24982 cat >>confdefs.h <<\_ACEOF
24983#define wxUSE_LIBTIFF 1
24984_ACEOF
24985
24986
24987 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24988 if test "$wxUSE_LIBJPEG" = "sys"; then
24989 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24990 fi
24991 if test "$wxUSE_ZLIB" = "sys"; then
24992 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24993 fi
24994 if test "${ac_cv_header_tiffio_h+set}" = set; then
24995 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24996echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24997if test "${ac_cv_header_tiffio_h+set}" = set; then
24998 echo $ECHO_N "(cached) $ECHO_C" >&6
24999fi
25000echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25001echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25002else
25003 # Is the header compilable?
25004echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25005echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25006cat >conftest.$ac_ext <<_ACEOF
25007/* confdefs.h. */
25008_ACEOF
25009cat confdefs.h >>conftest.$ac_ext
25010cat >>conftest.$ac_ext <<_ACEOF
25011/* end confdefs.h. */
25012$ac_includes_default
25013#include <tiffio.h>
25014_ACEOF
25015rm -f conftest.$ac_objext
25016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25017 (eval $ac_compile) 2>conftest.er1
a848cd7e 25018 ac_status=$?
ac1cb8d3
VS
25019 grep -v '^ *+' conftest.er1 >conftest.err
25020 rm -f conftest.er1
25021 cat conftest.err >&5
a848cd7e
SC
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); } &&
3565d135
RR
25024 { ac_try='test -z "$ac_c_werror_flag"
25025 || test ! -s conftest.err'
ac1cb8d3
VS
25026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027 (eval $ac_try) 2>&5
25028 ac_status=$?
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; } &&
25031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25033 (eval $ac_try) 2>&5
25034 ac_status=$?
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; }; then
25037 ac_header_compiler=yes
25038else
25039 echo "$as_me: failed program was:" >&5
25040sed 's/^/| /' conftest.$ac_ext >&5
25041
25042ac_header_compiler=no
25043fi
ac1cb8d3 25044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25045echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25046echo "${ECHO_T}$ac_header_compiler" >&6
25047
25048# Is the header present?
25049echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25050echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25051cat >conftest.$ac_ext <<_ACEOF
25052/* confdefs.h. */
25053_ACEOF
25054cat confdefs.h >>conftest.$ac_ext
25055cat >>conftest.$ac_ext <<_ACEOF
25056/* end confdefs.h. */
25057#include <tiffio.h>
25058_ACEOF
25059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25061 ac_status=$?
25062 grep -v '^ *+' conftest.er1 >conftest.err
25063 rm -f conftest.er1
25064 cat conftest.err >&5
25065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066 (exit $ac_status); } >/dev/null; then
25067 if test -s conftest.err; then
25068 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25070 else
25071 ac_cpp_err=
25072 fi
25073else
25074 ac_cpp_err=yes
25075fi
25076if test -z "$ac_cpp_err"; then
25077 ac_header_preproc=yes
25078else
25079 echo "$as_me: failed program was:" >&5
25080sed 's/^/| /' conftest.$ac_ext >&5
25081
25082 ac_header_preproc=no
25083fi
25084rm -f conftest.err conftest.$ac_ext
25085echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25086echo "${ECHO_T}$ac_header_preproc" >&6
25087
25088# So? What about this header?
ac1cb8d3
VS
25089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25090 yes:no: )
a848cd7e
SC
25091 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25092echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25093 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25094echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25095 ac_header_preproc=yes
a848cd7e 25096 ;;
ac1cb8d3 25097 no:yes:* )
a848cd7e
SC
25098 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25099echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25100 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25101echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25102 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25103echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25104 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25105echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25106 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25107echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25108 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25109echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25110 (
25111 cat <<\_ASBOX
ac1cb8d3
VS
25112## ----------------------------------------- ##
25113## Report this to wx-dev@lists.wxwidgets.org ##
25114## ----------------------------------------- ##
a848cd7e
SC
25115_ASBOX
25116 ) |
25117 sed "s/^/$as_me: WARNING: /" >&2
25118 ;;
25119esac
25120echo "$as_me:$LINENO: checking for tiffio.h" >&5
25121echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25122if test "${ac_cv_header_tiffio_h+set}" = set; then
25123 echo $ECHO_N "(cached) $ECHO_C" >&6
25124else
25125 ac_cv_header_tiffio_h=$ac_header_preproc
25126fi
25127echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25128echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25129
25130fi
25131if test $ac_cv_header_tiffio_h = yes; then
25132
25133 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25134echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25135if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25136 echo $ECHO_N "(cached) $ECHO_C" >&6
25137else
25138 ac_check_lib_save_LIBS=$LIBS
25139LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25140cat >conftest.$ac_ext <<_ACEOF
25141/* confdefs.h. */
25142_ACEOF
25143cat confdefs.h >>conftest.$ac_ext
25144cat >>conftest.$ac_ext <<_ACEOF
25145/* end confdefs.h. */
25146
25147/* Override any gcc2 internal prototype to avoid an error. */
25148#ifdef __cplusplus
25149extern "C"
25150#endif
25151/* We use char because int might match the return type of a gcc2
25152 builtin and then its argument prototype would still apply. */
25153char TIFFError ();
25154int
25155main ()
25156{
25157TIFFError ();
25158 ;
25159 return 0;
25160}
25161_ACEOF
25162rm -f conftest.$ac_objext conftest$ac_exeext
25163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25164 (eval $ac_link) 2>conftest.er1
a848cd7e 25165 ac_status=$?
ac1cb8d3
VS
25166 grep -v '^ *+' conftest.er1 >conftest.err
25167 rm -f conftest.er1
25168 cat conftest.err >&5
a848cd7e
SC
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); } &&
3565d135
RR
25171 { ac_try='test -z "$ac_c_werror_flag"
25172 || test ! -s conftest.err'
ac1cb8d3
VS
25173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25174 (eval $ac_try) 2>&5
25175 ac_status=$?
25176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177 (exit $ac_status); }; } &&
25178 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180 (eval $ac_try) 2>&5
25181 ac_status=$?
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); }; }; then
25184 ac_cv_lib_tiff_TIFFError=yes
25185else
25186 echo "$as_me: failed program was:" >&5
25187sed 's/^/| /' conftest.$ac_ext >&5
25188
25189ac_cv_lib_tiff_TIFFError=no
25190fi
ac1cb8d3
VS
25191rm -f conftest.err conftest.$ac_objext \
25192 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25193LIBS=$ac_check_lib_save_LIBS
25194fi
25195echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25196echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25197if test $ac_cv_lib_tiff_TIFFError = yes; then
25198 TIFF_LINK=" -ltiff"
25199fi
25200
25201
25202
25203fi
25204
25205
25206
25207 if test "x$TIFF_LINK" = "x" ; then
25208 if test "$wxUSE_LIBTIFF" = "sys" ; then
25209 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25210echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25211 { (exit 1); exit 1; }; }
25212 else
25213 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25214echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25215 wxUSE_LIBTIFF=builtin
25216 fi
25217 else
25218 wxUSE_LIBTIFF=sys
25219 fi
25220 fi
25221fi
25222
25223
47a7e797
MW
25224if test "$wxUSE_WCHAR_T" != "yes"; then
25225 if test "$wxUSE_EXPAT" != "no"; then
25226 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25227echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25228 wxUSE_EXPAT=no
25229 fi
25230 if test "$wxUSE_XML" != "no"; then
25231 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25232echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25233 wxUSE_XML=no
25234 fi
25235fi
25236
a848cd7e
SC
25237if test "$wxUSE_EXPAT" != "no"; then
25238 wxUSE_XML=yes
25239 cat >>confdefs.h <<\_ACEOF
25240#define wxUSE_EXPAT 1
25241_ACEOF
25242
25243 cat >>confdefs.h <<\_ACEOF
25244#define wxUSE_XML 1
25245_ACEOF
25246
25247
25248 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25249 if test "${ac_cv_header_expat_h+set}" = set; then
25250 echo "$as_me:$LINENO: checking for expat.h" >&5
25251echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25252if test "${ac_cv_header_expat_h+set}" = set; then
25253 echo $ECHO_N "(cached) $ECHO_C" >&6
25254fi
25255echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25256echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25257else
25258 # Is the header compilable?
25259echo "$as_me:$LINENO: checking expat.h usability" >&5
25260echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25261cat >conftest.$ac_ext <<_ACEOF
25262/* confdefs.h. */
25263_ACEOF
25264cat confdefs.h >>conftest.$ac_ext
25265cat >>conftest.$ac_ext <<_ACEOF
25266/* end confdefs.h. */
25267$ac_includes_default
25268#include <expat.h>
25269_ACEOF
25270rm -f conftest.$ac_objext
25271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25272 (eval $ac_compile) 2>conftest.er1
a848cd7e 25273 ac_status=$?
ac1cb8d3
VS
25274 grep -v '^ *+' conftest.er1 >conftest.err
25275 rm -f conftest.er1
25276 cat conftest.err >&5
a848cd7e
SC
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); } &&
3565d135
RR
25279 { ac_try='test -z "$ac_c_werror_flag"
25280 || test ! -s conftest.err'
ac1cb8d3
VS
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25283 ac_status=$?
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; } &&
25286 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288 (eval $ac_try) 2>&5
25289 ac_status=$?
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); }; }; then
25292 ac_header_compiler=yes
25293else
25294 echo "$as_me: failed program was:" >&5
25295sed 's/^/| /' conftest.$ac_ext >&5
25296
25297ac_header_compiler=no
25298fi
ac1cb8d3 25299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25301echo "${ECHO_T}$ac_header_compiler" >&6
25302
25303# Is the header present?
25304echo "$as_me:$LINENO: checking expat.h presence" >&5
25305echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25306cat >conftest.$ac_ext <<_ACEOF
25307/* confdefs.h. */
25308_ACEOF
25309cat confdefs.h >>conftest.$ac_ext
25310cat >>conftest.$ac_ext <<_ACEOF
25311/* end confdefs.h. */
25312#include <expat.h>
25313_ACEOF
25314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25316 ac_status=$?
25317 grep -v '^ *+' conftest.er1 >conftest.err
25318 rm -f conftest.er1
25319 cat conftest.err >&5
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); } >/dev/null; then
25322 if test -s conftest.err; then
25323 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25325 else
25326 ac_cpp_err=
25327 fi
25328else
25329 ac_cpp_err=yes
25330fi
25331if test -z "$ac_cpp_err"; then
25332 ac_header_preproc=yes
25333else
25334 echo "$as_me: failed program was:" >&5
25335sed 's/^/| /' conftest.$ac_ext >&5
25336
25337 ac_header_preproc=no
25338fi
25339rm -f conftest.err conftest.$ac_ext
25340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25341echo "${ECHO_T}$ac_header_preproc" >&6
25342
25343# So? What about this header?
ac1cb8d3
VS
25344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25345 yes:no: )
a848cd7e
SC
25346 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25347echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25348 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25349echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25350 ac_header_preproc=yes
a848cd7e 25351 ;;
ac1cb8d3 25352 no:yes:* )
a848cd7e
SC
25353 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25354echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25355 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25356echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25357 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25358echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25359 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25360echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25361 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25362echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25363 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25364echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25365 (
25366 cat <<\_ASBOX
ac1cb8d3
VS
25367## ----------------------------------------- ##
25368## Report this to wx-dev@lists.wxwidgets.org ##
25369## ----------------------------------------- ##
a848cd7e
SC
25370_ASBOX
25371 ) |
25372 sed "s/^/$as_me: WARNING: /" >&2
25373 ;;
25374esac
25375echo "$as_me:$LINENO: checking for expat.h" >&5
25376echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25377if test "${ac_cv_header_expat_h+set}" = set; then
25378 echo $ECHO_N "(cached) $ECHO_C" >&6
25379else
25380 ac_cv_header_expat_h=$ac_header_preproc
25381fi
25382echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25383echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25384
25385fi
25386if test $ac_cv_header_expat_h = yes; then
25387 found_expat_h=1
25388fi
25389
25390
25391 if test "x$found_expat_h" = "x1"; then
25392 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25393echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25394if test "${wx_cv_expat_is_not_broken+set}" = set; then
25395 echo $ECHO_N "(cached) $ECHO_C" >&6
25396else
25397
25398
25399
25400 ac_ext=cc
25401ac_cpp='$CXXCPP $CPPFLAGS'
25402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25405
25406 cat >conftest.$ac_ext <<_ACEOF
25407/* confdefs.h. */
25408_ACEOF
25409cat confdefs.h >>conftest.$ac_ext
25410cat >>conftest.$ac_ext <<_ACEOF
25411/* end confdefs.h. */
25412#include <expat.h>
25413int
25414main ()
25415{
25416
25417 ;
25418 return 0;
25419}
25420_ACEOF
25421rm -f conftest.$ac_objext
25422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25423 (eval $ac_compile) 2>conftest.er1
a848cd7e 25424 ac_status=$?
ac1cb8d3
VS
25425 grep -v '^ *+' conftest.er1 >conftest.err
25426 rm -f conftest.er1
25427 cat conftest.err >&5
a848cd7e
SC
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); } &&
3565d135
RR
25430 { ac_try='test -z "$ac_cxx_werror_flag"
25431 || test ! -s conftest.err'
ac1cb8d3
VS
25432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25433 (eval $ac_try) 2>&5
25434 ac_status=$?
25435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); }; } &&
25437 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25439 (eval $ac_try) 2>&5
25440 ac_status=$?
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); }; }; then
25443 wx_cv_expat_is_not_broken=yes
25444else
25445 echo "$as_me: failed program was:" >&5
25446sed 's/^/| /' conftest.$ac_ext >&5
25447
25448wx_cv_expat_is_not_broken=no
25449
25450fi
ac1cb8d3 25451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25452 ac_ext=c
25453ac_cpp='$CPP $CPPFLAGS'
25454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25456ac_compiler_gnu=$ac_cv_c_compiler_gnu
25457
25458
25459
25460fi
25461echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25462echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25463 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25464 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25465echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25466if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25467 echo $ECHO_N "(cached) $ECHO_C" >&6
25468else
25469 ac_check_lib_save_LIBS=$LIBS
25470LIBS="-lexpat $LIBS"
25471cat >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
25478/* Override any gcc2 internal prototype to avoid an error. */
25479#ifdef __cplusplus
25480extern "C"
25481#endif
25482/* We use char because int might match the return type of a gcc2
25483 builtin and then its argument prototype would still apply. */
25484char XML_ParserCreate ();
25485int
25486main ()
25487{
25488XML_ParserCreate ();
25489 ;
25490 return 0;
25491}
25492_ACEOF
25493rm -f conftest.$ac_objext conftest$ac_exeext
25494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25495 (eval $ac_link) 2>conftest.er1
a848cd7e 25496 ac_status=$?
ac1cb8d3
VS
25497 grep -v '^ *+' conftest.er1 >conftest.err
25498 rm -f conftest.er1
25499 cat conftest.err >&5
a848cd7e
SC
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); } &&
3565d135
RR
25502 { ac_try='test -z "$ac_c_werror_flag"
25503 || test ! -s conftest.err'
ac1cb8d3
VS
25504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25505 (eval $ac_try) 2>&5
25506 ac_status=$?
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); }; } &&
25509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25511 (eval $ac_try) 2>&5
25512 ac_status=$?
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); }; }; then
25515 ac_cv_lib_expat_XML_ParserCreate=yes
25516else
25517 echo "$as_me: failed program was:" >&5
25518sed 's/^/| /' conftest.$ac_ext >&5
25519
25520ac_cv_lib_expat_XML_ParserCreate=no
25521fi
ac1cb8d3
VS
25522rm -f conftest.err conftest.$ac_objext \
25523 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25524LIBS=$ac_check_lib_save_LIBS
25525fi
25526echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25527echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25528if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25529 EXPAT_LINK=" -lexpat"
25530fi
25531
25532 fi
25533 fi
25534 if test "x$EXPAT_LINK" = "x" ; then
25535 if test "$wxUSE_EXPAT" = "sys" ; then
25536 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25537echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25538 { (exit 1); exit 1; }; }
25539 else
25540 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25541echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25542 wxUSE_EXPAT=builtin
25543 fi
25544 else
25545 wxUSE_EXPAT=sys
25546 fi
25547 fi
25548 if test "$wxUSE_EXPAT" = "builtin" ; then
25549
25550
25551subdirs="$subdirs src/expat"
25552
25553 fi
25554fi
25555
25556
25557
25558if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25559 if test "${ac_cv_header_mspack_h+set}" = set; then
25560 echo "$as_me:$LINENO: checking for mspack.h" >&5
25561echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25562if test "${ac_cv_header_mspack_h+set}" = set; then
25563 echo $ECHO_N "(cached) $ECHO_C" >&6
25564fi
25565echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25566echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25567else
25568 # Is the header compilable?
25569echo "$as_me:$LINENO: checking mspack.h usability" >&5
25570echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25571cat >conftest.$ac_ext <<_ACEOF
25572/* confdefs.h. */
25573_ACEOF
25574cat confdefs.h >>conftest.$ac_ext
25575cat >>conftest.$ac_ext <<_ACEOF
25576/* end confdefs.h. */
25577$ac_includes_default
25578#include <mspack.h>
25579_ACEOF
25580rm -f conftest.$ac_objext
25581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25582 (eval $ac_compile) 2>conftest.er1
a848cd7e 25583 ac_status=$?
ac1cb8d3
VS
25584 grep -v '^ *+' conftest.er1 >conftest.err
25585 rm -f conftest.er1
25586 cat conftest.err >&5
a848cd7e
SC
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); } &&
3565d135
RR
25589 { ac_try='test -z "$ac_c_werror_flag"
25590 || test ! -s conftest.err'
ac1cb8d3
VS
25591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592 (eval $ac_try) 2>&5
25593 ac_status=$?
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); }; } &&
25596 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25598 (eval $ac_try) 2>&5
25599 ac_status=$?
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); }; }; then
25602 ac_header_compiler=yes
25603else
25604 echo "$as_me: failed program was:" >&5
25605sed 's/^/| /' conftest.$ac_ext >&5
25606
25607ac_header_compiler=no
25608fi
ac1cb8d3 25609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25610echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25611echo "${ECHO_T}$ac_header_compiler" >&6
25612
25613# Is the header present?
25614echo "$as_me:$LINENO: checking mspack.h presence" >&5
25615echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25616cat >conftest.$ac_ext <<_ACEOF
25617/* confdefs.h. */
25618_ACEOF
25619cat confdefs.h >>conftest.$ac_ext
25620cat >>conftest.$ac_ext <<_ACEOF
25621/* end confdefs.h. */
25622#include <mspack.h>
25623_ACEOF
25624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25626 ac_status=$?
25627 grep -v '^ *+' conftest.er1 >conftest.err
25628 rm -f conftest.er1
25629 cat conftest.err >&5
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); } >/dev/null; then
25632 if test -s conftest.err; then
25633 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25635 else
25636 ac_cpp_err=
25637 fi
25638else
25639 ac_cpp_err=yes
25640fi
25641if test -z "$ac_cpp_err"; then
25642 ac_header_preproc=yes
25643else
25644 echo "$as_me: failed program was:" >&5
25645sed 's/^/| /' conftest.$ac_ext >&5
25646
25647 ac_header_preproc=no
25648fi
25649rm -f conftest.err conftest.$ac_ext
25650echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25651echo "${ECHO_T}$ac_header_preproc" >&6
25652
25653# So? What about this header?
ac1cb8d3
VS
25654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25655 yes:no: )
a848cd7e
SC
25656 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25657echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25658 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25659echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25660 ac_header_preproc=yes
a848cd7e 25661 ;;
ac1cb8d3 25662 no:yes:* )
a848cd7e
SC
25663 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25664echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25665 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25666echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25667 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25668echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25669 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25670echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25671 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25672echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25673 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25674echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25675 (
25676 cat <<\_ASBOX
ac1cb8d3
VS
25677## ----------------------------------------- ##
25678## Report this to wx-dev@lists.wxwidgets.org ##
25679## ----------------------------------------- ##
a848cd7e
SC
25680_ASBOX
25681 ) |
25682 sed "s/^/$as_me: WARNING: /" >&2
25683 ;;
25684esac
25685echo "$as_me:$LINENO: checking for mspack.h" >&5
25686echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25687if test "${ac_cv_header_mspack_h+set}" = set; then
25688 echo $ECHO_N "(cached) $ECHO_C" >&6
25689else
25690 ac_cv_header_mspack_h=$ac_header_preproc
25691fi
25692echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25693echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25694
25695fi
25696if test $ac_cv_header_mspack_h = yes; then
25697 found_mspack_h=1
25698fi
25699
25700
25701 if test "x$found_mspack_h" = "x1"; then
25702 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25703echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25704if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25705 echo $ECHO_N "(cached) $ECHO_C" >&6
25706else
25707 ac_check_lib_save_LIBS=$LIBS
25708LIBS="-lmspack $LIBS"
25709cat >conftest.$ac_ext <<_ACEOF
25710/* confdefs.h. */
25711_ACEOF
25712cat confdefs.h >>conftest.$ac_ext
25713cat >>conftest.$ac_ext <<_ACEOF
25714/* end confdefs.h. */
25715
25716/* Override any gcc2 internal prototype to avoid an error. */
25717#ifdef __cplusplus
25718extern "C"
25719#endif
25720/* We use char because int might match the return type of a gcc2
25721 builtin and then its argument prototype would still apply. */
25722char mspack_create_chm_decompressor ();
25723int
25724main ()
25725{
25726mspack_create_chm_decompressor ();
25727 ;
25728 return 0;
25729}
25730_ACEOF
25731rm -f conftest.$ac_objext conftest$ac_exeext
25732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25733 (eval $ac_link) 2>conftest.er1
a848cd7e 25734 ac_status=$?
ac1cb8d3
VS
25735 grep -v '^ *+' conftest.er1 >conftest.err
25736 rm -f conftest.er1
25737 cat conftest.err >&5
a848cd7e
SC
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); } &&
3565d135
RR
25740 { ac_try='test -z "$ac_c_werror_flag"
25741 || test ! -s conftest.err'
ac1cb8d3
VS
25742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25743 (eval $ac_try) 2>&5
25744 ac_status=$?
25745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746 (exit $ac_status); }; } &&
25747 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25749 (eval $ac_try) 2>&5
25750 ac_status=$?
25751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752 (exit $ac_status); }; }; then
25753 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25754else
25755 echo "$as_me: failed program was:" >&5
25756sed 's/^/| /' conftest.$ac_ext >&5
25757
25758ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25759fi
ac1cb8d3
VS
25760rm -f conftest.err conftest.$ac_objext \
25761 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25762LIBS=$ac_check_lib_save_LIBS
25763fi
25764echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25765echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25766if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25767 MSPACK_LINK=" -lmspack"
25768fi
25769
25770 fi
25771 if test "x$MSPACK_LINK" = "x" ; then
25772 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25773 fi
25774fi
25775
25776if test "$wxUSE_LIBMSPACK" != "no"; then
25777 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25778#define wxUSE_LIBMSPACK 1
25779_ACEOF
25780
a848cd7e
SC
25781fi
25782
25783
25784
25785AFMINSTALL=
25786WIN32INSTALL=
25787
25788TOOLKIT=
25789TOOLKIT_INCLUDE=
25790WIDGET_SET=
25791
25792if test "$USE_WIN32" = 1 ; then
25793
25794for ac_header in w32api.h
25795do
25796as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25797if eval "test \"\${$as_ac_Header+set}\" = set"; then
25798 echo "$as_me:$LINENO: checking for $ac_header" >&5
25799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25800if eval "test \"\${$as_ac_Header+set}\" = set"; then
25801 echo $ECHO_N "(cached) $ECHO_C" >&6
25802fi
25803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25804echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25805else
25806 # Is the header compilable?
25807echo "$as_me:$LINENO: checking $ac_header usability" >&5
25808echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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$ac_includes_default
25816#include <$ac_header>
25817_ACEOF
25818rm -f conftest.$ac_objext
25819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25820 (eval $ac_compile) 2>conftest.er1
a848cd7e 25821 ac_status=$?
ac1cb8d3
VS
25822 grep -v '^ *+' conftest.er1 >conftest.err
25823 rm -f conftest.er1
25824 cat conftest.err >&5
a848cd7e
SC
25825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826 (exit $ac_status); } &&
3565d135
RR
25827 { ac_try='test -z "$ac_c_werror_flag"
25828 || test ! -s conftest.err'
ac1cb8d3
VS
25829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25830 (eval $ac_try) 2>&5
25831 ac_status=$?
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); }; } &&
25834 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25836 (eval $ac_try) 2>&5
25837 ac_status=$?
25838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); }; }; then
25840 ac_header_compiler=yes
25841else
25842 echo "$as_me: failed program was:" >&5
25843sed 's/^/| /' conftest.$ac_ext >&5
25844
25845ac_header_compiler=no
25846fi
ac1cb8d3 25847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25848echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25849echo "${ECHO_T}$ac_header_compiler" >&6
25850
25851# Is the header present?
25852echo "$as_me:$LINENO: checking $ac_header presence" >&5
25853echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25854cat >conftest.$ac_ext <<_ACEOF
25855/* confdefs.h. */
25856_ACEOF
25857cat confdefs.h >>conftest.$ac_ext
25858cat >>conftest.$ac_ext <<_ACEOF
25859/* end confdefs.h. */
25860#include <$ac_header>
25861_ACEOF
25862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25864 ac_status=$?
25865 grep -v '^ *+' conftest.er1 >conftest.err
25866 rm -f conftest.er1
25867 cat conftest.err >&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } >/dev/null; then
25870 if test -s conftest.err; then
25871 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25873 else
25874 ac_cpp_err=
25875 fi
25876else
25877 ac_cpp_err=yes
25878fi
25879if test -z "$ac_cpp_err"; then
25880 ac_header_preproc=yes
25881else
25882 echo "$as_me: failed program was:" >&5
25883sed 's/^/| /' conftest.$ac_ext >&5
25884
25885 ac_header_preproc=no
25886fi
25887rm -f conftest.err conftest.$ac_ext
25888echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25889echo "${ECHO_T}$ac_header_preproc" >&6
25890
25891# So? What about this header?
ac1cb8d3
VS
25892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25893 yes:no: )
a848cd7e
SC
25894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25895echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25897echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25898 ac_header_preproc=yes
a848cd7e 25899 ;;
ac1cb8d3 25900 no:yes:* )
a848cd7e
SC
25901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25904echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25906echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25908echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25912echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25913 (
25914 cat <<\_ASBOX
ac1cb8d3
VS
25915## ----------------------------------------- ##
25916## Report this to wx-dev@lists.wxwidgets.org ##
25917## ----------------------------------------- ##
a848cd7e
SC
25918_ASBOX
25919 ) |
25920 sed "s/^/$as_me: WARNING: /" >&2
25921 ;;
25922esac
25923echo "$as_me:$LINENO: checking for $ac_header" >&5
25924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25925if eval "test \"\${$as_ac_Header+set}\" = set"; then
25926 echo $ECHO_N "(cached) $ECHO_C" >&6
25927else
ac1cb8d3 25928 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25929fi
25930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25932
25933fi
25934if test `eval echo '${'$as_ac_Header'}'` = yes; then
25935 cat >>confdefs.h <<_ACEOF
25936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25937_ACEOF
25938
25939fi
25940
25941done
25942
25943 if test "${ac_cv_header_windows_h+set}" = set; then
25944 echo "$as_me:$LINENO: checking for windows.h" >&5
25945echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25946if test "${ac_cv_header_windows_h+set}" = set; then
25947 echo $ECHO_N "(cached) $ECHO_C" >&6
25948fi
25949echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25950echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25951else
25952 # Is the header compilable?
25953echo "$as_me:$LINENO: checking windows.h usability" >&5
25954echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25955cat >conftest.$ac_ext <<_ACEOF
25956/* confdefs.h. */
25957_ACEOF
25958cat confdefs.h >>conftest.$ac_ext
25959cat >>conftest.$ac_ext <<_ACEOF
25960/* end confdefs.h. */
25961$ac_includes_default
25962#include <windows.h>
25963_ACEOF
25964rm -f conftest.$ac_objext
25965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25966 (eval $ac_compile) 2>conftest.er1
a848cd7e 25967 ac_status=$?
ac1cb8d3
VS
25968 grep -v '^ *+' conftest.er1 >conftest.err
25969 rm -f conftest.er1
25970 cat conftest.err >&5
a848cd7e
SC
25971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972 (exit $ac_status); } &&
3565d135
RR
25973 { ac_try='test -z "$ac_c_werror_flag"
25974 || test ! -s conftest.err'
ac1cb8d3
VS
25975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25976 (eval $ac_try) 2>&5
25977 ac_status=$?
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); }; } &&
25980 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25982 (eval $ac_try) 2>&5
25983 ac_status=$?
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985 (exit $ac_status); }; }; then
25986 ac_header_compiler=yes
25987else
25988 echo "$as_me: failed program was:" >&5
25989sed 's/^/| /' conftest.$ac_ext >&5
25990
25991ac_header_compiler=no
25992fi
ac1cb8d3 25993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25995echo "${ECHO_T}$ac_header_compiler" >&6
25996
25997# Is the header present?
25998echo "$as_me:$LINENO: checking windows.h presence" >&5
25999echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26000cat >conftest.$ac_ext <<_ACEOF
26001/* confdefs.h. */
26002_ACEOF
26003cat confdefs.h >>conftest.$ac_ext
26004cat >>conftest.$ac_ext <<_ACEOF
26005/* end confdefs.h. */
26006#include <windows.h>
26007_ACEOF
26008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26010 ac_status=$?
26011 grep -v '^ *+' conftest.er1 >conftest.err
26012 rm -f conftest.er1
26013 cat conftest.err >&5
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); } >/dev/null; then
26016 if test -s conftest.err; then
26017 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26019 else
26020 ac_cpp_err=
26021 fi
26022else
26023 ac_cpp_err=yes
26024fi
26025if test -z "$ac_cpp_err"; then
26026 ac_header_preproc=yes
26027else
26028 echo "$as_me: failed program was:" >&5
26029sed 's/^/| /' conftest.$ac_ext >&5
26030
26031 ac_header_preproc=no
26032fi
26033rm -f conftest.err conftest.$ac_ext
26034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26035echo "${ECHO_T}$ac_header_preproc" >&6
26036
26037# So? What about this header?
ac1cb8d3
VS
26038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26039 yes:no: )
a848cd7e
SC
26040 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26041echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26042 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26043echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26044 ac_header_preproc=yes
a848cd7e 26045 ;;
ac1cb8d3 26046 no:yes:* )
a848cd7e
SC
26047 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26048echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26049 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26050echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26051 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26052echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26053 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26054echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26055 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26056echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26057 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26058echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26059 (
26060 cat <<\_ASBOX
ac1cb8d3
VS
26061## ----------------------------------------- ##
26062## Report this to wx-dev@lists.wxwidgets.org ##
26063## ----------------------------------------- ##
a848cd7e
SC
26064_ASBOX
26065 ) |
26066 sed "s/^/$as_me: WARNING: /" >&2
26067 ;;
26068esac
26069echo "$as_me:$LINENO: checking for windows.h" >&5
26070echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26071if test "${ac_cv_header_windows_h+set}" = set; then
26072 echo $ECHO_N "(cached) $ECHO_C" >&6
26073else
26074 ac_cv_header_windows_h=$ac_header_preproc
26075fi
26076echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26077echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26078
26079fi
26080if test $ac_cv_header_windows_h = yes; then
26081 :
26082else
26083
26084 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26085echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26086 { (exit 1); exit 1; }; }
26087
26088fi
26089
26090
26091
26092 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26093
26094 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26095 LIBS="$LIBS -loleacc"
26096 fi
26097
26098 case "${host}" in
26099 *-*-cygwin* )
26100 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26101 esac
26102
26103 if test "$wxUSE_ODBC" = "sys" ; then
26104 wxUSE_ODBC = "yes"
26105 fi
26106 if test "$wxUSE_ODBC" = "yes" ; then
26107 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26108 cat >>confdefs.h <<\_ACEOF
26109#define wxUSE_ODBC 1
26110_ACEOF
26111
26112 fi
26113
370d2fd7 26114 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26115 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26116
004ee6da 26117 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26118
a848cd7e
SC
26119 WIN32INSTALL=win32install
26120fi
26121
26122if test "$wxUSE_GUI" = "yes"; then
26123 USE_GUI=1
26124
26125 GUI_TK_LIBRARY=
26126
26127 WXGTK12=
26128 WXGTK127=
26129 WXGTK20=
26130 WXGPE=
26131
207bc66c
RN
26132 if test "$wxUSE_COCOA" = 1 ; then
26133 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26134 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26135echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26136 wxUSE_PRINTING_ARCHITECTURE=no
26137 fi
26138 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26139 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26140echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26141 wxUSE_DRAG_AND_DROP=no
26142 fi
26143 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26144 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26145echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26146 wxUSE_DRAGIMAGE=no
26147 fi
26148 fi
26149
a848cd7e
SC
26150 if test "$wxUSE_MSW" = 1 ; then
26151 TOOLKIT=MSW
26152 GUIDIST=MSW_DIST
26153
ceec2216 26154 case "${host}" in
a848cd7e
SC
26155 *-*-mingw32* )
26156 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26157 esac
26158 fi
26159
26160 if test "$wxUSE_GTK" = 1; then
26161 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26162echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26163
26164 gtk_version_cached=1
26165 if test "${wx_cv_lib_gtk+set}" = set; then
26166 echo $ECHO_N "(cached) $ECHO_C" >&6
26167else
26168
26169 gtk_version_cached=0
26170 echo "$as_me:$LINENO: result: " >&5
26171echo "${ECHO_T}" >&6
26172
26173 GTK_MODULES=
26174 if test "$wxUSE_THREADS" = "yes"; then
26175 GTK_MODULES=gthread
26176 fi
26177
f597b41c 26178 wx_cv_lib_gtk=
5001df0d
MW
26179 if test "x$wxGTK_VERSION" != "x1"
26180 then
26181 case "${host}" in
26182 *-*-solaris2* )
26183 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 26184 enable_gtktest=no
5001df0d
MW
26185 fi
26186 esac
26187
a848cd7e
SC
26188 # Check whether --enable-gtktest or --disable-gtktest was given.
26189if test "${enable_gtktest+set}" = set; then
26190 enableval="$enable_gtktest"
26191
26192else
26193 enable_gtktest=yes
26194fi;
26195
26196 pkg_config_args=gtk+-2.0
26197 for module in . $GTK_MODULES
26198 do
26199 case "$module" in
26200 gthread)
26201 pkg_config_args="$pkg_config_args gthread-2.0"
26202 ;;
26203 esac
26204 done
26205
26206 no_gtk=""
26207
26208 # Extract the first word of "pkg-config", so it can be a program name with args.
26209set dummy pkg-config; ac_word=$2
26210echo "$as_me:$LINENO: checking for $ac_word" >&5
26211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26212if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26213 echo $ECHO_N "(cached) $ECHO_C" >&6
26214else
26215 case $PKG_CONFIG in
26216 [\\/]* | ?:[\\/]*)
26217 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26218 ;;
26219 *)
26220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26221for as_dir in $PATH
26222do
26223 IFS=$as_save_IFS
26224 test -z "$as_dir" && as_dir=.
26225 for ac_exec_ext in '' $ac_executable_extensions; do
26226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26227 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26229 break 2
26230 fi
26231done
26232done
26233
26234 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26235 ;;
26236esac
26237fi
26238PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26239
26240if test -n "$PKG_CONFIG"; then
26241 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26242echo "${ECHO_T}$PKG_CONFIG" >&6
26243else
26244 echo "$as_me:$LINENO: result: no" >&5
26245echo "${ECHO_T}no" >&6
26246fi
26247
26248
26249 if test x$PKG_CONFIG != xno ; then
26250 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26251 :
26252 else
c2218763 26253 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26254 no_gtk=yes
26255 PKG_CONFIG=no
26256 fi
26257 else
26258 no_gtk=yes
26259 fi
26260
26261 min_gtk_version=2.0.0
26262 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26263echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26264
26265 if test x$PKG_CONFIG != xno ; then
26266 ## don't try to run the test against uninstalled libtool libs
26267 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26268 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26269 enable_gtktest=no
26270 fi
26271
26272 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26273 :
26274 else
26275 no_gtk=yes
26276 fi
26277 fi
26278
26279 if test x"$no_gtk" = x ; then
26280 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26281 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26282 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26283 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26284 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26285 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26286 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26287 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26288 if test "x$enable_gtktest" = "xyes" ; then
26289 ac_save_CFLAGS="$CFLAGS"
26290 ac_save_LIBS="$LIBS"
26291 CFLAGS="$CFLAGS $GTK_CFLAGS"
26292 LIBS="$GTK_LIBS $LIBS"
26293 rm -f conf.gtktest
26294 if test "$cross_compiling" = yes; then
26295 echo $ac_n "cross compiling; assumed OK... $ac_c"
26296else
26297 cat >conftest.$ac_ext <<_ACEOF
26298/* confdefs.h. */
26299_ACEOF
26300cat confdefs.h >>conftest.$ac_ext
26301cat >>conftest.$ac_ext <<_ACEOF
26302/* end confdefs.h. */
26303
26304#include <gtk/gtk.h>
26305#include <stdio.h>
26306#include <stdlib.h>
26307
26308int
26309main ()
26310{
26311 int major, minor, micro;
26312 char *tmp_version;
26313
26314 system ("touch conf.gtktest");
26315
26316 /* HP/UX 9 (%@#!) writes to sscanf strings */
26317 tmp_version = g_strdup("$min_gtk_version");
26318 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26319 printf("%s, bad version string\n", "$min_gtk_version");
26320 exit(1);
26321 }
26322
26323 if ((gtk_major_version != $gtk_config_major_version) ||
26324 (gtk_minor_version != $gtk_config_minor_version) ||
26325 (gtk_micro_version != $gtk_config_micro_version))
26326 {
26327 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26328 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26329 gtk_major_version, gtk_minor_version, gtk_micro_version);
26330 printf ("*** was found! If pkg-config was correct, then it is best\n");
26331 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26332 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26333 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26334 printf("*** required on your system.\n");
26335 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26336 printf("*** to point to the correct configuration files\n");
26337 }
26338 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26339 (gtk_minor_version != GTK_MINOR_VERSION) ||
26340 (gtk_micro_version != GTK_MICRO_VERSION))
26341 {
26342 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26343 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26344 printf("*** library (version %d.%d.%d)\n",
26345 gtk_major_version, gtk_minor_version, gtk_micro_version);
26346 }
26347 else
26348 {
26349 if ((gtk_major_version > major) ||
26350 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26351 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26352 {
26353 return 0;
26354 }
26355 else
26356 {
26357 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26358 gtk_major_version, gtk_minor_version, gtk_micro_version);
26359 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26360 major, minor, micro);
26361 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26362 printf("***\n");
26363 printf("*** If you have already installed a sufficiently new version, this error\n");
26364 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26365 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26366 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26367 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26368 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26369 printf("*** so that the correct libraries are found at run-time))\n");
26370 }
26371 }
26372 return 1;
26373}
26374
26375_ACEOF
26376rm -f conftest$ac_exeext
26377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26378 (eval $ac_link) 2>&5
26379 ac_status=$?
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26383 (eval $ac_try) 2>&5
26384 ac_status=$?
26385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386 (exit $ac_status); }; }; then
26387 :
26388else
26389 echo "$as_me: program exited with status $ac_status" >&5
26390echo "$as_me: failed program was:" >&5
26391sed 's/^/| /' conftest.$ac_ext >&5
26392
26393( exit $ac_status )
26394no_gtk=yes
26395fi
ac1cb8d3 26396rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26397fi
26398 CFLAGS="$ac_save_CFLAGS"
26399 LIBS="$ac_save_LIBS"
26400 fi
26401 fi
26402 if test "x$no_gtk" = x ; then
26403 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26404echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26405 wx_cv_lib_gtk=2.0
26406 else
26407 echo "$as_me:$LINENO: result: no" >&5
26408echo "${ECHO_T}no" >&6
26409 if test "$PKG_CONFIG" = "no" ; then
26410 echo "*** A new enough version of pkg-config was not found."
26411 echo "*** See http://pkgconfig.sourceforge.net"
26412 else
26413 if test -f conf.gtktest ; then
26414 :
26415 else
26416 echo "*** Could not run GTK+ test program, checking why..."
26417 ac_save_CFLAGS="$CFLAGS"
26418 ac_save_LIBS="$LIBS"
26419 CFLAGS="$CFLAGS $GTK_CFLAGS"
26420 LIBS="$LIBS $GTK_LIBS"
26421 cat >conftest.$ac_ext <<_ACEOF
26422/* confdefs.h. */
26423_ACEOF
26424cat confdefs.h >>conftest.$ac_ext
26425cat >>conftest.$ac_ext <<_ACEOF
26426/* end confdefs.h. */
26427
26428#include <gtk/gtk.h>
26429#include <stdio.h>
26430
26431int
26432main ()
26433{
26434 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26435 ;
26436 return 0;
26437}
26438_ACEOF
26439rm -f conftest.$ac_objext conftest$ac_exeext
26440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26441 (eval $ac_link) 2>conftest.er1
a848cd7e 26442 ac_status=$?
ac1cb8d3
VS
26443 grep -v '^ *+' conftest.er1 >conftest.err
26444 rm -f conftest.er1
26445 cat conftest.err >&5
a848cd7e
SC
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } &&
3565d135
RR
26448 { ac_try='test -z "$ac_c_werror_flag"
26449 || test ! -s conftest.err'
ac1cb8d3
VS
26450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451 (eval $ac_try) 2>&5
26452 ac_status=$?
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); }; } &&
26455 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26457 (eval $ac_try) 2>&5
26458 ac_status=$?
26459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); }; }; then
26461 echo "*** The test program compiled, but did not run. This usually means"
26462 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26463 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26464 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26465 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26466 echo "*** is required on your system"
26467 echo "***"
26468 echo "*** If you have an old version installed, it is best to remove it, although"
26469 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26470else
26471 echo "$as_me: failed program was:" >&5
26472sed 's/^/| /' conftest.$ac_ext >&5
26473
26474 echo "*** The test program failed to compile or link. See the file config.log for the"
26475 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26476fi
ac1cb8d3
VS
26477rm -f conftest.err conftest.$ac_objext \
26478 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26479 CFLAGS="$ac_save_CFLAGS"
26480 LIBS="$ac_save_LIBS"
26481 fi
26482 fi
26483 GTK_CFLAGS=""
26484 GTK_LIBS=""
26485 :
26486 fi
26487
26488
26489 rm -f conf.gtktest
26490
5001df0d
MW
26491
26492 case "${host}" in
26493 *-*-solaris2* )
26494 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26495 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26496 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26497 fi
26498 if test "$wxUSE_SHARED" != "yes"; then
26499 GTK_LIBS="$GTK_LIBS -lX11"
26500 fi
26501 esac
f597b41c
MW
26502 fi
26503
f34ca037
MW
26504 if test -z "$wx_cv_lib_gtk"; then
26505 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26506
26507# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26508if test "${with_gtk_prefix+set}" = set; then
26509 withval="$with_gtk_prefix"
26510 gtk_config_prefix="$withval"
26511else
26512 gtk_config_prefix=""
26513fi;
26514
26515# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26516if test "${with_gtk_exec_prefix+set}" = set; then
26517 withval="$with_gtk_exec_prefix"
26518 gtk_config_exec_prefix="$withval"
26519else
26520 gtk_config_exec_prefix=""
26521fi;
26522# Check whether --enable-gtktest or --disable-gtktest was given.
26523if test "${enable_gtktest+set}" = set; then
26524 enableval="$enable_gtktest"
26525
26526else
26527 enable_gtktest=yes
26528fi;
26529
26530 for module in . $GTK_MODULES
26531 do
26532 case "$module" in
26533 gthread)
26534 gtk_config_args="$gtk_config_args gthread"
26535 ;;
26536 esac
26537 done
26538
26539 if test x$gtk_config_exec_prefix != x ; then
26540 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26541 if test x${GTK_CONFIG+set} != xset ; then
26542 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26543 fi
26544 fi
26545 if test x$gtk_config_prefix != x ; then
26546 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26547 if test x${GTK_CONFIG+set} != xset ; then
26548 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26549 fi
26550 fi
26551
26552 # Extract the first word of "gtk-config", so it can be a program name with args.
26553set dummy gtk-config; ac_word=$2
26554echo "$as_me:$LINENO: checking for $ac_word" >&5
26555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26556if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26557 echo $ECHO_N "(cached) $ECHO_C" >&6
26558else
26559 case $GTK_CONFIG in
26560 [\\/]* | ?:[\\/]*)
26561 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26562 ;;
26563 *)
26564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26565for as_dir in $PATH
26566do
26567 IFS=$as_save_IFS
26568 test -z "$as_dir" && as_dir=.
26569 for ac_exec_ext in '' $ac_executable_extensions; do
26570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26571 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26573 break 2
26574 fi
26575done
26576done
26577
26578 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26579 ;;
26580esac
26581fi
26582GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26583
26584if test -n "$GTK_CONFIG"; then
26585 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26586echo "${ECHO_T}$GTK_CONFIG" >&6
26587else
26588 echo "$as_me:$LINENO: result: no" >&5
26589echo "${ECHO_T}no" >&6
26590fi
26591
26592 min_gtk_version=1.2.7
26593 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26594echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26595 no_gtk=""
26596 if test "$GTK_CONFIG" = "no" ; then
26597 no_gtk=yes
26598 else
26599 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26600 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26601 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26602 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26603 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26604 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26605 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26606 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26607 if test "x$enable_gtktest" = "xyes" ; then
26608 ac_save_CFLAGS="$CFLAGS"
26609 ac_save_LIBS="$LIBS"
26610 CFLAGS="$CFLAGS $GTK_CFLAGS"
26611 LIBS="$GTK_LIBS $LIBS"
26612 rm -f conf.gtktest
26613 if test "$cross_compiling" = yes; then
26614 echo $ac_n "cross compiling; assumed OK... $ac_c"
26615else
26616 cat >conftest.$ac_ext <<_ACEOF
26617/* confdefs.h. */
26618_ACEOF
26619cat confdefs.h >>conftest.$ac_ext
26620cat >>conftest.$ac_ext <<_ACEOF
26621/* end confdefs.h. */
26622
26623#include <gtk/gtk.h>
26624#include <stdio.h>
26625#include <stdlib.h>
26626
26627int
26628main ()
26629{
26630 int major, minor, micro;
26631 char *tmp_version;
26632
26633 system ("touch conf.gtktest");
26634
26635 /* HP/UX 9 (%@#!) writes to sscanf strings */
26636 tmp_version = g_strdup("$min_gtk_version");
26637 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26638 printf("%s, bad version string\n", "$min_gtk_version");
26639 exit(1);
26640 }
26641
26642 if ((gtk_major_version != $gtk_config_major_version) ||
26643 (gtk_minor_version != $gtk_config_minor_version) ||
26644 (gtk_micro_version != $gtk_config_micro_version))
26645 {
26646 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26647 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26648 gtk_major_version, gtk_minor_version, gtk_micro_version);
26649 printf ("*** was found! If gtk-config was correct, then it is best\n");
26650 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26651 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26652 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26653 printf("*** required on your system.\n");
26654 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26655 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26656 printf("*** before re-running configure\n");
26657 }
26658#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26659 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26660 (gtk_minor_version != GTK_MINOR_VERSION) ||
26661 (gtk_micro_version != GTK_MICRO_VERSION))
26662 {
26663 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26664 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26665 printf("*** library (version %d.%d.%d)\n",
26666 gtk_major_version, gtk_minor_version, gtk_micro_version);
26667 }
26668#endif /* defined (GTK_MAJOR_VERSION) ... */
26669 else
26670 {
26671 if ((gtk_major_version > major) ||
26672 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26673 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26674 {
26675 return 0;
26676 }
26677 else
26678 {
26679 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26680 gtk_major_version, gtk_minor_version, gtk_micro_version);
26681 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26682 major, minor, micro);
26683 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26684 printf("***\n");
26685 printf("*** If you have already installed a sufficiently new version, this error\n");
26686 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26687 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26688 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26689 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26690 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26691 printf("*** so that the correct libraries are found at run-time))\n");
26692 }
26693 }
26694 return 1;
26695}
26696
26697_ACEOF
26698rm -f conftest$ac_exeext
26699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26700 (eval $ac_link) 2>&5
26701 ac_status=$?
26702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26705 (eval $ac_try) 2>&5
26706 ac_status=$?
26707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); }; }; then
26709 :
26710else
26711 echo "$as_me: program exited with status $ac_status" >&5
26712echo "$as_me: failed program was:" >&5
26713sed 's/^/| /' conftest.$ac_ext >&5
26714
26715( exit $ac_status )
26716no_gtk=yes
26717fi
ac1cb8d3 26718rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26719fi
26720 CFLAGS="$ac_save_CFLAGS"
26721 LIBS="$ac_save_LIBS"
26722 fi
26723 fi
26724 if test "x$no_gtk" = x ; then
26725 echo "$as_me:$LINENO: result: yes" >&5
26726echo "${ECHO_T}yes" >&6
26727 wx_cv_lib_gtk=1.2.7
26728 else
26729 echo "$as_me:$LINENO: result: no" >&5
26730echo "${ECHO_T}no" >&6
26731 if test "$GTK_CONFIG" = "no" ; then
26732 echo "*** The gtk-config script installed by GTK could not be found"
26733 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26734 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26735 echo "*** full path to gtk-config."
26736 else
26737 if test -f conf.gtktest ; then
26738 :
26739 else
26740 echo "*** Could not run GTK test program, checking why..."
26741 CFLAGS="$CFLAGS $GTK_CFLAGS"
26742 LIBS="$LIBS $GTK_LIBS"
26743 cat >conftest.$ac_ext <<_ACEOF
26744/* confdefs.h. */
26745_ACEOF
26746cat confdefs.h >>conftest.$ac_ext
26747cat >>conftest.$ac_ext <<_ACEOF
26748/* end confdefs.h. */
26749
26750#include <gtk/gtk.h>
26751#include <stdio.h>
26752
26753int
26754main ()
26755{
26756 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26757 ;
26758 return 0;
26759}
26760_ACEOF
26761rm -f conftest.$ac_objext conftest$ac_exeext
26762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26763 (eval $ac_link) 2>conftest.er1
a848cd7e 26764 ac_status=$?
ac1cb8d3
VS
26765 grep -v '^ *+' conftest.er1 >conftest.err
26766 rm -f conftest.er1
26767 cat conftest.err >&5
a848cd7e
SC
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); } &&
3565d135
RR
26770 { ac_try='test -z "$ac_c_werror_flag"
26771 || test ! -s conftest.err'
ac1cb8d3
VS
26772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26773 (eval $ac_try) 2>&5
26774 ac_status=$?
26775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776 (exit $ac_status); }; } &&
26777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26779 (eval $ac_try) 2>&5
26780 ac_status=$?
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); }; }; then
26783 echo "*** The test program compiled, but did not run. This usually means"
26784 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26785 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26786 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26787 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26788 echo "*** is required on your system"
26789 echo "***"
26790 echo "*** If you have an old version installed, it is best to remove it, although"
26791 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26792 echo "***"
26793 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26794 echo "*** came with the system with the command"
26795 echo "***"
26796 echo "*** rpm --erase --nodeps gtk gtk-devel"
26797else
26798 echo "$as_me: failed program was:" >&5
26799sed 's/^/| /' conftest.$ac_ext >&5
26800
26801 echo "*** The test program failed to compile or link. See the file config.log for the"
26802 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26803 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26804 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26805fi
ac1cb8d3
VS
26806rm -f conftest.err conftest.$ac_objext \
26807 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26808 CFLAGS="$ac_save_CFLAGS"
26809 LIBS="$ac_save_LIBS"
26810 fi
26811 fi
26812 GTK_CFLAGS=""
26813 GTK_LIBS=""
26814 :
26815 fi
26816
26817
26818 rm -f conf.gtktest
26819
26820
f34ca037 26821 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26822
26823# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26824if test "${with_gtk_prefix+set}" = set; then
26825 withval="$with_gtk_prefix"
26826 gtk_config_prefix="$withval"
26827else
26828 gtk_config_prefix=""
26829fi;
26830
26831# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26832if test "${with_gtk_exec_prefix+set}" = set; then
26833 withval="$with_gtk_exec_prefix"
26834 gtk_config_exec_prefix="$withval"
26835else
26836 gtk_config_exec_prefix=""
26837fi;
26838# Check whether --enable-gtktest or --disable-gtktest was given.
26839if test "${enable_gtktest+set}" = set; then
26840 enableval="$enable_gtktest"
26841
26842else
26843 enable_gtktest=yes
26844fi;
26845
26846 for module in . $GTK_MODULES
26847 do
26848 case "$module" in
26849 gthread)
26850 gtk_config_args="$gtk_config_args gthread"
26851 ;;
26852 esac
26853 done
26854
26855 if test x$gtk_config_exec_prefix != x ; then
26856 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26857 if test x${GTK_CONFIG+set} != xset ; then
26858 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26859 fi
26860 fi
26861 if test x$gtk_config_prefix != x ; then
26862 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26863 if test x${GTK_CONFIG+set} != xset ; then
26864 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26865 fi
26866 fi
26867
26868 # Extract the first word of "gtk-config", so it can be a program name with args.
26869set dummy gtk-config; ac_word=$2
26870echo "$as_me:$LINENO: checking for $ac_word" >&5
26871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26872if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26873 echo $ECHO_N "(cached) $ECHO_C" >&6
26874else
26875 case $GTK_CONFIG in
26876 [\\/]* | ?:[\\/]*)
26877 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26878 ;;
26879 *)
26880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26881for as_dir in $PATH
26882do
26883 IFS=$as_save_IFS
26884 test -z "$as_dir" && as_dir=.
26885 for ac_exec_ext in '' $ac_executable_extensions; do
26886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26887 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26889 break 2
26890 fi
26891done
26892done
26893
26894 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26895 ;;
26896esac
26897fi
26898GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26899
26900if test -n "$GTK_CONFIG"; then
26901 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26902echo "${ECHO_T}$GTK_CONFIG" >&6
26903else
26904 echo "$as_me:$LINENO: result: no" >&5
26905echo "${ECHO_T}no" >&6
26906fi
26907
26908 min_gtk_version=1.2.3
26909 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26910echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26911 no_gtk=""
26912 if test "$GTK_CONFIG" = "no" ; then
26913 no_gtk=yes
26914 else
26915 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26916 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26917 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26918 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26919 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26920 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26921 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26922 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26923 if test "x$enable_gtktest" = "xyes" ; then
26924 ac_save_CFLAGS="$CFLAGS"
26925 ac_save_LIBS="$LIBS"
26926 CFLAGS="$CFLAGS $GTK_CFLAGS"
26927 LIBS="$GTK_LIBS $LIBS"
26928 rm -f conf.gtktest
26929 if test "$cross_compiling" = yes; then
26930 echo $ac_n "cross compiling; assumed OK... $ac_c"
26931else
26932 cat >conftest.$ac_ext <<_ACEOF
26933/* confdefs.h. */
26934_ACEOF
26935cat confdefs.h >>conftest.$ac_ext
26936cat >>conftest.$ac_ext <<_ACEOF
26937/* end confdefs.h. */
26938
26939#include <gtk/gtk.h>
26940#include <stdio.h>
26941#include <stdlib.h>
26942
26943int
26944main ()
26945{
26946 int major, minor, micro;
26947 char *tmp_version;
26948
26949 system ("touch conf.gtktest");
26950
26951 /* HP/UX 9 (%@#!) writes to sscanf strings */
26952 tmp_version = g_strdup("$min_gtk_version");
26953 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26954 printf("%s, bad version string\n", "$min_gtk_version");
26955 exit(1);
26956 }
26957
26958 if ((gtk_major_version != $gtk_config_major_version) ||
26959 (gtk_minor_version != $gtk_config_minor_version) ||
26960 (gtk_micro_version != $gtk_config_micro_version))
26961 {
26962 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26963 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26964 gtk_major_version, gtk_minor_version, gtk_micro_version);
26965 printf ("*** was found! If gtk-config was correct, then it is best\n");
26966 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26967 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26968 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26969 printf("*** required on your system.\n");
26970 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26971 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26972 printf("*** before re-running configure\n");
26973 }
26974#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26975 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26976 (gtk_minor_version != GTK_MINOR_VERSION) ||
26977 (gtk_micro_version != GTK_MICRO_VERSION))
26978 {
26979 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26980 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26981 printf("*** library (version %d.%d.%d)\n",
26982 gtk_major_version, gtk_minor_version, gtk_micro_version);
26983 }
26984#endif /* defined (GTK_MAJOR_VERSION) ... */
26985 else
26986 {
26987 if ((gtk_major_version > major) ||
26988 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26989 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26990 {
26991 return 0;
26992 }
26993 else
26994 {
26995 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26996 gtk_major_version, gtk_minor_version, gtk_micro_version);
26997 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26998 major, minor, micro);
26999 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27000 printf("***\n");
27001 printf("*** If you have already installed a sufficiently new version, this error\n");
27002 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27003 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27004 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27005 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27006 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27007 printf("*** so that the correct libraries are found at run-time))\n");
27008 }
27009 }
27010 return 1;
27011}
27012
27013_ACEOF
27014rm -f conftest$ac_exeext
27015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27016 (eval $ac_link) 2>&5
27017 ac_status=$?
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27021 (eval $ac_try) 2>&5
27022 ac_status=$?
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); }; }; then
27025 :
27026else
27027 echo "$as_me: program exited with status $ac_status" >&5
27028echo "$as_me: failed program was:" >&5
27029sed 's/^/| /' conftest.$ac_ext >&5
27030
27031( exit $ac_status )
27032no_gtk=yes
27033fi
ac1cb8d3 27034rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27035fi
27036 CFLAGS="$ac_save_CFLAGS"
27037 LIBS="$ac_save_LIBS"
27038 fi
27039 fi
27040 if test "x$no_gtk" = x ; then
27041 echo "$as_me:$LINENO: result: yes" >&5
27042echo "${ECHO_T}yes" >&6
27043 wx_cv_lib_gtk=1.2.3
27044 else
27045 echo "$as_me:$LINENO: result: no" >&5
27046echo "${ECHO_T}no" >&6
27047 if test "$GTK_CONFIG" = "no" ; then
27048 echo "*** The gtk-config script installed by GTK could not be found"
27049 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27050 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27051 echo "*** full path to gtk-config."
27052 else
27053 if test -f conf.gtktest ; then
27054 :
27055 else
27056 echo "*** Could not run GTK test program, checking why..."
27057 CFLAGS="$CFLAGS $GTK_CFLAGS"
27058 LIBS="$LIBS $GTK_LIBS"
27059 cat >conftest.$ac_ext <<_ACEOF
27060/* confdefs.h. */
27061_ACEOF
27062cat confdefs.h >>conftest.$ac_ext
27063cat >>conftest.$ac_ext <<_ACEOF
27064/* end confdefs.h. */
27065
27066#include <gtk/gtk.h>
27067#include <stdio.h>
27068
27069int
27070main ()
27071{
27072 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27073 ;
27074 return 0;
27075}
27076_ACEOF
27077rm -f conftest.$ac_objext conftest$ac_exeext
27078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27079 (eval $ac_link) 2>conftest.er1
a848cd7e 27080 ac_status=$?
ac1cb8d3
VS
27081 grep -v '^ *+' conftest.er1 >conftest.err
27082 rm -f conftest.er1
27083 cat conftest.err >&5
a848cd7e
SC
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); } &&
3565d135
RR
27086 { ac_try='test -z "$ac_c_werror_flag"
27087 || test ! -s conftest.err'
ac1cb8d3
VS
27088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27089 (eval $ac_try) 2>&5
27090 ac_status=$?
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); }; } &&
27093 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27095 (eval $ac_try) 2>&5
27096 ac_status=$?
27097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098 (exit $ac_status); }; }; then
27099 echo "*** The test program compiled, but did not run. This usually means"
27100 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27101 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27102 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27103 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27104 echo "*** is required on your system"
27105 echo "***"
27106 echo "*** If you have an old version installed, it is best to remove it, although"
27107 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27108 echo "***"
27109 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27110 echo "*** came with the system with the command"
27111 echo "***"
27112 echo "*** rpm --erase --nodeps gtk gtk-devel"
27113else
27114 echo "$as_me: failed program was:" >&5
27115sed 's/^/| /' conftest.$ac_ext >&5
27116
27117 echo "*** The test program failed to compile or link. See the file config.log for the"
27118 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27119 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27120 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27121fi
ac1cb8d3
VS
27122rm -f conftest.err conftest.$ac_objext \
27123 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27124 CFLAGS="$ac_save_CFLAGS"
27125 LIBS="$ac_save_LIBS"
27126 fi
27127 fi
27128 GTK_CFLAGS=""
27129 GTK_LIBS=""
27130 :
27131 fi
27132
27133
27134 rm -f conf.gtktest
27135
f34ca037 27136 fi
a848cd7e
SC
27137 fi
27138 fi
27139
27140 if test -z "$wx_cv_lib_gtk"; then
27141 wx_cv_lib_gtk=none
27142 else
27143 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27144 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27145 fi
27146
27147
27148fi
27149
27150
27151 if test "$gtk_version_cached" = 1; then
27152 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27153echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27154 fi
27155
27156 case "$wx_cv_lib_gtk" in
27157 2.0) WXGTK20=1
27158 TOOLKIT_VERSION=2
27159 ;;
27160 1.2.7) WXGTK127=1
27161 WXGTK12=1
27162 ;;
27163 1.2.3) WXGTK12=1
27164 ;;
27165 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27166The development files for GTK+ were not found. For GTK+ 2, please
27167ensure that pkg-config is in the path and that gtk+-2.0.pc is
27168installed. For GTK+ 1.2 please check that gtk-config is in the path,
27169and that the version is 1.2.3 or above. Also check that the
27170libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27171--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27172 " >&5
27173echo "$as_me: error:
f597b41c
MW
27174The development files for GTK+ were not found. For GTK+ 2, please
27175ensure that pkg-config is in the path and that gtk+-2.0.pc is
27176installed. For GTK+ 1.2 please check that gtk-config is in the path,
27177and that the version is 1.2.3 or above. Also check that the
27178libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27179--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27180 " >&2;}
27181 { (exit 1); exit 1; }; }
27182 ;;
27183 esac
27184
27185 if test "$WXGTK20" = 1; then
304205f1
VS
27186 save_CFLAGS="$CFLAGS"
27187 save_LIBS="$LIBS"
c92ad099 27188 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 27189 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27190
d12aef51
VZ
27191 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27192echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27193 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27194/* confdefs.h. */
27195_ACEOF
27196cat confdefs.h >>conftest.$ac_ext
27197cat >>conftest.$ac_ext <<_ACEOF
27198/* end confdefs.h. */
304205f1 27199
d12aef51 27200 #include <gtk/gtk.h>
304205f1 27201
d12aef51
VZ
27202int
27203main ()
27204{
304205f1 27205
d12aef51 27206 void *f = gtk_icon_size_lookup;
abc736fd
MW
27207
27208 ;
27209 return 0;
27210}
27211_ACEOF
27212rm -f conftest.$ac_objext
27213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27214 (eval $ac_compile) 2>conftest.er1
27215 ac_status=$?
27216 grep -v '^ *+' conftest.er1 >conftest.err
27217 rm -f conftest.er1
27218 cat conftest.err >&5
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); } &&
3565d135
RR
27221 { ac_try='test -z "$ac_c_werror_flag"
27222 || test ! -s conftest.err'
abc736fd
MW
27223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27224 (eval $ac_try) 2>&5
27225 ac_status=$?
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); }; } &&
27228 { ac_try='test -s conftest.$ac_objext'
27229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27230 (eval $ac_try) 2>&5
27231 ac_status=$?
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); }; }; then
27234
27235 echo "$as_me:$LINENO: result: no" >&5
27236echo "${ECHO_T}no" >&6
27237
27238else
27239 echo "$as_me: failed program was:" >&5
27240sed 's/^/| /' conftest.$ac_ext >&5
27241
27242
27243 cat >>confdefs.h <<\_ACEOF
27244#define NEED_GTK_ICON_SIZE_LOOKUP 1
27245_ACEOF
27246
27247 echo "$as_me:$LINENO: result: yes" >&5
27248echo "${ECHO_T}yes" >&6
27249
27250fi
27251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27252
9755e73b
VS
27253 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27254echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27255 cat >conftest.$ac_ext <<_ACEOF
27256/* confdefs.h. */
27257_ACEOF
27258cat confdefs.h >>conftest.$ac_ext
27259cat >>conftest.$ac_ext <<_ACEOF
27260/* end confdefs.h. */
27261
27262 #include <gtk/gtk.h>
27263
27264int
27265main ()
27266{
27267
27268 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 27269 Not GTK+ 2.4
9755e73b
VS
27270 #endif
27271
27272 ;
27273 return 0;
27274}
27275_ACEOF
27276rm -f conftest.$ac_objext
27277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27278 (eval $ac_compile) 2>conftest.er1
27279 ac_status=$?
27280 grep -v '^ *+' conftest.er1 >conftest.err
27281 rm -f conftest.er1
27282 cat conftest.err >&5
27283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284 (exit $ac_status); } &&
3565d135
RR
27285 { ac_try='test -z "$ac_c_werror_flag"
27286 || test ! -s conftest.err'
9755e73b
VS
27287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27288 (eval $ac_try) 2>&5
27289 ac_status=$?
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); }; } &&
27292 { ac_try='test -s conftest.$ac_objext'
27293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27294 (eval $ac_try) 2>&5
27295 ac_status=$?
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); }; }; then
27298
27299 cat >>confdefs.h <<\_ACEOF
27300#define __WXGTK24__ 1
27301_ACEOF
27302
27303 echo "$as_me:$LINENO: result: yes" >&5
27304echo "${ECHO_T}yes" >&6
27305
27306else
27307 echo "$as_me: failed program was:" >&5
27308sed 's/^/| /' conftest.$ac_ext >&5
27309
27310
27311 echo "$as_me:$LINENO: result: no" >&5
27312echo "${ECHO_T}no" >&6
27313
27314fi
27315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27316
304205f1
VS
27317 CFLAGS="$save_CFLAGS"
27318 LIBS="$save_LIBS"
a848cd7e
SC
27319 else
27320 if test "$wxUSE_UNICODE" = "yes"; then
27321 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27322echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27323 wxUSE_UNICODE=no
27324 fi
27325 fi
27326
27327 if test "$USE_DARWIN" != 1; then
27328
27329for ac_func in poll
27330do
27331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27332echo "$as_me:$LINENO: checking for $ac_func" >&5
27333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27334if eval "test \"\${$as_ac_var+set}\" = set"; then
27335 echo $ECHO_N "(cached) $ECHO_C" >&6
27336else
27337 cat >conftest.$ac_ext <<_ACEOF
27338/* confdefs.h. */
27339_ACEOF
27340cat confdefs.h >>conftest.$ac_ext
27341cat >>conftest.$ac_ext <<_ACEOF
27342/* end confdefs.h. */
ac1cb8d3
VS
27343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27345#define $ac_func innocuous_$ac_func
27346
a848cd7e
SC
27347/* System header to define __stub macros and hopefully few prototypes,
27348 which can conflict with char $ac_func (); below.
27349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27350 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27351
a848cd7e
SC
27352#ifdef __STDC__
27353# include <limits.h>
27354#else
27355# include <assert.h>
27356#endif
ac1cb8d3
VS
27357
27358#undef $ac_func
27359
a848cd7e
SC
27360/* Override any gcc2 internal prototype to avoid an error. */
27361#ifdef __cplusplus
27362extern "C"
27363{
27364#endif
27365/* We use char because int might match the return type of a gcc2
27366 builtin and then its argument prototype would still apply. */
27367char $ac_func ();
27368/* The GNU C library defines this for functions which it implements
27369 to always fail with ENOSYS. Some functions are actually named
27370 something starting with __ and the normal name is an alias. */
27371#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27372choke me
27373#else
27374char (*f) () = $ac_func;
27375#endif
27376#ifdef __cplusplus
27377}
27378#endif
27379
27380int
27381main ()
27382{
27383return f != $ac_func;
27384 ;
27385 return 0;
27386}
27387_ACEOF
27388rm -f conftest.$ac_objext conftest$ac_exeext
27389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27390 (eval $ac_link) 2>conftest.er1
a848cd7e 27391 ac_status=$?
ac1cb8d3
VS
27392 grep -v '^ *+' conftest.er1 >conftest.err
27393 rm -f conftest.er1
27394 cat conftest.err >&5
a848cd7e
SC
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); } &&
3565d135
RR
27397 { ac_try='test -z "$ac_c_werror_flag"
27398 || test ! -s conftest.err'
ac1cb8d3
VS
27399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27400 (eval $ac_try) 2>&5
27401 ac_status=$?
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); }; } &&
27404 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27406 (eval $ac_try) 2>&5
27407 ac_status=$?
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); }; }; then
27410 eval "$as_ac_var=yes"
27411else
27412 echo "$as_me: failed program was:" >&5
27413sed 's/^/| /' conftest.$ac_ext >&5
27414
27415eval "$as_ac_var=no"
27416fi
ac1cb8d3
VS
27417rm -f conftest.err conftest.$ac_objext \
27418 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27419fi
27420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27421echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27422if test `eval echo '${'$as_ac_var'}'` = yes; then
27423 cat >>confdefs.h <<_ACEOF
27424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27425_ACEOF
27426
27427fi
27428done
27429
27430 fi
27431
27432 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27433 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27434
27435 AFMINSTALL=afminstall
27436 TOOLKIT=GTK
27437 GUIDIST=GTK_DIST
27438
27439 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27440echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27441if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27442 echo $ECHO_N "(cached) $ECHO_C" >&6
27443else
27444 ac_check_lib_save_LIBS=$LIBS
27445LIBS="-lgdk $LIBS"
27446cat >conftest.$ac_ext <<_ACEOF
27447/* confdefs.h. */
27448_ACEOF
27449cat confdefs.h >>conftest.$ac_ext
27450cat >>conftest.$ac_ext <<_ACEOF
27451/* end confdefs.h. */
27452
27453/* Override any gcc2 internal prototype to avoid an error. */
27454#ifdef __cplusplus
27455extern "C"
27456#endif
27457/* We use char because int might match the return type of a gcc2
27458 builtin and then its argument prototype would still apply. */
27459char gdk_im_open ();
27460int
27461main ()
27462{
27463gdk_im_open ();
27464 ;
27465 return 0;
27466}
27467_ACEOF
27468rm -f conftest.$ac_objext conftest$ac_exeext
27469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27470 (eval $ac_link) 2>conftest.er1
a848cd7e 27471 ac_status=$?
ac1cb8d3
VS
27472 grep -v '^ *+' conftest.er1 >conftest.err
27473 rm -f conftest.er1
27474 cat conftest.err >&5
a848cd7e
SC
27475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); } &&
3565d135
RR
27477 { ac_try='test -z "$ac_c_werror_flag"
27478 || test ! -s conftest.err'
ac1cb8d3
VS
27479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27480 (eval $ac_try) 2>&5
27481 ac_status=$?
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); }; } &&
27484 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27486 (eval $ac_try) 2>&5
27487 ac_status=$?
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); }; }; then
27490 ac_cv_lib_gdk_gdk_im_open=yes
27491else
27492 echo "$as_me: failed program was:" >&5
27493sed 's/^/| /' conftest.$ac_ext >&5
27494
27495ac_cv_lib_gdk_gdk_im_open=no
27496fi
ac1cb8d3
VS
27497rm -f conftest.err conftest.$ac_objext \
27498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27499LIBS=$ac_check_lib_save_LIBS
27500fi
27501echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27502echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27503if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27504 cat >>confdefs.h <<\_ACEOF
27505#define HAVE_XIM 1
27506_ACEOF
27507
27508fi
27509
27510
27511
27512 if test "$wxUSE_GPE" = "yes"; then
27513 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27514echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27515
0ad5d837
VZ
27516 ac_find_libraries=
27517 for ac_dir in $SEARCH_LIB;
a848cd7e 27518 do
3eca31dc 27519 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27520 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27521 ac_find_libraries=$ac_dir
27522 break 2
27523 fi
27524 done
27525 done
27526
27527 if test "$ac_find_libraries" != "" ; then
27528
0ad5d837 27529 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27530 ac_path_to_link=""
27531 else
0ad5d837
VZ
27532 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27533 result=$?
27534 if test $result = 0; then
27535 ac_path_to_link=""
27536 else
27537 ac_path_to_link=" -L$ac_find_libraries"
27538 fi
a848cd7e
SC
27539 fi
27540
27541 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27542 WXGPE=1
0ad5d837
VZ
27543 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27544echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27545 else
27546 echo "$as_me:$LINENO: result: not found" >&5
27547echo "${ECHO_T}not found" >&6
27548 fi
27549
27550 fi
27551 fi
27552
27553 if test "$wxUSE_MGL" = 1; then
27554 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27555echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27556 if test "x$MGL_ROOT" = x ; then
27557 echo "$as_me:$LINENO: result: not found" >&5
27558echo "${ECHO_T}not found" >&6
27559 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27560echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27561 { (exit 1); exit 1; }; }
27562 else
27563 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27564echo "${ECHO_T}$MGL_ROOT" >&6
27565 fi
27566
27567 echo "$as_me:$LINENO: checking for libmgl location" >&5
27568echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27569 case "${host}" in
27570 *-*-linux* )
27571 if test "x$wxUSE_SHARED" = xyes ; then
27572 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27573 else
27574 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27575 fi
27576 ;;
27577 *-pc-msdosdjgpp )
27578 mgl_os_candidates="dos32/dj2"
27579 ;;
27580 *)
27581 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27582echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27583 { (exit 1); exit 1; }; }
27584 esac
27585
27586 mgl_lib_type=""
27587 mgl_os=""
27588
27589 for mgl_os_i in $mgl_os_candidates ; do
27590 if test "x$mgl_os" = x ; then
27591 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27592 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27593 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27594 mgl_lib_type=debug
27595 mgl_os=$mgl_os_i
27596 fi
27597 fi
27598 if test "x$mgl_lib_type" = x ; then
27599 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27600 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27601 mgl_lib_type=release
27602 mgl_os=$mgl_os_i
27603 fi
27604 fi
27605 fi
27606 done
27607
27608 if test "x$mgl_os" = x ; then
27609 echo "$as_me:$LINENO: result: not found" >&5
27610echo "${ECHO_T}not found" >&6
27611 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27612echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27613 { (exit 1); exit 1; }; }
27614 fi
27615 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27616echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27617
27618 wxUSE_UNIVERSAL="yes"
27619
27620 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27621 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27622
27623 AFMINSTALL=afminstall
27624 TOOLKIT=MGL
27625 GUIDIST=MGL_DIST
27626 fi
27627
27628 if test "$wxUSE_MICROWIN" = 1; then
27629 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27630echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27631 if test "x$MICROWINDOWS" = x ; then
27632 echo "$as_me:$LINENO: result: not found" >&5
27633echo "${ECHO_T}not found" >&6
27634 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27635echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27636 { (exit 1); exit 1; }; }
27637 else
27638 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27639echo "${ECHO_T}$MICROWINDOWS" >&6
27640 fi
27641
27642 if test -f $MICROWINDOWS/lib/libmwin.a; then
27643 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27644echo "${ECHO_T}MicroWindows' libraries found." >&6
27645 else
27646 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27647echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27648 { (exit 1); exit 1; }; }
27649 fi
27650
27651 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27652 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27653
27654 wxUSE_UNIVERSAL="yes"
27655
27656 AFMINSTALL=afminstall
27657 TOOLKIT=MICROWIN
27658 GUIDIST=MICROWIN_DIST
27659
27660 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27661 fi
27662
74b84332 27663 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
3565d135 27664 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27665echo $ECHO_N "checking for X... $ECHO_C" >&6
27666
27667
27668# Check whether --with-x or --without-x was given.
27669if test "${with_x+set}" = set; then
27670 withval="$with_x"
27671
27672fi;
27673# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27674if test "x$with_x" = xno; then
27675 # The user explicitly disabled X.
27676 have_x=disabled
27677else
27678 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27679 # Both variables are already set.
27680 have_x=yes
27681 else
27682 if test "${ac_cv_have_x+set}" = set; then
27683 echo $ECHO_N "(cached) $ECHO_C" >&6
27684else
27685 # One or both of the vars are not set, and there is no cached value.
27686ac_x_includes=no ac_x_libraries=no
27687rm -fr conftest.dir
27688if mkdir conftest.dir; then
27689 cd conftest.dir
27690 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27691 cat >Imakefile <<'_ACEOF'
27692acfindx:
27693 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27694_ACEOF
27695 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27696 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27697 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27698 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27699 for ac_extension in a so sl; do
27700 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27701 test -f $ac_im_libdir/libX11.$ac_extension; then
27702 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27703 fi
27704 done
27705 # Screen out bogus values from the imake configuration. They are
27706 # bogus both because they are the default anyway, and because
27707 # using them would break gcc on systems where it needs fixed includes.
27708 case $ac_im_incroot in
27709 /usr/include) ;;
27710 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27711 esac
27712 case $ac_im_usrlibdir in
27713 /usr/lib | /lib) ;;
27714 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27715 esac
27716 fi
27717 cd ..
27718 rm -fr conftest.dir
27719fi
27720
27721# Standard set of common directories for X headers.
27722# Check X11 before X11Rn because it is often a symlink to the current release.
27723ac_x_header_dirs='
27724/usr/X11/include
27725/usr/X11R6/include
27726/usr/X11R5/include
27727/usr/X11R4/include
27728
27729/usr/include/X11
27730/usr/include/X11R6
27731/usr/include/X11R5
27732/usr/include/X11R4
27733
27734/usr/local/X11/include
27735/usr/local/X11R6/include
27736/usr/local/X11R5/include
27737/usr/local/X11R4/include
27738
27739/usr/local/include/X11
27740/usr/local/include/X11R6
27741/usr/local/include/X11R5
27742/usr/local/include/X11R4
27743
27744/usr/X386/include
27745/usr/x386/include
27746/usr/XFree86/include/X11
27747
27748/usr/include
27749/usr/local/include
27750/usr/unsupported/include
27751/usr/athena/include
27752/usr/local/x11r5/include
27753/usr/lpp/Xamples/include
27754
27755/usr/openwin/include
27756/usr/openwin/share/include'
27757
27758if test "$ac_x_includes" = no; then
3565d135 27759 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
27760 # First, try using that file with no special directory specified.
27761 cat >conftest.$ac_ext <<_ACEOF
27762/* confdefs.h. */
27763_ACEOF
27764cat confdefs.h >>conftest.$ac_ext
27765cat >>conftest.$ac_ext <<_ACEOF
27766/* end confdefs.h. */
3565d135 27767#include <X11/Intrinsic.h>
a848cd7e
SC
27768_ACEOF
27769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27771 ac_status=$?
27772 grep -v '^ *+' conftest.er1 >conftest.err
27773 rm -f conftest.er1
27774 cat conftest.err >&5
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); } >/dev/null; then
27777 if test -s conftest.err; then
27778 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27780 else
27781 ac_cpp_err=
27782 fi
27783else
27784 ac_cpp_err=yes
27785fi
27786if test -z "$ac_cpp_err"; then
27787 # We can compile using X headers with no special include directory.
27788ac_x_includes=
27789else
27790 echo "$as_me: failed program was:" >&5
27791sed 's/^/| /' conftest.$ac_ext >&5
27792
27793 for ac_dir in $ac_x_header_dirs; do
3565d135 27794 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
27795 ac_x_includes=$ac_dir
27796 break
27797 fi
27798done
27799fi
27800rm -f conftest.err conftest.$ac_ext
27801fi # $ac_x_includes = no
27802
27803if test "$ac_x_libraries" = no; then
27804 # Check for the libraries.
27805 # See if we find them without any special options.
27806 # Don't add to $LIBS permanently.
27807 ac_save_LIBS=$LIBS
3565d135 27808 LIBS="-lXt $LIBS"
a848cd7e
SC
27809 cat >conftest.$ac_ext <<_ACEOF
27810/* confdefs.h. */
27811_ACEOF
27812cat confdefs.h >>conftest.$ac_ext
27813cat >>conftest.$ac_ext <<_ACEOF
27814/* end confdefs.h. */
3565d135 27815#include <X11/Intrinsic.h>
a848cd7e
SC
27816int
27817main ()
27818{
3565d135 27819XtMalloc (0)
a848cd7e
SC
27820 ;
27821 return 0;
27822}
27823_ACEOF
27824rm -f conftest.$ac_objext conftest$ac_exeext
27825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27826 (eval $ac_link) 2>conftest.er1
a848cd7e 27827 ac_status=$?
ac1cb8d3
VS
27828 grep -v '^ *+' conftest.er1 >conftest.err
27829 rm -f conftest.er1
27830 cat conftest.err >&5
a848cd7e
SC
27831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832 (exit $ac_status); } &&
3565d135
RR
27833 { ac_try='test -z "$ac_c_werror_flag"
27834 || test ! -s conftest.err'
ac1cb8d3
VS
27835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27836 (eval $ac_try) 2>&5
27837 ac_status=$?
27838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839 (exit $ac_status); }; } &&
27840 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27842 (eval $ac_try) 2>&5
27843 ac_status=$?
27844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845 (exit $ac_status); }; }; then
27846 LIBS=$ac_save_LIBS
27847# We can link X programs with no special library path.
27848ac_x_libraries=
27849else
27850 echo "$as_me: failed program was:" >&5
27851sed 's/^/| /' conftest.$ac_ext >&5
27852
27853LIBS=$ac_save_LIBS
27854for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27855do
27856 # Don't even attempt the hair of trying to link an X program!
27857 for ac_extension in a so sl; do
3565d135 27858 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
27859 ac_x_libraries=$ac_dir
27860 break 2
27861 fi
27862 done
27863done
27864fi
ac1cb8d3
VS
27865rm -f conftest.err conftest.$ac_objext \
27866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27867fi # $ac_x_libraries = no
27868
27869if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27870 # Didn't find X anywhere. Cache the known absence of X.
27871 ac_cv_have_x="have_x=no"
27872else
27873 # Record where we found X for the cache.
27874 ac_cv_have_x="have_x=yes \
ac1cb8d3 27875 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27876fi
27877fi
27878
27879 fi
27880 eval "$ac_cv_have_x"
27881fi # $with_x != no
27882
27883if test "$have_x" != yes; then
27884 echo "$as_me:$LINENO: result: $have_x" >&5
27885echo "${ECHO_T}$have_x" >&6
27886 no_x=yes
27887else
27888 # If each of the values was on the command line, it overrides each guess.
27889 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27890 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27891 # Update the cache value to reflect the command line values.
27892 ac_cv_have_x="have_x=yes \
27893 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3565d135
RR
27894 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
27895echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
27896fi
27897
27898if test "$no_x" = yes; then
27899 # Not all programs may use this symbol, but it does not hurt to define it.
27900
27901cat >>confdefs.h <<\_ACEOF
27902#define X_DISPLAY_MISSING 1
27903_ACEOF
27904
27905 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27906else
27907 if test -n "$x_includes"; then
27908 X_CFLAGS="$X_CFLAGS -I$x_includes"
27909 fi
27910
27911 # It would also be nice to do this for all -L options, not just this one.
27912 if test -n "$x_libraries"; then
27913 X_LIBS="$X_LIBS -L$x_libraries"
27914 # For Solaris; some versions of Sun CC require a space after -R and
27915 # others require no space. Words are not sufficient . . . .
27916 case `(uname -sr) 2>/dev/null` in
27917 "SunOS 5"*)
27918 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27919echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27920 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27921 cat >conftest.$ac_ext <<_ACEOF
27922/* confdefs.h. */
27923_ACEOF
27924cat confdefs.h >>conftest.$ac_ext
27925cat >>conftest.$ac_ext <<_ACEOF
27926/* end confdefs.h. */
27927
27928int
27929main ()
27930{
27931
27932 ;
27933 return 0;
27934}
27935_ACEOF
27936rm -f conftest.$ac_objext conftest$ac_exeext
27937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27938 (eval $ac_link) 2>conftest.er1
a848cd7e 27939 ac_status=$?
ac1cb8d3
VS
27940 grep -v '^ *+' conftest.er1 >conftest.err
27941 rm -f conftest.er1
27942 cat conftest.err >&5
a848cd7e
SC
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); } &&
3565d135
RR
27945 { ac_try='test -z "$ac_c_werror_flag"
27946 || test ! -s conftest.err'
ac1cb8d3
VS
27947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948 (eval $ac_try) 2>&5
27949 ac_status=$?
27950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951 (exit $ac_status); }; } &&
27952 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954 (eval $ac_try) 2>&5
27955 ac_status=$?
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; }; then
27958 ac_R_nospace=yes
27959else
27960 echo "$as_me: failed program was:" >&5
27961sed 's/^/| /' conftest.$ac_ext >&5
27962
27963ac_R_nospace=no
27964fi
ac1cb8d3
VS
27965rm -f conftest.err conftest.$ac_objext \
27966 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27967 if test $ac_R_nospace = yes; then
27968 echo "$as_me:$LINENO: result: no" >&5
27969echo "${ECHO_T}no" >&6
27970 X_LIBS="$X_LIBS -R$x_libraries"
27971 else
27972 LIBS="$ac_xsave_LIBS -R $x_libraries"
27973 cat >conftest.$ac_ext <<_ACEOF
27974/* confdefs.h. */
27975_ACEOF
27976cat confdefs.h >>conftest.$ac_ext
27977cat >>conftest.$ac_ext <<_ACEOF
27978/* end confdefs.h. */
27979
27980int
27981main ()
27982{
27983
27984 ;
27985 return 0;
27986}
27987_ACEOF
27988rm -f conftest.$ac_objext conftest$ac_exeext
27989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27990 (eval $ac_link) 2>conftest.er1
a848cd7e 27991 ac_status=$?
ac1cb8d3
VS
27992 grep -v '^ *+' conftest.er1 >conftest.err
27993 rm -f conftest.er1
27994 cat conftest.err >&5
a848cd7e
SC
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); } &&
3565d135
RR
27997 { ac_try='test -z "$ac_c_werror_flag"
27998 || test ! -s conftest.err'
ac1cb8d3
VS
27999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28000 (eval $ac_try) 2>&5
28001 ac_status=$?
28002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); }; } &&
28004 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28006 (eval $ac_try) 2>&5
28007 ac_status=$?
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); }; }; then
28010 ac_R_space=yes
28011else
28012 echo "$as_me: failed program was:" >&5
28013sed 's/^/| /' conftest.$ac_ext >&5
28014
28015ac_R_space=no
28016fi
ac1cb8d3
VS
28017rm -f conftest.err conftest.$ac_objext \
28018 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28019 if test $ac_R_space = yes; then
28020 echo "$as_me:$LINENO: result: yes" >&5
28021echo "${ECHO_T}yes" >&6
28022 X_LIBS="$X_LIBS -R $x_libraries"
28023 else
28024 echo "$as_me:$LINENO: result: neither works" >&5
28025echo "${ECHO_T}neither works" >&6
28026 fi
28027 fi
28028 LIBS=$ac_xsave_LIBS
28029 esac
28030 fi
28031
28032 # Check for system-dependent libraries X programs must link with.
28033 # Do this before checking for the system-independent R6 libraries
28034 # (-lICE), since we may need -lsocket or whatever for X linking.
28035
28036 if test "$ISC" = yes; then
28037 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28038 else
28039 # Martyn Johnson says this is needed for Ultrix, if the X
28040 # libraries were built with DECnet support. And Karl Berry says
28041 # the Alpha needs dnet_stub (dnet does not exist).
28042 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28043 cat >conftest.$ac_ext <<_ACEOF
28044/* confdefs.h. */
28045_ACEOF
28046cat confdefs.h >>conftest.$ac_ext
28047cat >>conftest.$ac_ext <<_ACEOF
28048/* end confdefs.h. */
28049
28050/* Override any gcc2 internal prototype to avoid an error. */
28051#ifdef __cplusplus
28052extern "C"
28053#endif
28054/* We use char because int might match the return type of a gcc2
28055 builtin and then its argument prototype would still apply. */
28056char XOpenDisplay ();
28057int
28058main ()
28059{
28060XOpenDisplay ();
28061 ;
28062 return 0;
28063}
28064_ACEOF
28065rm -f conftest.$ac_objext conftest$ac_exeext
28066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28067 (eval $ac_link) 2>conftest.er1
a848cd7e 28068 ac_status=$?
ac1cb8d3
VS
28069 grep -v '^ *+' conftest.er1 >conftest.err
28070 rm -f conftest.er1
28071 cat conftest.err >&5
a848cd7e
SC
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); } &&
3565d135
RR
28074 { ac_try='test -z "$ac_c_werror_flag"
28075 || test ! -s conftest.err'
ac1cb8d3
VS
28076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28077 (eval $ac_try) 2>&5
28078 ac_status=$?
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); }; } &&
28081 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083 (eval $ac_try) 2>&5
28084 ac_status=$?
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; }; then
28087 :
28088else
28089 echo "$as_me: failed program was:" >&5
28090sed 's/^/| /' conftest.$ac_ext >&5
28091
28092echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28093echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28094if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28095 echo $ECHO_N "(cached) $ECHO_C" >&6
28096else
28097 ac_check_lib_save_LIBS=$LIBS
28098LIBS="-ldnet $LIBS"
28099cat >conftest.$ac_ext <<_ACEOF
28100/* confdefs.h. */
28101_ACEOF
28102cat confdefs.h >>conftest.$ac_ext
28103cat >>conftest.$ac_ext <<_ACEOF
28104/* end confdefs.h. */
28105
28106/* Override any gcc2 internal prototype to avoid an error. */
28107#ifdef __cplusplus
28108extern "C"
28109#endif
28110/* We use char because int might match the return type of a gcc2
28111 builtin and then its argument prototype would still apply. */
28112char dnet_ntoa ();
28113int
28114main ()
28115{
28116dnet_ntoa ();
28117 ;
28118 return 0;
28119}
28120_ACEOF
28121rm -f conftest.$ac_objext conftest$ac_exeext
28122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28123 (eval $ac_link) 2>conftest.er1
a848cd7e 28124 ac_status=$?
ac1cb8d3
VS
28125 grep -v '^ *+' conftest.er1 >conftest.err
28126 rm -f conftest.er1
28127 cat conftest.err >&5
a848cd7e
SC
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); } &&
3565d135
RR
28130 { ac_try='test -z "$ac_c_werror_flag"
28131 || test ! -s conftest.err'
ac1cb8d3
VS
28132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133 (eval $ac_try) 2>&5
28134 ac_status=$?
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); }; } &&
28137 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28140 ac_status=$?
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; }; then
28143 ac_cv_lib_dnet_dnet_ntoa=yes
28144else
28145 echo "$as_me: failed program was:" >&5
28146sed 's/^/| /' conftest.$ac_ext >&5
28147
28148ac_cv_lib_dnet_dnet_ntoa=no
28149fi
ac1cb8d3
VS
28150rm -f conftest.err conftest.$ac_objext \
28151 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28152LIBS=$ac_check_lib_save_LIBS
28153fi
28154echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28155echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28156if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28157 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28158fi
28159
28160 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28161 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28162echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28163if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28164 echo $ECHO_N "(cached) $ECHO_C" >&6
28165else
28166 ac_check_lib_save_LIBS=$LIBS
28167LIBS="-ldnet_stub $LIBS"
28168cat >conftest.$ac_ext <<_ACEOF
28169/* confdefs.h. */
28170_ACEOF
28171cat confdefs.h >>conftest.$ac_ext
28172cat >>conftest.$ac_ext <<_ACEOF
28173/* end confdefs.h. */
28174
28175/* Override any gcc2 internal prototype to avoid an error. */
28176#ifdef __cplusplus
28177extern "C"
28178#endif
28179/* We use char because int might match the return type of a gcc2
28180 builtin and then its argument prototype would still apply. */
28181char dnet_ntoa ();
28182int
28183main ()
28184{
28185dnet_ntoa ();
28186 ;
28187 return 0;
28188}
28189_ACEOF
28190rm -f conftest.$ac_objext conftest$ac_exeext
28191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28192 (eval $ac_link) 2>conftest.er1
a848cd7e 28193 ac_status=$?
ac1cb8d3
VS
28194 grep -v '^ *+' conftest.er1 >conftest.err
28195 rm -f conftest.er1
28196 cat conftest.err >&5
a848cd7e
SC
28197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28198 (exit $ac_status); } &&
3565d135
RR
28199 { ac_try='test -z "$ac_c_werror_flag"
28200 || test ! -s conftest.err'
ac1cb8d3
VS
28201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28202 (eval $ac_try) 2>&5
28203 ac_status=$?
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; } &&
28206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28208 (eval $ac_try) 2>&5
28209 ac_status=$?
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); }; }; then
28212 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28213else
28214 echo "$as_me: failed program was:" >&5
28215sed 's/^/| /' conftest.$ac_ext >&5
28216
28217ac_cv_lib_dnet_stub_dnet_ntoa=no
28218fi
ac1cb8d3
VS
28219rm -f conftest.err conftest.$ac_objext \
28220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28221LIBS=$ac_check_lib_save_LIBS
28222fi
28223echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28224echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28225if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28226 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28227fi
28228
28229 fi
28230fi
ac1cb8d3
VS
28231rm -f conftest.err conftest.$ac_objext \
28232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28233 LIBS="$ac_xsave_LIBS"
28234
28235 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28236 # to get the SysV transport functions.
28237 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28238 # needs -lnsl.
28239 # The nsl library prevents programs from opening the X display
28240 # on Irix 5.2, according to T.E. Dickey.
28241 # The functions gethostbyname, getservbyname, and inet_addr are
28242 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28243 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28244echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28245if test "${ac_cv_func_gethostbyname+set}" = set; then
28246 echo $ECHO_N "(cached) $ECHO_C" >&6
28247else
28248 cat >conftest.$ac_ext <<_ACEOF
28249/* confdefs.h. */
28250_ACEOF
28251cat confdefs.h >>conftest.$ac_ext
28252cat >>conftest.$ac_ext <<_ACEOF
28253/* end confdefs.h. */
ac1cb8d3
VS
28254/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28256#define gethostbyname innocuous_gethostbyname
28257
a848cd7e
SC
28258/* System header to define __stub macros and hopefully few prototypes,
28259 which can conflict with char gethostbyname (); below.
28260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28261 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28262
a848cd7e
SC
28263#ifdef __STDC__
28264# include <limits.h>
28265#else
28266# include <assert.h>
28267#endif
ac1cb8d3
VS
28268
28269#undef gethostbyname
28270
a848cd7e
SC
28271/* Override any gcc2 internal prototype to avoid an error. */
28272#ifdef __cplusplus
28273extern "C"
28274{
28275#endif
28276/* We use char because int might match the return type of a gcc2
28277 builtin and then its argument prototype would still apply. */
28278char gethostbyname ();
28279/* The GNU C library defines this for functions which it implements
28280 to always fail with ENOSYS. Some functions are actually named
28281 something starting with __ and the normal name is an alias. */
28282#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28283choke me
28284#else
28285char (*f) () = gethostbyname;
28286#endif
28287#ifdef __cplusplus
28288}
28289#endif
28290
28291int
28292main ()
28293{
28294return f != gethostbyname;
28295 ;
28296 return 0;
28297}
28298_ACEOF
28299rm -f conftest.$ac_objext conftest$ac_exeext
28300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28301 (eval $ac_link) 2>conftest.er1
a848cd7e 28302 ac_status=$?
ac1cb8d3
VS
28303 grep -v '^ *+' conftest.er1 >conftest.err
28304 rm -f conftest.er1
28305 cat conftest.err >&5
a848cd7e
SC
28306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 (exit $ac_status); } &&
3565d135
RR
28308 { ac_try='test -z "$ac_c_werror_flag"
28309 || test ! -s conftest.err'
ac1cb8d3
VS
28310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311 (eval $ac_try) 2>&5
28312 ac_status=$?
28313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314 (exit $ac_status); }; } &&
28315 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28317 (eval $ac_try) 2>&5
28318 ac_status=$?
28319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320 (exit $ac_status); }; }; then
28321 ac_cv_func_gethostbyname=yes
28322else
28323 echo "$as_me: failed program was:" >&5
28324sed 's/^/| /' conftest.$ac_ext >&5
28325
28326ac_cv_func_gethostbyname=no
28327fi
ac1cb8d3
VS
28328rm -f conftest.err conftest.$ac_objext \
28329 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28330fi
28331echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28332echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28333
28334 if test $ac_cv_func_gethostbyname = no; then
28335 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28336echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28337if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28338 echo $ECHO_N "(cached) $ECHO_C" >&6
28339else
28340 ac_check_lib_save_LIBS=$LIBS
28341LIBS="-lnsl $LIBS"
28342cat >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/* Override any gcc2 internal prototype to avoid an error. */
28350#ifdef __cplusplus
28351extern "C"
28352#endif
28353/* We use char because int might match the return type of a gcc2
28354 builtin and then its argument prototype would still apply. */
28355char gethostbyname ();
28356int
28357main ()
28358{
28359gethostbyname ();
28360 ;
28361 return 0;
28362}
28363_ACEOF
28364rm -f conftest.$ac_objext conftest$ac_exeext
28365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28366 (eval $ac_link) 2>conftest.er1
28367 ac_status=$?
28368 grep -v '^ *+' conftest.er1 >conftest.err
28369 rm -f conftest.er1
28370 cat conftest.err >&5
28371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372 (exit $ac_status); } &&
3565d135
RR
28373 { ac_try='test -z "$ac_c_werror_flag"
28374 || test ! -s conftest.err'
ac1cb8d3
VS
28375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28376 (eval $ac_try) 2>&5
28377 ac_status=$?
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); }; } &&
28380 { ac_try='test -s conftest$ac_exeext'
28381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28382 (eval $ac_try) 2>&5
28383 ac_status=$?
28384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385 (exit $ac_status); }; }; then
28386 ac_cv_lib_nsl_gethostbyname=yes
28387else
28388 echo "$as_me: failed program was:" >&5
28389sed 's/^/| /' conftest.$ac_ext >&5
28390
28391ac_cv_lib_nsl_gethostbyname=no
28392fi
28393rm -f conftest.err conftest.$ac_objext \
28394 conftest$ac_exeext conftest.$ac_ext
28395LIBS=$ac_check_lib_save_LIBS
28396fi
28397echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28398echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28399if test $ac_cv_lib_nsl_gethostbyname = yes; then
28400 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28401fi
28402
28403 if test $ac_cv_lib_nsl_gethostbyname = no; then
28404 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28405echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28406if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28407 echo $ECHO_N "(cached) $ECHO_C" >&6
28408else
28409 ac_check_lib_save_LIBS=$LIBS
28410LIBS="-lbsd $LIBS"
28411cat >conftest.$ac_ext <<_ACEOF
28412/* confdefs.h. */
28413_ACEOF
28414cat confdefs.h >>conftest.$ac_ext
28415cat >>conftest.$ac_ext <<_ACEOF
28416/* end confdefs.h. */
28417
28418/* Override any gcc2 internal prototype to avoid an error. */
28419#ifdef __cplusplus
28420extern "C"
28421#endif
28422/* We use char because int might match the return type of a gcc2
28423 builtin and then its argument prototype would still apply. */
28424char gethostbyname ();
28425int
28426main ()
28427{
28428gethostbyname ();
28429 ;
28430 return 0;
28431}
28432_ACEOF
28433rm -f conftest.$ac_objext conftest$ac_exeext
28434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28435 (eval $ac_link) 2>conftest.er1
a848cd7e 28436 ac_status=$?
ac1cb8d3
VS
28437 grep -v '^ *+' conftest.er1 >conftest.err
28438 rm -f conftest.er1
28439 cat conftest.err >&5
a848cd7e
SC
28440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441 (exit $ac_status); } &&
3565d135
RR
28442 { ac_try='test -z "$ac_c_werror_flag"
28443 || test ! -s conftest.err'
a848cd7e
SC
28444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28445 (eval $ac_try) 2>&5
28446 ac_status=$?
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28448 (exit $ac_status); }; } &&
28449 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451 (eval $ac_try) 2>&5
28452 ac_status=$?
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); }; }; then
28455 ac_cv_lib_bsd_gethostbyname=yes
28456else
28457 echo "$as_me: failed program was:" >&5
28458sed 's/^/| /' conftest.$ac_ext >&5
28459
28460ac_cv_lib_bsd_gethostbyname=no
28461fi
ac1cb8d3
VS
28462rm -f conftest.err conftest.$ac_objext \
28463 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28464LIBS=$ac_check_lib_save_LIBS
28465fi
28466echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28467echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28468if test $ac_cv_lib_bsd_gethostbyname = yes; then
28469 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28470fi
28471
28472 fi
28473 fi
28474
28475 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28476 # socket/setsockopt and other routines are undefined under SCO ODT
28477 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28478 # on later versions), says Simon Leinen: it contains gethostby*
28479 # variants that don't use the name server (or something). -lsocket
28480 # must be given before -lnsl if both are needed. We assume that
28481 # if connect needs -lnsl, so does gethostbyname.
28482 echo "$as_me:$LINENO: checking for connect" >&5
28483echo $ECHO_N "checking for connect... $ECHO_C" >&6
28484if test "${ac_cv_func_connect+set}" = set; then
28485 echo $ECHO_N "(cached) $ECHO_C" >&6
28486else
28487 cat >conftest.$ac_ext <<_ACEOF
28488/* confdefs.h. */
28489_ACEOF
28490cat confdefs.h >>conftest.$ac_ext
28491cat >>conftest.$ac_ext <<_ACEOF
28492/* end confdefs.h. */
ac1cb8d3
VS
28493/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28495#define connect innocuous_connect
28496
a848cd7e
SC
28497/* System header to define __stub macros and hopefully few prototypes,
28498 which can conflict with char connect (); below.
28499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28500 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28501
a848cd7e
SC
28502#ifdef __STDC__
28503# include <limits.h>
28504#else
28505# include <assert.h>
28506#endif
ac1cb8d3
VS
28507
28508#undef connect
28509
a848cd7e
SC
28510/* Override any gcc2 internal prototype to avoid an error. */
28511#ifdef __cplusplus
28512extern "C"
28513{
28514#endif
28515/* We use char because int might match the return type of a gcc2
28516 builtin and then its argument prototype would still apply. */
28517char connect ();
28518/* The GNU C library defines this for functions which it implements
28519 to always fail with ENOSYS. Some functions are actually named
28520 something starting with __ and the normal name is an alias. */
28521#if defined (__stub_connect) || defined (__stub___connect)
28522choke me
28523#else
28524char (*f) () = connect;
28525#endif
28526#ifdef __cplusplus
28527}
28528#endif
28529
28530int
28531main ()
28532{
28533return f != connect;
28534 ;
28535 return 0;
28536}
28537_ACEOF
28538rm -f conftest.$ac_objext conftest$ac_exeext
28539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28540 (eval $ac_link) 2>conftest.er1
a848cd7e 28541 ac_status=$?
ac1cb8d3
VS
28542 grep -v '^ *+' conftest.er1 >conftest.err
28543 rm -f conftest.er1
28544 cat conftest.err >&5
a848cd7e
SC
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); } &&
3565d135
RR
28547 { ac_try='test -z "$ac_c_werror_flag"
28548 || test ! -s conftest.err'
ac1cb8d3
VS
28549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28550 (eval $ac_try) 2>&5
28551 ac_status=$?
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); }; } &&
28554 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28556 (eval $ac_try) 2>&5
28557 ac_status=$?
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); }; }; then
28560 ac_cv_func_connect=yes
28561else
28562 echo "$as_me: failed program was:" >&5
28563sed 's/^/| /' conftest.$ac_ext >&5
28564
28565ac_cv_func_connect=no
28566fi
ac1cb8d3
VS
28567rm -f conftest.err conftest.$ac_objext \
28568 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28569fi
28570echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28571echo "${ECHO_T}$ac_cv_func_connect" >&6
28572
28573 if test $ac_cv_func_connect = no; then
28574 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28575echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28576if test "${ac_cv_lib_socket_connect+set}" = set; then
28577 echo $ECHO_N "(cached) $ECHO_C" >&6
28578else
28579 ac_check_lib_save_LIBS=$LIBS
28580LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28581cat >conftest.$ac_ext <<_ACEOF
28582/* confdefs.h. */
28583_ACEOF
28584cat confdefs.h >>conftest.$ac_ext
28585cat >>conftest.$ac_ext <<_ACEOF
28586/* end confdefs.h. */
28587
28588/* Override any gcc2 internal prototype to avoid an error. */
28589#ifdef __cplusplus
28590extern "C"
28591#endif
28592/* We use char because int might match the return type of a gcc2
28593 builtin and then its argument prototype would still apply. */
28594char connect ();
28595int
28596main ()
28597{
28598connect ();
28599 ;
28600 return 0;
28601}
28602_ACEOF
28603rm -f conftest.$ac_objext conftest$ac_exeext
28604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28605 (eval $ac_link) 2>conftest.er1
a848cd7e 28606 ac_status=$?
ac1cb8d3
VS
28607 grep -v '^ *+' conftest.er1 >conftest.err
28608 rm -f conftest.er1
28609 cat conftest.err >&5
a848cd7e
SC
28610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611 (exit $ac_status); } &&
3565d135
RR
28612 { ac_try='test -z "$ac_c_werror_flag"
28613 || test ! -s conftest.err'
ac1cb8d3
VS
28614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28615 (eval $ac_try) 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; } &&
28619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28621 (eval $ac_try) 2>&5
28622 ac_status=$?
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); }; }; then
28625 ac_cv_lib_socket_connect=yes
28626else
28627 echo "$as_me: failed program was:" >&5
28628sed 's/^/| /' conftest.$ac_ext >&5
28629
28630ac_cv_lib_socket_connect=no
28631fi
ac1cb8d3
VS
28632rm -f conftest.err conftest.$ac_objext \
28633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28634LIBS=$ac_check_lib_save_LIBS
28635fi
28636echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28637echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28638if test $ac_cv_lib_socket_connect = yes; then
28639 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28640fi
28641
28642 fi
28643
28644 # Guillermo Gomez says -lposix is necessary on A/UX.
28645 echo "$as_me:$LINENO: checking for remove" >&5
28646echo $ECHO_N "checking for remove... $ECHO_C" >&6
28647if test "${ac_cv_func_remove+set}" = set; then
28648 echo $ECHO_N "(cached) $ECHO_C" >&6
28649else
28650 cat >conftest.$ac_ext <<_ACEOF
28651/* confdefs.h. */
28652_ACEOF
28653cat confdefs.h >>conftest.$ac_ext
28654cat >>conftest.$ac_ext <<_ACEOF
28655/* end confdefs.h. */
ac1cb8d3
VS
28656/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28658#define remove innocuous_remove
28659
a848cd7e
SC
28660/* System header to define __stub macros and hopefully few prototypes,
28661 which can conflict with char remove (); below.
28662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28663 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28664
a848cd7e
SC
28665#ifdef __STDC__
28666# include <limits.h>
28667#else
28668# include <assert.h>
28669#endif
ac1cb8d3
VS
28670
28671#undef remove
28672
a848cd7e
SC
28673/* Override any gcc2 internal prototype to avoid an error. */
28674#ifdef __cplusplus
28675extern "C"
28676{
28677#endif
28678/* We use char because int might match the return type of a gcc2
28679 builtin and then its argument prototype would still apply. */
28680char remove ();
28681/* The GNU C library defines this for functions which it implements
28682 to always fail with ENOSYS. Some functions are actually named
28683 something starting with __ and the normal name is an alias. */
28684#if defined (__stub_remove) || defined (__stub___remove)
28685choke me
28686#else
28687char (*f) () = remove;
28688#endif
28689#ifdef __cplusplus
28690}
28691#endif
28692
28693int
28694main ()
28695{
28696return f != remove;
28697 ;
28698 return 0;
28699}
28700_ACEOF
28701rm -f conftest.$ac_objext conftest$ac_exeext
28702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28703 (eval $ac_link) 2>conftest.er1
a848cd7e 28704 ac_status=$?
ac1cb8d3
VS
28705 grep -v '^ *+' conftest.er1 >conftest.err
28706 rm -f conftest.er1
28707 cat conftest.err >&5
a848cd7e
SC
28708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 (exit $ac_status); } &&
3565d135
RR
28710 { ac_try='test -z "$ac_c_werror_flag"
28711 || test ! -s conftest.err'
ac1cb8d3
VS
28712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28713 (eval $ac_try) 2>&5
28714 ac_status=$?
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); }; } &&
28717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28719 (eval $ac_try) 2>&5
28720 ac_status=$?
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); }; }; then
28723 ac_cv_func_remove=yes
28724else
28725 echo "$as_me: failed program was:" >&5
28726sed 's/^/| /' conftest.$ac_ext >&5
28727
28728ac_cv_func_remove=no
28729fi
ac1cb8d3
VS
28730rm -f conftest.err conftest.$ac_objext \
28731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28732fi
28733echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28734echo "${ECHO_T}$ac_cv_func_remove" >&6
28735
28736 if test $ac_cv_func_remove = no; then
28737 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28738echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28739if test "${ac_cv_lib_posix_remove+set}" = set; then
28740 echo $ECHO_N "(cached) $ECHO_C" >&6
28741else
28742 ac_check_lib_save_LIBS=$LIBS
28743LIBS="-lposix $LIBS"
28744cat >conftest.$ac_ext <<_ACEOF
28745/* confdefs.h. */
28746_ACEOF
28747cat confdefs.h >>conftest.$ac_ext
28748cat >>conftest.$ac_ext <<_ACEOF
28749/* end confdefs.h. */
28750
28751/* Override any gcc2 internal prototype to avoid an error. */
28752#ifdef __cplusplus
28753extern "C"
28754#endif
28755/* We use char because int might match the return type of a gcc2
28756 builtin and then its argument prototype would still apply. */
28757char remove ();
28758int
28759main ()
28760{
28761remove ();
28762 ;
28763 return 0;
28764}
28765_ACEOF
28766rm -f conftest.$ac_objext conftest$ac_exeext
28767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28768 (eval $ac_link) 2>conftest.er1
a848cd7e 28769 ac_status=$?
ac1cb8d3
VS
28770 grep -v '^ *+' conftest.er1 >conftest.err
28771 rm -f conftest.er1
28772 cat conftest.err >&5
a848cd7e
SC
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); } &&
3565d135
RR
28775 { ac_try='test -z "$ac_c_werror_flag"
28776 || test ! -s conftest.err'
ac1cb8d3
VS
28777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778 (eval $ac_try) 2>&5
28779 ac_status=$?
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); }; } &&
28782 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784 (eval $ac_try) 2>&5
28785 ac_status=$?
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); }; }; then
28788 ac_cv_lib_posix_remove=yes
28789else
28790 echo "$as_me: failed program was:" >&5
28791sed 's/^/| /' conftest.$ac_ext >&5
28792
28793ac_cv_lib_posix_remove=no
28794fi
ac1cb8d3
VS
28795rm -f conftest.err conftest.$ac_objext \
28796 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28797LIBS=$ac_check_lib_save_LIBS
28798fi
28799echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28800echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28801if test $ac_cv_lib_posix_remove = yes; then
28802 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28803fi
28804
28805 fi
28806
28807 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28808 echo "$as_me:$LINENO: checking for shmat" >&5
28809echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28810if test "${ac_cv_func_shmat+set}" = set; then
28811 echo $ECHO_N "(cached) $ECHO_C" >&6
28812else
28813 cat >conftest.$ac_ext <<_ACEOF
28814/* confdefs.h. */
28815_ACEOF
28816cat confdefs.h >>conftest.$ac_ext
28817cat >>conftest.$ac_ext <<_ACEOF
28818/* end confdefs.h. */
ac1cb8d3
VS
28819/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28821#define shmat innocuous_shmat
28822
a848cd7e
SC
28823/* System header to define __stub macros and hopefully few prototypes,
28824 which can conflict with char shmat (); below.
28825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28826 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28827
a848cd7e
SC
28828#ifdef __STDC__
28829# include <limits.h>
28830#else
28831# include <assert.h>
28832#endif
ac1cb8d3
VS
28833
28834#undef shmat
28835
a848cd7e
SC
28836/* Override any gcc2 internal prototype to avoid an error. */
28837#ifdef __cplusplus
28838extern "C"
28839{
28840#endif
28841/* We use char because int might match the return type of a gcc2
28842 builtin and then its argument prototype would still apply. */
28843char shmat ();
28844/* The GNU C library defines this for functions which it implements
28845 to always fail with ENOSYS. Some functions are actually named
28846 something starting with __ and the normal name is an alias. */
28847#if defined (__stub_shmat) || defined (__stub___shmat)
28848choke me
28849#else
28850char (*f) () = shmat;
28851#endif
28852#ifdef __cplusplus
28853}
28854#endif
28855
28856int
28857main ()
28858{
28859return f != shmat;
28860 ;
28861 return 0;
28862}
28863_ACEOF
28864rm -f conftest.$ac_objext conftest$ac_exeext
28865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28866 (eval $ac_link) 2>conftest.er1
a848cd7e 28867 ac_status=$?
ac1cb8d3
VS
28868 grep -v '^ *+' conftest.er1 >conftest.err
28869 rm -f conftest.er1
28870 cat conftest.err >&5
a848cd7e
SC
28871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); } &&
3565d135
RR
28873 { ac_try='test -z "$ac_c_werror_flag"
28874 || test ! -s conftest.err'
ac1cb8d3
VS
28875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28876 (eval $ac_try) 2>&5
28877 ac_status=$?
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); }; } &&
28880 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28882 (eval $ac_try) 2>&5
28883 ac_status=$?
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); }; }; then
28886 ac_cv_func_shmat=yes
28887else
28888 echo "$as_me: failed program was:" >&5
28889sed 's/^/| /' conftest.$ac_ext >&5
28890
28891ac_cv_func_shmat=no
28892fi
ac1cb8d3
VS
28893rm -f conftest.err conftest.$ac_objext \
28894 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28895fi
28896echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28897echo "${ECHO_T}$ac_cv_func_shmat" >&6
28898
28899 if test $ac_cv_func_shmat = no; then
28900 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28901echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28902if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28903 echo $ECHO_N "(cached) $ECHO_C" >&6
28904else
28905 ac_check_lib_save_LIBS=$LIBS
28906LIBS="-lipc $LIBS"
28907cat >conftest.$ac_ext <<_ACEOF
28908/* confdefs.h. */
28909_ACEOF
28910cat confdefs.h >>conftest.$ac_ext
28911cat >>conftest.$ac_ext <<_ACEOF
28912/* end confdefs.h. */
28913
28914/* Override any gcc2 internal prototype to avoid an error. */
28915#ifdef __cplusplus
28916extern "C"
28917#endif
28918/* We use char because int might match the return type of a gcc2
28919 builtin and then its argument prototype would still apply. */
28920char shmat ();
28921int
28922main ()
28923{
28924shmat ();
28925 ;
28926 return 0;
28927}
28928_ACEOF
28929rm -f conftest.$ac_objext conftest$ac_exeext
28930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28931 (eval $ac_link) 2>conftest.er1
a848cd7e 28932 ac_status=$?
ac1cb8d3
VS
28933 grep -v '^ *+' conftest.er1 >conftest.err
28934 rm -f conftest.er1
28935 cat conftest.err >&5
a848cd7e
SC
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); } &&
3565d135
RR
28938 { ac_try='test -z "$ac_c_werror_flag"
28939 || test ! -s conftest.err'
ac1cb8d3
VS
28940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941 (eval $ac_try) 2>&5
28942 ac_status=$?
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; } &&
28945 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28947 (eval $ac_try) 2>&5
28948 ac_status=$?
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); }; }; then
28951 ac_cv_lib_ipc_shmat=yes
28952else
28953 echo "$as_me: failed program was:" >&5
28954sed 's/^/| /' conftest.$ac_ext >&5
28955
28956ac_cv_lib_ipc_shmat=no
28957fi
ac1cb8d3
VS
28958rm -f conftest.err conftest.$ac_objext \
28959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28960LIBS=$ac_check_lib_save_LIBS
28961fi
28962echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28963echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28964if test $ac_cv_lib_ipc_shmat = yes; then
28965 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28966fi
28967
28968 fi
28969 fi
28970
28971 # Check for libraries that X11R6 Xt/Xaw programs need.
28972 ac_save_LDFLAGS=$LDFLAGS
28973 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28974 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28975 # check for ICE first), but we must link in the order -lSM -lICE or
28976 # we get undefined symbols. So assume we have SM if we have ICE.
28977 # These have to be linked with before -lX11, unlike the other
28978 # libraries we check for below, so use a different variable.
28979 # John Interrante, Karl Berry
28980 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28981echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28982if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28983 echo $ECHO_N "(cached) $ECHO_C" >&6
28984else
28985 ac_check_lib_save_LIBS=$LIBS
28986LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28987cat >conftest.$ac_ext <<_ACEOF
28988/* confdefs.h. */
28989_ACEOF
28990cat confdefs.h >>conftest.$ac_ext
28991cat >>conftest.$ac_ext <<_ACEOF
28992/* end confdefs.h. */
28993
28994/* Override any gcc2 internal prototype to avoid an error. */
28995#ifdef __cplusplus
28996extern "C"
28997#endif
28998/* We use char because int might match the return type of a gcc2
28999 builtin and then its argument prototype would still apply. */
29000char IceConnectionNumber ();
29001int
29002main ()
29003{
29004IceConnectionNumber ();
29005 ;
29006 return 0;
29007}
29008_ACEOF
29009rm -f conftest.$ac_objext conftest$ac_exeext
29010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29011 (eval $ac_link) 2>conftest.er1
a848cd7e 29012 ac_status=$?
ac1cb8d3
VS
29013 grep -v '^ *+' conftest.er1 >conftest.err
29014 rm -f conftest.er1
29015 cat conftest.err >&5
a848cd7e
SC
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); } &&
3565d135
RR
29018 { ac_try='test -z "$ac_c_werror_flag"
29019 || test ! -s conftest.err'
ac1cb8d3
VS
29020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021 (eval $ac_try) 2>&5
29022 ac_status=$?
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; } &&
29025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29027 (eval $ac_try) 2>&5
29028 ac_status=$?
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); }; }; then
29031 ac_cv_lib_ICE_IceConnectionNumber=yes
29032else
29033 echo "$as_me: failed program was:" >&5
29034sed 's/^/| /' conftest.$ac_ext >&5
29035
29036ac_cv_lib_ICE_IceConnectionNumber=no
29037fi
ac1cb8d3
VS
29038rm -f conftest.err conftest.$ac_objext \
29039 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29040LIBS=$ac_check_lib_save_LIBS
29041fi
29042echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29043echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29044if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29045 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29046fi
29047
29048 LDFLAGS=$ac_save_LDFLAGS
29049
29050fi
29051
29052
29053 if test "$no_x" = "yes"; then
89d90d6d
VZ
29054 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29055echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29056 { (exit 1); exit 1; }; }
a848cd7e
SC
29057 fi
29058
74b84332
VS
29059 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29060 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
29061 AFMINSTALL=afminstall
29062 COMPILED_X_PROGRAM=0
29063
74b84332
VS
29064 fi
29065
29066 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
29067 if test "$wxUSE_NANOX" = "yes"; then
29068 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29069echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29070 if test "x$MICROWIN" = x ; then
29071 echo "$as_me:$LINENO: result: not found" >&5
29072echo "${ECHO_T}not found" >&6
29073 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29074echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29075 { (exit 1); exit 1; }; }
29076 else
29077 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29078echo "${ECHO_T}$MICROWIN" >&6
29079 cat >>confdefs.h <<\_ACEOF
29080#define wxUSE_NANOX 1
29081_ACEOF
29082
29083 fi
29084 fi
29085
29086 if test "$wxUSE_UNICODE" = "yes"; then
29087
29088 succeeded=no
29089
29090 if test -z "$PKG_CONFIG"; then
29091 # Extract the first word of "pkg-config", so it can be a program name with args.
29092set dummy pkg-config; ac_word=$2
29093echo "$as_me:$LINENO: checking for $ac_word" >&5
29094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29095if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29096 echo $ECHO_N "(cached) $ECHO_C" >&6
29097else
29098 case $PKG_CONFIG in
29099 [\\/]* | ?:[\\/]*)
29100 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29101 ;;
29102 *)
29103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29104for as_dir in $PATH
29105do
29106 IFS=$as_save_IFS
29107 test -z "$as_dir" && as_dir=.
29108 for ac_exec_ext in '' $ac_executable_extensions; do
29109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29110 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29112 break 2
29113 fi
29114done
29115done
29116
29117 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29118 ;;
29119esac
29120fi
29121PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29122
29123if test -n "$PKG_CONFIG"; then
29124 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29125echo "${ECHO_T}$PKG_CONFIG" >&6
29126else
29127 echo "$as_me:$LINENO: result: no" >&5
29128echo "${ECHO_T}no" >&6
29129fi
29130
29131 fi
29132
29133 if test "$PKG_CONFIG" = "no" ; then
29134 echo "*** The pkg-config script could not be found. Make sure it is"
29135 echo "*** in your path, or set the PKG_CONFIG environment variable"
29136 echo "*** to the full path to pkg-config."
29137 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29138 else
29139 PKG_CONFIG_MIN_VERSION=0.9.0
29140 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29141 echo "$as_me:$LINENO: checking for pangox" >&5
29142echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29143
29144 if $PKG_CONFIG --exists "pangox" ; then
29145 echo "$as_me:$LINENO: result: yes" >&5
29146echo "${ECHO_T}yes" >&6
29147 succeeded=yes
29148
29149 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29150echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29151 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29152 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29153echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29154
29155 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29156echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29157 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29158 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29159echo "${ECHO_T}$PANGOX_LIBS" >&6
29160 else
29161 PANGOX_CFLAGS=""
29162 PANGOX_LIBS=""
29163 ## If we have a custom action on failure, don't print errors, but
29164 ## do set a variable so people can do so.
29165 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29166
29167 fi
29168
29169
29170
29171 else
29172 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29173 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29174 fi
29175 fi
29176
29177 if test $succeeded = yes; then
29178
c92ad099 29179 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
29180 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29181
29182 else
29183
29184 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29185echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29186 { (exit 1); exit 1; }; }
29187
29188
29189 fi
29190
29191
29192 succeeded=no
29193
29194 if test -z "$PKG_CONFIG"; then
29195 # Extract the first word of "pkg-config", so it can be a program name with args.
29196set dummy pkg-config; ac_word=$2
29197echo "$as_me:$LINENO: checking for $ac_word" >&5
29198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29199if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29200 echo $ECHO_N "(cached) $ECHO_C" >&6
29201else
29202 case $PKG_CONFIG in
29203 [\\/]* | ?:[\\/]*)
29204 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29205 ;;
29206 *)
29207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29208for as_dir in $PATH
29209do
29210 IFS=$as_save_IFS
29211 test -z "$as_dir" && as_dir=.
29212 for ac_exec_ext in '' $ac_executable_extensions; do
29213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29214 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29216 break 2
29217 fi
29218done
29219done
29220
29221 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29222 ;;
29223esac
29224fi
29225PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29226
29227if test -n "$PKG_CONFIG"; then
29228 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29229echo "${ECHO_T}$PKG_CONFIG" >&6
29230else
29231 echo "$as_me:$LINENO: result: no" >&5
29232echo "${ECHO_T}no" >&6
29233fi
29234
29235 fi
29236
29237 if test "$PKG_CONFIG" = "no" ; then
29238 echo "*** The pkg-config script could not be found. Make sure it is"
29239 echo "*** in your path, or set the PKG_CONFIG environment variable"
29240 echo "*** to the full path to pkg-config."
29241 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29242 else
29243 PKG_CONFIG_MIN_VERSION=0.9.0
29244 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29245 echo "$as_me:$LINENO: checking for pangoft2" >&5
29246echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29247
29248 if $PKG_CONFIG --exists "pangoft2" ; then
29249 echo "$as_me:$LINENO: result: yes" >&5
29250echo "${ECHO_T}yes" >&6
29251 succeeded=yes
29252
29253 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29254echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29255 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29256 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29257echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29258
29259 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29260echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29261 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29262 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29263echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29264 else
29265 PANGOFT2_CFLAGS=""
29266 PANGOFT2_LIBS=""
29267 ## If we have a custom action on failure, don't print errors, but
29268 ## do set a variable so people can do so.
29269 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29270
29271 fi
29272
29273
29274
29275 else
29276 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29277 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29278 fi
29279 fi
29280
29281 if test $succeeded = yes; then
29282
c92ad099 29283 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
29284 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29285
29286 else
29287
29288 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29289echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29290 wxUSE_PRINTING_ARCHITECTURE="no"
29291
29292
29293 fi
29294
29295
29296 succeeded=no
29297
29298 if test -z "$PKG_CONFIG"; then
29299 # Extract the first word of "pkg-config", so it can be a program name with args.
29300set dummy pkg-config; ac_word=$2
29301echo "$as_me:$LINENO: checking for $ac_word" >&5
29302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29303if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29304 echo $ECHO_N "(cached) $ECHO_C" >&6
29305else
29306 case $PKG_CONFIG in
29307 [\\/]* | ?:[\\/]*)
29308 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29309 ;;
29310 *)
29311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29312for as_dir in $PATH
29313do
29314 IFS=$as_save_IFS
29315 test -z "$as_dir" && as_dir=.
29316 for ac_exec_ext in '' $ac_executable_extensions; do
29317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29318 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29320 break 2
29321 fi
29322done
29323done
29324
29325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29326 ;;
29327esac
29328fi
29329PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29330
29331if test -n "$PKG_CONFIG"; then
29332 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29333echo "${ECHO_T}$PKG_CONFIG" >&6
29334else
29335 echo "$as_me:$LINENO: result: no" >&5
29336echo "${ECHO_T}no" >&6
29337fi
29338
29339 fi
29340
29341 if test "$PKG_CONFIG" = "no" ; then
29342 echo "*** The pkg-config script could not be found. Make sure it is"
29343 echo "*** in your path, or set the PKG_CONFIG environment variable"
29344 echo "*** to the full path to pkg-config."
29345 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29346 else
29347 PKG_CONFIG_MIN_VERSION=0.9.0
29348 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29349 echo "$as_me:$LINENO: checking for pangoxft" >&5
29350echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29351
29352 if $PKG_CONFIG --exists "pangoxft" ; then
29353 echo "$as_me:$LINENO: result: yes" >&5
29354echo "${ECHO_T}yes" >&6
29355 succeeded=yes
29356
29357 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29358echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29359 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29360 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29361echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29362
29363 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29364echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29365 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29366 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29367echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29368 else
29369 PANGOXFT_CFLAGS=""
29370 PANGOXFT_LIBS=""
29371 ## If we have a custom action on failure, don't print errors, but
29372 ## do set a variable so people can do so.
29373 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29374
29375 fi
29376
29377
29378
29379 else
29380 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29381 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29382 fi
29383 fi
29384
29385 if test $succeeded = yes; then
29386
4ae1af05
MB
29387 cat >>confdefs.h <<\_ACEOF
29388#define HAVE_PANGO_XFT 1
29389_ACEOF
29390
c92ad099 29391 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
29392 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29393
29394 else
29395
29396 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29397echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29398
29399
29400 fi
29401
304205f1
VS
29402 save_CFLAGS="$CFLAGS"
29403 save_LIBS="$LIBS"
c92ad099 29404 CFLAGS="$PANGOX_CFLAGS $CFLAGS"
304205f1
VS
29405 LIBS="$LIBS $PANGOX_LIBS"
29406
29407for ac_func in pango_font_family_is_monospace
29408do
29409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29410echo "$as_me:$LINENO: checking for $ac_func" >&5
29411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29412if eval "test \"\${$as_ac_var+set}\" = set"; then
29413 echo $ECHO_N "(cached) $ECHO_C" >&6
29414else
29415 cat >conftest.$ac_ext <<_ACEOF
29416/* confdefs.h. */
29417_ACEOF
29418cat confdefs.h >>conftest.$ac_ext
29419cat >>conftest.$ac_ext <<_ACEOF
29420/* end confdefs.h. */
29421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29423#define $ac_func innocuous_$ac_func
29424
29425/* System header to define __stub macros and hopefully few prototypes,
29426 which can conflict with char $ac_func (); below.
29427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29428 <limits.h> exists even on freestanding compilers. */
29429
29430#ifdef __STDC__
29431# include <limits.h>
29432#else
29433# include <assert.h>
29434#endif
29435
29436#undef $ac_func
29437
29438/* Override any gcc2 internal prototype to avoid an error. */
29439#ifdef __cplusplus
29440extern "C"
29441{
29442#endif
29443/* We use char because int might match the return type of a gcc2
29444 builtin and then its argument prototype would still apply. */
29445char $ac_func ();
29446/* The GNU C library defines this for functions which it implements
29447 to always fail with ENOSYS. Some functions are actually named
29448 something starting with __ and the normal name is an alias. */
29449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29450choke me
29451#else
29452char (*f) () = $ac_func;
29453#endif
29454#ifdef __cplusplus
29455}
29456#endif
29457
29458int
29459main ()
29460{
29461return f != $ac_func;
29462 ;
29463 return 0;
29464}
29465_ACEOF
29466rm -f conftest.$ac_objext conftest$ac_exeext
29467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29468 (eval $ac_link) 2>conftest.er1
29469 ac_status=$?
29470 grep -v '^ *+' conftest.er1 >conftest.err
29471 rm -f conftest.er1
29472 cat conftest.err >&5
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); } &&
3565d135
RR
29475 { ac_try='test -z "$ac_c_werror_flag"
29476 || test ! -s conftest.err'
304205f1
VS
29477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478 (eval $ac_try) 2>&5
29479 ac_status=$?
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); }; } &&
29482 { ac_try='test -s conftest$ac_exeext'
29483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29484 (eval $ac_try) 2>&5
29485 ac_status=$?
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); }; }; then
29488 eval "$as_ac_var=yes"
29489else
29490 echo "$as_me: failed program was:" >&5
29491sed 's/^/| /' conftest.$ac_ext >&5
29492
29493eval "$as_ac_var=no"
29494fi
29495rm -f conftest.err conftest.$ac_objext \
29496 conftest$ac_exeext conftest.$ac_ext
29497fi
29498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29500if test `eval echo '${'$as_ac_var'}'` = yes; then
29501 cat >>confdefs.h <<_ACEOF
29502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29503_ACEOF
29504
29505fi
29506done
29507
29508 CFLAGS="$save_CFLAGS"
29509 LIBS="$save_LIBS"
a848cd7e
SC
29510 fi
29511
29512 wxUSE_UNIVERSAL="yes"
29513
29514 if test "$wxUSE_NANOX" = "yes"; then
29515 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29516 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"
29517 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29518 else
29519 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29520 fi
29521
a848cd7e
SC
29522 TOOLKIT=X11
29523 GUIDIST=X11_DIST
29524 fi
29525
29526 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29527 if test "$wxUSE_UNICODE" = "yes"; then
29528 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29529echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29530 { (exit 1); exit 1; }; }
29531 fi
29532
74b84332
VS
29533 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29534echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29535
74b84332
VS
29536ac_find_includes=
29537for ac_dir in $SEARCH_INCLUDE /usr/include;
29538 do
29539 if test -f "$ac_dir/Xm/Xm.h"; then
29540 ac_find_includes=$ac_dir
29541 break
29542 fi
29543 done
a848cd7e 29544
74b84332
VS
29545 if test "$ac_find_includes" != "" ; then
29546 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29547echo "${ECHO_T}found in $ac_find_includes" >&6
29548
29549 if test "x$ac_find_includes" = "x/usr/include"; then
29550 ac_path_to_include=""
29551 else
29552 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29553 result=$?
29554 if test $result = 0; then
29555 ac_path_to_include=""
29556 else
29557 ac_path_to_include=" -I$ac_find_includes"
29558 fi
a848cd7e
SC
29559 fi
29560
74b84332
VS
29561 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29562 else
e051b34e 29563 save_CFLAGS=$CFLAGS
c92ad099 29564 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
e051b34e 29565
74b84332 29566 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29567/* confdefs.h. */
29568_ACEOF
29569cat confdefs.h >>conftest.$ac_ext
29570cat >>conftest.$ac_ext <<_ACEOF
29571/* end confdefs.h. */
29572
74b84332
VS
29573 #include <Xm/Xm.h>
29574
a848cd7e
SC
29575int
29576main ()
29577{
29578
74b84332
VS
29579 int version;
29580 version = xmUseVersion;
29581
a848cd7e
SC
29582 ;
29583 return 0;
29584}
29585_ACEOF
74b84332
VS
29586rm -f conftest.$ac_objext
29587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29588 (eval $ac_compile) 2>conftest.er1
a848cd7e 29589 ac_status=$?
ac1cb8d3
VS
29590 grep -v '^ *+' conftest.er1 >conftest.err
29591 rm -f conftest.er1
29592 cat conftest.err >&5
a848cd7e
SC
29593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594 (exit $ac_status); } &&
3565d135
RR
29595 { ac_try='test -z "$ac_c_werror_flag"
29596 || test ! -s conftest.err'
ac1cb8d3
VS
29597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29598 (eval $ac_try) 2>&5
29599 ac_status=$?
29600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601 (exit $ac_status); }; } &&
74b84332 29602 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29604 (eval $ac_try) 2>&5
29605 ac_status=$?
29606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607 (exit $ac_status); }; }; then
74b84332
VS
29608
29609 echo "$as_me:$LINENO: result: found in default search path" >&5
29610echo "${ECHO_T}found in default search path" >&6
29611 COMPILED_X_PROGRAM=1
29612
a848cd7e
SC
29613else
29614 echo "$as_me: failed program was:" >&5
29615sed 's/^/| /' conftest.$ac_ext >&5
29616
a848cd7e 29617
74b84332
VS
29618 echo "$as_me:$LINENO: result: no" >&5
29619echo "${ECHO_T}no" >&6
e051b34e
MW
29620 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29621echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29622 { (exit 1); exit 1; }; }
a848cd7e 29623
a848cd7e 29624
a848cd7e 29625fi
74b84332 29626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29627
29628 CFLAGS=$save_CFLAGS
74b84332
VS
29629 fi
29630
0ad5d837
VZ
29631
29632 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29633echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29634
0ad5d837
VZ
29635 ac_find_libraries=
29636 for ac_dir in $SEARCH_LIB;
74b84332 29637 do
3eca31dc 29638 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29639 if test -f "$ac_dir/libXm.$ac_extension"; then
29640 ac_find_libraries=$ac_dir
29641 break 2
a848cd7e 29642 fi
74b84332
VS
29643 done
29644 done
a848cd7e 29645
0ad5d837
VZ
29646
29647 if test "x$ac_find_libraries" != "x" ; then
29648 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29649echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29650
74b84332 29651
0ad5d837 29652 if test "$ac_find_libraries" = "default location"; then
74b84332 29653 ac_path_to_link=""
a848cd7e 29654 else
0ad5d837
VZ
29655 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29656 result=$?
29657 if test $result = 0; then
29658 ac_path_to_link=""
29659 else
29660 ac_path_to_link=" -L$ac_find_libraries"
29661 fi
74b84332
VS
29662 fi
29663
0ad5d837
VZ
29664 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29665 else
29666 save_CFLAGS=$CFLAGS
c92ad099 29667 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
6f9cf1e6
MW
29668 save_LIBS="$LIBS"
29669 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29670
0ad5d837 29671 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29672/* confdefs.h. */
29673_ACEOF
29674cat confdefs.h >>conftest.$ac_ext
29675cat >>conftest.$ac_ext <<_ACEOF
29676/* end confdefs.h. */
29677
0ad5d837 29678 #include <Xm/Xm.h>
74b84332 29679
a848cd7e
SC
29680int
29681main ()
29682{
74b84332 29683
0ad5d837
VZ
29684 int version;
29685 version = xmUseVersion;
74b84332 29686
a848cd7e
SC
29687 ;
29688 return 0;
29689}
29690_ACEOF
0ad5d837
VZ
29691rm -f conftest.$ac_objext conftest$ac_exeext
29692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29693 (eval $ac_link) 2>conftest.er1
a848cd7e 29694 ac_status=$?
ac1cb8d3
VS
29695 grep -v '^ *+' conftest.er1 >conftest.err
29696 rm -f conftest.er1
29697 cat conftest.err >&5
a848cd7e
SC
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); } &&
3565d135
RR
29700 { ac_try='test -z "$ac_c_werror_flag"
29701 || test ! -s conftest.err'
ac1cb8d3
VS
29702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29703 (eval $ac_try) 2>&5
29704 ac_status=$?
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); }; } &&
0ad5d837 29707 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29709 (eval $ac_try) 2>&5
29710 ac_status=$?
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); }; }; then
74b84332 29713
0ad5d837 29714 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29715echo "${ECHO_T}found in default search path" >&6
0ad5d837 29716 COMPILED_X_PROGRAM=1
74b84332 29717
a848cd7e
SC
29718else
29719 echo "$as_me: failed program was:" >&5
29720sed 's/^/| /' conftest.$ac_ext >&5
29721
74b84332 29722
6f9cf1e6 29723 echo "$as_me:$LINENO: result: no" >&5
74b84332 29724echo "${ECHO_T}no" >&6
6f9cf1e6 29725 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29726echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29727 { (exit 1); exit 1; }; }
29728
29729
29730fi
0ad5d837
VZ
29731rm -f conftest.err conftest.$ac_objext \
29732 conftest$ac_exeext conftest.$ac_ext
74b84332 29733
0ad5d837 29734 CFLAGS=$save_CFLAGS
6f9cf1e6 29735 LIBS="$save_LIBS"
74b84332
VS
29736 fi
29737
29738 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29739echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29740 libp_link=""
29741 libsm_ice_link=""
29742 libs_found=0
29743 for libp in "" " -lXp"; do
29744 if test "$libs_found" = "0"; then
29745 for libsm_ice in "" " -lSM -lICE"; do
29746 if test "$libs_found" = "0"; then
29747 save_LIBS="$LIBS"
29748 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29749 save_CFLAGS=$CFLAGS
c92ad099 29750 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
74b84332
VS
29751
29752 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29753/* confdefs.h. */
29754_ACEOF
29755cat confdefs.h >>conftest.$ac_ext
29756cat >>conftest.$ac_ext <<_ACEOF
29757/* end confdefs.h. */
29758
74b84332
VS
29759 #include <Xm/Xm.h>
29760 #include <Xm/List.h>
29761
a848cd7e
SC
29762int
29763main ()
29764{
74b84332
VS
29765
29766 XmString string = NULL;
29767 Widget w = NULL;
29768 int position = 0;
29769 XmListAddItem(w, string, position);
29770
a848cd7e
SC
29771 ;
29772 return 0;
29773}
29774_ACEOF
29775rm -f conftest.$ac_objext conftest$ac_exeext
29776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29777 (eval $ac_link) 2>conftest.er1
a848cd7e 29778 ac_status=$?
ac1cb8d3
VS
29779 grep -v '^ *+' conftest.er1 >conftest.err
29780 rm -f conftest.er1
29781 cat conftest.err >&5
a848cd7e
SC
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); } &&
3565d135
RR
29784 { ac_try='test -z "$ac_c_werror_flag"
29785 || test ! -s conftest.err'
ac1cb8d3
VS
29786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29787 (eval $ac_try) 2>&5
29788 ac_status=$?
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; } &&
29791 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29793 (eval $ac_try) 2>&5
29794 ac_status=$?
29795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); }; }; then
29797
29798 libp_link="$libp"
29799 libsm_ice_link="$libsm_ice"
29800 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29801echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29802 libs_found=1
29803
29804else
29805 echo "$as_me: failed program was:" >&5
29806sed 's/^/| /' conftest.$ac_ext >&5
29807
29808
29809
29810fi
ac1cb8d3
VS
29811rm -f conftest.err conftest.$ac_objext \
29812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29813
29814 LIBS="$save_LIBS"
29815 CFLAGS=$save_CFLAGS
29816 fi
29817 done
29818 fi
29819 done
29820
29821 if test "$libs_found" = "0"; then
29822 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29823echo "${ECHO_T}can't find the right libraries" >&6
29824 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29825echo "$as_me: error: can't link a simple motif program" >&2;}
29826 { (exit 1); exit 1; }; }
29827 fi
29828
62fa8b3a
MW
29829 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29830echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29831if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29832 echo $ECHO_N "(cached) $ECHO_C" >&6
29833else
29834 ac_check_lib_save_LIBS=$LIBS
29835LIBS="-lSgm $LIBS"
29836cat >conftest.$ac_ext <<_ACEOF
29837/* confdefs.h. */
29838_ACEOF
29839cat confdefs.h >>conftest.$ac_ext
29840cat >>conftest.$ac_ext <<_ACEOF
29841/* end confdefs.h. */
29842
29843/* Override any gcc2 internal prototype to avoid an error. */
29844#ifdef __cplusplus
29845extern "C"
29846#endif
29847/* We use char because int might match the return type of a gcc2
29848 builtin and then its argument prototype would still apply. */
29849char SgCreateList ();
29850int
29851main ()
29852{
29853SgCreateList ();
29854 ;
29855 return 0;
29856}
29857_ACEOF
29858rm -f conftest.$ac_objext conftest$ac_exeext
29859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29860 (eval $ac_link) 2>conftest.er1
29861 ac_status=$?
29862 grep -v '^ *+' conftest.er1 >conftest.err
29863 rm -f conftest.er1
29864 cat conftest.err >&5
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); } &&
3565d135
RR
29867 { ac_try='test -z "$ac_c_werror_flag"
29868 || test ! -s conftest.err'
62fa8b3a
MW
29869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870 (eval $ac_try) 2>&5
29871 ac_status=$?
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; } &&
29874 { ac_try='test -s conftest$ac_exeext'
29875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29876 (eval $ac_try) 2>&5
29877 ac_status=$?
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); }; }; then
29880 ac_cv_lib_Sgm_SgCreateList=yes
29881else
29882 echo "$as_me: failed program was:" >&5
29883sed 's/^/| /' conftest.$ac_ext >&5
29884
29885ac_cv_lib_Sgm_SgCreateList=no
29886fi
29887rm -f conftest.err conftest.$ac_objext \
29888 conftest$ac_exeext conftest.$ac_ext
29889LIBS=$ac_check_lib_save_LIBS
29890fi
29891echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29892echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29893if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29894 libsgm_link=" -lSgm"
29895fi
29896
29897
a848cd7e 29898 save_CFLAGS=$CFLAGS
c92ad099 29899 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
0ad5d837 29900
a848cd7e
SC
29901 echo "$as_me:$LINENO: checking for Motif 2" >&5
29902echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29903if test "${wx_cv_lib_motif2+set}" = set; then
29904 echo $ECHO_N "(cached) $ECHO_C" >&6
29905else
29906 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29907/* confdefs.h. */
29908_ACEOF
29909cat confdefs.h >>conftest.$ac_ext
29910cat >>conftest.$ac_ext <<_ACEOF
29911/* end confdefs.h. */
29912
0ad5d837 29913 #include <Xm/Xm.h>
a848cd7e
SC
29914
29915int
29916main ()
29917{
29918
0ad5d837
VZ
29919 #if XmVersion < 2000
29920 Not Motif 2
29921 #endif
a848cd7e
SC
29922
29923 ;
29924 return 0;
29925}
29926_ACEOF
29927rm -f conftest.$ac_objext
29928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29929 (eval $ac_compile) 2>conftest.er1
a848cd7e 29930 ac_status=$?
ac1cb8d3
VS
29931 grep -v '^ *+' conftest.er1 >conftest.err
29932 rm -f conftest.er1
29933 cat conftest.err >&5
a848cd7e
SC
29934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935 (exit $ac_status); } &&
3565d135
RR
29936 { ac_try='test -z "$ac_c_werror_flag"
29937 || test ! -s conftest.err'
ac1cb8d3
VS
29938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29939 (eval $ac_try) 2>&5
29940 ac_status=$?
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); }; } &&
29943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29945 (eval $ac_try) 2>&5
29946 ac_status=$?
29947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); }; }; then
0ad5d837 29949 wx_cv_lib_motif2="yes"
a848cd7e
SC
29950else
29951 echo "$as_me: failed program was:" >&5
29952sed 's/^/| /' conftest.$ac_ext >&5
29953
0ad5d837
VZ
29954wx_cv_lib_motif2="no"
29955fi
29956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29957fi
29958echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29959echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29960 if test "$wx_cv_lib_motif2" = "yes"; then
29961 cat >>confdefs.h <<\_ACEOF
29962#define __WXMOTIF20__ 1
29963_ACEOF
a848cd7e 29964
0ad5d837
VZ
29965 else
29966 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29967#define __WXMOTIF20__ 0
29968_ACEOF
29969
0ad5d837 29970 fi
2113bc77
MW
29971
29972 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29973echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29974if test "${wx_cv_lib_lesstif+set}" = set; then
29975 echo $ECHO_N "(cached) $ECHO_C" >&6
29976else
29977 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29978/* confdefs.h. */
29979_ACEOF
29980cat confdefs.h >>conftest.$ac_ext
29981cat >>conftest.$ac_ext <<_ACEOF
29982/* end confdefs.h. */
29983
0ad5d837 29984 #include <Xm/Xm.h>
2113bc77
MW
29985
29986int
29987main ()
29988{
29989
0ad5d837
VZ
29990 #if !defined(LesstifVersion) || LesstifVersion <= 0
29991 Not Lesstif
29992 #endif
2113bc77
MW
29993
29994 ;
29995 return 0;
29996}
29997_ACEOF
29998rm -f conftest.$ac_objext
29999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30000 (eval $ac_compile) 2>conftest.er1
30001 ac_status=$?
30002 grep -v '^ *+' conftest.er1 >conftest.err
30003 rm -f conftest.er1
30004 cat conftest.err >&5
30005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006 (exit $ac_status); } &&
3565d135
RR
30007 { ac_try='test -z "$ac_c_werror_flag"
30008 || test ! -s conftest.err'
2113bc77
MW
30009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30010 (eval $ac_try) 2>&5
30011 ac_status=$?
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; } &&
30014 { ac_try='test -s conftest.$ac_objext'
30015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30016 (eval $ac_try) 2>&5
30017 ac_status=$?
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); }; }; then
0ad5d837 30020 wx_cv_lib_lesstif="yes"
2113bc77
MW
30021else
30022 echo "$as_me: failed program was:" >&5
30023sed 's/^/| /' conftest.$ac_ext >&5
30024
0ad5d837
VZ
30025wx_cv_lib_lesstif="no"
30026fi
30027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30028
0ad5d837
VZ
30029fi
30030echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30031echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30032 if test "$wx_cv_lib_lesstif" = "yes"; then
30033 cat >>confdefs.h <<\_ACEOF
30034#define __WXLESSTIF__ 1
30035_ACEOF
30036
30037 else
30038 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30039#define __WXLESSTIF__ 0
30040_ACEOF
30041
0ad5d837 30042 fi
2113bc77 30043
a848cd7e
SC
30044 CFLAGS=$save_CFLAGS
30045
62fa8b3a 30046 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30047 TOOLKIT=MOTIF
30048 GUIDIST=MOTIF_DIST
30049 fi
30050
74b84332 30051 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30052 if test "$wxUSE_LIBXPM" = "sys"; then
30053 echo "$as_me:$LINENO: checking for Xpm library" >&5
30054echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30055
0ad5d837
VZ
30056 ac_find_libraries=
30057 for ac_dir in $SEARCH_LIB;
a848cd7e 30058 do
3eca31dc 30059 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30060 if test -f "$ac_dir/libXpm.$ac_extension"; then
30061 ac_find_libraries=$ac_dir
30062 break 2
30063 fi
30064 done
30065 done
30066
30067 if test "$ac_find_libraries" != "" ; then
30068
0ad5d837 30069 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30070 ac_path_to_link=""
30071 else
0ad5d837
VZ
30072 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30073 result=$?
30074 if test $result = 0; then
30075 ac_path_to_link=""
30076 else
30077 ac_path_to_link=" -L$ac_find_libraries"
30078 fi
a848cd7e
SC
30079 fi
30080
30081 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
30082 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30083echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
30084
30085 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30086echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30087if test "${wx_cv_x11_xpm_h+set}" = set; then
30088 echo $ECHO_N "(cached) $ECHO_C" >&6
30089else
30090
30091 save_CFLAGS=$CFLAGS
c92ad099 30092 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
30093
30094 cat >conftest.$ac_ext <<_ACEOF
30095/* confdefs.h. */
30096_ACEOF
30097cat confdefs.h >>conftest.$ac_ext
30098cat >>conftest.$ac_ext <<_ACEOF
30099/* end confdefs.h. */
30100
30101 #include <X11/xpm.h>
30102
30103int
30104main ()
30105{
30106
30107 int version;
30108 version = XpmLibraryVersion();
30109
30110 ;
30111 return 0;
30112}
30113_ACEOF
30114rm -f conftest.$ac_objext
30115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30116 (eval $ac_compile) 2>conftest.er1
a848cd7e 30117 ac_status=$?
ac1cb8d3
VS
30118 grep -v '^ *+' conftest.er1 >conftest.err
30119 rm -f conftest.er1
30120 cat conftest.err >&5
a848cd7e
SC
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); } &&
3565d135
RR
30123 { ac_try='test -z "$ac_c_werror_flag"
30124 || test ! -s conftest.err'
ac1cb8d3
VS
30125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30126 (eval $ac_try) 2>&5
30127 ac_status=$?
30128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129 (exit $ac_status); }; } &&
30130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30132 (eval $ac_try) 2>&5
30133 ac_status=$?
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 (exit $ac_status); }; }; then
30136 wx_cv_x11_xpm_h=yes
30137else
30138 echo "$as_me: failed program was:" >&5
30139sed 's/^/| /' conftest.$ac_ext >&5
30140
30141wx_cv_x11_xpm_h=no
30142
30143fi
ac1cb8d3 30144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30145
30146 CFLAGS=$save_CFLAGS
30147
30148
30149fi
30150echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30151echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30152
30153 if test $wx_cv_x11_xpm_h = "yes"; then
30154 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30155 cat >>confdefs.h <<\_ACEOF
30156#define wxHAVE_LIB_XPM 1
30157_ACEOF
30158
30159 else
30160 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30161echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30162 fi
30163 fi
30164
30165 fi
30166
30167 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30168echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30169if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30170 echo $ECHO_N "(cached) $ECHO_C" >&6
30171else
30172 ac_check_lib_save_LIBS=$LIBS
30173LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30174cat >conftest.$ac_ext <<_ACEOF
30175/* confdefs.h. */
30176_ACEOF
30177cat confdefs.h >>conftest.$ac_ext
30178cat >>conftest.$ac_ext <<_ACEOF
30179/* end confdefs.h. */
30180
30181/* Override any gcc2 internal prototype to avoid an error. */
30182#ifdef __cplusplus
30183extern "C"
30184#endif
30185/* We use char because int might match the return type of a gcc2
30186 builtin and then its argument prototype would still apply. */
30187char XShapeQueryExtension ();
30188int
30189main ()
30190{
30191XShapeQueryExtension ();
30192 ;
30193 return 0;
30194}
30195_ACEOF
30196rm -f conftest.$ac_objext conftest$ac_exeext
30197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30198 (eval $ac_link) 2>conftest.er1
a848cd7e 30199 ac_status=$?
ac1cb8d3
VS
30200 grep -v '^ *+' conftest.er1 >conftest.err
30201 rm -f conftest.er1
30202 cat conftest.err >&5
a848cd7e
SC
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); } &&
3565d135
RR
30205 { ac_try='test -z "$ac_c_werror_flag"
30206 || test ! -s conftest.err'
ac1cb8d3
VS
30207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30208 (eval $ac_try) 2>&5
30209 ac_status=$?
30210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211 (exit $ac_status); }; } &&
30212 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30214 (eval $ac_try) 2>&5
30215 ac_status=$?
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); }; }; then
30218 ac_cv_lib_Xext_XShapeQueryExtension=yes
30219else
30220 echo "$as_me: failed program was:" >&5
30221sed 's/^/| /' conftest.$ac_ext >&5
30222
30223ac_cv_lib_Xext_XShapeQueryExtension=no
30224fi
ac1cb8d3
VS
30225rm -f conftest.err conftest.$ac_objext \
30226 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30227LIBS=$ac_check_lib_save_LIBS
30228fi
30229echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30230echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30231if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30232
30233 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30234 wxHAVE_XEXT_LIB=1
30235
30236fi
30237
30238
30239 if test "$wxHAVE_XEXT_LIB" = 1; then
30240 save_CFLAGS="$CFLAGS"
c92ad099 30241 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
30242
30243 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30244echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30245 cat >conftest.$ac_ext <<_ACEOF
30246/* confdefs.h. */
30247_ACEOF
30248cat confdefs.h >>conftest.$ac_ext
30249cat >>conftest.$ac_ext <<_ACEOF
30250/* end confdefs.h. */
30251
30252 #include <X11/Xlib.h>
30253 #include <X11/extensions/shape.h>
30254
30255int
30256main ()
30257{
30258
30259 int dummy1, dummy2;
30260 XShapeQueryExtension((Display*)NULL,
30261 (int*)NULL, (int*)NULL);
30262
30263 ;
30264 return 0;
30265}
30266_ACEOF
30267rm -f conftest.$ac_objext
30268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30269 (eval $ac_compile) 2>conftest.er1
a848cd7e 30270 ac_status=$?
ac1cb8d3
VS
30271 grep -v '^ *+' conftest.er1 >conftest.err
30272 rm -f conftest.er1
30273 cat conftest.err >&5
a848cd7e
SC
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); } &&
3565d135
RR
30276 { ac_try='test -z "$ac_c_werror_flag"
30277 || test ! -s conftest.err'
ac1cb8d3
VS
30278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30279 (eval $ac_try) 2>&5
30280 ac_status=$?
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); }; } &&
30283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30285 (eval $ac_try) 2>&5
30286 ac_status=$?
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); }; }; then
30289
30290 cat >>confdefs.h <<\_ACEOF
30291#define HAVE_XSHAPE 1
30292_ACEOF
30293
30294 echo "$as_me:$LINENO: result: found" >&5
30295echo "${ECHO_T}found" >&6
30296
30297else
30298 echo "$as_me: failed program was:" >&5
30299sed 's/^/| /' conftest.$ac_ext >&5
30300
30301
30302 echo "$as_me:$LINENO: result: not found" >&5
30303echo "${ECHO_T}not found" >&6
30304
30305fi
ac1cb8d3 30306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30307 CFLAGS="$save_CFLAGS"
30308
30309 fi
30310 fi
30311
30312 if test "$wxUSE_MAC" = 1; then
30313 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30314echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30315 if test "$GCC" = yes; then
30316 echo "$as_me:$LINENO: result: gcc" >&5
30317echo "${ECHO_T}gcc" >&6
30318 CPPFLAGS_PASCAL="-fpascal-strings"
30319 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30320 echo "$as_me:$LINENO: result: xlc" >&5
30321echo "${ECHO_T}xlc" >&6
30322 CPPFLAGS_PASCAL="-qmacpstr"
30323 else
30324 echo "$as_me:$LINENO: result: none" >&5
30325echo "${ECHO_T}none" >&6
30326 fi
30327
1e9e8aba 30328 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 30329 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 30330 else
c92ad099 30331 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 30332 fi
a848cd7e 30333
a848cd7e
SC
30334 TOOLKIT=MAC
30335 GUIDIST=MACX_DIST
dd21ced8 30336 WXBASEPORT="_carbon"
a848cd7e
SC
30337 fi
30338
30339 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30340 TOOLKIT=COCOA
30341 GUIDIST=COCOA_DIST
30342 fi
30343
30344 if test "$wxUSE_PM" = 1; then
30345 TOOLKIT=PM
de59c161
RD
30346 GUIDIST=PM_DIST
30347 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30348echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30349if test "${wx_cv_spbcdata+set}" = set; then
30350 echo $ECHO_N "(cached) $ECHO_C" >&6
30351else
30352
30353 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30354/* confdefs.h. */
30355_ACEOF
30356cat confdefs.h >>conftest.$ac_ext
30357cat >>conftest.$ac_ext <<_ACEOF
30358/* end confdefs.h. */
30359
30360 #define INCL_PM
30361 #include <os2.h>
30362
30363int
30364main ()
30365{
30366
30367 SPBCDATA test;
30368
30369 ;
30370 return 0;
30371}
30372_ACEOF
30373rm -f conftest.$ac_objext
30374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30375 (eval $ac_compile) 2>conftest.er1
de59c161 30376 ac_status=$?
ac1cb8d3
VS
30377 grep -v '^ *+' conftest.er1 >conftest.err
30378 rm -f conftest.er1
30379 cat conftest.err >&5
de59c161
RD
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); } &&
3565d135
RR
30382 { ac_try='test -z "$ac_c_werror_flag"
30383 || test ! -s conftest.err'
ac1cb8d3
VS
30384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30385 (eval $ac_try) 2>&5
30386 ac_status=$?
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); }; } &&
30389 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30391 (eval $ac_try) 2>&5
30392 ac_status=$?
30393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); }; }; then
30395 wx_cv_spbcdata=yes
30396else
30397 echo "$as_me: failed program was:" >&5
30398sed 's/^/| /' conftest.$ac_ext >&5
30399
30400wx_cv_spbcdata=no
30401
30402fi
ac1cb8d3 30403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30404
30405
30406fi
30407echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30408echo "${ECHO_T}$wx_cv_spbcdata" >&6
30409
30410 if test $wx_cv_spbcdata = "yes"; then
30411 cat >>confdefs.h <<\_ACEOF
30412#define HAVE_SPBCDATA 1
30413_ACEOF
30414
30415 fi
a848cd7e
SC
30416 fi
30417
30418 if test "$TOOLKIT" = "PM" ; then
30419 TOOLKIT_DIR="os2"
30420 else
30421 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30422 fi
30423
a848cd7e 30424 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30425 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30426 WIDGET_SET=univ
a848cd7e
SC
30427 fi
30428
30429 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30430 DISTDIR="wx\$(TOOLKIT)"
30431else
30432 USE_GUI=0
30433
30434 TOOLKIT_DIR="base"
30435
30436 if test "$USE_WIN32" = 1 ; then
a848cd7e 30437 TOOLKIT="MSW"
a848cd7e
SC
30438 fi
30439
a848cd7e
SC
30440 GUIDIST="BASE_DIST"
30441 DISTDIR="wxBase"
30442fi
30443
30444
d12aef51
VZ
30445if test "$wxUSE_GUI" = "yes"; then
30446 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30447
30448for ac_header in X11/Xlib.h
30449do
30450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30451if eval "test \"\${$as_ac_Header+set}\" = set"; then
30452 echo "$as_me:$LINENO: checking for $ac_header" >&5
30453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30454if eval "test \"\${$as_ac_Header+set}\" = set"; then
30455 echo $ECHO_N "(cached) $ECHO_C" >&6
30456fi
30457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30459else
30460 # Is the header compilable?
30461echo "$as_me:$LINENO: checking $ac_header usability" >&5
30462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30463cat >conftest.$ac_ext <<_ACEOF
30464/* confdefs.h. */
30465_ACEOF
30466cat confdefs.h >>conftest.$ac_ext
30467cat >>conftest.$ac_ext <<_ACEOF
30468/* end confdefs.h. */
30469$ac_includes_default
30470#include <$ac_header>
30471_ACEOF
30472rm -f conftest.$ac_objext
30473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30474 (eval $ac_compile) 2>conftest.er1
30475 ac_status=$?
30476 grep -v '^ *+' conftest.er1 >conftest.err
30477 rm -f conftest.er1
30478 cat conftest.err >&5
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); } &&
3565d135
RR
30481 { ac_try='test -z "$ac_c_werror_flag"
30482 || test ! -s conftest.err'
d12aef51
VZ
30483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30484 (eval $ac_try) 2>&5
30485 ac_status=$?
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); }; } &&
30488 { ac_try='test -s conftest.$ac_objext'
30489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30490 (eval $ac_try) 2>&5
30491 ac_status=$?
30492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493 (exit $ac_status); }; }; then
30494 ac_header_compiler=yes
30495else
30496 echo "$as_me: failed program was:" >&5
30497sed 's/^/| /' conftest.$ac_ext >&5
30498
30499ac_header_compiler=no
30500fi
30501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30503echo "${ECHO_T}$ac_header_compiler" >&6
30504
30505# Is the header present?
30506echo "$as_me:$LINENO: checking $ac_header presence" >&5
30507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30508cat >conftest.$ac_ext <<_ACEOF
30509/* confdefs.h. */
30510_ACEOF
30511cat confdefs.h >>conftest.$ac_ext
30512cat >>conftest.$ac_ext <<_ACEOF
30513/* end confdefs.h. */
30514#include <$ac_header>
30515_ACEOF
30516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30518 ac_status=$?
30519 grep -v '^ *+' conftest.er1 >conftest.err
30520 rm -f conftest.er1
30521 cat conftest.err >&5
30522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523 (exit $ac_status); } >/dev/null; then
30524 if test -s conftest.err; then
30525 ac_cpp_err=$ac_c_preproc_warn_flag
30526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30527 else
30528 ac_cpp_err=
30529 fi
30530else
30531 ac_cpp_err=yes
30532fi
30533if test -z "$ac_cpp_err"; then
30534 ac_header_preproc=yes
30535else
30536 echo "$as_me: failed program was:" >&5
30537sed 's/^/| /' conftest.$ac_ext >&5
30538
30539 ac_header_preproc=no
30540fi
30541rm -f conftest.err conftest.$ac_ext
30542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30543echo "${ECHO_T}$ac_header_preproc" >&6
30544
30545# So? What about this header?
30546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30547 yes:no: )
30548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30552 ac_header_preproc=yes
30553 ;;
30554 no:yes:* )
30555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30567 (
30568 cat <<\_ASBOX
30569## ----------------------------------------- ##
30570## Report this to wx-dev@lists.wxwidgets.org ##
30571## ----------------------------------------- ##
30572_ASBOX
30573 ) |
30574 sed "s/^/$as_me: WARNING: /" >&2
30575 ;;
30576esac
30577echo "$as_me:$LINENO: checking for $ac_header" >&5
30578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30579if eval "test \"\${$as_ac_Header+set}\" = set"; then
30580 echo $ECHO_N "(cached) $ECHO_C" >&6
30581else
30582 eval "$as_ac_Header=\$ac_header_preproc"
30583fi
30584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30586
30587fi
30588if test `eval echo '${'$as_ac_Header'}'` = yes; then
30589 cat >>confdefs.h <<_ACEOF
30590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30591_ACEOF
30592
30593fi
30594
30595done
30596
30597
30598for ac_header in X11/XKBlib.h
30599do
30600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30601echo "$as_me:$LINENO: checking for $ac_header" >&5
30602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30603if eval "test \"\${$as_ac_Header+set}\" = set"; then
30604 echo $ECHO_N "(cached) $ECHO_C" >&6
30605else
30606 cat >conftest.$ac_ext <<_ACEOF
30607/* confdefs.h. */
30608_ACEOF
30609cat confdefs.h >>conftest.$ac_ext
30610cat >>conftest.$ac_ext <<_ACEOF
30611/* end confdefs.h. */
30612
30613 #if HAVE_X11_XLIB_H
30614 #include <X11/Xlib.h>
30615 #endif
30616
30617
30618#include <$ac_header>
30619_ACEOF
30620rm -f conftest.$ac_objext
30621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30622 (eval $ac_compile) 2>conftest.er1
30623 ac_status=$?
30624 grep -v '^ *+' conftest.er1 >conftest.err
30625 rm -f conftest.er1
30626 cat conftest.err >&5
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); } &&
3565d135
RR
30629 { ac_try='test -z "$ac_c_werror_flag"
30630 || test ! -s conftest.err'
d12aef51
VZ
30631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30632 (eval $ac_try) 2>&5
30633 ac_status=$?
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; } &&
30636 { ac_try='test -s conftest.$ac_objext'
30637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30638 (eval $ac_try) 2>&5
30639 ac_status=$?
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); }; }; then
30642 eval "$as_ac_Header=yes"
30643else
30644 echo "$as_me: failed program was:" >&5
30645sed 's/^/| /' conftest.$ac_ext >&5
30646
30647eval "$as_ac_Header=no"
30648fi
30649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30650fi
30651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30652echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30653if test `eval echo '${'$as_ac_Header'}'` = yes; then
30654 cat >>confdefs.h <<_ACEOF
30655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30656_ACEOF
30657
30658fi
30659
30660done
30661
30662 fi
30663fi
30664
a848cd7e
SC
30665
30666
30667IODBC_C_SRC=""
30668
30669
30670if test "$TOOLKIT" != "MSW" ; then
30671
30672 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30673
30674 if test "${ac_cv_header_sql_h+set}" = set; then
30675 echo "$as_me:$LINENO: checking for sql.h" >&5
30676echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30677if test "${ac_cv_header_sql_h+set}" = set; then
30678 echo $ECHO_N "(cached) $ECHO_C" >&6
30679fi
30680echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30681echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30682else
30683 # Is the header compilable?
30684echo "$as_me:$LINENO: checking sql.h usability" >&5
30685echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30686cat >conftest.$ac_ext <<_ACEOF
30687/* confdefs.h. */
30688_ACEOF
30689cat confdefs.h >>conftest.$ac_ext
30690cat >>conftest.$ac_ext <<_ACEOF
30691/* end confdefs.h. */
30692$ac_includes_default
30693#include <sql.h>
30694_ACEOF
30695rm -f conftest.$ac_objext
30696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30697 (eval $ac_compile) 2>conftest.er1
a848cd7e 30698 ac_status=$?
ac1cb8d3
VS
30699 grep -v '^ *+' conftest.er1 >conftest.err
30700 rm -f conftest.er1
30701 cat conftest.err >&5
a848cd7e
SC
30702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703 (exit $ac_status); } &&
3565d135
RR
30704 { ac_try='test -z "$ac_c_werror_flag"
30705 || test ! -s conftest.err'
ac1cb8d3
VS
30706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30707 (eval $ac_try) 2>&5
30708 ac_status=$?
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); }; } &&
30711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30713 (eval $ac_try) 2>&5
30714 ac_status=$?
30715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716 (exit $ac_status); }; }; then
30717 ac_header_compiler=yes
30718else
30719 echo "$as_me: failed program was:" >&5
30720sed 's/^/| /' conftest.$ac_ext >&5
30721
30722ac_header_compiler=no
30723fi
ac1cb8d3 30724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30725echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30726echo "${ECHO_T}$ac_header_compiler" >&6
30727
30728# Is the header present?
30729echo "$as_me:$LINENO: checking sql.h presence" >&5
30730echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30731cat >conftest.$ac_ext <<_ACEOF
30732/* confdefs.h. */
30733_ACEOF
30734cat confdefs.h >>conftest.$ac_ext
30735cat >>conftest.$ac_ext <<_ACEOF
30736/* end confdefs.h. */
30737#include <sql.h>
30738_ACEOF
30739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30741 ac_status=$?
30742 grep -v '^ *+' conftest.er1 >conftest.err
30743 rm -f conftest.er1
30744 cat conftest.err >&5
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746 (exit $ac_status); } >/dev/null; then
30747 if test -s conftest.err; then
30748 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30750 else
30751 ac_cpp_err=
30752 fi
30753else
30754 ac_cpp_err=yes
30755fi
30756if test -z "$ac_cpp_err"; then
30757 ac_header_preproc=yes
30758else
30759 echo "$as_me: failed program was:" >&5
30760sed 's/^/| /' conftest.$ac_ext >&5
30761
30762 ac_header_preproc=no
30763fi
30764rm -f conftest.err conftest.$ac_ext
30765echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30766echo "${ECHO_T}$ac_header_preproc" >&6
30767
30768# So? What about this header?
ac1cb8d3
VS
30769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30770 yes:no: )
a848cd7e
SC
30771 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30772echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30773 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30774echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30775 ac_header_preproc=yes
a848cd7e 30776 ;;
ac1cb8d3 30777 no:yes:* )
a848cd7e
SC
30778 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30779echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30780 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30781echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30782 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30783echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30784 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30785echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30786 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30787echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30788 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30789echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30790 (
30791 cat <<\_ASBOX
ac1cb8d3
VS
30792## ----------------------------------------- ##
30793## Report this to wx-dev@lists.wxwidgets.org ##
30794## ----------------------------------------- ##
a848cd7e
SC
30795_ASBOX
30796 ) |
30797 sed "s/^/$as_me: WARNING: /" >&2
30798 ;;
30799esac
30800echo "$as_me:$LINENO: checking for sql.h" >&5
30801echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30802if test "${ac_cv_header_sql_h+set}" = set; then
30803 echo $ECHO_N "(cached) $ECHO_C" >&6
30804else
30805 ac_cv_header_sql_h=$ac_header_preproc
30806fi
30807echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30808echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30809
30810fi
30811if test $ac_cv_header_sql_h = yes; then
30812 found_sql_h=1
30813fi
30814
30815
30816 if test "x$found_sql_h" = "x1" ; then
30817 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30818echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30819if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30820 echo $ECHO_N "(cached) $ECHO_C" >&6
30821else
30822 ac_check_lib_save_LIBS=$LIBS
30823LIBS="-liodbc $LIBS"
30824cat >conftest.$ac_ext <<_ACEOF
30825/* confdefs.h. */
30826_ACEOF
30827cat confdefs.h >>conftest.$ac_ext
30828cat >>conftest.$ac_ext <<_ACEOF
30829/* end confdefs.h. */
30830
30831/* Override any gcc2 internal prototype to avoid an error. */
30832#ifdef __cplusplus
30833extern "C"
30834#endif
30835/* We use char because int might match the return type of a gcc2
30836 builtin and then its argument prototype would still apply. */
30837char SQLAllocEnv ();
30838int
30839main ()
30840{
30841SQLAllocEnv ();
30842 ;
30843 return 0;
30844}
30845_ACEOF
30846rm -f conftest.$ac_objext conftest$ac_exeext
30847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30848 (eval $ac_link) 2>conftest.er1
a848cd7e 30849 ac_status=$?
ac1cb8d3
VS
30850 grep -v '^ *+' conftest.er1 >conftest.err
30851 rm -f conftest.er1
30852 cat conftest.err >&5
a848cd7e
SC
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); } &&
3565d135
RR
30855 { ac_try='test -z "$ac_c_werror_flag"
30856 || test ! -s conftest.err'
ac1cb8d3
VS
30857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30858 (eval $ac_try) 2>&5
30859 ac_status=$?
30860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861 (exit $ac_status); }; } &&
30862 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30864 (eval $ac_try) 2>&5
30865 ac_status=$?
30866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867 (exit $ac_status); }; }; then
30868 ac_cv_lib_iodbc_SQLAllocEnv=yes
30869else
30870 echo "$as_me: failed program was:" >&5
30871sed 's/^/| /' conftest.$ac_ext >&5
30872
30873ac_cv_lib_iodbc_SQLAllocEnv=no
30874fi
ac1cb8d3
VS
30875rm -f conftest.err conftest.$ac_objext \
30876 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30877LIBS=$ac_check_lib_save_LIBS
30878fi
30879echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30880echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30881if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30882 ODBC_LINK=" -liodbc"
30883else
30884
30885 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30886echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30887if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30888 echo $ECHO_N "(cached) $ECHO_C" >&6
30889else
30890 ac_check_lib_save_LIBS=$LIBS
30891LIBS="-lunixodbc $LIBS"
30892cat >conftest.$ac_ext <<_ACEOF
30893/* confdefs.h. */
30894_ACEOF
30895cat confdefs.h >>conftest.$ac_ext
30896cat >>conftest.$ac_ext <<_ACEOF
30897/* end confdefs.h. */
30898
30899/* Override any gcc2 internal prototype to avoid an error. */
30900#ifdef __cplusplus
30901extern "C"
30902#endif
30903/* We use char because int might match the return type of a gcc2
30904 builtin and then its argument prototype would still apply. */
30905char SQLAllocEnv ();
30906int
30907main ()
30908{
30909SQLAllocEnv ();
30910 ;
30911 return 0;
30912}
30913_ACEOF
30914rm -f conftest.$ac_objext conftest$ac_exeext
30915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30916 (eval $ac_link) 2>conftest.er1
a848cd7e 30917 ac_status=$?
ac1cb8d3
VS
30918 grep -v '^ *+' conftest.er1 >conftest.err
30919 rm -f conftest.er1
30920 cat conftest.err >&5
a848cd7e
SC
30921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30922 (exit $ac_status); } &&
3565d135
RR
30923 { ac_try='test -z "$ac_c_werror_flag"
30924 || test ! -s conftest.err'
ac1cb8d3
VS
30925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30926 (eval $ac_try) 2>&5
30927 ac_status=$?
30928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30929 (exit $ac_status); }; } &&
30930 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30932 (eval $ac_try) 2>&5
30933 ac_status=$?
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); }; }; then
30936 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30937else
30938 echo "$as_me: failed program was:" >&5
30939sed 's/^/| /' conftest.$ac_ext >&5
30940
30941ac_cv_lib_unixodbc_SQLAllocEnv=no
30942fi
ac1cb8d3
VS
30943rm -f conftest.err conftest.$ac_objext \
30944 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30945LIBS=$ac_check_lib_save_LIBS
30946fi
30947echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30948echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30949if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30950 ODBC_LINK=" -lunixodbc"
30951else
30952
30953 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30954echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30955if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30956 echo $ECHO_N "(cached) $ECHO_C" >&6
30957else
30958 ac_check_lib_save_LIBS=$LIBS
30959LIBS="-lodbc $LIBS"
30960cat >conftest.$ac_ext <<_ACEOF
30961/* confdefs.h. */
30962_ACEOF
30963cat confdefs.h >>conftest.$ac_ext
30964cat >>conftest.$ac_ext <<_ACEOF
30965/* end confdefs.h. */
30966
30967/* Override any gcc2 internal prototype to avoid an error. */
30968#ifdef __cplusplus
30969extern "C"
30970#endif
30971/* We use char because int might match the return type of a gcc2
30972 builtin and then its argument prototype would still apply. */
30973char SQLAllocEnv ();
30974int
30975main ()
30976{
30977SQLAllocEnv ();
30978 ;
30979 return 0;
30980}
30981_ACEOF
30982rm -f conftest.$ac_objext conftest$ac_exeext
30983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30984 (eval $ac_link) 2>conftest.er1
a848cd7e 30985 ac_status=$?
ac1cb8d3
VS
30986 grep -v '^ *+' conftest.er1 >conftest.err
30987 rm -f conftest.er1
30988 cat conftest.err >&5
a848cd7e
SC
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); } &&
3565d135
RR
30991 { ac_try='test -z "$ac_c_werror_flag"
30992 || test ! -s conftest.err'
ac1cb8d3
VS
30993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30994 (eval $ac_try) 2>&5
30995 ac_status=$?
30996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997 (exit $ac_status); }; } &&
30998 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31000 (eval $ac_try) 2>&5
31001 ac_status=$?
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 (exit $ac_status); }; }; then
31004 ac_cv_lib_odbc_SQLAllocEnv=yes
31005else
31006 echo "$as_me: failed program was:" >&5
31007sed 's/^/| /' conftest.$ac_ext >&5
31008
31009ac_cv_lib_odbc_SQLAllocEnv=no
31010fi
ac1cb8d3
VS
31011rm -f conftest.err conftest.$ac_objext \
31012 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31013LIBS=$ac_check_lib_save_LIBS
31014fi
31015echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31016echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31017if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31018 ODBC_LINK=" -lodbc"
31019fi
31020
31021
31022fi
31023
31024
31025fi
31026
31027 fi
31028 if test "x$ODBC_LINK" = "x" ; then
31029 if test "$wxUSE_ODBC" = "sys" ; then
31030 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31031echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31032 { (exit 1); exit 1; }; }
31033 else
31034 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31035echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31036 wxUSE_ODBC=builtin
31037 fi
31038 else
31039 wxUSE_ODBC=sys
31040 fi
31041 fi
a848cd7e 31042
2da0c077
RD
31043 if test "$wxUSE_ODBC" = "builtin" ; then
31044 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31045#define wxUSE_BUILTIN_IODBC 1
31046_ACEOF
31047
a848cd7e
SC
31048 fi
31049fi
31050
2da0c077
RD
31051if test "$wxUSE_ODBC" != "no" ; then
31052 cat >>confdefs.h <<\_ACEOF
31053#define wxUSE_ODBC 1
31054_ACEOF
31055
31056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31057
5ff751d6 31058 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 31059fi
a848cd7e 31060
01cb68df 31061
a848cd7e 31062if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 31063 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
31064 echo "$as_me:$LINENO: checking for Xinerama" >&5
31065echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31066
0ad5d837
VZ
31067 ac_find_libraries=
31068 for ac_dir in $SEARCH_LIB;
31069 do
31070 for ac_extension in a so sl dylib dll.a; do
31071 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31072 ac_find_libraries=$ac_dir
31073 break 2
31074 fi
31075 done
31076 done
31077
a848cd7e
SC
31078 if test "$ac_find_libraries" != "" ; then
31079
0ad5d837 31080 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31081 ac_path_to_link=""
31082 else
0ad5d837
VZ
31083 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31084 result=$?
31085 if test $result = 0; then
31086 ac_path_to_link=""
31087 else
31088 ac_path_to_link=" -L$ac_find_libraries"
31089 fi
a848cd7e
SC
31090 fi
31091
31092 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31093 LDFLAGS="$LDFLAGS $ac_path_to_link"
31094 fi
31095 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31096 echo "$as_me:$LINENO: result: yes" >&5
31097echo "${ECHO_T}yes" >&6
31098
31099 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31100echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31101
0ad5d837
VZ
31102 ac_find_libraries=
31103 for ac_dir in $SEARCH_LIB;
a848cd7e 31104 do
3eca31dc 31105 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31106 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31107 ac_find_libraries=$ac_dir
31108 break 2
31109 fi
31110 done
31111 done
31112
31113 if test "$ac_find_libraries" != "" ; then
31114 echo "$as_me:$LINENO: result: yes" >&5
31115echo "${ECHO_T}yes" >&6
31116
31117for ac_header in X11/extensions/xf86vmode.h
31118do
31119as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31120echo "$as_me:$LINENO: checking for $ac_header" >&5
31121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31122if eval "test \"\${$as_ac_Header+set}\" = set"; then
31123 echo $ECHO_N "(cached) $ECHO_C" >&6
31124else
31125 cat >conftest.$ac_ext <<_ACEOF
31126/* confdefs.h. */
31127_ACEOF
31128cat confdefs.h >>conftest.$ac_ext
31129cat >>conftest.$ac_ext <<_ACEOF
31130/* end confdefs.h. */
31131
31132 #if HAVE_X11_XLIB_H
31133 #include <X11/Xlib.h>
31134 #endif
31135
31136
31137#include <$ac_header>
31138_ACEOF
31139rm -f conftest.$ac_objext
31140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31141 (eval $ac_compile) 2>conftest.er1
a848cd7e 31142 ac_status=$?
ac1cb8d3
VS
31143 grep -v '^ *+' conftest.er1 >conftest.err
31144 rm -f conftest.er1
31145 cat conftest.err >&5
a848cd7e
SC
31146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147 (exit $ac_status); } &&
3565d135
RR
31148 { ac_try='test -z "$ac_c_werror_flag"
31149 || test ! -s conftest.err'
ac1cb8d3
VS
31150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31151 (eval $ac_try) 2>&5
31152 ac_status=$?
31153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154 (exit $ac_status); }; } &&
31155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31157 (eval $ac_try) 2>&5
31158 ac_status=$?
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); }; }; then
31161 eval "$as_ac_Header=yes"
31162else
31163 echo "$as_me: failed program was:" >&5
31164sed 's/^/| /' conftest.$ac_ext >&5
31165
31166eval "$as_ac_Header=no"
31167fi
ac1cb8d3 31168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31169fi
31170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31171echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31172if test `eval echo '${'$as_ac_Header'}'` = yes; then
31173 cat >>confdefs.h <<_ACEOF
31174#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31175_ACEOF
31176
31177 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31178
31179fi
31180
31181done
31182
31183 else
31184 echo "$as_me:$LINENO: result: no" >&5
31185echo "${ECHO_T}no" >&6
31186 fi
31187
31188 else
31189 echo "$as_me:$LINENO: result: no" >&5
31190echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31191 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31192echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31193 wxUSE_DISPLAY="no"
31194 fi
01cb68df
RG
31195 elif test "$wxUSE_MSW" = 1; then
31196
31197
31198for ac_header in multimon.h ddraw.h
31199do
31200as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31201echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31203if eval "test \"\${$as_ac_Header+set}\" = set"; then
31204 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31205else
5294a27e 31206 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31207/* confdefs.h. */
31208_ACEOF
31209cat confdefs.h >>conftest.$ac_ext
31210cat >>conftest.$ac_ext <<_ACEOF
31211/* end confdefs.h. */
5294a27e
VZ
31212#include <windows.h>
31213
01cb68df
RG
31214#include <$ac_header>
31215_ACEOF
31216rm -f conftest.$ac_objext
31217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31218 (eval $ac_compile) 2>conftest.er1
01cb68df 31219 ac_status=$?
ac1cb8d3
VS
31220 grep -v '^ *+' conftest.er1 >conftest.err
31221 rm -f conftest.er1
31222 cat conftest.err >&5
01cb68df
RG
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); } &&
3565d135
RR
31225 { ac_try='test -z "$ac_c_werror_flag"
31226 || test ! -s conftest.err'
ac1cb8d3
VS
31227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31228 (eval $ac_try) 2>&5
31229 ac_status=$?
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; } &&
31232 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31234 (eval $ac_try) 2>&5
31235 ac_status=$?
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); }; }; then
5294a27e 31238 eval "$as_ac_Header=yes"
01cb68df
RG
31239else
31240 echo "$as_me: failed program was:" >&5
31241sed 's/^/| /' conftest.$ac_ext >&5
31242
5294a27e 31243eval "$as_ac_Header=no"
01cb68df 31244fi
ac1cb8d3 31245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31246fi
31247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31249if test `eval echo '${'$as_ac_Header'}'` = yes; then
31250 cat >>confdefs.h <<_ACEOF
31251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31252_ACEOF
31253
31254else
31255
5294a27e
VZ
31256 wxUSE_DISPLAY="no"
31257 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 31258echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
31259
31260fi
31261
31262done
31263
a848cd7e
SC
31264 fi
31265fi
31266
31267
31268USE_OPENGL=0
31269if test "$wxUSE_OPENGL" = "yes"; then
31270 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31271 OPENGL_LIBS="-framework OpenGL -framework AGL"
31272 elif test "$wxUSE_MSW" = 1; then
31273 OPENGL_LIBS="-lopengl32 -lglu32"
31274 else
31275
31276
31277ac_find_includes=
31278for ac_dir in $SEARCH_INCLUDE /usr/include;
31279 do
31280 if test -f "$ac_dir/GL/gl.h"; then
31281 ac_find_includes=$ac_dir
31282 break
31283 fi
31284 done
31285
31286 if test "$ac_find_includes" != "" ; then
31287 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31288echo "${ECHO_T}found in $ac_find_includes" >&6
31289
31290 if test "x$ac_find_includes" = "x/usr/include"; then
31291 ac_path_to_include=""
31292 else
31293 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31294 result=$?
31295 if test $result = 0; then
31296 ac_path_to_include=""
31297 else
31298 ac_path_to_include=" -I$ac_find_includes"
31299 fi
31300 fi
31301
c92ad099 31302 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
31303 fi
31304
31305 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31306 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31307echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31308if test "${ac_cv_header_GL_gl_h+set}" = set; then
31309 echo $ECHO_N "(cached) $ECHO_C" >&6
31310fi
31311echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31312echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31313else
31314 # Is the header compilable?
31315echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31316echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31317cat >conftest.$ac_ext <<_ACEOF
31318/* confdefs.h. */
31319_ACEOF
31320cat confdefs.h >>conftest.$ac_ext
31321cat >>conftest.$ac_ext <<_ACEOF
31322/* end confdefs.h. */
31323$ac_includes_default
31324#include <GL/gl.h>
31325_ACEOF
31326rm -f conftest.$ac_objext
31327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31328 (eval $ac_compile) 2>conftest.er1
a848cd7e 31329 ac_status=$?
ac1cb8d3
VS
31330 grep -v '^ *+' conftest.er1 >conftest.err
31331 rm -f conftest.er1
31332 cat conftest.err >&5
a848cd7e
SC
31333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334 (exit $ac_status); } &&
3565d135
RR
31335 { ac_try='test -z "$ac_c_werror_flag"
31336 || test ! -s conftest.err'
ac1cb8d3
VS
31337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31338 (eval $ac_try) 2>&5
31339 ac_status=$?
31340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341 (exit $ac_status); }; } &&
31342 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31344 (eval $ac_try) 2>&5
31345 ac_status=$?
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); }; }; then
31348 ac_header_compiler=yes
31349else
31350 echo "$as_me: failed program was:" >&5
31351sed 's/^/| /' conftest.$ac_ext >&5
31352
31353ac_header_compiler=no
31354fi
ac1cb8d3 31355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31356echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31357echo "${ECHO_T}$ac_header_compiler" >&6
31358
31359# Is the header present?
31360echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31361echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31362cat >conftest.$ac_ext <<_ACEOF
31363/* confdefs.h. */
31364_ACEOF
31365cat confdefs.h >>conftest.$ac_ext
31366cat >>conftest.$ac_ext <<_ACEOF
31367/* end confdefs.h. */
31368#include <GL/gl.h>
31369_ACEOF
31370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31372 ac_status=$?
31373 grep -v '^ *+' conftest.er1 >conftest.err
31374 rm -f conftest.er1
31375 cat conftest.err >&5
31376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377 (exit $ac_status); } >/dev/null; then
31378 if test -s conftest.err; then
31379 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31381 else
31382 ac_cpp_err=
31383 fi
31384else
31385 ac_cpp_err=yes
31386fi
31387if test -z "$ac_cpp_err"; then
31388 ac_header_preproc=yes
31389else
31390 echo "$as_me: failed program was:" >&5
31391sed 's/^/| /' conftest.$ac_ext >&5
31392
31393 ac_header_preproc=no
31394fi
31395rm -f conftest.err conftest.$ac_ext
31396echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31397echo "${ECHO_T}$ac_header_preproc" >&6
31398
31399# So? What about this header?
ac1cb8d3
VS
31400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31401 yes:no: )
a848cd7e
SC
31402 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31403echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31404 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31405echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31406 ac_header_preproc=yes
a848cd7e 31407 ;;
ac1cb8d3 31408 no:yes:* )
a848cd7e
SC
31409 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31410echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31411 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31412echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31413 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31414echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31415 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31416echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31417 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31418echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31419 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31420echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31421 (
31422 cat <<\_ASBOX
ac1cb8d3
VS
31423## ----------------------------------------- ##
31424## Report this to wx-dev@lists.wxwidgets.org ##
31425## ----------------------------------------- ##
a848cd7e
SC
31426_ASBOX
31427 ) |
31428 sed "s/^/$as_me: WARNING: /" >&2
31429 ;;
31430esac
31431echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31432echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31433if test "${ac_cv_header_GL_gl_h+set}" = set; then
31434 echo $ECHO_N "(cached) $ECHO_C" >&6
31435else
31436 ac_cv_header_GL_gl_h=$ac_header_preproc
31437fi
31438echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31439echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31440
31441fi
31442if test $ac_cv_header_GL_gl_h = yes; then
31443
31444 found_gl=0
31445
31446 echo "$as_me:$LINENO: checking for -lGL" >&5
31447echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31448
0ad5d837
VZ
31449 ac_find_libraries=
31450 for ac_dir in $SEARCH_LIB;
a848cd7e 31451 do
3eca31dc 31452 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31453 if test -f "$ac_dir/libGL.$ac_extension"; then
31454 ac_find_libraries=$ac_dir
31455 break 2
31456 fi
31457 done
31458 done
31459
31460 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31461 echo "$as_me:$LINENO: result: yes" >&5
31462echo "${ECHO_T}yes" >&6
31463
a848cd7e 31464
0ad5d837 31465 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31466 ac_path_to_link=""
31467 else
0ad5d837
VZ
31468 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31469 result=$?
31470 if test $result = 0; then
31471 ac_path_to_link=""
31472 else
31473 ac_path_to_link=" -L$ac_find_libraries"
31474 fi
a848cd7e
SC
31475 fi
31476
31477 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31478 LDFLAGS_GL="$ac_path_to_link"
31479 fi
31480
69120ee4
VZ
31481 echo "$as_me:$LINENO: checking for -lGLU" >&5
31482echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31483
0ad5d837
VZ
31484 ac_find_libraries=
31485 for ac_dir in $SEARCH_LIB;
31486 do
31487 for ac_extension in a so sl dylib dll.a; do
31488 if test -f "$ac_dir/libGLU.$ac_extension"; then
31489 ac_find_libraries=$ac_dir
31490 break 2
31491 fi
31492 done
31493 done
31494
a848cd7e
SC
31495 if test "$ac_find_libraries" != "" ; then
31496
0ad5d837 31497 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31498 ac_path_to_link=""
31499 else
0ad5d837
VZ
31500 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31501 result=$?
31502 if test $result = 0; then
31503 ac_path_to_link=""
31504 else
31505 ac_path_to_link=" -L$ac_find_libraries"
31506 fi
a848cd7e
SC
31507 fi
31508
31509 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31510 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31511 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31512 fi
31513
31514 found_gl=1
31515 OPENGL_LIBS="-lGL -lGLU"
31516 echo "$as_me:$LINENO: result: yes" >&5
31517echo "${ECHO_T}yes" >&6
69120ee4
VZ
31518 else
31519 echo "$as_me:$LINENO: result: no" >&5
31520echo "${ECHO_T}no" >&6
a848cd7e 31521 fi
69120ee4
VZ
31522 else
31523 echo "$as_me:$LINENO: result: no" >&5
31524echo "${ECHO_T}no" >&6
a848cd7e
SC
31525 fi
31526
31527 if test "$found_gl" != 1; then
a848cd7e
SC
31528 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31529echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31530
0ad5d837
VZ
31531 ac_find_libraries=
31532 for ac_dir in $SEARCH_LIB;
a848cd7e 31533 do
3eca31dc 31534 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31535 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31536 ac_find_libraries=$ac_dir
31537 break 2
31538 fi
31539 done
31540 done
31541
31542 if test "$ac_find_libraries" != "" ; then
31543
0ad5d837 31544 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31545 ac_path_to_link=""
31546 else
0ad5d837
VZ
31547 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31548 result=$?
31549 if test $result = 0; then
31550 ac_path_to_link=""
31551 else
31552 ac_path_to_link=" -L$ac_find_libraries"
31553 fi
a848cd7e
SC
31554 fi
31555
31556 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31557 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31558 echo "$as_me:$LINENO: result: yes" >&5
31559echo "${ECHO_T}yes" >&6
31560 else
31561 echo "$as_me:$LINENO: result: no" >&5
31562echo "${ECHO_T}no" >&6
31563 fi
31564 fi
31565
31566fi
31567
31568
31569
31570 if test "x$OPENGL_LIBS" = "x"; then
31571 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31572echo "$as_me: error: OpenGL libraries not available" >&2;}
31573 { (exit 1); exit 1; }; }
31574 fi
31575 fi
31576
31577 if test "$wxUSE_OPENGL" = "yes"; then
31578 USE_OPENGL=1
31579 cat >>confdefs.h <<\_ACEOF
31580#define wxUSE_OPENGL 1
31581_ACEOF
31582
31583 cat >>confdefs.h <<\_ACEOF
31584#define wxUSE_GLCANVAS 1
31585_ACEOF
31586
31587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31588 fi
31589fi
31590
a848cd7e
SC
31591
31592if test -n "$TOOLKIT" ; then
31593 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31594fi
31595
a848cd7e
SC
31596
31597
31598if test "$wxUSE_SHARED" = "yes"; then
31599 case "${host}" in
31600 *-pc-msdosdjgpp )
31601 wxUSE_SHARED=no
31602 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31603echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31604 ;;
31605 esac
31606fi
31607
a848cd7e 31608if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31609
31610
31611 found_versioning=no
31612
31613
31614 if test $found_versioning = no ; then
31615 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31616echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31617if test "${wx_cv_version_script+set}" = set; then
31618 echo $ECHO_N "(cached) $ECHO_C" >&6
31619else
31620
31621 echo "VER_1 { *; };" >conftest.sym
31622 echo "int main() { return 0; }" >conftest.cpp
31623
31624 if { ac_try='
31625 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31626 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31628 (eval $ac_try) 2>&5
31629 ac_status=$?
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); }; } ; then
31632 if test -s conftest.stderr ; then
31633 wx_cv_version_script=no
31634 else
31635 wx_cv_version_script=yes
31636 fi
31637 else
31638 wx_cv_version_script=no
31639 fi
e5d4b470
MW
31640
31641 if test $wx_cv_version_script = yes
31642 then
31643 echo "struct B { virtual ~B() { } }; \
31644 struct D : public B { }; \
31645 void F() { D d; }" > conftest.cpp
31646
31647 if { ac_try='
31648 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31649 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31651 (eval $ac_try) 2>&5
31652 ac_status=$?
31653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31654 (exit $ac_status); }; } &&
31655 { ac_try='
31656 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31657 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31659 (eval $ac_try) 2>&5
31660 ac_status=$?
31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662 (exit $ac_status); }; }
31663 then
31664 if { ac_try='
31665 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31666 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31668 (eval $ac_try) 2>&5
31669 ac_status=$?
31670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671 (exit $ac_status); }; }
31672 then
31673 wx_cv_version_script=yes
31674 else
31675 wx_cv_version_script=no
31676 fi
31677 fi
31678 fi
31679
a848cd7e 31680 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31681 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31682
31683fi
31684echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31685echo "${ECHO_T}$wx_cv_version_script" >&6
31686 if test $wx_cv_version_script = yes ; then
31687 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31688 fi
31689 fi
31690
31691
31692 case "${host}" in
31693 *-*-linux* | *-*-gnu* )
31694 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31695 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31696 ;;
a848cd7e
SC
31697
31698 *-*-solaris2* )
31699 if test "$GCC" = yes ; then
c92ad099 31700 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
31701
31702 saveLdflags="$LDFLAGS"
31703 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31704 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31705echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31706 cat >conftest.$ac_ext <<_ACEOF
31707/* confdefs.h. */
31708_ACEOF
31709cat confdefs.h >>conftest.$ac_ext
31710cat >>conftest.$ac_ext <<_ACEOF
31711/* end confdefs.h. */
31712
31713int
31714main ()
31715{
31716
31717 ;
31718 return 0;
31719}
31720_ACEOF
31721rm -f conftest.$ac_objext conftest$ac_exeext
31722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31723 (eval $ac_link) 2>conftest.er1
a848cd7e 31724 ac_status=$?
ac1cb8d3
VS
31725 grep -v '^ *+' conftest.er1 >conftest.err
31726 rm -f conftest.er1
31727 cat conftest.err >&5
a848cd7e
SC
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); } &&
3565d135
RR
31730 { ac_try='test -z "$ac_c_werror_flag"
31731 || test ! -s conftest.err'
ac1cb8d3
VS
31732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31733 (eval $ac_try) 2>&5
31734 ac_status=$?
31735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31736 (exit $ac_status); }; } &&
31737 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31739 (eval $ac_try) 2>&5
31740 ac_status=$?
31741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742 (exit $ac_status); }; }; then
31743
31744 echo "$as_me:$LINENO: result: yes" >&5
31745echo "${ECHO_T}yes" >&6
31746 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31747 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31748
31749else
31750 echo "$as_me: failed program was:" >&5
31751sed 's/^/| /' conftest.$ac_ext >&5
31752
31753
31754 echo "$as_me:$LINENO: result: no" >&5
31755echo "${ECHO_T}no" >&6
31756 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31757echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31758 LDFLAGS="$saveLdflags -Wl,-R,/"
31759 cat >conftest.$ac_ext <<_ACEOF
31760/* confdefs.h. */
31761_ACEOF
31762cat confdefs.h >>conftest.$ac_ext
31763cat >>conftest.$ac_ext <<_ACEOF
31764/* end confdefs.h. */
31765
31766int
31767main ()
31768{
31769
31770 ;
31771 return 0;
31772}
31773_ACEOF
31774rm -f conftest.$ac_objext conftest$ac_exeext
31775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31776 (eval $ac_link) 2>conftest.er1
a848cd7e 31777 ac_status=$?
ac1cb8d3
VS
31778 grep -v '^ *+' conftest.er1 >conftest.err
31779 rm -f conftest.er1
31780 cat conftest.err >&5
a848cd7e
SC
31781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782 (exit $ac_status); } &&
3565d135
RR
31783 { ac_try='test -z "$ac_c_werror_flag"
31784 || test ! -s conftest.err'
ac1cb8d3
VS
31785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31786 (eval $ac_try) 2>&5
31787 ac_status=$?
31788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); }; } &&
31790 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31792 (eval $ac_try) 2>&5
31793 ac_status=$?
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); }; }; then
31796
ffa0583f 31797 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31798echo "${ECHO_T}yes" >&6
ffa0583f
RL
31799 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31800 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31801
a848cd7e
SC
31802else
31803 echo "$as_me: failed program was:" >&5
31804sed 's/^/| /' conftest.$ac_ext >&5
31805
31806
31807 echo "$as_me:$LINENO: result: no" >&5
31808echo "${ECHO_T}no" >&6
31809
31810fi
ac1cb8d3
VS
31811rm -f conftest.err conftest.$ac_objext \
31812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31813
31814fi
ac1cb8d3
VS
31815rm -f conftest.err conftest.$ac_objext \
31816 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31817 LDFLAGS="$saveLdflags"
31818 else
a848cd7e 31819 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31820 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31821 fi
31822 ;;
31823
cfda0ea8 31824 *-*-darwin* )
0caebc27
MW
31825 install_name_tool=`which install_name_tool`
31826 if test "$install_name_tool" -a -x "$install_name_tool"; then
31827 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31828 cat <<EOF >change-install-names
a848cd7e
SC
31829#!/bin/sh
31830libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31831inst_cmd="install_name_tool "
31832for i in \${libnames} ; do
31833 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31834done
31835\${inst_cmd} \${3}
31836EOF
0caebc27
MW
31837 chmod +x change-install-names
31838 fi
a848cd7e
SC
31839 ;;
31840
31841 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
31842 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
31843 ;;
a848cd7e 31844
81f90336
MW
31845 *-*-hpux* )
31846 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31847 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 31848 ;;
81f90336 31849
a848cd7e 31850 esac
ceec2216 31851
ffa0583f
RL
31852 if test $wxUSE_RPATH = "no"; then
31853 SAMPLES_RPATH_FLAG=''
31854 SAMPLES_RPATH_POSTLINK=''
31855 WXCONFIG_RPATH=''
31856 fi
31857
31858 SHARED=1
31859
31860else
31861
ceec2216
RL
31862 config_linkage_component="-static"
31863 SHARED=0
ffa0583f 31864
ceec2216 31865fi
a848cd7e 31866
a848cd7e 31867
ceec2216
RL
31868UNICODE=0
31869lib_unicode_suffix=
31870WX_CHARTYPE="ansi"
31871if test "$wxUSE_UNICODE" = "yes"; then
31872 lib_unicode_suffix=u
31873 WX_CHARTYPE="unicode"
31874 UNICODE=1
a848cd7e
SC
31875fi
31876
ceec2216
RL
31877lib_debug_suffix=
31878WX_DEBUGTYPE="release"
31879DEBUG_FLAG=0
31880if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31881 lib_debug_suffix=d
31882 WX_DEBUGTYPE="debug"
31883 DEBUG_FLAG=1
31884fi
a848cd7e 31885
ceec2216
RL
31886WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31887WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31888
ceec2216
RL
31889DEBUG_INFO=0
31890if test "$wxUSE_DEBUG_INFO" = "yes"; then
31891 DEBUG_INFO=1
31892fi
a848cd7e 31893
ceec2216 31894WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31895
ceec2216 31896TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31897
ceec2216 31898TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31899
ceec2216
RL
31900if test "$cross_compiling" = "yes"; then
31901 HOST_SUFFIX="-$host_alias"
31902 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31903 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31904fi
31905
dd21ced8 31906WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31907if test "${TOOLKIT_DIR}" = "os2"; then
31908 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31909else
31910 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31911fi
ceec2216
RL
31912
31913
31914
1d1af5ea
DE
31915if test "$wxUSE_COCOA" = 1; then
31916
31917
31918 ac_ext=c
31919ac_cpp='$CPP $CPPFLAGS'
31920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31922ac_compiler_gnu=$ac_cv_c_compiler_gnu
31923
31924ac_ext=m
31925
31926 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31927echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31928 cat >conftest.$ac_ext <<_ACEOF
31929/* confdefs.h. */
31930_ACEOF
31931cat confdefs.h >>conftest.$ac_ext
31932cat >>conftest.$ac_ext <<_ACEOF
31933/* end confdefs.h. */
31934#include <AppKit/NSEvent.h>
31935#include <CoreFoundation/CoreFoundation.h>
31936
31937int
31938main ()
31939{
31940
31941 ;
31942 return 0;
31943}
31944_ACEOF
31945rm -f conftest.$ac_objext
31946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31947 (eval $ac_compile) 2>conftest.er1
31948 ac_status=$?
31949 grep -v '^ *+' conftest.er1 >conftest.err
31950 rm -f conftest.er1
31951 cat conftest.err >&5
31952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953 (exit $ac_status); } &&
3565d135
RR
31954 { ac_try='test -z "$ac_c_werror_flag"
31955 || test ! -s conftest.err'
1d1af5ea
DE
31956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31957 (eval $ac_try) 2>&5
31958 ac_status=$?
31959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960 (exit $ac_status); }; } &&
31961 { ac_try='test -s conftest.$ac_objext'
31962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31963 (eval $ac_try) 2>&5
31964 ac_status=$?
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); }; }; then
31967 echo "$as_me:$LINENO: result: no" >&5
31968echo "${ECHO_T}no" >&6
31969else
31970 echo "$as_me: failed program was:" >&5
31971sed 's/^/| /' conftest.$ac_ext >&5
31972
31973echo "$as_me:$LINENO: result: yes" >&5
31974echo "${ECHO_T}yes" >&6
31975 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31976echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31977 cat >conftest.$ac_ext <<_ACEOF
31978/* confdefs.h. */
31979_ACEOF
31980cat confdefs.h >>conftest.$ac_ext
31981cat >>conftest.$ac_ext <<_ACEOF
31982/* end confdefs.h. */
31983#define __Point__ 1
31984#include <AppKit/NSEvent.h>
31985#include <CoreFoundation/CoreFoundation.h>
31986
31987int
31988main ()
31989{
31990
31991 ;
31992 return 0;
31993}
31994_ACEOF
31995rm -f conftest.$ac_objext
31996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31997 (eval $ac_compile) 2>conftest.er1
31998 ac_status=$?
31999 grep -v '^ *+' conftest.er1 >conftest.err
32000 rm -f conftest.er1
32001 cat conftest.err >&5
32002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003 (exit $ac_status); } &&
3565d135
RR
32004 { ac_try='test -z "$ac_c_werror_flag"
32005 || test ! -s conftest.err'
1d1af5ea
DE
32006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32007 (eval $ac_try) 2>&5
32008 ac_status=$?
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); }; } &&
32011 { ac_try='test -s conftest.$ac_objext'
32012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32013 (eval $ac_try) 2>&5
32014 ac_status=$?
32015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); }; }; then
32017 echo "$as_me:$LINENO: result: yes" >&5
32018echo "${ECHO_T}yes" >&6
32019 cat >>confdefs.h <<\_ACEOF
32020#define __Point__ 1
32021_ACEOF
32022
32023
32024else
32025 echo "$as_me: failed program was:" >&5
32026sed 's/^/| /' conftest.$ac_ext >&5
32027
32028{ { echo "$as_me:$LINENO: error: no
32029See \`config.log' for more details." >&5
32030echo "$as_me: error: no
32031See \`config.log' for more details." >&2;}
32032 { (exit 1); exit 1; }; }
32033
32034fi
32035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32036
32037fi
32038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32039 ac_ext=c
32040ac_cpp='$CPP $CPPFLAGS'
32041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32043ac_compiler_gnu=$ac_cv_c_compiler_gnu
32044
32045fi
32046
a848cd7e 32047if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32048 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32049 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32050
a848cd7e 32051 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32052
32053 # Extract the first word of "Rez", so it can be a program name with args.
32054set dummy Rez; ac_word=$2
32055echo "$as_me:$LINENO: checking for $ac_word" >&5
32056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32057if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32058 echo $ECHO_N "(cached) $ECHO_C" >&6
32059else
8ced02f6
DE
32060 if test -n "$REZ"; then
32061 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32062else
32063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32064for as_dir in $PATH
32065do
32066 IFS=$as_save_IFS
32067 test -z "$as_dir" && as_dir=.
32068 for ac_exec_ext in '' $ac_executable_extensions; do
32069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 32070 ac_cv_prog_REZ="Rez"
a848cd7e
SC
32071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32072 break 2
32073 fi
32074done
32075done
32076
8ced02f6 32077 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
32078fi
32079fi
8ced02f6
DE
32080REZ=$ac_cv_prog_REZ
32081if test -n "$REZ"; then
32082 echo "$as_me:$LINENO: result: $REZ" >&5
32083echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
32084else
32085 echo "$as_me:$LINENO: result: no" >&5
32086echo "${ECHO_T}no" >&6
32087fi
32088
32089 # Extract the first word of "DeRez", so it can be a program name with args.
32090set dummy DeRez; ac_word=$2
32091echo "$as_me:$LINENO: checking for $ac_word" >&5
32092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32093if test "${ac_cv_prog_DEREZ+set}" = set; then
32094 echo $ECHO_N "(cached) $ECHO_C" >&6
32095else
32096 if test -n "$DEREZ"; then
32097 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32098else
32099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32100for as_dir in $PATH
32101do
32102 IFS=$as_save_IFS
32103 test -z "$as_dir" && as_dir=.
32104 for ac_exec_ext in '' $ac_executable_extensions; do
32105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32106 ac_cv_prog_DEREZ="DeRez"
32107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32108 break 2
32109 fi
32110done
32111done
32112
32113 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32114fi
32115fi
32116DEREZ=$ac_cv_prog_DEREZ
32117if test -n "$DEREZ"; then
32118 echo "$as_me:$LINENO: result: $DEREZ" >&5
32119echo "${ECHO_T}$DEREZ" >&6
32120else
32121 echo "$as_me:$LINENO: result: no" >&5
32122echo "${ECHO_T}no" >&6
32123fi
32124
32125 # Extract the first word of "SetFile", so it can be a program name with args.
32126set dummy SetFile; ac_word=$2
32127echo "$as_me:$LINENO: checking for $ac_word" >&5
32128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32129if test "${ac_cv_prog_SETFILE+set}" = set; then
32130 echo $ECHO_N "(cached) $ECHO_C" >&6
32131else
32132 if test -n "$SETFILE"; then
32133 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32134else
32135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32136for as_dir in $PATH
32137do
32138 IFS=$as_save_IFS
32139 test -z "$as_dir" && as_dir=.
32140 for ac_exec_ext in '' $ac_executable_extensions; do
32141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32142 ac_cv_prog_SETFILE="SetFile"
32143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32144 break 2
32145 fi
32146done
32147done
32148
32149 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32150fi
32151fi
32152SETFILE=$ac_cv_prog_SETFILE
32153if test -n "$SETFILE"; then
32154 echo "$as_me:$LINENO: result: $SETFILE" >&5
32155echo "${ECHO_T}$SETFILE" >&6
32156else
32157 echo "$as_me:$LINENO: result: no" >&5
32158echo "${ECHO_T}no" >&6
32159fi
32160
32161
32162 MACSETFILE="\$(SETFILE)"
32163
32164 if test "$wxUSE_MAC" = 1; then
8ced02f6 32165 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
32166 RESCOMP="$REZ"
32167 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32168 else
004ee6da
RL
32169 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32170 RESCOMP="echo -n \| $REZ"
32171 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 32172 fi
004ee6da 32173
a848cd7e 32174else
ffa0583f 32175 MACSETFILE="@true"
a848cd7e 32176
8ced02f6 32177 if test "$wxUSE_PM" = 1; then
004ee6da
RL
32178 RESCOMP="emxbind"
32179 WXCONFIG_RESFLAGS="-ep"
32180
32181 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 32182 else
8ced02f6 32183 POSTLINK_COMMAND="@true"
a848cd7e 32184 fi
004ee6da 32185
a848cd7e
SC
32186fi
32187
32188
32189
32190echo "$as_me:$LINENO: checking for mode_t" >&5
32191echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32192if test "${ac_cv_type_mode_t+set}" = set; then
32193 echo $ECHO_N "(cached) $ECHO_C" >&6
32194else
32195 cat >conftest.$ac_ext <<_ACEOF
32196/* confdefs.h. */
32197_ACEOF
32198cat confdefs.h >>conftest.$ac_ext
32199cat >>conftest.$ac_ext <<_ACEOF
32200/* end confdefs.h. */
32201$ac_includes_default
32202int
32203main ()
32204{
32205if ((mode_t *) 0)
32206 return 0;
32207if (sizeof (mode_t))
32208 return 0;
32209 ;
32210 return 0;
32211}
32212_ACEOF
32213rm -f conftest.$ac_objext
32214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32215 (eval $ac_compile) 2>conftest.er1
a848cd7e 32216 ac_status=$?
ac1cb8d3
VS
32217 grep -v '^ *+' conftest.er1 >conftest.err
32218 rm -f conftest.er1
32219 cat conftest.err >&5
a848cd7e
SC
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); } &&
3565d135
RR
32222 { ac_try='test -z "$ac_c_werror_flag"
32223 || test ! -s conftest.err'
ac1cb8d3
VS
32224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32225 (eval $ac_try) 2>&5
32226 ac_status=$?
32227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228 (exit $ac_status); }; } &&
32229 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32231 (eval $ac_try) 2>&5
32232 ac_status=$?
32233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); }; }; then
32235 ac_cv_type_mode_t=yes
32236else
32237 echo "$as_me: failed program was:" >&5
32238sed 's/^/| /' conftest.$ac_ext >&5
32239
32240ac_cv_type_mode_t=no
32241fi
ac1cb8d3 32242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32243fi
32244echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32245echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32246if test $ac_cv_type_mode_t = yes; then
32247 :
32248else
32249
32250cat >>confdefs.h <<_ACEOF
32251#define mode_t int
32252_ACEOF
32253
32254fi
32255
32256echo "$as_me:$LINENO: checking for off_t" >&5
32257echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32258if test "${ac_cv_type_off_t+set}" = set; then
32259 echo $ECHO_N "(cached) $ECHO_C" >&6
32260else
32261 cat >conftest.$ac_ext <<_ACEOF
32262/* confdefs.h. */
32263_ACEOF
32264cat confdefs.h >>conftest.$ac_ext
32265cat >>conftest.$ac_ext <<_ACEOF
32266/* end confdefs.h. */
32267$ac_includes_default
32268int
32269main ()
32270{
32271if ((off_t *) 0)
32272 return 0;
32273if (sizeof (off_t))
32274 return 0;
32275 ;
32276 return 0;
32277}
32278_ACEOF
32279rm -f conftest.$ac_objext
32280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32281 (eval $ac_compile) 2>conftest.er1
a848cd7e 32282 ac_status=$?
ac1cb8d3
VS
32283 grep -v '^ *+' conftest.er1 >conftest.err
32284 rm -f conftest.er1
32285 cat conftest.err >&5
a848cd7e
SC
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); } &&
3565d135
RR
32288 { ac_try='test -z "$ac_c_werror_flag"
32289 || test ! -s conftest.err'
ac1cb8d3
VS
32290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32291 (eval $ac_try) 2>&5
32292 ac_status=$?
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); }; } &&
32295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32297 (eval $ac_try) 2>&5
32298 ac_status=$?
32299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300 (exit $ac_status); }; }; then
32301 ac_cv_type_off_t=yes
32302else
32303 echo "$as_me: failed program was:" >&5
32304sed 's/^/| /' conftest.$ac_ext >&5
32305
32306ac_cv_type_off_t=no
32307fi
ac1cb8d3 32308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32309fi
32310echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32311echo "${ECHO_T}$ac_cv_type_off_t" >&6
32312if test $ac_cv_type_off_t = yes; then
32313 :
32314else
32315
32316cat >>confdefs.h <<_ACEOF
32317#define off_t long
32318_ACEOF
32319
32320fi
32321
32322echo "$as_me:$LINENO: checking for pid_t" >&5
32323echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32324if test "${ac_cv_type_pid_t+set}" = set; then
32325 echo $ECHO_N "(cached) $ECHO_C" >&6
32326else
32327 cat >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$ac_includes_default
32334int
32335main ()
32336{
32337if ((pid_t *) 0)
32338 return 0;
32339if (sizeof (pid_t))
32340 return 0;
32341 ;
32342 return 0;
32343}
32344_ACEOF
32345rm -f conftest.$ac_objext
32346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32347 (eval $ac_compile) 2>conftest.er1
a848cd7e 32348 ac_status=$?
ac1cb8d3
VS
32349 grep -v '^ *+' conftest.er1 >conftest.err
32350 rm -f conftest.er1
32351 cat conftest.err >&5
a848cd7e
SC
32352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32353 (exit $ac_status); } &&
3565d135
RR
32354 { ac_try='test -z "$ac_c_werror_flag"
32355 || test ! -s conftest.err'
ac1cb8d3
VS
32356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32357 (eval $ac_try) 2>&5
32358 ac_status=$?
32359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360 (exit $ac_status); }; } &&
32361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32363 (eval $ac_try) 2>&5
32364 ac_status=$?
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; }; then
32367 ac_cv_type_pid_t=yes
32368else
32369 echo "$as_me: failed program was:" >&5
32370sed 's/^/| /' conftest.$ac_ext >&5
32371
32372ac_cv_type_pid_t=no
32373fi
ac1cb8d3 32374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32375fi
32376echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32377echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32378if test $ac_cv_type_pid_t = yes; then
32379 :
32380else
32381
32382cat >>confdefs.h <<_ACEOF
32383#define pid_t int
32384_ACEOF
32385
32386fi
32387
32388echo "$as_me:$LINENO: checking for size_t" >&5
32389echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32390if test "${ac_cv_type_size_t+set}" = set; then
32391 echo $ECHO_N "(cached) $ECHO_C" >&6
32392else
32393 cat >conftest.$ac_ext <<_ACEOF
32394/* confdefs.h. */
32395_ACEOF
32396cat confdefs.h >>conftest.$ac_ext
32397cat >>conftest.$ac_ext <<_ACEOF
32398/* end confdefs.h. */
32399$ac_includes_default
32400int
32401main ()
32402{
32403if ((size_t *) 0)
32404 return 0;
32405if (sizeof (size_t))
32406 return 0;
32407 ;
32408 return 0;
32409}
32410_ACEOF
32411rm -f conftest.$ac_objext
32412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32413 (eval $ac_compile) 2>conftest.er1
a848cd7e 32414 ac_status=$?
ac1cb8d3
VS
32415 grep -v '^ *+' conftest.er1 >conftest.err
32416 rm -f conftest.er1
32417 cat conftest.err >&5
a848cd7e
SC
32418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32419 (exit $ac_status); } &&
3565d135
RR
32420 { ac_try='test -z "$ac_c_werror_flag"
32421 || test ! -s conftest.err'
ac1cb8d3
VS
32422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32423 (eval $ac_try) 2>&5
32424 ac_status=$?
32425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426 (exit $ac_status); }; } &&
32427 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32429 (eval $ac_try) 2>&5
32430 ac_status=$?
32431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32432 (exit $ac_status); }; }; then
32433 ac_cv_type_size_t=yes
32434else
32435 echo "$as_me: failed program was:" >&5
32436sed 's/^/| /' conftest.$ac_ext >&5
32437
32438ac_cv_type_size_t=no
32439fi
ac1cb8d3 32440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32441fi
32442echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32443echo "${ECHO_T}$ac_cv_type_size_t" >&6
32444if test $ac_cv_type_size_t = yes; then
32445 :
32446else
32447
32448cat >>confdefs.h <<_ACEOF
32449#define size_t unsigned
32450_ACEOF
32451
32452fi
32453
32454echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32455echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32456if test "${ac_cv_type_uid_t+set}" = set; then
32457 echo $ECHO_N "(cached) $ECHO_C" >&6
32458else
32459 cat >conftest.$ac_ext <<_ACEOF
32460/* confdefs.h. */
32461_ACEOF
32462cat confdefs.h >>conftest.$ac_ext
32463cat >>conftest.$ac_ext <<_ACEOF
32464/* end confdefs.h. */
32465#include <sys/types.h>
32466
32467_ACEOF
32468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32469 $EGREP "uid_t" >/dev/null 2>&1; then
32470 ac_cv_type_uid_t=yes
32471else
32472 ac_cv_type_uid_t=no
32473fi
32474rm -f conftest*
32475
32476fi
32477echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32478echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32479if test $ac_cv_type_uid_t = no; then
32480
32481cat >>confdefs.h <<\_ACEOF
32482#define uid_t int
32483_ACEOF
32484
32485
32486cat >>confdefs.h <<\_ACEOF
32487#define gid_t int
32488_ACEOF
32489
32490fi
32491
32492
d51253e8
RL
32493echo "$as_me:$LINENO: checking for ssize_t" >&5
32494echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32495if test "${ac_cv_type_ssize_t+set}" = set; then
32496 echo $ECHO_N "(cached) $ECHO_C" >&6
32497else
32498 cat >conftest.$ac_ext <<_ACEOF
32499/* confdefs.h. */
32500_ACEOF
32501cat confdefs.h >>conftest.$ac_ext
32502cat >>conftest.$ac_ext <<_ACEOF
32503/* end confdefs.h. */
32504$ac_includes_default
32505int
32506main ()
32507{
32508if ((ssize_t *) 0)
32509 return 0;
32510if (sizeof (ssize_t))
32511 return 0;
32512 ;
32513 return 0;
32514}
32515_ACEOF
32516rm -f conftest.$ac_objext
32517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32518 (eval $ac_compile) 2>conftest.er1
32519 ac_status=$?
32520 grep -v '^ *+' conftest.er1 >conftest.err
32521 rm -f conftest.er1
32522 cat conftest.err >&5
32523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32524 (exit $ac_status); } &&
3565d135
RR
32525 { ac_try='test -z "$ac_c_werror_flag"
32526 || test ! -s conftest.err'
d51253e8
RL
32527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32528 (eval $ac_try) 2>&5
32529 ac_status=$?
32530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531 (exit $ac_status); }; } &&
32532 { ac_try='test -s conftest.$ac_objext'
32533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32534 (eval $ac_try) 2>&5
32535 ac_status=$?
32536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537 (exit $ac_status); }; }; then
32538 ac_cv_type_ssize_t=yes
32539else
32540 echo "$as_me: failed program was:" >&5
32541sed 's/^/| /' conftest.$ac_ext >&5
32542
32543ac_cv_type_ssize_t=no
32544fi
32545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32546fi
32547echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32548echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32549if test $ac_cv_type_ssize_t = yes; then
32550
32551cat >>confdefs.h <<_ACEOF
32552#define HAVE_SSIZE_T 1
32553_ACEOF
32554
32555
32556fi
32557
32558
a848cd7e
SC
32559
32560
32561ac_ext=cc
32562ac_cpp='$CXXCPP $CPPFLAGS'
32563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32566
32567echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32568echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32569if test "${wx_cv_size_t_is_uint+set}" = set; then
32570 echo $ECHO_N "(cached) $ECHO_C" >&6
32571else
32572
32573 cat >conftest.$ac_ext <<_ACEOF
32574/* confdefs.h. */
32575_ACEOF
32576cat confdefs.h >>conftest.$ac_ext
32577cat >>conftest.$ac_ext <<_ACEOF
32578/* end confdefs.h. */
32579#include <stddef.h>
32580int
32581main ()
32582{
32583
32584 return 0; }
32585
32586 struct Foo { void foo(size_t); void foo(unsigned int); };
32587
32588 int bar() {
32589
32590 ;
32591 return 0;
32592}
32593_ACEOF
32594rm -f conftest.$ac_objext
32595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32596 (eval $ac_compile) 2>conftest.er1
a848cd7e 32597 ac_status=$?
ac1cb8d3
VS
32598 grep -v '^ *+' conftest.er1 >conftest.err
32599 rm -f conftest.er1
32600 cat conftest.err >&5
a848cd7e
SC
32601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602 (exit $ac_status); } &&
3565d135
RR
32603 { ac_try='test -z "$ac_cxx_werror_flag"
32604 || test ! -s conftest.err'
ac1cb8d3
VS
32605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32606 (eval $ac_try) 2>&5
32607 ac_status=$?
32608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); }; } &&
32610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32612 (eval $ac_try) 2>&5
32613 ac_status=$?
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); }; }; then
32616 wx_cv_size_t_is_uint=no
32617else
32618 echo "$as_me: failed program was:" >&5
32619sed 's/^/| /' conftest.$ac_ext >&5
32620
32621wx_cv_size_t_is_uint=yes
32622
32623fi
ac1cb8d3 32624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32625
32626
32627fi
32628echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32629echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32630
32631if test "$wx_cv_size_t_is_uint" = "yes"; then
32632 cat >>confdefs.h <<\_ACEOF
32633#define wxSIZE_T_IS_UINT 1
32634_ACEOF
32635
32636else
32637 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32638echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32639if test "${wx_cv_size_t_is_ulong+set}" = set; then
32640 echo $ECHO_N "(cached) $ECHO_C" >&6
32641else
32642 cat >conftest.$ac_ext <<_ACEOF
32643/* confdefs.h. */
32644_ACEOF
32645cat confdefs.h >>conftest.$ac_ext
32646cat >>conftest.$ac_ext <<_ACEOF
32647/* end confdefs.h. */
32648#include <stddef.h>
32649int
32650main ()
32651{
32652
32653 return 0; }
32654
32655 struct Foo { void foo(size_t); void foo(unsigned long); };
32656
32657 int bar() {
32658
32659 ;
32660 return 0;
32661}
32662_ACEOF
32663rm -f conftest.$ac_objext
32664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32665 (eval $ac_compile) 2>conftest.er1
a848cd7e 32666 ac_status=$?
ac1cb8d3
VS
32667 grep -v '^ *+' conftest.er1 >conftest.err
32668 rm -f conftest.er1
32669 cat conftest.err >&5
a848cd7e
SC
32670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671 (exit $ac_status); } &&
3565d135
RR
32672 { ac_try='test -z "$ac_cxx_werror_flag"
32673 || test ! -s conftest.err'
ac1cb8d3
VS
32674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32675 (eval $ac_try) 2>&5
32676 ac_status=$?
32677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32678 (exit $ac_status); }; } &&
32679 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32681 (eval $ac_try) 2>&5
32682 ac_status=$?
32683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684 (exit $ac_status); }; }; then
32685 wx_cv_size_t_is_ulong=no
32686else
32687 echo "$as_me: failed program was:" >&5
32688sed 's/^/| /' conftest.$ac_ext >&5
32689
32690wx_cv_size_t_is_ulong=yes
32691
32692fi
ac1cb8d3 32693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32694
32695fi
32696echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32697echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32698
32699 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32700 cat >>confdefs.h <<\_ACEOF
32701#define wxSIZE_T_IS_ULONG 1
32702_ACEOF
32703
32704 fi
32705fi
32706
32707ac_ext=c
32708ac_cpp='$CPP $CPPFLAGS'
32709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32711ac_compiler_gnu=$ac_cv_c_compiler_gnu
32712
32713
32714
32715echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32716echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32717if test "${wx_cv_struct_pw_gecos+set}" = set; then
32718 echo $ECHO_N "(cached) $ECHO_C" >&6
32719else
32720
32721 cat >conftest.$ac_ext <<_ACEOF
32722/* confdefs.h. */
32723_ACEOF
32724cat confdefs.h >>conftest.$ac_ext
32725cat >>conftest.$ac_ext <<_ACEOF
32726/* end confdefs.h. */
32727#include <pwd.h>
32728int
32729main ()
32730{
32731
32732 char *p;
32733 struct passwd *pw;
32734 p = pw->pw_gecos;
32735
32736 ;
32737 return 0;
32738}
32739_ACEOF
32740rm -f conftest.$ac_objext
32741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32742 (eval $ac_compile) 2>conftest.er1
a848cd7e 32743 ac_status=$?
ac1cb8d3
VS
32744 grep -v '^ *+' conftest.er1 >conftest.err
32745 rm -f conftest.er1
32746 cat conftest.err >&5
a848cd7e
SC
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); } &&
3565d135
RR
32749 { ac_try='test -z "$ac_c_werror_flag"
32750 || test ! -s conftest.err'
ac1cb8d3
VS
32751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32752 (eval $ac_try) 2>&5
32753 ac_status=$?
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); }; } &&
32756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32758 (eval $ac_try) 2>&5
32759 ac_status=$?
32760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761 (exit $ac_status); }; }; then
32762
32763 wx_cv_struct_pw_gecos=yes
32764
32765else
32766 echo "$as_me: failed program was:" >&5
32767sed 's/^/| /' conftest.$ac_ext >&5
32768
32769
32770 wx_cv_struct_pw_gecos=no
32771
32772
32773fi
ac1cb8d3 32774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32775
32776
32777fi
32778echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32779echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32780
32781if test "$wx_cv_struct_pw_gecos" = "yes"; then
32782 cat >>confdefs.h <<\_ACEOF
32783#define HAVE_PW_GECOS 1
32784_ACEOF
32785
32786fi
32787
32788
47a7e797 32789if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32790 cat >>confdefs.h <<\_ACEOF
32791#define wxUSE_WCHAR_T 1
32792_ACEOF
32793
32794
32795 WCSLEN_FOUND=0
32796 WCHAR_LINK=
32797
32798for ac_func in wcslen
32799do
32800as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32801echo "$as_me:$LINENO: checking for $ac_func" >&5
32802echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32803if eval "test \"\${$as_ac_var+set}\" = set"; then
32804 echo $ECHO_N "(cached) $ECHO_C" >&6
32805else
32806 cat >conftest.$ac_ext <<_ACEOF
32807/* confdefs.h. */
32808_ACEOF
32809cat confdefs.h >>conftest.$ac_ext
32810cat >>conftest.$ac_ext <<_ACEOF
32811/* end confdefs.h. */
ac1cb8d3
VS
32812/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32814#define $ac_func innocuous_$ac_func
32815
a848cd7e
SC
32816/* System header to define __stub macros and hopefully few prototypes,
32817 which can conflict with char $ac_func (); below.
32818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32819 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32820
a848cd7e
SC
32821#ifdef __STDC__
32822# include <limits.h>
32823#else
32824# include <assert.h>
32825#endif
ac1cb8d3
VS
32826
32827#undef $ac_func
32828
a848cd7e
SC
32829/* Override any gcc2 internal prototype to avoid an error. */
32830#ifdef __cplusplus
32831extern "C"
32832{
32833#endif
32834/* We use char because int might match the return type of a gcc2
32835 builtin and then its argument prototype would still apply. */
32836char $ac_func ();
32837/* The GNU C library defines this for functions which it implements
32838 to always fail with ENOSYS. Some functions are actually named
32839 something starting with __ and the normal name is an alias. */
32840#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32841choke me
32842#else
32843char (*f) () = $ac_func;
32844#endif
32845#ifdef __cplusplus
32846}
32847#endif
32848
32849int
32850main ()
32851{
32852return f != $ac_func;
32853 ;
32854 return 0;
32855}
32856_ACEOF
32857rm -f conftest.$ac_objext conftest$ac_exeext
32858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32859 (eval $ac_link) 2>conftest.er1
a848cd7e 32860 ac_status=$?
ac1cb8d3
VS
32861 grep -v '^ *+' conftest.er1 >conftest.err
32862 rm -f conftest.er1
32863 cat conftest.err >&5
a848cd7e
SC
32864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865 (exit $ac_status); } &&
3565d135
RR
32866 { ac_try='test -z "$ac_c_werror_flag"
32867 || test ! -s conftest.err'
ac1cb8d3
VS
32868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32869 (eval $ac_try) 2>&5
32870 ac_status=$?
32871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872 (exit $ac_status); }; } &&
32873 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32875 (eval $ac_try) 2>&5
32876 ac_status=$?
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); }; }; then
32879 eval "$as_ac_var=yes"
32880else
32881 echo "$as_me: failed program was:" >&5
32882sed 's/^/| /' conftest.$ac_ext >&5
32883
32884eval "$as_ac_var=no"
32885fi
ac1cb8d3
VS
32886rm -f conftest.err conftest.$ac_objext \
32887 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32888fi
32889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32890echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32891if test `eval echo '${'$as_ac_var'}'` = yes; then
32892 cat >>confdefs.h <<_ACEOF
32893#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32894_ACEOF
32895 WCSLEN_FOUND=1
32896fi
32897done
32898
32899
32900 if test "$WCSLEN_FOUND" = 0; then
32901 if test "$TOOLKIT" = "MSW"; then
32902 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32903echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32904if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32905 echo $ECHO_N "(cached) $ECHO_C" >&6
32906else
32907 ac_check_lib_save_LIBS=$LIBS
32908LIBS="-lmsvcrt $LIBS"
32909cat >conftest.$ac_ext <<_ACEOF
32910/* confdefs.h. */
32911_ACEOF
32912cat confdefs.h >>conftest.$ac_ext
32913cat >>conftest.$ac_ext <<_ACEOF
32914/* end confdefs.h. */
32915
32916/* Override any gcc2 internal prototype to avoid an error. */
32917#ifdef __cplusplus
32918extern "C"
32919#endif
32920/* We use char because int might match the return type of a gcc2
32921 builtin and then its argument prototype would still apply. */
32922char wcslen ();
32923int
32924main ()
32925{
32926wcslen ();
32927 ;
32928 return 0;
32929}
32930_ACEOF
32931rm -f conftest.$ac_objext conftest$ac_exeext
32932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32933 (eval $ac_link) 2>conftest.er1
a848cd7e 32934 ac_status=$?
ac1cb8d3
VS
32935 grep -v '^ *+' conftest.er1 >conftest.err
32936 rm -f conftest.er1
32937 cat conftest.err >&5
a848cd7e
SC
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); } &&
3565d135
RR
32940 { ac_try='test -z "$ac_c_werror_flag"
32941 || test ! -s conftest.err'
ac1cb8d3
VS
32942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32943 (eval $ac_try) 2>&5
32944 ac_status=$?
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); }; } &&
32947 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32949 (eval $ac_try) 2>&5
32950 ac_status=$?
32951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32952 (exit $ac_status); }; }; then
32953 ac_cv_lib_msvcrt_wcslen=yes
32954else
32955 echo "$as_me: failed program was:" >&5
32956sed 's/^/| /' conftest.$ac_ext >&5
32957
32958ac_cv_lib_msvcrt_wcslen=no
32959fi
ac1cb8d3
VS
32960rm -f conftest.err conftest.$ac_objext \
32961 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32962LIBS=$ac_check_lib_save_LIBS
32963fi
32964echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32965echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32966if test $ac_cv_lib_msvcrt_wcslen = yes; then
32967 WCHAR_OK=1
32968fi
32969
32970 else
32971 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32972echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32973if test "${ac_cv_lib_w_wcslen+set}" = set; then
32974 echo $ECHO_N "(cached) $ECHO_C" >&6
32975else
32976 ac_check_lib_save_LIBS=$LIBS
32977LIBS="-lw $LIBS"
32978cat >conftest.$ac_ext <<_ACEOF
32979/* confdefs.h. */
32980_ACEOF
32981cat confdefs.h >>conftest.$ac_ext
32982cat >>conftest.$ac_ext <<_ACEOF
32983/* end confdefs.h. */
32984
32985/* Override any gcc2 internal prototype to avoid an error. */
32986#ifdef __cplusplus
32987extern "C"
32988#endif
32989/* We use char because int might match the return type of a gcc2
32990 builtin and then its argument prototype would still apply. */
32991char wcslen ();
32992int
32993main ()
32994{
32995wcslen ();
32996 ;
32997 return 0;
32998}
32999_ACEOF
33000rm -f conftest.$ac_objext conftest$ac_exeext
33001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33002 (eval $ac_link) 2>conftest.er1
a848cd7e 33003 ac_status=$?
ac1cb8d3
VS
33004 grep -v '^ *+' conftest.er1 >conftest.err
33005 rm -f conftest.er1
33006 cat conftest.err >&5
a848cd7e
SC
33007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33008 (exit $ac_status); } &&
3565d135
RR
33009 { ac_try='test -z "$ac_c_werror_flag"
33010 || test ! -s conftest.err'
ac1cb8d3
VS
33011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33012 (eval $ac_try) 2>&5
33013 ac_status=$?
33014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33015 (exit $ac_status); }; } &&
33016 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33018 (eval $ac_try) 2>&5
33019 ac_status=$?
33020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33021 (exit $ac_status); }; }; then
33022 ac_cv_lib_w_wcslen=yes
33023else
33024 echo "$as_me: failed program was:" >&5
33025sed 's/^/| /' conftest.$ac_ext >&5
33026
33027ac_cv_lib_w_wcslen=no
33028fi
ac1cb8d3
VS
33029rm -f conftest.err conftest.$ac_objext \
33030 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33031LIBS=$ac_check_lib_save_LIBS
33032fi
33033echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33034echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33035if test $ac_cv_lib_w_wcslen = yes; then
33036
33037 WCHAR_LINK=" -lw"
33038 WCSLEN_FOUND=1
33039
33040fi
33041
33042 fi
33043 fi
33044
33045 if test "$WCSLEN_FOUND" = 1; then
33046 cat >>confdefs.h <<\_ACEOF
33047#define HAVE_WCSLEN 1
33048_ACEOF
33049
33050 fi
33051
efdf6afe 33052 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33053 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33054 fi
33055
efdf6afe
VZ
33056 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33057echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33058if test "${ac_cv_type_mbstate_t+set}" = set; then
33059 echo $ECHO_N "(cached) $ECHO_C" >&6
33060else
33061 cat >conftest.$ac_ext <<_ACEOF
33062/* confdefs.h. */
33063_ACEOF
33064cat confdefs.h >>conftest.$ac_ext
33065cat >>conftest.$ac_ext <<_ACEOF
33066/* end confdefs.h. */
33067#include <wchar.h>
33068
33069int
33070main ()
33071{
33072if ((mbstate_t *) 0)
33073 return 0;
33074if (sizeof (mbstate_t))
33075 return 0;
33076 ;
33077 return 0;
33078}
33079_ACEOF
33080rm -f conftest.$ac_objext
33081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33082 (eval $ac_compile) 2>conftest.er1
33083 ac_status=$?
33084 grep -v '^ *+' conftest.er1 >conftest.err
33085 rm -f conftest.er1
33086 cat conftest.err >&5
33087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088 (exit $ac_status); } &&
3565d135
RR
33089 { ac_try='test -z "$ac_c_werror_flag"
33090 || test ! -s conftest.err'
efdf6afe
VZ
33091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33092 (eval $ac_try) 2>&5
33093 ac_status=$?
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); }; } &&
33096 { ac_try='test -s conftest.$ac_objext'
33097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33098 (eval $ac_try) 2>&5
33099 ac_status=$?
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); }; }; then
33102 ac_cv_type_mbstate_t=yes
33103else
33104 echo "$as_me: failed program was:" >&5
33105sed 's/^/| /' conftest.$ac_ext >&5
33106
33107ac_cv_type_mbstate_t=no
33108fi
33109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33110fi
33111echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33112echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33113if test $ac_cv_type_mbstate_t = yes; then
33114
33115cat >>confdefs.h <<_ACEOF
33116#define HAVE_MBSTATE_T 1
33117_ACEOF
33118
a848cd7e
SC
33119
33120for ac_func in wcsrtombs
33121do
33122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33123echo "$as_me:$LINENO: checking for $ac_func" >&5
33124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33125if eval "test \"\${$as_ac_var+set}\" = set"; then
33126 echo $ECHO_N "(cached) $ECHO_C" >&6
33127else
33128 cat >conftest.$ac_ext <<_ACEOF
33129/* confdefs.h. */
33130_ACEOF
33131cat confdefs.h >>conftest.$ac_ext
33132cat >>conftest.$ac_ext <<_ACEOF
33133/* end confdefs.h. */
ac1cb8d3
VS
33134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33136#define $ac_func innocuous_$ac_func
33137
a848cd7e
SC
33138/* System header to define __stub macros and hopefully few prototypes,
33139 which can conflict with char $ac_func (); below.
33140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33141 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33142
a848cd7e
SC
33143#ifdef __STDC__
33144# include <limits.h>
33145#else
33146# include <assert.h>
33147#endif
ac1cb8d3
VS
33148
33149#undef $ac_func
33150
a848cd7e
SC
33151/* Override any gcc2 internal prototype to avoid an error. */
33152#ifdef __cplusplus
33153extern "C"
33154{
33155#endif
33156/* We use char because int might match the return type of a gcc2
33157 builtin and then its argument prototype would still apply. */
33158char $ac_func ();
33159/* The GNU C library defines this for functions which it implements
33160 to always fail with ENOSYS. Some functions are actually named
33161 something starting with __ and the normal name is an alias. */
33162#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33163choke me
33164#else
33165char (*f) () = $ac_func;
33166#endif
33167#ifdef __cplusplus
33168}
33169#endif
33170
33171int
33172main ()
33173{
33174return f != $ac_func;
33175 ;
33176 return 0;
33177}
33178_ACEOF
33179rm -f conftest.$ac_objext conftest$ac_exeext
33180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33181 (eval $ac_link) 2>conftest.er1
a848cd7e 33182 ac_status=$?
ac1cb8d3
VS
33183 grep -v '^ *+' conftest.er1 >conftest.err
33184 rm -f conftest.er1
33185 cat conftest.err >&5
a848cd7e
SC
33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 (exit $ac_status); } &&
3565d135
RR
33188 { ac_try='test -z "$ac_c_werror_flag"
33189 || test ! -s conftest.err'
ac1cb8d3
VS
33190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33191 (eval $ac_try) 2>&5
33192 ac_status=$?
33193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194 (exit $ac_status); }; } &&
33195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33197 (eval $ac_try) 2>&5
33198 ac_status=$?
33199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200 (exit $ac_status); }; }; then
33201 eval "$as_ac_var=yes"
33202else
33203 echo "$as_me: failed program was:" >&5
33204sed 's/^/| /' conftest.$ac_ext >&5
33205
33206eval "$as_ac_var=no"
33207fi
ac1cb8d3
VS
33208rm -f conftest.err conftest.$ac_objext \
33209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33210fi
33211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33212echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33213if test `eval echo '${'$as_ac_var'}'` = yes; then
33214 cat >>confdefs.h <<_ACEOF
33215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33216_ACEOF
33217
33218fi
33219done
33220
efdf6afe
VZ
33221fi
33222
a848cd7e
SC
33223else
33224 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33225echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33226fi
33227
33228
33229
33230ac_ext=cc
33231ac_cpp='$CXXCPP $CPPFLAGS'
33232ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33233ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33234ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33235
33236
33237
4a767dd5
VZ
33238
33239for ac_func in snprintf vsnprintf
a848cd7e
SC
33240do
33241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33242echo "$as_me:$LINENO: checking for $ac_func" >&5
33243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33244if eval "test \"\${$as_ac_var+set}\" = set"; then
33245 echo $ECHO_N "(cached) $ECHO_C" >&6
33246else
33247 cat >conftest.$ac_ext <<_ACEOF
33248/* confdefs.h. */
33249_ACEOF
33250cat confdefs.h >>conftest.$ac_ext
33251cat >>conftest.$ac_ext <<_ACEOF
33252/* end confdefs.h. */
ac1cb8d3
VS
33253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33255#define $ac_func innocuous_$ac_func
33256
a848cd7e
SC
33257/* System header to define __stub macros and hopefully few prototypes,
33258 which can conflict with char $ac_func (); below.
33259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33260 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33261
a848cd7e
SC
33262#ifdef __STDC__
33263# include <limits.h>
33264#else
33265# include <assert.h>
33266#endif
ac1cb8d3
VS
33267
33268#undef $ac_func
33269
a848cd7e
SC
33270/* Override any gcc2 internal prototype to avoid an error. */
33271#ifdef __cplusplus
33272extern "C"
33273{
33274#endif
33275/* We use char because int might match the return type of a gcc2
33276 builtin and then its argument prototype would still apply. */
33277char $ac_func ();
33278/* The GNU C library defines this for functions which it implements
33279 to always fail with ENOSYS. Some functions are actually named
33280 something starting with __ and the normal name is an alias. */
33281#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33282choke me
33283#else
33284char (*f) () = $ac_func;
33285#endif
33286#ifdef __cplusplus
33287}
33288#endif
33289
33290int
33291main ()
33292{
33293return f != $ac_func;
33294 ;
33295 return 0;
33296}
33297_ACEOF
33298rm -f conftest.$ac_objext conftest$ac_exeext
33299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33300 (eval $ac_link) 2>conftest.er1
a848cd7e 33301 ac_status=$?
ac1cb8d3
VS
33302 grep -v '^ *+' conftest.er1 >conftest.err
33303 rm -f conftest.er1
33304 cat conftest.err >&5
a848cd7e
SC
33305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306 (exit $ac_status); } &&
3565d135
RR
33307 { ac_try='test -z "$ac_cxx_werror_flag"
33308 || test ! -s conftest.err'
ac1cb8d3
VS
33309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33310 (eval $ac_try) 2>&5
33311 ac_status=$?
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); }; } &&
33314 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33316 (eval $ac_try) 2>&5
33317 ac_status=$?
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); }; }; then
33320 eval "$as_ac_var=yes"
33321else
33322 echo "$as_me: failed program was:" >&5
33323sed 's/^/| /' conftest.$ac_ext >&5
33324
33325eval "$as_ac_var=no"
33326fi
ac1cb8d3
VS
33327rm -f conftest.err conftest.$ac_objext \
33328 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33329fi
33330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33331echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33332if test `eval echo '${'$as_ac_var'}'` = yes; then
33333 cat >>confdefs.h <<_ACEOF
33334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33335_ACEOF
33336
33337fi
33338done
33339
33340
33341if test "$ac_cv_func_vsnprintf" = "yes"; then
33342 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33343echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33344if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33345 echo $ECHO_N "(cached) $ECHO_C" >&6
33346else
33347
efdf6afe 33348 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33349/* confdefs.h. */
33350_ACEOF
33351cat confdefs.h >>conftest.$ac_ext
33352cat >>conftest.$ac_ext <<_ACEOF
33353/* end confdefs.h. */
33354
33355 #include <stdio.h>
33356 #include <stdarg.h>
efdf6afe
VZ
33357 #ifdef __MSL__
33358 #if __MSL__ >= 0x6000
33359 namespace std {}
33360 using namespace std;
33361 #endif
33362 #endif
a848cd7e
SC
33363
33364int
33365main ()
33366{
33367
33368 char *buf;
33369 va_list ap;
62fa8b3a 33370 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33371
33372 ;
33373 return 0;
33374}
33375_ACEOF
33376rm -f conftest.$ac_objext
33377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33378 (eval $ac_compile) 2>conftest.er1
33379 ac_status=$?
33380 grep -v '^ *+' conftest.er1 >conftest.err
33381 rm -f conftest.er1
33382 cat conftest.err >&5
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); } &&
3565d135
RR
33385 { ac_try='test -z "$ac_cxx_werror_flag"
33386 || test ! -s conftest.err'
c122b164
DE
33387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33388 (eval $ac_try) 2>&5
33389 ac_status=$?
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391 (exit $ac_status); }; } &&
33392 { ac_try='test -s conftest.$ac_objext'
33393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33394 (eval $ac_try) 2>&5
33395 ac_status=$?
33396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33397 (exit $ac_status); }; }; then
33398 wx_cv_func_vsnprintf_decl=yes
33399else
33400 echo "$as_me: failed program was:" >&5
33401sed 's/^/| /' conftest.$ac_ext >&5
33402
a848cd7e
SC
33403wx_cv_func_vsnprintf_decl=no
33404
33405fi
ac1cb8d3 33406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33407
33408
33409fi
33410echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33411echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33412
33413 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33414 cat >>confdefs.h <<\_ACEOF
33415#define HAVE_VSNPRINTF_DECL 1
33416_ACEOF
33417
62fa8b3a
MW
33418
33419 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33420echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33421if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33422 echo $ECHO_N "(cached) $ECHO_C" >&6
33423else
33424
33425 cat >conftest.$ac_ext <<_ACEOF
33426/* confdefs.h. */
33427_ACEOF
33428cat confdefs.h >>conftest.$ac_ext
33429cat >>conftest.$ac_ext <<_ACEOF
33430/* end confdefs.h. */
33431
33432 #include <stdio.h>
33433 #include <stdarg.h>
33434 #ifdef __MSL__
33435 #if __MSL__ >= 0x6000
33436 namespace std {}
33437 using namespace std;
33438 #endif
33439 #endif
33440
33441int
33442main ()
33443{
33444
33445 char *buf;
33446 va_list ap;
33447 const char *fmt = "%s";
33448 vsnprintf(buf, 10u, fmt, ap);
33449
33450 ;
33451 return 0;
33452}
33453_ACEOF
33454rm -f conftest.$ac_objext
33455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33456 (eval $ac_compile) 2>conftest.er1
33457 ac_status=$?
33458 grep -v '^ *+' conftest.er1 >conftest.err
33459 rm -f conftest.er1
33460 cat conftest.err >&5
33461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33462 (exit $ac_status); } &&
3565d135
RR
33463 { ac_try='test -z "$ac_cxx_werror_flag"
33464 || test ! -s conftest.err'
62fa8b3a
MW
33465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33466 (eval $ac_try) 2>&5
33467 ac_status=$?
33468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469 (exit $ac_status); }; } &&
33470 { ac_try='test -s conftest.$ac_objext'
33471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33472 (eval $ac_try) 2>&5
33473 ac_status=$?
33474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475 (exit $ac_status); }; }; then
33476 wx_cv_func_broken_vsnprintf_decl=no
33477else
33478 echo "$as_me: failed program was:" >&5
33479sed 's/^/| /' conftest.$ac_ext >&5
33480
33481wx_cv_func_broken_vsnprintf_decl=yes
33482
33483fi
33484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33485
33486
33487fi
33488echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33489echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33490
33491 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33492 cat >>confdefs.h <<\_ACEOF
33493#define HAVE_BROKEN_VSNPRINTF_DECL 1
33494_ACEOF
33495
33496 fi
a848cd7e
SC
33497 fi
33498fi
33499
4a767dd5
VZ
33500if test "$ac_cv_func_snprintf" = "yes"; then
33501 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33502echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33503if test "${wx_cv_func_snprintf_decl+set}" = set; then
33504 echo $ECHO_N "(cached) $ECHO_C" >&6
33505else
33506
33507 cat >conftest.$ac_ext <<_ACEOF
33508/* confdefs.h. */
33509_ACEOF
33510cat confdefs.h >>conftest.$ac_ext
33511cat >>conftest.$ac_ext <<_ACEOF
33512/* end confdefs.h. */
33513
33514 #include <stdio.h>
33515 #include <stdarg.h>
33516 #ifdef __MSL__
33517 #if __MSL__ >= 0x6000
33518 namespace std {}
33519 using namespace std;
33520 #endif
33521 #endif
33522
33523int
33524main ()
33525{
33526
33527 char *buf;
62fa8b3a 33528 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33529
33530 ;
33531 return 0;
33532}
33533_ACEOF
33534rm -f conftest.$ac_objext
33535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33536 (eval $ac_compile) 2>conftest.er1
33537 ac_status=$?
33538 grep -v '^ *+' conftest.er1 >conftest.err
33539 rm -f conftest.er1
33540 cat conftest.err >&5
33541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542 (exit $ac_status); } &&
3565d135
RR
33543 { ac_try='test -z "$ac_cxx_werror_flag"
33544 || test ! -s conftest.err'
4a767dd5
VZ
33545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33546 (eval $ac_try) 2>&5
33547 ac_status=$?
33548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33549 (exit $ac_status); }; } &&
33550 { ac_try='test -s conftest.$ac_objext'
33551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33552 (eval $ac_try) 2>&5
33553 ac_status=$?
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); }; }; then
33556 wx_cv_func_snprintf_decl=yes
33557else
33558 echo "$as_me: failed program was:" >&5
33559sed 's/^/| /' conftest.$ac_ext >&5
33560
33561wx_cv_func_snprintf_decl=no
33562
33563fi
33564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33565
33566
33567fi
33568echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33569echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33570
33571 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33572 cat >>confdefs.h <<\_ACEOF
33573#define HAVE_SNPRINTF_DECL 1
33574_ACEOF
33575
62fa8b3a
MW
33576
33577 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33578echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33579if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33580 echo $ECHO_N "(cached) $ECHO_C" >&6
33581else
33582
33583 cat >conftest.$ac_ext <<_ACEOF
33584/* confdefs.h. */
33585_ACEOF
33586cat confdefs.h >>conftest.$ac_ext
33587cat >>conftest.$ac_ext <<_ACEOF
33588/* end confdefs.h. */
33589
33590 #include <stdio.h>
33591 #include <stdarg.h>
33592 #ifdef __MSL__
33593 #if __MSL__ >= 0x6000
33594 namespace std {}
33595 using namespace std;
33596 #endif
33597 #endif
33598
33599int
33600main ()
33601{
33602
33603 char *buf;
33604 const char *fmt = "%s";
33605 snprintf(buf, 10u, fmt, "wx");
33606
33607 ;
33608 return 0;
33609}
33610_ACEOF
33611rm -f conftest.$ac_objext
33612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33613 (eval $ac_compile) 2>conftest.er1
33614 ac_status=$?
33615 grep -v '^ *+' conftest.er1 >conftest.err
33616 rm -f conftest.er1
33617 cat conftest.err >&5
33618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33619 (exit $ac_status); } &&
3565d135
RR
33620 { ac_try='test -z "$ac_cxx_werror_flag"
33621 || test ! -s conftest.err'
62fa8b3a
MW
33622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33623 (eval $ac_try) 2>&5
33624 ac_status=$?
33625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33626 (exit $ac_status); }; } &&
33627 { ac_try='test -s conftest.$ac_objext'
33628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33629 (eval $ac_try) 2>&5
33630 ac_status=$?
33631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33632 (exit $ac_status); }; }; then
33633 wx_cv_func_broken_snprintf_decl=no
33634else
33635 echo "$as_me: failed program was:" >&5
33636sed 's/^/| /' conftest.$ac_ext >&5
33637
33638wx_cv_func_broken_snprintf_decl=yes
33639
33640fi
33641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33642
33643
33644fi
33645echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33646echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33647
33648 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33649 cat >>confdefs.h <<\_ACEOF
33650#define HAVE_BROKEN_SNPRINTF_DECL 1
33651_ACEOF
33652
33653 fi
4a767dd5
VZ
33654 fi
33655fi
33656
a848cd7e
SC
33657if test "$wxUSE_UNICODE" = yes; then
33658
33659
33660
fbe47c7b
VS
33661
33662
33663
33664for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33665do
33666as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33667echo "$as_me:$LINENO: checking for $ac_func" >&5
33668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33669if eval "test \"\${$as_ac_var+set}\" = set"; then
33670 echo $ECHO_N "(cached) $ECHO_C" >&6
33671else
33672 cat >conftest.$ac_ext <<_ACEOF
33673/* confdefs.h. */
33674_ACEOF
33675cat confdefs.h >>conftest.$ac_ext
33676cat >>conftest.$ac_ext <<_ACEOF
33677/* end confdefs.h. */
ac1cb8d3
VS
33678/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33680#define $ac_func innocuous_$ac_func
33681
a848cd7e
SC
33682/* System header to define __stub macros and hopefully few prototypes,
33683 which can conflict with char $ac_func (); below.
33684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33685 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33686
a848cd7e
SC
33687#ifdef __STDC__
33688# include <limits.h>
33689#else
33690# include <assert.h>
33691#endif
ac1cb8d3
VS
33692
33693#undef $ac_func
33694
a848cd7e
SC
33695/* Override any gcc2 internal prototype to avoid an error. */
33696#ifdef __cplusplus
33697extern "C"
33698{
33699#endif
33700/* We use char because int might match the return type of a gcc2
33701 builtin and then its argument prototype would still apply. */
33702char $ac_func ();
33703/* The GNU C library defines this for functions which it implements
33704 to always fail with ENOSYS. Some functions are actually named
33705 something starting with __ and the normal name is an alias. */
33706#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33707choke me
33708#else
33709char (*f) () = $ac_func;
33710#endif
33711#ifdef __cplusplus
33712}
33713#endif
33714
33715int
33716main ()
33717{
33718return f != $ac_func;
33719 ;
33720 return 0;
33721}
33722_ACEOF
33723rm -f conftest.$ac_objext conftest$ac_exeext
33724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33725 (eval $ac_link) 2>conftest.er1
a848cd7e 33726 ac_status=$?
ac1cb8d3
VS
33727 grep -v '^ *+' conftest.er1 >conftest.err
33728 rm -f conftest.er1
33729 cat conftest.err >&5
a848cd7e
SC
33730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); } &&
3565d135
RR
33732 { ac_try='test -z "$ac_cxx_werror_flag"
33733 || test ! -s conftest.err'
ac1cb8d3
VS
33734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33735 (eval $ac_try) 2>&5
33736 ac_status=$?
33737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738 (exit $ac_status); }; } &&
33739 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33741 (eval $ac_try) 2>&5
33742 ac_status=$?
33743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744 (exit $ac_status); }; }; then
33745 eval "$as_ac_var=yes"
33746else
33747 echo "$as_me: failed program was:" >&5
33748sed 's/^/| /' conftest.$ac_ext >&5
33749
33750eval "$as_ac_var=no"
33751fi
ac1cb8d3
VS
33752rm -f conftest.err conftest.$ac_objext \
33753 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33754fi
33755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33756echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33757if test `eval echo '${'$as_ac_var'}'` = yes; then
33758 cat >>confdefs.h <<_ACEOF
33759#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33760_ACEOF
33761
33762fi
33763done
33764
33765
33766 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33767echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33768 cat >conftest.$ac_ext <<_ACEOF
33769/* confdefs.h. */
33770_ACEOF
33771cat confdefs.h >>conftest.$ac_ext
33772cat >>conftest.$ac_ext <<_ACEOF
33773/* end confdefs.h. */
33774#include <wchar.h>
33775int
33776main ()
33777{
33778&_vsnwprintf;
33779 ;
33780 return 0;
33781}
33782_ACEOF
33783rm -f conftest.$ac_objext
33784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33785 (eval $ac_compile) 2>conftest.er1
a848cd7e 33786 ac_status=$?
ac1cb8d3
VS
33787 grep -v '^ *+' conftest.er1 >conftest.err
33788 rm -f conftest.er1
33789 cat conftest.err >&5
a848cd7e
SC
33790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791 (exit $ac_status); } &&
3565d135
RR
33792 { ac_try='test -z "$ac_cxx_werror_flag"
33793 || test ! -s conftest.err'
ac1cb8d3
VS
33794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33795 (eval $ac_try) 2>&5
33796 ac_status=$?
33797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); }; } &&
33799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33801 (eval $ac_try) 2>&5
33802 ac_status=$?
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); }; }; then
33805 echo "$as_me:$LINENO: result: yes" >&5
33806echo "${ECHO_T}yes" >&6
33807 cat >>confdefs.h <<\_ACEOF
33808#define HAVE__VSNWPRINTF 1
33809_ACEOF
33810
33811else
33812 echo "$as_me: failed program was:" >&5
33813sed 's/^/| /' conftest.$ac_ext >&5
33814
33815echo "$as_me:$LINENO: result: no" >&5
33816echo "${ECHO_T}no" >&6
33817fi
ac1cb8d3 33818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33819fi
33820
33821ac_ext=c
33822ac_cpp='$CPP $CPPFLAGS'
33823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33825ac_compiler_gnu=$ac_cv_c_compiler_gnu
33826
33827
6ebeb4c7
VZ
33828if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33829
33830for ac_func in fnmatch
33831do
33832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33833echo "$as_me:$LINENO: checking for $ac_func" >&5
33834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33835if eval "test \"\${$as_ac_var+set}\" = set"; then
33836 echo $ECHO_N "(cached) $ECHO_C" >&6
33837else
33838 cat >conftest.$ac_ext <<_ACEOF
33839/* confdefs.h. */
33840_ACEOF
33841cat confdefs.h >>conftest.$ac_ext
33842cat >>conftest.$ac_ext <<_ACEOF
33843/* end confdefs.h. */
33844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33846#define $ac_func innocuous_$ac_func
33847
33848/* System header to define __stub macros and hopefully few prototypes,
33849 which can conflict with char $ac_func (); below.
33850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33851 <limits.h> exists even on freestanding compilers. */
33852
33853#ifdef __STDC__
33854# include <limits.h>
33855#else
33856# include <assert.h>
33857#endif
33858
33859#undef $ac_func
33860
33861/* Override any gcc2 internal prototype to avoid an error. */
33862#ifdef __cplusplus
33863extern "C"
33864{
33865#endif
33866/* We use char because int might match the return type of a gcc2
33867 builtin and then its argument prototype would still apply. */
33868char $ac_func ();
33869/* The GNU C library defines this for functions which it implements
33870 to always fail with ENOSYS. Some functions are actually named
33871 something starting with __ and the normal name is an alias. */
33872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33873choke me
33874#else
33875char (*f) () = $ac_func;
33876#endif
33877#ifdef __cplusplus
33878}
33879#endif
33880
33881int
33882main ()
33883{
33884return f != $ac_func;
33885 ;
33886 return 0;
33887}
33888_ACEOF
33889rm -f conftest.$ac_objext conftest$ac_exeext
33890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33891 (eval $ac_link) 2>conftest.er1
33892 ac_status=$?
33893 grep -v '^ *+' conftest.er1 >conftest.err
33894 rm -f conftest.er1
33895 cat conftest.err >&5
33896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897 (exit $ac_status); } &&
3565d135
RR
33898 { ac_try='test -z "$ac_c_werror_flag"
33899 || test ! -s conftest.err'
6ebeb4c7
VZ
33900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33901 (eval $ac_try) 2>&5
33902 ac_status=$?
33903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33904 (exit $ac_status); }; } &&
33905 { ac_try='test -s conftest$ac_exeext'
33906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33907 (eval $ac_try) 2>&5
33908 ac_status=$?
33909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33910 (exit $ac_status); }; }; then
33911 eval "$as_ac_var=yes"
33912else
33913 echo "$as_me: failed program was:" >&5
33914sed 's/^/| /' conftest.$ac_ext >&5
33915
33916eval "$as_ac_var=no"
33917fi
33918rm -f conftest.err conftest.$ac_objext \
33919 conftest$ac_exeext conftest.$ac_ext
33920fi
33921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33922echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33923if test `eval echo '${'$as_ac_var'}'` = yes; then
33924 cat >>confdefs.h <<_ACEOF
33925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33926_ACEOF
33927
33928fi
33929done
33930
33931fi
33932
33933if test "$wxUSE_FILE" = "yes"; then
33934
33935for ac_func in fsync
33936do
33937as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33938echo "$as_me:$LINENO: checking for $ac_func" >&5
33939echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33940if eval "test \"\${$as_ac_var+set}\" = set"; then
33941 echo $ECHO_N "(cached) $ECHO_C" >&6
33942else
33943 cat >conftest.$ac_ext <<_ACEOF
33944/* confdefs.h. */
33945_ACEOF
33946cat confdefs.h >>conftest.$ac_ext
33947cat >>conftest.$ac_ext <<_ACEOF
33948/* end confdefs.h. */
33949/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33951#define $ac_func innocuous_$ac_func
33952
33953/* System header to define __stub macros and hopefully few prototypes,
33954 which can conflict with char $ac_func (); below.
33955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33956 <limits.h> exists even on freestanding compilers. */
33957
33958#ifdef __STDC__
33959# include <limits.h>
33960#else
33961# include <assert.h>
33962#endif
33963
33964#undef $ac_func
33965
33966/* Override any gcc2 internal prototype to avoid an error. */
33967#ifdef __cplusplus
33968extern "C"
33969{
33970#endif
33971/* We use char because int might match the return type of a gcc2
33972 builtin and then its argument prototype would still apply. */
33973char $ac_func ();
33974/* The GNU C library defines this for functions which it implements
33975 to always fail with ENOSYS. Some functions are actually named
33976 something starting with __ and the normal name is an alias. */
33977#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33978choke me
33979#else
33980char (*f) () = $ac_func;
33981#endif
33982#ifdef __cplusplus
33983}
33984#endif
33985
33986int
33987main ()
33988{
33989return f != $ac_func;
33990 ;
33991 return 0;
33992}
33993_ACEOF
33994rm -f conftest.$ac_objext conftest$ac_exeext
33995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33996 (eval $ac_link) 2>conftest.er1
33997 ac_status=$?
33998 grep -v '^ *+' conftest.er1 >conftest.err
33999 rm -f conftest.er1
34000 cat conftest.err >&5
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); } &&
3565d135
RR
34003 { ac_try='test -z "$ac_c_werror_flag"
34004 || test ! -s conftest.err'
6ebeb4c7
VZ
34005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34006 (eval $ac_try) 2>&5
34007 ac_status=$?
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009 (exit $ac_status); }; } &&
34010 { ac_try='test -s conftest$ac_exeext'
34011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34012 (eval $ac_try) 2>&5
34013 ac_status=$?
34014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015 (exit $ac_status); }; }; then
34016 eval "$as_ac_var=yes"
34017else
34018 echo "$as_me: failed program was:" >&5
34019sed 's/^/| /' conftest.$ac_ext >&5
34020
34021eval "$as_ac_var=no"
34022fi
34023rm -f conftest.err conftest.$ac_objext \
34024 conftest$ac_exeext conftest.$ac_ext
34025fi
34026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34027echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34028if test `eval echo '${'$as_ac_var'}'` = yes; then
34029 cat >>confdefs.h <<_ACEOF
34030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34031_ACEOF
34032
34033fi
34034done
34035
34036fi
a848cd7e
SC
34037
34038
34039if test "$TOOLKIT" != "MSW"; then
34040
34041
34042
34043
34044ac_ext=cc
34045ac_cpp='$CXXCPP $CPPFLAGS'
34046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34049
34050
34051
34052
34053# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34054if test "${with_libiconv_prefix+set}" = set; then
34055 withval="$with_libiconv_prefix"
34056
34057 for dir in `echo "$withval" | tr : ' '`; do
34058 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34059 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34060 done
34061
34062fi;
34063
34064 echo "$as_me:$LINENO: checking for iconv" >&5
34065echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34066if test "${am_cv_func_iconv+set}" = set; then
34067 echo $ECHO_N "(cached) $ECHO_C" >&6
34068else
34069
34070 am_cv_func_iconv="no, consider installing GNU libiconv"
34071 am_cv_lib_iconv=no
34072 cat >conftest.$ac_ext <<_ACEOF
34073/* confdefs.h. */
34074_ACEOF
34075cat confdefs.h >>conftest.$ac_ext
34076cat >>conftest.$ac_ext <<_ACEOF
34077/* end confdefs.h. */
34078#include <stdlib.h>
34079#include <iconv.h>
34080int
34081main ()
34082{
34083iconv_t cd = iconv_open("","");
34084 iconv(cd,NULL,NULL,NULL,NULL);
34085 iconv_close(cd);
34086 ;
34087 return 0;
34088}
34089_ACEOF
34090rm -f conftest.$ac_objext conftest$ac_exeext
34091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34092 (eval $ac_link) 2>conftest.er1
a848cd7e 34093 ac_status=$?
ac1cb8d3
VS
34094 grep -v '^ *+' conftest.er1 >conftest.err
34095 rm -f conftest.er1
34096 cat conftest.err >&5
a848cd7e
SC
34097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34098 (exit $ac_status); } &&
3565d135
RR
34099 { ac_try='test -z "$ac_cxx_werror_flag"
34100 || test ! -s conftest.err'
ac1cb8d3
VS
34101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34102 (eval $ac_try) 2>&5
34103 ac_status=$?
34104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105 (exit $ac_status); }; } &&
34106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34108 (eval $ac_try) 2>&5
34109 ac_status=$?
34110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111 (exit $ac_status); }; }; then
34112 am_cv_func_iconv=yes
34113else
34114 echo "$as_me: failed program was:" >&5
34115sed 's/^/| /' conftest.$ac_ext >&5
34116
34117fi
ac1cb8d3
VS
34118rm -f conftest.err conftest.$ac_objext \
34119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34120 if test "$am_cv_func_iconv" != yes; then
34121 am_save_LIBS="$LIBS"
34122 LIBS="$LIBS -liconv"
34123 cat >conftest.$ac_ext <<_ACEOF
34124/* confdefs.h. */
34125_ACEOF
34126cat confdefs.h >>conftest.$ac_ext
34127cat >>conftest.$ac_ext <<_ACEOF
34128/* end confdefs.h. */
34129#include <stdlib.h>
34130#include <iconv.h>
34131int
34132main ()
34133{
34134iconv_t cd = iconv_open("","");
34135 iconv(cd,NULL,NULL,NULL,NULL);
34136 iconv_close(cd);
34137 ;
34138 return 0;
34139}
34140_ACEOF
34141rm -f conftest.$ac_objext conftest$ac_exeext
34142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34143 (eval $ac_link) 2>conftest.er1
a848cd7e 34144 ac_status=$?
ac1cb8d3
VS
34145 grep -v '^ *+' conftest.er1 >conftest.err
34146 rm -f conftest.er1
34147 cat conftest.err >&5
a848cd7e
SC
34148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34149 (exit $ac_status); } &&
3565d135
RR
34150 { ac_try='test -z "$ac_cxx_werror_flag"
34151 || test ! -s conftest.err'
ac1cb8d3
VS
34152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34153 (eval $ac_try) 2>&5
34154 ac_status=$?
34155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156 (exit $ac_status); }; } &&
34157 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34159 (eval $ac_try) 2>&5
34160 ac_status=$?
34161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34162 (exit $ac_status); }; }; then
34163 am_cv_lib_iconv=yes
34164 am_cv_func_iconv=yes
34165else
34166 echo "$as_me: failed program was:" >&5
34167sed 's/^/| /' conftest.$ac_ext >&5
34168
34169fi
ac1cb8d3
VS
34170rm -f conftest.err conftest.$ac_objext \
34171 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34172 LIBS="$am_save_LIBS"
34173 fi
34174
34175fi
34176echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34177echo "${ECHO_T}$am_cv_func_iconv" >&6
34178 if test "$am_cv_func_iconv" = yes; then
34179
34180cat >>confdefs.h <<\_ACEOF
34181#define HAVE_ICONV 1
34182_ACEOF
34183
34184 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34185echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34186if test "${wx_cv_func_iconv_const+set}" = set; then
34187 echo $ECHO_N "(cached) $ECHO_C" >&6
34188else
34189 cat >conftest.$ac_ext <<_ACEOF
34190/* confdefs.h. */
34191_ACEOF
34192cat confdefs.h >>conftest.$ac_ext
34193cat >>conftest.$ac_ext <<_ACEOF
34194/* end confdefs.h. */
34195
34196#include <stdlib.h>
34197#include <iconv.h>
34198extern
34199#ifdef __cplusplus
34200"C"
34201#endif
34202#if defined(__STDC__) || defined(__cplusplus)
34203size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34204#else
34205size_t iconv();
34206#endif
34207
34208int
34209main ()
34210{
34211
34212 ;
34213 return 0;
34214}
34215_ACEOF
34216rm -f conftest.$ac_objext
34217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34218 (eval $ac_compile) 2>conftest.er1
a848cd7e 34219 ac_status=$?
ac1cb8d3
VS
34220 grep -v '^ *+' conftest.er1 >conftest.err
34221 rm -f conftest.er1
34222 cat conftest.err >&5
a848cd7e
SC
34223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34224 (exit $ac_status); } &&
3565d135
RR
34225 { ac_try='test -z "$ac_cxx_werror_flag"
34226 || test ! -s conftest.err'
ac1cb8d3
VS
34227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34228 (eval $ac_try) 2>&5
34229 ac_status=$?
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); }; } &&
34232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34234 (eval $ac_try) 2>&5
34235 ac_status=$?
34236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34237 (exit $ac_status); }; }; then
34238 wx_cv_func_iconv_const="no"
34239else
34240 echo "$as_me: failed program was:" >&5
34241sed 's/^/| /' conftest.$ac_ext >&5
34242
34243wx_cv_func_iconv_const="yes"
34244
34245fi
ac1cb8d3 34246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34247
34248fi
34249echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34250echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34251
34252 iconv_const=
34253 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34254 iconv_const="const"
34255 fi
34256
34257
34258cat >>confdefs.h <<_ACEOF
34259#define ICONV_CONST $iconv_const
34260_ACEOF
34261
34262 fi
34263 LIBICONV=
34264 if test "$am_cv_lib_iconv" = yes; then
34265 LIBICONV="-liconv"
34266 fi
34267
34268
34269LIBS="$LIBICONV $LIBS"
34270ac_ext=c
34271ac_cpp='$CPP $CPPFLAGS'
34272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34274ac_compiler_gnu=$ac_cv_c_compiler_gnu
34275
34276
34277if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34278
34279for ac_func in sigaction
34280do
34281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34282echo "$as_me:$LINENO: checking for $ac_func" >&5
34283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34284if eval "test \"\${$as_ac_var+set}\" = set"; then
34285 echo $ECHO_N "(cached) $ECHO_C" >&6
34286else
34287 cat >conftest.$ac_ext <<_ACEOF
34288/* confdefs.h. */
34289_ACEOF
34290cat confdefs.h >>conftest.$ac_ext
34291cat >>conftest.$ac_ext <<_ACEOF
34292/* end confdefs.h. */
ac1cb8d3
VS
34293/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34295#define $ac_func innocuous_$ac_func
34296
a848cd7e
SC
34297/* System header to define __stub macros and hopefully few prototypes,
34298 which can conflict with char $ac_func (); below.
34299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34300 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34301
a848cd7e
SC
34302#ifdef __STDC__
34303# include <limits.h>
34304#else
34305# include <assert.h>
34306#endif
ac1cb8d3
VS
34307
34308#undef $ac_func
34309
a848cd7e
SC
34310/* Override any gcc2 internal prototype to avoid an error. */
34311#ifdef __cplusplus
34312extern "C"
34313{
34314#endif
34315/* We use char because int might match the return type of a gcc2
34316 builtin and then its argument prototype would still apply. */
34317char $ac_func ();
34318/* The GNU C library defines this for functions which it implements
34319 to always fail with ENOSYS. Some functions are actually named
34320 something starting with __ and the normal name is an alias. */
34321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34322choke me
34323#else
34324char (*f) () = $ac_func;
34325#endif
34326#ifdef __cplusplus
34327}
34328#endif
34329
34330int
34331main ()
34332{
34333return f != $ac_func;
34334 ;
34335 return 0;
34336}
34337_ACEOF
34338rm -f conftest.$ac_objext conftest$ac_exeext
34339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34340 (eval $ac_link) 2>conftest.er1
a848cd7e 34341 ac_status=$?
ac1cb8d3
VS
34342 grep -v '^ *+' conftest.er1 >conftest.err
34343 rm -f conftest.er1
34344 cat conftest.err >&5
a848cd7e
SC
34345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346 (exit $ac_status); } &&
3565d135
RR
34347 { ac_try='test -z "$ac_c_werror_flag"
34348 || test ! -s conftest.err'
ac1cb8d3
VS
34349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34350 (eval $ac_try) 2>&5
34351 ac_status=$?
34352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34353 (exit $ac_status); }; } &&
34354 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34356 (eval $ac_try) 2>&5
34357 ac_status=$?
34358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359 (exit $ac_status); }; }; then
34360 eval "$as_ac_var=yes"
34361else
34362 echo "$as_me: failed program was:" >&5
34363sed 's/^/| /' conftest.$ac_ext >&5
34364
34365eval "$as_ac_var=no"
34366fi
ac1cb8d3
VS
34367rm -f conftest.err conftest.$ac_objext \
34368 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34369fi
34370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34371echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34372if test `eval echo '${'$as_ac_var'}'` = yes; then
34373 cat >>confdefs.h <<_ACEOF
34374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34375_ACEOF
34376
34377fi
34378done
34379
34380
34381 if test "$ac_cv_func_sigaction" = "no"; then
34382 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34383echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34384 wxUSE_ON_FATAL_EXCEPTION=no
34385 fi
34386
34387 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34388
34389
34390 ac_ext=cc
34391ac_cpp='$CXXCPP $CPPFLAGS'
34392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34395
34396
34397 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34398echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34399if test "${wx_cv_type_sa_handler+set}" = set; then
34400 echo $ECHO_N "(cached) $ECHO_C" >&6
34401else
34402
34403 cat >conftest.$ac_ext <<_ACEOF
34404/* confdefs.h. */
34405_ACEOF
34406cat confdefs.h >>conftest.$ac_ext
34407cat >>conftest.$ac_ext <<_ACEOF
34408/* end confdefs.h. */
34409#include <signal.h>
34410int
34411main ()
34412{
34413
34414 extern void testSigHandler(int);
34415
34416 struct sigaction sa;
34417 sa.sa_handler = testSigHandler;
34418
34419 ;
34420 return 0;
34421}
34422_ACEOF
34423rm -f conftest.$ac_objext
34424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34425 (eval $ac_compile) 2>conftest.er1
a848cd7e 34426 ac_status=$?
ac1cb8d3
VS
34427 grep -v '^ *+' conftest.er1 >conftest.err
34428 rm -f conftest.er1
34429 cat conftest.err >&5
a848cd7e
SC
34430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431 (exit $ac_status); } &&
3565d135
RR
34432 { ac_try='test -z "$ac_cxx_werror_flag"
34433 || test ! -s conftest.err'
ac1cb8d3
VS
34434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34435 (eval $ac_try) 2>&5
34436 ac_status=$?
34437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438 (exit $ac_status); }; } &&
34439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34441 (eval $ac_try) 2>&5
34442 ac_status=$?
34443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); }; }; then
34445
34446 wx_cv_type_sa_handler=int
34447
34448else
34449 echo "$as_me: failed program was:" >&5
34450sed 's/^/| /' conftest.$ac_ext >&5
34451
34452
34453 wx_cv_type_sa_handler=void
34454
34455fi
ac1cb8d3 34456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34457
34458fi
34459echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34460echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34461
34462 ac_ext=c
34463ac_cpp='$CPP $CPPFLAGS'
34464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34466ac_compiler_gnu=$ac_cv_c_compiler_gnu
34467
34468
34469 cat >>confdefs.h <<_ACEOF
34470#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34471_ACEOF
34472
34473 fi
34474fi
34475
eaff0f0d
VZ
34476if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34477
34478
34479 ac_ext=cc
34480ac_cpp='$CXXCPP $CPPFLAGS'
34481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34484
34485
34486 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34487echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34488if test "${wx_cv_func_backtrace+set}" = set; then
34489 echo $ECHO_N "(cached) $ECHO_C" >&6
34490else
34491
34492 cat >conftest.$ac_ext <<_ACEOF
34493/* confdefs.h. */
34494_ACEOF
34495cat confdefs.h >>conftest.$ac_ext
34496cat >>conftest.$ac_ext <<_ACEOF
34497/* end confdefs.h. */
34498#include <execinfo.h>
34499int
34500main ()
34501{
34502
34503 void *trace[1];
34504 char **messages;
34505
34506 backtrace(trace, 1);
34507 messages = backtrace_symbols(trace, 1);
34508
34509 ;
34510 return 0;
34511}
34512_ACEOF
34513rm -f conftest.$ac_objext
34514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34515 (eval $ac_compile) 2>conftest.er1
34516 ac_status=$?
34517 grep -v '^ *+' conftest.er1 >conftest.err
34518 rm -f conftest.er1
34519 cat conftest.err >&5
34520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521 (exit $ac_status); } &&
3565d135
RR
34522 { ac_try='test -z "$ac_cxx_werror_flag"
34523 || test ! -s conftest.err'
eaff0f0d
VZ
34524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34525 (eval $ac_try) 2>&5
34526 ac_status=$?
34527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34528 (exit $ac_status); }; } &&
34529 { ac_try='test -s conftest.$ac_objext'
34530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34531 (eval $ac_try) 2>&5
34532 ac_status=$?
34533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34534 (exit $ac_status); }; }; then
34535 wx_cv_func_backtrace=yes
34536else
34537 echo "$as_me: failed program was:" >&5
34538sed 's/^/| /' conftest.$ac_ext >&5
34539
34540wx_cv_func_backtrace=no
34541
34542fi
34543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34544
34545
34546fi
34547echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34548echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34549
34550
34551 if test "$wx_cv_func_backtrace" = "no"; then
34552 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34553echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34554 wxUSE_STACKWALKER=no
34555 else
34556 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34557echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34558if test "${wx_cv_func_cxa_demangle+set}" = set; then
34559 echo $ECHO_N "(cached) $ECHO_C" >&6
34560else
34561
34562 cat >conftest.$ac_ext <<_ACEOF
34563/* confdefs.h. */
34564_ACEOF
34565cat confdefs.h >>conftest.$ac_ext
34566cat >>conftest.$ac_ext <<_ACEOF
34567/* end confdefs.h. */
34568#include <cxxabi.h>
34569int
34570main ()
34571{
34572
34573 int rc;
34574 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34575
34576 ;
34577 return 0;
34578}
34579_ACEOF
dfe0c803
JS
34580rm -f conftest.$ac_objext conftest$ac_exeext
34581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34582 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34583 ac_status=$?
34584 grep -v '^ *+' conftest.er1 >conftest.err
34585 rm -f conftest.er1
34586 cat conftest.err >&5
34587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588 (exit $ac_status); } &&
3565d135
RR
34589 { ac_try='test -z "$ac_cxx_werror_flag"
34590 || test ! -s conftest.err'
eaff0f0d
VZ
34591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34592 (eval $ac_try) 2>&5
34593 ac_status=$?
34594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34595 (exit $ac_status); }; } &&
dfe0c803 34596 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34598 (eval $ac_try) 2>&5
34599 ac_status=$?
34600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34601 (exit $ac_status); }; }; then
34602 wx_cv_func_cxa_demangle=yes
34603else
34604 echo "$as_me: failed program was:" >&5
34605sed 's/^/| /' conftest.$ac_ext >&5
34606
34607wx_cv_func_cxa_demangle=no
34608
34609fi
dfe0c803
JS
34610rm -f conftest.err conftest.$ac_objext \
34611 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34612
34613
34614fi
34615echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34616echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34617
34618 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34619 cat >>confdefs.h <<\_ACEOF
34620#define HAVE_CXA_DEMANGLE 1
34621_ACEOF
34622
34623 fi
34624 fi
34625
34626 ac_ext=c
34627ac_cpp='$CPP $CPPFLAGS'
34628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34630ac_compiler_gnu=$ac_cv_c_compiler_gnu
34631
34632fi
34633
898beab1
DE
34634if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34635 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34636echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34637 wxUSE_STACKWALKER=no
34638fi
34639
34640
a848cd7e
SC
34641
34642
34643for ac_func in mkstemp mktemp
34644do
34645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34646echo "$as_me:$LINENO: checking for $ac_func" >&5
34647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34648if eval "test \"\${$as_ac_var+set}\" = set"; then
34649 echo $ECHO_N "(cached) $ECHO_C" >&6
34650else
34651 cat >conftest.$ac_ext <<_ACEOF
34652/* confdefs.h. */
34653_ACEOF
34654cat confdefs.h >>conftest.$ac_ext
34655cat >>conftest.$ac_ext <<_ACEOF
34656/* end confdefs.h. */
ac1cb8d3
VS
34657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34659#define $ac_func innocuous_$ac_func
34660
a848cd7e
SC
34661/* System header to define __stub macros and hopefully few prototypes,
34662 which can conflict with char $ac_func (); below.
34663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34664 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34665
a848cd7e
SC
34666#ifdef __STDC__
34667# include <limits.h>
34668#else
34669# include <assert.h>
34670#endif
ac1cb8d3
VS
34671
34672#undef $ac_func
34673
a848cd7e
SC
34674/* Override any gcc2 internal prototype to avoid an error. */
34675#ifdef __cplusplus
34676extern "C"
34677{
34678#endif
34679/* We use char because int might match the return type of a gcc2
34680 builtin and then its argument prototype would still apply. */
34681char $ac_func ();
34682/* The GNU C library defines this for functions which it implements
34683 to always fail with ENOSYS. Some functions are actually named
34684 something starting with __ and the normal name is an alias. */
34685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34686choke me
34687#else
34688char (*f) () = $ac_func;
34689#endif
34690#ifdef __cplusplus
34691}
34692#endif
34693
34694int
34695main ()
34696{
34697return f != $ac_func;
34698 ;
34699 return 0;
34700}
34701_ACEOF
34702rm -f conftest.$ac_objext conftest$ac_exeext
34703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34704 (eval $ac_link) 2>conftest.er1
a848cd7e 34705 ac_status=$?
ac1cb8d3
VS
34706 grep -v '^ *+' conftest.er1 >conftest.err
34707 rm -f conftest.er1
34708 cat conftest.err >&5
a848cd7e
SC
34709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34710 (exit $ac_status); } &&
3565d135
RR
34711 { ac_try='test -z "$ac_c_werror_flag"
34712 || test ! -s conftest.err'
ac1cb8d3
VS
34713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34714 (eval $ac_try) 2>&5
34715 ac_status=$?
34716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34717 (exit $ac_status); }; } &&
34718 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34720 (eval $ac_try) 2>&5
34721 ac_status=$?
34722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723 (exit $ac_status); }; }; then
34724 eval "$as_ac_var=yes"
34725else
34726 echo "$as_me: failed program was:" >&5
34727sed 's/^/| /' conftest.$ac_ext >&5
34728
34729eval "$as_ac_var=no"
34730fi
ac1cb8d3
VS
34731rm -f conftest.err conftest.$ac_objext \
34732 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34733fi
34734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34735echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34736if test `eval echo '${'$as_ac_var'}'` = yes; then
34737 cat >>confdefs.h <<_ACEOF
34738#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34739_ACEOF
34740 break
34741fi
34742done
34743
34744
34745echo "$as_me:$LINENO: checking for statfs" >&5
34746echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34747if test "${wx_cv_func_statfs+set}" = set; then
34748 echo $ECHO_N "(cached) $ECHO_C" >&6
34749else
34750 cat >conftest.$ac_ext <<_ACEOF
34751/* confdefs.h. */
34752_ACEOF
34753cat confdefs.h >>conftest.$ac_ext
34754cat >>conftest.$ac_ext <<_ACEOF
34755/* end confdefs.h. */
34756
34757 #if defined(__BSD__)
84ae7ca4
VZ
34758 #include <sys/param.h>
34759 #include <sys/mount.h>
a848cd7e 34760 #else
84ae7ca4 34761 #include <sys/vfs.h>
a848cd7e
SC
34762 #endif
34763
34764int
34765main ()
34766{
34767
34768 long l;
34769 struct statfs fs;
34770 statfs("/", &fs);
34771 l = fs.f_bsize;
34772 l += fs.f_blocks;
34773 l += fs.f_bavail;
34774
34775 ;
34776 return 0;
34777}
34778_ACEOF
34779rm -f conftest.$ac_objext
34780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34781 (eval $ac_compile) 2>conftest.er1
a848cd7e 34782 ac_status=$?
ac1cb8d3
VS
34783 grep -v '^ *+' conftest.er1 >conftest.err
34784 rm -f conftest.er1
34785 cat conftest.err >&5
a848cd7e
SC
34786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34787 (exit $ac_status); } &&
3565d135
RR
34788 { ac_try='test -z "$ac_c_werror_flag"
34789 || test ! -s conftest.err'
ac1cb8d3
VS
34790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34791 (eval $ac_try) 2>&5
34792 ac_status=$?
34793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34794 (exit $ac_status); }; } &&
34795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34797 (eval $ac_try) 2>&5
34798 ac_status=$?
34799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34800 (exit $ac_status); }; }; then
84ae7ca4 34801 wx_cv_func_statfs=yes
a848cd7e
SC
34802else
34803 echo "$as_me: failed program was:" >&5
34804sed 's/^/| /' conftest.$ac_ext >&5
34805
84ae7ca4 34806wx_cv_func_statfs=no
a848cd7e
SC
34807
34808fi
ac1cb8d3 34809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34810
34811fi
34812echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34813echo "${ECHO_T}$wx_cv_func_statfs" >&6
34814
34815if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
34816
34817
34818 ac_ext=cc
34819ac_cpp='$CXXCPP $CPPFLAGS'
34820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34823
34824 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34825echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34826if test "${wx_cv_func_statfs_decl+set}" = set; then
34827 echo $ECHO_N "(cached) $ECHO_C" >&6
34828else
0683aca6
VZ
34829 cat >conftest.$ac_ext <<_ACEOF
34830/* confdefs.h. */
34831_ACEOF
34832cat confdefs.h >>conftest.$ac_ext
34833cat >>conftest.$ac_ext <<_ACEOF
34834/* end confdefs.h. */
84ae7ca4 34835
0683aca6
VZ
34836 #if defined(__BSD__)
34837 #include <sys/param.h>
34838 #include <sys/mount.h>
34839 #else
34840 #include <sys/vfs.h>
34841 #endif
34842
34843int
34844main ()
34845{
34846
34847 struct statfs fs;
34848 statfs("", &fs);
34849
34850 ;
34851 return 0;
34852}
34853_ACEOF
34854rm -f conftest.$ac_objext
34855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34856 (eval $ac_compile) 2>conftest.er1
34857 ac_status=$?
34858 grep -v '^ *+' conftest.er1 >conftest.err
34859 rm -f conftest.er1
34860 cat conftest.err >&5
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); } &&
3565d135
RR
34863 { ac_try='test -z "$ac_cxx_werror_flag"
34864 || test ! -s conftest.err'
0683aca6
VZ
34865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34866 (eval $ac_try) 2>&5
34867 ac_status=$?
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); }; } &&
34870 { ac_try='test -s conftest.$ac_objext'
34871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34872 (eval $ac_try) 2>&5
34873 ac_status=$?
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); }; }; then
34876 wx_cv_func_statfs_decl=yes
34877else
34878 echo "$as_me: failed program was:" >&5
34879sed 's/^/| /' conftest.$ac_ext >&5
34880
34881wx_cv_func_statfs_decl=no
34882
34883fi
34884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34885
34886fi
34887echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34888echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34889 ac_ext=c
34890ac_cpp='$CPP $CPPFLAGS'
34891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34893ac_compiler_gnu=$ac_cv_c_compiler_gnu
34894
34895
34896 if test "$wx_cv_func_statfs_decl" = "yes"; then
34897 cat >>confdefs.h <<\_ACEOF
34898#define HAVE_STATFS_DECL 1
34899_ACEOF
34900
34901 fi
34902
a848cd7e
SC
34903 wx_cv_type_statvfs_t="struct statfs"
34904 cat >>confdefs.h <<\_ACEOF
34905#define HAVE_STATFS 1
34906_ACEOF
34907
34908else
34909 echo "$as_me:$LINENO: checking for statvfs" >&5
34910echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34911if test "${wx_cv_func_statvfs+set}" = set; then
34912 echo $ECHO_N "(cached) $ECHO_C" >&6
34913else
34914 cat >conftest.$ac_ext <<_ACEOF
34915/* confdefs.h. */
34916_ACEOF
34917cat confdefs.h >>conftest.$ac_ext
34918cat >>conftest.$ac_ext <<_ACEOF
34919/* end confdefs.h. */
34920
34921 #include <stddef.h>
34922 #include <sys/statvfs.h>
34923
34924int
34925main ()
34926{
34927
34928 statvfs("/", NULL);
34929
34930 ;
34931 return 0;
34932}
34933_ACEOF
34934rm -f conftest.$ac_objext
34935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34936 (eval $ac_compile) 2>conftest.er1
a848cd7e 34937 ac_status=$?
ac1cb8d3
VS
34938 grep -v '^ *+' conftest.er1 >conftest.err
34939 rm -f conftest.er1
34940 cat conftest.err >&5
a848cd7e
SC
34941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942 (exit $ac_status); } &&
3565d135
RR
34943 { ac_try='test -z "$ac_c_werror_flag"
34944 || test ! -s conftest.err'
ac1cb8d3
VS
34945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34946 (eval $ac_try) 2>&5
34947 ac_status=$?
34948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34949 (exit $ac_status); }; } &&
34950 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34952 (eval $ac_try) 2>&5
34953 ac_status=$?
34954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955 (exit $ac_status); }; }; then
34956 wx_cv_func_statvfs=yes
34957else
34958 echo "$as_me: failed program was:" >&5
34959sed 's/^/| /' conftest.$ac_ext >&5
34960
34961wx_cv_func_statvfs=no
34962
34963fi
ac1cb8d3 34964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34965
34966fi
34967echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34968echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34969
34970 if test "$wx_cv_func_statvfs" = "yes"; then
34971
34972
34973 ac_ext=cc
34974ac_cpp='$CXXCPP $CPPFLAGS'
34975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34978
34979
34980 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34981echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34982if test "${wx_cv_type_statvfs_t+set}" = set; then
34983 echo $ECHO_N "(cached) $ECHO_C" >&6
34984else
34985 cat >conftest.$ac_ext <<_ACEOF
34986/* confdefs.h. */
34987_ACEOF
34988cat confdefs.h >>conftest.$ac_ext
34989cat >>conftest.$ac_ext <<_ACEOF
34990/* end confdefs.h. */
34991
34992 #include <sys/statvfs.h>
34993
34994int
34995main ()
34996{
34997
34998 long l;
34999 statvfs_t fs;
35000 statvfs("/", &fs);
35001 l = fs.f_bsize;
35002 l += fs.f_blocks;
35003 l += fs.f_bavail;
35004
35005 ;
35006 return 0;
35007}
35008_ACEOF
35009rm -f conftest.$ac_objext
35010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35011 (eval $ac_compile) 2>conftest.er1
a848cd7e 35012 ac_status=$?
ac1cb8d3
VS
35013 grep -v '^ *+' conftest.er1 >conftest.err
35014 rm -f conftest.er1
35015 cat conftest.err >&5
a848cd7e
SC
35016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017 (exit $ac_status); } &&
3565d135
RR
35018 { ac_try='test -z "$ac_cxx_werror_flag"
35019 || test ! -s conftest.err'
ac1cb8d3
VS
35020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35021 (eval $ac_try) 2>&5
35022 ac_status=$?
35023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35024 (exit $ac_status); }; } &&
35025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35027 (eval $ac_try) 2>&5
35028 ac_status=$?
35029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 (exit $ac_status); }; }; then
35031 wx_cv_type_statvfs_t=statvfs_t
35032else
35033 echo "$as_me: failed program was:" >&5
35034sed 's/^/| /' conftest.$ac_ext >&5
35035
35036
35037 cat >conftest.$ac_ext <<_ACEOF
35038/* confdefs.h. */
35039_ACEOF
35040cat confdefs.h >>conftest.$ac_ext
35041cat >>conftest.$ac_ext <<_ACEOF
35042/* end confdefs.h. */
35043
35044 #include <sys/statvfs.h>
35045
35046int
35047main ()
35048{
35049
35050 long l;
35051 struct statvfs fs;
35052 statvfs("/", &fs);
35053 l = fs.f_bsize;
35054 l += fs.f_blocks;
35055 l += fs.f_bavail;
35056
35057 ;
35058 return 0;
35059}
35060_ACEOF
35061rm -f conftest.$ac_objext
35062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35063 (eval $ac_compile) 2>conftest.er1
a848cd7e 35064 ac_status=$?
ac1cb8d3
VS
35065 grep -v '^ *+' conftest.er1 >conftest.err
35066 rm -f conftest.er1
35067 cat conftest.err >&5
a848cd7e
SC
35068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35069 (exit $ac_status); } &&
3565d135
RR
35070 { ac_try='test -z "$ac_cxx_werror_flag"
35071 || test ! -s conftest.err'
ac1cb8d3
VS
35072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35073 (eval $ac_try) 2>&5
35074 ac_status=$?
35075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076 (exit $ac_status); }; } &&
35077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35079 (eval $ac_try) 2>&5
35080 ac_status=$?
35081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082 (exit $ac_status); }; }; then
35083 wx_cv_type_statvfs_t="struct statvfs"
35084else
35085 echo "$as_me: failed program was:" >&5
35086sed 's/^/| /' conftest.$ac_ext >&5
35087
35088wx_cv_type_statvfs_t="unknown"
35089
35090fi
ac1cb8d3 35091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35092
35093
35094fi
ac1cb8d3 35095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35096
35097fi
35098echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35099echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35100
35101 ac_ext=c
35102ac_cpp='$CPP $CPPFLAGS'
35103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35105ac_compiler_gnu=$ac_cv_c_compiler_gnu
35106
35107
35108 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35109 cat >>confdefs.h <<\_ACEOF
35110#define HAVE_STATVFS 1
35111_ACEOF
35112
35113 fi
35114 else
35115 wx_cv_type_statvfs_t="unknown"
35116 fi
35117fi
35118
35119if test "$wx_cv_type_statvfs_t" != "unknown"; then
35120 cat >>confdefs.h <<_ACEOF
35121#define WX_STATFS_T $wx_cv_type_statvfs_t
35122_ACEOF
35123
35124else
35125 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35126echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35127fi
35128
35129if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35130
35131
35132for ac_func in fcntl flock
35133do
35134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35135echo "$as_me:$LINENO: checking for $ac_func" >&5
35136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35137if eval "test \"\${$as_ac_var+set}\" = set"; then
35138 echo $ECHO_N "(cached) $ECHO_C" >&6
35139else
35140 cat >conftest.$ac_ext <<_ACEOF
35141/* confdefs.h. */
35142_ACEOF
35143cat confdefs.h >>conftest.$ac_ext
35144cat >>conftest.$ac_ext <<_ACEOF
35145/* end confdefs.h. */
ac1cb8d3
VS
35146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35148#define $ac_func innocuous_$ac_func
35149
a848cd7e
SC
35150/* System header to define __stub macros and hopefully few prototypes,
35151 which can conflict with char $ac_func (); below.
35152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35153 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35154
a848cd7e
SC
35155#ifdef __STDC__
35156# include <limits.h>
35157#else
35158# include <assert.h>
35159#endif
ac1cb8d3
VS
35160
35161#undef $ac_func
35162
a848cd7e
SC
35163/* Override any gcc2 internal prototype to avoid an error. */
35164#ifdef __cplusplus
35165extern "C"
35166{
35167#endif
35168/* We use char because int might match the return type of a gcc2
35169 builtin and then its argument prototype would still apply. */
35170char $ac_func ();
35171/* The GNU C library defines this for functions which it implements
35172 to always fail with ENOSYS. Some functions are actually named
35173 something starting with __ and the normal name is an alias. */
35174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35175choke me
35176#else
35177char (*f) () = $ac_func;
35178#endif
35179#ifdef __cplusplus
35180}
35181#endif
35182
35183int
35184main ()
35185{
35186return f != $ac_func;
35187 ;
35188 return 0;
35189}
35190_ACEOF
35191rm -f conftest.$ac_objext conftest$ac_exeext
35192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35193 (eval $ac_link) 2>conftest.er1
a848cd7e 35194 ac_status=$?
ac1cb8d3
VS
35195 grep -v '^ *+' conftest.er1 >conftest.err
35196 rm -f conftest.er1
35197 cat conftest.err >&5
a848cd7e
SC
35198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35199 (exit $ac_status); } &&
3565d135
RR
35200 { ac_try='test -z "$ac_c_werror_flag"
35201 || test ! -s conftest.err'
ac1cb8d3
VS
35202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35203 (eval $ac_try) 2>&5
35204 ac_status=$?
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); }; } &&
35207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35209 (eval $ac_try) 2>&5
35210 ac_status=$?
35211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212 (exit $ac_status); }; }; then
35213 eval "$as_ac_var=yes"
35214else
35215 echo "$as_me: failed program was:" >&5
35216sed 's/^/| /' conftest.$ac_ext >&5
35217
35218eval "$as_ac_var=no"
35219fi
ac1cb8d3
VS
35220rm -f conftest.err conftest.$ac_objext \
35221 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35222fi
35223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35225if test `eval echo '${'$as_ac_var'}'` = yes; then
35226 cat >>confdefs.h <<_ACEOF
35227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35228_ACEOF
35229 break
35230fi
35231done
35232
35233
35234 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35235 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35236echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35237 wxUSE_SNGLINST_CHECKER=no
35238 fi
35239fi
35240
35241
35242for ac_func in timegm
35243do
35244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35245echo "$as_me:$LINENO: checking for $ac_func" >&5
35246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35247if eval "test \"\${$as_ac_var+set}\" = set"; then
35248 echo $ECHO_N "(cached) $ECHO_C" >&6
35249else
35250 cat >conftest.$ac_ext <<_ACEOF
35251/* confdefs.h. */
35252_ACEOF
35253cat confdefs.h >>conftest.$ac_ext
35254cat >>conftest.$ac_ext <<_ACEOF
35255/* end confdefs.h. */
ac1cb8d3
VS
35256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35258#define $ac_func innocuous_$ac_func
35259
a848cd7e
SC
35260/* System header to define __stub macros and hopefully few prototypes,
35261 which can conflict with char $ac_func (); below.
35262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35263 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35264
a848cd7e
SC
35265#ifdef __STDC__
35266# include <limits.h>
35267#else
35268# include <assert.h>
35269#endif
ac1cb8d3
VS
35270
35271#undef $ac_func
35272
a848cd7e
SC
35273/* Override any gcc2 internal prototype to avoid an error. */
35274#ifdef __cplusplus
35275extern "C"
35276{
35277#endif
35278/* We use char because int might match the return type of a gcc2
35279 builtin and then its argument prototype would still apply. */
35280char $ac_func ();
35281/* The GNU C library defines this for functions which it implements
35282 to always fail with ENOSYS. Some functions are actually named
35283 something starting with __ and the normal name is an alias. */
35284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35285choke me
35286#else
35287char (*f) () = $ac_func;
35288#endif
35289#ifdef __cplusplus
35290}
35291#endif
35292
35293int
35294main ()
35295{
35296return f != $ac_func;
35297 ;
35298 return 0;
35299}
35300_ACEOF
35301rm -f conftest.$ac_objext conftest$ac_exeext
35302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35303 (eval $ac_link) 2>conftest.er1
a848cd7e 35304 ac_status=$?
ac1cb8d3
VS
35305 grep -v '^ *+' conftest.er1 >conftest.err
35306 rm -f conftest.er1
35307 cat conftest.err >&5
a848cd7e
SC
35308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309 (exit $ac_status); } &&
3565d135
RR
35310 { ac_try='test -z "$ac_c_werror_flag"
35311 || test ! -s conftest.err'
ac1cb8d3
VS
35312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35313 (eval $ac_try) 2>&5
35314 ac_status=$?
35315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35316 (exit $ac_status); }; } &&
35317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35319 (eval $ac_try) 2>&5
35320 ac_status=$?
35321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322 (exit $ac_status); }; }; then
35323 eval "$as_ac_var=yes"
35324else
35325 echo "$as_me: failed program was:" >&5
35326sed 's/^/| /' conftest.$ac_ext >&5
35327
35328eval "$as_ac_var=no"
35329fi
ac1cb8d3
VS
35330rm -f conftest.err conftest.$ac_objext \
35331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35332fi
35333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35334echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35335if test `eval echo '${'$as_ac_var'}'` = yes; then
35336 cat >>confdefs.h <<_ACEOF
35337#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35338_ACEOF
35339
35340fi
35341done
35342
35343
35344
35345
35346for ac_func in putenv setenv
35347do
35348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35349echo "$as_me:$LINENO: checking for $ac_func" >&5
35350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35351if eval "test \"\${$as_ac_var+set}\" = set"; then
35352 echo $ECHO_N "(cached) $ECHO_C" >&6
35353else
35354 cat >conftest.$ac_ext <<_ACEOF
35355/* confdefs.h. */
35356_ACEOF
35357cat confdefs.h >>conftest.$ac_ext
35358cat >>conftest.$ac_ext <<_ACEOF
35359/* end confdefs.h. */
ac1cb8d3
VS
35360/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35362#define $ac_func innocuous_$ac_func
35363
a848cd7e
SC
35364/* System header to define __stub macros and hopefully few prototypes,
35365 which can conflict with char $ac_func (); below.
35366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35367 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35368
a848cd7e
SC
35369#ifdef __STDC__
35370# include <limits.h>
35371#else
35372# include <assert.h>
35373#endif
ac1cb8d3
VS
35374
35375#undef $ac_func
35376
a848cd7e
SC
35377/* Override any gcc2 internal prototype to avoid an error. */
35378#ifdef __cplusplus
35379extern "C"
35380{
35381#endif
35382/* We use char because int might match the return type of a gcc2
35383 builtin and then its argument prototype would still apply. */
35384char $ac_func ();
35385/* The GNU C library defines this for functions which it implements
35386 to always fail with ENOSYS. Some functions are actually named
35387 something starting with __ and the normal name is an alias. */
35388#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35389choke me
35390#else
35391char (*f) () = $ac_func;
35392#endif
35393#ifdef __cplusplus
35394}
35395#endif
35396
35397int
35398main ()
35399{
35400return f != $ac_func;
35401 ;
35402 return 0;
35403}
35404_ACEOF
35405rm -f conftest.$ac_objext conftest$ac_exeext
35406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35407 (eval $ac_link) 2>conftest.er1
a848cd7e 35408 ac_status=$?
ac1cb8d3
VS
35409 grep -v '^ *+' conftest.er1 >conftest.err
35410 rm -f conftest.er1
35411 cat conftest.err >&5
a848cd7e
SC
35412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35413 (exit $ac_status); } &&
3565d135
RR
35414 { ac_try='test -z "$ac_c_werror_flag"
35415 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
35421 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35423 (eval $ac_try) 2>&5
35424 ac_status=$?
35425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35426 (exit $ac_status); }; }; then
35427 eval "$as_ac_var=yes"
35428else
35429 echo "$as_me: failed program was:" >&5
35430sed 's/^/| /' conftest.$ac_ext >&5
35431
35432eval "$as_ac_var=no"
35433fi
ac1cb8d3
VS
35434rm -f conftest.err conftest.$ac_objext \
35435 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35436fi
35437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35438echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35439if test `eval echo '${'$as_ac_var'}'` = yes; then
35440 cat >>confdefs.h <<_ACEOF
35441#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35442_ACEOF
35443 break
35444fi
35445done
35446
35447
35448HAVE_SOME_SLEEP_FUNC=0
35449if test "$USE_BEOS" = 1; then
35450 cat >>confdefs.h <<\_ACEOF
35451#define HAVE_SLEEP 1
35452_ACEOF
35453
35454 HAVE_SOME_SLEEP_FUNC=1
35455fi
35456
35457if test "$USE_DARWIN" = 1; then
35458 cat >>confdefs.h <<\_ACEOF
35459#define HAVE_USLEEP 1
35460_ACEOF
35461
35462 HAVE_SOME_SLEEP_FUNC=1
35463fi
35464
35465if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35466 POSIX4_LINK=
35467
35468for ac_func in nanosleep
35469do
35470as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35471echo "$as_me:$LINENO: checking for $ac_func" >&5
35472echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35473if eval "test \"\${$as_ac_var+set}\" = set"; then
35474 echo $ECHO_N "(cached) $ECHO_C" >&6
35475else
35476 cat >conftest.$ac_ext <<_ACEOF
35477/* confdefs.h. */
35478_ACEOF
35479cat confdefs.h >>conftest.$ac_ext
35480cat >>conftest.$ac_ext <<_ACEOF
35481/* end confdefs.h. */
ac1cb8d3
VS
35482/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35484#define $ac_func innocuous_$ac_func
35485
a848cd7e
SC
35486/* System header to define __stub macros and hopefully few prototypes,
35487 which can conflict with char $ac_func (); below.
35488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35489 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35490
a848cd7e
SC
35491#ifdef __STDC__
35492# include <limits.h>
35493#else
35494# include <assert.h>
35495#endif
ac1cb8d3
VS
35496
35497#undef $ac_func
35498
a848cd7e
SC
35499/* Override any gcc2 internal prototype to avoid an error. */
35500#ifdef __cplusplus
35501extern "C"
35502{
35503#endif
35504/* We use char because int might match the return type of a gcc2
35505 builtin and then its argument prototype would still apply. */
35506char $ac_func ();
35507/* The GNU C library defines this for functions which it implements
35508 to always fail with ENOSYS. Some functions are actually named
35509 something starting with __ and the normal name is an alias. */
35510#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35511choke me
35512#else
35513char (*f) () = $ac_func;
35514#endif
35515#ifdef __cplusplus
35516}
35517#endif
35518
35519int
35520main ()
35521{
35522return f != $ac_func;
35523 ;
35524 return 0;
35525}
35526_ACEOF
35527rm -f conftest.$ac_objext conftest$ac_exeext
35528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35529 (eval $ac_link) 2>conftest.er1
a848cd7e 35530 ac_status=$?
ac1cb8d3
VS
35531 grep -v '^ *+' conftest.er1 >conftest.err
35532 rm -f conftest.er1
35533 cat conftest.err >&5
a848cd7e
SC
35534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35535 (exit $ac_status); } &&
3565d135
RR
35536 { ac_try='test -z "$ac_c_werror_flag"
35537 || test ! -s conftest.err'
ac1cb8d3
VS
35538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35539 (eval $ac_try) 2>&5
35540 ac_status=$?
35541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542 (exit $ac_status); }; } &&
35543 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35545 (eval $ac_try) 2>&5
35546 ac_status=$?
35547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548 (exit $ac_status); }; }; then
35549 eval "$as_ac_var=yes"
35550else
35551 echo "$as_me: failed program was:" >&5
35552sed 's/^/| /' conftest.$ac_ext >&5
35553
35554eval "$as_ac_var=no"
35555fi
ac1cb8d3
VS
35556rm -f conftest.err conftest.$ac_objext \
35557 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35558fi
35559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35560echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35561if test `eval echo '${'$as_ac_var'}'` = yes; then
35562 cat >>confdefs.h <<_ACEOF
35563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35564_ACEOF
35565 cat >>confdefs.h <<\_ACEOF
35566#define HAVE_NANOSLEEP 1
35567_ACEOF
35568
35569else
35570
35571 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35572echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35573if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35574 echo $ECHO_N "(cached) $ECHO_C" >&6
35575else
35576 ac_check_lib_save_LIBS=$LIBS
35577LIBS="-lposix4 $LIBS"
35578cat >conftest.$ac_ext <<_ACEOF
35579/* confdefs.h. */
35580_ACEOF
35581cat confdefs.h >>conftest.$ac_ext
35582cat >>conftest.$ac_ext <<_ACEOF
35583/* end confdefs.h. */
35584
35585/* Override any gcc2 internal prototype to avoid an error. */
35586#ifdef __cplusplus
35587extern "C"
35588#endif
35589/* We use char because int might match the return type of a gcc2
35590 builtin and then its argument prototype would still apply. */
35591char nanosleep ();
35592int
35593main ()
35594{
35595nanosleep ();
35596 ;
35597 return 0;
35598}
35599_ACEOF
35600rm -f conftest.$ac_objext conftest$ac_exeext
35601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35602 (eval $ac_link) 2>conftest.er1
a848cd7e 35603 ac_status=$?
ac1cb8d3
VS
35604 grep -v '^ *+' conftest.er1 >conftest.err
35605 rm -f conftest.er1
35606 cat conftest.err >&5
a848cd7e
SC
35607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608 (exit $ac_status); } &&
3565d135
RR
35609 { ac_try='test -z "$ac_c_werror_flag"
35610 || test ! -s conftest.err'
ac1cb8d3
VS
35611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35612 (eval $ac_try) 2>&5
35613 ac_status=$?
35614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35615 (exit $ac_status); }; } &&
35616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35618 (eval $ac_try) 2>&5
35619 ac_status=$?
35620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35621 (exit $ac_status); }; }; then
35622 ac_cv_lib_posix4_nanosleep=yes
35623else
35624 echo "$as_me: failed program was:" >&5
35625sed 's/^/| /' conftest.$ac_ext >&5
35626
35627ac_cv_lib_posix4_nanosleep=no
35628fi
ac1cb8d3
VS
35629rm -f conftest.err conftest.$ac_objext \
35630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35631LIBS=$ac_check_lib_save_LIBS
35632fi
35633echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35634echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35635if test $ac_cv_lib_posix4_nanosleep = yes; then
35636
35637 cat >>confdefs.h <<\_ACEOF
35638#define HAVE_NANOSLEEP 1
35639_ACEOF
35640
35641 POSIX4_LINK=" -lposix4"
35642
35643else
35644
35645
35646for ac_func in usleep
35647do
35648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35649echo "$as_me:$LINENO: checking for $ac_func" >&5
35650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35651if eval "test \"\${$as_ac_var+set}\" = set"; then
35652 echo $ECHO_N "(cached) $ECHO_C" >&6
35653else
35654 cat >conftest.$ac_ext <<_ACEOF
35655/* confdefs.h. */
35656_ACEOF
35657cat confdefs.h >>conftest.$ac_ext
35658cat >>conftest.$ac_ext <<_ACEOF
35659/* end confdefs.h. */
ac1cb8d3
VS
35660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35662#define $ac_func innocuous_$ac_func
35663
a848cd7e
SC
35664/* System header to define __stub macros and hopefully few prototypes,
35665 which can conflict with char $ac_func (); below.
35666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35667 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35668
a848cd7e
SC
35669#ifdef __STDC__
35670# include <limits.h>
35671#else
35672# include <assert.h>
35673#endif
ac1cb8d3
VS
35674
35675#undef $ac_func
35676
a848cd7e
SC
35677/* Override any gcc2 internal prototype to avoid an error. */
35678#ifdef __cplusplus
35679extern "C"
35680{
35681#endif
35682/* We use char because int might match the return type of a gcc2
35683 builtin and then its argument prototype would still apply. */
35684char $ac_func ();
35685/* The GNU C library defines this for functions which it implements
35686 to always fail with ENOSYS. Some functions are actually named
35687 something starting with __ and the normal name is an alias. */
35688#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35689choke me
35690#else
35691char (*f) () = $ac_func;
35692#endif
35693#ifdef __cplusplus
35694}
35695#endif
35696
35697int
35698main ()
35699{
35700return f != $ac_func;
35701 ;
35702 return 0;
35703}
35704_ACEOF
35705rm -f conftest.$ac_objext conftest$ac_exeext
35706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35707 (eval $ac_link) 2>conftest.er1
a848cd7e 35708 ac_status=$?
ac1cb8d3
VS
35709 grep -v '^ *+' conftest.er1 >conftest.err
35710 rm -f conftest.er1
35711 cat conftest.err >&5
a848cd7e
SC
35712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35713 (exit $ac_status); } &&
3565d135
RR
35714 { ac_try='test -z "$ac_c_werror_flag"
35715 || test ! -s conftest.err'
ac1cb8d3
VS
35716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35717 (eval $ac_try) 2>&5
35718 ac_status=$?
35719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35720 (exit $ac_status); }; } &&
35721 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35723 (eval $ac_try) 2>&5
35724 ac_status=$?
35725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35726 (exit $ac_status); }; }; then
35727 eval "$as_ac_var=yes"
35728else
35729 echo "$as_me: failed program was:" >&5
35730sed 's/^/| /' conftest.$ac_ext >&5
35731
35732eval "$as_ac_var=no"
35733fi
ac1cb8d3
VS
35734rm -f conftest.err conftest.$ac_objext \
35735 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35736fi
35737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35738echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35739if test `eval echo '${'$as_ac_var'}'` = yes; then
35740 cat >>confdefs.h <<_ACEOF
35741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35742_ACEOF
35743 cat >>confdefs.h <<\_ACEOF
35744#define HAVE_USLEEP 1
35745_ACEOF
35746
35747else
35748 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35749echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35750
35751fi
35752done
35753
35754
35755
35756fi
35757
35758
35759
35760fi
35761done
35762
35763fi
35764
35765
35766
35767for ac_func in uname gethostname
35768do
35769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35770echo "$as_me:$LINENO: checking for $ac_func" >&5
35771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35772if eval "test \"\${$as_ac_var+set}\" = set"; then
35773 echo $ECHO_N "(cached) $ECHO_C" >&6
35774else
35775 cat >conftest.$ac_ext <<_ACEOF
35776/* confdefs.h. */
35777_ACEOF
35778cat confdefs.h >>conftest.$ac_ext
35779cat >>conftest.$ac_ext <<_ACEOF
35780/* end confdefs.h. */
ac1cb8d3
VS
35781/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35783#define $ac_func innocuous_$ac_func
35784
a848cd7e
SC
35785/* System header to define __stub macros and hopefully few prototypes,
35786 which can conflict with char $ac_func (); below.
35787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35788 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35789
a848cd7e
SC
35790#ifdef __STDC__
35791# include <limits.h>
35792#else
35793# include <assert.h>
35794#endif
ac1cb8d3
VS
35795
35796#undef $ac_func
35797
a848cd7e
SC
35798/* Override any gcc2 internal prototype to avoid an error. */
35799#ifdef __cplusplus
35800extern "C"
35801{
35802#endif
35803/* We use char because int might match the return type of a gcc2
35804 builtin and then its argument prototype would still apply. */
35805char $ac_func ();
35806/* The GNU C library defines this for functions which it implements
35807 to always fail with ENOSYS. Some functions are actually named
35808 something starting with __ and the normal name is an alias. */
35809#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35810choke me
35811#else
35812char (*f) () = $ac_func;
35813#endif
35814#ifdef __cplusplus
35815}
35816#endif
35817
35818int
35819main ()
35820{
35821return f != $ac_func;
35822 ;
35823 return 0;
35824}
35825_ACEOF
35826rm -f conftest.$ac_objext conftest$ac_exeext
35827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35828 (eval $ac_link) 2>conftest.er1
a848cd7e 35829 ac_status=$?
ac1cb8d3
VS
35830 grep -v '^ *+' conftest.er1 >conftest.err
35831 rm -f conftest.er1
35832 cat conftest.err >&5
a848cd7e
SC
35833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834 (exit $ac_status); } &&
3565d135
RR
35835 { ac_try='test -z "$ac_c_werror_flag"
35836 || test ! -s conftest.err'
ac1cb8d3
VS
35837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35838 (eval $ac_try) 2>&5
35839 ac_status=$?
35840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35841 (exit $ac_status); }; } &&
35842 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35844 (eval $ac_try) 2>&5
35845 ac_status=$?
35846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847 (exit $ac_status); }; }; then
35848 eval "$as_ac_var=yes"
35849else
35850 echo "$as_me: failed program was:" >&5
35851sed 's/^/| /' conftest.$ac_ext >&5
35852
35853eval "$as_ac_var=no"
35854fi
ac1cb8d3
VS
35855rm -f conftest.err conftest.$ac_objext \
35856 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35857fi
35858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35859echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35860if test `eval echo '${'$as_ac_var'}'` = yes; then
35861 cat >>confdefs.h <<_ACEOF
35862#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35863_ACEOF
35864 break
35865fi
35866done
35867
35868
35869
35870
35871ac_ext=cc
35872ac_cpp='$CXXCPP $CPPFLAGS'
35873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35876
35877
35878
35879for ac_func in strtok_r
35880do
35881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35882echo "$as_me:$LINENO: checking for $ac_func" >&5
35883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35884if eval "test \"\${$as_ac_var+set}\" = set"; then
35885 echo $ECHO_N "(cached) $ECHO_C" >&6
35886else
35887 cat >conftest.$ac_ext <<_ACEOF
35888/* confdefs.h. */
35889_ACEOF
35890cat confdefs.h >>conftest.$ac_ext
35891cat >>conftest.$ac_ext <<_ACEOF
35892/* end confdefs.h. */
ac1cb8d3
VS
35893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35895#define $ac_func innocuous_$ac_func
35896
a848cd7e
SC
35897/* System header to define __stub macros and hopefully few prototypes,
35898 which can conflict with char $ac_func (); below.
35899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35900 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35901
a848cd7e
SC
35902#ifdef __STDC__
35903# include <limits.h>
35904#else
35905# include <assert.h>
35906#endif
ac1cb8d3
VS
35907
35908#undef $ac_func
35909
a848cd7e
SC
35910/* Override any gcc2 internal prototype to avoid an error. */
35911#ifdef __cplusplus
35912extern "C"
35913{
35914#endif
35915/* We use char because int might match the return type of a gcc2
35916 builtin and then its argument prototype would still apply. */
35917char $ac_func ();
35918/* The GNU C library defines this for functions which it implements
35919 to always fail with ENOSYS. Some functions are actually named
35920 something starting with __ and the normal name is an alias. */
35921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35922choke me
35923#else
35924char (*f) () = $ac_func;
35925#endif
35926#ifdef __cplusplus
35927}
35928#endif
35929
35930int
35931main ()
35932{
35933return f != $ac_func;
35934 ;
35935 return 0;
35936}
35937_ACEOF
35938rm -f conftest.$ac_objext conftest$ac_exeext
35939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35940 (eval $ac_link) 2>conftest.er1
a848cd7e 35941 ac_status=$?
ac1cb8d3
VS
35942 grep -v '^ *+' conftest.er1 >conftest.err
35943 rm -f conftest.er1
35944 cat conftest.err >&5
a848cd7e
SC
35945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35946 (exit $ac_status); } &&
3565d135
RR
35947 { ac_try='test -z "$ac_cxx_werror_flag"
35948 || test ! -s conftest.err'
ac1cb8d3
VS
35949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35950 (eval $ac_try) 2>&5
35951 ac_status=$?
35952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953 (exit $ac_status); }; } &&
35954 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35956 (eval $ac_try) 2>&5
35957 ac_status=$?
35958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35959 (exit $ac_status); }; }; then
35960 eval "$as_ac_var=yes"
35961else
35962 echo "$as_me: failed program was:" >&5
35963sed 's/^/| /' conftest.$ac_ext >&5
35964
35965eval "$as_ac_var=no"
35966fi
ac1cb8d3
VS
35967rm -f conftest.err conftest.$ac_objext \
35968 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35969fi
35970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35971echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35972if test `eval echo '${'$as_ac_var'}'` = yes; then
35973 cat >>confdefs.h <<_ACEOF
35974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35975_ACEOF
35976
35977fi
35978done
35979
35980
35981ac_ext=c
35982ac_cpp='$CPP $CPPFLAGS'
35983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35985ac_compiler_gnu=$ac_cv_c_compiler_gnu
35986
35987
35988INET_LINK=
35989
35990for ac_func in inet_addr
35991do
35992as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35993echo "$as_me:$LINENO: checking for $ac_func" >&5
35994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35995if eval "test \"\${$as_ac_var+set}\" = set"; then
35996 echo $ECHO_N "(cached) $ECHO_C" >&6
35997else
35998 cat >conftest.$ac_ext <<_ACEOF
35999/* confdefs.h. */
36000_ACEOF
36001cat confdefs.h >>conftest.$ac_ext
36002cat >>conftest.$ac_ext <<_ACEOF
36003/* end confdefs.h. */
ac1cb8d3
VS
36004/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36006#define $ac_func innocuous_$ac_func
36007
a848cd7e
SC
36008/* System header to define __stub macros and hopefully few prototypes,
36009 which can conflict with char $ac_func (); below.
36010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36011 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36012
a848cd7e
SC
36013#ifdef __STDC__
36014# include <limits.h>
36015#else
36016# include <assert.h>
36017#endif
ac1cb8d3
VS
36018
36019#undef $ac_func
36020
a848cd7e
SC
36021/* Override any gcc2 internal prototype to avoid an error. */
36022#ifdef __cplusplus
36023extern "C"
36024{
36025#endif
36026/* We use char because int might match the return type of a gcc2
36027 builtin and then its argument prototype would still apply. */
36028char $ac_func ();
36029/* The GNU C library defines this for functions which it implements
36030 to always fail with ENOSYS. Some functions are actually named
36031 something starting with __ and the normal name is an alias. */
36032#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36033choke me
36034#else
36035char (*f) () = $ac_func;
36036#endif
36037#ifdef __cplusplus
36038}
36039#endif
36040
36041int
36042main ()
36043{
36044return f != $ac_func;
36045 ;
36046 return 0;
36047}
36048_ACEOF
36049rm -f conftest.$ac_objext conftest$ac_exeext
36050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36051 (eval $ac_link) 2>conftest.er1
a848cd7e 36052 ac_status=$?
ac1cb8d3
VS
36053 grep -v '^ *+' conftest.er1 >conftest.err
36054 rm -f conftest.er1
36055 cat conftest.err >&5
a848cd7e
SC
36056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36057 (exit $ac_status); } &&
3565d135
RR
36058 { ac_try='test -z "$ac_c_werror_flag"
36059 || test ! -s conftest.err'
ac1cb8d3
VS
36060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36061 (eval $ac_try) 2>&5
36062 ac_status=$?
36063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064 (exit $ac_status); }; } &&
36065 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36067 (eval $ac_try) 2>&5
36068 ac_status=$?
36069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070 (exit $ac_status); }; }; then
36071 eval "$as_ac_var=yes"
36072else
36073 echo "$as_me: failed program was:" >&5
36074sed 's/^/| /' conftest.$ac_ext >&5
36075
36076eval "$as_ac_var=no"
36077fi
ac1cb8d3
VS
36078rm -f conftest.err conftest.$ac_objext \
36079 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36080fi
36081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36082echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36083if test `eval echo '${'$as_ac_var'}'` = yes; then
36084 cat >>confdefs.h <<_ACEOF
36085#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36086_ACEOF
36087 cat >>confdefs.h <<\_ACEOF
36088#define HAVE_INET_ADDR 1
36089_ACEOF
36090
36091else
36092
36093 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36094echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36095if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36096 echo $ECHO_N "(cached) $ECHO_C" >&6
36097else
36098 ac_check_lib_save_LIBS=$LIBS
36099LIBS="-lnsl $LIBS"
36100cat >conftest.$ac_ext <<_ACEOF
36101/* confdefs.h. */
36102_ACEOF
36103cat confdefs.h >>conftest.$ac_ext
36104cat >>conftest.$ac_ext <<_ACEOF
36105/* end confdefs.h. */
36106
36107/* Override any gcc2 internal prototype to avoid an error. */
36108#ifdef __cplusplus
36109extern "C"
36110#endif
36111/* We use char because int might match the return type of a gcc2
36112 builtin and then its argument prototype would still apply. */
36113char inet_addr ();
36114int
36115main ()
36116{
36117inet_addr ();
36118 ;
36119 return 0;
36120}
36121_ACEOF
36122rm -f conftest.$ac_objext conftest$ac_exeext
36123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36124 (eval $ac_link) 2>conftest.er1
a848cd7e 36125 ac_status=$?
ac1cb8d3
VS
36126 grep -v '^ *+' conftest.er1 >conftest.err
36127 rm -f conftest.er1
36128 cat conftest.err >&5
a848cd7e
SC
36129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36130 (exit $ac_status); } &&
3565d135
RR
36131 { ac_try='test -z "$ac_c_werror_flag"
36132 || test ! -s conftest.err'
ac1cb8d3
VS
36133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36134 (eval $ac_try) 2>&5
36135 ac_status=$?
36136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36137 (exit $ac_status); }; } &&
36138 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36140 (eval $ac_try) 2>&5
36141 ac_status=$?
36142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36143 (exit $ac_status); }; }; then
36144 ac_cv_lib_nsl_inet_addr=yes
36145else
36146 echo "$as_me: failed program was:" >&5
36147sed 's/^/| /' conftest.$ac_ext >&5
36148
36149ac_cv_lib_nsl_inet_addr=no
36150fi
ac1cb8d3
VS
36151rm -f conftest.err conftest.$ac_objext \
36152 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36153LIBS=$ac_check_lib_save_LIBS
36154fi
36155echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36156echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36157if test $ac_cv_lib_nsl_inet_addr = yes; then
36158 INET_LINK="nsl"
36159else
36160
36161 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36162echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36163if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36164 echo $ECHO_N "(cached) $ECHO_C" >&6
36165else
36166 ac_check_lib_save_LIBS=$LIBS
36167LIBS="-lresolv $LIBS"
36168cat >conftest.$ac_ext <<_ACEOF
36169/* confdefs.h. */
36170_ACEOF
36171cat confdefs.h >>conftest.$ac_ext
36172cat >>conftest.$ac_ext <<_ACEOF
36173/* end confdefs.h. */
36174
36175/* Override any gcc2 internal prototype to avoid an error. */
36176#ifdef __cplusplus
36177extern "C"
36178#endif
36179/* We use char because int might match the return type of a gcc2
36180 builtin and then its argument prototype would still apply. */
36181char inet_addr ();
36182int
36183main ()
36184{
36185inet_addr ();
36186 ;
36187 return 0;
36188}
36189_ACEOF
36190rm -f conftest.$ac_objext conftest$ac_exeext
36191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36192 (eval $ac_link) 2>conftest.er1
a848cd7e 36193 ac_status=$?
ac1cb8d3
VS
36194 grep -v '^ *+' conftest.er1 >conftest.err
36195 rm -f conftest.er1
36196 cat conftest.err >&5
a848cd7e
SC
36197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198 (exit $ac_status); } &&
3565d135
RR
36199 { ac_try='test -z "$ac_c_werror_flag"
36200 || test ! -s conftest.err'
ac1cb8d3
VS
36201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36202 (eval $ac_try) 2>&5
36203 ac_status=$?
36204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205 (exit $ac_status); }; } &&
36206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36208 (eval $ac_try) 2>&5
36209 ac_status=$?
36210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211 (exit $ac_status); }; }; then
36212 ac_cv_lib_resolv_inet_addr=yes
36213else
36214 echo "$as_me: failed program was:" >&5
36215sed 's/^/| /' conftest.$ac_ext >&5
36216
36217ac_cv_lib_resolv_inet_addr=no
36218fi
ac1cb8d3
VS
36219rm -f conftest.err conftest.$ac_objext \
36220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36221LIBS=$ac_check_lib_save_LIBS
36222fi
36223echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36224echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36225if test $ac_cv_lib_resolv_inet_addr = yes; then
36226 INET_LINK="resolv"
36227else
36228
36229 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36230echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36231if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36232 echo $ECHO_N "(cached) $ECHO_C" >&6
36233else
36234 ac_check_lib_save_LIBS=$LIBS
36235LIBS="-lsocket $LIBS"
36236cat >conftest.$ac_ext <<_ACEOF
36237/* confdefs.h. */
36238_ACEOF
36239cat confdefs.h >>conftest.$ac_ext
36240cat >>conftest.$ac_ext <<_ACEOF
36241/* end confdefs.h. */
36242
36243/* Override any gcc2 internal prototype to avoid an error. */
36244#ifdef __cplusplus
36245extern "C"
36246#endif
36247/* We use char because int might match the return type of a gcc2
36248 builtin and then its argument prototype would still apply. */
36249char inet_addr ();
36250int
36251main ()
36252{
36253inet_addr ();
36254 ;
36255 return 0;
36256}
36257_ACEOF
36258rm -f conftest.$ac_objext conftest$ac_exeext
36259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36260 (eval $ac_link) 2>conftest.er1
a848cd7e 36261 ac_status=$?
ac1cb8d3
VS
36262 grep -v '^ *+' conftest.er1 >conftest.err
36263 rm -f conftest.er1
36264 cat conftest.err >&5
a848cd7e
SC
36265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36266 (exit $ac_status); } &&
3565d135
RR
36267 { ac_try='test -z "$ac_c_werror_flag"
36268 || test ! -s conftest.err'
ac1cb8d3
VS
36269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36270 (eval $ac_try) 2>&5
36271 ac_status=$?
36272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36273 (exit $ac_status); }; } &&
36274 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36276 (eval $ac_try) 2>&5
36277 ac_status=$?
36278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36279 (exit $ac_status); }; }; then
36280 ac_cv_lib_socket_inet_addr=yes
36281else
36282 echo "$as_me: failed program was:" >&5
36283sed 's/^/| /' conftest.$ac_ext >&5
36284
36285ac_cv_lib_socket_inet_addr=no
36286fi
ac1cb8d3
VS
36287rm -f conftest.err conftest.$ac_objext \
36288 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36289LIBS=$ac_check_lib_save_LIBS
36290fi
36291echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36292echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36293if test $ac_cv_lib_socket_inet_addr = yes; then
36294 INET_LINK="socket"
36295
36296fi
36297
36298
36299
36300fi
36301
36302
36303
36304fi
36305
36306
36307
36308fi
36309done
36310
36311
36312
36313for ac_func in inet_aton
36314do
36315as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36316echo "$as_me:$LINENO: checking for $ac_func" >&5
36317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36318if eval "test \"\${$as_ac_var+set}\" = set"; then
36319 echo $ECHO_N "(cached) $ECHO_C" >&6
36320else
36321 cat >conftest.$ac_ext <<_ACEOF
36322/* confdefs.h. */
36323_ACEOF
36324cat confdefs.h >>conftest.$ac_ext
36325cat >>conftest.$ac_ext <<_ACEOF
36326/* end confdefs.h. */
ac1cb8d3
VS
36327/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36329#define $ac_func innocuous_$ac_func
36330
a848cd7e
SC
36331/* System header to define __stub macros and hopefully few prototypes,
36332 which can conflict with char $ac_func (); below.
36333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36334 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36335
a848cd7e
SC
36336#ifdef __STDC__
36337# include <limits.h>
36338#else
36339# include <assert.h>
36340#endif
ac1cb8d3
VS
36341
36342#undef $ac_func
36343
a848cd7e
SC
36344/* Override any gcc2 internal prototype to avoid an error. */
36345#ifdef __cplusplus
36346extern "C"
36347{
36348#endif
36349/* We use char because int might match the return type of a gcc2
36350 builtin and then its argument prototype would still apply. */
36351char $ac_func ();
36352/* The GNU C library defines this for functions which it implements
36353 to always fail with ENOSYS. Some functions are actually named
36354 something starting with __ and the normal name is an alias. */
36355#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36356choke me
36357#else
36358char (*f) () = $ac_func;
36359#endif
36360#ifdef __cplusplus
36361}
36362#endif
36363
36364int
36365main ()
36366{
36367return f != $ac_func;
36368 ;
36369 return 0;
36370}
36371_ACEOF
36372rm -f conftest.$ac_objext conftest$ac_exeext
36373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36374 (eval $ac_link) 2>conftest.er1
a848cd7e 36375 ac_status=$?
ac1cb8d3
VS
36376 grep -v '^ *+' conftest.er1 >conftest.err
36377 rm -f conftest.er1
36378 cat conftest.err >&5
a848cd7e
SC
36379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380 (exit $ac_status); } &&
3565d135
RR
36381 { ac_try='test -z "$ac_c_werror_flag"
36382 || test ! -s conftest.err'
ac1cb8d3
VS
36383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36384 (eval $ac_try) 2>&5
36385 ac_status=$?
36386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387 (exit $ac_status); }; } &&
36388 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36390 (eval $ac_try) 2>&5
36391 ac_status=$?
36392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393 (exit $ac_status); }; }; then
36394 eval "$as_ac_var=yes"
36395else
36396 echo "$as_me: failed program was:" >&5
36397sed 's/^/| /' conftest.$ac_ext >&5
36398
36399eval "$as_ac_var=no"
36400fi
ac1cb8d3
VS
36401rm -f conftest.err conftest.$ac_objext \
36402 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36403fi
36404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36405echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36406if test `eval echo '${'$as_ac_var'}'` = yes; then
36407 cat >>confdefs.h <<_ACEOF
36408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36409_ACEOF
36410 cat >>confdefs.h <<\_ACEOF
36411#define HAVE_INET_ATON 1
36412_ACEOF
36413
36414else
36415
36416 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36417echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36418echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36419if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36420 echo $ECHO_N "(cached) $ECHO_C" >&6
36421else
36422 ac_check_lib_save_LIBS=$LIBS
36423LIBS="-l$INET_LINK $LIBS"
36424cat >conftest.$ac_ext <<_ACEOF
36425/* confdefs.h. */
36426_ACEOF
36427cat confdefs.h >>conftest.$ac_ext
36428cat >>conftest.$ac_ext <<_ACEOF
36429/* end confdefs.h. */
36430
36431/* Override any gcc2 internal prototype to avoid an error. */
36432#ifdef __cplusplus
36433extern "C"
36434#endif
36435/* We use char because int might match the return type of a gcc2
36436 builtin and then its argument prototype would still apply. */
36437char inet_aton ();
36438int
36439main ()
36440{
36441inet_aton ();
36442 ;
36443 return 0;
36444}
36445_ACEOF
36446rm -f conftest.$ac_objext conftest$ac_exeext
36447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36448 (eval $ac_link) 2>conftest.er1
a848cd7e 36449 ac_status=$?
ac1cb8d3
VS
36450 grep -v '^ *+' conftest.er1 >conftest.err
36451 rm -f conftest.er1
36452 cat conftest.err >&5
a848cd7e
SC
36453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36454 (exit $ac_status); } &&
3565d135
RR
36455 { ac_try='test -z "$ac_c_werror_flag"
36456 || test ! -s conftest.err'
ac1cb8d3
VS
36457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36458 (eval $ac_try) 2>&5
36459 ac_status=$?
36460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36461 (exit $ac_status); }; } &&
36462 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36464 (eval $ac_try) 2>&5
36465 ac_status=$?
36466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36467 (exit $ac_status); }; }; then
36468 eval "$as_ac_Lib=yes"
36469else
36470 echo "$as_me: failed program was:" >&5
36471sed 's/^/| /' conftest.$ac_ext >&5
36472
36473eval "$as_ac_Lib=no"
36474fi
ac1cb8d3
VS
36475rm -f conftest.err conftest.$ac_objext \
36476 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36477LIBS=$ac_check_lib_save_LIBS
36478fi
36479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36480echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36481if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36482 cat >>confdefs.h <<\_ACEOF
36483#define HAVE_INET_ATON 1
36484_ACEOF
36485
36486fi
36487
36488
36489fi
36490done
36491
36492
36493if test "x$INET_LINK" != "x"; then
36494 cat >>confdefs.h <<\_ACEOF
36495#define HAVE_INET_ADDR 1
36496_ACEOF
36497
36498 INET_LINK=" -l$INET_LINK"
36499fi
36500
36501fi
36502
36503
36504
36505EXTRALIBS_ESD=
36506echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36507echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36508if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36509 echo $ECHO_N "(cached) $ECHO_C" >&6
36510else
36511 ac_check_lib_save_LIBS=$LIBS
36512LIBS="-lesd $LIBS"
36513cat >conftest.$ac_ext <<_ACEOF
36514/* confdefs.h. */
36515_ACEOF
36516cat confdefs.h >>conftest.$ac_ext
36517cat >>conftest.$ac_ext <<_ACEOF
36518/* end confdefs.h. */
36519
36520/* Override any gcc2 internal prototype to avoid an error. */
36521#ifdef __cplusplus
36522extern "C"
36523#endif
36524/* We use char because int might match the return type of a gcc2
36525 builtin and then its argument prototype would still apply. */
36526char esd_close ();
36527int
36528main ()
36529{
36530esd_close ();
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); } &&
3565d135
RR
36544 { ac_try='test -z "$ac_c_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 ac_cv_lib_esd_esd_close=yes
36558else
36559 echo "$as_me: failed program was:" >&5
36560sed 's/^/| /' conftest.$ac_ext >&5
36561
36562ac_cv_lib_esd_esd_close=no
36563fi
ac1cb8d3
VS
36564rm -f conftest.err conftest.$ac_objext \
36565 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36566LIBS=$ac_check_lib_save_LIBS
36567fi
36568echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36569echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36570if test $ac_cv_lib_esd_esd_close = yes; then
36571
36572
36573for ac_header in esd.h
36574do
36575as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36576if eval "test \"\${$as_ac_Header+set}\" = set"; then
36577 echo "$as_me:$LINENO: checking for $ac_header" >&5
36578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36579if eval "test \"\${$as_ac_Header+set}\" = set"; then
36580 echo $ECHO_N "(cached) $ECHO_C" >&6
36581fi
36582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36584else
36585 # Is the header compilable?
36586echo "$as_me:$LINENO: checking $ac_header usability" >&5
36587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36588cat >conftest.$ac_ext <<_ACEOF
36589/* confdefs.h. */
36590_ACEOF
36591cat confdefs.h >>conftest.$ac_ext
36592cat >>conftest.$ac_ext <<_ACEOF
36593/* end confdefs.h. */
36594$ac_includes_default
36595#include <$ac_header>
36596_ACEOF
36597rm -f conftest.$ac_objext
36598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36599 (eval $ac_compile) 2>conftest.er1
a848cd7e 36600 ac_status=$?
ac1cb8d3
VS
36601 grep -v '^ *+' conftest.er1 >conftest.err
36602 rm -f conftest.er1
36603 cat conftest.err >&5
a848cd7e
SC
36604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605 (exit $ac_status); } &&
3565d135
RR
36606 { ac_try='test -z "$ac_c_werror_flag"
36607 || test ! -s conftest.err'
ac1cb8d3
VS
36608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36609 (eval $ac_try) 2>&5
36610 ac_status=$?
36611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36612 (exit $ac_status); }; } &&
36613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36615 (eval $ac_try) 2>&5
36616 ac_status=$?
36617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36618 (exit $ac_status); }; }; then
36619 ac_header_compiler=yes
36620else
36621 echo "$as_me: failed program was:" >&5
36622sed 's/^/| /' conftest.$ac_ext >&5
36623
36624ac_header_compiler=no
36625fi
ac1cb8d3 36626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36628echo "${ECHO_T}$ac_header_compiler" >&6
36629
36630# Is the header present?
36631echo "$as_me:$LINENO: checking $ac_header presence" >&5
36632echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36633cat >conftest.$ac_ext <<_ACEOF
36634/* confdefs.h. */
36635_ACEOF
36636cat confdefs.h >>conftest.$ac_ext
36637cat >>conftest.$ac_ext <<_ACEOF
36638/* end confdefs.h. */
36639#include <$ac_header>
36640_ACEOF
36641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36643 ac_status=$?
36644 grep -v '^ *+' conftest.er1 >conftest.err
36645 rm -f conftest.er1
36646 cat conftest.err >&5
36647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36648 (exit $ac_status); } >/dev/null; then
36649 if test -s conftest.err; then
36650 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36652 else
36653 ac_cpp_err=
36654 fi
36655else
36656 ac_cpp_err=yes
36657fi
36658if test -z "$ac_cpp_err"; then
36659 ac_header_preproc=yes
36660else
36661 echo "$as_me: failed program was:" >&5
36662sed 's/^/| /' conftest.$ac_ext >&5
36663
36664 ac_header_preproc=no
36665fi
36666rm -f conftest.err conftest.$ac_ext
36667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36668echo "${ECHO_T}$ac_header_preproc" >&6
36669
36670# So? What about this header?
ac1cb8d3
VS
36671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36672 yes:no: )
a848cd7e
SC
36673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36677 ac_header_preproc=yes
a848cd7e 36678 ;;
ac1cb8d3 36679 no:yes:* )
a848cd7e
SC
36680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36683echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36687echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36692 (
36693 cat <<\_ASBOX
ac1cb8d3
VS
36694## ----------------------------------------- ##
36695## Report this to wx-dev@lists.wxwidgets.org ##
36696## ----------------------------------------- ##
a848cd7e
SC
36697_ASBOX
36698 ) |
36699 sed "s/^/$as_me: WARNING: /" >&2
36700 ;;
36701esac
36702echo "$as_me:$LINENO: checking for $ac_header" >&5
36703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36704if eval "test \"\${$as_ac_Header+set}\" = set"; then
36705 echo $ECHO_N "(cached) $ECHO_C" >&6
36706else
ac1cb8d3 36707 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36708fi
36709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36711
36712fi
36713if test `eval echo '${'$as_ac_Header'}'` = yes; then
36714 cat >>confdefs.h <<_ACEOF
36715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36716_ACEOF
36717
36718 EXTRALIBS_ESD="-lesd"
36719
36720fi
36721
36722done
36723
36724
36725fi
36726
36727
36728
36729echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36730echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36731cat >conftest.$ac_ext <<_ACEOF
36732/* confdefs.h. */
36733_ACEOF
36734cat confdefs.h >>conftest.$ac_ext
36735cat >>conftest.$ac_ext <<_ACEOF
36736/* end confdefs.h. */
36737#ifdef __linux__
36738 #include <linux/cdrom.h>
36739 #else
36740 /* For Solaris */
36741 #include <sys/cdio.h>
36742 #endif
36743
36744int
36745main ()
36746{
36747struct cdrom_tocentry entry, old_entry;
36748 ;
36749 return 0;
36750}
36751_ACEOF
36752rm -f conftest.$ac_objext
36753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36754 (eval $ac_compile) 2>conftest.er1
a848cd7e 36755 ac_status=$?
ac1cb8d3
VS
36756 grep -v '^ *+' conftest.er1 >conftest.err
36757 rm -f conftest.er1
36758 cat conftest.err >&5
a848cd7e
SC
36759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36760 (exit $ac_status); } &&
3565d135
RR
36761 { ac_try='test -z "$ac_c_werror_flag"
36762 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
36768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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 echo "$as_me:$LINENO: result: yes" >&5
36775echo "${ECHO_T}yes" >&6
36776 cat >>confdefs.h <<\_ACEOF
36777#define HAVE_KNOWN_CDROM_INTERFACE 1
36778_ACEOF
36779
36780else
36781 echo "$as_me: failed program was:" >&5
36782sed 's/^/| /' conftest.$ac_ext >&5
36783
36784echo "$as_me:$LINENO: result: no" >&5
36785echo "${ECHO_T}no" >&6
36786fi
ac1cb8d3 36787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36788
36789
36790cat >confcache <<\_ACEOF
36791# This file is a shell script that caches the results of configure
36792# tests run on this system so they can be shared between configure
36793# scripts and configure runs, see configure's option --config-cache.
36794# It is not useful on other systems. If it contains results you don't
36795# want to keep, you may remove or edit it.
36796#
36797# config.status only pays attention to the cache file if you give it
36798# the --recheck option to rerun configure.
36799#
36800# `ac_cv_env_foo' variables (set or unset) will be overridden when
36801# loading this file, other *unset* `ac_cv_foo' will be assigned the
36802# following values.
36803
36804_ACEOF
36805
36806# The following way of writing the cache mishandles newlines in values,
36807# but we know of no workaround that is simple, portable, and efficient.
36808# So, don't put newlines in cache variables' values.
36809# Ultrix sh set writes to stderr and can't be redirected directly,
36810# and sets the high bit in the cache file unless we assign to the vars.
36811{
36812 (set) 2>&1 |
36813 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36814 *ac_space=\ *)
36815 # `set' does not quote correctly, so add quotes (double-quote
36816 # substitution turns \\\\ into \\, and sed turns \\ into \).
36817 sed -n \
ac1cb8d3
VS
36818 "s/'/'\\\\''/g;
36819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36820 ;;
36821 *)
36822 # `set' quotes correctly as required by POSIX, so do not add quotes.
36823 sed -n \
ac1cb8d3 36824 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36825 ;;
36826 esac;
36827} |
36828 sed '
36829 t clear
36830 : clear
36831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36832 t end
36833 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36834 : end' >>confcache
36835if diff $cache_file confcache >/dev/null 2>&1; then :; else
36836 if test -w $cache_file; then
36837 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36838 cat confcache >$cache_file
36839 else
36840 echo "not updating unwritable cache $cache_file"
36841 fi
36842fi
36843rm -f confcache
36844
36845
a848cd7e
SC
36846if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36847
36848
36849 THREADS_LINK=
36850 THREADS_CFLAGS=
36851
36852 if test "$wxUSE_THREADS" = "yes" ; then
36853 if test "$USE_BEOS" = 1; then
36854 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36855echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36856 wxUSE_THREADS="no"
36857 fi
36858 fi
36859
36860 if test "$wxUSE_THREADS" = "yes" ; then
36861
36862
36863 THREAD_OPTS="-pthread"
36864 case "${host}" in
36865 *-*-solaris2* | *-*-sunos4* )
36866 if test "x$GCC" = "xyes"; then
36867 THREAD_OPTS="-pthreads $THREAD_OPTS"
36868 else
36869 THREAD_OPTS="-mt $THREAD_OPTS"
36870 fi
36871 ;;
36872 *-*-freebsd*)
36873 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36874 ;;
36875 *-*-darwin* | *-*-cygwin* )
36876 THREAD_OPTS=""
36877 ;;
36878 *-*-aix*)
36879 THREAD_OPTS="pthreads"
36880 ;;
36881 *-hp-hpux* )
00421666
MW
36882 if test "x$GCC" = "xyes"; then
36883 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36884 THREAD_OPTS=""
36885 else
0093c2fc 36886 THREAD_OPTS="-mt"
a848cd7e
SC
36887 fi
36888 ;;
36889
36890 *-*-irix* )
36891 if test "x$GCC" = "xyes"; then
36892 THREAD_OPTS=""
36893 fi
36894 ;;
36895
36896 *-*-*UnixWare*)
36897 if test "x$GCC" != "xyes"; then
36898 THREAD_OPTS="-Ethread"
36899 fi
36900 ;;
36901 esac
36902
36903 THREAD_OPTS="$THREAD_OPTS pthread none"
36904
36905 THREADS_OK=no
36906 for flag in $THREAD_OPTS; do
36907 case $flag in
36908 none)
36909 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36910echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36911 ;;
36912
36913 -*)
36914 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36915echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36916 THREADS_CFLAGS="$flag"
36917 ;;
36918
36919 *)
36920 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36921echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36922 THREADS_LINK="-l$flag"
36923 ;;
36924 esac
36925
36926 save_LIBS="$LIBS"
36927 save_CFLAGS="$CFLAGS"
36928 LIBS="$THREADS_LINK $LIBS"
36929 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36930
36931 cat >conftest.$ac_ext <<_ACEOF
36932/* confdefs.h. */
36933_ACEOF
36934cat confdefs.h >>conftest.$ac_ext
36935cat >>conftest.$ac_ext <<_ACEOF
36936/* end confdefs.h. */
36937#include <pthread.h>
36938int
36939main ()
36940{
36941pthread_create(0,0,0,0);
36942 ;
36943 return 0;
36944}
36945_ACEOF
36946rm -f conftest.$ac_objext conftest$ac_exeext
36947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36948 (eval $ac_link) 2>conftest.er1
a848cd7e 36949 ac_status=$?
ac1cb8d3
VS
36950 grep -v '^ *+' conftest.er1 >conftest.err
36951 rm -f conftest.er1
36952 cat conftest.err >&5
a848cd7e
SC
36953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954 (exit $ac_status); } &&
3565d135
RR
36955 { ac_try='test -z "$ac_c_werror_flag"
36956 || test ! -s conftest.err'
ac1cb8d3
VS
36957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36958 (eval $ac_try) 2>&5
36959 ac_status=$?
36960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36961 (exit $ac_status); }; } &&
36962 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36964 (eval $ac_try) 2>&5
36965 ac_status=$?
36966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36967 (exit $ac_status); }; }; then
36968 THREADS_OK=yes
36969else
36970 echo "$as_me: failed program was:" >&5
36971sed 's/^/| /' conftest.$ac_ext >&5
36972
36973fi
ac1cb8d3
VS
36974rm -f conftest.err conftest.$ac_objext \
36975 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36976
36977 LIBS="$save_LIBS"
36978 CFLAGS="$save_CFLAGS"
36979
36980 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36981echo "${ECHO_T}$THREADS_OK" >&6
36982 if test "x$THREADS_OK" = "xyes"; then
36983 break;
36984 fi
36985
36986 THREADS_LINK=""
36987 THREADS_CFLAGS=""
36988 done
36989
36990 if test "x$THREADS_OK" != "xyes"; then
36991 wxUSE_THREADS=no
36992 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36993echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36994 else
36995 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36996 LIBS="$THREADS_LINK $LIBS"
36997
36998 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36999echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37000 flag=no
37001 case "${host}" in
37002 *-aix*)
37003 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37004 flag="-D_THREAD_SAFE"
37005 ;;
37006 *-freebsd*)
37007 flag="-D_THREAD_SAFE"
37008 ;;
37009 *-hp-hpux* )
37010 flag="-D_REENTRANT"
37011 if test "x$GCC" != "xyes"; then
37012 flag="$flag -D_RWSTD_MULTI_THREAD"
37013 fi
37014 ;;
37015 *solaris* | alpha*-osf*)
37016 flag="-D_REENTRANT"
37017 ;;
37018 esac
37019 echo "$as_me:$LINENO: result: ${flag}" >&5
37020echo "${ECHO_T}${flag}" >&6
37021 if test "x$flag" != xno; then
37022 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
37023 fi
37024
5ff751d6 37025 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
37026 fi
37027 fi
37028
37029 if test "$wxUSE_THREADS" = "yes" ; then
37030
37031for ac_func in thr_setconcurrency
37032do
37033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37034echo "$as_me:$LINENO: checking for $ac_func" >&5
37035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37036if eval "test \"\${$as_ac_var+set}\" = set"; then
37037 echo $ECHO_N "(cached) $ECHO_C" >&6
37038else
37039 cat >conftest.$ac_ext <<_ACEOF
37040/* confdefs.h. */
37041_ACEOF
37042cat confdefs.h >>conftest.$ac_ext
37043cat >>conftest.$ac_ext <<_ACEOF
37044/* end confdefs.h. */
ac1cb8d3
VS
37045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37047#define $ac_func innocuous_$ac_func
37048
a848cd7e
SC
37049/* System header to define __stub macros and hopefully few prototypes,
37050 which can conflict with char $ac_func (); below.
37051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37052 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37053
a848cd7e
SC
37054#ifdef __STDC__
37055# include <limits.h>
37056#else
37057# include <assert.h>
37058#endif
ac1cb8d3
VS
37059
37060#undef $ac_func
37061
a848cd7e
SC
37062/* Override any gcc2 internal prototype to avoid an error. */
37063#ifdef __cplusplus
37064extern "C"
37065{
37066#endif
37067/* We use char because int might match the return type of a gcc2
37068 builtin and then its argument prototype would still apply. */
37069char $ac_func ();
37070/* The GNU C library defines this for functions which it implements
37071 to always fail with ENOSYS. Some functions are actually named
37072 something starting with __ and the normal name is an alias. */
37073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37074choke me
37075#else
37076char (*f) () = $ac_func;
37077#endif
37078#ifdef __cplusplus
37079}
37080#endif
37081
37082int
37083main ()
37084{
37085return f != $ac_func;
37086 ;
37087 return 0;
37088}
37089_ACEOF
37090rm -f conftest.$ac_objext conftest$ac_exeext
37091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37092 (eval $ac_link) 2>conftest.er1
a848cd7e 37093 ac_status=$?
ac1cb8d3
VS
37094 grep -v '^ *+' conftest.er1 >conftest.err
37095 rm -f conftest.er1
37096 cat conftest.err >&5
a848cd7e
SC
37097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37098 (exit $ac_status); } &&
3565d135
RR
37099 { ac_try='test -z "$ac_c_werror_flag"
37100 || test ! -s conftest.err'
ac1cb8d3
VS
37101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37102 (eval $ac_try) 2>&5
37103 ac_status=$?
37104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105 (exit $ac_status); }; } &&
37106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37108 (eval $ac_try) 2>&5
37109 ac_status=$?
37110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111 (exit $ac_status); }; }; then
37112 eval "$as_ac_var=yes"
37113else
37114 echo "$as_me: failed program was:" >&5
37115sed 's/^/| /' conftest.$ac_ext >&5
37116
37117eval "$as_ac_var=no"
37118fi
ac1cb8d3
VS
37119rm -f conftest.err conftest.$ac_objext \
37120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37121fi
37122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37123echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37124if test `eval echo '${'$as_ac_var'}'` = yes; then
37125 cat >>confdefs.h <<_ACEOF
37126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37127_ACEOF
37128
37129fi
37130done
37131
37132
6ebeb4c7
VZ
37133 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37134echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37135if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37136 echo $ECHO_N "(cached) $ECHO_C" >&6
37137else
37138
37139 cat >conftest.$ac_ext <<_ACEOF
37140/* confdefs.h. */
37141_ACEOF
37142cat confdefs.h >>conftest.$ac_ext
37143cat >>conftest.$ac_ext <<_ACEOF
37144/* end confdefs.h. */
37145#include <pthread.h>
37146 void ThreadCleanupFunc(void *p);
37147
37148int
37149main ()
37150{
37151
37152 void *p;
37153 pthread_cleanup_push(ThreadCleanupFunc, p);
37154 pthread_cleanup_pop(0);
37155
37156 ;
37157 return 0;
37158}
37159_ACEOF
37160rm -f conftest.$ac_objext
37161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37162 (eval $ac_compile) 2>conftest.er1
37163 ac_status=$?
37164 grep -v '^ *+' conftest.er1 >conftest.err
37165 rm -f conftest.er1
37166 cat conftest.err >&5
37167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37168 (exit $ac_status); } &&
3565d135
RR
37169 { ac_try='test -z "$ac_c_werror_flag"
37170 || test ! -s conftest.err'
6ebeb4c7
VZ
37171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37172 (eval $ac_try) 2>&5
37173 ac_status=$?
37174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175 (exit $ac_status); }; } &&
37176 { ac_try='test -s conftest.$ac_objext'
37177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37178 (eval $ac_try) 2>&5
37179 ac_status=$?
37180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181 (exit $ac_status); }; }; then
37182
37183 wx_cv_func_pthread_cleanup=yes
37184
37185else
37186 echo "$as_me: failed program was:" >&5
37187sed 's/^/| /' conftest.$ac_ext >&5
37188
37189
37190 wx_cv_func_pthread_cleanup=no
37191
37192
37193fi
37194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37195
37196fi
37197echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37198echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37199 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37200 cat >>confdefs.h <<\_ACEOF
37201#define wxHAVE_PTHREAD_CLEANUP 1
37202_ACEOF
37203
37204 fi
37205
a848cd7e
SC
37206
37207for ac_header in sched.h
37208do
37209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37210if eval "test \"\${$as_ac_Header+set}\" = set"; then
37211 echo "$as_me:$LINENO: checking for $ac_header" >&5
37212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37213if eval "test \"\${$as_ac_Header+set}\" = set"; then
37214 echo $ECHO_N "(cached) $ECHO_C" >&6
37215fi
37216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37218else
37219 # Is the header compilable?
37220echo "$as_me:$LINENO: checking $ac_header usability" >&5
37221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37222cat >conftest.$ac_ext <<_ACEOF
37223/* confdefs.h. */
37224_ACEOF
37225cat confdefs.h >>conftest.$ac_ext
37226cat >>conftest.$ac_ext <<_ACEOF
37227/* end confdefs.h. */
37228$ac_includes_default
37229#include <$ac_header>
37230_ACEOF
37231rm -f conftest.$ac_objext
37232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37233 (eval $ac_compile) 2>conftest.er1
a848cd7e 37234 ac_status=$?
ac1cb8d3
VS
37235 grep -v '^ *+' conftest.er1 >conftest.err
37236 rm -f conftest.er1
37237 cat conftest.err >&5
a848cd7e
SC
37238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37239 (exit $ac_status); } &&
3565d135
RR
37240 { ac_try='test -z "$ac_c_werror_flag"
37241 || test ! -s conftest.err'
ac1cb8d3
VS
37242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37243 (eval $ac_try) 2>&5
37244 ac_status=$?
37245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37246 (exit $ac_status); }; } &&
37247 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37249 (eval $ac_try) 2>&5
37250 ac_status=$?
37251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37252 (exit $ac_status); }; }; then
37253 ac_header_compiler=yes
37254else
37255 echo "$as_me: failed program was:" >&5
37256sed 's/^/| /' conftest.$ac_ext >&5
37257
37258ac_header_compiler=no
37259fi
ac1cb8d3 37260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37261echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37262echo "${ECHO_T}$ac_header_compiler" >&6
37263
37264# Is the header present?
37265echo "$as_me:$LINENO: checking $ac_header presence" >&5
37266echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37267cat >conftest.$ac_ext <<_ACEOF
37268/* confdefs.h. */
37269_ACEOF
37270cat confdefs.h >>conftest.$ac_ext
37271cat >>conftest.$ac_ext <<_ACEOF
37272/* end confdefs.h. */
37273#include <$ac_header>
37274_ACEOF
37275if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37277 ac_status=$?
37278 grep -v '^ *+' conftest.er1 >conftest.err
37279 rm -f conftest.er1
37280 cat conftest.err >&5
37281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37282 (exit $ac_status); } >/dev/null; then
37283 if test -s conftest.err; then
37284 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37286 else
37287 ac_cpp_err=
37288 fi
37289else
37290 ac_cpp_err=yes
37291fi
37292if test -z "$ac_cpp_err"; then
37293 ac_header_preproc=yes
37294else
37295 echo "$as_me: failed program was:" >&5
37296sed 's/^/| /' conftest.$ac_ext >&5
37297
37298 ac_header_preproc=no
37299fi
37300rm -f conftest.err conftest.$ac_ext
37301echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37302echo "${ECHO_T}$ac_header_preproc" >&6
37303
37304# So? What about this header?
ac1cb8d3
VS
37305case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37306 yes:no: )
a848cd7e
SC
37307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37308echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37310echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37311 ac_header_preproc=yes
a848cd7e 37312 ;;
ac1cb8d3 37313 no:yes:* )
a848cd7e
SC
37314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37315echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37317echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37319echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37321echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37323echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37325echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37326 (
37327 cat <<\_ASBOX
ac1cb8d3
VS
37328## ----------------------------------------- ##
37329## Report this to wx-dev@lists.wxwidgets.org ##
37330## ----------------------------------------- ##
a848cd7e
SC
37331_ASBOX
37332 ) |
37333 sed "s/^/$as_me: WARNING: /" >&2
37334 ;;
37335esac
37336echo "$as_me:$LINENO: checking for $ac_header" >&5
37337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37338if eval "test \"\${$as_ac_Header+set}\" = set"; then
37339 echo $ECHO_N "(cached) $ECHO_C" >&6
37340else
ac1cb8d3 37341 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37342fi
37343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37344echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37345
37346fi
37347if test `eval echo '${'$as_ac_Header'}'` = yes; then
37348 cat >>confdefs.h <<_ACEOF
37349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37350_ACEOF
37351
37352fi
37353
37354done
37355
37356 if test "$ac_cv_header_sched_h" = "yes"; then
37357 echo "$as_me:$LINENO: checking for sched_yield" >&5
37358echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37359if test "${ac_cv_func_sched_yield+set}" = set; then
37360 echo $ECHO_N "(cached) $ECHO_C" >&6
37361else
37362 cat >conftest.$ac_ext <<_ACEOF
37363/* confdefs.h. */
37364_ACEOF
37365cat confdefs.h >>conftest.$ac_ext
37366cat >>conftest.$ac_ext <<_ACEOF
37367/* end confdefs.h. */
ac1cb8d3
VS
37368/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37370#define sched_yield innocuous_sched_yield
37371
a848cd7e
SC
37372/* System header to define __stub macros and hopefully few prototypes,
37373 which can conflict with char sched_yield (); below.
37374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37375 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37376
a848cd7e
SC
37377#ifdef __STDC__
37378# include <limits.h>
37379#else
37380# include <assert.h>
37381#endif
ac1cb8d3
VS
37382
37383#undef sched_yield
37384
a848cd7e
SC
37385/* Override any gcc2 internal prototype to avoid an error. */
37386#ifdef __cplusplus
37387extern "C"
37388{
37389#endif
37390/* We use char because int might match the return type of a gcc2
37391 builtin and then its argument prototype would still apply. */
37392char sched_yield ();
37393/* The GNU C library defines this for functions which it implements
37394 to always fail with ENOSYS. Some functions are actually named
37395 something starting with __ and the normal name is an alias. */
37396#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37397choke me
37398#else
37399char (*f) () = sched_yield;
37400#endif
37401#ifdef __cplusplus
37402}
37403#endif
37404
37405int
37406main ()
37407{
37408return f != sched_yield;
37409 ;
37410 return 0;
37411}
37412_ACEOF
37413rm -f conftest.$ac_objext conftest$ac_exeext
37414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37415 (eval $ac_link) 2>conftest.er1
a848cd7e 37416 ac_status=$?
ac1cb8d3
VS
37417 grep -v '^ *+' conftest.er1 >conftest.err
37418 rm -f conftest.er1
37419 cat conftest.err >&5
a848cd7e
SC
37420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37421 (exit $ac_status); } &&
3565d135
RR
37422 { ac_try='test -z "$ac_c_werror_flag"
37423 || test ! -s conftest.err'
ac1cb8d3
VS
37424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37425 (eval $ac_try) 2>&5
37426 ac_status=$?
37427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37428 (exit $ac_status); }; } &&
37429 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37431 (eval $ac_try) 2>&5
37432 ac_status=$?
37433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37434 (exit $ac_status); }; }; then
37435 ac_cv_func_sched_yield=yes
37436else
37437 echo "$as_me: failed program was:" >&5
37438sed 's/^/| /' conftest.$ac_ext >&5
37439
37440ac_cv_func_sched_yield=no
37441fi
ac1cb8d3
VS
37442rm -f conftest.err conftest.$ac_objext \
37443 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37444fi
37445echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37446echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37447if test $ac_cv_func_sched_yield = yes; then
37448 cat >>confdefs.h <<\_ACEOF
37449#define HAVE_SCHED_YIELD 1
37450_ACEOF
37451
37452else
37453
37454 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37455echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37456if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37457 echo $ECHO_N "(cached) $ECHO_C" >&6
37458else
37459 ac_check_lib_save_LIBS=$LIBS
37460LIBS="-lposix4 $LIBS"
37461cat >conftest.$ac_ext <<_ACEOF
37462/* confdefs.h. */
37463_ACEOF
37464cat confdefs.h >>conftest.$ac_ext
37465cat >>conftest.$ac_ext <<_ACEOF
37466/* end confdefs.h. */
37467
37468/* Override any gcc2 internal prototype to avoid an error. */
37469#ifdef __cplusplus
37470extern "C"
37471#endif
37472/* We use char because int might match the return type of a gcc2
37473 builtin and then its argument prototype would still apply. */
37474char sched_yield ();
37475int
37476main ()
37477{
37478sched_yield ();
37479 ;
37480 return 0;
37481}
37482_ACEOF
37483rm -f conftest.$ac_objext conftest$ac_exeext
37484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37485 (eval $ac_link) 2>conftest.er1
a848cd7e 37486 ac_status=$?
ac1cb8d3
VS
37487 grep -v '^ *+' conftest.er1 >conftest.err
37488 rm -f conftest.er1
37489 cat conftest.err >&5
a848cd7e
SC
37490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37491 (exit $ac_status); } &&
3565d135
RR
37492 { ac_try='test -z "$ac_c_werror_flag"
37493 || test ! -s conftest.err'
ac1cb8d3
VS
37494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37495 (eval $ac_try) 2>&5
37496 ac_status=$?
37497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498 (exit $ac_status); }; } &&
37499 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37501 (eval $ac_try) 2>&5
37502 ac_status=$?
37503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37504 (exit $ac_status); }; }; then
37505 ac_cv_lib_posix4_sched_yield=yes
37506else
37507 echo "$as_me: failed program was:" >&5
37508sed 's/^/| /' conftest.$ac_ext >&5
37509
37510ac_cv_lib_posix4_sched_yield=no
37511fi
ac1cb8d3
VS
37512rm -f conftest.err conftest.$ac_objext \
37513 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37514LIBS=$ac_check_lib_save_LIBS
37515fi
37516echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37517echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37518if test $ac_cv_lib_posix4_sched_yield = yes; then
37519 cat >>confdefs.h <<\_ACEOF
37520#define HAVE_SCHED_YIELD 1
37521_ACEOF
37522 POSIX4_LINK=" -lposix4"
37523else
37524 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37525echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37526
37527fi
37528
37529
37530
37531fi
37532
37533 fi
37534
37535 HAVE_PRIOR_FUNCS=0
37536 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37537echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37538if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37539 echo $ECHO_N "(cached) $ECHO_C" >&6
37540else
37541 cat >conftest.$ac_ext <<_ACEOF
37542/* confdefs.h. */
37543_ACEOF
37544cat confdefs.h >>conftest.$ac_ext
37545cat >>conftest.$ac_ext <<_ACEOF
37546/* end confdefs.h. */
ac1cb8d3
VS
37547/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37549#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37550
a848cd7e
SC
37551/* System header to define __stub macros and hopefully few prototypes,
37552 which can conflict with char pthread_attr_getschedpolicy (); below.
37553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37554 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37555
a848cd7e
SC
37556#ifdef __STDC__
37557# include <limits.h>
37558#else
37559# include <assert.h>
37560#endif
ac1cb8d3
VS
37561
37562#undef pthread_attr_getschedpolicy
37563
a848cd7e
SC
37564/* Override any gcc2 internal prototype to avoid an error. */
37565#ifdef __cplusplus
37566extern "C"
37567{
37568#endif
37569/* We use char because int might match the return type of a gcc2
37570 builtin and then its argument prototype would still apply. */
37571char pthread_attr_getschedpolicy ();
37572/* The GNU C library defines this for functions which it implements
37573 to always fail with ENOSYS. Some functions are actually named
37574 something starting with __ and the normal name is an alias. */
37575#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37576choke me
37577#else
37578char (*f) () = pthread_attr_getschedpolicy;
37579#endif
37580#ifdef __cplusplus
37581}
37582#endif
37583
37584int
37585main ()
37586{
37587return f != pthread_attr_getschedpolicy;
37588 ;
37589 return 0;
37590}
37591_ACEOF
37592rm -f conftest.$ac_objext conftest$ac_exeext
37593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37594 (eval $ac_link) 2>conftest.er1
a848cd7e 37595 ac_status=$?
ac1cb8d3
VS
37596 grep -v '^ *+' conftest.er1 >conftest.err
37597 rm -f conftest.er1
37598 cat conftest.err >&5
a848cd7e
SC
37599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37600 (exit $ac_status); } &&
3565d135
RR
37601 { ac_try='test -z "$ac_c_werror_flag"
37602 || test ! -s conftest.err'
ac1cb8d3
VS
37603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37604 (eval $ac_try) 2>&5
37605 ac_status=$?
37606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37607 (exit $ac_status); }; } &&
37608 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37610 (eval $ac_try) 2>&5
37611 ac_status=$?
37612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613 (exit $ac_status); }; }; then
37614 ac_cv_func_pthread_attr_getschedpolicy=yes
37615else
37616 echo "$as_me: failed program was:" >&5
37617sed 's/^/| /' conftest.$ac_ext >&5
37618
37619ac_cv_func_pthread_attr_getschedpolicy=no
37620fi
ac1cb8d3
VS
37621rm -f conftest.err conftest.$ac_objext \
37622 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37623fi
37624echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37625echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37626if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37627 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37628echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37629if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37630 echo $ECHO_N "(cached) $ECHO_C" >&6
37631else
37632 cat >conftest.$ac_ext <<_ACEOF
37633/* confdefs.h. */
37634_ACEOF
37635cat confdefs.h >>conftest.$ac_ext
37636cat >>conftest.$ac_ext <<_ACEOF
37637/* end confdefs.h. */
ac1cb8d3
VS
37638/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37640#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37641
a848cd7e
SC
37642/* System header to define __stub macros and hopefully few prototypes,
37643 which can conflict with char pthread_attr_setschedparam (); below.
37644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37645 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37646
a848cd7e
SC
37647#ifdef __STDC__
37648# include <limits.h>
37649#else
37650# include <assert.h>
37651#endif
ac1cb8d3
VS
37652
37653#undef pthread_attr_setschedparam
37654
a848cd7e
SC
37655/* Override any gcc2 internal prototype to avoid an error. */
37656#ifdef __cplusplus
37657extern "C"
37658{
37659#endif
37660/* We use char because int might match the return type of a gcc2
37661 builtin and then its argument prototype would still apply. */
37662char pthread_attr_setschedparam ();
37663/* The GNU C library defines this for functions which it implements
37664 to always fail with ENOSYS. Some functions are actually named
37665 something starting with __ and the normal name is an alias. */
37666#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37667choke me
37668#else
37669char (*f) () = pthread_attr_setschedparam;
37670#endif
37671#ifdef __cplusplus
37672}
37673#endif
37674
37675int
37676main ()
37677{
37678return f != pthread_attr_setschedparam;
37679 ;
37680 return 0;
37681}
37682_ACEOF
37683rm -f conftest.$ac_objext conftest$ac_exeext
37684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37685 (eval $ac_link) 2>conftest.er1
a848cd7e 37686 ac_status=$?
ac1cb8d3
VS
37687 grep -v '^ *+' conftest.er1 >conftest.err
37688 rm -f conftest.er1
37689 cat conftest.err >&5
a848cd7e
SC
37690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691 (exit $ac_status); } &&
3565d135
RR
37692 { ac_try='test -z "$ac_c_werror_flag"
37693 || test ! -s conftest.err'
ac1cb8d3
VS
37694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37695 (eval $ac_try) 2>&5
37696 ac_status=$?
37697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37698 (exit $ac_status); }; } &&
37699 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37701 (eval $ac_try) 2>&5
37702 ac_status=$?
37703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37704 (exit $ac_status); }; }; then
37705 ac_cv_func_pthread_attr_setschedparam=yes
37706else
37707 echo "$as_me: failed program was:" >&5
37708sed 's/^/| /' conftest.$ac_ext >&5
37709
37710ac_cv_func_pthread_attr_setschedparam=no
37711fi
ac1cb8d3
VS
37712rm -f conftest.err conftest.$ac_objext \
37713 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37714fi
37715echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37716echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37717if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37718 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37719echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37720if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37721 echo $ECHO_N "(cached) $ECHO_C" >&6
37722else
37723 cat >conftest.$ac_ext <<_ACEOF
37724/* confdefs.h. */
37725_ACEOF
37726cat confdefs.h >>conftest.$ac_ext
37727cat >>conftest.$ac_ext <<_ACEOF
37728/* end confdefs.h. */
ac1cb8d3
VS
37729/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37731#define sched_get_priority_max innocuous_sched_get_priority_max
37732
a848cd7e
SC
37733/* System header to define __stub macros and hopefully few prototypes,
37734 which can conflict with char sched_get_priority_max (); below.
37735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37736 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37737
a848cd7e
SC
37738#ifdef __STDC__
37739# include <limits.h>
37740#else
37741# include <assert.h>
37742#endif
ac1cb8d3
VS
37743
37744#undef sched_get_priority_max
37745
a848cd7e
SC
37746/* Override any gcc2 internal prototype to avoid an error. */
37747#ifdef __cplusplus
37748extern "C"
37749{
37750#endif
37751/* We use char because int might match the return type of a gcc2
37752 builtin and then its argument prototype would still apply. */
37753char sched_get_priority_max ();
37754/* The GNU C library defines this for functions which it implements
37755 to always fail with ENOSYS. Some functions are actually named
37756 something starting with __ and the normal name is an alias. */
37757#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37758choke me
37759#else
37760char (*f) () = sched_get_priority_max;
37761#endif
37762#ifdef __cplusplus
37763}
37764#endif
37765
37766int
37767main ()
37768{
37769return f != sched_get_priority_max;
37770 ;
37771 return 0;
37772}
37773_ACEOF
37774rm -f conftest.$ac_objext conftest$ac_exeext
37775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37776 (eval $ac_link) 2>conftest.er1
a848cd7e 37777 ac_status=$?
ac1cb8d3
VS
37778 grep -v '^ *+' conftest.er1 >conftest.err
37779 rm -f conftest.er1
37780 cat conftest.err >&5
a848cd7e
SC
37781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782 (exit $ac_status); } &&
3565d135
RR
37783 { ac_try='test -z "$ac_c_werror_flag"
37784 || test ! -s conftest.err'
ac1cb8d3
VS
37785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37786 (eval $ac_try) 2>&5
37787 ac_status=$?
37788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37789 (exit $ac_status); }; } &&
37790 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37792 (eval $ac_try) 2>&5
37793 ac_status=$?
37794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37795 (exit $ac_status); }; }; then
37796 ac_cv_func_sched_get_priority_max=yes
37797else
37798 echo "$as_me: failed program was:" >&5
37799sed 's/^/| /' conftest.$ac_ext >&5
37800
37801ac_cv_func_sched_get_priority_max=no
37802fi
ac1cb8d3
VS
37803rm -f conftest.err conftest.$ac_objext \
37804 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37805fi
37806echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37807echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37808if test $ac_cv_func_sched_get_priority_max = yes; then
37809 HAVE_PRIOR_FUNCS=1
37810else
37811 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37812echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37813if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37814 echo $ECHO_N "(cached) $ECHO_C" >&6
37815else
37816 ac_check_lib_save_LIBS=$LIBS
37817LIBS="-lposix4 $LIBS"
37818cat >conftest.$ac_ext <<_ACEOF
37819/* confdefs.h. */
37820_ACEOF
37821cat confdefs.h >>conftest.$ac_ext
37822cat >>conftest.$ac_ext <<_ACEOF
37823/* end confdefs.h. */
37824
37825/* Override any gcc2 internal prototype to avoid an error. */
37826#ifdef __cplusplus
37827extern "C"
37828#endif
37829/* We use char because int might match the return type of a gcc2
37830 builtin and then its argument prototype would still apply. */
37831char sched_get_priority_max ();
37832int
37833main ()
37834{
37835sched_get_priority_max ();
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); } &&
3565d135
RR
37849 { ac_try='test -z "$ac_c_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 ac_cv_lib_posix4_sched_get_priority_max=yes
37863else
37864 echo "$as_me: failed program was:" >&5
37865sed 's/^/| /' conftest.$ac_ext >&5
37866
37867ac_cv_lib_posix4_sched_get_priority_max=no
37868fi
ac1cb8d3
VS
37869rm -f conftest.err conftest.$ac_objext \
37870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37871LIBS=$ac_check_lib_save_LIBS
37872fi
37873echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37874echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37875if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37876
37877 HAVE_PRIOR_FUNCS=1
37878 POSIX4_LINK=" -lposix4"
37879
37880fi
37881
37882
37883fi
37884
37885
37886fi
37887
37888
37889fi
37890
37891
37892 if test "$HAVE_PRIOR_FUNCS" = 1; then
37893 cat >>confdefs.h <<\_ACEOF
37894#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37895_ACEOF
37896
37897 else
37898 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37899echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37900 fi
37901
37902 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37903echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37904if test "${ac_cv_func_pthread_cancel+set}" = set; then
37905 echo $ECHO_N "(cached) $ECHO_C" >&6
37906else
37907 cat >conftest.$ac_ext <<_ACEOF
37908/* confdefs.h. */
37909_ACEOF
37910cat confdefs.h >>conftest.$ac_ext
37911cat >>conftest.$ac_ext <<_ACEOF
37912/* end confdefs.h. */
ac1cb8d3
VS
37913/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37915#define pthread_cancel innocuous_pthread_cancel
37916
a848cd7e
SC
37917/* System header to define __stub macros and hopefully few prototypes,
37918 which can conflict with char pthread_cancel (); below.
37919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37920 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37921
a848cd7e
SC
37922#ifdef __STDC__
37923# include <limits.h>
37924#else
37925# include <assert.h>
37926#endif
ac1cb8d3
VS
37927
37928#undef pthread_cancel
37929
a848cd7e
SC
37930/* Override any gcc2 internal prototype to avoid an error. */
37931#ifdef __cplusplus
37932extern "C"
37933{
37934#endif
37935/* We use char because int might match the return type of a gcc2
37936 builtin and then its argument prototype would still apply. */
37937char pthread_cancel ();
37938/* The GNU C library defines this for functions which it implements
37939 to always fail with ENOSYS. Some functions are actually named
37940 something starting with __ and the normal name is an alias. */
37941#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37942choke me
37943#else
37944char (*f) () = pthread_cancel;
37945#endif
37946#ifdef __cplusplus
37947}
37948#endif
37949
37950int
37951main ()
37952{
37953return f != pthread_cancel;
37954 ;
37955 return 0;
37956}
37957_ACEOF
37958rm -f conftest.$ac_objext conftest$ac_exeext
37959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37960 (eval $ac_link) 2>conftest.er1
a848cd7e 37961 ac_status=$?
ac1cb8d3
VS
37962 grep -v '^ *+' conftest.er1 >conftest.err
37963 rm -f conftest.er1
37964 cat conftest.err >&5
a848cd7e
SC
37965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37966 (exit $ac_status); } &&
3565d135
RR
37967 { ac_try='test -z "$ac_c_werror_flag"
37968 || test ! -s conftest.err'
ac1cb8d3
VS
37969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37970 (eval $ac_try) 2>&5
37971 ac_status=$?
37972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37973 (exit $ac_status); }; } &&
37974 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37976 (eval $ac_try) 2>&5
37977 ac_status=$?
37978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37979 (exit $ac_status); }; }; then
37980 ac_cv_func_pthread_cancel=yes
37981else
37982 echo "$as_me: failed program was:" >&5
37983sed 's/^/| /' conftest.$ac_ext >&5
37984
37985ac_cv_func_pthread_cancel=no
37986fi
ac1cb8d3
VS
37987rm -f conftest.err conftest.$ac_objext \
37988 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37989fi
37990echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37991echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37992if test $ac_cv_func_pthread_cancel = yes; then
37993 cat >>confdefs.h <<\_ACEOF
37994#define HAVE_PTHREAD_CANCEL 1
37995_ACEOF
37996
37997else
37998 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37999echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38000fi
38001
38002
abc736fd
MW
38003 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38004echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38005if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38006 echo $ECHO_N "(cached) $ECHO_C" >&6
38007else
38008 cat >conftest.$ac_ext <<_ACEOF
38009/* confdefs.h. */
38010_ACEOF
38011cat confdefs.h >>conftest.$ac_ext
38012cat >>conftest.$ac_ext <<_ACEOF
38013/* end confdefs.h. */
38014/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38016#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38017
38018/* System header to define __stub macros and hopefully few prototypes,
38019 which can conflict with char pthread_attr_setstacksize (); below.
38020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38021 <limits.h> exists even on freestanding compilers. */
38022
38023#ifdef __STDC__
38024# include <limits.h>
38025#else
38026# include <assert.h>
38027#endif
38028
38029#undef pthread_attr_setstacksize
38030
38031/* Override any gcc2 internal prototype to avoid an error. */
38032#ifdef __cplusplus
38033extern "C"
38034{
38035#endif
38036/* We use char because int might match the return type of a gcc2
38037 builtin and then its argument prototype would still apply. */
38038char pthread_attr_setstacksize ();
38039/* The GNU C library defines this for functions which it implements
38040 to always fail with ENOSYS. Some functions are actually named
38041 something starting with __ and the normal name is an alias. */
38042#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38043choke me
38044#else
38045char (*f) () = pthread_attr_setstacksize;
38046#endif
38047#ifdef __cplusplus
38048}
38049#endif
38050
38051int
38052main ()
38053{
38054return f != pthread_attr_setstacksize;
38055 ;
38056 return 0;
38057}
38058_ACEOF
38059rm -f conftest.$ac_objext conftest$ac_exeext
38060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38061 (eval $ac_link) 2>conftest.er1
38062 ac_status=$?
38063 grep -v '^ *+' conftest.er1 >conftest.err
38064 rm -f conftest.er1
38065 cat conftest.err >&5
38066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38067 (exit $ac_status); } &&
3565d135
RR
38068 { ac_try='test -z "$ac_c_werror_flag"
38069 || test ! -s conftest.err'
abc736fd
MW
38070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38071 (eval $ac_try) 2>&5
38072 ac_status=$?
38073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38074 (exit $ac_status); }; } &&
38075 { ac_try='test -s conftest$ac_exeext'
38076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38077 (eval $ac_try) 2>&5
38078 ac_status=$?
38079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38080 (exit $ac_status); }; }; then
38081 ac_cv_func_pthread_attr_setstacksize=yes
38082else
38083 echo "$as_me: failed program was:" >&5
38084sed 's/^/| /' conftest.$ac_ext >&5
38085
38086ac_cv_func_pthread_attr_setstacksize=no
38087fi
38088rm -f conftest.err conftest.$ac_objext \
38089 conftest$ac_exeext conftest.$ac_ext
38090fi
38091echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38092echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38093if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38094 cat >>confdefs.h <<\_ACEOF
38095#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38096_ACEOF
38097
38098fi
38099
a848cd7e
SC
38100
38101
38102 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38103echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38104if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38105 echo $ECHO_N "(cached) $ECHO_C" >&6
38106else
38107
38108 cat >conftest.$ac_ext <<_ACEOF
38109/* confdefs.h. */
38110_ACEOF
38111cat confdefs.h >>conftest.$ac_ext
38112cat >>conftest.$ac_ext <<_ACEOF
38113/* end confdefs.h. */
38114#include <pthread.h>
38115int
38116main ()
38117{
38118
38119 pthread_mutexattr_t attr;
38120 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38121
38122 ;
38123 return 0;
38124}
38125_ACEOF
38126rm -f conftest.$ac_objext
38127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38128 (eval $ac_compile) 2>conftest.er1
a848cd7e 38129 ac_status=$?
ac1cb8d3
VS
38130 grep -v '^ *+' conftest.er1 >conftest.err
38131 rm -f conftest.er1
38132 cat conftest.err >&5
a848cd7e
SC
38133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38134 (exit $ac_status); } &&
3565d135
RR
38135 { ac_try='test -z "$ac_c_werror_flag"
38136 || test ! -s conftest.err'
ac1cb8d3
VS
38137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38138 (eval $ac_try) 2>&5
38139 ac_status=$?
38140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141 (exit $ac_status); }; } &&
38142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38144 (eval $ac_try) 2>&5
38145 ac_status=$?
38146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147 (exit $ac_status); }; }; then
123dca7d 38148 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38149else
38150 echo "$as_me: failed program was:" >&5
38151sed 's/^/| /' conftest.$ac_ext >&5
38152
123dca7d 38153wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38154
38155fi
ac1cb8d3 38156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38157
38158fi
38159echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38160echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38161
38162 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38163 cat >>confdefs.h <<\_ACEOF
38164#define HAVE_PTHREAD_MUTEXATTR_T 1
38165_ACEOF
38166
123dca7d
VZ
38167
38168 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38169echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38170if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38171 echo $ECHO_N "(cached) $ECHO_C" >&6
38172else
38173
38174 cat >conftest.$ac_ext <<_ACEOF
38175/* confdefs.h. */
38176_ACEOF
38177cat confdefs.h >>conftest.$ac_ext
38178cat >>conftest.$ac_ext <<_ACEOF
38179/* end confdefs.h. */
38180#include <pthread.h>
38181int
38182main ()
38183{
38184
38185 pthread_mutexattr_t attr;
38186 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38187
38188 ;
38189 return 0;
38190}
38191_ACEOF
38192rm -f conftest.$ac_objext
38193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38194 (eval $ac_compile) 2>conftest.er1
38195 ac_status=$?
38196 grep -v '^ *+' conftest.er1 >conftest.err
38197 rm -f conftest.er1
38198 cat conftest.err >&5
38199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200 (exit $ac_status); } &&
3565d135
RR
38201 { ac_try='test -z "$ac_c_werror_flag"
38202 || test ! -s conftest.err'
123dca7d
VZ
38203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38204 (eval $ac_try) 2>&5
38205 ac_status=$?
38206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207 (exit $ac_status); }; } &&
38208 { ac_try='test -s conftest.$ac_objext'
38209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38210 (eval $ac_try) 2>&5
38211 ac_status=$?
38212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213 (exit $ac_status); }; }; then
38214 wx_cv_func_pthread_mutexattr_settype_decl=yes
38215else
38216 echo "$as_me: failed program was:" >&5
38217sed 's/^/| /' conftest.$ac_ext >&5
38218
38219wx_cv_func_pthread_mutexattr_settype_decl=no
38220
38221fi
38222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38223
38224fi
38225echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38226echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38227 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38228 cat >>confdefs.h <<\_ACEOF
38229#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38230_ACEOF
38231
38232 fi
a848cd7e
SC
38233 else
38234 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38235echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38236if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38237 echo $ECHO_N "(cached) $ECHO_C" >&6
38238else
38239
38240 cat >conftest.$ac_ext <<_ACEOF
38241/* confdefs.h. */
38242_ACEOF
38243cat confdefs.h >>conftest.$ac_ext
38244cat >>conftest.$ac_ext <<_ACEOF
38245/* end confdefs.h. */
38246#include <pthread.h>
38247int
38248main ()
38249{
38250
38251 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38252
38253 ;
38254 return 0;
38255}
38256_ACEOF
38257rm -f conftest.$ac_objext
38258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38259 (eval $ac_compile) 2>conftest.er1
a848cd7e 38260 ac_status=$?
ac1cb8d3
VS
38261 grep -v '^ *+' conftest.er1 >conftest.err
38262 rm -f conftest.er1
38263 cat conftest.err >&5
a848cd7e
SC
38264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38265 (exit $ac_status); } &&
3565d135
RR
38266 { ac_try='test -z "$ac_c_werror_flag"
38267 || test ! -s conftest.err'
ac1cb8d3
VS
38268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38269 (eval $ac_try) 2>&5
38270 ac_status=$?
38271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38272 (exit $ac_status); }; } &&
38273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38275 (eval $ac_try) 2>&5
38276 ac_status=$?
38277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38278 (exit $ac_status); }; }; then
38279
38280 wx_cv_type_pthread_rec_mutex_init=yes
38281
38282else
38283 echo "$as_me: failed program was:" >&5
38284sed 's/^/| /' conftest.$ac_ext >&5
38285
38286
38287 wx_cv_type_pthread_rec_mutex_init=no
38288
38289
38290fi
ac1cb8d3 38291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38292
38293fi
38294echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38295echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38296 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38297 cat >>confdefs.h <<\_ACEOF
38298#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38299_ACEOF
38300
38301 else
38302 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38303echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38304 fi
38305 fi
38306 fi
38307
38308else
38309 if test "$wxUSE_THREADS" = "yes" ; then
38310 case "${host}" in
38311 *-*-mingw32* )
38312 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38313echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38314if test "${wx_cv_cflags_mthread+set}" = set; then
38315 echo $ECHO_N "(cached) $ECHO_C" >&6
38316else
38317
38318 CFLAGS_OLD="$CFLAGS"
c92ad099 38319 CFLAGS="-mthreads $CFLAGS"
a848cd7e
SC
38320 cat >conftest.$ac_ext <<_ACEOF
38321/* confdefs.h. */
38322_ACEOF
38323cat confdefs.h >>conftest.$ac_ext
38324cat >>conftest.$ac_ext <<_ACEOF
38325/* end confdefs.h. */
38326
38327int
38328main ()
38329{
38330
38331 ;
38332 return 0;
38333}
38334_ACEOF
38335rm -f conftest.$ac_objext
38336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38337 (eval $ac_compile) 2>conftest.er1
a848cd7e 38338 ac_status=$?
ac1cb8d3
VS
38339 grep -v '^ *+' conftest.er1 >conftest.err
38340 rm -f conftest.er1
38341 cat conftest.err >&5
a848cd7e
SC
38342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38343 (exit $ac_status); } &&
3565d135
RR
38344 { ac_try='test -z "$ac_c_werror_flag"
38345 || test ! -s conftest.err'
ac1cb8d3
VS
38346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38347 (eval $ac_try) 2>&5
38348 ac_status=$?
38349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38350 (exit $ac_status); }; } &&
38351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38353 (eval $ac_try) 2>&5
38354 ac_status=$?
38355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38356 (exit $ac_status); }; }; then
38357 wx_cv_cflags_mthread=yes
38358else
38359 echo "$as_me: failed program was:" >&5
38360sed 's/^/| /' conftest.$ac_ext >&5
38361
38362wx_cv_cflags_mthread=no
38363
38364fi
ac1cb8d3 38365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38366
38367
38368fi
38369echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38370echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38371
38372 if test "$wx_cv_cflags_mthread" = "yes"; then
5ff751d6 38373 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
38374 LDFLAGS="$LDFLAGS -mthreads"
38375 else
38376 CFLAGS="$CFLAGS_OLD"
38377 fi
38378 ;;
38379 *-pc-os2*emx )
5ff751d6
VZ
38380 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38381 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38382 LDFLAGS="$LDFLAGS -Zmt"
38383 ;;
38384 esac
38385 fi
38386fi
38387
004ee6da
RL
38388echo "$as_me:$LINENO: checking for localtime_r" >&5
38389echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38390if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38391 echo $ECHO_N "(cached) $ECHO_C" >&6
38392else
38393 cat >conftest.$ac_ext <<_ACEOF
38394/* confdefs.h. */
38395_ACEOF
38396cat confdefs.h >>conftest.$ac_ext
38397cat >>conftest.$ac_ext <<_ACEOF
38398/* end confdefs.h. */
004ee6da 38399/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 38400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 38401#define localtime_r innocuous_localtime_r
ac1cb8d3 38402
a848cd7e 38403/* System header to define __stub macros and hopefully few prototypes,
004ee6da 38404 which can conflict with char localtime_r (); below.
a848cd7e
SC
38405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38406 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38407
a848cd7e
SC
38408#ifdef __STDC__
38409# include <limits.h>
38410#else
38411# include <assert.h>
38412#endif
ac1cb8d3 38413
004ee6da 38414#undef localtime_r
ac1cb8d3 38415
a848cd7e
SC
38416/* Override any gcc2 internal prototype to avoid an error. */
38417#ifdef __cplusplus
38418extern "C"
38419{
38420#endif
38421/* We use char because int might match the return type of a gcc2
38422 builtin and then its argument prototype would still apply. */
004ee6da 38423char localtime_r ();
a848cd7e
SC
38424/* The GNU C library defines this for functions which it implements
38425 to always fail with ENOSYS. Some functions are actually named
38426 something starting with __ and the normal name is an alias. */
004ee6da 38427#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
38428choke me
38429#else
004ee6da 38430char (*f) () = localtime_r;
a848cd7e
SC
38431#endif
38432#ifdef __cplusplus
38433}
38434#endif
38435
38436int
38437main ()
38438{
004ee6da
RL
38439return f != localtime_r;
38440 ;
38441 return 0;
38442}
38443_ACEOF
38444rm -f conftest.$ac_objext conftest$ac_exeext
38445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38446 (eval $ac_link) 2>conftest.er1
38447 ac_status=$?
38448 grep -v '^ *+' conftest.er1 >conftest.err
38449 rm -f conftest.er1
38450 cat conftest.err >&5
38451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38452 (exit $ac_status); } &&
3565d135
RR
38453 { ac_try='test -z "$ac_c_werror_flag"
38454 || test ! -s conftest.err'
004ee6da
RL
38455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38456 (eval $ac_try) 2>&5
38457 ac_status=$?
38458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459 (exit $ac_status); }; } &&
38460 { ac_try='test -s conftest$ac_exeext'
38461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38462 (eval $ac_try) 2>&5
38463 ac_status=$?
38464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465 (exit $ac_status); }; }; then
38466 ac_cv_func_localtime_r=yes
38467else
38468 echo "$as_me: failed program was:" >&5
38469sed 's/^/| /' conftest.$ac_ext >&5
38470
38471ac_cv_func_localtime_r=no
38472fi
38473rm -f conftest.err conftest.$ac_objext \
38474 conftest$ac_exeext conftest.$ac_ext
38475fi
38476echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38477echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38478if test $ac_cv_func_localtime_r = yes; then
38479 cat >>confdefs.h <<\_ACEOF
38480#define HAVE_LOCALTIME_R 1
38481_ACEOF
38482
38483fi
38484
38485echo "$as_me:$LINENO: checking for gmtime_r" >&5
38486echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38487if test "${ac_cv_func_gmtime_r+set}" = set; then
38488 echo $ECHO_N "(cached) $ECHO_C" >&6
38489else
38490 cat >conftest.$ac_ext <<_ACEOF
38491/* confdefs.h. */
38492_ACEOF
38493cat confdefs.h >>conftest.$ac_ext
38494cat >>conftest.$ac_ext <<_ACEOF
38495/* end confdefs.h. */
38496/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38498#define gmtime_r innocuous_gmtime_r
38499
38500/* System header to define __stub macros and hopefully few prototypes,
38501 which can conflict with char gmtime_r (); below.
38502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38503 <limits.h> exists even on freestanding compilers. */
38504
38505#ifdef __STDC__
38506# include <limits.h>
38507#else
38508# include <assert.h>
38509#endif
38510
38511#undef gmtime_r
38512
38513/* Override any gcc2 internal prototype to avoid an error. */
38514#ifdef __cplusplus
38515extern "C"
38516{
38517#endif
38518/* We use char because int might match the return type of a gcc2
38519 builtin and then its argument prototype would still apply. */
38520char gmtime_r ();
38521/* The GNU C library defines this for functions which it implements
38522 to always fail with ENOSYS. Some functions are actually named
38523 something starting with __ and the normal name is an alias. */
38524#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
38525choke me
38526#else
38527char (*f) () = gmtime_r;
38528#endif
38529#ifdef __cplusplus
38530}
38531#endif
38532
38533int
38534main ()
38535{
38536return f != gmtime_r;
38537 ;
38538 return 0;
38539}
38540_ACEOF
38541rm -f conftest.$ac_objext conftest$ac_exeext
38542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38543 (eval $ac_link) 2>conftest.er1
38544 ac_status=$?
38545 grep -v '^ *+' conftest.er1 >conftest.err
38546 rm -f conftest.er1
38547 cat conftest.err >&5
38548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38549 (exit $ac_status); } &&
3565d135
RR
38550 { ac_try='test -z "$ac_c_werror_flag"
38551 || test ! -s conftest.err'
004ee6da
RL
38552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38553 (eval $ac_try) 2>&5
38554 ac_status=$?
38555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38556 (exit $ac_status); }; } &&
38557 { ac_try='test -s conftest$ac_exeext'
38558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38559 (eval $ac_try) 2>&5
38560 ac_status=$?
38561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38562 (exit $ac_status); }; }; then
38563 ac_cv_func_gmtime_r=yes
38564else
38565 echo "$as_me: failed program was:" >&5
38566sed 's/^/| /' conftest.$ac_ext >&5
38567
38568ac_cv_func_gmtime_r=no
38569fi
38570rm -f conftest.err conftest.$ac_objext \
38571 conftest$ac_exeext conftest.$ac_ext
38572fi
38573echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
38574echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
38575if test $ac_cv_func_gmtime_r = yes; then
38576 cat >>confdefs.h <<\_ACEOF
38577#define HAVE_GMTIME_R 1
38578_ACEOF
38579
38580fi
38581
38582echo "$as_me:$LINENO: checking for readdir_r" >&5
38583echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
38584if test "${ac_cv_func_readdir_r+set}" = set; then
38585 echo $ECHO_N "(cached) $ECHO_C" >&6
38586else
38587 cat >conftest.$ac_ext <<_ACEOF
38588/* confdefs.h. */
38589_ACEOF
38590cat confdefs.h >>conftest.$ac_ext
38591cat >>conftest.$ac_ext <<_ACEOF
38592/* end confdefs.h. */
38593/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
38594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38595#define readdir_r innocuous_readdir_r
38596
38597/* System header to define __stub macros and hopefully few prototypes,
38598 which can conflict with char readdir_r (); below.
38599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38600 <limits.h> exists even on freestanding compilers. */
38601
38602#ifdef __STDC__
38603# include <limits.h>
38604#else
38605# include <assert.h>
38606#endif
38607
38608#undef readdir_r
38609
38610/* Override any gcc2 internal prototype to avoid an error. */
38611#ifdef __cplusplus
38612extern "C"
38613{
38614#endif
38615/* We use char because int might match the return type of a gcc2
38616 builtin and then its argument prototype would still apply. */
38617char readdir_r ();
38618/* The GNU C library defines this for functions which it implements
38619 to always fail with ENOSYS. Some functions are actually named
38620 something starting with __ and the normal name is an alias. */
38621#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
38622choke me
38623#else
38624char (*f) () = readdir_r;
38625#endif
38626#ifdef __cplusplus
38627}
38628#endif
38629
38630int
38631main ()
38632{
38633return f != readdir_r;
38634 ;
38635 return 0;
38636}
38637_ACEOF
38638rm -f conftest.$ac_objext conftest$ac_exeext
38639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38640 (eval $ac_link) 2>conftest.er1
38641 ac_status=$?
38642 grep -v '^ *+' conftest.er1 >conftest.err
38643 rm -f conftest.er1
38644 cat conftest.err >&5
38645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38646 (exit $ac_status); } &&
3565d135
RR
38647 { ac_try='test -z "$ac_c_werror_flag"
38648 || test ! -s conftest.err'
004ee6da
RL
38649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38650 (eval $ac_try) 2>&5
38651 ac_status=$?
38652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38653 (exit $ac_status); }; } &&
38654 { ac_try='test -s conftest$ac_exeext'
38655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38656 (eval $ac_try) 2>&5
38657 ac_status=$?
38658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38659 (exit $ac_status); }; }; then
38660 ac_cv_func_readdir_r=yes
38661else
38662 echo "$as_me: failed program was:" >&5
38663sed 's/^/| /' conftest.$ac_ext >&5
38664
38665ac_cv_func_readdir_r=no
38666fi
38667rm -f conftest.err conftest.$ac_objext \
38668 conftest$ac_exeext conftest.$ac_ext
38669fi
38670echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
38671echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
38672if test $ac_cv_func_readdir_r = yes; then
38673 cat >>confdefs.h <<\_ACEOF
38674#define HAVE_READDIR_R 1
38675_ACEOF
38676
38677fi
38678
004ee6da 38679
004ee6da
RL
38680
38681
38682 ac_ext=c
38683ac_cpp='$CPP $CPPFLAGS'
38684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38686ac_compiler_gnu=$ac_cv_c_compiler_gnu
38687
38688 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
38689echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
38690
38691 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
38692 echo $ECHO_N "(cached) $ECHO_C" >&6
38693else
38694
38695
38696################################################################
38697
38698ac_cv_func_which_gethostbyname_r=unknown
38699
38700#
38701# ONE ARGUMENT (sanity check)
38702#
38703
38704# This should fail, as there is no variant of gethostbyname_r() that takes
38705# a single argument. If it actually compiles, then we can assume that
38706# netdb.h is not declaring the function, and the compiler is thereby
38707# assuming an implicit prototype. In which case, we're out of luck.
38708#
38709cat >conftest.$ac_ext <<_ACEOF
38710/* confdefs.h. */
38711_ACEOF
38712cat confdefs.h >>conftest.$ac_ext
38713cat >>conftest.$ac_ext <<_ACEOF
38714/* end confdefs.h. */
38715#include <netdb.h>
38716int
38717main ()
38718{
38719
38720 char *name = "www.gnu.org";
38721 (void)gethostbyname_r(name) /* ; */
38722
38723 ;
38724 return 0;
38725}
38726_ACEOF
38727rm -f conftest.$ac_objext
38728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38729 (eval $ac_compile) 2>conftest.er1
38730 ac_status=$?
38731 grep -v '^ *+' conftest.er1 >conftest.err
38732 rm -f conftest.er1
38733 cat conftest.err >&5
38734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38735 (exit $ac_status); } &&
3565d135
RR
38736 { ac_try='test -z "$ac_c_werror_flag"
38737 || test ! -s conftest.err'
004ee6da
RL
38738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38739 (eval $ac_try) 2>&5
38740 ac_status=$?
38741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38742 (exit $ac_status); }; } &&
38743 { ac_try='test -s conftest.$ac_objext'
38744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38745 (eval $ac_try) 2>&5
38746 ac_status=$?
38747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38748 (exit $ac_status); }; }; then
38749 ac_cv_func_which_gethostbyname_r=no
38750else
38751 echo "$as_me: failed program was:" >&5
38752sed 's/^/| /' conftest.$ac_ext >&5
38753
38754fi
38755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38756
38757#
38758# SIX ARGUMENTS
38759# (e.g. Linux)
38760#
38761
38762if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38763
38764cat >conftest.$ac_ext <<_ACEOF
38765/* confdefs.h. */
38766_ACEOF
38767cat confdefs.h >>conftest.$ac_ext
38768cat >>conftest.$ac_ext <<_ACEOF
38769/* end confdefs.h. */
38770#include <netdb.h>
38771int
38772main ()
38773{
38774
38775 char *name = "www.gnu.org";
38776 struct hostent ret, *retp;
38777 char buf[1024];
38778 int buflen = 1024;
38779 int my_h_errno;
38780 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
38781
38782 ;
38783 return 0;
38784}
38785_ACEOF
38786rm -f conftest.$ac_objext
38787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38788 (eval $ac_compile) 2>conftest.er1
38789 ac_status=$?
38790 grep -v '^ *+' conftest.er1 >conftest.err
38791 rm -f conftest.er1
38792 cat conftest.err >&5
38793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38794 (exit $ac_status); } &&
3565d135
RR
38795 { ac_try='test -z "$ac_c_werror_flag"
38796 || test ! -s conftest.err'
004ee6da
RL
38797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38798 (eval $ac_try) 2>&5
38799 ac_status=$?
38800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38801 (exit $ac_status); }; } &&
38802 { ac_try='test -s conftest.$ac_objext'
38803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38804 (eval $ac_try) 2>&5
38805 ac_status=$?
38806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38807 (exit $ac_status); }; }; then
38808 ac_cv_func_which_gethostbyname_r=six
38809else
38810 echo "$as_me: failed program was:" >&5
38811sed 's/^/| /' conftest.$ac_ext >&5
38812
38813fi
38814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38815
38816fi
38817
38818#
38819# FIVE ARGUMENTS
38820# (e.g. Solaris)
38821#
38822
38823if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38824
38825cat >conftest.$ac_ext <<_ACEOF
38826/* confdefs.h. */
38827_ACEOF
38828cat confdefs.h >>conftest.$ac_ext
38829cat >>conftest.$ac_ext <<_ACEOF
38830/* end confdefs.h. */
38831#include <netdb.h>
38832int
38833main ()
38834{
38835
38836 char *name = "www.gnu.org";
38837 struct hostent ret;
38838 char buf[1024];
38839 int buflen = 1024;
38840 int my_h_errno;
38841 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
38842
38843 ;
38844 return 0;
38845}
38846_ACEOF
38847rm -f conftest.$ac_objext
38848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38849 (eval $ac_compile) 2>conftest.er1
38850 ac_status=$?
38851 grep -v '^ *+' conftest.er1 >conftest.err
38852 rm -f conftest.er1
38853 cat conftest.err >&5
38854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855 (exit $ac_status); } &&
3565d135
RR
38856 { ac_try='test -z "$ac_c_werror_flag"
38857 || test ! -s conftest.err'
004ee6da
RL
38858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38859 (eval $ac_try) 2>&5
38860 ac_status=$?
38861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38862 (exit $ac_status); }; } &&
38863 { ac_try='test -s conftest.$ac_objext'
38864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38865 (eval $ac_try) 2>&5
38866 ac_status=$?
38867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38868 (exit $ac_status); }; }; then
38869 ac_cv_func_which_gethostbyname_r=five
38870else
38871 echo "$as_me: failed program was:" >&5
38872sed 's/^/| /' conftest.$ac_ext >&5
38873
38874fi
38875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38876
38877fi
38878
38879#
38880# THREE ARGUMENTS
38881# (e.g. AIX, HP-UX, Tru64)
38882#
38883
38884if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38885
38886cat >conftest.$ac_ext <<_ACEOF
38887/* confdefs.h. */
38888_ACEOF
38889cat confdefs.h >>conftest.$ac_ext
38890cat >>conftest.$ac_ext <<_ACEOF
38891/* end confdefs.h. */
38892#include <netdb.h>
38893int
38894main ()
38895{
38896
38897 char *name = "www.gnu.org";
38898 struct hostent ret;
38899 struct hostent_data data;
38900 (void)gethostbyname_r(name, &ret, &data) /* ; */
38901
38902 ;
38903 return 0;
38904}
38905_ACEOF
38906rm -f conftest.$ac_objext
38907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38908 (eval $ac_compile) 2>conftest.er1
38909 ac_status=$?
38910 grep -v '^ *+' conftest.er1 >conftest.err
38911 rm -f conftest.er1
38912 cat conftest.err >&5
38913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38914 (exit $ac_status); } &&
3565d135
RR
38915 { ac_try='test -z "$ac_c_werror_flag"
38916 || test ! -s conftest.err'
004ee6da
RL
38917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38918 (eval $ac_try) 2>&5
38919 ac_status=$?
38920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38921 (exit $ac_status); }; } &&
38922 { ac_try='test -s conftest.$ac_objext'
38923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38924 (eval $ac_try) 2>&5
38925 ac_status=$?
38926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38927 (exit $ac_status); }; }; then
38928 ac_cv_func_which_gethostbyname_r=three
38929else
38930 echo "$as_me: failed program was:" >&5
38931sed 's/^/| /' conftest.$ac_ext >&5
38932
38933fi
38934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38935
38936fi
38937
38938################################################################
38939
38940
38941fi
38942
38943case "$ac_cv_func_which_gethostbyname_r" in
38944 three)
38945 echo "$as_me:$LINENO: result: three" >&5
38946echo "${ECHO_T}three" >&6
38947 cat >>confdefs.h <<\_ACEOF
38948#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
38949_ACEOF
38950
38951 ;;
38952
38953 five)
38954 echo "$as_me:$LINENO: result: five" >&5
38955echo "${ECHO_T}five" >&6
38956 cat >>confdefs.h <<\_ACEOF
38957#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
38958_ACEOF
38959
38960 ;;
38961
38962 six)
38963 echo "$as_me:$LINENO: result: six" >&5
38964echo "${ECHO_T}six" >&6
38965 cat >>confdefs.h <<\_ACEOF
38966#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
38967_ACEOF
38968
38969 ;;
38970
38971 no)
38972 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
38973echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
38974 ;;
38975
38976 unknown)
38977 echo "$as_me:$LINENO: result: can't tell" >&5
38978echo "${ECHO_T}can't tell" >&6
38979 ;;
38980
38981 *)
38982 { { echo "$as_me:$LINENO: error: internal error" >&5
38983echo "$as_me: error: internal error" >&2;}
38984 { (exit 1); exit 1; }; }
38985 ;;
38986esac
38987
38988ac_ext=c
38989ac_cpp='$CPP $CPPFLAGS'
38990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38992ac_compiler_gnu=$ac_cv_c_compiler_gnu
38993
38994
38995
38996 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
38997 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
38998 echo "$as_me:$LINENO: checking for gethostbyname" >&5
38999echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39000if test "${ac_cv_func_gethostbyname+set}" = set; then
39001 echo $ECHO_N "(cached) $ECHO_C" >&6
39002else
39003 cat >conftest.$ac_ext <<_ACEOF
39004/* confdefs.h. */
39005_ACEOF
39006cat confdefs.h >>conftest.$ac_ext
39007cat >>conftest.$ac_ext <<_ACEOF
39008/* end confdefs.h. */
39009/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39011#define gethostbyname innocuous_gethostbyname
39012
39013/* System header to define __stub macros and hopefully few prototypes,
39014 which can conflict with char gethostbyname (); below.
39015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39016 <limits.h> exists even on freestanding compilers. */
39017
39018#ifdef __STDC__
39019# include <limits.h>
39020#else
39021# include <assert.h>
39022#endif
39023
39024#undef gethostbyname
39025
39026/* Override any gcc2 internal prototype to avoid an error. */
39027#ifdef __cplusplus
39028extern "C"
39029{
39030#endif
39031/* We use char because int might match the return type of a gcc2
39032 builtin and then its argument prototype would still apply. */
39033char gethostbyname ();
39034/* The GNU C library defines this for functions which it implements
39035 to always fail with ENOSYS. Some functions are actually named
39036 something starting with __ and the normal name is an alias. */
39037#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39038choke me
39039#else
39040char (*f) () = gethostbyname;
39041#endif
39042#ifdef __cplusplus
39043}
39044#endif
39045
39046int
39047main ()
39048{
39049return f != gethostbyname;
39050 ;
39051 return 0;
39052}
39053_ACEOF
39054rm -f conftest.$ac_objext conftest$ac_exeext
39055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39056 (eval $ac_link) 2>conftest.er1
39057 ac_status=$?
39058 grep -v '^ *+' conftest.er1 >conftest.err
39059 rm -f conftest.er1
39060 cat conftest.err >&5
39061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062 (exit $ac_status); } &&
3565d135
RR
39063 { ac_try='test -z "$ac_c_werror_flag"
39064 || test ! -s conftest.err'
004ee6da
RL
39065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39066 (eval $ac_try) 2>&5
39067 ac_status=$?
39068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39069 (exit $ac_status); }; } &&
39070 { ac_try='test -s conftest$ac_exeext'
39071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39072 (eval $ac_try) 2>&5
39073 ac_status=$?
39074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39075 (exit $ac_status); }; }; then
39076 ac_cv_func_gethostbyname=yes
39077else
39078 echo "$as_me: failed program was:" >&5
39079sed 's/^/| /' conftest.$ac_ext >&5
39080
39081ac_cv_func_gethostbyname=no
39082fi
39083rm -f conftest.err conftest.$ac_objext \
39084 conftest$ac_exeext conftest.$ac_ext
39085fi
39086echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39087echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39088if test $ac_cv_func_gethostbyname = yes; then
39089 cat >>confdefs.h <<\_ACEOF
39090#define HAVE_GETHOSTBYNAME 1
39091_ACEOF
39092
39093fi
39094
39095 fi
39096 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39097echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39098if test "${ac_cv_func_getservbyname_r+set}" = set; then
39099 echo $ECHO_N "(cached) $ECHO_C" >&6
39100else
39101 cat >conftest.$ac_ext <<_ACEOF
39102/* confdefs.h. */
39103_ACEOF
39104cat confdefs.h >>conftest.$ac_ext
39105cat >>conftest.$ac_ext <<_ACEOF
39106/* end confdefs.h. */
39107/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39109#define getservbyname_r innocuous_getservbyname_r
39110
39111/* System header to define __stub macros and hopefully few prototypes,
39112 which can conflict with char getservbyname_r (); below.
39113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39114 <limits.h> exists even on freestanding compilers. */
39115
39116#ifdef __STDC__
39117# include <limits.h>
39118#else
39119# include <assert.h>
39120#endif
39121
39122#undef getservbyname_r
39123
39124/* Override any gcc2 internal prototype to avoid an error. */
39125#ifdef __cplusplus
39126extern "C"
39127{
39128#endif
39129/* We use char because int might match the return type of a gcc2
39130 builtin and then its argument prototype would still apply. */
39131char getservbyname_r ();
39132/* The GNU C library defines this for functions which it implements
39133 to always fail with ENOSYS. Some functions are actually named
39134 something starting with __ and the normal name is an alias. */
39135#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39136choke me
39137#else
39138char (*f) () = getservbyname_r;
39139#endif
39140#ifdef __cplusplus
39141}
39142#endif
39143
39144int
39145main ()
39146{
39147return f != getservbyname_r;
39148 ;
39149 return 0;
39150}
39151_ACEOF
39152rm -f conftest.$ac_objext conftest$ac_exeext
39153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39154 (eval $ac_link) 2>conftest.er1
39155 ac_status=$?
39156 grep -v '^ *+' conftest.er1 >conftest.err
39157 rm -f conftest.er1
39158 cat conftest.err >&5
39159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39160 (exit $ac_status); } &&
3565d135
RR
39161 { ac_try='test -z "$ac_c_werror_flag"
39162 || test ! -s conftest.err'
004ee6da
RL
39163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39164 (eval $ac_try) 2>&5
39165 ac_status=$?
39166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39167 (exit $ac_status); }; } &&
39168 { ac_try='test -s conftest$ac_exeext'
39169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39170 (eval $ac_try) 2>&5
39171 ac_status=$?
39172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39173 (exit $ac_status); }; }; then
39174 ac_cv_func_getservbyname_r=yes
39175else
39176 echo "$as_me: failed program was:" >&5
39177sed 's/^/| /' conftest.$ac_ext >&5
39178
39179ac_cv_func_getservbyname_r=no
39180fi
39181rm -f conftest.err conftest.$ac_objext \
39182 conftest$ac_exeext conftest.$ac_ext
39183fi
39184echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39185echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39186if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 39187 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39188/* confdefs.h. */
39189_ACEOF
39190cat confdefs.h >>conftest.$ac_ext
39191cat >>conftest.$ac_ext <<_ACEOF
39192/* end confdefs.h. */
99879bbf 39193#include <netdb.h>
004ee6da
RL
39194int
39195main ()
39196{
39197
99879bbf
MR
39198 char *name;
39199 char *proto;
39200 struct servent *se;
39201 struct servent_data data;
39202 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
39203
39204 ;
39205 return 0;
39206}
39207_ACEOF
39208rm -f conftest.$ac_objext
39209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39210 (eval $ac_compile) 2>conftest.er1
39211 ac_status=$?
39212 grep -v '^ *+' conftest.er1 >conftest.err
39213 rm -f conftest.er1
39214 cat conftest.err >&5
39215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39216 (exit $ac_status); } &&
3565d135
RR
39217 { ac_try='test -z "$ac_c_werror_flag"
39218 || test ! -s conftest.err'
004ee6da
RL
39219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39220 (eval $ac_try) 2>&5
39221 ac_status=$?
39222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39223 (exit $ac_status); }; } &&
39224 { ac_try='test -s conftest.$ac_objext'
39225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39226 (eval $ac_try) 2>&5
39227 ac_status=$?
39228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39229 (exit $ac_status); }; }; then
39230 ac_cv_func_which_getservbyname_r=four
39231else
39232 echo "$as_me: failed program was:" >&5
39233sed 's/^/| /' conftest.$ac_ext >&5
39234
99879bbf 39235cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39236/* confdefs.h. */
39237_ACEOF
39238cat confdefs.h >>conftest.$ac_ext
39239cat >>conftest.$ac_ext <<_ACEOF
39240/* end confdefs.h. */
99879bbf 39241#include <netdb.h>
004ee6da
RL
39242int
39243main ()
39244{
39245
99879bbf
MR
39246 char *name;
39247 char *proto;
39248 struct servent *se, *res;
39249 char buffer[2048];
39250 int buflen = 2048;
39251 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
39252
39253 ;
39254 return 0;
39255}
39256_ACEOF
39257rm -f conftest.$ac_objext
39258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39259 (eval $ac_compile) 2>conftest.er1
39260 ac_status=$?
39261 grep -v '^ *+' conftest.er1 >conftest.err
39262 rm -f conftest.er1
39263 cat conftest.err >&5
39264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265 (exit $ac_status); } &&
3565d135
RR
39266 { ac_try='test -z "$ac_c_werror_flag"
39267 || test ! -s conftest.err'
004ee6da
RL
39268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39269 (eval $ac_try) 2>&5
39270 ac_status=$?
39271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39272 (exit $ac_status); }; } &&
39273 { ac_try='test -s conftest.$ac_objext'
39274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39275 (eval $ac_try) 2>&5
39276 ac_status=$?
39277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39278 (exit $ac_status); }; }; then
39279 ac_cv_func_which_getservbyname_r=six
39280else
39281 echo "$as_me: failed program was:" >&5
39282sed 's/^/| /' conftest.$ac_ext >&5
39283
99879bbf 39284cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39285/* confdefs.h. */
39286_ACEOF
39287cat confdefs.h >>conftest.$ac_ext
39288cat >>conftest.$ac_ext <<_ACEOF
39289/* end confdefs.h. */
99879bbf 39290#include <netdb.h>
004ee6da
RL
39291int
39292main ()
39293{
39294
99879bbf
MR
39295 char *name;
39296 char *proto;
39297 struct servent *se;
39298 char buffer[2048];
39299 int buflen = 2048;
39300 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
39301
39302 ;
39303 return 0;
39304}
39305_ACEOF
39306rm -f conftest.$ac_objext
39307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39308 (eval $ac_compile) 2>conftest.er1
39309 ac_status=$?
39310 grep -v '^ *+' conftest.er1 >conftest.err
39311 rm -f conftest.er1
39312 cat conftest.err >&5
39313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39314 (exit $ac_status); } &&
3565d135
RR
39315 { ac_try='test -z "$ac_c_werror_flag"
39316 || test ! -s conftest.err'
004ee6da
RL
39317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39318 (eval $ac_try) 2>&5
39319 ac_status=$?
39320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39321 (exit $ac_status); }; } &&
39322 { ac_try='test -s conftest.$ac_objext'
39323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39324 (eval $ac_try) 2>&5
39325 ac_status=$?
39326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39327 (exit $ac_status); }; }; then
39328 ac_cv_func_which_getservbyname_r=five
39329else
39330 echo "$as_me: failed program was:" >&5
39331sed 's/^/| /' conftest.$ac_ext >&5
39332
39333ac_cv_func_which_getservbyname_r=no
99879bbf 39334
004ee6da
RL
39335fi
39336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39337
004ee6da
RL
39338fi
39339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39340
004ee6da
RL
39341fi
39342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
39343else
39344 ac_cv_func_which_getservbyname_r=no
39345fi
39346
004ee6da
RL
39347
39348if test $ac_cv_func_which_getservbyname_r = six; then
39349 cat >>confdefs.h <<\_ACEOF
39350#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39351_ACEOF
39352
39353elif test $ac_cv_func_which_getservbyname_r = five; then
39354 cat >>confdefs.h <<\_ACEOF
39355#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39356_ACEOF
39357
39358elif test $ac_cv_func_which_getservbyname_r = four; then
39359 cat >>confdefs.h <<\_ACEOF
39360#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39361_ACEOF
39362
004ee6da
RL
39363fi
39364
39365
39366 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39367 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39368
39369for ac_func in getservbyname
39370do
39371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39372echo "$as_me:$LINENO: checking for $ac_func" >&5
39373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39374if eval "test \"\${$as_ac_var+set}\" = set"; then
39375 echo $ECHO_N "(cached) $ECHO_C" >&6
39376else
39377 cat >conftest.$ac_ext <<_ACEOF
39378/* confdefs.h. */
39379_ACEOF
39380cat confdefs.h >>conftest.$ac_ext
39381cat >>conftest.$ac_ext <<_ACEOF
39382/* end confdefs.h. */
39383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39385#define $ac_func innocuous_$ac_func
39386
39387/* System header to define __stub macros and hopefully few prototypes,
39388 which can conflict with char $ac_func (); below.
39389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39390 <limits.h> exists even on freestanding compilers. */
39391
39392#ifdef __STDC__
39393# include <limits.h>
39394#else
39395# include <assert.h>
39396#endif
39397
39398#undef $ac_func
39399
39400/* Override any gcc2 internal prototype to avoid an error. */
39401#ifdef __cplusplus
39402extern "C"
39403{
39404#endif
39405/* We use char because int might match the return type of a gcc2
39406 builtin and then its argument prototype would still apply. */
39407char $ac_func ();
39408/* The GNU C library defines this for functions which it implements
39409 to always fail with ENOSYS. Some functions are actually named
39410 something starting with __ and the normal name is an alias. */
39411#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39412choke me
39413#else
39414char (*f) () = $ac_func;
39415#endif
39416#ifdef __cplusplus
39417}
39418#endif
39419
39420int
39421main ()
39422{
39423return f != $ac_func;
39424 ;
39425 return 0;
39426}
39427_ACEOF
39428rm -f conftest.$ac_objext conftest$ac_exeext
39429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39430 (eval $ac_link) 2>conftest.er1
39431 ac_status=$?
39432 grep -v '^ *+' conftest.er1 >conftest.err
39433 rm -f conftest.er1
39434 cat conftest.err >&5
39435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39436 (exit $ac_status); } &&
3565d135
RR
39437 { ac_try='test -z "$ac_c_werror_flag"
39438 || test ! -s conftest.err'
004ee6da
RL
39439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39440 (eval $ac_try) 2>&5
39441 ac_status=$?
39442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39443 (exit $ac_status); }; } &&
39444 { ac_try='test -s conftest$ac_exeext'
39445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39446 (eval $ac_try) 2>&5
39447 ac_status=$?
39448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39449 (exit $ac_status); }; }; then
39450 eval "$as_ac_var=yes"
39451else
39452 echo "$as_me: failed program was:" >&5
39453sed 's/^/| /' conftest.$ac_ext >&5
39454
39455eval "$as_ac_var=no"
39456fi
39457rm -f conftest.err conftest.$ac_objext \
39458 conftest$ac_exeext conftest.$ac_ext
39459fi
39460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39461echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39462if test `eval echo '${'$as_ac_var'}'` = yes; then
39463 cat >>confdefs.h <<_ACEOF
39464#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39465_ACEOF
39466 cat >>confdefs.h <<\_ACEOF
39467#define HAVE_GETSERVBYNAME 1
39468_ACEOF
39469
39470fi
39471done
39472
39473 fi
39474
004ee6da
RL
39475if test "$wxUSE_THREADS" = "yes"; then
39476 cat >>confdefs.h <<\_ACEOF
39477#define wxUSE_THREADS 1
39478_ACEOF
39479
39480
39481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39482else
39483 if test "$ac_cv_func_strtok_r" = "yes"; then
39484 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39485echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39486 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39487 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39488 echo "$as_me:$LINENO: result: yes" >&5
39489echo "${ECHO_T}yes" >&6
39490 else
39491 echo "$as_me:$LINENO: result: no" >&5
39492echo "${ECHO_T}no" >&6
39493 fi
39494 fi
39495fi
39496
39497if test "$WXGTK20" = 1 ; then
39498 cat >>confdefs.h <<_ACEOF
39499#define __WXGTK20__ $WXGTK20
39500_ACEOF
39501
39502 WXGTK12=1
39503fi
39504
39505if test "$WXGTK12" = 1 ; then
39506 cat >>confdefs.h <<_ACEOF
39507#define __WXGTK12__ $WXGTK12
39508_ACEOF
39509
39510fi
39511
39512if test "$WXGTK127" = 1 ; then
39513 cat >>confdefs.h <<_ACEOF
39514#define __WXGTK127__ $WXGTK127
39515_ACEOF
39516
39517fi
39518
39519if test "$WXGPE" = 1 ; then
39520 cat >>confdefs.h <<_ACEOF
39521#define __WXGPE__ $WXGPE
39522_ACEOF
39523
39524fi
39525
39526DEBUG_CFLAGS=
39527if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39528 DEBUG_CFLAGS="-g"
39529 wxUSE_OPTIMISE=no
39530fi
39531
39532if test "$wxUSE_DEBUG_GDB" = "yes" ; then
39533 wxUSE_DEBUG_INFO=yes
39534 if test "$GCC" = yes; then
39535 DEBUG_CFLAGS="-ggdb"
39536 fi
39537fi
39538
39539if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
39540 cat >>confdefs.h <<\_ACEOF
39541#define WXDEBUG 1
39542_ACEOF
39543
39544 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
39545else
39546 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
39547 if test "x$wxGTK_VERSION" = "x1" ; then
39548 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
39549 fi
004ee6da
RL
39550 fi
39551fi
39552
39553if test "$wxUSE_MEM_TRACING" = "yes" ; then
39554 cat >>confdefs.h <<\_ACEOF
39555#define wxUSE_MEMORY_TRACING 1
39556_ACEOF
39557
39558 cat >>confdefs.h <<\_ACEOF
39559#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
39560_ACEOF
39561
39562 cat >>confdefs.h <<\_ACEOF
39563#define wxUSE_DEBUG_NEW_ALWAYS 1
39564_ACEOF
39565
39566 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
39567fi
39568
39569if test "$wxUSE_DMALLOC" = "yes" ; then
39570 DMALLOC_LIBS="-ldmallocthcxx"
39571fi
39572
39573PROFILE_FLAGS=
39574if test "$wxUSE_PROFILE" = "yes" ; then
39575 PROFILE_FLAGS=" -pg"
39576fi
39577
39578if test "$GCC" = "yes" ; then
39579 if test "$wxUSE_NO_RTTI" = "yes" ; then
39580 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
39581 fi
39582 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39583 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
39584 fi
39585 if test "$wxUSE_PERMISSIVE" = "yes" ; then
39586 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
39587 fi
39588
39589 case "${host}" in
39590 powerpc*-*-aix* )
39591 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
39592 ;;
39593 *-hppa* )
39594 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
39595 ;;
39596 esac
39597fi
39598
39599OPTIMISE_CFLAGS=
39600if test "$wxUSE_OPTIMISE" = "no" ; then
39601 if test "$GCC" = yes ; then
39602 OPTIMISE_CFLAGS="-O0"
39603 fi
39604else
39605 if test "$GCC" = yes ; then
39606 OPTIMISE_CFLAGS="-O2"
39607 else
39608 OPTIMISE_CFLAGS="-O"
39609 fi
39610fi
39611
39612
39613if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
39614 cat >>confdefs.h <<\_ACEOF
39615#define WXWIN_COMPATIBILITY_2_4 1
39616_ACEOF
39617
39618
39619 WXWIN_COMPATIBILITY_2_6="yes"
39620fi
39621
39622if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
39623 cat >>confdefs.h <<\_ACEOF
39624#define WXWIN_COMPATIBILITY_2_6 1
39625_ACEOF
39626
39627fi
39628
39629
39630if test "$wxUSE_GUI" = "yes"; then
39631 cat >>confdefs.h <<\_ACEOF
39632#define wxUSE_GUI 1
39633_ACEOF
39634
39635
39636 fi
39637
39638
39639if test "$wxUSE_UNIX" = "yes"; then
39640 cat >>confdefs.h <<\_ACEOF
39641#define wxUSE_UNIX 1
39642_ACEOF
39643
39644fi
39645
39646
39647if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39648
39649 HAVE_DL_FUNCS=0
39650 HAVE_SHL_FUNCS=0
39651 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39652 if test "$USE_DARWIN" = 1; then
39653 HAVE_DL_FUNCS=1
39654 elif test "$USE_DOS" = 1; then
39655 HAVE_DL_FUNCS=0
39656 else
39657
39658for ac_func in dlopen
39659do
39660as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39661echo "$as_me:$LINENO: checking for $ac_func" >&5
39662echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39663if eval "test \"\${$as_ac_var+set}\" = set"; then
39664 echo $ECHO_N "(cached) $ECHO_C" >&6
39665else
39666 cat >conftest.$ac_ext <<_ACEOF
39667/* confdefs.h. */
39668_ACEOF
39669cat confdefs.h >>conftest.$ac_ext
39670cat >>conftest.$ac_ext <<_ACEOF
39671/* end confdefs.h. */
39672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39674#define $ac_func innocuous_$ac_func
39675
39676/* System header to define __stub macros and hopefully few prototypes,
39677 which can conflict with char $ac_func (); below.
39678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39679 <limits.h> exists even on freestanding compilers. */
39680
39681#ifdef __STDC__
39682# include <limits.h>
39683#else
39684# include <assert.h>
39685#endif
39686
39687#undef $ac_func
39688
39689/* Override any gcc2 internal prototype to avoid an error. */
39690#ifdef __cplusplus
39691extern "C"
39692{
39693#endif
39694/* We use char because int might match the return type of a gcc2
39695 builtin and then its argument prototype would still apply. */
39696char $ac_func ();
39697/* The GNU C library defines this for functions which it implements
39698 to always fail with ENOSYS. Some functions are actually named
39699 something starting with __ and the normal name is an alias. */
39700#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39701choke me
39702#else
39703char (*f) () = $ac_func;
39704#endif
39705#ifdef __cplusplus
39706}
39707#endif
39708
39709int
39710main ()
39711{
39712return f != $ac_func;
a848cd7e
SC
39713 ;
39714 return 0;
39715}
39716_ACEOF
39717rm -f conftest.$ac_objext conftest$ac_exeext
39718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39719 (eval $ac_link) 2>conftest.er1
a848cd7e 39720 ac_status=$?
ac1cb8d3
VS
39721 grep -v '^ *+' conftest.er1 >conftest.err
39722 rm -f conftest.er1
39723 cat conftest.err >&5
a848cd7e
SC
39724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39725 (exit $ac_status); } &&
3565d135
RR
39726 { ac_try='test -z "$ac_c_werror_flag"
39727 || test ! -s conftest.err'
ac1cb8d3
VS
39728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39729 (eval $ac_try) 2>&5
39730 ac_status=$?
39731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39732 (exit $ac_status); }; } &&
39733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39735 (eval $ac_try) 2>&5
39736 ac_status=$?
39737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39738 (exit $ac_status); }; }; then
39739 eval "$as_ac_var=yes"
39740else
39741 echo "$as_me: failed program was:" >&5
39742sed 's/^/| /' conftest.$ac_ext >&5
39743
39744eval "$as_ac_var=no"
39745fi
ac1cb8d3
VS
39746rm -f conftest.err conftest.$ac_objext \
39747 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39748fi
39749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39750echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39751if test `eval echo '${'$as_ac_var'}'` = yes; then
39752 cat >>confdefs.h <<_ACEOF
39753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39754_ACEOF
39755
39756 cat >>confdefs.h <<\_ACEOF
39757#define HAVE_DLOPEN 1
39758_ACEOF
39759
39760 HAVE_DL_FUNCS=1
39761
39762else
39763
39764 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39765echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
39766if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39767 echo $ECHO_N "(cached) $ECHO_C" >&6
39768else
39769 ac_check_lib_save_LIBS=$LIBS
39770LIBS="-ldl $LIBS"
39771cat >conftest.$ac_ext <<_ACEOF
39772/* confdefs.h. */
39773_ACEOF
39774cat confdefs.h >>conftest.$ac_ext
39775cat >>conftest.$ac_ext <<_ACEOF
39776/* end confdefs.h. */
39777
39778/* Override any gcc2 internal prototype to avoid an error. */
39779#ifdef __cplusplus
39780extern "C"
39781#endif
39782/* We use char because int might match the return type of a gcc2
39783 builtin and then its argument prototype would still apply. */
39784char dlopen ();
39785int
39786main ()
39787{
39788dlopen ();
39789 ;
39790 return 0;
39791}
39792_ACEOF
39793rm -f conftest.$ac_objext conftest$ac_exeext
39794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39795 (eval $ac_link) 2>conftest.er1
a848cd7e 39796 ac_status=$?
ac1cb8d3
VS
39797 grep -v '^ *+' conftest.er1 >conftest.err
39798 rm -f conftest.er1
39799 cat conftest.err >&5
a848cd7e
SC
39800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39801 (exit $ac_status); } &&
3565d135
RR
39802 { ac_try='test -z "$ac_c_werror_flag"
39803 || test ! -s conftest.err'
ac1cb8d3
VS
39804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39805 (eval $ac_try) 2>&5
39806 ac_status=$?
39807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39808 (exit $ac_status); }; } &&
39809 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39811 (eval $ac_try) 2>&5
39812 ac_status=$?
39813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39814 (exit $ac_status); }; }; then
39815 ac_cv_lib_dl_dlopen=yes
39816else
39817 echo "$as_me: failed program was:" >&5
39818sed 's/^/| /' conftest.$ac_ext >&5
39819
39820ac_cv_lib_dl_dlopen=no
39821fi
ac1cb8d3
VS
39822rm -f conftest.err conftest.$ac_objext \
39823 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39824LIBS=$ac_check_lib_save_LIBS
39825fi
39826echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39827echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
39828if test $ac_cv_lib_dl_dlopen = yes; then
39829
39830 cat >>confdefs.h <<\_ACEOF
39831#define HAVE_DLOPEN 1
39832_ACEOF
39833
39834 HAVE_DL_FUNCS=1
39835 DL_LINK=" -ldl$DL_LINK"
39836
39837else
39838
39839
39840for ac_func in shl_load
39841do
39842as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39843echo "$as_me:$LINENO: checking for $ac_func" >&5
39844echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39845if eval "test \"\${$as_ac_var+set}\" = set"; then
39846 echo $ECHO_N "(cached) $ECHO_C" >&6
39847else
39848 cat >conftest.$ac_ext <<_ACEOF
39849/* confdefs.h. */
39850_ACEOF
39851cat confdefs.h >>conftest.$ac_ext
39852cat >>conftest.$ac_ext <<_ACEOF
39853/* end confdefs.h. */
ac1cb8d3
VS
39854/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39856#define $ac_func innocuous_$ac_func
39857
a848cd7e
SC
39858/* System header to define __stub macros and hopefully few prototypes,
39859 which can conflict with char $ac_func (); below.
39860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39861 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39862
a848cd7e
SC
39863#ifdef __STDC__
39864# include <limits.h>
39865#else
39866# include <assert.h>
39867#endif
ac1cb8d3
VS
39868
39869#undef $ac_func
39870
a848cd7e
SC
39871/* Override any gcc2 internal prototype to avoid an error. */
39872#ifdef __cplusplus
39873extern "C"
39874{
39875#endif
39876/* We use char because int might match the return type of a gcc2
39877 builtin and then its argument prototype would still apply. */
39878char $ac_func ();
39879/* The GNU C library defines this for functions which it implements
39880 to always fail with ENOSYS. Some functions are actually named
39881 something starting with __ and the normal name is an alias. */
39882#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39883choke me
39884#else
39885char (*f) () = $ac_func;
39886#endif
39887#ifdef __cplusplus
39888}
39889#endif
39890
39891int
39892main ()
39893{
39894return f != $ac_func;
39895 ;
39896 return 0;
39897}
39898_ACEOF
39899rm -f conftest.$ac_objext conftest$ac_exeext
39900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39901 (eval $ac_link) 2>conftest.er1
a848cd7e 39902 ac_status=$?
ac1cb8d3
VS
39903 grep -v '^ *+' conftest.er1 >conftest.err
39904 rm -f conftest.er1
39905 cat conftest.err >&5
a848cd7e
SC
39906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907 (exit $ac_status); } &&
3565d135
RR
39908 { ac_try='test -z "$ac_c_werror_flag"
39909 || test ! -s conftest.err'
ac1cb8d3
VS
39910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39911 (eval $ac_try) 2>&5
39912 ac_status=$?
39913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39914 (exit $ac_status); }; } &&
39915 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39917 (eval $ac_try) 2>&5
39918 ac_status=$?
39919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920 (exit $ac_status); }; }; then
39921 eval "$as_ac_var=yes"
39922else
39923 echo "$as_me: failed program was:" >&5
39924sed 's/^/| /' conftest.$ac_ext >&5
39925
39926eval "$as_ac_var=no"
39927fi
ac1cb8d3
VS
39928rm -f conftest.err conftest.$ac_objext \
39929 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39930fi
39931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39932echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39933if test `eval echo '${'$as_ac_var'}'` = yes; then
39934 cat >>confdefs.h <<_ACEOF
39935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39936_ACEOF
39937
39938 cat >>confdefs.h <<\_ACEOF
39939#define HAVE_SHL_LOAD 1
39940_ACEOF
39941
39942 HAVE_SHL_FUNCS=1
39943
39944else
39945
39946 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
39947echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
39948if test "${ac_cv_lib_shl_load_dld+set}" = set; then
39949 echo $ECHO_N "(cached) $ECHO_C" >&6
39950else
39951 ac_check_lib_save_LIBS=$LIBS
39952LIBS="-lshl_load $LIBS"
39953cat >conftest.$ac_ext <<_ACEOF
39954/* confdefs.h. */
39955_ACEOF
39956cat confdefs.h >>conftest.$ac_ext
39957cat >>conftest.$ac_ext <<_ACEOF
39958/* end confdefs.h. */
39959
39960/* Override any gcc2 internal prototype to avoid an error. */
39961#ifdef __cplusplus
39962extern "C"
39963#endif
39964/* We use char because int might match the return type of a gcc2
39965 builtin and then its argument prototype would still apply. */
39966char dld ();
39967int
39968main ()
39969{
39970dld ();
39971 ;
39972 return 0;
39973}
39974_ACEOF
39975rm -f conftest.$ac_objext conftest$ac_exeext
39976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39977 (eval $ac_link) 2>conftest.er1
a848cd7e 39978 ac_status=$?
ac1cb8d3
VS
39979 grep -v '^ *+' conftest.er1 >conftest.err
39980 rm -f conftest.er1
39981 cat conftest.err >&5
a848cd7e
SC
39982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39983 (exit $ac_status); } &&
3565d135
RR
39984 { ac_try='test -z "$ac_c_werror_flag"
39985 || test ! -s conftest.err'
ac1cb8d3
VS
39986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39987 (eval $ac_try) 2>&5
39988 ac_status=$?
39989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39990 (exit $ac_status); }; } &&
39991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39993 (eval $ac_try) 2>&5
39994 ac_status=$?
39995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39996 (exit $ac_status); }; }; then
39997 ac_cv_lib_shl_load_dld=yes
39998else
39999 echo "$as_me: failed program was:" >&5
40000sed 's/^/| /' conftest.$ac_ext >&5
40001
40002ac_cv_lib_shl_load_dld=no
40003fi
ac1cb8d3
VS
40004rm -f conftest.err conftest.$ac_objext \
40005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40006LIBS=$ac_check_lib_save_LIBS
40007fi
40008echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40009echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40010if test $ac_cv_lib_shl_load_dld = yes; then
40011
40012 HAVE_SHL_FUNCS=1
40013 DL_LINK=" -ldld$DL_LINK"
40014
40015fi
40016
40017
40018fi
40019done
40020
40021
40022fi
40023
40024
40025fi
40026done
40027
40028
40029 if test "$HAVE_DL_FUNCS" = 1; then
40030
40031for ac_func in dlerror
40032do
40033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40034echo "$as_me:$LINENO: checking for $ac_func" >&5
40035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40036if eval "test \"\${$as_ac_var+set}\" = set"; then
40037 echo $ECHO_N "(cached) $ECHO_C" >&6
40038else
40039 cat >conftest.$ac_ext <<_ACEOF
40040/* confdefs.h. */
40041_ACEOF
40042cat confdefs.h >>conftest.$ac_ext
40043cat >>conftest.$ac_ext <<_ACEOF
40044/* end confdefs.h. */
ac1cb8d3
VS
40045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40047#define $ac_func innocuous_$ac_func
40048
a848cd7e
SC
40049/* System header to define __stub macros and hopefully few prototypes,
40050 which can conflict with char $ac_func (); below.
40051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40052 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40053
a848cd7e
SC
40054#ifdef __STDC__
40055# include <limits.h>
40056#else
40057# include <assert.h>
40058#endif
ac1cb8d3
VS
40059
40060#undef $ac_func
40061
a848cd7e
SC
40062/* Override any gcc2 internal prototype to avoid an error. */
40063#ifdef __cplusplus
40064extern "C"
40065{
40066#endif
40067/* We use char because int might match the return type of a gcc2
40068 builtin and then its argument prototype would still apply. */
40069char $ac_func ();
40070/* The GNU C library defines this for functions which it implements
40071 to always fail with ENOSYS. Some functions are actually named
40072 something starting with __ and the normal name is an alias. */
40073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40074choke me
40075#else
40076char (*f) () = $ac_func;
40077#endif
40078#ifdef __cplusplus
40079}
40080#endif
40081
40082int
40083main ()
40084{
40085return f != $ac_func;
40086 ;
40087 return 0;
40088}
40089_ACEOF
40090rm -f conftest.$ac_objext conftest$ac_exeext
40091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40092 (eval $ac_link) 2>conftest.er1
a848cd7e 40093 ac_status=$?
ac1cb8d3
VS
40094 grep -v '^ *+' conftest.er1 >conftest.err
40095 rm -f conftest.er1
40096 cat conftest.err >&5
a848cd7e
SC
40097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40098 (exit $ac_status); } &&
3565d135
RR
40099 { ac_try='test -z "$ac_c_werror_flag"
40100 || test ! -s conftest.err'
ac1cb8d3
VS
40101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40102 (eval $ac_try) 2>&5
40103 ac_status=$?
40104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105 (exit $ac_status); }; } &&
40106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40108 (eval $ac_try) 2>&5
40109 ac_status=$?
40110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40111 (exit $ac_status); }; }; then
40112 eval "$as_ac_var=yes"
40113else
40114 echo "$as_me: failed program was:" >&5
40115sed 's/^/| /' conftest.$ac_ext >&5
40116
40117eval "$as_ac_var=no"
40118fi
ac1cb8d3
VS
40119rm -f conftest.err conftest.$ac_objext \
40120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40121fi
40122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40123echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40124if test `eval echo '${'$as_ac_var'}'` = yes; then
40125 cat >>confdefs.h <<_ACEOF
40126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40127_ACEOF
40128 cat >>confdefs.h <<\_ACEOF
40129#define HAVE_DLERROR 1
40130_ACEOF
40131
40132else
40133
40134 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40135echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40136if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40137 echo $ECHO_N "(cached) $ECHO_C" >&6
40138else
40139 ac_check_lib_save_LIBS=$LIBS
40140LIBS="-ldl $LIBS"
40141cat >conftest.$ac_ext <<_ACEOF
40142/* confdefs.h. */
40143_ACEOF
40144cat confdefs.h >>conftest.$ac_ext
40145cat >>conftest.$ac_ext <<_ACEOF
40146/* end confdefs.h. */
40147
40148/* Override any gcc2 internal prototype to avoid an error. */
40149#ifdef __cplusplus
40150extern "C"
40151#endif
40152/* We use char because int might match the return type of a gcc2
40153 builtin and then its argument prototype would still apply. */
40154char dlerror ();
40155int
40156main ()
40157{
40158dlerror ();
40159 ;
40160 return 0;
40161}
40162_ACEOF
40163rm -f conftest.$ac_objext conftest$ac_exeext
40164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40165 (eval $ac_link) 2>conftest.er1
a848cd7e 40166 ac_status=$?
ac1cb8d3
VS
40167 grep -v '^ *+' conftest.er1 >conftest.err
40168 rm -f conftest.er1
40169 cat conftest.err >&5
a848cd7e
SC
40170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40171 (exit $ac_status); } &&
3565d135
RR
40172 { ac_try='test -z "$ac_c_werror_flag"
40173 || test ! -s conftest.err'
ac1cb8d3
VS
40174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40175 (eval $ac_try) 2>&5
40176 ac_status=$?
40177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40178 (exit $ac_status); }; } &&
40179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40181 (eval $ac_try) 2>&5
40182 ac_status=$?
40183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40184 (exit $ac_status); }; }; then
40185 ac_cv_lib_dl_dlerror=yes
40186else
40187 echo "$as_me: failed program was:" >&5
40188sed 's/^/| /' conftest.$ac_ext >&5
40189
40190ac_cv_lib_dl_dlerror=no
40191fi
ac1cb8d3
VS
40192rm -f conftest.err conftest.$ac_objext \
40193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40194LIBS=$ac_check_lib_save_LIBS
40195fi
40196echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40197echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40198if test $ac_cv_lib_dl_dlerror = yes; then
40199 cat >>confdefs.h <<\_ACEOF
40200#define HAVE_DLERROR 1
40201_ACEOF
40202
40203fi
40204
40205
40206
40207fi
40208done
40209
40210 fi
40211 fi
40212
40213 if test "$HAVE_DL_FUNCS" = 0; then
40214 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40215 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40216 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40217echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40218 wxUSE_DYNAMIC_LOADER=no
40219 wxUSE_DYNLIB_CLASS=no
40220 else
40221 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40222echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40223 fi
40224 fi
40225 fi
40226 fi
40227fi
40228
40229if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40230 cat >>confdefs.h <<\_ACEOF
40231#define wxUSE_DYNAMIC_LOADER 1
40232_ACEOF
40233
40234fi
40235if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40236 cat >>confdefs.h <<\_ACEOF
40237#define wxUSE_DYNLIB_CLASS 1
40238_ACEOF
40239
40240fi
40241
40242
40243
40244if test "$wxUSE_PLUGINS" = "yes" ; then
40245 if test "$wxUSE_SHARED" = "no" ; then
40246 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40247echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40248 wxUSE_PLUGINS=no
40249 fi
40250 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40251 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40252echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40253 wxUSE_PLUGINS=no
40254 fi
40255 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40256 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40257echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40258 wxUSE_PLUGINS=no
40259 fi
40260 if test "$wxUSE_PLUGINS" = "yes" ; then
40261 cat >>confdefs.h <<\_ACEOF
40262#define wxUSE_PLUGINS 1
40263_ACEOF
40264
40265 fi
40266fi
40267
40268
40269if test "$wxUSE_STL" = "yes"; then
40270 cat >>confdefs.h <<\_ACEOF
40271#define wxUSE_STL 1
40272_ACEOF
40273
40274fi
40275
40276if test "$wxUSE_APPLE_IEEE" = "yes"; then
40277 cat >>confdefs.h <<\_ACEOF
40278#define wxUSE_APPLE_IEEE 1
40279_ACEOF
40280
40281fi
40282
40283if test "$wxUSE_TIMER" = "yes"; then
40284 cat >>confdefs.h <<\_ACEOF
40285#define wxUSE_TIMER 1
40286_ACEOF
40287
40288fi
40289
9c112555 40290if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40291 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40292echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40293if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40294 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40295else
d12aef51
VZ
40296
40297 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40298/* confdefs.h. */
40299_ACEOF
40300cat confdefs.h >>conftest.$ac_ext
40301cat >>conftest.$ac_ext <<_ACEOF
40302/* end confdefs.h. */
d12aef51
VZ
40303
40304 #include <sys/soundcard.h>
40305
40306int
40307main ()
40308{
40309
40310 ioctl(0, SNDCTL_DSP_SYNC, 0);
40311
40312 ;
40313 return 0;
40314}
a848cd7e 40315_ACEOF
d12aef51
VZ
40316rm -f conftest.$ac_objext conftest$ac_exeext
40317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40318 (eval $ac_link) 2>conftest.er1
a848cd7e 40319 ac_status=$?
ac1cb8d3
VS
40320 grep -v '^ *+' conftest.er1 >conftest.err
40321 rm -f conftest.er1
40322 cat conftest.err >&5
a848cd7e
SC
40323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324 (exit $ac_status); } &&
3565d135
RR
40325 { ac_try='test -z "$ac_c_werror_flag"
40326 || test ! -s conftest.err'
ac1cb8d3
VS
40327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40328 (eval $ac_try) 2>&5
40329 ac_status=$?
40330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40331 (exit $ac_status); }; } &&
d12aef51 40332 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40334 (eval $ac_try) 2>&5
40335 ac_status=$?
40336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40337 (exit $ac_status); }; }; then
d12aef51 40338 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40339else
40340 echo "$as_me: failed program was:" >&5
40341sed 's/^/| /' conftest.$ac_ext >&5
40342
a848cd7e 40343
d12aef51
VZ
40344 saveLibs="$LIBS"
40345 LIBS="$saveLibs -lossaudio"
40346 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40347/* confdefs.h. */
40348_ACEOF
40349cat confdefs.h >>conftest.$ac_ext
40350cat >>conftest.$ac_ext <<_ACEOF
40351/* end confdefs.h. */
d12aef51
VZ
40352
40353 #include <sys/soundcard.h>
40354
40355int
40356main ()
40357{
40358
40359 ioctl(0, SNDCTL_DSP_SYNC, 0);
40360
40361 ;
40362 return 0;
40363}
a848cd7e 40364_ACEOF
d12aef51
VZ
40365rm -f conftest.$ac_objext conftest$ac_exeext
40366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40367 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40368 ac_status=$?
40369 grep -v '^ *+' conftest.er1 >conftest.err
40370 rm -f conftest.er1
40371 cat conftest.err >&5
40372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40373 (exit $ac_status); } &&
3565d135
RR
40374 { ac_try='test -z "$ac_c_werror_flag"
40375 || test ! -s conftest.err'
d12aef51
VZ
40376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40377 (eval $ac_try) 2>&5
40378 ac_status=$?
40379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40380 (exit $ac_status); }; } &&
40381 { ac_try='test -s conftest$ac_exeext'
40382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40383 (eval $ac_try) 2>&5
40384 ac_status=$?
40385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40386 (exit $ac_status); }; }; then
40387 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40388else
40389 echo "$as_me: failed program was:" >&5
40390sed 's/^/| /' conftest.$ac_ext >&5
40391
a848cd7e 40392
d12aef51
VZ
40393 LIBS="$saveLibs"
40394 ac_cv_header_sys_soundcard=no
40395
40396
a848cd7e 40397fi
d12aef51
VZ
40398rm -f conftest.err conftest.$ac_objext \
40399 conftest$ac_exeext conftest.$ac_ext
40400
a848cd7e
SC
40401
40402fi
d12aef51
VZ
40403rm -f conftest.err conftest.$ac_objext \
40404 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40405
40406fi
d12aef51
VZ
40407echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40408echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 40409
d12aef51
VZ
40410 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40411 cat >>confdefs.h <<\_ACEOF
40412#define HAVE_SYS_SOUNDCARD_H 1
40413_ACEOF
a848cd7e 40414
d12aef51
VZ
40415 else
40416 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40417 fi
9c112555
MW
40418fi
40419WITH_PLUGIN_SDL=0
40420if test "$wxUSE_SOUND" = "yes"; then
40421 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
40422 if test "$wxUSE_LIBSDL" != "no"; then
40423
40424# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40425if test "${with_sdl_prefix+set}" = set; then
40426 withval="$with_sdl_prefix"
40427 sdl_prefix="$withval"
40428else
40429 sdl_prefix=""
40430fi;
40431
40432# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40433if test "${with_sdl_exec_prefix+set}" = set; then
40434 withval="$with_sdl_exec_prefix"
40435 sdl_exec_prefix="$withval"
40436else
40437 sdl_exec_prefix=""
40438fi;
40439# Check whether --enable-sdltest or --disable-sdltest was given.
40440if test "${enable_sdltest+set}" = set; then
40441 enableval="$enable_sdltest"
40442
40443else
40444 enable_sdltest=yes
40445fi;
40446
40447 if test x$sdl_exec_prefix != x ; then
40448 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40449 if test x${SDL_CONFIG+set} != xset ; then
40450 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40451 fi
40452 fi
40453 if test x$sdl_prefix != x ; then
40454 sdl_args="$sdl_args --prefix=$sdl_prefix"
40455 if test x${SDL_CONFIG+set} != xset ; then
40456 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40457 fi
40458 fi
40459
40460
40461 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40462 # Extract the first word of "sdl-config", so it can be a program name with args.
40463set dummy sdl-config; ac_word=$2
40464echo "$as_me:$LINENO: checking for $ac_word" >&5
40465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40466if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40467 echo $ECHO_N "(cached) $ECHO_C" >&6
40468else
40469 case $SDL_CONFIG in
40470 [\\/]* | ?:[\\/]*)
40471 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40472 ;;
40473 *)
40474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40475for as_dir in $PATH
40476do
40477 IFS=$as_save_IFS
40478 test -z "$as_dir" && as_dir=.
40479 for ac_exec_ext in '' $ac_executable_extensions; do
40480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40481 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40483 break 2
40484 fi
40485done
40486done
40487
40488 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40489 ;;
40490esac
40491fi
40492SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40493
40494if test -n "$SDL_CONFIG"; then
40495 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40496echo "${ECHO_T}$SDL_CONFIG" >&6
40497else
40498 echo "$as_me:$LINENO: result: no" >&5
40499echo "${ECHO_T}no" >&6
40500fi
40501
40502 min_sdl_version=1.2.0
40503 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40504echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40505 no_sdl=""
40506 if test "$SDL_CONFIG" = "no" ; then
40507 no_sdl=yes
40508 else
40509 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40510 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40511
40512 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40513 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40514 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40515 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40516 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40517 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40518 if test "x$enable_sdltest" = "xyes" ; then
40519 ac_save_CFLAGS="$CFLAGS"
94acd38e 40520 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
40521 ac_save_LIBS="$LIBS"
40522 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40523 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40524 LIBS="$LIBS $SDL_LIBS"
40525 rm -f conf.sdltest
40526 if test "$cross_compiling" = yes; then
40527 echo $ac_n "cross compiling; assumed OK... $ac_c"
40528else
40529 cat >conftest.$ac_ext <<_ACEOF
40530/* confdefs.h. */
40531_ACEOF
40532cat confdefs.h >>conftest.$ac_ext
40533cat >>conftest.$ac_ext <<_ACEOF
40534/* end confdefs.h. */
40535
40536#include <stdio.h>
40537#include <stdlib.h>
40538#include <string.h>
40539#include "SDL.h"
40540
40541char*
40542my_strdup (char *str)
40543{
40544 char *new_str;
40545
40546 if (str)
40547 {
40548 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
40549 strcpy (new_str, str);
40550 }
40551 else
40552 new_str = NULL;
40553
40554 return new_str;
40555}
40556
40557int main (int argc, char *argv[])
40558{
40559 int major, minor, micro;
40560 char *tmp_version;
40561
40562 /* This hangs on some systems (?)
40563 system ("touch conf.sdltest");
40564 */
40565 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
40566
40567 /* HP/UX 9 (%@#!) writes to sscanf strings */
40568 tmp_version = my_strdup("$min_sdl_version");
40569 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
40570 printf("%s, bad version string\n", "$min_sdl_version");
40571 exit(1);
40572 }
40573
40574 if (($sdl_major_version > major) ||
40575 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
40576 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
40577 {
40578 return 0;
40579 }
40580 else
40581 {
40582 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
40583 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
40584 printf("*** best to upgrade to the required version.\n");
40585 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
40586 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
40587 printf("*** config.cache before re-running configure\n");
40588 return 1;
40589 }
40590}
40591
40592
40593_ACEOF
40594rm -f conftest$ac_exeext
40595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40596 (eval $ac_link) 2>&5
40597 ac_status=$?
40598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40601 (eval $ac_try) 2>&5
40602 ac_status=$?
40603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40604 (exit $ac_status); }; }; then
40605 :
40606else
40607 echo "$as_me: program exited with status $ac_status" >&5
40608echo "$as_me: failed program was:" >&5
40609sed 's/^/| /' conftest.$ac_ext >&5
40610
40611( exit $ac_status )
40612no_sdl=yes
40613fi
ac1cb8d3 40614rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40615fi
40616 CFLAGS="$ac_save_CFLAGS"
94acd38e 40617 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40618 LIBS="$ac_save_LIBS"
40619 fi
40620 fi
40621 if test "x$no_sdl" = x ; then
40622 echo "$as_me:$LINENO: result: yes" >&5
40623echo "${ECHO_T}yes" >&6
40624
40625 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 40626 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
40627 cat >>confdefs.h <<\_ACEOF
40628#define wxUSE_LIBSDL 1
40629_ACEOF
40630
40631
40632 else
40633 echo "$as_me:$LINENO: result: no" >&5
40634echo "${ECHO_T}no" >&6
40635 if test "$SDL_CONFIG" = "no" ; then
40636 echo "*** The sdl-config script installed by SDL could not be found"
40637 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
40638 echo "*** your path, or set the SDL_CONFIG environment variable to the"
40639 echo "*** full path to sdl-config."
40640 else
40641 if test -f conf.sdltest ; then
40642 :
40643 else
40644 echo "*** Could not run SDL test program, checking why..."
40645 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40646 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40647 LIBS="$LIBS $SDL_LIBS"
40648 cat >conftest.$ac_ext <<_ACEOF
40649/* confdefs.h. */
40650_ACEOF
40651cat confdefs.h >>conftest.$ac_ext
40652cat >>conftest.$ac_ext <<_ACEOF
40653/* end confdefs.h. */
40654
40655#include <stdio.h>
40656#include "SDL.h"
40657
40658int main(int argc, char *argv[])
40659{ return 0; }
40660#undef main
40661#define main K_and_R_C_main
40662
40663int
40664main ()
40665{
40666 return 0;
40667 ;
40668 return 0;
40669}
40670_ACEOF
40671rm -f conftest.$ac_objext conftest$ac_exeext
40672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40673 (eval $ac_link) 2>conftest.er1
a848cd7e 40674 ac_status=$?
ac1cb8d3
VS
40675 grep -v '^ *+' conftest.er1 >conftest.err
40676 rm -f conftest.er1
40677 cat conftest.err >&5
a848cd7e
SC
40678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40679 (exit $ac_status); } &&
3565d135
RR
40680 { ac_try='test -z "$ac_c_werror_flag"
40681 || test ! -s conftest.err'
ac1cb8d3
VS
40682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40683 (eval $ac_try) 2>&5
40684 ac_status=$?
40685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40686 (exit $ac_status); }; } &&
40687 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40689 (eval $ac_try) 2>&5
40690 ac_status=$?
40691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40692 (exit $ac_status); }; }; then
40693 echo "*** The test program compiled, but did not run. This usually means"
40694 echo "*** that the run-time linker is not finding SDL or finding the wrong"
40695 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
40696 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
40697 echo "*** to the installed location Also, make sure you have run ldconfig if that"
40698 echo "*** is required on your system"
40699 echo "***"
40700 echo "*** If you have an old version installed, it is best to remove it, although"
40701 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
40702else
40703 echo "$as_me: failed program was:" >&5
40704sed 's/^/| /' conftest.$ac_ext >&5
40705
40706 echo "*** The test program failed to compile or link. See the file config.log for the"
40707 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
40708 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
40709 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
40710fi
ac1cb8d3
VS
40711rm -f conftest.err conftest.$ac_objext \
40712 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40713 CFLAGS="$ac_save_CFLAGS"
94acd38e 40714 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40715 LIBS="$ac_save_LIBS"
40716 fi
40717 fi
40718 SDL_CFLAGS=""
40719 SDL_LIBS=""
40720 wxUSE_LIBSDL="no"
40721 fi
40722
40723
40724 rm -f conf.sdltest
40725
40726 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
40727 WITH_PLUGIN_SDL=1
40728 fi
40729 fi
40730 fi
40731
40732 cat >>confdefs.h <<\_ACEOF
40733#define wxUSE_SOUND 1
40734_ACEOF
40735
40736 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
40737fi
40738
d1c38808
VZ
40739if test "$WXGTK20" = 1; then
40740 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40741 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
40742
40743
40744 succeeded=no
40745
40746 if test -z "$PKG_CONFIG"; then
40747 # Extract the first word of "pkg-config", so it can be a program name with args.
40748set dummy pkg-config; ac_word=$2
40749echo "$as_me:$LINENO: checking for $ac_word" >&5
40750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40751if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40752 echo $ECHO_N "(cached) $ECHO_C" >&6
40753else
40754 case $PKG_CONFIG in
40755 [\\/]* | ?:[\\/]*)
40756 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40757 ;;
40758 *)
40759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40760for as_dir in $PATH
40761do
40762 IFS=$as_save_IFS
40763 test -z "$as_dir" && as_dir=.
40764 for ac_exec_ext in '' $ac_executable_extensions; do
40765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40766 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40768 break 2
40769 fi
40770done
40771done
40772
40773 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40774 ;;
40775esac
40776fi
40777PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40778
40779if test -n "$PKG_CONFIG"; then
40780 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40781echo "${ECHO_T}$PKG_CONFIG" >&6
40782else
40783 echo "$as_me:$LINENO: result: no" >&5
40784echo "${ECHO_T}no" >&6
40785fi
40786
40787 fi
40788
40789 if test "$PKG_CONFIG" = "no" ; then
40790 echo "*** The pkg-config script could not be found. Make sure it is"
40791 echo "*** in your path, or set the PKG_CONFIG environment variable"
40792 echo "*** to the full path to pkg-config."
40793 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40794 else
40795 PKG_CONFIG_MIN_VERSION=0.9.0
40796 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
40797 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
40798echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 40799
ffa762ff 40800 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
40801 echo "$as_me:$LINENO: result: yes" >&5
40802echo "${ECHO_T}yes" >&6
40803 succeeded=yes
40804
40805 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
40806echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 40807 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40808 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
40809echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
40810
40811 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
40812echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 40813 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40814 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
40815echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
40816 else
40817 LIBGNOMEPRINTUI_CFLAGS=""
40818 LIBGNOMEPRINTUI_LIBS=""
40819 ## If we have a custom action on failure, don't print errors, but
40820 ## do set a variable so people can do so.
ffa762ff 40821 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40822
40823 fi
40824
40825
40826
40827 else
40828 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40829 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40830 fi
40831 fi
40832
40833 if test $succeeded = yes; then
40834
c92ad099 40835 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
40836 cat >>confdefs.h <<\_ACEOF
40837#define wxUSE_LIBGNOMEPRINT 1
40838_ACEOF
40839
40840
40841 else
40842
40843 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
40844echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
40845 wxUSE_LIBGNOMEPRINT="no"
40846
40847
40848 fi
40849
40850 fi
40851 fi
40852fi
40853
3565d135
RR
40854if test "$WXGTK20" = 1; then
40855 if test "$wxUSE_LIBHILDON" = "yes" ; then
40856
40857 succeeded=no
40858
40859 if test -z "$PKG_CONFIG"; then
40860 # Extract the first word of "pkg-config", so it can be a program name with args.
40861set dummy pkg-config; ac_word=$2
40862echo "$as_me:$LINENO: checking for $ac_word" >&5
40863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40864if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40865 echo $ECHO_N "(cached) $ECHO_C" >&6
40866else
40867 case $PKG_CONFIG in
40868 [\\/]* | ?:[\\/]*)
40869 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40870 ;;
40871 *)
40872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40873for as_dir in $PATH
40874do
40875 IFS=$as_save_IFS
40876 test -z "$as_dir" && as_dir=.
40877 for ac_exec_ext in '' $ac_executable_extensions; do
40878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40879 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40881 break 2
40882 fi
40883done
40884done
40885
40886 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40887 ;;
40888esac
40889fi
40890PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40891
40892if test -n "$PKG_CONFIG"; then
40893 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40894echo "${ECHO_T}$PKG_CONFIG" >&6
40895else
40896 echo "$as_me:$LINENO: result: no" >&5
40897echo "${ECHO_T}no" >&6
40898fi
40899
40900 fi
40901
40902 if test "$PKG_CONFIG" = "no" ; then
40903 echo "*** The pkg-config script could not be found. Make sure it is"
40904 echo "*** in your path, or set the PKG_CONFIG environment variable"
40905 echo "*** to the full path to pkg-config."
40906 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40907 else
40908 PKG_CONFIG_MIN_VERSION=0.9.0
40909 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40910 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
40911echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
40912
40913 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
40914 echo "$as_me:$LINENO: result: yes" >&5
40915echo "${ECHO_T}yes" >&6
40916 succeeded=yes
40917
40918 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
40919echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
40920 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
40921 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
40922echo "${ECHO_T}$HILDON_CFLAGS" >&6
40923
40924 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
40925echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
40926 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
40927 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
40928echo "${ECHO_T}$HILDON_LIBS" >&6
40929 else
40930 HILDON_CFLAGS=""
40931 HILDON_LIBS=""
40932 ## If we have a custom action on failure, don't print errors, but
40933 ## do set a variable so people can do so.
40934 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
40935
40936 fi
40937
40938
40939
40940 else
40941 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40942 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40943 fi
40944 fi
40945
40946 if test $succeeded = yes; then
40947
40948 EXTRALIBS_HILDON="$HILDON_LIBS"
40949 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
40950 cat >>confdefs.h <<\_ACEOF
40951#define wxUSE_LIBHILDON 1
40952_ACEOF
40953
40954
40955 else
40956
40957 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
40958echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
40959 wxUSE_LIBHILDON="no"
40960
40961
40962 fi
40963
40964 fi
40965fi
d1c38808 40966
a848cd7e
SC
40967if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
40968 cat >>confdefs.h <<\_ACEOF
40969#define wxUSE_CMDLINE_PARSER 1
40970_ACEOF
40971
40972fi
40973
40974if test "$wxUSE_STOPWATCH" = "yes"; then
40975 cat >>confdefs.h <<\_ACEOF
40976#define wxUSE_STOPWATCH 1
40977_ACEOF
40978
40979fi
40980
40981if test "$wxUSE_DATETIME" = "yes"; then
40982 cat >>confdefs.h <<\_ACEOF
40983#define wxUSE_DATETIME 1
40984_ACEOF
40985
40986fi
40987
40988if test "$wxUSE_FILE" = "yes"; then
40989 cat >>confdefs.h <<\_ACEOF
40990#define wxUSE_FILE 1
40991_ACEOF
40992
40993fi
40994
40995if test "$wxUSE_FFILE" = "yes"; then
40996 cat >>confdefs.h <<\_ACEOF
40997#define wxUSE_FFILE 1
40998_ACEOF
40999
41000fi
41001
41002if test "$wxUSE_FILESYSTEM" = "yes"; then
41003 cat >>confdefs.h <<\_ACEOF
41004#define wxUSE_FILESYSTEM 1
41005_ACEOF
41006
41007fi
41008
41009if test "$wxUSE_FS_ZIP" = "yes"; then
41010 cat >>confdefs.h <<\_ACEOF
41011#define wxUSE_FS_ZIP 1
41012_ACEOF
41013
41014fi
41015
9e8e867f 41016if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41017 cat >>confdefs.h <<\_ACEOF
9e8e867f 41018#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41019_ACEOF
41020
41021fi
41022
41023if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41024 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41025 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41026echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41027 elif test "$wxUSE_ZLIB" = "no"; then
41028 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41029echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41030 else
41031 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41032#define wxUSE_ZIPSTREAM 1
41033_ACEOF
41034
81f90336 41035 fi
a848cd7e
SC
41036fi
41037
a848cd7e 41038if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41039 if test "$USE_UNIX" != 1; then
41040 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41041echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41042 wxUSE_ON_FATAL_EXCEPTION=no
41043 else
41044 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41045#define wxUSE_ON_FATAL_EXCEPTION 1
41046_ACEOF
41047
18228ab4 41048 fi
a848cd7e
SC
41049fi
41050
eaff0f0d
VZ
41051if test "$wxUSE_STACKWALKER" = "yes"; then
41052 cat >>confdefs.h <<\_ACEOF
41053#define wxUSE_STACKWALKER 1
41054_ACEOF
41055
41056fi
41057
36b6448c 41058if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41059 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41060 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41061echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41062 wxUSE_DEBUGREPORT=no
41063 else
41064 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41065#define wxUSE_DEBUGREPORT 1
41066_ACEOF
41067
21dfc162
MW
41068 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41070 fi
dfe0c803 41071 fi
36b6448c
VZ
41072fi
41073
a848cd7e
SC
41074if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41075 cat >>confdefs.h <<\_ACEOF
41076#define wxUSE_SNGLINST_CHECKER 1
41077_ACEOF
41078
41079fi
41080
41081if test "$wxUSE_BUSYINFO" = "yes"; then
41082 cat >>confdefs.h <<\_ACEOF
41083#define wxUSE_BUSYINFO 1
41084_ACEOF
41085
41086fi
41087
41088if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41089 cat >>confdefs.h <<\_ACEOF
41090#define wxUSE_STD_IOSTREAM 1
41091_ACEOF
41092
41093fi
41094
59746b65
MW
41095if test "$wxUSE_STD_STRING" = "yes"; then
41096 cat >>confdefs.h <<\_ACEOF
41097#define wxUSE_STD_STRING 1
41098_ACEOF
41099
41100fi
41101
07158944
VZ
41102if test "$wxUSE_STDPATHS" = "yes"; then
41103 cat >>confdefs.h <<\_ACEOF
41104#define wxUSE_STDPATHS 1
41105_ACEOF
41106
41107fi
41108
a848cd7e
SC
41109if test "$wxUSE_TEXTBUFFER" = "yes"; then
41110 cat >>confdefs.h <<\_ACEOF
41111#define wxUSE_TEXTBUFFER 1
41112_ACEOF
41113
41114fi
41115
41116if test "$wxUSE_TEXTFILE" = "yes"; then
41117 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41118 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41119echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41120 else
41121 cat >>confdefs.h <<\_ACEOF
41122#define wxUSE_TEXTFILE 1
41123_ACEOF
41124
41125 fi
41126fi
41127
41128if test "$wxUSE_CONFIG" = "yes" ; then
41129 if test "$wxUSE_TEXTFILE" != "yes"; then
41130 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41131echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41132 else
41133 cat >>confdefs.h <<\_ACEOF
41134#define wxUSE_CONFIG 1
89be85c2
VS
41135_ACEOF
41136
41137 cat >>confdefs.h <<\_ACEOF
41138#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
41139_ACEOF
41140
41141 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41142 fi
41143fi
41144
41145if test "$wxUSE_INTL" = "yes" ; then
41146 if test "$wxUSE_FILE" != "yes"; then
41147 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41148echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41149 else
41150 cat >>confdefs.h <<\_ACEOF
41151#define wxUSE_INTL 1
41152_ACEOF
41153
41154 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41155 GUIDIST="$GUIDIST INTL_DIST"
41156 fi
41157fi
41158
41159if test "$wxUSE_LOG" = "yes"; then
41160 cat >>confdefs.h <<\_ACEOF
41161#define wxUSE_LOG 1
41162_ACEOF
41163
41164
41165 if test "$wxUSE_LOGGUI" = "yes"; then
41166 cat >>confdefs.h <<\_ACEOF
41167#define wxUSE_LOGGUI 1
41168_ACEOF
41169
41170 fi
41171
41172 if test "$wxUSE_LOGWINDOW" = "yes"; then
41173 cat >>confdefs.h <<\_ACEOF
41174#define wxUSE_LOGWINDOW 1
41175_ACEOF
41176
41177 fi
41178
41179 if test "$wxUSE_LOGDIALOG" = "yes"; then
41180 cat >>confdefs.h <<\_ACEOF
41181#define wxUSE_LOG_DIALOG 1
41182_ACEOF
41183
41184 fi
0b78747f
MW
41185
41186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
41187fi
41188
41189if test "$wxUSE_LONGLONG" = "yes"; then
41190 cat >>confdefs.h <<\_ACEOF
41191#define wxUSE_LONGLONG 1
41192_ACEOF
41193
41194fi
41195
41196if test "$wxUSE_GEOMETRY" = "yes"; then
41197 cat >>confdefs.h <<\_ACEOF
41198#define wxUSE_GEOMETRY 1
41199_ACEOF
41200
41201fi
41202
a848cd7e
SC
41203if test "$wxUSE_STREAMS" = "yes" ; then
41204 cat >>confdefs.h <<\_ACEOF
41205#define wxUSE_STREAMS 1
41206_ACEOF
41207
41208fi
41209
41210
41211if test "$wxUSE_DATETIME" = "yes"; then
41212
41213for ac_func in strptime
41214do
41215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41216echo "$as_me:$LINENO: checking for $ac_func" >&5
41217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41218if eval "test \"\${$as_ac_var+set}\" = set"; then
41219 echo $ECHO_N "(cached) $ECHO_C" >&6
41220else
41221 cat >conftest.$ac_ext <<_ACEOF
41222/* confdefs.h. */
41223_ACEOF
41224cat confdefs.h >>conftest.$ac_ext
41225cat >>conftest.$ac_ext <<_ACEOF
41226/* end confdefs.h. */
ac1cb8d3
VS
41227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41229#define $ac_func innocuous_$ac_func
41230
a848cd7e
SC
41231/* System header to define __stub macros and hopefully few prototypes,
41232 which can conflict with char $ac_func (); below.
41233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41234 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41235
a848cd7e
SC
41236#ifdef __STDC__
41237# include <limits.h>
41238#else
41239# include <assert.h>
41240#endif
ac1cb8d3
VS
41241
41242#undef $ac_func
41243
a848cd7e
SC
41244/* Override any gcc2 internal prototype to avoid an error. */
41245#ifdef __cplusplus
41246extern "C"
41247{
41248#endif
41249/* We use char because int might match the return type of a gcc2
41250 builtin and then its argument prototype would still apply. */
41251char $ac_func ();
41252/* The GNU C library defines this for functions which it implements
41253 to always fail with ENOSYS. Some functions are actually named
41254 something starting with __ and the normal name is an alias. */
41255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41256choke me
41257#else
41258char (*f) () = $ac_func;
41259#endif
41260#ifdef __cplusplus
41261}
41262#endif
41263
41264int
41265main ()
41266{
41267return f != $ac_func;
41268 ;
41269 return 0;
41270}
41271_ACEOF
41272rm -f conftest.$ac_objext conftest$ac_exeext
41273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41274 (eval $ac_link) 2>conftest.er1
a848cd7e 41275 ac_status=$?
ac1cb8d3
VS
41276 grep -v '^ *+' conftest.er1 >conftest.err
41277 rm -f conftest.er1
41278 cat conftest.err >&5
a848cd7e
SC
41279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41280 (exit $ac_status); } &&
3565d135
RR
41281 { ac_try='test -z "$ac_c_werror_flag"
41282 || test ! -s conftest.err'
ac1cb8d3
VS
41283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41284 (eval $ac_try) 2>&5
41285 ac_status=$?
41286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41287 (exit $ac_status); }; } &&
41288 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41290 (eval $ac_try) 2>&5
41291 ac_status=$?
41292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41293 (exit $ac_status); }; }; then
41294 eval "$as_ac_var=yes"
41295else
41296 echo "$as_me: failed program was:" >&5
41297sed 's/^/| /' conftest.$ac_ext >&5
41298
41299eval "$as_ac_var=no"
41300fi
ac1cb8d3
VS
41301rm -f conftest.err conftest.$ac_objext \
41302 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41303fi
41304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41306if test `eval echo '${'$as_ac_var'}'` = yes; then
41307 cat >>confdefs.h <<_ACEOF
41308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41309_ACEOF
41310
41311fi
41312done
41313
f536f005
VZ
41314 if test "$ac_cv_func_strptime" = "yes"; then
41315 echo "$as_me:$LINENO: checking for strptime declaration" >&5
41316echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41317if test "${wx_cv_func_strptime_decl+set}" = set; then
41318 echo $ECHO_N "(cached) $ECHO_C" >&6
41319else
41320
41321
41322
41323 ac_ext=cc
41324ac_cpp='$CXXCPP $CPPFLAGS'
41325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41328
41329 cat >conftest.$ac_ext <<_ACEOF
41330/* confdefs.h. */
41331_ACEOF
41332cat confdefs.h >>conftest.$ac_ext
41333cat >>conftest.$ac_ext <<_ACEOF
41334/* end confdefs.h. */
41335
41336 #include <time.h>
41337
41338int
41339main ()
41340{
41341
41342 struct tm t;
41343 strptime("foo", "bar", &t);
41344
41345 ;
41346 return 0;
41347}
41348_ACEOF
41349rm -f conftest.$ac_objext
41350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41351 (eval $ac_compile) 2>conftest.er1
41352 ac_status=$?
41353 grep -v '^ *+' conftest.er1 >conftest.err
41354 rm -f conftest.er1
41355 cat conftest.err >&5
41356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41357 (exit $ac_status); } &&
3565d135
RR
41358 { ac_try='test -z "$ac_cxx_werror_flag"
41359 || test ! -s conftest.err'
f536f005
VZ
41360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41361 (eval $ac_try) 2>&5
41362 ac_status=$?
41363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41364 (exit $ac_status); }; } &&
41365 { ac_try='test -s conftest.$ac_objext'
41366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41367 (eval $ac_try) 2>&5
41368 ac_status=$?
41369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41370 (exit $ac_status); }; }; then
41371 wx_cv_func_strptime_decl=yes
41372else
41373 echo "$as_me: failed program was:" >&5
41374sed 's/^/| /' conftest.$ac_ext >&5
41375
41376wx_cv_func_strptime_decl=no
41377
41378fi
41379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41380 ac_ext=c
41381ac_cpp='$CPP $CPPFLAGS'
41382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41384ac_compiler_gnu=$ac_cv_c_compiler_gnu
41385
41386
41387
41388fi
41389echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41390echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41391 fi
41392 if test "$wx_cv_func_strptime_decl" = "yes"; then
41393 cat >>confdefs.h <<\_ACEOF
41394#define HAVE_STRPTIME_DECL 1
41395_ACEOF
41396
41397 fi
a848cd7e
SC
41398
41399 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41400echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41401if test "${wx_cv_var_timezone+set}" = set; then
41402 echo $ECHO_N "(cached) $ECHO_C" >&6
41403else
41404
41405 cat >conftest.$ac_ext <<_ACEOF
41406/* confdefs.h. */
41407_ACEOF
41408cat confdefs.h >>conftest.$ac_ext
41409cat >>conftest.$ac_ext <<_ACEOF
41410/* end confdefs.h. */
41411
41412 #include <time.h>
41413
41414int
41415main ()
41416{
41417
41418 int tz;
41419 tz = timezone;
41420
41421 ;
41422 return 0;
41423}
41424_ACEOF
41425rm -f conftest.$ac_objext
41426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41427 (eval $ac_compile) 2>conftest.er1
a848cd7e 41428 ac_status=$?
ac1cb8d3
VS
41429 grep -v '^ *+' conftest.er1 >conftest.err
41430 rm -f conftest.er1
41431 cat conftest.err >&5
a848cd7e
SC
41432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41433 (exit $ac_status); } &&
3565d135
RR
41434 { ac_try='test -z "$ac_c_werror_flag"
41435 || test ! -s conftest.err'
ac1cb8d3
VS
41436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41437 (eval $ac_try) 2>&5
41438 ac_status=$?
41439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41440 (exit $ac_status); }; } &&
41441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41443 (eval $ac_try) 2>&5
41444 ac_status=$?
41445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41446 (exit $ac_status); }; }; then
41447
41448 wx_cv_var_timezone=timezone
41449
41450else
41451 echo "$as_me: failed program was:" >&5
41452sed 's/^/| /' conftest.$ac_ext >&5
41453
41454
41455 cat >conftest.$ac_ext <<_ACEOF
41456/* confdefs.h. */
41457_ACEOF
41458cat confdefs.h >>conftest.$ac_ext
41459cat >>conftest.$ac_ext <<_ACEOF
41460/* end confdefs.h. */
41461
41462 #include <time.h>
41463
41464int
41465main ()
41466{
41467
41468 int tz;
41469 tz = _timezone;
41470
41471 ;
41472 return 0;
41473}
41474_ACEOF
41475rm -f conftest.$ac_objext
41476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41477 (eval $ac_compile) 2>conftest.er1
a848cd7e 41478 ac_status=$?
ac1cb8d3
VS
41479 grep -v '^ *+' conftest.er1 >conftest.err
41480 rm -f conftest.er1
41481 cat conftest.err >&5
a848cd7e
SC
41482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41483 (exit $ac_status); } &&
3565d135
RR
41484 { ac_try='test -z "$ac_c_werror_flag"
41485 || test ! -s conftest.err'
ac1cb8d3
VS
41486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41487 (eval $ac_try) 2>&5
41488 ac_status=$?
41489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41490 (exit $ac_status); }; } &&
41491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41493 (eval $ac_try) 2>&5
41494 ac_status=$?
41495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41496 (exit $ac_status); }; }; then
41497
41498 wx_cv_var_timezone=_timezone
41499
41500else
41501 echo "$as_me: failed program was:" >&5
41502sed 's/^/| /' conftest.$ac_ext >&5
41503
41504
41505 cat >conftest.$ac_ext <<_ACEOF
41506/* confdefs.h. */
41507_ACEOF
41508cat confdefs.h >>conftest.$ac_ext
41509cat >>conftest.$ac_ext <<_ACEOF
41510/* end confdefs.h. */
41511
41512 #include <time.h>
41513
41514int
41515main ()
41516{
41517
41518 int tz;
41519 tz = __timezone;
41520
41521 ;
41522 return 0;
41523}
41524_ACEOF
41525rm -f conftest.$ac_objext
41526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41527 (eval $ac_compile) 2>conftest.er1
a848cd7e 41528 ac_status=$?
ac1cb8d3
VS
41529 grep -v '^ *+' conftest.er1 >conftest.err
41530 rm -f conftest.er1
41531 cat conftest.err >&5
a848cd7e
SC
41532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41533 (exit $ac_status); } &&
3565d135
RR
41534 { ac_try='test -z "$ac_c_werror_flag"
41535 || test ! -s conftest.err'
ac1cb8d3
VS
41536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41537 (eval $ac_try) 2>&5
41538 ac_status=$?
41539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41540 (exit $ac_status); }; } &&
41541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41543 (eval $ac_try) 2>&5
41544 ac_status=$?
41545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41546 (exit $ac_status); }; }; then
41547
41548 wx_cv_var_timezone=__timezone
41549
41550else
41551 echo "$as_me: failed program was:" >&5
41552sed 's/^/| /' conftest.$ac_ext >&5
41553
41554
41555 if test "$USE_DOS" = 0 ; then
41556 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
41557echo "$as_me: WARNING: no timezone variable" >&2;}
41558 fi
41559
41560
41561fi
ac1cb8d3 41562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41563
41564
41565fi
ac1cb8d3 41566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41567
41568
41569fi
ac1cb8d3 41570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41571
41572
41573fi
41574echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
41575echo "${ECHO_T}$wx_cv_var_timezone" >&6
41576
41577 if test "x$wx_cv_var_timezone" != x ; then
41578 cat >>confdefs.h <<_ACEOF
41579#define WX_TIMEZONE $wx_cv_var_timezone
41580_ACEOF
41581
41582 fi
41583
41584
41585for ac_func in localtime
41586do
41587as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41588echo "$as_me:$LINENO: checking for $ac_func" >&5
41589echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41590if eval "test \"\${$as_ac_var+set}\" = set"; then
41591 echo $ECHO_N "(cached) $ECHO_C" >&6
41592else
41593 cat >conftest.$ac_ext <<_ACEOF
41594/* confdefs.h. */
41595_ACEOF
41596cat confdefs.h >>conftest.$ac_ext
41597cat >>conftest.$ac_ext <<_ACEOF
41598/* end confdefs.h. */
ac1cb8d3
VS
41599/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41601#define $ac_func innocuous_$ac_func
41602
a848cd7e
SC
41603/* System header to define __stub macros and hopefully few prototypes,
41604 which can conflict with char $ac_func (); below.
41605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41606 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41607
a848cd7e
SC
41608#ifdef __STDC__
41609# include <limits.h>
41610#else
41611# include <assert.h>
41612#endif
ac1cb8d3
VS
41613
41614#undef $ac_func
41615
a848cd7e
SC
41616/* Override any gcc2 internal prototype to avoid an error. */
41617#ifdef __cplusplus
41618extern "C"
41619{
41620#endif
41621/* We use char because int might match the return type of a gcc2
41622 builtin and then its argument prototype would still apply. */
41623char $ac_func ();
41624/* The GNU C library defines this for functions which it implements
41625 to always fail with ENOSYS. Some functions are actually named
41626 something starting with __ and the normal name is an alias. */
41627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41628choke me
41629#else
41630char (*f) () = $ac_func;
41631#endif
41632#ifdef __cplusplus
41633}
41634#endif
41635
41636int
41637main ()
41638{
41639return f != $ac_func;
41640 ;
41641 return 0;
41642}
41643_ACEOF
41644rm -f conftest.$ac_objext conftest$ac_exeext
41645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41646 (eval $ac_link) 2>conftest.er1
a848cd7e 41647 ac_status=$?
ac1cb8d3
VS
41648 grep -v '^ *+' conftest.er1 >conftest.err
41649 rm -f conftest.er1
41650 cat conftest.err >&5
a848cd7e
SC
41651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41652 (exit $ac_status); } &&
3565d135
RR
41653 { ac_try='test -z "$ac_c_werror_flag"
41654 || test ! -s conftest.err'
ac1cb8d3
VS
41655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41656 (eval $ac_try) 2>&5
41657 ac_status=$?
41658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41659 (exit $ac_status); }; } &&
41660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41662 (eval $ac_try) 2>&5
41663 ac_status=$?
41664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41665 (exit $ac_status); }; }; then
41666 eval "$as_ac_var=yes"
41667else
41668 echo "$as_me: failed program was:" >&5
41669sed 's/^/| /' conftest.$ac_ext >&5
41670
41671eval "$as_ac_var=no"
41672fi
ac1cb8d3
VS
41673rm -f conftest.err conftest.$ac_objext \
41674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41675fi
41676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41677echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41678if test `eval echo '${'$as_ac_var'}'` = yes; then
41679 cat >>confdefs.h <<_ACEOF
41680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41681_ACEOF
41682
41683fi
41684done
41685
41686
41687 if test "$ac_cv_func_localtime" = "yes"; then
41688 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41689echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
41690if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
41691 echo $ECHO_N "(cached) $ECHO_C" >&6
41692else
41693
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
41701 #include <time.h>
41702
41703int
41704main ()
41705{
41706
41707 struct tm tm;
41708 tm.tm_gmtoff++;
41709
41710 ;
41711 return 0;
41712}
41713_ACEOF
41714rm -f conftest.$ac_objext
41715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41716 (eval $ac_compile) 2>conftest.er1
a848cd7e 41717 ac_status=$?
ac1cb8d3
VS
41718 grep -v '^ *+' conftest.er1 >conftest.err
41719 rm -f conftest.er1
41720 cat conftest.err >&5
a848cd7e
SC
41721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41722 (exit $ac_status); } &&
3565d135
RR
41723 { ac_try='test -z "$ac_c_werror_flag"
41724 || test ! -s conftest.err'
ac1cb8d3
VS
41725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41726 (eval $ac_try) 2>&5
41727 ac_status=$?
41728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41729 (exit $ac_status); }; } &&
41730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41732 (eval $ac_try) 2>&5
41733 ac_status=$?
41734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41735 (exit $ac_status); }; }; then
41736
41737 wx_cv_struct_tm_has_gmtoff=yes
41738
41739else
41740 echo "$as_me: failed program was:" >&5
41741sed 's/^/| /' conftest.$ac_ext >&5
41742
41743wx_cv_struct_tm_has_gmtoff=no
41744
41745fi
ac1cb8d3 41746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41747
41748fi
41749echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
41750echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
41751 fi
41752
41753 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
41754 cat >>confdefs.h <<\_ACEOF
41755#define WX_GMTOFF_IN_TM 1
41756_ACEOF
41757
41758 fi
41759
41760
41761
41762for ac_func in gettimeofday ftime
41763do
41764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41765echo "$as_me:$LINENO: checking for $ac_func" >&5
41766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41767if eval "test \"\${$as_ac_var+set}\" = set"; then
41768 echo $ECHO_N "(cached) $ECHO_C" >&6
41769else
41770 cat >conftest.$ac_ext <<_ACEOF
41771/* confdefs.h. */
41772_ACEOF
41773cat confdefs.h >>conftest.$ac_ext
41774cat >>conftest.$ac_ext <<_ACEOF
41775/* end confdefs.h. */
ac1cb8d3
VS
41776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41778#define $ac_func innocuous_$ac_func
41779
a848cd7e
SC
41780/* System header to define __stub macros and hopefully few prototypes,
41781 which can conflict with char $ac_func (); below.
41782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41783 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41784
a848cd7e
SC
41785#ifdef __STDC__
41786# include <limits.h>
41787#else
41788# include <assert.h>
41789#endif
ac1cb8d3
VS
41790
41791#undef $ac_func
41792
a848cd7e
SC
41793/* Override any gcc2 internal prototype to avoid an error. */
41794#ifdef __cplusplus
41795extern "C"
41796{
41797#endif
41798/* We use char because int might match the return type of a gcc2
41799 builtin and then its argument prototype would still apply. */
41800char $ac_func ();
41801/* The GNU C library defines this for functions which it implements
41802 to always fail with ENOSYS. Some functions are actually named
41803 something starting with __ and the normal name is an alias. */
41804#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41805choke me
41806#else
41807char (*f) () = $ac_func;
41808#endif
41809#ifdef __cplusplus
41810}
41811#endif
41812
41813int
41814main ()
41815{
41816return f != $ac_func;
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); } &&
3565d135
RR
41830 { ac_try='test -z "$ac_c_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 eval "$as_ac_var=yes"
41844else
41845 echo "$as_me: failed program was:" >&5
41846sed 's/^/| /' conftest.$ac_ext >&5
41847
41848eval "$as_ac_var=no"
41849fi
ac1cb8d3
VS
41850rm -f conftest.err conftest.$ac_objext \
41851 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41852fi
41853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41854echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41855if test `eval echo '${'$as_ac_var'}'` = yes; then
41856 cat >>confdefs.h <<_ACEOF
41857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41858_ACEOF
41859 break
41860fi
41861done
41862
41863
41864 if test "$ac_cv_func_gettimeofday" = "yes"; then
41865 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
41866echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
41867if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
41868 echo $ECHO_N "(cached) $ECHO_C" >&6
41869else
41870
41871
41872
41873 ac_ext=cc
41874ac_cpp='$CXXCPP $CPPFLAGS'
41875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41878
41879
41880 cat >conftest.$ac_ext <<_ACEOF
41881/* confdefs.h. */
41882_ACEOF
41883cat confdefs.h >>conftest.$ac_ext
41884cat >>conftest.$ac_ext <<_ACEOF
41885/* end confdefs.h. */
41886
41887 #include <sys/time.h>
41888 #include <unistd.h>
41889
41890int
41891main ()
41892{
41893
41894 struct timeval tv;
41895 gettimeofday(&tv, NULL);
41896
41897 ;
41898 return 0;
41899}
41900_ACEOF
41901rm -f conftest.$ac_objext
41902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41903 (eval $ac_compile) 2>conftest.er1
a848cd7e 41904 ac_status=$?
ac1cb8d3
VS
41905 grep -v '^ *+' conftest.er1 >conftest.err
41906 rm -f conftest.er1
41907 cat conftest.err >&5
a848cd7e
SC
41908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41909 (exit $ac_status); } &&
3565d135
RR
41910 { ac_try='test -z "$ac_cxx_werror_flag"
41911 || test ! -s conftest.err'
ac1cb8d3
VS
41912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41913 (eval $ac_try) 2>&5
41914 ac_status=$?
41915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41916 (exit $ac_status); }; } &&
41917 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41919 (eval $ac_try) 2>&5
41920 ac_status=$?
41921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41922 (exit $ac_status); }; }; then
41923 wx_cv_func_gettimeofday_has_2_args=yes
41924else
41925 echo "$as_me: failed program was:" >&5
41926sed 's/^/| /' conftest.$ac_ext >&5
41927
41928cat >conftest.$ac_ext <<_ACEOF
41929/* confdefs.h. */
41930_ACEOF
41931cat confdefs.h >>conftest.$ac_ext
41932cat >>conftest.$ac_ext <<_ACEOF
41933/* end confdefs.h. */
41934
41935 #include <sys/time.h>
41936 #include <unistd.h>
41937
41938int
41939main ()
41940{
41941
41942 struct timeval tv;
41943 gettimeofday(&tv);
41944
41945 ;
41946 return 0;
41947}
41948_ACEOF
41949rm -f conftest.$ac_objext
41950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41951 (eval $ac_compile) 2>conftest.er1
a848cd7e 41952 ac_status=$?
ac1cb8d3
VS
41953 grep -v '^ *+' conftest.er1 >conftest.err
41954 rm -f conftest.er1
41955 cat conftest.err >&5
a848cd7e
SC
41956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41957 (exit $ac_status); } &&
3565d135
RR
41958 { ac_try='test -z "$ac_cxx_werror_flag"
41959 || test ! -s conftest.err'
ac1cb8d3
VS
41960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41961 (eval $ac_try) 2>&5
41962 ac_status=$?
41963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41964 (exit $ac_status); }; } &&
41965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41967 (eval $ac_try) 2>&5
41968 ac_status=$?
41969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41970 (exit $ac_status); }; }; then
41971 wx_cv_func_gettimeofday_has_2_args=no
41972else
41973 echo "$as_me: failed program was:" >&5
41974sed 's/^/| /' conftest.$ac_ext >&5
41975
41976
41977 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
41978echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
41979 wx_cv_func_gettimeofday_has_2_args=unknown
41980
41981
41982fi
ac1cb8d3 41983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41984
41985fi
ac1cb8d3 41986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41987 ac_ext=c
41988ac_cpp='$CPP $CPPFLAGS'
41989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41991ac_compiler_gnu=$ac_cv_c_compiler_gnu
41992
41993
41994fi
41995echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
41996echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
41997
41998 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
41999 cat >>confdefs.h <<\_ACEOF
42000#define WX_GETTIMEOFDAY_NO_TZ 1
42001_ACEOF
42002
42003 fi
42004 fi
42005
42006 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42007fi
42008
42009
42010if test "$wxUSE_SOCKETS" = "yes"; then
42011 if test "$wxUSE_MGL" = "1"; then
42012 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42013echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42014 wxUSE_SOCKETS="no"
42015 fi
42016fi
42017
42018if test "$wxUSE_SOCKETS" = "yes"; then
42019 if test "$TOOLKIT" != "MSW"; then
42020 echo "$as_me:$LINENO: checking for socket" >&5
42021echo $ECHO_N "checking for socket... $ECHO_C" >&6
42022if test "${ac_cv_func_socket+set}" = set; then
42023 echo $ECHO_N "(cached) $ECHO_C" >&6
42024else
42025 cat >conftest.$ac_ext <<_ACEOF
42026/* confdefs.h. */
42027_ACEOF
42028cat confdefs.h >>conftest.$ac_ext
42029cat >>conftest.$ac_ext <<_ACEOF
42030/* end confdefs.h. */
ac1cb8d3
VS
42031/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42033#define socket innocuous_socket
42034
a848cd7e
SC
42035/* System header to define __stub macros and hopefully few prototypes,
42036 which can conflict with char socket (); below.
42037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42038 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42039
a848cd7e
SC
42040#ifdef __STDC__
42041# include <limits.h>
42042#else
42043# include <assert.h>
42044#endif
ac1cb8d3
VS
42045
42046#undef socket
42047
a848cd7e
SC
42048/* Override any gcc2 internal prototype to avoid an error. */
42049#ifdef __cplusplus
42050extern "C"
42051{
42052#endif
42053/* We use char because int might match the return type of a gcc2
42054 builtin and then its argument prototype would still apply. */
42055char socket ();
42056/* The GNU C library defines this for functions which it implements
42057 to always fail with ENOSYS. Some functions are actually named
42058 something starting with __ and the normal name is an alias. */
42059#if defined (__stub_socket) || defined (__stub___socket)
42060choke me
42061#else
42062char (*f) () = socket;
42063#endif
42064#ifdef __cplusplus
42065}
42066#endif
42067
42068int
42069main ()
42070{
42071return f != socket;
42072 ;
42073 return 0;
42074}
42075_ACEOF
42076rm -f conftest.$ac_objext conftest$ac_exeext
42077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42078 (eval $ac_link) 2>conftest.er1
a848cd7e 42079 ac_status=$?
ac1cb8d3
VS
42080 grep -v '^ *+' conftest.er1 >conftest.err
42081 rm -f conftest.er1
42082 cat conftest.err >&5
a848cd7e
SC
42083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42084 (exit $ac_status); } &&
3565d135
RR
42085 { ac_try='test -z "$ac_c_werror_flag"
42086 || test ! -s conftest.err'
ac1cb8d3
VS
42087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42088 (eval $ac_try) 2>&5
42089 ac_status=$?
42090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42091 (exit $ac_status); }; } &&
42092 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42094 (eval $ac_try) 2>&5
42095 ac_status=$?
42096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42097 (exit $ac_status); }; }; then
42098 ac_cv_func_socket=yes
42099else
42100 echo "$as_me: failed program was:" >&5
42101sed 's/^/| /' conftest.$ac_ext >&5
42102
42103ac_cv_func_socket=no
42104fi
ac1cb8d3
VS
42105rm -f conftest.err conftest.$ac_objext \
42106 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42107fi
42108echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42109echo "${ECHO_T}$ac_cv_func_socket" >&6
42110if test $ac_cv_func_socket = yes; then
42111 :
42112else
42113
42114 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42115echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42116if test "${ac_cv_lib_socket_socket+set}" = set; then
42117 echo $ECHO_N "(cached) $ECHO_C" >&6
42118else
42119 ac_check_lib_save_LIBS=$LIBS
42120LIBS="-lsocket $LIBS"
42121cat >conftest.$ac_ext <<_ACEOF
42122/* confdefs.h. */
42123_ACEOF
42124cat confdefs.h >>conftest.$ac_ext
42125cat >>conftest.$ac_ext <<_ACEOF
42126/* end confdefs.h. */
42127
42128/* Override any gcc2 internal prototype to avoid an error. */
42129#ifdef __cplusplus
42130extern "C"
42131#endif
42132/* We use char because int might match the return type of a gcc2
42133 builtin and then its argument prototype would still apply. */
42134char socket ();
42135int
42136main ()
42137{
42138socket ();
42139 ;
42140 return 0;
42141}
42142_ACEOF
42143rm -f conftest.$ac_objext conftest$ac_exeext
42144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42145 (eval $ac_link) 2>conftest.er1
a848cd7e 42146 ac_status=$?
ac1cb8d3
VS
42147 grep -v '^ *+' conftest.er1 >conftest.err
42148 rm -f conftest.er1
42149 cat conftest.err >&5
a848cd7e
SC
42150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42151 (exit $ac_status); } &&
3565d135
RR
42152 { ac_try='test -z "$ac_c_werror_flag"
42153 || test ! -s conftest.err'
ac1cb8d3
VS
42154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42155 (eval $ac_try) 2>&5
42156 ac_status=$?
42157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42158 (exit $ac_status); }; } &&
42159 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42161 (eval $ac_try) 2>&5
42162 ac_status=$?
42163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42164 (exit $ac_status); }; }; then
42165 ac_cv_lib_socket_socket=yes
42166else
42167 echo "$as_me: failed program was:" >&5
42168sed 's/^/| /' conftest.$ac_ext >&5
42169
42170ac_cv_lib_socket_socket=no
42171fi
ac1cb8d3
VS
42172rm -f conftest.err conftest.$ac_objext \
42173 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42174LIBS=$ac_check_lib_save_LIBS
42175fi
42176echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42177echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42178if test $ac_cv_lib_socket_socket = yes; then
42179 if test "$INET_LINK" != " -lsocket"; then
42180 INET_LINK="$INET_LINK -lsocket"
42181 fi
42182else
42183
42184 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42185echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42186 wxUSE_SOCKETS=no
42187
42188
42189fi
42190
42191
42192
42193fi
42194
42195 fi
42196fi
42197
42198if test "$wxUSE_SOCKETS" = "yes" ; then
42199 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
42200 ac_ext=cc
42201ac_cpp='$CXXCPP $CPPFLAGS'
42202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42205
42206 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
42207echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42208if test "${wx_cv_type_getsockname3+set}" = set; then
42209 echo $ECHO_N "(cached) $ECHO_C" >&6
42210else
42211
42212 cat >conftest.$ac_ext <<_ACEOF
42213/* confdefs.h. */
42214_ACEOF
42215cat confdefs.h >>conftest.$ac_ext
42216cat >>conftest.$ac_ext <<_ACEOF
42217/* end confdefs.h. */
42218
42219 #include <sys/types.h>
42220 #include <sys/socket.h>
42221
42222int
42223main ()
42224{
42225
42226 socklen_t len;
42227 getsockname(0, 0, &len);
42228
42229 ;
42230 return 0;
42231}
42232_ACEOF
42233rm -f conftest.$ac_objext
42234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42235 (eval $ac_compile) 2>conftest.er1
a848cd7e 42236 ac_status=$?
ac1cb8d3
VS
42237 grep -v '^ *+' conftest.er1 >conftest.err
42238 rm -f conftest.er1
42239 cat conftest.err >&5
a848cd7e
SC
42240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42241 (exit $ac_status); } &&
3565d135
RR
42242 { ac_try='test -z "$ac_cxx_werror_flag"
42243 || test ! -s conftest.err'
ac1cb8d3
VS
42244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42245 (eval $ac_try) 2>&5
42246 ac_status=$?
42247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42248 (exit $ac_status); }; } &&
42249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42251 (eval $ac_try) 2>&5
42252 ac_status=$?
42253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42254 (exit $ac_status); }; }; then
42255 wx_cv_type_getsockname3=socklen_t
42256else
42257 echo "$as_me: failed program was:" >&5
42258sed 's/^/| /' conftest.$ac_ext >&5
42259
42260
6459a506 42261 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 42262 if test "$GCC" = yes ; then
c92ad099 42263 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
42264 fi
42265
42266 cat >conftest.$ac_ext <<_ACEOF
42267/* confdefs.h. */
42268_ACEOF
42269cat confdefs.h >>conftest.$ac_ext
42270cat >>conftest.$ac_ext <<_ACEOF
42271/* end confdefs.h. */
42272
42273 #include <sys/types.h>
42274 #include <sys/socket.h>
42275
42276int
42277main ()
42278{
42279
42280 size_t len;
42281 getsockname(0, 0, &len);
42282
42283 ;
42284 return 0;
42285}
42286_ACEOF
42287rm -f conftest.$ac_objext
42288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42289 (eval $ac_compile) 2>conftest.er1
a848cd7e 42290 ac_status=$?
ac1cb8d3
VS
42291 grep -v '^ *+' conftest.er1 >conftest.err
42292 rm -f conftest.er1
42293 cat conftest.err >&5
a848cd7e
SC
42294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42295 (exit $ac_status); } &&
3565d135
RR
42296 { ac_try='test -z "$ac_cxx_werror_flag"
42297 || test ! -s conftest.err'
ac1cb8d3
VS
42298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42299 (eval $ac_try) 2>&5
42300 ac_status=$?
42301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42302 (exit $ac_status); }; } &&
42303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42305 (eval $ac_try) 2>&5
42306 ac_status=$?
42307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42308 (exit $ac_status); }; }; then
42309 wx_cv_type_getsockname3=size_t
42310else
42311 echo "$as_me: failed program was:" >&5
42312sed 's/^/| /' conftest.$ac_ext >&5
42313
42314cat >conftest.$ac_ext <<_ACEOF
42315/* confdefs.h. */
42316_ACEOF
42317cat confdefs.h >>conftest.$ac_ext
42318cat >>conftest.$ac_ext <<_ACEOF
42319/* end confdefs.h. */
42320
42321 #include <sys/types.h>
42322 #include <sys/socket.h>
42323
42324int
42325main ()
42326{
42327
42328 int len;
42329 getsockname(0, 0, &len);
42330
42331 ;
42332 return 0;
42333}
42334_ACEOF
42335rm -f conftest.$ac_objext
42336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42337 (eval $ac_compile) 2>conftest.er1
a848cd7e 42338 ac_status=$?
ac1cb8d3
VS
42339 grep -v '^ *+' conftest.er1 >conftest.err
42340 rm -f conftest.er1
42341 cat conftest.err >&5
a848cd7e
SC
42342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42343 (exit $ac_status); } &&
3565d135
RR
42344 { ac_try='test -z "$ac_cxx_werror_flag"
42345 || test ! -s conftest.err'
ac1cb8d3
VS
42346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42347 (eval $ac_try) 2>&5
42348 ac_status=$?
42349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42350 (exit $ac_status); }; } &&
42351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42353 (eval $ac_try) 2>&5
42354 ac_status=$?
42355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42356 (exit $ac_status); }; }; then
42357 wx_cv_type_getsockname3=int
42358else
42359 echo "$as_me: failed program was:" >&5
42360sed 's/^/| /' conftest.$ac_ext >&5
42361
42362wx_cv_type_getsockname3=unknown
42363
42364fi
ac1cb8d3 42365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42366
42367fi
ac1cb8d3 42368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42369
6459a506 42370 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
42371
42372
42373fi
ac1cb8d3 42374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42375
42376fi
42377echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42378echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42379
42380 if test "$wx_cv_type_getsockname3" = "unknown"; then
42381 wxUSE_SOCKETS=no
42382 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42383echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42384 else
42385 cat >>confdefs.h <<_ACEOF
9e03e02d 42386#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
42387_ACEOF
42388
42389 fi
42390 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42391echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42392if test "${wx_cv_type_getsockopt5+set}" = set; then
42393 echo $ECHO_N "(cached) $ECHO_C" >&6
42394else
42395
42396 cat >conftest.$ac_ext <<_ACEOF
42397/* confdefs.h. */
42398_ACEOF
42399cat confdefs.h >>conftest.$ac_ext
42400cat >>conftest.$ac_ext <<_ACEOF
42401/* end confdefs.h. */
42402
42403 #include <sys/types.h>
42404 #include <sys/socket.h>
42405
42406int
42407main ()
42408{
42409
42410 socklen_t len;
42411 getsockopt(0, 0, 0, 0, &len);
42412
42413 ;
42414 return 0;
42415}
42416_ACEOF
42417rm -f conftest.$ac_objext
42418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42419 (eval $ac_compile) 2>conftest.er1
42420 ac_status=$?
42421 grep -v '^ *+' conftest.er1 >conftest.err
42422 rm -f conftest.er1
42423 cat conftest.err >&5
42424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42425 (exit $ac_status); } &&
3565d135
RR
42426 { ac_try='test -z "$ac_cxx_werror_flag"
42427 || test ! -s conftest.err'
5b674b9d
DE
42428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42429 (eval $ac_try) 2>&5
42430 ac_status=$?
42431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42432 (exit $ac_status); }; } &&
42433 { ac_try='test -s conftest.$ac_objext'
42434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42435 (eval $ac_try) 2>&5
42436 ac_status=$?
42437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42438 (exit $ac_status); }; }; then
42439 wx_cv_type_getsockopt5=socklen_t
42440else
42441 echo "$as_me: failed program was:" >&5
42442sed 's/^/| /' conftest.$ac_ext >&5
42443
42444
6459a506 42445 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 42446 if test "$GCC" = yes ; then
c92ad099 42447 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
42448 fi
42449
42450 cat >conftest.$ac_ext <<_ACEOF
42451/* confdefs.h. */
42452_ACEOF
42453cat confdefs.h >>conftest.$ac_ext
42454cat >>conftest.$ac_ext <<_ACEOF
42455/* end confdefs.h. */
42456
42457 #include <sys/types.h>
42458 #include <sys/socket.h>
42459
42460int
42461main ()
42462{
42463
42464 size_t len;
42465 getsockopt(0, 0, 0, 0, &len);
42466
42467 ;
42468 return 0;
42469}
42470_ACEOF
42471rm -f conftest.$ac_objext
42472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42473 (eval $ac_compile) 2>conftest.er1
42474 ac_status=$?
42475 grep -v '^ *+' conftest.er1 >conftest.err
42476 rm -f conftest.er1
42477 cat conftest.err >&5
42478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42479 (exit $ac_status); } &&
3565d135
RR
42480 { ac_try='test -z "$ac_cxx_werror_flag"
42481 || test ! -s conftest.err'
5b674b9d
DE
42482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42483 (eval $ac_try) 2>&5
42484 ac_status=$?
42485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42486 (exit $ac_status); }; } &&
42487 { ac_try='test -s conftest.$ac_objext'
42488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42489 (eval $ac_try) 2>&5
42490 ac_status=$?
42491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42492 (exit $ac_status); }; }; then
42493 wx_cv_type_getsockopt5=size_t
42494else
42495 echo "$as_me: failed program was:" >&5
42496sed 's/^/| /' conftest.$ac_ext >&5
42497
42498cat >conftest.$ac_ext <<_ACEOF
42499/* confdefs.h. */
42500_ACEOF
42501cat confdefs.h >>conftest.$ac_ext
42502cat >>conftest.$ac_ext <<_ACEOF
42503/* end confdefs.h. */
42504
42505 #include <sys/types.h>
42506 #include <sys/socket.h>
42507
42508int
42509main ()
42510{
42511
42512 int len;
42513 getsockopt(0, 0, 0, 0, &len);
42514
42515 ;
42516 return 0;
42517}
42518_ACEOF
42519rm -f conftest.$ac_objext
42520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42521 (eval $ac_compile) 2>conftest.er1
42522 ac_status=$?
42523 grep -v '^ *+' conftest.er1 >conftest.err
42524 rm -f conftest.er1
42525 cat conftest.err >&5
42526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42527 (exit $ac_status); } &&
3565d135
RR
42528 { ac_try='test -z "$ac_cxx_werror_flag"
42529 || test ! -s conftest.err'
5b674b9d
DE
42530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42531 (eval $ac_try) 2>&5
42532 ac_status=$?
42533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42534 (exit $ac_status); }; } &&
42535 { ac_try='test -s conftest.$ac_objext'
42536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42537 (eval $ac_try) 2>&5
42538 ac_status=$?
42539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42540 (exit $ac_status); }; }; then
42541 wx_cv_type_getsockopt5=int
42542else
42543 echo "$as_me: failed program was:" >&5
42544sed 's/^/| /' conftest.$ac_ext >&5
42545
42546wx_cv_type_getsockopt5=unknown
42547
42548fi
42549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42550
42551fi
42552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42553
6459a506 42554 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
42555
42556
42557fi
42558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42559
42560fi
42561echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
42562echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
42563
42564 if test "$wx_cv_type_getsockopt5" = "unknown"; then
42565 wxUSE_SOCKETS=no
42566 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42567echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42568 else
42569 cat >>confdefs.h <<_ACEOF
42570#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
42571_ACEOF
42572
42573 fi
4d4ff94c
VZ
42574 ac_ext=c
42575ac_cpp='$CPP $CPPFLAGS'
42576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42578ac_compiler_gnu=$ac_cv_c_compiler_gnu
42579
a848cd7e
SC
42580 fi
42581fi
42582
42583if test "$wxUSE_SOCKETS" = "yes" ; then
42584 cat >>confdefs.h <<\_ACEOF
42585#define wxUSE_SOCKETS 1
42586_ACEOF
42587
42588 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
42589fi
42590
42591if test "$wxUSE_PROTOCOL" = "yes"; then
42592 if test "$wxUSE_SOCKETS" != "yes"; then
42593 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
42594echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
42595 wxUSE_PROTOCOL=no
42596 fi
42597fi
42598
42599if test "$wxUSE_PROTOCOL" = "yes"; then
42600 cat >>confdefs.h <<\_ACEOF
42601#define wxUSE_PROTOCOL 1
42602_ACEOF
42603
42604
42605 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
42606 cat >>confdefs.h <<\_ACEOF
42607#define wxUSE_PROTOCOL_HTTP 1
42608_ACEOF
42609
42610 fi
42611 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
42612 cat >>confdefs.h <<\_ACEOF
42613#define wxUSE_PROTOCOL_FTP 1
42614_ACEOF
42615
42616 fi
42617 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
42618 cat >>confdefs.h <<\_ACEOF
42619#define wxUSE_PROTOCOL_FILE 1
42620_ACEOF
42621
42622 fi
42623else
42624 if test "$wxUSE_FS_INET" = "yes"; then
42625 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
42626echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
42627 wxUSE_FS_INET="no"
42628 fi
42629fi
42630
42631if test "$wxUSE_URL" = "yes"; then
42632 if test "$wxUSE_PROTOCOL" != "yes"; then
42633 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
42634echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
42635 wxUSE_URL=no
42636 fi
42637 if test "$wxUSE_URL" = "yes"; then
42638 cat >>confdefs.h <<\_ACEOF
42639#define wxUSE_URL 1
42640_ACEOF
42641
42642 fi
42643fi
42644
42645if test "$wxUSE_FS_INET" = "yes"; then
42646 cat >>confdefs.h <<\_ACEOF
42647#define wxUSE_FS_INET 1
42648_ACEOF
42649
42650fi
42651
42652
ee45c548
MW
42653if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
42654 wxUSE_JOYSTICK=no
42655
42656 if test "$TOOLKIT" = "MSW"; then
42657 wxUSE_JOYSTICK=yes
42658
42659 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
42660 if test "$USE_DARWIN" = 1; then
42661 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
42662echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
42663 ac_ext=cc
42664ac_cpp='$CXXCPP $CPPFLAGS'
42665ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42666ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42667ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42668
42669 cat >conftest.$ac_ext <<_ACEOF
42670/* confdefs.h. */
42671_ACEOF
42672cat confdefs.h >>conftest.$ac_ext
42673cat >>conftest.$ac_ext <<_ACEOF
42674/* end confdefs.h. */
42675 #include <IOKit/hid/IOHIDLib.h>
42676int
42677main ()
42678{
42679 IOHIDQueueInterface *qi = NULL;
42680 IOHIDCallbackFunction cb = NULL;
42681 qi->setEventCallout(NULL, cb, NULL, NULL);
42682 ;
42683 return 0;
42684}
42685_ACEOF
42686rm -f conftest.$ac_objext
42687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42688 (eval $ac_compile) 2>conftest.er1
42689 ac_status=$?
42690 grep -v '^ *+' conftest.er1 >conftest.err
42691 rm -f conftest.er1
42692 cat conftest.err >&5
42693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42694 (exit $ac_status); } &&
3565d135
RR
42695 { ac_try='test -z "$ac_cxx_werror_flag"
42696 || test ! -s conftest.err'
ee45c548
MW
42697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42698 (eval $ac_try) 2>&5
42699 ac_status=$?
42700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42701 (exit $ac_status); }; } &&
42702 { ac_try='test -s conftest.$ac_objext'
42703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42704 (eval $ac_try) 2>&5
42705 ac_status=$?
42706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42707 (exit $ac_status); }; }; then
42708 wxUSE_JOYSTICK=yes
a848cd7e 42709
ee45c548
MW
42710else
42711 echo "$as_me: failed program was:" >&5
42712sed 's/^/| /' conftest.$ac_ext >&5
42713
42714fi
42715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42716 ac_ext=c
42717ac_cpp='$CPP $CPPFLAGS'
42718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42720ac_compiler_gnu=$ac_cv_c_compiler_gnu
42721
42722 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
42723echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
42724 fi
42725
42726 else
a848cd7e
SC
42727
42728for ac_header in linux/joystick.h
42729do
42730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42731if eval "test \"\${$as_ac_Header+set}\" = set"; then
42732 echo "$as_me:$LINENO: checking for $ac_header" >&5
42733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42734if eval "test \"\${$as_ac_Header+set}\" = set"; then
42735 echo $ECHO_N "(cached) $ECHO_C" >&6
42736fi
42737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42739else
42740 # Is the header compilable?
42741echo "$as_me:$LINENO: checking $ac_header usability" >&5
42742echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42743cat >conftest.$ac_ext <<_ACEOF
42744/* confdefs.h. */
42745_ACEOF
42746cat confdefs.h >>conftest.$ac_ext
42747cat >>conftest.$ac_ext <<_ACEOF
42748/* end confdefs.h. */
42749$ac_includes_default
42750#include <$ac_header>
42751_ACEOF
42752rm -f conftest.$ac_objext
42753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42754 (eval $ac_compile) 2>conftest.er1
a848cd7e 42755 ac_status=$?
ac1cb8d3
VS
42756 grep -v '^ *+' conftest.er1 >conftest.err
42757 rm -f conftest.er1
42758 cat conftest.err >&5
a848cd7e
SC
42759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42760 (exit $ac_status); } &&
3565d135
RR
42761 { ac_try='test -z "$ac_c_werror_flag"
42762 || test ! -s conftest.err'
ac1cb8d3
VS
42763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42764 (eval $ac_try) 2>&5
42765 ac_status=$?
42766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42767 (exit $ac_status); }; } &&
42768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42770 (eval $ac_try) 2>&5
42771 ac_status=$?
42772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42773 (exit $ac_status); }; }; then
42774 ac_header_compiler=yes
42775else
42776 echo "$as_me: failed program was:" >&5
42777sed 's/^/| /' conftest.$ac_ext >&5
42778
42779ac_header_compiler=no
42780fi
ac1cb8d3 42781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42782echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42783echo "${ECHO_T}$ac_header_compiler" >&6
42784
42785# Is the header present?
42786echo "$as_me:$LINENO: checking $ac_header presence" >&5
42787echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42788cat >conftest.$ac_ext <<_ACEOF
42789/* confdefs.h. */
42790_ACEOF
42791cat confdefs.h >>conftest.$ac_ext
42792cat >>conftest.$ac_ext <<_ACEOF
42793/* end confdefs.h. */
42794#include <$ac_header>
42795_ACEOF
42796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42798 ac_status=$?
42799 grep -v '^ *+' conftest.er1 >conftest.err
42800 rm -f conftest.er1
42801 cat conftest.err >&5
42802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42803 (exit $ac_status); } >/dev/null; then
42804 if test -s conftest.err; then
42805 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 42806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
42807 else
42808 ac_cpp_err=
42809 fi
42810else
42811 ac_cpp_err=yes
42812fi
42813if test -z "$ac_cpp_err"; then
42814 ac_header_preproc=yes
42815else
42816 echo "$as_me: failed program was:" >&5
42817sed 's/^/| /' conftest.$ac_ext >&5
42818
42819 ac_header_preproc=no
42820fi
42821rm -f conftest.err conftest.$ac_ext
42822echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42823echo "${ECHO_T}$ac_header_preproc" >&6
42824
42825# So? What about this header?
ac1cb8d3
VS
42826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42827 yes:no: )
a848cd7e
SC
42828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42829echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
42830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42831echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42832 ac_header_preproc=yes
a848cd7e 42833 ;;
ac1cb8d3 42834 no:yes:* )
a848cd7e
SC
42835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
42837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42838echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42840echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42842echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
42843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
42845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42846echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
42847 (
42848 cat <<\_ASBOX
ac1cb8d3
VS
42849## ----------------------------------------- ##
42850## Report this to wx-dev@lists.wxwidgets.org ##
42851## ----------------------------------------- ##
a848cd7e
SC
42852_ASBOX
42853 ) |
42854 sed "s/^/$as_me: WARNING: /" >&2
42855 ;;
42856esac
42857echo "$as_me:$LINENO: checking for $ac_header" >&5
42858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42859if eval "test \"\${$as_ac_Header+set}\" = set"; then
42860 echo $ECHO_N "(cached) $ECHO_C" >&6
42861else
ac1cb8d3 42862 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
42863fi
42864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42865echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42866
42867fi
42868if test `eval echo '${'$as_ac_Header'}'` = yes; then
42869 cat >>confdefs.h <<_ACEOF
42870#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42871_ACEOF
ee45c548 42872 wxUSE_JOYSTICK=yes
a848cd7e
SC
42873fi
42874
42875done
42876
ee45c548 42877 fi
4cb1d3da 42878
ee45c548
MW
42879 if test "$wxUSE_JOYSTICK" = "yes"; then
42880 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42881#define wxUSE_JOYSTICK 1
42882_ACEOF
42883
ee45c548
MW
42884 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
42885 else
42886 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
42887echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
42888 fi
42889fi
42890
42891
42892
42893if test "$wxUSE_FONTMAP" = "yes" ; then
42894 cat >>confdefs.h <<\_ACEOF
42895#define wxUSE_FONTMAP 1
42896_ACEOF
42897
42898fi
42899
42900if test "$wxUSE_UNICODE" = "yes" ; then
42901 cat >>confdefs.h <<\_ACEOF
42902#define wxUSE_UNICODE 1
42903_ACEOF
42904
42905
42906 if test "$USE_WIN32" != 1; then
42907 wxUSE_UNICODE_MSLU=no
42908 fi
42909
42910 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
42911 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
42912echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
42913if test "${ac_cv_lib_unicows_main+set}" = set; then
42914 echo $ECHO_N "(cached) $ECHO_C" >&6
42915else
42916 ac_check_lib_save_LIBS=$LIBS
42917LIBS="-lunicows $LIBS"
42918cat >conftest.$ac_ext <<_ACEOF
42919/* confdefs.h. */
42920_ACEOF
42921cat confdefs.h >>conftest.$ac_ext
42922cat >>conftest.$ac_ext <<_ACEOF
42923/* end confdefs.h. */
42924
42925
42926int
42927main ()
42928{
42929main ();
42930 ;
42931 return 0;
42932}
42933_ACEOF
42934rm -f conftest.$ac_objext conftest$ac_exeext
42935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42936 (eval $ac_link) 2>conftest.er1
a848cd7e 42937 ac_status=$?
ac1cb8d3
VS
42938 grep -v '^ *+' conftest.er1 >conftest.err
42939 rm -f conftest.er1
42940 cat conftest.err >&5
a848cd7e
SC
42941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42942 (exit $ac_status); } &&
3565d135
RR
42943 { ac_try='test -z "$ac_c_werror_flag"
42944 || test ! -s conftest.err'
ac1cb8d3
VS
42945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42946 (eval $ac_try) 2>&5
42947 ac_status=$?
42948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42949 (exit $ac_status); }; } &&
42950 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42952 (eval $ac_try) 2>&5
42953 ac_status=$?
42954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42955 (exit $ac_status); }; }; then
42956 ac_cv_lib_unicows_main=yes
42957else
42958 echo "$as_me: failed program was:" >&5
42959sed 's/^/| /' conftest.$ac_ext >&5
42960
42961ac_cv_lib_unicows_main=no
42962fi
ac1cb8d3
VS
42963rm -f conftest.err conftest.$ac_objext \
42964 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42965LIBS=$ac_check_lib_save_LIBS
42966fi
42967echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
42968echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
42969if test $ac_cv_lib_unicows_main = yes; then
42970
42971 cat >>confdefs.h <<\_ACEOF
42972#define wxUSE_UNICODE_MSLU 1
42973_ACEOF
42974
42975
42976else
42977
42978 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
42979 Applications will only run on Windows NT/2000/XP!" >&5
42980echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
42981 Applications will only run on Windows NT/2000/XP!" >&2;}
42982 wxUSE_UNICODE_MSLU=no
42983
42984fi
42985
42986 fi
42987fi
42988
42989if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
42990 cat >>confdefs.h <<\_ACEOF
42991#define wxUSE_EXPERIMENTAL_PRINTF 1
42992_ACEOF
42993
42994fi
42995
42996
42997if test "$wxUSE_POSTSCRIPT" = "yes" ; then
42998 cat >>confdefs.h <<\_ACEOF
42999#define wxUSE_POSTSCRIPT 1
43000_ACEOF
43001
43002fi
43003
43004cat >>confdefs.h <<\_ACEOF
43005#define wxUSE_AFM_FOR_POSTSCRIPT 1
43006_ACEOF
43007
43008
43009cat >>confdefs.h <<\_ACEOF
43010#define wxUSE_NORMALIZED_PS_FONTS 1
43011_ACEOF
43012
43013
43014
43015if test "$wxUSE_CONSTRAINTS" = "yes"; then
43016 cat >>confdefs.h <<\_ACEOF
43017#define wxUSE_CONSTRAINTS 1
43018_ACEOF
43019
43020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43021fi
43022
8a7b1113
VZ
43023if test "$wxUSE_MDI" = "yes"; then
43024 cat >>confdefs.h <<\_ACEOF
43025#define wxUSE_MDI 1
43026_ACEOF
43027
43028
43029 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43030 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43031#define wxUSE_MDI_ARCHITECTURE 1
43032_ACEOF
43033
8a7b1113
VZ
43034 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43035 fi
a848cd7e
SC
43036fi
43037
43038if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43039 cat >>confdefs.h <<\_ACEOF
43040#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43041_ACEOF
43042
43043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43044 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43046 fi
43047fi
43048
43049if test "$wxUSE_HELP" = "yes"; then
43050 cat >>confdefs.h <<\_ACEOF
43051#define wxUSE_HELP 1
43052_ACEOF
43053
43054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43055
43056 if test "$wxUSE_MSW" = 1; then
43057 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43058 cat >>confdefs.h <<\_ACEOF
43059#define wxUSE_MS_HTML_HELP 1
43060_ACEOF
43061
43062 fi
43063 fi
43064
43065 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43066 if test "$wxUSE_HTML" = "yes"; then
43067 cat >>confdefs.h <<\_ACEOF
43068#define wxUSE_WXHTML_HELP 1
43069_ACEOF
43070
43071 else
43072 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43073echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43074 wxUSE_WXHTML_HELP=no
43075 fi
43076 fi
43077fi
43078
43079if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43080 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43081 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43082echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43083 else
43084 cat >>confdefs.h <<\_ACEOF
43085#define wxUSE_PRINTING_ARCHITECTURE 1
43086_ACEOF
43087
43088 fi
43089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43090fi
43091
43092if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43093 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43094echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43095 { (exit 1); exit 1; }; }
43096fi
43097
43098
efdf6afe
VZ
43099if test "$wxUSE_METAFILE" = "yes"; then
43100 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43101 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43102echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43103 wxUSE_METAFILE=no
43104 fi
43105fi
43106
43107
a848cd7e
SC
43108if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43109 -o "$wxUSE_CLIPBOARD" = "yes" \
43110 -o "$wxUSE_OLE" = "yes" \
43111 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43112
43113for ac_header in ole2.h
43114do
43115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43116if eval "test \"\${$as_ac_Header+set}\" = set"; then
43117 echo "$as_me:$LINENO: checking for $ac_header" >&5
43118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43119if eval "test \"\${$as_ac_Header+set}\" = set"; then
43120 echo $ECHO_N "(cached) $ECHO_C" >&6
43121fi
43122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43124else
43125 # Is the header compilable?
43126echo "$as_me:$LINENO: checking $ac_header usability" >&5
43127echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43128cat >conftest.$ac_ext <<_ACEOF
43129/* confdefs.h. */
43130_ACEOF
43131cat confdefs.h >>conftest.$ac_ext
43132cat >>conftest.$ac_ext <<_ACEOF
43133/* end confdefs.h. */
43134$ac_includes_default
43135#include <$ac_header>
43136_ACEOF
43137rm -f conftest.$ac_objext
43138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43139 (eval $ac_compile) 2>conftest.er1
a848cd7e 43140 ac_status=$?
ac1cb8d3
VS
43141 grep -v '^ *+' conftest.er1 >conftest.err
43142 rm -f conftest.er1
43143 cat conftest.err >&5
a848cd7e
SC
43144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43145 (exit $ac_status); } &&
3565d135
RR
43146 { ac_try='test -z "$ac_c_werror_flag"
43147 || test ! -s conftest.err'
ac1cb8d3
VS
43148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43149 (eval $ac_try) 2>&5
43150 ac_status=$?
43151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43152 (exit $ac_status); }; } &&
43153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43155 (eval $ac_try) 2>&5
43156 ac_status=$?
43157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43158 (exit $ac_status); }; }; then
43159 ac_header_compiler=yes
43160else
43161 echo "$as_me: failed program was:" >&5
43162sed 's/^/| /' conftest.$ac_ext >&5
43163
43164ac_header_compiler=no
43165fi
ac1cb8d3 43166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43168echo "${ECHO_T}$ac_header_compiler" >&6
43169
43170# Is the header present?
43171echo "$as_me:$LINENO: checking $ac_header presence" >&5
43172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43173cat >conftest.$ac_ext <<_ACEOF
43174/* confdefs.h. */
43175_ACEOF
43176cat confdefs.h >>conftest.$ac_ext
43177cat >>conftest.$ac_ext <<_ACEOF
43178/* end confdefs.h. */
43179#include <$ac_header>
43180_ACEOF
43181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43183 ac_status=$?
43184 grep -v '^ *+' conftest.er1 >conftest.err
43185 rm -f conftest.er1
43186 cat conftest.err >&5
43187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43188 (exit $ac_status); } >/dev/null; then
43189 if test -s conftest.err; then
43190 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 43191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
43192 else
43193 ac_cpp_err=
43194 fi
43195else
43196 ac_cpp_err=yes
43197fi
43198if test -z "$ac_cpp_err"; then
43199 ac_header_preproc=yes
43200else
43201 echo "$as_me: failed program was:" >&5
43202sed 's/^/| /' conftest.$ac_ext >&5
43203
43204 ac_header_preproc=no
43205fi
43206rm -f conftest.err conftest.$ac_ext
43207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43208echo "${ECHO_T}$ac_header_preproc" >&6
43209
43210# So? What about this header?
ac1cb8d3
VS
43211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43212 yes:no: )
a848cd7e
SC
43213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43217 ac_header_preproc=yes
a848cd7e 43218 ;;
ac1cb8d3 43219 no:yes:* )
a848cd7e
SC
43220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43232 (
43233 cat <<\_ASBOX
ac1cb8d3
VS
43234## ----------------------------------------- ##
43235## Report this to wx-dev@lists.wxwidgets.org ##
43236## ----------------------------------------- ##
a848cd7e
SC
43237_ASBOX
43238 ) |
43239 sed "s/^/$as_me: WARNING: /" >&2
43240 ;;
43241esac
43242echo "$as_me:$LINENO: checking for $ac_header" >&5
43243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43244if eval "test \"\${$as_ac_Header+set}\" = set"; then
43245 echo $ECHO_N "(cached) $ECHO_C" >&6
43246else
ac1cb8d3 43247 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43248fi
43249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43251
43252fi
43253if test `eval echo '${'$as_ac_Header'}'` = yes; then
43254 cat >>confdefs.h <<_ACEOF
43255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43256_ACEOF
43257
43258fi
43259
43260done
43261
43262
43263 if test "$ac_cv_header_ole2_h" = "yes" ; then
43264 if test "$GCC" = yes ; then
43265
43266
43267 ac_ext=cc
43268ac_cpp='$CXXCPP $CPPFLAGS'
43269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43272
43273
43274 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43275echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43276 cat >conftest.$ac_ext <<_ACEOF
43277/* confdefs.h. */
43278_ACEOF
43279cat confdefs.h >>conftest.$ac_ext
43280cat >>conftest.$ac_ext <<_ACEOF
43281/* end confdefs.h. */
43282#include <windows.h>
43283 #include <ole2.h>
43284int
43285main ()
43286{
43287
43288 ;
43289 return 0;
43290}
43291_ACEOF
43292rm -f conftest.$ac_objext
43293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43294 (eval $ac_compile) 2>conftest.er1
a848cd7e 43295 ac_status=$?
ac1cb8d3
VS
43296 grep -v '^ *+' conftest.er1 >conftest.err
43297 rm -f conftest.er1
43298 cat conftest.err >&5
a848cd7e
SC
43299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43300 (exit $ac_status); } &&
3565d135
RR
43301 { ac_try='test -z "$ac_cxx_werror_flag"
43302 || test ! -s conftest.err'
ac1cb8d3
VS
43303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43304 (eval $ac_try) 2>&5
43305 ac_status=$?
43306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43307 (exit $ac_status); }; } &&
43308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43310 (eval $ac_try) 2>&5
43311 ac_status=$?
43312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43313 (exit $ac_status); }; }; then
43314 echo "$as_me:$LINENO: result: no" >&5
43315echo "${ECHO_T}no" >&6
43316else
43317 echo "$as_me: failed program was:" >&5
43318sed 's/^/| /' conftest.$ac_ext >&5
43319
43320echo "$as_me:$LINENO: result: yes" >&5
43321echo "${ECHO_T}yes" >&6
5ff751d6 43322 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 43323fi
ac1cb8d3 43324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43325 ac_ext=c
43326ac_cpp='$CPP $CPPFLAGS'
43327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43329ac_compiler_gnu=$ac_cv_c_compiler_gnu
43330
a848cd7e
SC
43331 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43332 if test "$wxUSE_OLE" = "yes" ; then
43333 cat >>confdefs.h <<\_ACEOF
43334#define wxUSE_OLE 1
43335_ACEOF
43336
0b78747f 43337 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
43338 fi
43339 fi
43340
43341 if test "$wxUSE_DATAOBJ" = "yes" ; then
43342 cat >>confdefs.h <<\_ACEOF
43343#define wxUSE_DATAOBJ 1
43344_ACEOF
43345
43346 fi
43347 else
43348 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43349echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43350
43351 wxUSE_CLIPBOARD=no
43352 wxUSE_DRAG_AND_DROP=no
43353 wxUSE_DATAOBJ=no
43354 wxUSE_OLE=no
43355 fi
43356
43357 if test "$wxUSE_METAFILE" = "yes"; then
43358 cat >>confdefs.h <<\_ACEOF
43359#define wxUSE_METAFILE 1
43360_ACEOF
43361
43362
43363 cat >>confdefs.h <<\_ACEOF
43364#define wxUSE_ENH_METAFILE 1
43365_ACEOF
43366
43367 fi
43368fi
43369
43370if test "$wxUSE_IPC" = "yes"; then
0b78747f 43371 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
43372 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43373echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 43374 wxUSE_IPC=no
a848cd7e
SC
43375 fi
43376
0b78747f
MW
43377 if test "$wxUSE_IPC" = "yes"; then
43378 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43379#define wxUSE_IPC 1
43380_ACEOF
43381
0b78747f
MW
43382 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43383 fi
a848cd7e
SC
43384fi
43385
eb730a0c 43386if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
43387 if test "$wxUSE_MGL" = 1; then
43388 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43389echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43390 wxUSE_DATAOBJ=no
43391 else
43392 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
43393#define wxUSE_DATAOBJ 1
43394_ACEOF
43395
2113bc77 43396 fi
eb730a0c
JS
43397else
43398 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43399echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43400 wxUSE_CLIPBOARD=no
43401 wxUSE_DRAG_AND_DROP=no
43402fi
43403
a848cd7e
SC
43404if test "$wxUSE_CLIPBOARD" = "yes"; then
43405 if test "$wxUSE_MGL" = 1; then
43406 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43407echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43408 wxUSE_CLIPBOARD=no
43409 fi
43410
43411 if test "$wxUSE_CLIPBOARD" = "yes"; then
43412 cat >>confdefs.h <<\_ACEOF
43413#define wxUSE_CLIPBOARD 1
43414_ACEOF
43415
a848cd7e
SC
43416 fi
43417fi
43418
43419if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43420 if test "$wxUSE_GTK" = 1; then
43421 if test "$WXGTK12" != 1; then
43422 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43423echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43424 wxUSE_DRAG_AND_DROP=no
43425 fi
43426 fi
43427
43428 if test "$wxUSE_MOTIF" = 1; then
43429 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43430echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43431 wxUSE_DRAG_AND_DROP=no
43432 fi
43433
43434 if test "$wxUSE_X11" = 1; then
43435 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43436echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43437 wxUSE_DRAG_AND_DROP=no
43438 fi
43439
43440 if test "$wxUSE_MGL" = 1; then
43441 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43442echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43443 wxUSE_DRAG_AND_DROP=no
43444 fi
43445
43446 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43447 cat >>confdefs.h <<\_ACEOF
43448#define wxUSE_DRAG_AND_DROP 1
43449_ACEOF
43450
43451 fi
43452
43453fi
43454
43455if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43456 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43457fi
43458
43459if test "$wxUSE_SPLINES" = "yes" ; then
43460 cat >>confdefs.h <<\_ACEOF
43461#define wxUSE_SPLINES 1
43462_ACEOF
43463
43464fi
43465
fbe2ca43
SN
43466if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43467 cat >>confdefs.h <<\_ACEOF
43468#define wxUSE_MOUSEWHEEL 1
43469_ACEOF
43470
43471fi
43472
a848cd7e
SC
43473
43474USES_CONTROLS=0
43475if test "$wxUSE_CONTROLS" = "yes"; then
43476 USES_CONTROLS=1
43477fi
43478
43479if test "$wxUSE_ACCEL" = "yes"; then
43480 cat >>confdefs.h <<\_ACEOF
43481#define wxUSE_ACCEL 1
43482_ACEOF
43483
43484 USES_CONTROLS=1
43485fi
43486
43487if test "$wxUSE_BUTTON" = "yes"; then
43488 cat >>confdefs.h <<\_ACEOF
43489#define wxUSE_BUTTON 1
43490_ACEOF
43491
43492 USES_CONTROLS=1
43493fi
43494
43495if test "$wxUSE_BMPBUTTON" = "yes"; then
43496 cat >>confdefs.h <<\_ACEOF
43497#define wxUSE_BMPBUTTON 1
43498_ACEOF
43499
43500 USES_CONTROLS=1
43501fi
43502
43503if test "$wxUSE_CALCTRL" = "yes"; then
43504 cat >>confdefs.h <<\_ACEOF
43505#define wxUSE_CALENDARCTRL 1
43506_ACEOF
43507
43508 USES_CONTROLS=1
43509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
43510fi
43511
43512if test "$wxUSE_CARET" = "yes"; then
43513 cat >>confdefs.h <<\_ACEOF
43514#define wxUSE_CARET 1
43515_ACEOF
43516
43517 USES_CONTROLS=1
43518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
43519fi
43520
43521if test "$wxUSE_COMBOBOX" = "yes"; then
43522 cat >>confdefs.h <<\_ACEOF
43523#define wxUSE_COMBOBOX 1
43524_ACEOF
43525
43526 USES_CONTROLS=1
43527fi
43528
43529if test "$wxUSE_CHOICE" = "yes"; then
43530 cat >>confdefs.h <<\_ACEOF
43531#define wxUSE_CHOICE 1
43532_ACEOF
43533
43534 USES_CONTROLS=1
43535fi
43536
92bbdbcd
WS
43537if test "$wxUSE_CHOICEBOOK" = "yes"; then
43538 cat >>confdefs.h <<\_ACEOF
43539#define wxUSE_CHOICEBOOK 1
43540_ACEOF
43541
43542 USES_CONTROLS=1
43543fi
43544
a848cd7e
SC
43545if test "$wxUSE_CHECKBOX" = "yes"; then
43546 cat >>confdefs.h <<\_ACEOF
43547#define wxUSE_CHECKBOX 1
43548_ACEOF
43549
43550 USES_CONTROLS=1
43551fi
43552
43553if test "$wxUSE_CHECKLST" = "yes"; then
43554 cat >>confdefs.h <<\_ACEOF
43555#define wxUSE_CHECKLISTBOX 1
43556_ACEOF
43557
43558 USES_CONTROLS=1
43559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
43560fi
43561
da98e9be
VZ
43562if test "$wxUSE_DATEPICKCTRL" = "yes"; then
43563 cat >>confdefs.h <<\_ACEOF
43564#define wxUSE_DATEPICKCTRL 1
43565_ACEOF
43566
43567 USES_CONTROLS=1
43568fi
43569
a848cd7e
SC
43570if test "$wxUSE_DISPLAY" = "yes"; then
43571 cat >>confdefs.h <<\_ACEOF
43572#define wxUSE_DISPLAY 1
43573_ACEOF
43574
0b78747f 43575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
43576fi
43577
43578if test "$wxUSE_GAUGE" = "yes"; then
43579 cat >>confdefs.h <<\_ACEOF
43580#define wxUSE_GAUGE 1
43581_ACEOF
43582
43583 USES_CONTROLS=1
43584fi
43585
43586if test "$wxUSE_GRID" = "yes"; then
43587 cat >>confdefs.h <<\_ACEOF
43588#define wxUSE_GRID 1
43589_ACEOF
43590
43591 USES_CONTROLS=1
43592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
43593fi
43594
20e34ecc
RR
43595if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
43596 cat >>confdefs.h <<\_ACEOF
43597#define wxUSE_DATAVIEWCTRL 1
43598_ACEOF
43599
43600 USES_CONTROLS=1
43601 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
43602fi
43603
a848cd7e
SC
43604if test "$wxUSE_IMAGLIST" = "yes"; then
43605 cat >>confdefs.h <<\_ACEOF
43606#define wxUSE_IMAGLIST 1
43607_ACEOF
43608
43609fi
43610
43611if test "$wxUSE_LISTBOOK" = "yes"; then
43612 cat >>confdefs.h <<\_ACEOF
43613#define wxUSE_LISTBOOK 1
43614_ACEOF
43615
43616 USES_CONTROLS=1
43617fi
43618
43619if test "$wxUSE_LISTBOX" = "yes"; then
43620 cat >>confdefs.h <<\_ACEOF
43621#define wxUSE_LISTBOX 1
43622_ACEOF
43623
43624 USES_CONTROLS=1
0b78747f 43625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
43626fi
43627
43628if test "$wxUSE_LISTCTRL" = "yes"; then
43629 if test "$wxUSE_IMAGLIST" = "yes"; then
43630 cat >>confdefs.h <<\_ACEOF
43631#define wxUSE_LISTCTRL 1
43632_ACEOF
43633
43634 USES_CONTROLS=1
43635 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
43636 else
43637 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
43638echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
43639 fi
43640fi
43641
43642if test "$wxUSE_NOTEBOOK" = "yes"; then
43643 cat >>confdefs.h <<\_ACEOF
43644#define wxUSE_NOTEBOOK 1
43645_ACEOF
43646
43647 USES_CONTROLS=1
43648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
43649fi
43650
43651
43652if test "$wxUSE_RADIOBOX" = "yes"; then
43653 cat >>confdefs.h <<\_ACEOF
43654#define wxUSE_RADIOBOX 1
43655_ACEOF
43656
43657 USES_CONTROLS=1
43658fi
43659
43660if test "$wxUSE_RADIOBTN" = "yes"; then
43661 cat >>confdefs.h <<\_ACEOF
43662#define wxUSE_RADIOBTN 1
43663_ACEOF
43664
43665 USES_CONTROLS=1
43666fi
43667
43668if test "$wxUSE_SASH" = "yes"; then
43669 cat >>confdefs.h <<\_ACEOF
43670#define wxUSE_SASH 1
43671_ACEOF
43672
43673 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
43674fi
43675
43676if test "$wxUSE_SCROLLBAR" = "yes"; then
43677 cat >>confdefs.h <<\_ACEOF
43678#define wxUSE_SCROLLBAR 1
43679_ACEOF
43680
43681 USES_CONTROLS=1
43682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
43683fi
43684
43685if test "$wxUSE_SLIDER" = "yes"; then
43686 cat >>confdefs.h <<\_ACEOF
43687#define wxUSE_SLIDER 1
43688_ACEOF
43689
43690 USES_CONTROLS=1
43691fi
43692
43693if test "$wxUSE_SPINBTN" = "yes"; then
43694 cat >>confdefs.h <<\_ACEOF
43695#define wxUSE_SPINBTN 1
43696_ACEOF
43697
43698 USES_CONTROLS=1
43699fi
43700
43701if test "$wxUSE_SPINCTRL" = "yes"; then
43702 cat >>confdefs.h <<\_ACEOF
43703#define wxUSE_SPINCTRL 1
43704_ACEOF
43705
43706 USES_CONTROLS=1
43707fi
43708
43709if test "$wxUSE_SPLITTER" = "yes"; then
43710 cat >>confdefs.h <<\_ACEOF
43711#define wxUSE_SPLITTER 1
43712_ACEOF
43713
43714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
43715fi
43716
43717if test "$wxUSE_STATBMP" = "yes"; then
43718 cat >>confdefs.h <<\_ACEOF
43719#define wxUSE_STATBMP 1
43720_ACEOF
43721
43722 USES_CONTROLS=1
43723fi
43724
43725if test "$wxUSE_STATBOX" = "yes"; then
43726 cat >>confdefs.h <<\_ACEOF
43727#define wxUSE_STATBOX 1
43728_ACEOF
43729
43730 USES_CONTROLS=1
43731fi
43732
43733if test "$wxUSE_STATTEXT" = "yes"; then
43734 cat >>confdefs.h <<\_ACEOF
43735#define wxUSE_STATTEXT 1
43736_ACEOF
43737
43738 USES_CONTROLS=1
43739fi
43740
43741if test "$wxUSE_STATLINE" = "yes"; then
43742 cat >>confdefs.h <<\_ACEOF
43743#define wxUSE_STATLINE 1
43744_ACEOF
43745
43746 USES_CONTROLS=1
43747fi
43748
43749if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
43750 cat >>confdefs.h <<\_ACEOF
43751#define wxUSE_NATIVE_STATUSBAR 1
43752_ACEOF
43753
a848cd7e
SC
43754 cat >>confdefs.h <<\_ACEOF
43755#define wxUSE_STATUSBAR 1
43756_ACEOF
43757
43758 USES_CONTROLS=1
43759
43760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
43761fi
43762
43763if test "$wxUSE_TABDIALOG" = "yes"; then
43764 cat >>confdefs.h <<\_ACEOF
43765#define wxUSE_TAB_DIALOG 1
43766_ACEOF
43767
a848cd7e
SC
43768fi
43769
43770if test "$wxUSE_TEXTCTRL" = "yes"; then
43771 cat >>confdefs.h <<\_ACEOF
43772#define wxUSE_TEXTCTRL 1
43773_ACEOF
43774
43775 USES_CONTROLS=1
43776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
43777fi
43778
43779if test "$wxUSE_TOGGLEBTN" = "yes"; then
43780 if test "$wxUSE_COCOA" = 1 ; then
43781 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
43782echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
43783 wxUSE_TOGGLEBTN=no
43784 fi
43785 if test "$wxUSE_UNIVERSAL" = "yes"; then
43786 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
43787echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
43788 wxUSE_TOGGLEBTN=no
43789 fi
43790
43791 if test "$wxUSE_TOGGLEBTN" = "yes"; then
43792 cat >>confdefs.h <<\_ACEOF
43793#define wxUSE_TOGGLEBTN 1
43794_ACEOF
43795
43796 USES_CONTROLS=1
43797 fi
43798fi
43799
43800if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
43801 cat >>confdefs.h <<\_ACEOF
43802#define wxUSE_TOOLBAR_SIMPLE 1
43803_ACEOF
43804
43805 wxUSE_TOOLBAR="yes"
43806 USES_CONTROLS=1
43807fi
43808
43809if test "$wxUSE_TOOLBAR" = "yes"; then
43810 cat >>confdefs.h <<\_ACEOF
43811#define wxUSE_TOOLBAR 1
43812_ACEOF
43813
43814 USES_CONTROLS=1
43815
43816 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
43817 wxUSE_TOOLBAR_NATIVE="yes"
43818 fi
43819
43820 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
43821 cat >>confdefs.h <<\_ACEOF
43822#define wxUSE_TOOLBAR_NATIVE 1
43823_ACEOF
43824
43825 USES_CONTROLS=1
43826 fi
43827
43828 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
43829fi
43830
43831if test "$wxUSE_TOOLTIPS" = "yes"; then
43832 if test "$wxUSE_MOTIF" = 1; then
43833 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
43834echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
43835 else
43836 if test "$wxUSE_UNIVERSAL" = "yes"; then
43837 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
43838echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
43839 else
43840 cat >>confdefs.h <<\_ACEOF
43841#define wxUSE_TOOLTIPS 1
43842_ACEOF
43843
43844 fi
43845 fi
43846fi
43847
0093c2fc
VZ
43848if test "$wxUSE_TREEBOOK" = "yes"; then
43849 cat >>confdefs.h <<\_ACEOF
43850#define wxUSE_TREEBOOK 1
43851_ACEOF
43852
43853 USES_CONTROLS=1
43854fi
43855
a848cd7e
SC
43856if test "$wxUSE_TREECTRL" = "yes"; then
43857 if test "$wxUSE_IMAGLIST" = "yes"; then
43858 cat >>confdefs.h <<\_ACEOF
43859#define wxUSE_TREECTRL 1
43860_ACEOF
43861
43862 USES_CONTROLS=1
43863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
43864 else
43865 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
43866echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
43867 fi
43868fi
43869
43870if test "$wxUSE_POPUPWIN" = "yes"; then
43871 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43872 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
43873echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
43874 else
43875 if test "$wxUSE_PM" = 1; then
43876 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
43877echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
43878 else
43879 cat >>confdefs.h <<\_ACEOF
43880#define wxUSE_POPUPWIN 1
43881_ACEOF
43882
0b78747f 43883 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
43884
43885 USES_CONTROLS=1
43886 fi
43887 fi
43888fi
43889
0dcd06dd 43890if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
43891 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43892 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
43893echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
43894 else
43895 cat >>confdefs.h <<\_ACEOF
43896#define wxUSE_DIALUP_MANAGER 1
43897_ACEOF
43898
43899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
43900 fi
43901fi
43902
a848cd7e
SC
43903if test "$wxUSE_TIPWINDOW" = "yes"; then
43904 if test "$wxUSE_PM" = 1; then
43905 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
43906echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
43907 else
43908 cat >>confdefs.h <<\_ACEOF
43909#define wxUSE_TIPWINDOW 1
43910_ACEOF
43911
43912 fi
43913fi
43914
43915if test "$USES_CONTROLS" = 1; then
43916 cat >>confdefs.h <<\_ACEOF
43917#define wxUSE_CONTROLS 1
43918_ACEOF
43919
43920fi
43921
43922
43923if test "$wxUSE_ACCESSIBILITY" = "yes"; then
43924 cat >>confdefs.h <<\_ACEOF
43925#define wxUSE_ACCESSIBILITY 1
43926_ACEOF
43927
43928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
43929fi
43930
38b4a946
VZ
43931if test "$wxUSE_DC_CACHEING" = "yes"; then
43932 cat >>confdefs.h <<\_ACEOF
43933#define wxUSE_DC_CACHEING 1
43934_ACEOF
43935
43936fi
43937
a848cd7e
SC
43938if test "$wxUSE_DRAGIMAGE" = "yes"; then
43939 cat >>confdefs.h <<\_ACEOF
43940#define wxUSE_DRAGIMAGE 1
43941_ACEOF
43942
43943 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
43944fi
43945
43946if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
43947 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43948 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
43949echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
43950 else
43951 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43952#define wxUSE_EXCEPTIONS 1
43953_ACEOF
43954
07bea8f0
VS
43955 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
43956 fi
a848cd7e
SC
43957fi
43958
43959USE_HTML=0
43960if test "$wxUSE_HTML" = "yes"; then
43961 cat >>confdefs.h <<\_ACEOF
43962#define wxUSE_HTML 1
43963_ACEOF
43964
43965 USE_HTML=1
43966 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
43967 if test "$wxUSE_MAC" = 1; then
43968 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
43969 fi
a848cd7e 43970fi
646b6ec1 43971if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 43972 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 43973 old_CPPFLAGS="$CPPFLAGS"
c92ad099 43974 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
43975 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
43976echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
43977if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
43978 echo $ECHO_N "(cached) $ECHO_C" >&6
43979else
43980 cat >conftest.$ac_ext <<_ACEOF
43981/* confdefs.h. */
43982_ACEOF
43983cat confdefs.h >>conftest.$ac_ext
43984cat >>conftest.$ac_ext <<_ACEOF
43985/* end confdefs.h. */
43986#include <Carbon/Carbon.h>
43987
43988#include <WebKit/HIWebView.h>
43989_ACEOF
43990rm -f conftest.$ac_objext
43991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43992 (eval $ac_compile) 2>conftest.er1
43993 ac_status=$?
43994 grep -v '^ *+' conftest.er1 >conftest.err
43995 rm -f conftest.er1
43996 cat conftest.err >&5
43997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43998 (exit $ac_status); } &&
3565d135
RR
43999 { ac_try='test -z "$ac_c_werror_flag"
44000 || test ! -s conftest.err'
07bea8f0
VS
44001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44002 (eval $ac_try) 2>&5
44003 ac_status=$?
44004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44005 (exit $ac_status); }; } &&
44006 { ac_try='test -s conftest.$ac_objext'
44007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44008 (eval $ac_try) 2>&5
44009 ac_status=$?
44010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44011 (exit $ac_status); }; }; then
44012 ac_cv_header_WebKit_HIWebView_h=yes
44013else
44014 echo "$as_me: failed program was:" >&5
44015sed 's/^/| /' conftest.$ac_ext >&5
44016
44017ac_cv_header_WebKit_HIWebView_h=no
44018fi
44019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44020fi
44021echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44022echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44023if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44024
44025 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44026#define wxUSE_WEBKIT 1
44027_ACEOF
44028
07bea8f0
VS
44029 WEBKIT_LINK="-framework WebKit"
44030
44031else
44032
44033 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44034echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44035 wxUSE_WEBKIT=no
44036
646b6ec1
VS
44037fi
44038
07bea8f0
VS
44039
44040 CPPFLAGS="$old_CPPFLAGS"
44041 elif test "$wxUSE_COCOA" = 1; then
44042 cat >>confdefs.h <<\_ACEOF
44043#define wxUSE_WEBKIT 1
44044_ACEOF
44045
44046 else
44047 wxUSE_WEBKIT=no
44048 fi
44049fi
44050
9a8f0513
VS
44051USE_XRC=0
44052if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44053 if test "$wxUSE_XML" != "yes"; then
44054 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44055echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44056 wxUSE_XRC=no
44057 else
44058 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44059#define wxUSE_XRC 1
44060_ACEOF
44061
d2ebf0b7
VS
44062 USE_XRC=1
44063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44064 fi
9a8f0513 44065fi
07bea8f0 44066
a848cd7e
SC
44067if test "$wxUSE_MENUS" = "yes"; then
44068 cat >>confdefs.h <<\_ACEOF
44069#define wxUSE_MENUS 1
44070_ACEOF
44071
44072 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44073fi
44074
44075if test "$wxUSE_METAFILE" = "yes"; then
44076 cat >>confdefs.h <<\_ACEOF
44077#define wxUSE_METAFILE 1
44078_ACEOF
44079
44080fi
44081
44082if test "$wxUSE_MIMETYPE" = "yes"; then
44083 cat >>confdefs.h <<\_ACEOF
44084#define wxUSE_MIMETYPE 1
44085_ACEOF
44086
44087fi
44088
44089if test "$wxUSE_MINIFRAME" = "yes"; then
44090 cat >>confdefs.h <<\_ACEOF
44091#define wxUSE_MINIFRAME 1
44092_ACEOF
44093
44094 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44095fi
44096
44097if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44098 cat >>confdefs.h <<\_ACEOF
44099#define wxUSE_SYSTEM_OPTIONS 1
44100_ACEOF
44101
44102 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 44103 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
44104 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44105 fi
44106fi
44107
44108
44109if test "$wxUSE_VALIDATORS" = "yes"; then
44110 cat >>confdefs.h <<\_ACEOF
44111#define wxUSE_VALIDATORS 1
44112_ACEOF
44113
44114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44115fi
44116
44117if test "$wxUSE_PALETTE" = "yes" ; then
44118 cat >>confdefs.h <<\_ACEOF
44119#define wxUSE_PALETTE 1
44120_ACEOF
44121
44122fi
44123
44124if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44125 LIBS=" -lunicows $LIBS"
44126fi
44127
91dea314
MW
44128USE_RICHTEXT=0
44129if test "$wxUSE_RICHTEXT" = "yes"; then
44130 cat >>confdefs.h <<\_ACEOF
44131#define wxUSE_RICHTEXT 1
44132_ACEOF
44133
44134 USE_RICHTEXT=1
44135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44136fi
44137
a848cd7e
SC
44138
44139if test "$wxUSE_IMAGE" = "yes" ; then
44140 cat >>confdefs.h <<\_ACEOF
44141#define wxUSE_IMAGE 1
44142_ACEOF
44143
44144
44145 if test "$wxUSE_GIF" = "yes" ; then
44146 cat >>confdefs.h <<\_ACEOF
44147#define wxUSE_GIF 1
44148_ACEOF
44149
44150 fi
44151
44152 if test "$wxUSE_PCX" = "yes" ; then
44153 cat >>confdefs.h <<\_ACEOF
44154#define wxUSE_PCX 1
44155_ACEOF
44156
44157 fi
44158
44159 if test "$wxUSE_IFF" = "yes" ; then
44160 cat >>confdefs.h <<\_ACEOF
44161#define wxUSE_IFF 1
44162_ACEOF
44163
44164 fi
44165
44166 if test "$wxUSE_PNM" = "yes" ; then
44167 cat >>confdefs.h <<\_ACEOF
44168#define wxUSE_PNM 1
44169_ACEOF
44170
44171 fi
44172
44173 if test "$wxUSE_XPM" = "yes" ; then
44174 cat >>confdefs.h <<\_ACEOF
44175#define wxUSE_XPM 1
44176_ACEOF
44177
44178 fi
44179
44180 if test "$wxUSE_ICO_CUR" = "yes" ; then
44181 cat >>confdefs.h <<\_ACEOF
44182#define wxUSE_ICO_CUR 1
44183_ACEOF
44184
44185 fi
44186fi
44187
44188
44189if test "$wxUSE_CHOICEDLG" = "yes"; then
44190 cat >>confdefs.h <<\_ACEOF
44191#define wxUSE_CHOICEDLG 1
44192_ACEOF
44193
44194fi
44195
44196if test "$wxUSE_COLOURDLG" = "yes"; then
44197 cat >>confdefs.h <<\_ACEOF
44198#define wxUSE_COLOURDLG 1
44199_ACEOF
44200
44201fi
44202
44203if test "$wxUSE_FILEDLG" = "yes"; then
44204 cat >>confdefs.h <<\_ACEOF
44205#define wxUSE_FILEDLG 1
44206_ACEOF
44207
44208fi
44209
44210if test "$wxUSE_FINDREPLDLG" = "yes"; then
44211 cat >>confdefs.h <<\_ACEOF
44212#define wxUSE_FINDREPLDLG 1
44213_ACEOF
44214
44215fi
44216
44217if test "$wxUSE_FONTDLG" = "yes"; then
44218 cat >>confdefs.h <<\_ACEOF
44219#define wxUSE_FONTDLG 1
44220_ACEOF
44221
44222fi
44223
44224if test "$wxUSE_DIRDLG" = "yes"; then
44225 if test "$wxUSE_TREECTRL" != "yes"; then
44226 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44227echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44228 else
44229 cat >>confdefs.h <<\_ACEOF
44230#define wxUSE_DIRDLG 1
44231_ACEOF
44232
44233 fi
44234fi
44235
44236if test "$wxUSE_MSGDLG" = "yes"; then
44237 cat >>confdefs.h <<\_ACEOF
44238#define wxUSE_MSGDLG 1
44239_ACEOF
44240
44241fi
44242
44243if test "$wxUSE_NUMBERDLG" = "yes"; then
44244 cat >>confdefs.h <<\_ACEOF
44245#define wxUSE_NUMBERDLG 1
44246_ACEOF
44247
44248fi
44249
44250if test "$wxUSE_PROGRESSDLG" = "yes"; then
44251 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44252 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44253echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44254 else
44255 cat >>confdefs.h <<\_ACEOF
44256#define wxUSE_PROGRESSDLG 1
44257_ACEOF
44258
44259 fi
44260fi
44261
44262if test "$wxUSE_SPLASH" = "yes"; then
44263 cat >>confdefs.h <<\_ACEOF
44264#define wxUSE_SPLASH 1
44265_ACEOF
44266
2057db16 44267 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
44268fi
44269
44270if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44271 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44272 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44273echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44274 else
44275 cat >>confdefs.h <<\_ACEOF
44276#define wxUSE_STARTUP_TIPS 1
44277_ACEOF
44278
44279 fi
44280fi
44281
44282if test "$wxUSE_TEXTDLG" = "yes"; then
44283 cat >>confdefs.h <<\_ACEOF
44284#define wxUSE_TEXTDLG 1
44285_ACEOF
44286
44287fi
44288
44289if test "$wxUSE_WIZARDDLG" = "yes"; then
44290 cat >>confdefs.h <<\_ACEOF
44291#define wxUSE_WIZARDDLG 1
44292_ACEOF
44293
44294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44295fi
44296
44297
ce756cb0 44298if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
44299 if test "$wxUSE_GTK" = 1; then
44300 wxUSE_GSTREAMER="yes"
44301
ce756cb0 44302
dae87f93 44303 succeeded=no
ce756cb0 44304
dae87f93
RN
44305 if test -z "$PKG_CONFIG"; then
44306 # Extract the first word of "pkg-config", so it can be a program name with args.
44307set dummy pkg-config; ac_word=$2
44308echo "$as_me:$LINENO: checking for $ac_word" >&5
44309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44310if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44311 echo $ECHO_N "(cached) $ECHO_C" >&6
44312else
44313 case $PKG_CONFIG in
44314 [\\/]* | ?:[\\/]*)
44315 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44316 ;;
44317 *)
44318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44319for as_dir in $PATH
44320do
44321 IFS=$as_save_IFS
44322 test -z "$as_dir" && as_dir=.
44323 for ac_exec_ext in '' $ac_executable_extensions; do
44324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44325 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44327 break 2
44328 fi
44329done
44330done
44331
44332 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44333 ;;
44334esac
44335fi
44336PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44337
44338if test -n "$PKG_CONFIG"; then
44339 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44340echo "${ECHO_T}$PKG_CONFIG" >&6
44341else
44342 echo "$as_me:$LINENO: result: no" >&5
44343echo "${ECHO_T}no" >&6
44344fi
44345
44346 fi
44347
44348 if test "$PKG_CONFIG" = "no" ; then
44349 echo "*** The pkg-config script could not be found. Make sure it is"
44350 echo "*** in your path, or set the PKG_CONFIG environment variable"
44351 echo "*** to the full path to pkg-config."
44352 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44353 else
44354 PKG_CONFIG_MIN_VERSION=0.9.0
44355 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
44356 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
44357echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
44358
44359 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
44360 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44361echo "${ECHO_T}yes" >&6
dae87f93 44362 succeeded=yes
ce756cb0 44363
dae87f93
RN
44364 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
44365echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
44366 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
44367 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
44368echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
44369
44370 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
44371echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
44372 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
44373 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
44374echo "${ECHO_T}$GSTREAMER_LIBS" >&6
44375 else
44376 GSTREAMER_CFLAGS=""
44377 GSTREAMER_LIBS=""
44378 ## If we have a custom action on failure, don't print errors, but
44379 ## do set a variable so people can do so.
44380 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 44381
dae87f93
RN
44382 fi
44383
44384
44385
44386 else
44387 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44388 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44389 fi
44390 fi
44391
44392 if test $succeeded = yes; then
44393
c92ad099 44394 CPPFLAGS="$GSTREAMER_CFLAGS $CPPFLAGS"
dae87f93 44395 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 44396
ce756cb0 44397 else
dae87f93
RN
44398
44399 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
44400echo "$as_me: WARNING: GStreamer installation not found" >&2;}
44401 wxUSE_GSTREAMER="no"
44402
44403 fi
44404
44405
44406
44407
44408
44409 if test "x$GST_INSPECT" == "x"; then
44410 # Extract the first word of "gst-inspect", so it can be a program name with args.
44411set dummy gst-inspect; ac_word=$2
44412echo "$as_me:$LINENO: checking for $ac_word" >&5
44413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44414if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
44415 echo $ECHO_N "(cached) $ECHO_C" >&6
44416else
44417 if test -n "$GST_INSPECT"; then
44418 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
44419else
44420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44421for as_dir in $PATH
44422do
44423 IFS=$as_save_IFS
44424 test -z "$as_dir" && as_dir=.
44425 for ac_exec_ext in '' $ac_executable_extensions; do
44426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44427 ac_cv_prog_GST_INSPECT="gst-inspect"
44428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44429 break 2
ce756cb0 44430 fi
dae87f93
RN
44431done
44432done
44433
44434fi
44435fi
44436GST_INSPECT=$ac_cv_prog_GST_INSPECT
44437if test -n "$GST_INSPECT"; then
44438 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
44439echo "${ECHO_T}$GST_INSPECT" >&6
44440else
44441 echo "$as_me:$LINENO: result: no" >&5
44442echo "${ECHO_T}no" >&6
44443fi
44444
44445 fi
44446
44447 if test "x$GST_INSPECT" != "x"; then
44448 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
44449echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
44450 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
44451 echo "$as_me:$LINENO: result: found." >&5
44452echo "${ECHO_T}found." >&6
ce756cb0 44453
ce756cb0 44454 else
dae87f93
RN
44455 echo "$as_me:$LINENO: result: not found." >&5
44456echo "${ECHO_T}not found." >&6
44457
44458 wxUSE_GSTREAMER="no"
44459 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
44460echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
44461
44462 fi
44463 fi
44464
44465
44466 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
44467echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
44468if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
44469 echo $ECHO_N "(cached) $ECHO_C" >&6
44470else
44471 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
44472/* confdefs.h. */
44473_ACEOF
44474cat confdefs.h >>conftest.$ac_ext
44475cat >>conftest.$ac_ext <<_ACEOF
44476/* end confdefs.h. */
dae87f93 44477#include <gst/gst.h>
ce756cb0 44478
dae87f93 44479#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
44480_ACEOF
44481rm -f conftest.$ac_objext
44482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44483 (eval $ac_compile) 2>conftest.er1
44484 ac_status=$?
44485 grep -v '^ *+' conftest.er1 >conftest.err
44486 rm -f conftest.er1
44487 cat conftest.err >&5
44488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44489 (exit $ac_status); } &&
3565d135
RR
44490 { ac_try='test -z "$ac_c_werror_flag"
44491 || test ! -s conftest.err'
ce756cb0
RN
44492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44493 (eval $ac_try) 2>&5
44494 ac_status=$?
44495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44496 (exit $ac_status); }; } &&
44497 { ac_try='test -s conftest.$ac_objext'
44498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44499 (eval $ac_try) 2>&5
44500 ac_status=$?
44501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44502 (exit $ac_status); }; }; then
dae87f93 44503 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
44504else
44505 echo "$as_me: failed program was:" >&5
44506sed 's/^/| /' conftest.$ac_ext >&5
44507
dae87f93 44508ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
44509fi
44510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
44511fi
44512echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
44513echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
44514if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
44515 :
44516else
ce756cb0 44517
dae87f93
RN
44518 wxUSE_GSTREAMER="no"
44519 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
44520echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 44521
dae87f93 44522fi
ce756cb0 44523
dae87f93
RN
44524
44525
44526 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
44527echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
44528
0ad5d837
VZ
44529 ac_find_libraries=
44530 for ac_dir in $SEARCH_LIB;
ce756cb0 44531 do
3eca31dc 44532 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
44533 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
44534 ac_find_libraries=$ac_dir
44535 break 2
44536 fi
44537 done
44538 done
44539
ce756cb0 44540
dae87f93
RN
44541 if test "$ac_find_libraries" = "" ; then
44542 echo "$as_me:$LINENO: result: no" >&5
44543echo "${ECHO_T}no" >&6
44544 wxUSE_GSTREAMER="no"
44545 else
44546 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44547echo "${ECHO_T}yes" >&6
dae87f93 44548 fi
ce756cb0 44549
dae87f93
RN
44550 if test "$wxUSE_GSTREAMER" = "yes"; then
44551 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
44552#define wxUSE_GSTREAMER 1
44553_ACEOF
44554
dae87f93
RN
44555 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
44556echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
44557 fi
44558 fi
44559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
44560 cat >>confdefs.h <<\_ACEOF
44561#define wxUSE_MEDIACTRL 1
44562_ACEOF
44563
44564fi
44565
44566
a848cd7e
SC
44567if test "$cross_compiling" = "yes"; then
44568 OSINFO="\"$host\""
44569else
44570 OSINFO=`uname -s -r -m`
44571 OSINFO="\"$OSINFO\""
44572fi
44573
44574cat >>confdefs.h <<_ACEOF
44575#define WXWIN_OS_DESCRIPTION $OSINFO
44576_ACEOF
44577
44578
44579
44580if test "x$prefix" != "xNONE"; then
44581 wxPREFIX=$prefix
44582else
44583 wxPREFIX=$ac_default_prefix
44584fi
44585
44586cat >>confdefs.h <<_ACEOF
44587#define wxINSTALL_PREFIX "$wxPREFIX"
44588_ACEOF
44589
44590
a848cd7e
SC
44591
44592
44593CORE_BASE_LIBS="net base"
44594CORE_GUI_LIBS="adv core"
44595
44596if test "$wxUSE_XML" = "yes" ; then
44597 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
44598fi
44599if test "$wxUSE_ODBC" != "no" ; then
44600 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
44601 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
44602fi
44603if test "$wxUSE_HTML" = "yes" ; then
44604 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
44605fi
61639efb
VZ
44606if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44607 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
44608fi
9a8f0513
VS
44609if test "$wxUSE_XRC" = "yes" ; then
44610 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
44611fi
a848cd7e
SC
44612
44613if test "$wxUSE_GUI" != "yes"; then
44614 CORE_GUI_LIBS=""
44615fi
44616
44617
44618
44619
44620
44621
44622
a848cd7e 44623if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 44624 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
44625 if test "$USE_DARWIN" = 1; then
44626 LDFLAGS="$LDFLAGS -framework QuickTime"
44627 else
44628 LDFLAGS="$LDFLAGS -lQuickTimeLib"
44629 fi
07bea8f0 44630 fi
5dcf30a0 44631 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
44632 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
44633 else
44634 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 44635 fi
a848cd7e
SC
44636fi
44637if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 44638 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
44639 if test "$wxUSE_MEDIACTRL" = "yes"; then
44640 LDFLAGS="$LDFLAGS -framework QuickTime"
44641 fi
a848cd7e 44642fi
19b27e78
MW
44643if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
44644 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
44645fi
a848cd7e
SC
44646
44647
44648LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
44649
44650have_cos=0
44651have_floor=0
44652
44653for ac_func in cos
44654do
44655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44656echo "$as_me:$LINENO: checking for $ac_func" >&5
44657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44658if eval "test \"\${$as_ac_var+set}\" = set"; then
44659 echo $ECHO_N "(cached) $ECHO_C" >&6
44660else
44661 cat >conftest.$ac_ext <<_ACEOF
44662/* confdefs.h. */
44663_ACEOF
44664cat confdefs.h >>conftest.$ac_ext
44665cat >>conftest.$ac_ext <<_ACEOF
44666/* end confdefs.h. */
ac1cb8d3
VS
44667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44669#define $ac_func innocuous_$ac_func
44670
a848cd7e
SC
44671/* System header to define __stub macros and hopefully few prototypes,
44672 which can conflict with char $ac_func (); below.
44673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44674 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44675
a848cd7e
SC
44676#ifdef __STDC__
44677# include <limits.h>
44678#else
44679# include <assert.h>
44680#endif
ac1cb8d3
VS
44681
44682#undef $ac_func
44683
a848cd7e
SC
44684/* Override any gcc2 internal prototype to avoid an error. */
44685#ifdef __cplusplus
44686extern "C"
44687{
44688#endif
44689/* We use char because int might match the return type of a gcc2
44690 builtin and then its argument prototype would still apply. */
44691char $ac_func ();
44692/* The GNU C library defines this for functions which it implements
44693 to always fail with ENOSYS. Some functions are actually named
44694 something starting with __ and the normal name is an alias. */
44695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44696choke me
44697#else
44698char (*f) () = $ac_func;
44699#endif
44700#ifdef __cplusplus
44701}
44702#endif
44703
44704int
44705main ()
44706{
44707return f != $ac_func;
44708 ;
44709 return 0;
44710}
44711_ACEOF
44712rm -f conftest.$ac_objext conftest$ac_exeext
44713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44714 (eval $ac_link) 2>conftest.er1
a848cd7e 44715 ac_status=$?
ac1cb8d3
VS
44716 grep -v '^ *+' conftest.er1 >conftest.err
44717 rm -f conftest.er1
44718 cat conftest.err >&5
a848cd7e
SC
44719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44720 (exit $ac_status); } &&
3565d135
RR
44721 { ac_try='test -z "$ac_c_werror_flag"
44722 || test ! -s conftest.err'
ac1cb8d3
VS
44723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44724 (eval $ac_try) 2>&5
44725 ac_status=$?
44726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44727 (exit $ac_status); }; } &&
44728 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44730 (eval $ac_try) 2>&5
44731 ac_status=$?
44732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44733 (exit $ac_status); }; }; then
44734 eval "$as_ac_var=yes"
44735else
44736 echo "$as_me: failed program was:" >&5
44737sed 's/^/| /' conftest.$ac_ext >&5
44738
44739eval "$as_ac_var=no"
44740fi
ac1cb8d3
VS
44741rm -f conftest.err conftest.$ac_objext \
44742 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44743fi
44744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44745echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44746if test `eval echo '${'$as_ac_var'}'` = yes; then
44747 cat >>confdefs.h <<_ACEOF
44748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44749_ACEOF
44750 have_cos=1
44751fi
44752done
44753
44754
44755for ac_func in floor
44756do
44757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44758echo "$as_me:$LINENO: checking for $ac_func" >&5
44759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44760if eval "test \"\${$as_ac_var+set}\" = set"; then
44761 echo $ECHO_N "(cached) $ECHO_C" >&6
44762else
44763 cat >conftest.$ac_ext <<_ACEOF
44764/* confdefs.h. */
44765_ACEOF
44766cat confdefs.h >>conftest.$ac_ext
44767cat >>conftest.$ac_ext <<_ACEOF
44768/* end confdefs.h. */
ac1cb8d3
VS
44769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44771#define $ac_func innocuous_$ac_func
44772
a848cd7e
SC
44773/* System header to define __stub macros and hopefully few prototypes,
44774 which can conflict with char $ac_func (); below.
44775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44776 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44777
a848cd7e
SC
44778#ifdef __STDC__
44779# include <limits.h>
44780#else
44781# include <assert.h>
44782#endif
ac1cb8d3
VS
44783
44784#undef $ac_func
44785
a848cd7e
SC
44786/* Override any gcc2 internal prototype to avoid an error. */
44787#ifdef __cplusplus
44788extern "C"
44789{
44790#endif
44791/* We use char because int might match the return type of a gcc2
44792 builtin and then its argument prototype would still apply. */
44793char $ac_func ();
44794/* The GNU C library defines this for functions which it implements
44795 to always fail with ENOSYS. Some functions are actually named
44796 something starting with __ and the normal name is an alias. */
44797#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44798choke me
44799#else
44800char (*f) () = $ac_func;
44801#endif
44802#ifdef __cplusplus
44803}
44804#endif
44805
44806int
44807main ()
44808{
44809return f != $ac_func;
44810 ;
44811 return 0;
44812}
44813_ACEOF
44814rm -f conftest.$ac_objext conftest$ac_exeext
44815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44816 (eval $ac_link) 2>conftest.er1
a848cd7e 44817 ac_status=$?
ac1cb8d3
VS
44818 grep -v '^ *+' conftest.er1 >conftest.err
44819 rm -f conftest.er1
44820 cat conftest.err >&5
a848cd7e
SC
44821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44822 (exit $ac_status); } &&
3565d135
RR
44823 { ac_try='test -z "$ac_c_werror_flag"
44824 || test ! -s conftest.err'
ac1cb8d3
VS
44825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44826 (eval $ac_try) 2>&5
44827 ac_status=$?
44828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44829 (exit $ac_status); }; } &&
44830 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44832 (eval $ac_try) 2>&5
44833 ac_status=$?
44834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44835 (exit $ac_status); }; }; then
44836 eval "$as_ac_var=yes"
44837else
44838 echo "$as_me: failed program was:" >&5
44839sed 's/^/| /' conftest.$ac_ext >&5
44840
44841eval "$as_ac_var=no"
44842fi
ac1cb8d3
VS
44843rm -f conftest.err conftest.$ac_objext \
44844 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44845fi
44846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44847echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44848if test `eval echo '${'$as_ac_var'}'` = yes; then
44849 cat >>confdefs.h <<_ACEOF
44850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44851_ACEOF
44852 have_floor=1
44853fi
44854done
44855
44856echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
44857echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
44858if test "$have_cos" = 1 -a "$have_floor" = 1; then
44859 echo "$as_me:$LINENO: result: yes" >&5
44860echo "${ECHO_T}yes" >&6
44861else
44862 echo "$as_me:$LINENO: result: no" >&5
44863echo "${ECHO_T}no" >&6
44864 LIBS="$LIBS -lm"
44865 # use different functions to avoid configure caching
44866 have_sin=0
44867 have_ceil=0
44868
44869for ac_func in sin
44870do
44871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44872echo "$as_me:$LINENO: checking for $ac_func" >&5
44873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44874if eval "test \"\${$as_ac_var+set}\" = set"; then
44875 echo $ECHO_N "(cached) $ECHO_C" >&6
44876else
44877 cat >conftest.$ac_ext <<_ACEOF
44878/* confdefs.h. */
44879_ACEOF
44880cat confdefs.h >>conftest.$ac_ext
44881cat >>conftest.$ac_ext <<_ACEOF
44882/* end confdefs.h. */
ac1cb8d3
VS
44883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44885#define $ac_func innocuous_$ac_func
44886
a848cd7e
SC
44887/* System header to define __stub macros and hopefully few prototypes,
44888 which can conflict with char $ac_func (); below.
44889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44890 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44891
a848cd7e
SC
44892#ifdef __STDC__
44893# include <limits.h>
44894#else
44895# include <assert.h>
44896#endif
ac1cb8d3
VS
44897
44898#undef $ac_func
44899
a848cd7e
SC
44900/* Override any gcc2 internal prototype to avoid an error. */
44901#ifdef __cplusplus
44902extern "C"
44903{
44904#endif
44905/* We use char because int might match the return type of a gcc2
44906 builtin and then its argument prototype would still apply. */
44907char $ac_func ();
44908/* The GNU C library defines this for functions which it implements
44909 to always fail with ENOSYS. Some functions are actually named
44910 something starting with __ and the normal name is an alias. */
44911#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44912choke me
44913#else
44914char (*f) () = $ac_func;
44915#endif
44916#ifdef __cplusplus
44917}
44918#endif
44919
44920int
44921main ()
44922{
44923return f != $ac_func;
44924 ;
44925 return 0;
44926}
44927_ACEOF
44928rm -f conftest.$ac_objext conftest$ac_exeext
44929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44930 (eval $ac_link) 2>conftest.er1
a848cd7e 44931 ac_status=$?
ac1cb8d3
VS
44932 grep -v '^ *+' conftest.er1 >conftest.err
44933 rm -f conftest.er1
44934 cat conftest.err >&5
a848cd7e
SC
44935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44936 (exit $ac_status); } &&
3565d135
RR
44937 { ac_try='test -z "$ac_c_werror_flag"
44938 || test ! -s conftest.err'
ac1cb8d3
VS
44939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44940 (eval $ac_try) 2>&5
44941 ac_status=$?
44942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44943 (exit $ac_status); }; } &&
44944 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44946 (eval $ac_try) 2>&5
44947 ac_status=$?
44948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44949 (exit $ac_status); }; }; then
44950 eval "$as_ac_var=yes"
44951else
44952 echo "$as_me: failed program was:" >&5
44953sed 's/^/| /' conftest.$ac_ext >&5
44954
44955eval "$as_ac_var=no"
44956fi
ac1cb8d3
VS
44957rm -f conftest.err conftest.$ac_objext \
44958 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44959fi
44960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44961echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44962if test `eval echo '${'$as_ac_var'}'` = yes; then
44963 cat >>confdefs.h <<_ACEOF
44964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44965_ACEOF
44966 have_sin=1
44967fi
44968done
44969
44970
44971for ac_func in ceil
44972do
44973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44974echo "$as_me:$LINENO: checking for $ac_func" >&5
44975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44976if eval "test \"\${$as_ac_var+set}\" = set"; then
44977 echo $ECHO_N "(cached) $ECHO_C" >&6
44978else
44979 cat >conftest.$ac_ext <<_ACEOF
44980/* confdefs.h. */
44981_ACEOF
44982cat confdefs.h >>conftest.$ac_ext
44983cat >>conftest.$ac_ext <<_ACEOF
44984/* end confdefs.h. */
ac1cb8d3
VS
44985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44987#define $ac_func innocuous_$ac_func
44988
a848cd7e
SC
44989/* System header to define __stub macros and hopefully few prototypes,
44990 which can conflict with char $ac_func (); below.
44991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44992 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44993
a848cd7e
SC
44994#ifdef __STDC__
44995# include <limits.h>
44996#else
44997# include <assert.h>
44998#endif
ac1cb8d3
VS
44999
45000#undef $ac_func
45001
a848cd7e
SC
45002/* Override any gcc2 internal prototype to avoid an error. */
45003#ifdef __cplusplus
45004extern "C"
45005{
45006#endif
45007/* We use char because int might match the return type of a gcc2
45008 builtin and then its argument prototype would still apply. */
45009char $ac_func ();
45010/* The GNU C library defines this for functions which it implements
45011 to always fail with ENOSYS. Some functions are actually named
45012 something starting with __ and the normal name is an alias. */
45013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45014choke me
45015#else
45016char (*f) () = $ac_func;
45017#endif
45018#ifdef __cplusplus
45019}
45020#endif
45021
45022int
45023main ()
45024{
45025return f != $ac_func;
45026 ;
45027 return 0;
45028}
45029_ACEOF
45030rm -f conftest.$ac_objext conftest$ac_exeext
45031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45032 (eval $ac_link) 2>conftest.er1
a848cd7e 45033 ac_status=$?
ac1cb8d3
VS
45034 grep -v '^ *+' conftest.er1 >conftest.err
45035 rm -f conftest.er1
45036 cat conftest.err >&5
a848cd7e
SC
45037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45038 (exit $ac_status); } &&
3565d135
RR
45039 { ac_try='test -z "$ac_c_werror_flag"
45040 || test ! -s conftest.err'
ac1cb8d3
VS
45041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45042 (eval $ac_try) 2>&5
45043 ac_status=$?
45044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45045 (exit $ac_status); }; } &&
45046 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45048 (eval $ac_try) 2>&5
45049 ac_status=$?
45050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45051 (exit $ac_status); }; }; then
45052 eval "$as_ac_var=yes"
45053else
45054 echo "$as_me: failed program was:" >&5
45055sed 's/^/| /' conftest.$ac_ext >&5
45056
45057eval "$as_ac_var=no"
45058fi
ac1cb8d3
VS
45059rm -f conftest.err conftest.$ac_objext \
45060 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45061fi
45062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45064if test `eval echo '${'$as_ac_var'}'` = yes; then
45065 cat >>confdefs.h <<_ACEOF
45066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45067_ACEOF
45068 have_ceil=1
45069fi
45070done
45071
45072 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
45073echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
45074 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
45075 echo "$as_me:$LINENO: result: yes" >&5
45076echo "${ECHO_T}yes" >&6
45077 else
45078 echo "$as_me:$LINENO: result: no" >&5
45079echo "${ECHO_T}no" >&6
45080 # not sure we should warn the user, crash, etc.
45081 fi
45082fi
45083
45084if test "$wxUSE_GUI" = "yes"; then
45085
45086
8bce5cda
MW
45087 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45088 dynamic erase event exec font image minimal mobile \
45089 mobile/wxedit mobile/styles propsize render \
45090 richedit rotate shaped vscroll widgets"
a848cd7e
SC
45091
45092 if test "$wxUSE_MONOLITHIC" != "yes"; then
45093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45094 fi
0b78747f 45095 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45097 if test "$wxUSE_UNIVERSAL" != "yes"; then
45098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45099 fi
45100 fi
45101 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45103 fi
a848cd7e
SC
45104else
45105 SAMPLES_SUBDIRS="console"
45106fi
45107
45108
48f625bc 45109if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45110 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45111elif test "$GCC" = yes ; then
45112 CWARNINGS="-Wall -Wundef"
45113fi
45114
48f625bc 45115if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45116 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45117elif test "$GXX" = yes ; then
45118 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45119fi
a848cd7e 45120
a848cd7e 45121
5ff751d6
VZ
45122WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45123WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45124
45125
c92ad099 45126CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45127 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45128 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45129 $CPPFLAGS `
5ff751d6 45130
8aeeb05c 45131C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45132CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45133CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45134
45135WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45136
a848cd7e 45137
95986553
DE
45138if test "x$MWCC" = "xyes"; then
45139
45140 CC="$CC -cwd source -I-"
45141 CXX="$CXX -cwd source -I-"
45142fi
45143
a848cd7e 45144
0c3c69fc 45145LIBS=`echo $LIBS`
a848cd7e
SC
45146EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45147EXTRALIBS_XML="$EXPAT_LINK"
45148EXTRALIBS_HTML="$MSPACK_LINK"
45149EXTRALIBS_ODBC="$ODBC_LINK"
45150if test "$wxUSE_GUI" = "yes"; then
3565d135 45151 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45152fi
45153if test "$wxUSE_OPENGL" = "yes"; then
45154 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45155fi
45156
8aeeb05c 45157LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45158
5ff751d6 45159WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45160
45161if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45162 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45163fi
45164if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45165 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45166fi
45167if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45168 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45169fi
45170if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45171 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45172fi
45173if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45174 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45175fi
45176if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45177 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45178fi
45179if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45180 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45181fi
45182
45183for i in $wxconfig_3rdparty ; do
5ff751d6 45184 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45185done
45186
45187
45188if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45189 WXUNIV=1
45190else
45191 WXUNIV=0
45192fi
45193
45194
45195
45196
45197
45198
45199
45200
45201
45202if test $wxUSE_MONOLITHIC = "yes" ; then
45203 MONOLITHIC=1
45204else
45205 MONOLITHIC=0
45206fi
45207
45208if test $wxUSE_PLUGINS = "yes" ; then
45209 USE_PLUGINS=1
45210else
45211 USE_PLUGINS=0
45212fi
45213
45214if test $wxUSE_ODBC != "no" ; then
45215 USE_ODBC=1
45216else
45217 USE_ODBC=0
45218fi
45219
16358932
VZ
45220if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45221 USE_QA=1
45222else
45223 USE_QA=0
45224fi
45225
a848cd7e
SC
45226if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45227 OFFICIAL_BUILD=1
45228else
45229 OFFICIAL_BUILD=0
45230fi
45231
45232
45233
45234
45235
45236
45237
45238
45239
45240
45241
45242
45243
45244
45245
45246
45247
45248
45249
ceec2216 45250
d1c38808 45251
3565d135 45252
a848cd7e
SC
45253
45254
45255TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45256
45257
45258
45259
45260
45261
45262
45263
4d4ff94c
VZ
45264case "$TOOLKIT" in
45265 GTK)
45266 TOOLKIT_USER="GTK+"
45267 if test "$WXGTK20" = 1; then
45268 TOOLKIT_USER="$TOOLKIT_USER 2"
45269 fi
9a8f0513 45270 ;;
4d4ff94c
VZ
45271
45272 *)
45273 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45274 ;;
4d4ff94c 45275esac
a848cd7e 45276
fb00f58d
JS
45277if test "$wxUSE_WINE" = "yes"; then
45278 BAKEFILE_FORCE_PLATFORM=win32
45279fi
45280
7afc46ab
KO
45281if test "$wxUSE_MAC" = 1 ; then
45282 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
45283 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
45284 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
45285 LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
45286 bk_use_pch=no
45287 fi
45288 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45289 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45290 # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
45291fi
45292
9a8f0513 45293
1e9e8aba
DE
45294
45295
a848cd7e
SC
45296 if test "x$BAKEFILE_HOST" = "x"; then
45297 BAKEFILE_HOST="${host}"
45298 fi
45299
45300 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45301
45302 if test -n "$ac_tool_prefix"; then
45303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45304set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45305echo "$as_me:$LINENO: checking for $ac_word" >&5
45306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45307if test "${ac_cv_prog_RANLIB+set}" = set; then
45308 echo $ECHO_N "(cached) $ECHO_C" >&6
45309else
45310 if test -n "$RANLIB"; then
45311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45312else
45313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45314for as_dir in $PATH
45315do
45316 IFS=$as_save_IFS
45317 test -z "$as_dir" && as_dir=.
45318 for ac_exec_ext in '' $ac_executable_extensions; do
45319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45322 break 2
45323 fi
45324done
45325done
45326
45327fi
45328fi
45329RANLIB=$ac_cv_prog_RANLIB
45330if test -n "$RANLIB"; then
45331 echo "$as_me:$LINENO: result: $RANLIB" >&5
45332echo "${ECHO_T}$RANLIB" >&6
45333else
45334 echo "$as_me:$LINENO: result: no" >&5
45335echo "${ECHO_T}no" >&6
45336fi
45337
45338fi
45339if test -z "$ac_cv_prog_RANLIB"; then
45340 ac_ct_RANLIB=$RANLIB
45341 # Extract the first word of "ranlib", so it can be a program name with args.
45342set dummy ranlib; ac_word=$2
45343echo "$as_me:$LINENO: checking for $ac_word" >&5
45344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45345if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45346 echo $ECHO_N "(cached) $ECHO_C" >&6
45347else
45348 if test -n "$ac_ct_RANLIB"; then
45349 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45350else
45351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45352for as_dir in $PATH
45353do
45354 IFS=$as_save_IFS
45355 test -z "$as_dir" && as_dir=.
45356 for ac_exec_ext in '' $ac_executable_extensions; do
45357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45358 ac_cv_prog_ac_ct_RANLIB="ranlib"
45359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45360 break 2
45361 fi
45362done
45363done
45364
45365 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45366fi
45367fi
45368ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45369if test -n "$ac_ct_RANLIB"; then
45370 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45371echo "${ECHO_T}$ac_ct_RANLIB" >&6
45372else
45373 echo "$as_me:$LINENO: result: no" >&5
45374echo "${ECHO_T}no" >&6
45375fi
45376
45377 RANLIB=$ac_ct_RANLIB
45378else
45379 RANLIB="$ac_cv_prog_RANLIB"
45380fi
45381
45382 # Find a good install program. We prefer a C program (faster),
45383# so one script is as good as another. But avoid the broken or
45384# incompatible versions:
45385# SysV /etc/install, /usr/sbin/install
45386# SunOS /usr/etc/install
45387# IRIX /sbin/install
45388# AIX /bin/install
45389# AmigaOS /C/install, which installs bootblocks on floppy discs
45390# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45391# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45392# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45393# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45394# ./install, which can be erroneously created by make from ./install.sh.
45395echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45396echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45397if test -z "$INSTALL"; then
45398if test "${ac_cv_path_install+set}" = set; then
45399 echo $ECHO_N "(cached) $ECHO_C" >&6
45400else
45401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45402for as_dir in $PATH
45403do
45404 IFS=$as_save_IFS
45405 test -z "$as_dir" && as_dir=.
45406 # Account for people who put trailing slashes in PATH elements.
45407case $as_dir/ in
45408 ./ | .// | /cC/* | \
45409 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45410 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45411 /usr/ucb/* ) ;;
45412 *)
45413 # OSF1 and SCO ODT 3.0 have their own names for install.
45414 # Don't use installbsd from OSF since it installs stuff as root
45415 # by default.
45416 for ac_prog in ginstall scoinst install; do
45417 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45418 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45419 if test $ac_prog = install &&
45420 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45421 # AIX install. It has an incompatible calling convention.
45422 :
45423 elif test $ac_prog = install &&
45424 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45425 # program-specific install script used by HP pwplus--don't use.
45426 :
45427 else
45428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45429 break 3
45430 fi
45431 fi
a848cd7e
SC
45432 done
45433 done
45434 ;;
45435esac
45436done
45437
45438
45439fi
45440 if test "${ac_cv_path_install+set}" = set; then
45441 INSTALL=$ac_cv_path_install
45442 else
45443 # As a last resort, use the slow shell script. We don't cache a
45444 # path for INSTALL within a source directory, because that will
45445 # break other packages using the cache if that directory is
45446 # removed, or if the path is relative.
45447 INSTALL=$ac_install_sh
45448 fi
45449fi
45450echo "$as_me:$LINENO: result: $INSTALL" >&5
45451echo "${ECHO_T}$INSTALL" >&6
45452
45453# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45454# It thinks the first close brace ends the variable substitution.
45455test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45456
45457test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45458
45459test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45460
45461 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45462echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45463LN_S=$as_ln_s
45464if test "$LN_S" = "ln -s"; then
45465 echo "$as_me:$LINENO: result: yes" >&5
45466echo "${ECHO_T}yes" >&6
45467else
45468 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45469echo "${ECHO_T}no, using $LN_S" >&6
45470fi
45471
45472
45473 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45474echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45475set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45476if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45477 echo $ECHO_N "(cached) $ECHO_C" >&6
45478else
45479 cat >conftest.make <<\_ACEOF
45480all:
45481 @echo 'ac_maketemp="$(MAKE)"'
45482_ACEOF
45483# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45484eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45485if test -n "$ac_maketemp"; then
45486 eval ac_cv_prog_make_${ac_make}_set=yes
45487else
45488 eval ac_cv_prog_make_${ac_make}_set=no
45489fi
45490rm -f conftest.make
45491fi
45492if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45493 echo "$as_me:$LINENO: result: yes" >&5
45494echo "${ECHO_T}yes" >&6
45495 SET_MAKE=
45496else
45497 echo "$as_me:$LINENO: result: no" >&5
45498echo "${ECHO_T}no" >&6
45499 SET_MAKE="MAKE=${MAKE-make}"
45500fi
45501
45502
45503
45504 if test -n "$ac_tool_prefix"; then
45505 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45506set dummy ${ac_tool_prefix}ar; ac_word=$2
45507echo "$as_me:$LINENO: checking for $ac_word" >&5
45508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45509if test "${ac_cv_prog_AR+set}" = set; then
45510 echo $ECHO_N "(cached) $ECHO_C" >&6
45511else
45512 if test -n "$AR"; then
45513 ac_cv_prog_AR="$AR" # Let the user override the test.
45514else
45515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45516for as_dir in $PATH
45517do
45518 IFS=$as_save_IFS
45519 test -z "$as_dir" && as_dir=.
45520 for ac_exec_ext in '' $ac_executable_extensions; do
45521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45522 ac_cv_prog_AR="${ac_tool_prefix}ar"
45523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45524 break 2
45525 fi
45526done
45527done
45528
45529fi
45530fi
45531AR=$ac_cv_prog_AR
45532if test -n "$AR"; then
45533 echo "$as_me:$LINENO: result: $AR" >&5
45534echo "${ECHO_T}$AR" >&6
45535else
45536 echo "$as_me:$LINENO: result: no" >&5
45537echo "${ECHO_T}no" >&6
45538fi
45539
45540fi
45541if test -z "$ac_cv_prog_AR"; then
45542 ac_ct_AR=$AR
45543 # Extract the first word of "ar", so it can be a program name with args.
45544set dummy ar; ac_word=$2
45545echo "$as_me:$LINENO: checking for $ac_word" >&5
45546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45547if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45548 echo $ECHO_N "(cached) $ECHO_C" >&6
45549else
45550 if test -n "$ac_ct_AR"; then
45551 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45552else
45553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45554for as_dir in $PATH
45555do
45556 IFS=$as_save_IFS
45557 test -z "$as_dir" && as_dir=.
45558 for ac_exec_ext in '' $ac_executable_extensions; do
45559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45560 ac_cv_prog_ac_ct_AR="ar"
45561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45562 break 2
45563 fi
45564done
45565done
45566
45567 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45568fi
45569fi
45570ac_ct_AR=$ac_cv_prog_ac_ct_AR
45571if test -n "$ac_ct_AR"; then
45572 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45573echo "${ECHO_T}$ac_ct_AR" >&6
45574else
45575 echo "$as_me:$LINENO: result: no" >&5
45576echo "${ECHO_T}no" >&6
45577fi
45578
45579 AR=$ac_ct_AR
45580else
45581 AR="$ac_cv_prog_AR"
45582fi
45583
45584 if test -n "$ac_tool_prefix"; then
45585 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45586set dummy ${ac_tool_prefix}strip; ac_word=$2
45587echo "$as_me:$LINENO: checking for $ac_word" >&5
45588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45589if test "${ac_cv_prog_STRIP+set}" = set; then
45590 echo $ECHO_N "(cached) $ECHO_C" >&6
45591else
45592 if test -n "$STRIP"; then
45593 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45594else
45595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45596for as_dir in $PATH
45597do
45598 IFS=$as_save_IFS
45599 test -z "$as_dir" && as_dir=.
45600 for ac_exec_ext in '' $ac_executable_extensions; do
45601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45602 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45604 break 2
45605 fi
45606done
45607done
45608
45609fi
45610fi
45611STRIP=$ac_cv_prog_STRIP
45612if test -n "$STRIP"; then
45613 echo "$as_me:$LINENO: result: $STRIP" >&5
45614echo "${ECHO_T}$STRIP" >&6
45615else
45616 echo "$as_me:$LINENO: result: no" >&5
45617echo "${ECHO_T}no" >&6
45618fi
45619
45620fi
45621if test -z "$ac_cv_prog_STRIP"; then
45622 ac_ct_STRIP=$STRIP
45623 # Extract the first word of "strip", so it can be a program name with args.
45624set dummy strip; ac_word=$2
45625echo "$as_me:$LINENO: checking for $ac_word" >&5
45626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45627if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45628 echo $ECHO_N "(cached) $ECHO_C" >&6
45629else
45630 if test -n "$ac_ct_STRIP"; then
45631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45632else
45633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45634for as_dir in $PATH
45635do
45636 IFS=$as_save_IFS
45637 test -z "$as_dir" && as_dir=.
45638 for ac_exec_ext in '' $ac_executable_extensions; do
45639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45640 ac_cv_prog_ac_ct_STRIP="strip"
45641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45642 break 2
45643 fi
45644done
45645done
45646
45647 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45648fi
45649fi
45650ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45651if test -n "$ac_ct_STRIP"; then
45652 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45653echo "${ECHO_T}$ac_ct_STRIP" >&6
45654else
45655 echo "$as_me:$LINENO: result: no" >&5
45656echo "${ECHO_T}no" >&6
45657fi
45658
45659 STRIP=$ac_ct_STRIP
45660else
45661 STRIP="$ac_cv_prog_STRIP"
45662fi
45663
45664 if test -n "$ac_tool_prefix"; then
45665 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45666set dummy ${ac_tool_prefix}nm; ac_word=$2
45667echo "$as_me:$LINENO: checking for $ac_word" >&5
45668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45669if test "${ac_cv_prog_NM+set}" = set; then
45670 echo $ECHO_N "(cached) $ECHO_C" >&6
45671else
45672 if test -n "$NM"; then
45673 ac_cv_prog_NM="$NM" # Let the user override the test.
45674else
45675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45676for as_dir in $PATH
45677do
45678 IFS=$as_save_IFS
45679 test -z "$as_dir" && as_dir=.
45680 for ac_exec_ext in '' $ac_executable_extensions; do
45681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45682 ac_cv_prog_NM="${ac_tool_prefix}nm"
45683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45684 break 2
45685 fi
45686done
45687done
45688
45689fi
45690fi
45691NM=$ac_cv_prog_NM
45692if test -n "$NM"; then
45693 echo "$as_me:$LINENO: result: $NM" >&5
45694echo "${ECHO_T}$NM" >&6
45695else
45696 echo "$as_me:$LINENO: result: no" >&5
45697echo "${ECHO_T}no" >&6
45698fi
45699
45700fi
45701if test -z "$ac_cv_prog_NM"; then
45702 ac_ct_NM=$NM
45703 # Extract the first word of "nm", so it can be a program name with args.
45704set dummy nm; ac_word=$2
45705echo "$as_me:$LINENO: checking for $ac_word" >&5
45706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45707if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45708 echo $ECHO_N "(cached) $ECHO_C" >&6
45709else
45710 if test -n "$ac_ct_NM"; then
45711 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45712else
45713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45714for as_dir in $PATH
45715do
45716 IFS=$as_save_IFS
45717 test -z "$as_dir" && as_dir=.
45718 for ac_exec_ext in '' $ac_executable_extensions; do
45719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45720 ac_cv_prog_ac_ct_NM="nm"
45721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45722 break 2
45723 fi
45724done
45725done
45726
45727 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45728fi
45729fi
45730ac_ct_NM=$ac_cv_prog_ac_ct_NM
45731if test -n "$ac_ct_NM"; then
45732 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45733echo "${ECHO_T}$ac_ct_NM" >&6
45734else
45735 echo "$as_me:$LINENO: result: no" >&5
45736echo "${ECHO_T}no" >&6
45737fi
45738
45739 NM=$ac_ct_NM
45740else
45741 NM="$ac_cv_prog_NM"
45742fi
45743
45744
45745 case ${BAKEFILE_HOST} in
45746 *-hp-hpux* )
1e9e8aba 45747 INSTALL_DIR="mkdir -p"
a848cd7e
SC
45748 ;;
45749 *) INSTALL_DIR="$INSTALL -d"
45750 ;;
45751 esac
45752
45753
45754 LDFLAGS_GUI=
45755 case ${BAKEFILE_HOST} in
45756 *-*-cygwin* | *-*-mingw32* )
45757 LDFLAGS_GUI="-mwindows"
45758 esac
45759
45760
45761 fi
45762
45763 echo "$as_me:$LINENO: checking if make is GNU make" >&5
45764echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45765if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45766 echo $ECHO_N "(cached) $ECHO_C" >&6
45767else
45768
45769 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45770 egrep -s GNU > /dev/null); then
45771 bakefile_cv_prog_makeisgnu="yes"
45772 else
45773 bakefile_cv_prog_makeisgnu="no"
45774 fi
45775
45776fi
45777echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45778echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45779
45780 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45781 IF_GNU_MAKE=""
45782 else
45783 IF_GNU_MAKE="#"
45784 fi
45785
45786
45787
45788 PLATFORM_UNIX=0
45789 PLATFORM_WIN32=0
45790 PLATFORM_MSDOS=0
45791 PLATFORM_MAC=0
1e9e8aba 45792 PLATFORM_MACOS=0
a848cd7e
SC
45793 PLATFORM_MACOSX=0
45794 PLATFORM_OS2=0
1e9e8aba 45795 PLATFORM_BEOS=0
a848cd7e
SC
45796
45797 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45798 case "${BAKEFILE_HOST}" in
810b94f0 45799 *-*-mingw32* )
a848cd7e
SC
45800 PLATFORM_WIN32=1
45801 ;;
45802 *-pc-msdosdjgpp )
45803 PLATFORM_MSDOS=1
45804 ;;
45805 *-pc-os2_emx | *-pc-os2-emx )
45806 PLATFORM_OS2=1
45807 ;;
47bd5406 45808 *-*-darwin* )
a848cd7e
SC
45809 PLATFORM_MAC=1
45810 PLATFORM_MACOSX=1
45811 ;;
1e9e8aba
DE
45812 *-*-beos* )
45813 PLATFORM_BEOS=1
45814 ;;
45815 powerpc-apple-macos* )
45816 PLATFORM_MAC=1
45817 PLATFORM_MACOS=1
45818 ;;
a848cd7e
SC
45819 * )
45820 PLATFORM_UNIX=1
45821 ;;
45822 esac
45823 else
45824 case "$BAKEFILE_FORCE_PLATFORM" in
45825 win32 )
45826 PLATFORM_WIN32=1
45827 ;;
45828 msdos )
45829 PLATFORM_MSDOS=1
45830 ;;
45831 os2 )
45832 PLATFORM_OS2=1
45833 ;;
45834 darwin )
45835 PLATFORM_MAC=1
45836 PLATFORM_MACOSX=1
45837 ;;
45838 unix )
45839 PLATFORM_UNIX=1
45840 ;;
1e9e8aba
DE
45841 beos )
45842 PLATFORM_BEOS=1
45843 ;;
a848cd7e
SC
45844 * )
45845 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45846echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45847 { (exit 1); exit 1; }; }
45848 ;;
45849 esac
45850 fi
45851
45852
45853
45854
45855
45856
45857
45858
45859
1e9e8aba
DE
45860
45861
a848cd7e
SC
45862 # Check whether --enable-omf or --disable-omf was given.
45863if test "${enable_omf+set}" = set; then
45864 enableval="$enable_omf"
45865 bk_os2_use_omf="$enableval"
45866fi;
45867
45868 case "${BAKEFILE_HOST}" in
45869 *-*-darwin* )
47bd5406
VZ
45870 if test "x$GCC" = "xyes"; then
45871 CFLAGS="$CFLAGS -fno-common"
45872 CXXFLAGS="$CXXFLAGS -fno-common"
45873 fi
45874 if test "x$XLCC" = "xyes"; then
45875 CFLAGS="$CFLAGS -qnocommon"
45876 CXXFLAGS="$CXXFLAGS -qnocommon"
45877 fi
a848cd7e
SC
45878 ;;
45879
45880 *-pc-os2_emx | *-pc-os2-emx )
45881 if test "x$bk_os2_use_omf" = "xyes" ; then
45882 AR=emxomfar
45883 RANLIB=:
45884 LDFLAGS="-Zomf $LDFLAGS"
45885 CFLAGS="-Zomf $CFLAGS"
45886 CXXFLAGS="-Zomf $CXXFLAGS"
45887 OS2_LIBEXT="lib"
45888 else
45889 OS2_LIBEXT="a"
45890 fi
45891 ;;
1e9e8aba
DE
45892
45893 i*86-*-beos* )
45894 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
45895 ;;
a848cd7e
SC
45896 esac
45897
45898
45899 SO_SUFFIX="so"
45900 SO_SUFFIX_MODULE="so"
45901 EXEEXT=""
45902 LIBPREFIX="lib"
45903 LIBEXT=".a"
45904 DLLPREFIX="lib"
45905 DLLPREFIX_MODULE=""
45906 DLLIMP_SUFFIX=""
810b94f0 45907 dlldir="$libdir"
a848cd7e
SC
45908
45909 case "${BAKEFILE_HOST}" in
45910 *-hp-hpux* )
45911 SO_SUFFIX="sl"
45912 SO_SUFFIX_MODULE="sl"
45913 ;;
45914 *-*-aix* )
45915 SO_SUFFIX="a"
45916 SO_SUFFIX_MODULE="a"
45917 ;;
810b94f0
MW
45918 *-*-cygwin* )
45919 SO_SUFFIX="dll"
45920 SO_SUFFIX_MODULE="dll"
45921 DLLIMP_SUFFIX="dll.a"
45922 EXEEXT=".exe"
45923 DLLPREFIX="cyg"
45924 dlldir="$bindir"
45925 ;;
45926 *-*-mingw32* )
a848cd7e
SC
45927 SO_SUFFIX="dll"
45928 SO_SUFFIX_MODULE="dll"
45929 DLLIMP_SUFFIX="dll.a"
45930 EXEEXT=".exe"
45931 DLLPREFIX=""
810b94f0 45932 dlldir="$bindir"
a848cd7e
SC
45933 ;;
45934 *-pc-msdosdjgpp )
45935 EXEEXT=".exe"
45936 DLLPREFIX=""
810b94f0 45937 dlldir="$bindir"
a848cd7e
SC
45938 ;;
45939 *-pc-os2_emx | *-pc-os2-emx )
45940 SO_SUFFIX="dll"
45941 SO_SUFFIX_MODULE="dll"
45942 DLLIMP_SUFFIX=$OS2_LIBEXT
45943 EXEEXT=".exe"
45944 DLLPREFIX=""
45945 LIBPREFIX=""
45946 LIBEXT=".$OS2_LIBEXT"
810b94f0 45947 dlldir="$bindir"
a848cd7e 45948 ;;
47bd5406 45949 *-*-darwin* )
a848cd7e
SC
45950 SO_SUFFIX="dylib"
45951 SO_SUFFIX_MODULE="bundle"
45952 ;;
45953 esac
45954
45955 if test "x$DLLIMP_SUFFIX" = "x" ; then
45956 DLLIMP_SUFFIX="$SO_SUFFIX"
45957 fi
45958
45959
45960
45961
45962
45963
45964
45965
45966
45967
45968
810b94f0 45969
1e9e8aba
DE
45970 PIC_FLAG=""
45971 if test "x$GCC" = "xyes"; then
a848cd7e
SC
45972 PIC_FLAG="-fPIC"
45973 fi
45974
1e9e8aba
DE
45975 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
45976 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 45977 WINDOWS_IMPLIB=0
1e9e8aba 45978
a848cd7e
SC
45979 case "${BAKEFILE_HOST}" in
45980 *-hp-hpux* )
1e9e8aba 45981 if test "x$GCC" != "xyes"; then
a848cd7e
SC
45982 LDFLAGS="$LDFLAGS -L/usr/lib"
45983
45984 SHARED_LD_CC="${CC} -b -o"
45985 SHARED_LD_CXX="${CXX} -b -o"
45986 PIC_FLAG="+Z"
45987 fi
45988 ;;
45989
45990 *-*-linux* )
45991 if test "x$GCC" != "xyes"; then
45992 echo "$as_me:$LINENO: checking for Intel compiler" >&5
45993echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
45994if test "${bakefile_cv_prog_icc+set}" = set; then
45995 echo $ECHO_N "(cached) $ECHO_C" >&6
45996else
45997
45998 cat >conftest.$ac_ext <<_ACEOF
45999/* confdefs.h. */
46000_ACEOF
46001cat confdefs.h >>conftest.$ac_ext
46002cat >>conftest.$ac_ext <<_ACEOF
46003/* end confdefs.h. */
46004
46005int
46006main ()
46007{
46008
46009 #ifndef __INTEL_COMPILER
46010 #error Not icc
46011 #endif
46012
46013 ;
46014 return 0;
46015}
46016_ACEOF
46017rm -f conftest.$ac_objext
46018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46019 (eval $ac_compile) 2>conftest.er1
a848cd7e 46020 ac_status=$?
ac1cb8d3
VS
46021 grep -v '^ *+' conftest.er1 >conftest.err
46022 rm -f conftest.er1
46023 cat conftest.err >&5
a848cd7e
SC
46024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46025 (exit $ac_status); } &&
3565d135
RR
46026 { ac_try='test -z "$ac_c_werror_flag"
46027 || test ! -s conftest.err'
ac1cb8d3
VS
46028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46029 (eval $ac_try) 2>&5
46030 ac_status=$?
46031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46032 (exit $ac_status); }; } &&
46033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46035 (eval $ac_try) 2>&5
46036 ac_status=$?
46037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46038 (exit $ac_status); }; }; then
46039 bakefile_cv_prog_icc=yes
46040else
46041 echo "$as_me: failed program was:" >&5
46042sed 's/^/| /' conftest.$ac_ext >&5
46043
46044bakefile_cv_prog_icc=no
46045
46046fi
ac1cb8d3 46047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46048
46049fi
46050echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46051echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46052 if test "$bakefile_cv_prog_icc" = "yes"; then
46053 PIC_FLAG="-KPIC"
46054 fi
46055 fi
46056 ;;
46057
46058 *-*-solaris2* )
46059 if test "x$GCC" != xyes ; then
46060 SHARED_LD_CC="${CC} -G -o"
46061 SHARED_LD_CXX="${CXX} -G -o"
46062 PIC_FLAG="-KPIC"
46063 fi
46064 ;;
46065
46066 *-*-darwin* )
46067
473276a9
VS
46068D='$'
46069cat <<EOF >shared-ld-sh
a848cd7e
SC
46070#!/bin/sh
46071#-----------------------------------------------------------------------------
46072#-- Name: distrib/mac/shared-ld-sh
46073#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46074#-- Author: Gilles Depeyrot
46075#-- Copyright: (c) 2002 Gilles Depeyrot
46076#-- Licence: any use permitted
46077#-----------------------------------------------------------------------------
46078
46079verbose=0
46080args=""
46081objects=""
46082linking_flag="-dynamiclib"
810b94f0 46083ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46084
473276a9
VS
46085while test ${D}# -gt 0; do
46086 case ${D}1 in
a848cd7e
SC
46087
46088 -v)
46089 verbose=1
46090 ;;
46091
46092 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46093 # collect these options and values
473276a9 46094 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46095 shift
46096 ;;
46097
810b94f0
MW
46098 -s|-Wl,*)
46099 # collect these load args
46100 ldargs="${D}{ldargs} ${D}1"
2113bc77 46101 ;;
810b94f0
MW
46102
46103 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46104 # collect these options
473276a9 46105 args="${D}{args} ${D}1"
a848cd7e
SC
46106 ;;
46107
46108 -dynamiclib|-bundle)
473276a9 46109 linking_flag="${D}1"
a848cd7e
SC
46110 ;;
46111
46112 -*)
473276a9 46113 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46114 exit 1
46115 ;;
46116
46117 *.o | *.a | *.dylib)
46118 # collect object files
473276a9 46119 objects="${D}{objects} ${D}1"
a848cd7e
SC
46120 ;;
46121
46122 *)
473276a9 46123 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46124 exit 1
46125 ;;
46126
46127 esac
46128 shift
46129done
46130
810b94f0
MW
46131status=0
46132
a848cd7e
SC
46133#
46134# Link one module containing all the others
46135#
473276a9 46136if test ${D}{verbose} = 1; then
810b94f0 46137 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46138fi
810b94f0 46139c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46140status=${D}?
a848cd7e
SC
46141
46142#
810b94f0
MW
46143# Link the shared library from the single module created, but only if the
46144# previous command didn't fail:
a848cd7e 46145#
810b94f0
MW
46146if test ${D}{status} = 0; then
46147 if test ${D}{verbose} = 1; then
46148 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46149 fi
46150 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46151 status=${D}?
a848cd7e
SC
46152fi
46153
46154#
46155# Remove intermediate module
46156#
473276a9 46157rm -f master.${D}${D}.o
a848cd7e 46158
810b94f0 46159exit ${D}status
a848cd7e 46160EOF
473276a9 46161
583d6b4b
VZ
46162 chmod +x shared-ld-sh
46163
46164 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46165 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46166
46167
46168 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46169echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46170if test "${bakefile_cv_gcc31+set}" = set; then
46171 echo $ECHO_N "(cached) $ECHO_C" >&6
46172else
46173
46174 cat >conftest.$ac_ext <<_ACEOF
46175/* confdefs.h. */
46176_ACEOF
46177cat confdefs.h >>conftest.$ac_ext
46178cat >>conftest.$ac_ext <<_ACEOF
46179/* end confdefs.h. */
46180
46181int
46182main ()
46183{
46184
46185 #if (__GNUC__ < 3) || \
46186 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
46187 #error old gcc
46188 #endif
a848cd7e 46189
583d6b4b
VZ
46190 ;
46191 return 0;
46192}
46193_ACEOF
46194rm -f conftest.$ac_objext
46195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46196 (eval $ac_compile) 2>conftest.er1
46197 ac_status=$?
46198 grep -v '^ *+' conftest.er1 >conftest.err
46199 rm -f conftest.er1
46200 cat conftest.err >&5
46201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46202 (exit $ac_status); } &&
3565d135
RR
46203 { ac_try='test -z "$ac_c_werror_flag"
46204 || test ! -s conftest.err'
583d6b4b
VZ
46205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46206 (eval $ac_try) 2>&5
46207 ac_status=$?
46208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46209 (exit $ac_status); }; } &&
46210 { ac_try='test -s conftest.$ac_objext'
46211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46212 (eval $ac_try) 2>&5
46213 ac_status=$?
46214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46215 (exit $ac_status); }; }; then
46216
46217 bakefile_cv_gcc31=yes
46218
46219else
46220 echo "$as_me: failed program was:" >&5
46221sed 's/^/| /' conftest.$ac_ext >&5
46222
46223
46224 bakefile_cv_gcc31=no
46225
46226
46227fi
46228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46229
46230fi
46231echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46232echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46233 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46234 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46235 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46236 else
46237 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46238 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46239 fi
46240
47bd5406
VZ
46241 if test "x$GCC" == "xyes"; then
46242 PIC_FLAG="-dynamic -fPIC"
46243 fi
46244 if test "x$XLCC" = "xyes"; then
46245 PIC_FLAG="-dynamic -DPIC"
46246 fi
a848cd7e
SC
46247 ;;
46248
46249 *-*-aix* )
f6b50c59 46250 if test "x$GCC" = "xyes"; then
583d6b4b 46251 PIC_FLAG=""
f6b50c59 46252
583d6b4b
VZ
46253 case "${BAKEFILE_HOST}" in
46254 *-*-aix5* )
46255 LD_EXPFULL="-Wl,-bexpfull"
46256 ;;
46257 esac
f6b50c59 46258
583d6b4b
VZ
46259 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46260 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46261 else
46262 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46263set dummy makeC++SharedLib; ac_word=$2
46264echo "$as_me:$LINENO: checking for $ac_word" >&5
46265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46266if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46267 echo $ECHO_N "(cached) $ECHO_C" >&6
46268else
46269 if test -n "$AIX_CXX_LD"; then
46270 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46271else
46272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46273for as_dir in $PATH
46274do
46275 IFS=$as_save_IFS
46276 test -z "$as_dir" && as_dir=.
46277 for ac_exec_ext in '' $ac_executable_extensions; do
46278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46279 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46281 break 2
46282 fi
46283done
46284done
46285
46286 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46287fi
46288fi
46289AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46290if test -n "$AIX_CXX_LD"; then
46291 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46292echo "${ECHO_T}$AIX_CXX_LD" >&6
46293else
46294 echo "$as_me:$LINENO: result: no" >&5
46295echo "${ECHO_T}no" >&6
46296fi
46297
f6b50c59 46298 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46299 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46300 fi
46301 ;;
46302
46303 *-*-beos* )
1e9e8aba
DE
46304 SHARED_LD_CC="${LD} -nostart -o"
46305 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46306 ;;
46307
46308 *-*-irix* )
46309 if test "x$GCC" != "xyes"; then
46310 PIC_FLAG="-KPIC"
46311 fi
46312 ;;
46313
46314 *-*-cygwin* | *-*-mingw32* )
46315 PIC_FLAG=""
1e9e8aba
DE
46316 SHARED_LD_CC="\$(CC) -shared -o"
46317 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46318 WINDOWS_IMPLIB=1
a848cd7e
SC
46319 ;;
46320
46321 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46322 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46323 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46324 PIC_FLAG=""
473276a9
VS
46325
46326D='$'
46327cat <<EOF >dllar.sh
46328#!/bin/sh
46329#
46330# dllar - a tool to build both a .dll and an .a file
46331# from a set of object (.o) files for EMX/OS2.
46332#
46333# Written by Andrew Zabolotny, bit@freya.etu.ru
46334# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46335#
46336# This script will accept a set of files on the command line.
46337# All the public symbols from the .o files will be exported into
46338# a .DEF file, then linker will be run (through gcc) against them to
46339# build a shared library consisting of all given .o files. All libraries
46340# (.a) will be first decompressed into component .o files then act as
46341# described above. You can optionally give a description (-d "description")
46342# which will be put into .DLL. To see the list of accepted options (as well
46343# as command-line format) simply run this program without options. The .DLL
46344# is built to be imported by name (there is no guarantee that new versions
46345# of the library you build will have same ordinals for same symbols).
46346#
46347# dllar is free software; you can redistribute it and/or modify
46348# it under the terms of the GNU General Public License as published by
46349# the Free Software Foundation; either version 2, or (at your option)
46350# any later version.
46351#
46352# dllar is distributed in the hope that it will be useful,
46353# but WITHOUT ANY WARRANTY; without even the implied warranty of
46354# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46355# GNU General Public License for more details.
46356#
46357# You should have received a copy of the GNU General Public License
46358# along with dllar; see the file COPYING. If not, write to the Free
46359# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46360# 02111-1307, USA.
46361
46362# To successfuly run this program you will need:
46363# - Current drive should have LFN support (HPFS, ext2, network, etc)
46364# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46365# - gcc
46366# (used to build the .dll)
46367# - emxexp
46368# (used to create .def file from .o files)
46369# - emximp
46370# (used to create .a file from .def file)
46371# - GNU text utilites (cat, sort, uniq)
46372# used to process emxexp output
46373# - GNU file utilities (mv, rm)
46374# - GNU sed
46375# - lxlite (optional, see flag below)
46376# (used for general .dll cleanup)
46377#
46378
46379flag_USE_LXLITE=1;
46380
46381#
46382# helper functions
46383# basnam, variant of basename, which does _not_ remove the path, _iff_
46384# second argument (suffix to remove) is given
46385basnam(){
46386 case ${D}# in
46387 1)
1e9e8aba 46388 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46389 ;;
46390 2)
46391 echo ${D}1 | sed 's/'${D}2'${D}//'
46392 ;;
46393 *)
46394 echo "error in basnam ${D}*"
46395 exit 8
46396 ;;
46397 esac
46398}
46399
46400# Cleanup temporary files and output
46401CleanUp() {
46402 cd ${D}curDir
46403 for i in ${D}inputFiles ; do
46404 case ${D}i in
46405 *!)
46406 rm -rf \`basnam ${D}i !\`
46407 ;;
46408 *)
46409 ;;
46410 esac
46411 done
46412
46413 # Kill result in case of failure as there is just to many stupid make/nmake
46414 # things out there which doesn't do this.
1e9e8aba 46415 if [ ${D}# -eq 0 ]; then
473276a9
VS
46416 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46417 fi
46418}
46419
46420# Print usage and exit script with rc=1.
46421PrintHelp() {
b1d22ded
DE
46422 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46423 echo ' [-name-mangler-script script.sh]'
46424 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46425 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46426 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46427 echo ' [*.o] [*.a]'
473276a9
VS
46428 echo '*> "output_file" should have no extension.'
46429 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46430 echo ' The import library name is derived from this and is set to "name".a,'
46431 echo ' unless overridden by -import'
46432 echo '*> "importlib_name" should have no extension.'
46433 echo ' If it has the .o, or .a extension, it is automatically removed.'
46434 echo ' This name is used as the import library name and may be longer and'
46435 echo ' more descriptive than the DLL name which has to follow the old '
46436 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46437 echo '*> "script.sh may be given to override the output_file name by a'
46438 echo ' different name. It is mainly useful if the regular make process'
46439 echo ' of some package does not take into account OS/2 restriction of'
46440 echo ' DLL name lengths. It takes the importlib name as input and is'
46441 echo ' supposed to procude a shorter name as output. The script should'
46442 echo ' expect to get importlib_name without extension and should produce'
46443 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46444 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46445 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46446 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46447 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46448 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46449 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46450 echo ' If the last character of a symbol is "*", all symbols beginning'
46451 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46452 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46453 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46454 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46455 echo ' C runtime DLLs.'
b1d22ded 46456 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46457 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46458 echo ' unchanged to GCC at the end of command line.'
46459 echo '*> If you create a DLL from a library and you do not specify -o,'
46460 echo ' the basename for DLL and import library will be set to library name,'
46461 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46462 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46463 echo ' library will be renamed into gcc_s.a.'
46464 echo '--------'
46465 echo 'Example:'
46466 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46467 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46468 CleanUp
46469 exit 1
46470}
46471
46472# Execute a command.
46473# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46474# @Uses Whatever CleanUp() uses.
46475doCommand() {
46476 echo "${D}*"
46477 eval ${D}*
46478 rcCmd=${D}?
46479
1e9e8aba 46480 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46481 echo "command failed, exit code="${D}rcCmd
46482 CleanUp
46483 exit ${D}rcCmd
46484 fi
46485}
46486
46487# main routine
46488# setup globals
46489cmdLine=${D}*
46490outFile=""
46491outimpFile=""
46492inputFiles=""
b1d22ded 46493renameScript=""
473276a9
VS
46494description=""
46495CC=gcc.exe
46496CFLAGS="-s -Zcrtdll"
46497EXTRA_CFLAGS=""
46498EXPORT_BY_ORDINALS=0
46499exclude_symbols=""
46500library_flags=""
46501curDir=\`pwd\`
46502curDirS=curDir
46503case ${D}curDirS in
46504*/)
46505 ;;
46506*)
46507 curDirS=${D}{curDirS}"/"
46508 ;;
46509esac
46510# Parse commandline
46511libsToLink=0
b1d22ded 46512omfLinking=0
1e9e8aba 46513while [ ${D}1 ]; do
473276a9
VS
46514 case ${D}1 in
46515 -ord*)
46516 EXPORT_BY_ORDINALS=1;
46517 ;;
46518 -o*)
46519 shift
46520 outFile=${D}1
46521 ;;
46522 -i*)
46523 shift
46524 outimpFile=${D}1
46525 ;;
b1d22ded
DE
46526 -name-mangler-script)
46527 shift
46528 renameScript=${D}1
46529 ;;
473276a9
VS
46530 -d*)
46531 shift
46532 description=${D}1
46533 ;;
46534 -f*)
46535 shift
46536 CFLAGS=${D}1
46537 ;;
46538 -c*)
46539 shift
46540 CC=${D}1
46541 ;;
46542 -h*)
46543 PrintHelp
46544 ;;
46545 -ex*)
46546 shift
46547 exclude_symbols=${D}{exclude_symbols}${D}1" "
46548 ;;
46549 -libf*)
46550 shift
46551 library_flags=${D}{library_flags}${D}1" "
46552 ;;
46553 -nocrt*)
46554 CFLAGS="-s"
46555 ;;
46556 -nolxl*)
46557 flag_USE_LXLITE=0
46558 ;;
46559 -* | /*)
46560 case ${D}1 in
46561 -L* | -l*)
46562 libsToLink=1
46563 ;;
b1d22ded
DE
46564 -Zomf)
46565 omfLinking=1
46566 ;;
473276a9
VS
46567 *)
46568 ;;
46569 esac
46570 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46571 ;;
b1d22ded
DE
46572 *.dll)
46573 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46574 if [ ${D}omfLinking -eq 1 ]; then
46575 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46576 else
46577 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46578 fi
46579 ;;
473276a9
VS
46580 *)
46581 found=0;
1e9e8aba 46582 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46583 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46584 else
46585 for file in ${D}1 ; do
1e9e8aba 46586 if [ -f ${D}file ]; then
473276a9
VS
46587 inputFiles="${D}{inputFiles} ${D}file"
46588 found=1
46589 fi
46590 done
1e9e8aba 46591 if [ ${D}found -eq 0 ]; then
473276a9
VS
46592 echo "ERROR: No file(s) found: "${D}1
46593 exit 8
46594 fi
46595 fi
46596 ;;
46597 esac
46598 shift
46599done # iterate cmdline words
46600
46601#
1e9e8aba 46602if [ -z "${D}inputFiles" ]; then
473276a9
VS
46603 echo "dllar: no input files"
46604 PrintHelp
46605fi
46606
46607# Now extract all .o files from .a files
46608newInputFiles=""
46609for file in ${D}inputFiles ; do
46610 case ${D}file in
46611 *.a | *.lib)
46612 case ${D}file in
46613 *.a)
46614 suffix=".a"
46615 AR="ar"
46616 ;;
46617 *.lib)
46618 suffix=".lib"
46619 AR="emxomfar"
46620 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46621 ;;
46622 *)
46623 ;;
46624 esac
46625 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46626 mkdir ${D}dirname
1e9e8aba 46627 if [ ${D}? -ne 0 ]; then
473276a9
VS
46628 echo "Failed to create subdirectory ./${D}dirname"
46629 CleanUp
46630 exit 8;
46631 fi
46632 # Append '!' to indicate archive
46633 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46634 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46635 cd ${D}curDir
46636 found=0;
46637 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46638 if [ -f ${D}subfile ]; then
473276a9 46639 found=1
1e9e8aba 46640 if [ -s ${D}subfile ]; then
473276a9
VS
46641 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46642 newInputFiles="${D}newInputFiles ${D}subfile"
46643 fi
46644 fi
46645 done
1e9e8aba
DE
46646 if [ ${D}found -eq 0 ]; then
46647 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46648 fi
46649 ;;
46650 *)
46651 newInputFiles="${D}{newInputFiles} ${D}file"
46652 ;;
46653 esac
46654done
46655inputFiles="${D}newInputFiles"
46656
46657# Output filename(s).
46658do_backup=0;
1e9e8aba 46659if [ -z ${D}outFile ]; then
473276a9
VS
46660 do_backup=1;
46661 set outFile ${D}inputFiles; outFile=${D}2
46662fi
46663
46664# If it is an archive, remove the '!' and the '_%' suffixes
46665case ${D}outFile in
46666*_%!)
46667 outFile=\`basnam ${D}outFile _%!\`
46668 ;;
46669*)
46670 ;;
46671esac
46672case ${D}outFile in
46673*.dll)
46674 outFile=\`basnam ${D}outFile .dll\`
46675 ;;
46676*.DLL)
46677 outFile=\`basnam ${D}outFile .DLL\`
46678 ;;
46679*.o)
46680 outFile=\`basnam ${D}outFile .o\`
46681 ;;
46682*.obj)
46683 outFile=\`basnam ${D}outFile .obj\`
46684 ;;
46685*.a)
46686 outFile=\`basnam ${D}outFile .a\`
46687 ;;
46688*.lib)
46689 outFile=\`basnam ${D}outFile .lib\`
46690 ;;
46691*)
46692 ;;
46693esac
46694case ${D}outimpFile in
46695*.a)
46696 outimpFile=\`basnam ${D}outimpFile .a\`
46697 ;;
46698*.lib)
46699 outimpFile=\`basnam ${D}outimpFile .lib\`
46700 ;;
46701*)
46702 ;;
46703esac
1e9e8aba 46704if [ -z ${D}outimpFile ]; then
473276a9
VS
46705 outimpFile=${D}outFile
46706fi
46707defFile="${D}{outFile}.def"
46708arcFile="${D}{outimpFile}.a"
46709arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46710
46711#create ${D}dllFile as something matching 8.3 restrictions,
46712if [ -z ${D}renameScript ] ; then
46713 dllFile="${D}outFile"
46714else
46715 dllFile=\`${D}renameScript ${D}outimpFile\`
46716fi
473276a9 46717
1e9e8aba
DE
46718if [ ${D}do_backup -ne 0 ] ; then
46719 if [ -f ${D}arcFile ] ; then
473276a9
VS
46720 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46721 fi
1e9e8aba 46722 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46723 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46724 fi
46725fi
46726
46727# Extract public symbols from all the object files.
46728tmpdefFile=${D}{defFile}_%
46729rm -f ${D}tmpdefFile
46730for file in ${D}inputFiles ; do
46731 case ${D}file in
46732 *!)
46733 ;;
46734 *)
46735 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46736 ;;
46737 esac
46738done
46739
46740# Create the def file.
46741rm -f ${D}defFile
46742echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
46743dllFile="${D}{dllFile}.dll"
46744if [ ! -z ${D}description ]; then
1e9e8aba 46745 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
46746fi
46747echo "EXPORTS" >> ${D}defFile
46748
46749doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46750grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46751
46752# Checks if the export is ok or not.
46753for word in ${D}exclude_symbols; do
46754 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46755 mv ${D}{tmpdefFile}% ${D}tmpdefFile
46756done
46757
46758
1e9e8aba
DE
46759if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46760 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
46761 sed '
46762 N
46763 : loop
1e9e8aba 46764 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
46765 t loop
46766 ' > ${D}{tmpdefFile}%
46767 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46768else
46769 rm -f ${D}{tmpdefFile}%
46770fi
46771cat ${D}tmpdefFile >> ${D}defFile
46772rm -f ${D}tmpdefFile
46773
46774# Do linking, create implib, and apply lxlite.
46775gccCmdl="";
46776for file in ${D}inputFiles ; do
46777 case ${D}file in
46778 *!)
46779 ;;
46780 *)
46781 gccCmdl="${D}gccCmdl ${D}file"
46782 ;;
46783 esac
46784done
46785doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46786touch "${D}{outFile}.dll"
46787
46788doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 46789if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 46790 add_flags="";
1e9e8aba 46791 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
46792 add_flags="-ynd"
46793 fi
46794 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46795fi
46796doCommand "emxomf -s -l ${D}arcFile"
46797
46798# Successful exit.
46799CleanUp 1
46800exit 0
46801EOF
46802
46803 chmod +x dllar.sh
a848cd7e
SC
46804 ;;
46805
1e9e8aba 46806 powerpc-apple-macos* | \
0ad5d837 46807 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
46808 *-*-sunos4* | \
46809 *-*-osf* | \
46810 *-*-dgux5* | \
47a7e797
MW
46811 *-*-sysv5* | \
46812 *-pc-msdosdjgpp )
a848cd7e
SC
46813 ;;
46814
46815 *)
46816 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46817echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46818 { (exit 1); exit 1; }; }
46819 esac
46820
2057db16
VS
46821 if test "x$PIC_FLAG" != "x" ; then
46822 PIC_FLAG="$PIC_FLAG -DPIC"
46823 fi
46824
a848cd7e
SC
46825 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46826 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46827 fi
46828 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46829 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46830 fi
46831
46832
46833
46834
46835
46836
46837
46838
810b94f0 46839
a848cd7e
SC
46840 USE_SOVERSION=0
46841 USE_SOVERLINUX=0
46842 USE_SOVERSOLARIS=0
810b94f0 46843 USE_SOVERCYGWIN=0
a848cd7e
SC
46844 USE_SOSYMLINKS=0
46845 USE_MACVERSION=0
46846 SONAME_FLAG=
46847
46848 case "${BAKEFILE_HOST}" in
0ad5d837 46849 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
46850 SONAME_FLAG="-Wl,-soname,"
46851 USE_SOVERSION=1
46852 USE_SOVERLINUX=1
46853 USE_SOSYMLINKS=1
46854 ;;
46855
a848cd7e
SC
46856 *-*-solaris2* )
46857 SONAME_FLAG="-h "
46858 USE_SOVERSION=1
46859 USE_SOVERSOLARIS=1
46860 USE_SOSYMLINKS=1
46861 ;;
46862
46863 *-*-darwin* )
46864 USE_MACVERSION=1
46865 USE_SOVERSION=1
46866 USE_SOSYMLINKS=1
46867 ;;
810b94f0
MW
46868
46869 *-*-cygwin* )
46870 USE_SOVERSION=1
46871 USE_SOVERCYGWIN=1
46872 ;;
a848cd7e
SC
46873 esac
46874
46875
46876
46877
46878
46879
46880
46881
46882
810b94f0 46883
a848cd7e
SC
46884 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
46885echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 46886 DEPS_TRACKING=1
a848cd7e
SC
46887
46888 if test "x$GCC" = "xyes"; then
46889 DEPSMODE=gcc
a848cd7e 46890 case "${BAKEFILE_HOST}" in
47bd5406 46891 *-*-darwin* )
0ad5d837 46892 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
46893 ;;
46894 * )
0ad5d837 46895 DEPSFLAG="-MMD"
a848cd7e
SC
46896 ;;
46897 esac
46898 echo "$as_me:$LINENO: result: gcc" >&5
46899echo "${ECHO_T}gcc" >&6
b1d22ded 46900 elif test "x$MWCC" = "xyes"; then
81f90336 46901 DEPSMODE=mwcc
0ad5d837 46902 DEPSFLAG="-MM"
b1d22ded
DE
46903 echo "$as_me:$LINENO: result: mwcc" >&5
46904echo "${ECHO_T}mwcc" >&6
a9e5b1f0 46905 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
46906 DEPSMODE=unixcc
46907 DEPSFLAG="-xM1"
46908 echo "$as_me:$LINENO: result: Sun cc" >&5
46909echo "${ECHO_T}Sun cc" >&6
46910 elif test "x$SGICC" = "xyes"; then
46911 DEPSMODE=unixcc
46912 DEPSFLAG="-M"
46913 echo "$as_me:$LINENO: result: SGI cc" >&5
46914echo "${ECHO_T}SGI cc" >&6
3006edc0
VZ
46915 elif test "x$HPCC" = "xyes"; then
46916 DEPSMODE=unixcc
46917 DEPSFLAG="+make"
46918 echo "$as_me:$LINENO: result: HP cc" >&5
46919echo "${ECHO_T}HP cc" >&6
a1aa0349
VZ
46920 elif test "x$COMPAQCC" = "xyes"; then
46921 DEPSMODE=gcc
46922 DEPSFLAG="-MD"
46923 echo "$as_me:$LINENO: result: Compaq cc" >&5
46924echo "${ECHO_T}Compaq cc" >&6
a848cd7e 46925 else
3006edc0 46926 DEPS_TRACKING=0
a848cd7e
SC
46927 echo "$as_me:$LINENO: result: none" >&5
46928echo "${ECHO_T}none" >&6
46929 fi
46930
46931 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
46932
46933D='$'
46934cat <<EOF >bk-deps
a848cd7e
SC
46935#!/bin/sh
46936
46937# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
46938# script. It is used to track C/C++ files dependencies in portable way.
46939#
46940# Permission is given to use this file in any way.
46941
473276a9 46942DEPSMODE=${DEPSMODE}
a848cd7e 46943DEPSDIR=.deps
0ad5d837 46944DEPSFLAG="${DEPSFLAG}"
a848cd7e 46945
473276a9 46946mkdir -p ${D}DEPSDIR
a848cd7e 46947
473276a9 46948if test ${D}DEPSMODE = gcc ; then
0ad5d837 46949 ${D}* ${D}{DEPSFLAG}
473276a9
VS
46950 status=${D}?
46951 if test ${D}{status} != 0 ; then
46952 exit ${D}{status}
a848cd7e
SC
46953 fi
46954 # move created file to the location we want it in:
473276a9
VS
46955 while test ${D}# -gt 0; do
46956 case "${D}1" in
a848cd7e
SC
46957 -o )
46958 shift
473276a9 46959 objfile=${D}1
a848cd7e
SC
46960 ;;
46961 -* )
46962 ;;
46963 * )
473276a9 46964 srcfile=${D}1
a848cd7e
SC
46965 ;;
46966 esac
46967 shift
46968 done
1e9e8aba
DE
46969 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
46970 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
46971 if test -f ${D}depfile ; then
46972 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46973 rm -f ${D}depfile
a848cd7e 46974 else
a1aa0349 46975 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 46976 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
46977 if test ! -f ${D}depfile ; then
46978 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
46979 depfile="${D}objfile.d"
46980 fi
473276a9
VS
46981 if test -f ${D}depfile ; then
46982 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46983 rm -f ${D}depfile
a848cd7e
SC
46984 fi
46985 fi
46986 exit 0
81f90336 46987elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 46988 ${D}* || exit ${D}?
81f90336
MW
46989 # Run mwcc again with -MM and redirect into the dep file we want
46990 # NOTE: We can't use shift here because we need ${D}* to be valid
46991 prevarg=
46992 for arg in ${D}* ; do
46993 if test "${D}prevarg" = "-o"; then
46994 objfile=${D}arg
46995 else
46996 case "${D}arg" in
46997 -* )
46998 ;;
46999 * )
47000 srcfile=${D}arg
47001 ;;
47002 esac
47003 fi
47004 prevarg="${D}arg"
47005 done
0ad5d837 47006 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47007 exit 0
0ad5d837 47008elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47009 ${D}* || exit ${D}?
a9e5b1f0
MW
47010 # Run compiler again with deps flag and redirect into the dep file.
47011 # It doesn't work if the '-o FILE' option is used, but without it the
47012 # dependency file will contain the wrong name for the object. So it is
47013 # removed from the command line, and the dep file is fixed with sed.
47014 cmd=""
47015 while test ${D}# -gt 0; do
47016 case "${D}1" in
47017 -o )
47018 shift
47019 objfile=${D}1
47020 ;;
47021 * )
47022 eval arg${D}#=\\${D}1
47023 cmd="${D}cmd \\${D}arg${D}#"
47024 ;;
47025 esac
47026 shift
47027 done
0ad5d837 47028 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47029 exit 0
a848cd7e 47030else
473276a9
VS
47031 ${D}*
47032 exit ${D}?
a848cd7e
SC
47033fi
47034EOF
473276a9 47035
a848cd7e
SC
47036 chmod +x bk-deps
47037 fi
47038
47039
47040
47041
a848cd7e
SC
47042 case ${BAKEFILE_HOST} in
47043 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47044 if test -n "$ac_tool_prefix"; then
47045 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47046set dummy ${ac_tool_prefix}windres; ac_word=$2
47047echo "$as_me:$LINENO: checking for $ac_word" >&5
47048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47049if test "${ac_cv_prog_WINDRES+set}" = set; then
47050 echo $ECHO_N "(cached) $ECHO_C" >&6
47051else
47052 if test -n "$WINDRES"; then
47053 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47054else
47055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47056for as_dir in $PATH
47057do
47058 IFS=$as_save_IFS
47059 test -z "$as_dir" && as_dir=.
47060 for ac_exec_ext in '' $ac_executable_extensions; do
47061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47062 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47064 break 2
47065 fi
47066done
47067done
47068
47069fi
47070fi
47071WINDRES=$ac_cv_prog_WINDRES
47072if test -n "$WINDRES"; then
47073 echo "$as_me:$LINENO: result: $WINDRES" >&5
47074echo "${ECHO_T}$WINDRES" >&6
47075else
47076 echo "$as_me:$LINENO: result: no" >&5
47077echo "${ECHO_T}no" >&6
47078fi
47079
47080fi
47081if test -z "$ac_cv_prog_WINDRES"; then
47082 ac_ct_WINDRES=$WINDRES
47083 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47084set dummy windres; ac_word=$2
47085echo "$as_me:$LINENO: checking for $ac_word" >&5
47086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47087if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47088 echo $ECHO_N "(cached) $ECHO_C" >&6
47089else
8ced02f6
DE
47090 if test -n "$ac_ct_WINDRES"; then
47091 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47092else
47093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47094for as_dir in $PATH
47095do
47096 IFS=$as_save_IFS
47097 test -z "$as_dir" && as_dir=.
47098 for ac_exec_ext in '' $ac_executable_extensions; do
47099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47100 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47102 break 2
47103 fi
47104done
47105done
47106
a848cd7e
SC
47107fi
47108fi
8ced02f6
DE
47109ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47110if test -n "$ac_ct_WINDRES"; then
47111 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47112echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47113else
47114 echo "$as_me:$LINENO: result: no" >&5
47115echo "${ECHO_T}no" >&6
47116fi
47117
8ced02f6
DE
47118 WINDRES=$ac_ct_WINDRES
47119else
47120 WINDRES="$ac_cv_prog_WINDRES"
47121fi
47122
a848cd7e
SC
47123 ;;
47124
1e9e8aba 47125 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47126 # Extract the first word of "Rez", so it can be a program name with args.
47127set dummy Rez; ac_word=$2
47128echo "$as_me:$LINENO: checking for $ac_word" >&5
47129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47130if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47131 echo $ECHO_N "(cached) $ECHO_C" >&6
47132else
8ced02f6
DE
47133 if test -n "$REZ"; then
47134 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47135else
47136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47137for as_dir in $PATH
47138do
47139 IFS=$as_save_IFS
47140 test -z "$as_dir" && as_dir=.
47141 for ac_exec_ext in '' $ac_executable_extensions; do
47142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47143 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47145 break 2
47146 fi
47147done
47148done
47149
8ced02f6 47150 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47151fi
47152fi
8ced02f6
DE
47153REZ=$ac_cv_prog_REZ
47154if test -n "$REZ"; then
47155 echo "$as_me:$LINENO: result: $REZ" >&5
47156echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47157else
47158 echo "$as_me:$LINENO: result: no" >&5
47159echo "${ECHO_T}no" >&6
47160fi
47161
47162 # Extract the first word of "SetFile", so it can be a program name with args.
47163set dummy SetFile; ac_word=$2
47164echo "$as_me:$LINENO: checking for $ac_word" >&5
47165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47166if test "${ac_cv_prog_SETFILE+set}" = set; then
47167 echo $ECHO_N "(cached) $ECHO_C" >&6
47168else
47169 if test -n "$SETFILE"; then
47170 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47171else
47172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47173for as_dir in $PATH
47174do
47175 IFS=$as_save_IFS
47176 test -z "$as_dir" && as_dir=.
47177 for ac_exec_ext in '' $ac_executable_extensions; do
47178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47179 ac_cv_prog_SETFILE="SetFile"
47180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47181 break 2
47182 fi
47183done
47184done
47185
47186 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47187fi
47188fi
47189SETFILE=$ac_cv_prog_SETFILE
47190if test -n "$SETFILE"; then
47191 echo "$as_me:$LINENO: result: $SETFILE" >&5
47192echo "${ECHO_T}$SETFILE" >&6
47193else
47194 echo "$as_me:$LINENO: result: no" >&5
47195echo "${ECHO_T}no" >&6
47196fi
47197
47198 ;;
47199 esac
47200
47201
47202
47203
47204
8ced02f6 47205
c9469659 47206 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 47207
dcc1b6ad 47208
c9469659 47209BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 47210
646b6ec1 47211
74b84332 47212
a848cd7e
SC
47213 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47214if test "${enable_precomp_headers+set}" = set; then
47215 enableval="$enable_precomp_headers"
47216 bk_use_pch="$enableval"
47217fi;
47218
47219 GCC_PCH=0
47220
5c60e845
MW
47221 case ${BAKEFILE_HOST} in
47222 *-*-cygwin* )
47223 bk_use_pch="no"
47224 ;;
47225 esac
47226
a848cd7e
SC
47227 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47228 if test "x$GCC" = "xyes"; then
47229 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47230echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47231 cat >conftest.$ac_ext <<_ACEOF
47232/* confdefs.h. */
47233_ACEOF
47234cat confdefs.h >>conftest.$ac_ext
47235cat >>conftest.$ac_ext <<_ACEOF
47236/* end confdefs.h. */
47237
47238int
47239main ()
47240{
47241
47242 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
47243 #error "no pch support"
47244 #endif
47245 #if (__GNUC__ < 3)
47246 #error "no pch support"
47247 #endif
47248 #if (__GNUC__ == 3) && \
47249 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
47250 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
47251 #error "no pch support"
47252 #endif
47253
47254 ;
47255 return 0;
47256}
47257_ACEOF
47258rm -f conftest.$ac_objext
47259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47260 (eval $ac_compile) 2>conftest.er1
a848cd7e 47261 ac_status=$?
ac1cb8d3
VS
47262 grep -v '^ *+' conftest.er1 >conftest.err
47263 rm -f conftest.er1
47264 cat conftest.err >&5
a848cd7e
SC
47265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47266 (exit $ac_status); } &&
3565d135
RR
47267 { ac_try='test -z "$ac_c_werror_flag"
47268 || test ! -s conftest.err'
ac1cb8d3
VS
47269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47270 (eval $ac_try) 2>&5
47271 ac_status=$?
47272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47273 (exit $ac_status); }; } &&
47274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47276 (eval $ac_try) 2>&5
47277 ac_status=$?
47278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47279 (exit $ac_status); }; }; then
47280
47281 echo "$as_me:$LINENO: result: yes" >&5
47282echo "${ECHO_T}yes" >&6
a848cd7e
SC
47283 GCC_PCH=1
47284
47285else
47286 echo "$as_me: failed program was:" >&5
47287sed 's/^/| /' conftest.$ac_ext >&5
47288
47289
47290 echo "$as_me:$LINENO: result: no" >&5
47291echo "${ECHO_T}no" >&6
47292
47293fi
ac1cb8d3 47294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 47295 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
47296
47297D='$'
47298cat <<EOF >bk-make-pch
a848cd7e
SC
47299#!/bin/sh
47300
47301# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47302# script. It is used to generated precompiled headers.
47303#
47304# Permission is given to use this file in any way.
47305
1e9e8aba
DE
47306outfile="${D}{1}"
47307header="${D}{2}"
a848cd7e
SC
47308shift
47309shift
47310
47311compiler=
47312headerfile=
1e9e8aba
DE
47313while test ${D}{#} -gt 0; do
47314 case "${D}{1}" in
a848cd7e 47315 -I* )
1e9e8aba
DE
47316 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47317 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47318 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47319 fi
47320 ;;
47321 esac
1e9e8aba 47322 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
47323 shift
47324done
47325
1e9e8aba
DE
47326if test "x${D}{headerfile}" = "x" ; then
47327 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 47328else
1e9e8aba
DE
47329 if test -f ${D}{outfile} ; then
47330 rm -f ${D}{outfile}
a848cd7e 47331 else
1e9e8aba 47332 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47333 fi
1e9e8aba 47334 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
47335 mkdir -p .deps
47336 # can do this because gcc is >= 3.4:
1e9e8aba
DE
47337 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47338 exit ${D}{?}
a848cd7e
SC
47339fi
47340EOF
1e9e8aba 47341
a848cd7e
SC
47342 chmod +x bk-make-pch
47343 fi
47344 fi
47345 fi
47346
47347
47348
a848cd7e
SC
47349 COND_BUILD_DEBUG="#"
47350 if test "x$BUILD" = "xdebug" ; then
47351 COND_BUILD_DEBUG=""
47352 fi
47353
47354 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47355 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47356 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47357 fi
47358
47359 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47360 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47361 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47362 fi
47363
47364 COND_BUILD_DEBUG_UNICODE_0="#"
47365 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47366 COND_BUILD_DEBUG_UNICODE_0=""
47367 fi
47368
47369 COND_BUILD_DEBUG_UNICODE_1="#"
47370 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47371 COND_BUILD_DEBUG_UNICODE_1=""
47372 fi
47373
47374 COND_BUILD_RELEASE="#"
47375 if test "x$BUILD" = "xrelease" ; then
47376 COND_BUILD_RELEASE=""
47377 fi
47378
47379 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47380 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47381 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47382 fi
47383
47384 COND_BUILD_RELEASE_UNICODE_0="#"
47385 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47386 COND_BUILD_RELEASE_UNICODE_0=""
47387 fi
47388
47389 COND_BUILD_RELEASE_UNICODE_1="#"
47390 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47391 COND_BUILD_RELEASE_UNICODE_1=""
47392 fi
47393
47394 COND_DEBUG_FLAG_1="#"
47395 if test "x$DEBUG_FLAG" = "x1" ; then
47396 COND_DEBUG_FLAG_1=""
47397 fi
47398
47399 COND_DEBUG_INFO_0="#"
47400 if test "x$DEBUG_INFO" = "x0" ; then
47401 COND_DEBUG_INFO_0=""
47402 fi
47403
47404 COND_DEBUG_INFO_1="#"
47405 if test "x$DEBUG_INFO" = "x1" ; then
47406 COND_DEBUG_INFO_1=""
47407 fi
47408
47409 COND_DEPS_TRACKING_0="#"
47410 if test "x$DEPS_TRACKING" = "x0" ; then
47411 COND_DEPS_TRACKING_0=""
47412 fi
47413
47414 COND_DEPS_TRACKING_1="#"
47415 if test "x$DEPS_TRACKING" = "x1" ; then
47416 COND_DEPS_TRACKING_1=""
47417 fi
47418
47419 COND_GCC_PCH_1="#"
47420 if test "x$GCC_PCH" = "x1" ; then
47421 COND_GCC_PCH_1=""
47422 fi
47423
47424 COND_MONOLITHIC_0="#"
47425 if test "x$MONOLITHIC" = "x0" ; then
47426 COND_MONOLITHIC_0=""
47427 fi
47428
47429 COND_MONOLITHIC_0_SHARED_0="#"
47430 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47431 COND_MONOLITHIC_0_SHARED_0=""
47432 fi
47433
47434 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47435 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47436 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47437 fi
47438
90970d69
DE
47439 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47440 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47441 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47442 fi
47443
a848cd7e
SC
47444 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47445 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47446 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47447 fi
47448
6671c68b
VZ
47449 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47450 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47451 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47452 fi
47453
a848cd7e
SC
47454 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47455 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47456 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47457 fi
47458
ceec2216
RL
47459 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47460 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47461 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47462 fi
47463
a848cd7e
SC
47464 COND_MONOLITHIC_0_SHARED_1="#"
47465 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47466 COND_MONOLITHIC_0_SHARED_1=""
47467 fi
47468
47469 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47470 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47471 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47472 fi
47473
90970d69
DE
47474 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47475 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47476 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47477 fi
47478
a848cd7e
SC
47479 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47480 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47481 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47482 fi
47483
6671c68b
VZ
47484 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47485 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47486 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47487 fi
47488
a848cd7e
SC
47489 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47490 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47491 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47492 fi
47493
ceec2216
RL
47494 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47495 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47496 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47497 fi
47498
a848cd7e
SC
47499 COND_MONOLITHIC_0_USE_ODBC_1="#"
47500 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47501 COND_MONOLITHIC_0_USE_ODBC_1=""
47502 fi
47503
47504 COND_MONOLITHIC_1="#"
47505 if test "x$MONOLITHIC" = "x1" ; then
47506 COND_MONOLITHIC_1=""
47507 fi
47508
47509 COND_MONOLITHIC_1_SHARED_0="#"
47510 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47511 COND_MONOLITHIC_1_SHARED_0=""
47512 fi
47513
47514 COND_MONOLITHIC_1_SHARED_1="#"
47515 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47516 COND_MONOLITHIC_1_SHARED_1=""
47517 fi
47518
47519 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47520 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47521 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47522 fi
47523
47524 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47525 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47526 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47527 fi
47528
eb730a0c
JS
47529 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47530 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47531 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47532 fi
47533
a848cd7e
SC
47534 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47535 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47536 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47537 fi
47538
47539 COND_PLATFORM_MACOSX_1="#"
47540 if test "x$PLATFORM_MACOSX" = "x1" ; then
47541 COND_PLATFORM_MACOSX_1=""
47542 fi
47543
a30f955f
VS
47544 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47545 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47546 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47547 fi
47548
a848cd7e
SC
47549 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47550 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47551 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47552 fi
47553
47554 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47555 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47556 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47557 fi
47558
47559 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47560 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47561 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47562 fi
47563
fc480dc1
DE
47564 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47565 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47566 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47567 fi
47568
1e9e8aba
DE
47569 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47570 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47571 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47572 fi
47573
ebee3cd0
VS
47574 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47575 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47576 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47577 fi
47578
47579 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47580 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47581 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47582 fi
47583
a848cd7e
SC
47584 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47585 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47586 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47587 fi
47588
47589 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47590 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47591 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47592 fi
47593
b48a2016
DE
47594 COND_PLATFORM_MACOS_1="#"
47595 if test "x$PLATFORM_MACOS" = "x1" ; then
47596 COND_PLATFORM_MACOS_1=""
47597 fi
47598
083508af
MW
47599 COND_PLATFORM_MAC_1="#"
47600 if test "x$PLATFORM_MAC" = "x1" ; then
47601 COND_PLATFORM_MAC_1=""
47602 fi
47603
83d8eb47
MW
47604 COND_PLATFORM_MSDOS_1="#"
47605 if test "x$PLATFORM_MSDOS" = "x1" ; then
47606 COND_PLATFORM_MSDOS_1=""
47607 fi
47608
a848cd7e
SC
47609 COND_PLATFORM_OS2_1="#"
47610 if test "x$PLATFORM_OS2" = "x1" ; then
47611 COND_PLATFORM_OS2_1=""
47612 fi
47613
47614 COND_PLATFORM_UNIX_0="#"
47615 if test "x$PLATFORM_UNIX" = "x0" ; then
47616 COND_PLATFORM_UNIX_0=""
47617 fi
47618
47619 COND_PLATFORM_UNIX_1="#"
47620 if test "x$PLATFORM_UNIX" = "x1" ; then
47621 COND_PLATFORM_UNIX_1=""
47622 fi
47623
47624 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47625 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47626 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47627 fi
47628
47629 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47630 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47631 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47632 fi
47633
47634 COND_PLATFORM_WIN32_0="#"
47635 if test "x$PLATFORM_WIN32" = "x0" ; then
47636 COND_PLATFORM_WIN32_0=""
47637 fi
47638
47639 COND_PLATFORM_WIN32_1="#"
47640 if test "x$PLATFORM_WIN32" = "x1" ; then
47641 COND_PLATFORM_WIN32_1=""
47642 fi
47643
47644 COND_SHARED_0="#"
47645 if test "x$SHARED" = "x0" ; then
47646 COND_SHARED_0=""
47647 fi
47648
083508af
MW
47649 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47650 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47651 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47652 fi
47653
47654 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47655 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47656 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47657 fi
47658
47659 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47660 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47661 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47662 fi
47663
a848cd7e
SC
47664 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47665 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47666 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47667 fi
47668
47669 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47670 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47671 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47672 fi
47673
47674 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47675 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47676 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47677 fi
47678
47679 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47680 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47681 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47682 fi
47683
083508af
MW
47684 COND_SHARED_0_USE_XRC_1="#"
47685 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47686 COND_SHARED_0_USE_XRC_1=""
47687 fi
47688
a848cd7e
SC
47689 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47690 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47691 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47692 fi
47693
47694 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47695 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47696 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47697 fi
47698
47699 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47700 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47701 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47702 fi
47703
47704 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47705 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47706 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47707 fi
47708
47709 COND_SHARED_1="#"
47710 if test "x$SHARED" = "x1" ; then
47711 COND_SHARED_1=""
47712 fi
47713
47714 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47715 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47716 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47717 fi
47718
083508af
MW
47719 COND_SHARED_1_USE_XRC_1="#"
47720 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47721 COND_SHARED_1_USE_XRC_1=""
47722 fi
47723
a30f955f
VS
47724 COND_TOOLKIT_="#"
47725 if test "x$TOOLKIT" = "x" ; then
47726 COND_TOOLKIT_=""
47727 fi
47728
a848cd7e
SC
47729 COND_TOOLKIT_COCOA="#"
47730 if test "x$TOOLKIT" = "xCOCOA" ; then
47731 COND_TOOLKIT_COCOA=""
47732 fi
47733
a49baeab
DE
47734 COND_TOOLKIT_COCOA_USE_GUI_1="#"
47735 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47736 COND_TOOLKIT_COCOA_USE_GUI_1=""
47737 fi
47738
a848cd7e
SC
47739 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47740 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47741 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47742 fi
47743
47744 COND_TOOLKIT_GTK="#"
47745 if test "x$TOOLKIT" = "xGTK" ; then
47746 COND_TOOLKIT_GTK=""
47747 fi
47748
d044deea
MW
47749 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
47750 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
47751 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
47752 fi
47753
47754 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
47755 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
47756 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
47757 fi
47758
47759 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
47760 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
47761 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
47762 fi
47763
47764 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
47765 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47766 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
47767 fi
47768
47769 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
47770 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
47771 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
47772 fi
47773
47774 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
47775 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47776 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
47777 fi
47778
a848cd7e
SC
47779 COND_TOOLKIT_GTK_USE_GUI_1="#"
47780 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
47781 COND_TOOLKIT_GTK_USE_GUI_1=""
47782 fi
47783
a848cd7e
SC
47784 COND_TOOLKIT_MAC="#"
47785 if test "x$TOOLKIT" = "xMAC" ; then
47786 COND_TOOLKIT_MAC=""
47787 fi
47788
47789 COND_TOOLKIT_MAC_USE_GUI_1="#"
47790 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47791 COND_TOOLKIT_MAC_USE_GUI_1=""
47792 fi
47793
47794 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47795 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47796 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47797 fi
47798
47799 COND_TOOLKIT_MGL="#"
47800 if test "x$TOOLKIT" = "xMGL" ; then
47801 COND_TOOLKIT_MGL=""
47802 fi
47803
47804 COND_TOOLKIT_MGL_USE_GUI_1="#"
47805 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
47806 COND_TOOLKIT_MGL_USE_GUI_1=""
47807 fi
47808
47809 COND_TOOLKIT_MOTIF="#"
47810 if test "x$TOOLKIT" = "xMOTIF" ; then
47811 COND_TOOLKIT_MOTIF=""
47812 fi
47813
47814 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
47815 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
47816 COND_TOOLKIT_MOTIF_USE_GUI_1=""
47817 fi
47818
47819 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
47820 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47821 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
47822 fi
47823
47824 COND_TOOLKIT_MSW="#"
47825 if test "x$TOOLKIT" = "xMSW" ; then
47826 COND_TOOLKIT_MSW=""
47827 fi
47828
47829 COND_TOOLKIT_MSW_USE_GUI_1="#"
47830 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
47831 COND_TOOLKIT_MSW_USE_GUI_1=""
47832 fi
47833
47834 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
47835 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47836 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
47837 fi
47838
0ee4059d
DE
47839 COND_TOOLKIT_MSW_WXUNIV_0="#"
47840 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47841 COND_TOOLKIT_MSW_WXUNIV_0=""
47842 fi
47843
a848cd7e
SC
47844 COND_TOOLKIT_PM="#"
47845 if test "x$TOOLKIT" = "xPM" ; then
47846 COND_TOOLKIT_PM=""
47847 fi
47848
47849 COND_TOOLKIT_PM_USE_GUI_1="#"
47850 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
47851 COND_TOOLKIT_PM_USE_GUI_1=""
47852 fi
47853
47854 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
47855 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47856 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
47857 fi
47858
3fd9c298
DE
47859 COND_TOOLKIT_WINCE="#"
47860 if test "x$TOOLKIT" = "xWINCE" ; then
47861 COND_TOOLKIT_WINCE=""
47862 fi
47863
47864 COND_TOOLKIT_WINCE_USE_GUI_1="#"
47865 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
47866 COND_TOOLKIT_WINCE_USE_GUI_1=""
47867 fi
47868
47869 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
47870 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47871 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
47872 fi
47873
0ee4059d
DE
47874 COND_TOOLKIT_WINCE_WXUNIV_0="#"
47875 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
47876 COND_TOOLKIT_WINCE_WXUNIV_0=""
47877 fi
47878
a848cd7e
SC
47879 COND_TOOLKIT_X11="#"
47880 if test "x$TOOLKIT" = "xX11" ; then
47881 COND_TOOLKIT_X11=""
47882 fi
47883
47884 COND_TOOLKIT_X11_USE_GUI_1="#"
47885 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
47886 COND_TOOLKIT_X11_USE_GUI_1=""
47887 fi
47888
47889 COND_UNICODE_1="#"
47890 if test "x$UNICODE" = "x1" ; then
47891 COND_UNICODE_1=""
47892 fi
47893
47894 COND_USE_EXCEPTIONS_0="#"
47895 if test "x$USE_EXCEPTIONS" = "x0" ; then
47896 COND_USE_EXCEPTIONS_0=""
47897 fi
47898
47899 COND_USE_EXCEPTIONS_1="#"
47900 if test "x$USE_EXCEPTIONS" = "x1" ; then
47901 COND_USE_EXCEPTIONS_1=""
47902 fi
47903
47904 COND_USE_GUI_0="#"
47905 if test "x$USE_GUI" = "x0" ; then
47906 COND_USE_GUI_0=""
47907 fi
47908
47909 COND_USE_GUI_1="#"
47910 if test "x$USE_GUI" = "x1" ; then
47911 COND_USE_GUI_1=""
47912 fi
47913
47914 COND_USE_GUI_1_WXUNIV_0="#"
47915 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47916 COND_USE_GUI_1_WXUNIV_0=""
47917 fi
47918
47919 COND_USE_GUI_1_WXUNIV_1="#"
47920 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
47921 COND_USE_GUI_1_WXUNIV_1=""
47922 fi
47923
47924 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47925 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47926 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47927 fi
47928
47929 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47930 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47931 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47932 fi
47933
47934 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47935 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47936 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47937 fi
47938
083508af
MW
47939 COND_USE_ODBC_1="#"
47940 if test "x$USE_ODBC" = "x1" ; then
47941 COND_USE_ODBC_1=""
47942 fi
47943
47944 COND_USE_OPENGL_1="#"
47945 if test "x$USE_OPENGL" = "x1" ; then
47946 COND_USE_OPENGL_1=""
47947 fi
47948
a848cd7e
SC
47949 COND_USE_PLUGINS_0="#"
47950 if test "x$USE_PLUGINS" = "x0" ; then
47951 COND_USE_PLUGINS_0=""
47952 fi
47953
0b78747f
MW
47954 COND_USE_RTTI_0="#"
47955 if test "x$USE_RTTI" = "x0" ; then
47956 COND_USE_RTTI_0=""
47957 fi
47958
47959 COND_USE_RTTI_1="#"
47960 if test "x$USE_RTTI" = "x1" ; then
47961 COND_USE_RTTI_1=""
47962 fi
47963
a848cd7e
SC
47964 COND_USE_SOSYMLINKS_1="#"
47965 if test "x$USE_SOSYMLINKS" = "x1" ; then
47966 COND_USE_SOSYMLINKS_1=""
47967 fi
47968
eb730a0c
JS
47969 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
47970 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47971 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
47972 fi
47973
a848cd7e
SC
47974 COND_USE_SOVERLINUX_1="#"
47975 if test "x$USE_SOVERLINUX" = "x1" ; then
47976 COND_USE_SOVERLINUX_1=""
47977 fi
47978
47979 COND_USE_SOVERSION_0="#"
47980 if test "x$USE_SOVERSION" = "x0" ; then
47981 COND_USE_SOVERSION_0=""
47982 fi
47983
47984 COND_USE_SOVERSOLARIS_1="#"
47985 if test "x$USE_SOVERSOLARIS" = "x1" ; then
47986 COND_USE_SOVERSOLARIS_1=""
47987 fi
47988
0b78747f
MW
47989 COND_USE_THREADS_0="#"
47990 if test "x$USE_THREADS" = "x0" ; then
47991 COND_USE_THREADS_0=""
47992 fi
47993
47994 COND_USE_THREADS_1="#"
47995 if test "x$USE_THREADS" = "x1" ; then
47996 COND_USE_THREADS_1=""
47997 fi
47998
a13a7f89
RL
47999 COND_USE_XRC_1="#"
48000 if test "x$USE_XRC" = "x1" ; then
48001 COND_USE_XRC_1=""
48002 fi
48003
eb730a0c
JS
48004 COND_WINDOWS_IMPLIB_1="#"
48005 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48006 COND_WINDOWS_IMPLIB_1=""
48007 fi
48008
a848cd7e
SC
48009 COND_WITH_PLUGIN_SDL_1="#"
48010 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48011 COND_WITH_PLUGIN_SDL_1=""
48012 fi
48013
1e6eb025
VZ
48014 COND_WXUNIV_0="#"
48015 if test "x$WXUNIV" = "x0" ; then
48016 COND_WXUNIV_0=""
48017 fi
48018
a848cd7e
SC
48019 COND_WXUNIV_1="#"
48020 if test "x$WXUNIV" = "x1" ; then
48021 COND_WXUNIV_1=""
48022 fi
48023
48024 COND_WXUSE_EXPAT_BUILTIN="#"
48025 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48026 COND_WXUSE_EXPAT_BUILTIN=""
48027 fi
48028
48029 COND_WXUSE_LIBJPEG_BUILTIN="#"
48030 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48031 COND_WXUSE_LIBJPEG_BUILTIN=""
48032 fi
48033
48034 COND_WXUSE_LIBPNG_BUILTIN="#"
48035 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48036 COND_WXUSE_LIBPNG_BUILTIN=""
48037 fi
48038
48039 COND_WXUSE_LIBTIFF_BUILTIN="#"
48040 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48041 COND_WXUSE_LIBTIFF_BUILTIN=""
48042 fi
48043
48044 COND_WXUSE_ODBC_BUILTIN="#"
48045 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48046 COND_WXUSE_ODBC_BUILTIN=""
48047 fi
48048
48049 COND_WXUSE_REGEX_BUILTIN="#"
48050 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48051 COND_WXUSE_REGEX_BUILTIN=""
48052 fi
48053
48054 COND_WXUSE_ZLIB_BUILTIN="#"
48055 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48056 COND_WXUSE_ZLIB_BUILTIN=""
48057 fi
48058
48059
48060
810b94f0
MW
48061 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48062 { { 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
48063echo "$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;}
48064 { (exit 1); exit 1; }; }
48065 fi
48066
2057db16
VS
48067 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48068 { { 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
48069echo "$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;}
48070 { (exit 1); exit 1; }; }
48071 fi
48072
a848cd7e 48073
7afc46ab
KO
48074
48075if test "$wxUSE_MAC" = 1 ; then
48076 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
48077 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48078 mv temp bk-deps
48079 chmod +x bk-deps
48080 fi
48081fi
48082
ceec2216
RL
48083if test "$wxUSE_SHARED" = "yes"; then
48084
48085 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48086 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48087
5b674b9d
DE
48088 case "${host}" in
48089 *-pc-os2_emx | *-pc-os2-emx )
48090 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48091 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48092 cp -p ${srcdir}/src/os2/dllnames.sh .
48093 cp -p ${srcdir}/src/os2/dllar.sh .
48094 ;;
48095 esac
ceec2216
RL
48096else
48097
48098 EXE_LINKER="$CXX -o"
48099
48100fi
69120ee4
VZ
48101if test "$wxUSE_OMF" = "yes"; then
48102 case "${host}" in
48103 *-pc-os2_emx | *-pc-os2-emx )
48104 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48105 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48106 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48107 ;;
48108 esac
48109fi
a848cd7e 48110
c08ebc62 48111if test $GCC_PCH = 1 ; then
254e8e29 48112 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48113fi
a848cd7e 48114
5ff751d6 48115WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48116
48117SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48118
48119
48120
48121
48122
48123
48124
48125
48126
48127
48128
48129
48130
48131
48132
48133
48134
48135
48136
48137
48138
48139
48140
48141
48142
48143
48144
48145
48146
48147
48148
48149
48150
48151
48152
48153
48154
48155
48156
48157
48158
48159
a848cd7e
SC
48160
48161
48162
48163
48164
48165
48166
48167
48168
48169
48170
48171
a848cd7e
SC
48172
48173
ddd14b14 48174
370d2fd7 48175
8ced02f6 48176
a848cd7e
SC
48177
48178
48179echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48180echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48181set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48182if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48183 echo $ECHO_N "(cached) $ECHO_C" >&6
48184else
48185 cat >conftest.make <<\_ACEOF
48186all:
48187 @echo 'ac_maketemp="$(MAKE)"'
48188_ACEOF
48189# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48190eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48191if test -n "$ac_maketemp"; then
48192 eval ac_cv_prog_make_${ac_make}_set=yes
48193else
48194 eval ac_cv_prog_make_${ac_make}_set=no
48195fi
48196rm -f conftest.make
48197fi
48198if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48199 echo "$as_me:$LINENO: result: yes" >&5
48200echo "${ECHO_T}yes" >&6
48201 SET_MAKE=
48202else
48203 echo "$as_me:$LINENO: result: no" >&5
48204echo "${ECHO_T}no" >&6
48205 SET_MAKE="MAKE=${MAKE-make}"
48206fi
48207
48208
a848cd7e 48209
ceec2216
RL
48210 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48211
a848cd7e 48212
5c60e845
MW
48213if test "$USE_WIN32" = 1; then
48214 ac_config_commands="$ac_config_commands
48215 rcdefs.h
48216 "
48217
48218fi
48219
ceec2216 48220 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48221
a848cd7e 48222
ceec2216 48223 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48224
ceec2216
RL
48225
48226 ac_config_files="$ac_config_files version-script Makefile"
48227
48228
5c60e845 48229 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48230
48231
9103d280 48232
1c14217d 48233if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48234if test "$wxUSE_GUI" = "yes"; then
48235 SUBDIRS="samples demos utils contrib"
48236else SUBDIRS="samples utils"
48237fi
48238
48239
48240
48241# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48242if test "${with_cppunit_prefix+set}" = set; then
48243 withval="$with_cppunit_prefix"
48244 cppunit_config_prefix="$withval"
48245else
48246 cppunit_config_prefix=""
48247fi;
48248
48249# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48250if test "${with_cppunit_exec_prefix+set}" = set; then
48251 withval="$with_cppunit_exec_prefix"
48252 cppunit_config_exec_prefix="$withval"
48253else
48254 cppunit_config_exec_prefix=""
48255fi;
48256
48257 if test x$cppunit_config_exec_prefix != x ; then
48258 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48259 if test x${CPPUNIT_CONFIG+set} != xset ; then
48260 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48261 fi
48262 fi
48263 if test x$cppunit_config_prefix != x ; then
48264 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48265 if test x${CPPUNIT_CONFIG+set} != xset ; then
48266 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48267 fi
48268 fi
48269
48270 # Extract the first word of "cppunit-config", so it can be a program name with args.
48271set dummy cppunit-config; ac_word=$2
48272echo "$as_me:$LINENO: checking for $ac_word" >&5
48273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48274if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48275 echo $ECHO_N "(cached) $ECHO_C" >&6
48276else
48277 case $CPPUNIT_CONFIG in
48278 [\\/]* | ?:[\\/]*)
48279 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48280 ;;
48281 *)
48282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48283for as_dir in $PATH
48284do
48285 IFS=$as_save_IFS
48286 test -z "$as_dir" && as_dir=.
48287 for ac_exec_ext in '' $ac_executable_extensions; do
48288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48289 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48291 break 2
48292 fi
48293done
48294done
48295
48296 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48297 ;;
48298esac
48299fi
48300CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48301
48302if test -n "$CPPUNIT_CONFIG"; then
48303 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48304echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48305else
48306 echo "$as_me:$LINENO: result: no" >&5
48307echo "${ECHO_T}no" >&6
48308fi
48309
48310 cppunit_version_min=1.8.0
48311
48312 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48313echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48314 no_cppunit=""
48315 if test "$CPPUNIT_CONFIG" = "no" ; then
48316 no_cppunit=yes
48317 else
48318 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48319 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48320 cppunit_version=`$CPPUNIT_CONFIG --version`
48321
48322 cppunit_major_version=`echo $cppunit_version | \
48323 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48324 cppunit_minor_version=`echo $cppunit_version | \
48325 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48326 cppunit_micro_version=`echo $cppunit_version | \
48327 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48328
48329 cppunit_major_min=`echo $cppunit_version_min | \
48330 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48331 cppunit_minor_min=`echo $cppunit_version_min | \
48332 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48333 cppunit_micro_min=`echo $cppunit_version_min | \
48334 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48335
48336 cppunit_version_proper=`expr \
48337 $cppunit_major_version \> $cppunit_major_min \| \
48338 $cppunit_major_version \= $cppunit_major_min \& \
48339 $cppunit_minor_version \> $cppunit_minor_min \| \
48340 $cppunit_major_version \= $cppunit_major_min \& \
48341 $cppunit_minor_version \= $cppunit_minor_min \& \
48342 $cppunit_micro_version \>= $cppunit_micro_min `
48343
48344 if test "$cppunit_version_proper" = "1" ; then
48345 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48346echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48347 else
48348 echo "$as_me:$LINENO: result: no" >&5
48349echo "${ECHO_T}no" >&6
48350 no_cppunit=yes
48351 fi
48352 fi
48353
48354 if test "x$no_cppunit" = x ; then
c2218763 48355 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48356 else
48357 CPPUNIT_CFLAGS=""
48358 CPPUNIT_LIBS=""
c2218763 48359 :
a848cd7e
SC
48360 fi
48361
48362
48363
48364
48365
48366for subdir in `echo $SUBDIRS`; do
48367 if test -d ${srcdir}/${subdir} ; then
48368 if test "$wxUSE_GUI" = "yes"; then
48369 if test ${subdir} = "samples"; then
48370 makefiles="samples/Makefile.in $makefiles"
48371 for sample in `echo $SAMPLES_SUBDIRS`; do
48372 if test -d $srcdir/samples/$sample; then
48373 makefiles="samples/$sample/Makefile.in $makefiles"
48374 fi
48375 done
9c112555
MW
48376 else
48377 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48378 eval "disabled=\$$disabled_var"
48379 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48380 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48381 fi
48382 else if test ${subdir} = "samples"; then
48383 makefiles="samples/Makefile.in samples/console/Makefile.in"
48384 elif test ${subdir} = "utils"; then
6537ccf8
VS
48385 makefiles=""
48386 for util in HelpGen tex2rtf ; do
48387 if test -d $srcdir/utils/$util ; then
48388 makefiles="utils/$util/Makefile.in \
48389 utils/$util/src/Makefile.in \
48390 $makefiles"
48391 fi
48392 done
a848cd7e
SC
48393 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48394 fi
48395 fi
48396
48397 for mkin in $makefiles ; do
48398 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48399 ac_config_files="$ac_config_files $mk"
48400
48401 done
48402 fi
48403done
1c14217d 48404fi
a848cd7e
SC
48405cat >confcache <<\_ACEOF
48406# This file is a shell script that caches the results of configure
48407# tests run on this system so they can be shared between configure
48408# scripts and configure runs, see configure's option --config-cache.
48409# It is not useful on other systems. If it contains results you don't
48410# want to keep, you may remove or edit it.
48411#
48412# config.status only pays attention to the cache file if you give it
48413# the --recheck option to rerun configure.
48414#
48415# `ac_cv_env_foo' variables (set or unset) will be overridden when
48416# loading this file, other *unset* `ac_cv_foo' will be assigned the
48417# following values.
48418
48419_ACEOF
48420
48421# The following way of writing the cache mishandles newlines in values,
48422# but we know of no workaround that is simple, portable, and efficient.
48423# So, don't put newlines in cache variables' values.
48424# Ultrix sh set writes to stderr and can't be redirected directly,
48425# and sets the high bit in the cache file unless we assign to the vars.
48426{
48427 (set) 2>&1 |
48428 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48429 *ac_space=\ *)
48430 # `set' does not quote correctly, so add quotes (double-quote
48431 # substitution turns \\\\ into \\, and sed turns \\ into \).
48432 sed -n \
ac1cb8d3
VS
48433 "s/'/'\\\\''/g;
48434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48435 ;;
48436 *)
48437 # `set' quotes correctly as required by POSIX, so do not add quotes.
48438 sed -n \
ac1cb8d3 48439 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48440 ;;
48441 esac;
48442} |
48443 sed '
48444 t clear
48445 : clear
48446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48447 t end
48448 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48449 : end' >>confcache
48450if diff $cache_file confcache >/dev/null 2>&1; then :; else
48451 if test -w $cache_file; then
48452 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48453 cat confcache >$cache_file
48454 else
48455 echo "not updating unwritable cache $cache_file"
48456 fi
48457fi
48458rm -f confcache
48459
48460test "x$prefix" = xNONE && prefix=$ac_default_prefix
48461# Let make expand exec_prefix.
48462test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48463
48464# VPATH may cause trouble with some makes, so we remove $(srcdir),
48465# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48466# trailing colons and then remove the whole line if VPATH becomes empty
48467# (actually we leave an empty line to preserve line numbers).
48468if test "x$srcdir" = x.; then
ac1cb8d3 48469 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
48470s/:*\$(srcdir):*/:/;
48471s/:*\${srcdir}:*/:/;
48472s/:*@srcdir@:*/:/;
ac1cb8d3 48473s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48474s/:*$//;
ac1cb8d3 48475s/^[^=]*=[ ]*$//;
a848cd7e
SC
48476}'
48477fi
48478
48479DEFS=-DHAVE_CONFIG_H
48480
48481ac_libobjs=
48482ac_ltlibobjs=
48483for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48484 # 1. Remove the extension, and $U if already installed.
48485 ac_i=`echo "$ac_i" |
ac1cb8d3 48486 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48487 # 2. Add them.
48488 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48489 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48490done
48491LIBOBJS=$ac_libobjs
48492
48493LTLIBOBJS=$ac_ltlibobjs
48494
48495
48496
48497: ${CONFIG_STATUS=./config.status}
48498ac_clean_files_save=$ac_clean_files
48499ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48500{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48501echo "$as_me: creating $CONFIG_STATUS" >&6;}
48502cat >$CONFIG_STATUS <<_ACEOF
48503#! $SHELL
48504# Generated by $as_me.
48505# Run this file to recreate the current configuration.
48506# Compiler output produced by configure, useful for debugging
48507# configure, is in config.log if it exists.
48508
48509debug=false
48510ac_cs_recheck=false
48511ac_cs_silent=false
48512SHELL=\${CONFIG_SHELL-$SHELL}
48513_ACEOF
48514
48515cat >>$CONFIG_STATUS <<\_ACEOF
48516## --------------------- ##
48517## M4sh Initialization. ##
48518## --------------------- ##
48519
48520# Be Bourne compatible
48521if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48522 emulate sh
48523 NULLCMD=:
48524 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48525 # is contrary to our usage. Disable this feature.
48526 alias -g '${1+"$@"}'='"$@"'
48527elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48528 set -o posix
48529fi
ac1cb8d3 48530DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48531
48532# Support unset when possible.
ac1cb8d3 48533if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48534 as_unset=unset
48535else
48536 as_unset=false
48537fi
48538
48539
48540# Work around bugs in pre-3.0 UWIN ksh.
48541$as_unset ENV MAIL MAILPATH
48542PS1='$ '
48543PS2='> '
48544PS4='+ '
48545
48546# NLS nuisances.
48547for as_var in \
48548 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48549 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48550 LC_TELEPHONE LC_TIME
48551do
ac1cb8d3 48552 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48553 eval $as_var=C; export $as_var
48554 else
48555 $as_unset $as_var
48556 fi
48557done
48558
48559# Required to use basename.
48560if expr a : '\(a\)' >/dev/null 2>&1; then
48561 as_expr=expr
48562else
48563 as_expr=false
48564fi
48565
48566if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48567 as_basename=basename
48568else
48569 as_basename=false
48570fi
48571
48572
48573# Name of the executable.
48574as_me=`$as_basename "$0" ||
48575$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48576 X"$0" : 'X\(//\)$' \| \
48577 X"$0" : 'X\(/\)$' \| \
48578 . : '\(.\)' 2>/dev/null ||
48579echo X/"$0" |
48580 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48581 /^X\/\(\/\/\)$/{ s//\1/; q; }
48582 /^X\/\(\/\).*/{ s//\1/; q; }
48583 s/.*/./; q'`
48584
48585
48586# PATH needs CR, and LINENO needs CR and PATH.
48587# Avoid depending upon Character Ranges.
48588as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48589as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48590as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48591as_cr_digits='0123456789'
48592as_cr_alnum=$as_cr_Letters$as_cr_digits
48593
48594# The user is always right.
48595if test "${PATH_SEPARATOR+set}" != set; then
48596 echo "#! /bin/sh" >conf$$.sh
48597 echo "exit 0" >>conf$$.sh
48598 chmod +x conf$$.sh
48599 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48600 PATH_SEPARATOR=';'
48601 else
48602 PATH_SEPARATOR=:
48603 fi
48604 rm -f conf$$.sh
48605fi
48606
48607
48608 as_lineno_1=$LINENO
48609 as_lineno_2=$LINENO
48610 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48611 test "x$as_lineno_1" != "x$as_lineno_2" &&
48612 test "x$as_lineno_3" = "x$as_lineno_2" || {
48613 # Find who we are. Look in the path if we contain no path at all
48614 # relative or not.
48615 case $0 in
48616 *[\\/]* ) as_myself=$0 ;;
48617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48618for as_dir in $PATH
48619do
48620 IFS=$as_save_IFS
48621 test -z "$as_dir" && as_dir=.
48622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48623done
48624
48625 ;;
48626 esac
48627 # We did not find ourselves, most probably we were run as `sh COMMAND'
48628 # in which case we are not to be found in the path.
48629 if test "x$as_myself" = x; then
48630 as_myself=$0
48631 fi
48632 if test ! -f "$as_myself"; then
48633 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48634echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48635 { (exit 1); exit 1; }; }
48636 fi
48637 case $CONFIG_SHELL in
48638 '')
48639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48640for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48641do
48642 IFS=$as_save_IFS
48643 test -z "$as_dir" && as_dir=.
48644 for as_base in sh bash ksh sh5; do
48645 case $as_dir in
48646 /*)
48647 if ("$as_dir/$as_base" -c '
48648 as_lineno_1=$LINENO
48649 as_lineno_2=$LINENO
48650 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48651 test "x$as_lineno_1" != "x$as_lineno_2" &&
48652 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
48653 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48654 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48655 CONFIG_SHELL=$as_dir/$as_base
48656 export CONFIG_SHELL
48657 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48658 fi;;
48659 esac
48660 done
48661done
48662;;
48663 esac
48664
48665 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48666 # uniformly replaced by the line number. The first 'sed' inserts a
48667 # line-number line before each line; the second 'sed' does the real
48668 # work. The second script uses 'N' to pair each line-number line
48669 # with the numbered line, and appends trailing '-' during
48670 # substitution so that $LINENO is not a special case at line end.
48671 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48672 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
48673 sed '=' <$as_myself |
48674 sed '
48675 N
48676 s,$,-,
48677 : loop
48678 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48679 t loop
48680 s,-$,,
48681 s,^['$as_cr_digits']*\n,,
48682 ' >$as_me.lineno &&
48683 chmod +x $as_me.lineno ||
48684 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48685echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48686 { (exit 1); exit 1; }; }
48687
48688 # Don't try to exec as it changes $[0], causing all sort of problems
48689 # (the dirname of $[0] is not the place where we might find the
48690 # original and so on. Autoconf is especially sensible to this).
48691 . ./$as_me.lineno
48692 # Exit status is that of the last command.
48693 exit
48694}
48695
48696
48697case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48698 *c*,-n*) ECHO_N= ECHO_C='
48699' ECHO_T=' ' ;;
48700 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48701 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
48702esac
48703
48704if expr a : '\(a\)' >/dev/null 2>&1; then
48705 as_expr=expr
48706else
48707 as_expr=false
48708fi
48709
48710rm -f conf$$ conf$$.exe conf$$.file
48711echo >conf$$.file
48712if ln -s conf$$.file conf$$ 2>/dev/null; then
48713 # We could just check for DJGPP; but this test a) works b) is more generic
48714 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48715 if test -f conf$$.exe; then
48716 # Don't use ln at all; we don't have any links
48717 as_ln_s='cp -p'
48718 else
48719 as_ln_s='ln -s'
48720 fi
48721elif ln conf$$.file conf$$ 2>/dev/null; then
48722 as_ln_s=ln
48723else
48724 as_ln_s='cp -p'
48725fi
48726rm -f conf$$ conf$$.exe conf$$.file
48727
48728if mkdir -p . 2>/dev/null; then
48729 as_mkdir_p=:
48730else
ac1cb8d3 48731 test -d ./-p && rmdir ./-p
a848cd7e
SC
48732 as_mkdir_p=false
48733fi
48734
48735as_executable_p="test -f"
48736
48737# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 48738as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48739
48740# Sed expression to map a string onto a valid variable name.
ac1cb8d3 48741as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48742
48743
48744# IFS
48745# We need space, tab and new line, in precisely that order.
48746as_nl='
48747'
48748IFS=" $as_nl"
48749
48750# CDPATH.
48751$as_unset CDPATH
48752
48753exec 6>&1
48754
48755# Open the log real soon, to keep \$[0] and so on meaningful, and to
48756# report actual input values of CONFIG_FILES etc. instead of their
48757# values after options handling. Logging --version etc. is OK.
48758exec 5>>config.log
48759{
48760 echo
48761 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48762## Running $as_me. ##
48763_ASBOX
48764} >&5
48765cat >&5 <<_CSEOF
48766
dd8df4fc 48767This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 48768generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
48769
48770 CONFIG_FILES = $CONFIG_FILES
48771 CONFIG_HEADERS = $CONFIG_HEADERS
48772 CONFIG_LINKS = $CONFIG_LINKS
48773 CONFIG_COMMANDS = $CONFIG_COMMANDS
48774 $ $0 $@
48775
48776_CSEOF
48777echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
48778echo >&5
48779_ACEOF
48780
48781# Files that config.status was made for.
48782if test -n "$ac_config_files"; then
48783 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
48784fi
48785
48786if test -n "$ac_config_headers"; then
48787 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
48788fi
48789
48790if test -n "$ac_config_links"; then
48791 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
48792fi
48793
48794if test -n "$ac_config_commands"; then
48795 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
48796fi
48797
48798cat >>$CONFIG_STATUS <<\_ACEOF
48799
48800ac_cs_usage="\
48801\`$as_me' instantiates files from templates according to the
48802current configuration.
48803
48804Usage: $0 [OPTIONS] [FILE]...
48805
48806 -h, --help print this help, then exit
48807 -V, --version print version number, then exit
48808 -q, --quiet do not print progress messages
48809 -d, --debug don't remove temporary files
48810 --recheck update $as_me by reconfiguring in the same conditions
48811 --file=FILE[:TEMPLATE]
ac1cb8d3 48812 instantiate the configuration file FILE
a848cd7e 48813 --header=FILE[:TEMPLATE]
ac1cb8d3 48814 instantiate the configuration header FILE
a848cd7e
SC
48815
48816Configuration files:
48817$config_files
48818
48819Configuration headers:
48820$config_headers
48821
48822Configuration commands:
48823$config_commands
48824
48825Report bugs to <bug-autoconf@gnu.org>."
48826_ACEOF
48827
48828cat >>$CONFIG_STATUS <<_ACEOF
48829ac_cs_version="\\
dd8df4fc 48830wxWidgets config.status 2.7.0
ac1cb8d3 48831configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
48832 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
48833
ac1cb8d3 48834Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
48835This config.status script is free software; the Free Software Foundation
48836gives unlimited permission to copy, distribute and modify it."
48837srcdir=$srcdir
48838INSTALL="$INSTALL"
48839_ACEOF
48840
48841cat >>$CONFIG_STATUS <<\_ACEOF
48842# If no file are specified by the user, then we need to provide default
48843# value. By we need to know if files were specified by the user.
48844ac_need_defaults=:
48845while test $# != 0
48846do
48847 case $1 in
48848 --*=*)
48849 ac_option=`expr "x$1" : 'x\([^=]*\)='`
48850 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
48851 ac_shift=:
48852 ;;
48853 -*)
48854 ac_option=$1
48855 ac_optarg=$2
48856 ac_shift=shift
48857 ;;
48858 *) # This is not an option, so the user has probably given explicit
48859 # arguments.
48860 ac_option=$1
48861 ac_need_defaults=false;;
48862 esac
48863
48864 case $ac_option in
48865 # Handling of the options.
48866_ACEOF
48867cat >>$CONFIG_STATUS <<\_ACEOF
48868 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48869 ac_cs_recheck=: ;;
48870 --version | --vers* | -V )
48871 echo "$ac_cs_version"; exit 0 ;;
48872 --he | --h)
48873 # Conflict between --help and --header
48874 { { echo "$as_me:$LINENO: error: ambiguous option: $1
48875Try \`$0 --help' for more information." >&5
48876echo "$as_me: error: ambiguous option: $1
48877Try \`$0 --help' for more information." >&2;}
48878 { (exit 1); exit 1; }; };;
48879 --help | --hel | -h )
48880 echo "$ac_cs_usage"; exit 0 ;;
48881 --debug | --d* | -d )
48882 debug=: ;;
48883 --file | --fil | --fi | --f )
48884 $ac_shift
48885 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
48886 ac_need_defaults=false;;
48887 --header | --heade | --head | --hea )
48888 $ac_shift
48889 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
48890 ac_need_defaults=false;;
48891 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48892 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48893 ac_cs_silent=: ;;
48894
48895 # This is an error.
48896 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
48897Try \`$0 --help' for more information." >&5
48898echo "$as_me: error: unrecognized option: $1
48899Try \`$0 --help' for more information." >&2;}
48900 { (exit 1); exit 1; }; } ;;
48901
48902 *) ac_config_targets="$ac_config_targets $1" ;;
48903
48904 esac
48905 shift
48906done
48907
48908ac_configure_extra_args=
48909
48910if $ac_cs_silent; then
48911 exec 6>/dev/null
48912 ac_configure_extra_args="$ac_configure_extra_args --silent"
48913fi
48914
48915_ACEOF
48916cat >>$CONFIG_STATUS <<_ACEOF
48917if \$ac_cs_recheck; then
48918 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
48919 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48920fi
48921
48922_ACEOF
48923
48924cat >>$CONFIG_STATUS <<_ACEOF
48925#
48926# INIT-COMMANDS section.
48927#
48928
5c60e845
MW
48929
48930 CPP="$CPP"
48931 infile="$srcdir/include/wx/msw/genrcdefs.h"
48932 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
48933
48934
ceec2216
RL
48935 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48936 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48937 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48938 LN_S="${LN_S}"
a848cd7e
SC
48939
48940
48941_ACEOF
48942
48943
48944
48945cat >>$CONFIG_STATUS <<\_ACEOF
48946for ac_config_target in $ac_config_targets
48947do
48948 case "$ac_config_target" in
48949 # Handling of arguments.
ceec2216
RL
48950 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
48951 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
48952 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
48953 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48954 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 48955 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
48956 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
48957 "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
48958 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48959echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48960 { (exit 1); exit 1; }; };;
48961 esac
48962done
48963
48964# If the user did not use the arguments to specify the items to instantiate,
48965# then the envvar interface is used. Set only those that are not.
48966# We use the long form for the default assignment because of an extremely
48967# bizarre bug on SunOS 4.1.3.
48968if $ac_need_defaults; then
48969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48970 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48971 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48972fi
48973
48974# Have a temporary directory for convenience. Make it in the build tree
48975# simply because there is no reason to put it here, and in addition,
48976# creating and moving files from /tmp can sometimes cause problems.
48977# Create a temporary directory, and hook for its removal unless debugging.
48978$debug ||
48979{
48980 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
48981 trap '{ (exit 1); exit 1; }' 1 2 13 15
48982}
48983
48984# Create a (secure) tmp directory for tmp files.
48985
48986{
48987 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
48988 test -n "$tmp" && test -d "$tmp"
48989} ||
48990{
48991 tmp=./confstat$$-$RANDOM
48992 (umask 077 && mkdir $tmp)
48993} ||
48994{
48995 echo "$me: cannot create a temporary directory in ." >&2
48996 { (exit 1); exit 1; }
48997}
48998
48999_ACEOF
49000
49001cat >>$CONFIG_STATUS <<_ACEOF
49002
49003#
49004# CONFIG_FILES section.
49005#
49006
49007# No need to generate the scripts if there are no CONFIG_FILES.
49008# This happens for instance when ./config.status config.h
49009if test -n "\$CONFIG_FILES"; then
49010 # Protect against being on the right side of a sed subst in config.status.
49011 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49012 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49013s,@SHELL@,$SHELL,;t t
49014s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49015s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49016s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49017s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49018s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49019s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49020s,@exec_prefix@,$exec_prefix,;t t
49021s,@prefix@,$prefix,;t t
49022s,@program_transform_name@,$program_transform_name,;t t
49023s,@bindir@,$bindir,;t t
49024s,@sbindir@,$sbindir,;t t
49025s,@libexecdir@,$libexecdir,;t t
49026s,@datadir@,$datadir,;t t
49027s,@sysconfdir@,$sysconfdir,;t t
49028s,@sharedstatedir@,$sharedstatedir,;t t
49029s,@localstatedir@,$localstatedir,;t t
49030s,@libdir@,$libdir,;t t
49031s,@includedir@,$includedir,;t t
49032s,@oldincludedir@,$oldincludedir,;t t
49033s,@infodir@,$infodir,;t t
49034s,@mandir@,$mandir,;t t
49035s,@build_alias@,$build_alias,;t t
49036s,@host_alias@,$host_alias,;t t
49037s,@target_alias@,$target_alias,;t t
49038s,@DEFS@,$DEFS,;t t
49039s,@ECHO_C@,$ECHO_C,;t t
49040s,@ECHO_N@,$ECHO_N,;t t
49041s,@ECHO_T@,$ECHO_T,;t t
49042s,@LIBS@,$LIBS,;t t
49043s,@build@,$build,;t t
49044s,@build_cpu@,$build_cpu,;t t
49045s,@build_vendor@,$build_vendor,;t t
49046s,@build_os@,$build_os,;t t
49047s,@host@,$host,;t t
49048s,@host_cpu@,$host_cpu,;t t
49049s,@host_vendor@,$host_vendor,;t t
49050s,@host_os@,$host_os,;t t
49051s,@target@,$target,;t t
49052s,@target_cpu@,$target_cpu,;t t
49053s,@target_vendor@,$target_vendor,;t t
49054s,@target_os@,$target_os,;t t
49055s,@CC@,$CC,;t t
49056s,@CFLAGS@,$CFLAGS,;t t
49057s,@LDFLAGS@,$LDFLAGS,;t t
49058s,@CPPFLAGS@,$CPPFLAGS,;t t
49059s,@ac_ct_CC@,$ac_ct_CC,;t t
49060s,@EXEEXT@,$EXEEXT,;t t
49061s,@OBJEXT@,$OBJEXT,;t t
49062s,@CPP@,$CPP,;t t
49063s,@EGREP@,$EGREP,;t t
49064s,@CXX@,$CXX,;t t
49065s,@CXXFLAGS@,$CXXFLAGS,;t t
49066s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49067s,@RANLIB@,$RANLIB,;t t
49068s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49069s,@AR@,$AR,;t t
8c80d384 49070s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49071s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49072s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49073s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49074s,@STRIP@,$STRIP,;t t
8c80d384 49075s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49076s,@WINDRES@,$WINDRES,;t t
49077s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49078s,@DLLTOOL@,$DLLTOOL,;t t
49079s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49080s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49081s,@LN_S@,$LN_S,;t t
49082s,@CXXCPP@,$CXXCPP,;t t
49083s,@subdirs@,$subdirs,;t t
49084s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49085s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49086s,@GTK_LIBS@,$GTK_LIBS,;t t
49087s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49088s,@X_CFLAGS@,$X_CFLAGS,;t t
49089s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49090s,@X_LIBS@,$X_LIBS,;t t
49091s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49092s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49093s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49094s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49095s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49096s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49097s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49098s,@REZ@,$REZ,;t t
a848cd7e
SC
49099s,@DEREZ@,$DEREZ,;t t
49100s,@SETFILE@,$SETFILE,;t t
49101s,@LIBICONV@,$LIBICONV,;t t
49102s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49103s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49104s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49105s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49106s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49107s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
3565d135
RR
49108s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49109s,@HILDON_LIBS@,$HILDON_LIBS,;t t
dae87f93
RN
49110s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
49111s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
49112s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
49113s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49114s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49115s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49116s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49117s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49118s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49119s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49120s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49121s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49122s,@VENDOR@,$VENDOR,;t t
49123s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49124s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49125s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49126s,@WXUNIV@,$WXUNIV,;t t
49127s,@MONOLITHIC@,$MONOLITHIC,;t t
49128s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49129s,@EXTRALIBS@,$EXTRALIBS,;t t
49130s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49131s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49132s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49133s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49134s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49135s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49136s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49137s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
3565d135 49138s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49139s,@UNICODE@,$UNICODE,;t t
49140s,@BUILD@,$BUILD,;t t
49141s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49142s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49143s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49144s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49145s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49146s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49147s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49148s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49149s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49150s,@SET_MAKE@,$SET_MAKE,;t t
49151s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49152s,@NM@,$NM,;t t
49153s,@ac_ct_NM@,$ac_ct_NM,;t t
49154s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49155s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49156s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49157s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49158s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49159s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49160s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49161s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49162s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49163s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49164s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49165s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49166s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49167s,@LIBPREFIX@,$LIBPREFIX,;t t
49168s,@LIBEXT@,$LIBEXT,;t t
49169s,@DLLPREFIX@,$DLLPREFIX,;t t
49170s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49171s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49172s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49173s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49174s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49175s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49176s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49177s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49178s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49179s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49180s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49181s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49182s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49183s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49184s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49185s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49186s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49187s,@GCC_PCH@,$GCC_PCH,;t t
49188s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49189s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49190s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49191s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49192s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49193s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49194s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49195s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49196s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49197s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49198s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49199s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49200s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49201s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49202s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
49203s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49204s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49205s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49206s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 49207s,@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 49208s,@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 49209s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 49210s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49211s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49212s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49213s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 49214s,@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 49215s,@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 49216s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 49217s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
49218s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49219s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49220s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49221s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49222s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49223s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49224s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49225s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49226s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49227s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49228s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49229s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49230s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49231s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49232s,@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
49233s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49234s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49235s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49236s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49237s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49238s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 49239s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49240s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49241s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49242s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49243s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49244s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49245s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49246s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49247s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49248s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49249s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49250s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49251s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49252s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49253s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49254s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49255s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49256s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49257s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49258s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49259s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49260s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49261s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49262s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49263s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49264s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49265s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49266s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49267s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49268s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49269s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49270s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49271s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49272s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49273s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49274s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49275s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49276s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49277s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49278s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49279s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49280s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49281s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49282s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49283s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49284s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49285s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49286s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49287s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49288s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49289s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49290s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49291s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49292s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49293s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49294s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49295s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49296s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49297s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49298s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49299s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49300s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49301s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49302s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49303s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49304s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49305s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49306s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49307s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 49308s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49309s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49310s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49311s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49312s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49313s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49314s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49315s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49316s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49317s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49318s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49319s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49320s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49321s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49322s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49323s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49324s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49325s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49326s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49327s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49328s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49329s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49330s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49331s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49332s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49333s,@USE_GUI@,$USE_GUI,;t t
49334s,@AFMINSTALL@,$AFMINSTALL,;t t
49335s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49336s,@TOOLKIT@,$TOOLKIT,;t t
49337s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49338s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49339s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49340s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49341s,@WIDGET_SET@,$WIDGET_SET,;t t
49342s,@WX_RELEASE@,$WX_RELEASE,;t t
49343s,@WX_VERSION@,$WX_VERSION,;t t
49344s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49345s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49346s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49347s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49348s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49349s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49350s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49351s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49352s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49353s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49354s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49355s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49356s,@DISTDIR@,$DISTDIR,;t t
49357s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49358s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49359s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49360s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49361s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49362s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49363s,@RESFLAGS@,$RESFLAGS,;t t
49364s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49365s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49366s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49367s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49368s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49369s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49370s,@GCC@,$GCC,;t t
a848cd7e
SC
49371s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49372s,@LIBOBJS@,$LIBOBJS,;t t
49373s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49374CEOF
49375
49376_ACEOF
49377
49378 cat >>$CONFIG_STATUS <<\_ACEOF
49379 # Split the substitutions into bite-sized pieces for seds with
49380 # small command number limits, like on Digital OSF/1 and HP-UX.
49381 ac_max_sed_lines=48
49382 ac_sed_frag=1 # Number of current file.
49383 ac_beg=1 # First line for current file.
49384 ac_end=$ac_max_sed_lines # Line after last line for current file.
49385 ac_more_lines=:
49386 ac_sed_cmds=
49387 while $ac_more_lines; do
49388 if test $ac_beg -gt 1; then
49389 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49390 else
49391 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49392 fi
49393 if test ! -s $tmp/subs.frag; then
49394 ac_more_lines=false
49395 else
49396 # The purpose of the label and of the branching condition is to
49397 # speed up the sed processing (if there are no `@' at all, there
49398 # is no need to browse any of the substitutions).
49399 # These are the two extra sed commands mentioned above.
49400 (echo ':t
49401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49402 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49403 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49404 else
ac1cb8d3 49405 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49406 fi
49407 ac_sed_frag=`expr $ac_sed_frag + 1`
49408 ac_beg=$ac_end
49409 ac_end=`expr $ac_end + $ac_max_sed_lines`
49410 fi
49411 done
49412 if test -z "$ac_sed_cmds"; then
49413 ac_sed_cmds=cat
49414 fi
49415fi # test -n "$CONFIG_FILES"
49416
49417_ACEOF
49418cat >>$CONFIG_STATUS <<\_ACEOF
49419for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49420 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49421 case $ac_file in
49422 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49423 cat >$tmp/stdin
49424 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49425 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49426 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49427 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49428 * ) ac_file_in=$ac_file.in ;;
49429 esac
49430
49431 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49432 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49433$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49434 X"$ac_file" : 'X\(//\)[^/]' \| \
49435 X"$ac_file" : 'X\(//\)$' \| \
49436 X"$ac_file" : 'X\(/\)' \| \
49437 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49438echo X"$ac_file" |
49439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49440 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49441 /^X\(\/\/\)$/{ s//\1/; q; }
49442 /^X\(\/\).*/{ s//\1/; q; }
49443 s/.*/./; q'`
49444 { if $as_mkdir_p; then
49445 mkdir -p "$ac_dir"
49446 else
49447 as_dir="$ac_dir"
49448 as_dirs=
49449 while test ! -d "$as_dir"; do
49450 as_dirs="$as_dir $as_dirs"
49451 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49452$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49453 X"$as_dir" : 'X\(//\)[^/]' \| \
49454 X"$as_dir" : 'X\(//\)$' \| \
49455 X"$as_dir" : 'X\(/\)' \| \
49456 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49457echo X"$as_dir" |
49458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49459 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49460 /^X\(\/\/\)$/{ s//\1/; q; }
49461 /^X\(\/\).*/{ s//\1/; q; }
49462 s/.*/./; q'`
49463 done
49464 test ! -n "$as_dirs" || mkdir $as_dirs
49465 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49466echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49467 { (exit 1); exit 1; }; }; }
49468
49469 ac_builddir=.
49470
49471if test "$ac_dir" != .; then
49472 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49473 # A "../" for each directory in $ac_dir_suffix.
49474 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49475else
49476 ac_dir_suffix= ac_top_builddir=
49477fi
49478
49479case $srcdir in
49480 .) # No --srcdir option. We are building in place.
49481 ac_srcdir=.
49482 if test -z "$ac_top_builddir"; then
49483 ac_top_srcdir=.
49484 else
49485 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49486 fi ;;
49487 [\\/]* | ?:[\\/]* ) # Absolute path.
49488 ac_srcdir=$srcdir$ac_dir_suffix;
49489 ac_top_srcdir=$srcdir ;;
49490 *) # Relative path.
49491 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49492 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49493esac
ac1cb8d3
VS
49494
49495# Do not use `cd foo && pwd` to compute absolute paths, because
49496# the directories may not exist.
49497case `pwd` in
49498.) ac_abs_builddir="$ac_dir";;
49499*)
49500 case "$ac_dir" in
49501 .) ac_abs_builddir=`pwd`;;
49502 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49503 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49504 esac;;
49505esac
49506case $ac_abs_builddir in
49507.) ac_abs_top_builddir=${ac_top_builddir}.;;
49508*)
49509 case ${ac_top_builddir}. in
49510 .) ac_abs_top_builddir=$ac_abs_builddir;;
49511 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49512 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49513 esac;;
49514esac
49515case $ac_abs_builddir in
49516.) ac_abs_srcdir=$ac_srcdir;;
49517*)
49518 case $ac_srcdir in
49519 .) ac_abs_srcdir=$ac_abs_builddir;;
49520 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49521 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49522 esac;;
49523esac
49524case $ac_abs_builddir in
49525.) ac_abs_top_srcdir=$ac_top_srcdir;;
49526*)
49527 case $ac_top_srcdir in
49528 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49529 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49530 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49531 esac;;
49532esac
a848cd7e
SC
49533
49534
49535 case $INSTALL in
49536 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49537 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49538 esac
49539
3565d135
RR
49540 if test x"$ac_file" != x-; then
49541 { echo "$as_me:$LINENO: creating $ac_file" >&5
49542echo "$as_me: creating $ac_file" >&6;}
49543 rm -f "$ac_file"
49544 fi
a848cd7e
SC
49545 # Let's still pretend it is `configure' which instantiates (i.e., don't
49546 # use $as_me), people would be surprised to read:
49547 # /* config.h. Generated by config.status. */
49548 if test x"$ac_file" = x-; then
49549 configure_input=
49550 else
49551 configure_input="$ac_file. "
49552 fi
49553 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49554 sed 's,.*/,,'` by configure."
a848cd7e
SC
49555
49556 # First look for the input files in the build tree, otherwise in the
49557 # src tree.
49558 ac_file_inputs=`IFS=:
49559 for f in $ac_file_in; do
49560 case $f in
49561 -) echo $tmp/stdin ;;
49562 [\\/$]*)
ac1cb8d3
VS
49563 # Absolute (can't be DOS-style, as IFS=:)
49564 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49565echo "$as_me: error: cannot find input file: $f" >&2;}
49566 { (exit 1); exit 1; }; }
ac1cb8d3 49567 echo "$f";;
a848cd7e 49568 *) # Relative
ac1cb8d3
VS
49569 if test -f "$f"; then
49570 # Build tree
49571 echo "$f"
49572 elif test -f "$srcdir/$f"; then
49573 # Source tree
49574 echo "$srcdir/$f"
49575 else
49576 # /dev/null tree
49577 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49578echo "$as_me: error: cannot find input file: $f" >&2;}
49579 { (exit 1); exit 1; }; }
ac1cb8d3 49580 fi;;
a848cd7e
SC
49581 esac
49582 done` || { (exit 1); exit 1; }
49583_ACEOF
49584cat >>$CONFIG_STATUS <<_ACEOF
49585 sed "$ac_vpsub
49586$extrasub
49587_ACEOF
49588cat >>$CONFIG_STATUS <<\_ACEOF
49589:t
49590/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49591s,@configure_input@,$configure_input,;t t
49592s,@srcdir@,$ac_srcdir,;t t
49593s,@abs_srcdir@,$ac_abs_srcdir,;t t
49594s,@top_srcdir@,$ac_top_srcdir,;t t
49595s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49596s,@builddir@,$ac_builddir,;t t
49597s,@abs_builddir@,$ac_abs_builddir,;t t
49598s,@top_builddir@,$ac_top_builddir,;t t
49599s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49600s,@INSTALL@,$ac_INSTALL,;t t
49601" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49602 rm -f $tmp/stdin
49603 if test x"$ac_file" != x-; then
49604 mv $tmp/out $ac_file
49605 else
49606 cat $tmp/out
49607 rm -f $tmp/out
49608 fi
49609
ceec2216
RL
49610 # Run the commands associated with the file.
49611 case $ac_file in
49612 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49613 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49614 esac
a848cd7e
SC
49615done
49616_ACEOF
49617cat >>$CONFIG_STATUS <<\_ACEOF
49618
49619#
49620# CONFIG_HEADER section.
49621#
49622
49623# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49624# NAME is the cpp macro being defined and VALUE is the value it is being given.
49625#
49626# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
49627ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
49628ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
49629ac_dC=' '
49630ac_dD=',;t'
49631# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 49632ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
49633ac_uB='$,\1#\2define\3'
49634ac_uC=' '
49635ac_uD=',;t'
49636
49637for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49638 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49639 case $ac_file in
49640 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49641 cat >$tmp/stdin
49642 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49643 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49644 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49645 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49646 * ) ac_file_in=$ac_file.in ;;
49647 esac
49648
49649 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49650echo "$as_me: creating $ac_file" >&6;}
49651
49652 # First look for the input files in the build tree, otherwise in the
49653 # src tree.
49654 ac_file_inputs=`IFS=:
49655 for f in $ac_file_in; do
49656 case $f in
49657 -) echo $tmp/stdin ;;
49658 [\\/$]*)
ac1cb8d3
VS
49659 # Absolute (can't be DOS-style, as IFS=:)
49660 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49661echo "$as_me: error: cannot find input file: $f" >&2;}
49662 { (exit 1); exit 1; }; }
ac1cb8d3
VS
49663 # Do quote $f, to prevent DOS paths from being IFS'd.
49664 echo "$f";;
a848cd7e 49665 *) # Relative
ac1cb8d3
VS
49666 if test -f "$f"; then
49667 # Build tree
49668 echo "$f"
49669 elif test -f "$srcdir/$f"; then
49670 # Source tree
49671 echo "$srcdir/$f"
49672 else
49673 # /dev/null tree
49674 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49675echo "$as_me: error: cannot find input file: $f" >&2;}
49676 { (exit 1); exit 1; }; }
ac1cb8d3 49677 fi;;
a848cd7e
SC
49678 esac
49679 done` || { (exit 1); exit 1; }
49680 # Remove the trailing spaces.
ac1cb8d3 49681 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
49682
49683_ACEOF
49684
49685# Transform confdefs.h into two sed scripts, `conftest.defines' and
49686# `conftest.undefs', that substitutes the proper values into
49687# config.h.in to produce config.h. The first handles `#define'
49688# templates, and the second `#undef' templates.
49689# And first: Protect against being on the right side of a sed subst in
49690# config.status. Protect against being in an unquoted here document
49691# in config.status.
49692rm -f conftest.defines conftest.undefs
49693# Using a here document instead of a string reduces the quoting nightmare.
49694# Putting comments in sed scripts is not portable.
49695#
49696# `end' is used to avoid that the second main sed command (meant for
49697# 0-ary CPP macros) applies to n-ary macro definitions.
49698# See the Autoconf documentation for `clear'.
49699cat >confdef2sed.sed <<\_ACEOF
49700s/[\\&,]/\\&/g
49701s,[\\$`],\\&,g
49702t clear
49703: clear
ac1cb8d3 49704s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 49705t end
ac1cb8d3 49706s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
49707: end
49708_ACEOF
49709# If some macros were called several times there might be several times
49710# the same #defines, which is useless. Nevertheless, we may not want to
49711# sort them, since we want the *last* AC-DEFINE to be honored.
49712uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49713sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49714rm -f confdef2sed.sed
49715
49716# This sed command replaces #undef with comments. This is necessary, for
49717# example, in the case of _POSIX_SOURCE, which is predefined and required
49718# on some systems where configure will not decide to define it.
49719cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 49720s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
49721_ACEOF
49722
49723# Break up conftest.defines because some shells have a limit on the size
49724# of here documents, and old seds have small limits too (100 cmds).
49725echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 49726echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
49727echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49728echo ' :' >>$CONFIG_STATUS
49729rm -f conftest.tail
49730while grep . conftest.defines >/dev/null
49731do
49732 # Write a limited-size here document to $tmp/defines.sed.
49733 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49734 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 49735 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
49736 # Work around the forget-to-reset-the-flag bug.
49737 echo 't clr' >>$CONFIG_STATUS
49738 echo ': clr' >>$CONFIG_STATUS
49739 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
49740 echo 'CEOF
49741 sed -f $tmp/defines.sed $tmp/in >$tmp/out
49742 rm -f $tmp/in
49743 mv $tmp/out $tmp/in
49744' >>$CONFIG_STATUS
49745 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
49746 rm -f conftest.defines
49747 mv conftest.tail conftest.defines
49748done
49749rm -f conftest.defines
49750echo ' fi # grep' >>$CONFIG_STATUS
49751echo >>$CONFIG_STATUS
49752
49753# Break up conftest.undefs because some shells have a limit on the size
49754# of here documents, and old seds have small limits too (100 cmds).
49755echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
49756rm -f conftest.tail
49757while grep . conftest.undefs >/dev/null
49758do
49759 # Write a limited-size here document to $tmp/undefs.sed.
49760 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
49761 # Speed up: don't consider the non `#undef'
ac1cb8d3 49762 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
49763 # Work around the forget-to-reset-the-flag bug.
49764 echo 't clr' >>$CONFIG_STATUS
49765 echo ': clr' >>$CONFIG_STATUS
49766 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
49767 echo 'CEOF
49768 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
49769 rm -f $tmp/in
49770 mv $tmp/out $tmp/in
49771' >>$CONFIG_STATUS
49772 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
49773 rm -f conftest.undefs
49774 mv conftest.tail conftest.undefs
49775done
49776rm -f conftest.undefs
49777
49778cat >>$CONFIG_STATUS <<\_ACEOF
49779 # Let's still pretend it is `configure' which instantiates (i.e., don't
49780 # use $as_me), people would be surprised to read:
49781 # /* config.h. Generated by config.status. */
49782 if test x"$ac_file" = x-; then
49783 echo "/* Generated by configure. */" >$tmp/config.h
49784 else
49785 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
49786 fi
49787 cat $tmp/in >>$tmp/config.h
49788 rm -f $tmp/in
49789 if test x"$ac_file" != x-; then
49790 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
49791 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49792echo "$as_me: $ac_file is unchanged" >&6;}
49793 else
49794 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49795$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49796 X"$ac_file" : 'X\(//\)[^/]' \| \
49797 X"$ac_file" : 'X\(//\)$' \| \
49798 X"$ac_file" : 'X\(/\)' \| \
49799 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49800echo X"$ac_file" |
49801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49803 /^X\(\/\/\)$/{ s//\1/; q; }
49804 /^X\(\/\).*/{ s//\1/; q; }
49805 s/.*/./; q'`
49806 { if $as_mkdir_p; then
49807 mkdir -p "$ac_dir"
49808 else
49809 as_dir="$ac_dir"
49810 as_dirs=
49811 while test ! -d "$as_dir"; do
49812 as_dirs="$as_dir $as_dirs"
49813 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49814$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49815 X"$as_dir" : 'X\(//\)[^/]' \| \
49816 X"$as_dir" : 'X\(//\)$' \| \
49817 X"$as_dir" : 'X\(/\)' \| \
49818 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49819echo X"$as_dir" |
49820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49822 /^X\(\/\/\)$/{ s//\1/; q; }
49823 /^X\(\/\).*/{ s//\1/; q; }
49824 s/.*/./; q'`
49825 done
49826 test ! -n "$as_dirs" || mkdir $as_dirs
49827 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49828echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49829 { (exit 1); exit 1; }; }; }
49830
49831 rm -f $ac_file
49832 mv $tmp/config.h $ac_file
49833 fi
49834 else
49835 cat $tmp/config.h
49836 rm -f $tmp/config.h
49837 fi
49838done
49839_ACEOF
49840cat >>$CONFIG_STATUS <<\_ACEOF
49841
49842#
49843# CONFIG_COMMANDS section.
49844#
49845for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
49846 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
49847 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
49848 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
49849$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49850 X"$ac_dest" : 'X\(//\)[^/]' \| \
49851 X"$ac_dest" : 'X\(//\)$' \| \
49852 X"$ac_dest" : 'X\(/\)' \| \
49853 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49854echo X"$ac_dest" |
49855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49857 /^X\(\/\/\)$/{ s//\1/; q; }
49858 /^X\(\/\).*/{ s//\1/; q; }
49859 s/.*/./; q'`
ac1cb8d3
VS
49860 { if $as_mkdir_p; then
49861 mkdir -p "$ac_dir"
49862 else
49863 as_dir="$ac_dir"
49864 as_dirs=
49865 while test ! -d "$as_dir"; do
49866 as_dirs="$as_dir $as_dirs"
49867 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49868$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49869 X"$as_dir" : 'X\(//\)[^/]' \| \
49870 X"$as_dir" : 'X\(//\)$' \| \
49871 X"$as_dir" : 'X\(/\)' \| \
49872 . : '\(.\)' 2>/dev/null ||
49873echo X"$as_dir" |
49874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49876 /^X\(\/\/\)$/{ s//\1/; q; }
49877 /^X\(\/\).*/{ s//\1/; q; }
49878 s/.*/./; q'`
49879 done
49880 test ! -n "$as_dirs" || mkdir $as_dirs
49881 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49882echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49883 { (exit 1); exit 1; }; }; }
49884
a848cd7e
SC
49885 ac_builddir=.
49886
49887if test "$ac_dir" != .; then
49888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49889 # A "../" for each directory in $ac_dir_suffix.
49890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49891else
49892 ac_dir_suffix= ac_top_builddir=
49893fi
49894
49895case $srcdir in
49896 .) # No --srcdir option. We are building in place.
49897 ac_srcdir=.
49898 if test -z "$ac_top_builddir"; then
49899 ac_top_srcdir=.
49900 else
49901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49902 fi ;;
49903 [\\/]* | ?:[\\/]* ) # Absolute path.
49904 ac_srcdir=$srcdir$ac_dir_suffix;
49905 ac_top_srcdir=$srcdir ;;
49906 *) # Relative path.
49907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49909esac
ac1cb8d3
VS
49910
49911# Do not use `cd foo && pwd` to compute absolute paths, because
49912# the directories may not exist.
49913case `pwd` in
49914.) ac_abs_builddir="$ac_dir";;
49915*)
49916 case "$ac_dir" in
49917 .) ac_abs_builddir=`pwd`;;
49918 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49919 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49920 esac;;
49921esac
49922case $ac_abs_builddir in
49923.) ac_abs_top_builddir=${ac_top_builddir}.;;
49924*)
49925 case ${ac_top_builddir}. in
49926 .) ac_abs_top_builddir=$ac_abs_builddir;;
49927 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49928 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49929 esac;;
49930esac
49931case $ac_abs_builddir in
49932.) ac_abs_srcdir=$ac_srcdir;;
49933*)
49934 case $ac_srcdir in
49935 .) ac_abs_srcdir=$ac_abs_builddir;;
49936 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49937 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49938 esac;;
49939esac
49940case $ac_abs_builddir in
49941.) ac_abs_top_srcdir=$ac_top_srcdir;;
49942*)
49943 case $ac_top_srcdir in
49944 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49945 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49946 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49947 esac;;
49948esac
a848cd7e
SC
49949
49950
49951 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
49952echo "$as_me: executing $ac_dest commands" >&6;}
49953 case $ac_dest in
5c60e845
MW
49954 rcdefs.h )
49955 mkdir -p $outdir &&
49956 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
49957 ;;
ceec2216
RL
49958 wx-config ) rm -f wx-config
49959 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
49960 ;;
a848cd7e
SC
49961 esac
49962done
49963_ACEOF
49964
49965cat >>$CONFIG_STATUS <<\_ACEOF
49966
49967{ (exit 0); exit 0; }
49968_ACEOF
49969chmod +x $CONFIG_STATUS
49970ac_clean_files=$ac_clean_files_save
49971
49972
49973# configure is writing to config.log, and then calls config.status.
49974# config.status does its own redirection, appending to config.log.
49975# Unfortunately, on DOS this fails, as config.log is still kept open
49976# by configure, so config.status won't be able to write to it; its
49977# output is simply discarded. So we exec the FD to /dev/null,
49978# effectively closing config.log, so it can be properly (re)opened and
49979# appended to by config.status. When coming back to configure, we
49980# need to make the FD available again.
49981if test "$no_create" != yes; then
49982 ac_cs_success=:
49983 ac_config_status_args=
49984 test "$silent" = yes &&
49985 ac_config_status_args="$ac_config_status_args --quiet"
49986 exec 5>/dev/null
49987 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49988 exec 5>>config.log
49989 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49990 # would make configure fail if this is the last instruction.
49991 $ac_cs_success || { (exit 1); exit 1; }
49992fi
49993
49994#
49995# CONFIG_SUBDIRS section.
49996#
49997if test "$no_recursion" != yes; then
49998
49999 # Remove --cache-file and --srcdir arguments so they do not pile up.
50000 ac_sub_configure_args=
50001 ac_prev=
50002 for ac_arg in $ac_configure_args; do
50003 if test -n "$ac_prev"; then
50004 ac_prev=
50005 continue
50006 fi
50007 case $ac_arg in
50008 -cache-file | --cache-file | --cache-fil | --cache-fi \
50009 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50010 ac_prev=cache_file ;;
50011 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50012 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50013 | --c=*)
50014 ;;
50015 --config-cache | -C)
50016 ;;
50017 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50018 ac_prev=srcdir ;;
50019 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50020 ;;
50021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50022 ac_prev=prefix ;;
50023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50024 ;;
50025 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50026 esac
50027 done
50028
50029 # Always prepend --prefix to ensure using the same prefix
50030 # in subdir configurations.
50031 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50032
50033 ac_popdir=`pwd`
50034 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50035
50036 # Do not complain, so a configure script can configure whichever
50037 # parts of a large source tree are present.
50038 test -d $srcdir/$ac_dir || continue
50039
50040 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50041echo "$as_me: configuring in $ac_dir" >&6;}
50042 { if $as_mkdir_p; then
50043 mkdir -p "$ac_dir"
50044 else
50045 as_dir="$ac_dir"
50046 as_dirs=
50047 while test ! -d "$as_dir"; do
50048 as_dirs="$as_dir $as_dirs"
50049 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50051 X"$as_dir" : 'X\(//\)[^/]' \| \
50052 X"$as_dir" : 'X\(//\)$' \| \
50053 X"$as_dir" : 'X\(/\)' \| \
50054 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50055echo X"$as_dir" |
50056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50058 /^X\(\/\/\)$/{ s//\1/; q; }
50059 /^X\(\/\).*/{ s//\1/; q; }
50060 s/.*/./; q'`
50061 done
50062 test ! -n "$as_dirs" || mkdir $as_dirs
50063 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50064echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50065 { (exit 1); exit 1; }; }; }
50066
50067 ac_builddir=.
50068
50069if test "$ac_dir" != .; then
50070 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50071 # A "../" for each directory in $ac_dir_suffix.
50072 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50073else
50074 ac_dir_suffix= ac_top_builddir=
50075fi
50076
50077case $srcdir in
50078 .) # No --srcdir option. We are building in place.
50079 ac_srcdir=.
50080 if test -z "$ac_top_builddir"; then
50081 ac_top_srcdir=.
50082 else
50083 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50084 fi ;;
50085 [\\/]* | ?:[\\/]* ) # Absolute path.
50086 ac_srcdir=$srcdir$ac_dir_suffix;
50087 ac_top_srcdir=$srcdir ;;
50088 *) # Relative path.
50089 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50090 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50091esac
ac1cb8d3
VS
50092
50093# Do not use `cd foo && pwd` to compute absolute paths, because
50094# the directories may not exist.
50095case `pwd` in
50096.) ac_abs_builddir="$ac_dir";;
50097*)
50098 case "$ac_dir" in
50099 .) ac_abs_builddir=`pwd`;;
50100 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50101 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50102 esac;;
50103esac
50104case $ac_abs_builddir in
50105.) ac_abs_top_builddir=${ac_top_builddir}.;;
50106*)
50107 case ${ac_top_builddir}. in
50108 .) ac_abs_top_builddir=$ac_abs_builddir;;
50109 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50110 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50111 esac;;
50112esac
50113case $ac_abs_builddir in
50114.) ac_abs_srcdir=$ac_srcdir;;
50115*)
50116 case $ac_srcdir in
50117 .) ac_abs_srcdir=$ac_abs_builddir;;
50118 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50119 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50120 esac;;
50121esac
50122case $ac_abs_builddir in
50123.) ac_abs_top_srcdir=$ac_top_srcdir;;
50124*)
50125 case $ac_top_srcdir in
50126 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50127 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50128 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50129 esac;;
50130esac
a848cd7e
SC
50131
50132
50133 cd $ac_dir
50134
50135 # Check for guested configure; otherwise get Cygnus style configure.
50136 if test -f $ac_srcdir/configure.gnu; then
50137 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50138 elif test -f $ac_srcdir/configure; then
50139 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50140 elif test -f $ac_srcdir/configure.in; then
50141 ac_sub_configure=$ac_configure
50142 else
50143 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50144echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50145 ac_sub_configure=
50146 fi
50147
50148 # The recursion is here.
50149 if test -n "$ac_sub_configure"; then
50150 # Make the cache file name correct relative to the subdirectory.
50151 case $cache_file in
50152 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50153 *) # Relative path.
ac1cb8d3 50154 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50155 esac
50156
50157 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50158echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50159 # The eval makes quoting arguments work.
50160 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50161 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50162 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50163echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50164 { (exit 1); exit 1; }; }
50165 fi
50166
3565d135 50167 cd $ac_popdir
a848cd7e
SC
50168 done
50169fi
50170
50171
50172echo
77ffb593 50173echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50174echo ""
4d4ff94c 50175echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50176echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50177
77ffb593
JS
50178echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50179echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50180echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50181
77ffb593 50182echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50183echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50184echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50185
77ffb593 50186echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50187echo " jpeg ${wxUSE_LIBJPEG-none}"
50188echo " png ${wxUSE_LIBPNG-none}"
50189echo " regex ${wxUSE_REGEX}"
50190echo " tiff ${wxUSE_LIBTIFF-none}"
50191if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50192echo " xpm ${wxUSE_LIBXPM-none}"
50193fi
50194echo " zlib ${wxUSE_ZLIB}"
50195echo " odbc ${wxUSE_ODBC}"
50196echo " expat ${wxUSE_EXPAT}"
50197echo " libmspack ${wxUSE_LIBMSPACK}"
50198echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50199echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
3565d135 50200echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50201
50202echo ""
50203